]> git.sur5r.net Git - openldap/blob - configure
Add flag for only logging successful operations
[openldap] / configure
1 #! /bin/sh
2 # From configure.in OpenLDAP: pkg/ldap/configure.in,v 1.599 2005/09/01 09:50:14 hyc 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" -a ! -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 -a \
3705                 $ol_enable_bdb = no -a \
3706                 $ol_enable_dnssrv = no -a \
3707                 $ol_enable_hdb = no -a \
3708                 $ol_enable_ldap = no -a \
3709                 $ol_enable_meta = no -a \
3710                 $ol_enable_monitor = no -a \
3711                 $ol_enable_null = no -a \
3712                 $ol_enable_passwd = no -a \
3713                 $ol_enable_perl = no -a \
3714                 $ol_enable_relay = no -a \
3715                 $ol_enable_shell = no -a \
3716                 $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 != no -o $ol_enable_hdb != no; then
3733                 ol_enable_ldbm_api=berkeley
3734         fi
3735
3736 else
3737                 if test $ol_enable_ldbm_api = gdbm -a \
3738                 $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 -a \
3744                 $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 -a \
3750                 $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 != no -o $ol_enable_hdb != 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 = yes -a $ol_enable_ldap = 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         if test "${CC}" = "cc_r" -o "${CC}" = "xlc_r" ; then
3971                 ol_with_threads=posix
3972                 ol_cv_pthread_create=yes
3973         fi
3974 fi
3975
3976 if test -z "${CC}"; then
3977         for ac_prog in cc gcc
3978 do
3979   # Extract the first word of "$ac_prog", so it can be a program name with args.
3980 set dummy $ac_prog; ac_word=$2
3981 echo "$as_me:$LINENO: checking for $ac_word" >&5
3982 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3983 if test "${ac_cv_prog_CC+set}" = set; then
3984   echo $ECHO_N "(cached) $ECHO_C" >&6
3985 else
3986   if test -n "$CC"; then
3987   ac_cv_prog_CC="$CC" # Let the user override the test.
3988 else
3989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3990 for as_dir in $PATH
3991 do
3992   IFS=$as_save_IFS
3993   test -z "$as_dir" && as_dir=.
3994   for ac_exec_ext in '' $ac_executable_extensions; do
3995   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3996     ac_cv_prog_CC="$ac_prog"
3997     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3998     break 2
3999   fi
4000 done
4001 done
4002
4003 fi
4004 fi
4005 CC=$ac_cv_prog_CC
4006 if test -n "$CC"; then
4007   echo "$as_me:$LINENO: result: $CC" >&5
4008 echo "${ECHO_T}$CC" >&6
4009 else
4010   echo "$as_me:$LINENO: result: no" >&5
4011 echo "${ECHO_T}no" >&6
4012 fi
4013
4014   test -n "$CC" && break
4015 done
4016 test -n "$CC" || CC="missing"
4017
4018
4019         if test "${CC}" = "missing" ; then
4020                 { { echo "$as_me:$LINENO: error: Unable to locate cc(1) or suitable replacement.  Check PATH or set CC." >&5
4021 echo "$as_me: error: Unable to locate cc(1) or suitable replacement.  Check PATH or set CC." >&2;}
4022    { (exit 1); exit 1; }; }
4023         fi
4024 fi
4025
4026 if test -z "${AR}"; then
4027         for ac_prog in ar gar
4028 do
4029   # Extract the first word of "$ac_prog", so it can be a program name with args.
4030 set dummy $ac_prog; ac_word=$2
4031 echo "$as_me:$LINENO: checking for $ac_word" >&5
4032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4033 if test "${ac_cv_prog_AR+set}" = set; then
4034   echo $ECHO_N "(cached) $ECHO_C" >&6
4035 else
4036   if test -n "$AR"; then
4037   ac_cv_prog_AR="$AR" # Let the user override the test.
4038 else
4039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4040 for as_dir in $PATH
4041 do
4042   IFS=$as_save_IFS
4043   test -z "$as_dir" && as_dir=.
4044   for ac_exec_ext in '' $ac_executable_extensions; do
4045   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4046     ac_cv_prog_AR="$ac_prog"
4047     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4048     break 2
4049   fi
4050 done
4051 done
4052
4053 fi
4054 fi
4055 AR=$ac_cv_prog_AR
4056 if test -n "$AR"; then
4057   echo "$as_me:$LINENO: result: $AR" >&5
4058 echo "${ECHO_T}$AR" >&6
4059 else
4060   echo "$as_me:$LINENO: result: no" >&5
4061 echo "${ECHO_T}no" >&6
4062 fi
4063
4064   test -n "$AR" && break
4065 done
4066 test -n "$AR" || AR="missing"
4067
4068
4069         if test "${AR}" = "missing" ; then
4070                 { { echo "$as_me:$LINENO: error: Unable to locate ar(1) or suitable replacement.  Check PATH or set AR." >&5
4071 echo "$as_me: error: Unable to locate ar(1) or suitable replacement.  Check PATH or set AR." >&2;}
4072    { (exit 1); exit 1; }; }
4073         fi
4074 fi
4075
4076
4077
4078
4079
4080 # Check whether --enable-fast-install or --disable-fast-install was given.
4081 if test "${enable_fast_install+set}" = set; then
4082   enableval="$enable_fast_install"
4083   p=${PACKAGE-default}
4084     case $enableval in
4085     yes) enable_fast_install=yes ;;
4086     no) enable_fast_install=no ;;
4087     *)
4088       enable_fast_install=no
4089       # Look at the argument we got.  We use all the common list separators.
4090       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4091       for pkg in $enableval; do
4092         IFS="$lt_save_ifs"
4093         if test "X$pkg" = "X$p"; then
4094           enable_fast_install=yes
4095         fi
4096       done
4097       IFS="$lt_save_ifs"
4098       ;;
4099     esac
4100 else
4101   enable_fast_install=yes
4102 fi;
4103
4104 DEPDIR="${am__leading_dot}deps"
4105
4106           ac_config_commands="$ac_config_commands depfiles"
4107
4108
4109 am_make=${MAKE-make}
4110 cat > confinc << 'END'
4111 am__doit:
4112         @echo done
4113 .PHONY: am__doit
4114 END
4115 # If we don't find an include directive, just comment out the code.
4116 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4117 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4118 am__include="#"
4119 am__quote=
4120 _am_result=none
4121 # First try GNU make style include.
4122 echo "include confinc" > confmf
4123 # We grep out `Entering directory' and `Leaving directory'
4124 # messages which can occur if `w' ends up in MAKEFLAGS.
4125 # In particular we don't look at `^make:' because GNU make might
4126 # be invoked under some other name (usually "gmake"), in which
4127 # case it prints its new name instead of `make'.
4128 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4129    am__include=include
4130    am__quote=
4131    _am_result=GNU
4132 fi
4133 # Now try BSD make style include.
4134 if test "$am__include" = "#"; then
4135    echo '.include "confinc"' > confmf
4136    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4137       am__include=.include
4138       am__quote="\""
4139       _am_result=BSD
4140    fi
4141 fi
4142
4143
4144 echo "$as_me:$LINENO: result: $_am_result" >&5
4145 echo "${ECHO_T}$_am_result" >&6
4146 rm -f confinc confmf
4147
4148 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4149 if test "${enable_dependency_tracking+set}" = set; then
4150   enableval="$enable_dependency_tracking"
4151
4152 fi;
4153 if test "x$enable_dependency_tracking" != xno; then
4154   am_depcomp="$ac_aux_dir/depcomp"
4155   AMDEPBACKSLASH='\'
4156 fi
4157
4158
4159 if test "x$enable_dependency_tracking" != xno; then
4160   AMDEP_TRUE=
4161   AMDEP_FALSE='#'
4162 else
4163   AMDEP_TRUE='#'
4164   AMDEP_FALSE=
4165 fi
4166
4167
4168
4169 ac_ext=c
4170 ac_cpp='$CPP $CPPFLAGS'
4171 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4172 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4173 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4174 if test -n "$ac_tool_prefix"; then
4175   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4176 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4177 echo "$as_me:$LINENO: checking for $ac_word" >&5
4178 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4179 if test "${ac_cv_prog_CC+set}" = set; then
4180   echo $ECHO_N "(cached) $ECHO_C" >&6
4181 else
4182   if test -n "$CC"; then
4183   ac_cv_prog_CC="$CC" # Let the user override the test.
4184 else
4185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4186 for as_dir in $PATH
4187 do
4188   IFS=$as_save_IFS
4189   test -z "$as_dir" && as_dir=.
4190   for ac_exec_ext in '' $ac_executable_extensions; do
4191   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4192     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4193     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4194     break 2
4195   fi
4196 done
4197 done
4198
4199 fi
4200 fi
4201 CC=$ac_cv_prog_CC
4202 if test -n "$CC"; then
4203   echo "$as_me:$LINENO: result: $CC" >&5
4204 echo "${ECHO_T}$CC" >&6
4205 else
4206   echo "$as_me:$LINENO: result: no" >&5
4207 echo "${ECHO_T}no" >&6
4208 fi
4209
4210 fi
4211 if test -z "$ac_cv_prog_CC"; then
4212   ac_ct_CC=$CC
4213   # Extract the first word of "gcc", so it can be a program name with args.
4214 set dummy gcc; ac_word=$2
4215 echo "$as_me:$LINENO: checking for $ac_word" >&5
4216 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4217 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4218   echo $ECHO_N "(cached) $ECHO_C" >&6
4219 else
4220   if test -n "$ac_ct_CC"; then
4221   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4222 else
4223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4224 for as_dir in $PATH
4225 do
4226   IFS=$as_save_IFS
4227   test -z "$as_dir" && as_dir=.
4228   for ac_exec_ext in '' $ac_executable_extensions; do
4229   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4230     ac_cv_prog_ac_ct_CC="gcc"
4231     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4232     break 2
4233   fi
4234 done
4235 done
4236
4237 fi
4238 fi
4239 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4240 if test -n "$ac_ct_CC"; then
4241   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4242 echo "${ECHO_T}$ac_ct_CC" >&6
4243 else
4244   echo "$as_me:$LINENO: result: no" >&5
4245 echo "${ECHO_T}no" >&6
4246 fi
4247
4248   CC=$ac_ct_CC
4249 else
4250   CC="$ac_cv_prog_CC"
4251 fi
4252
4253 if test -z "$CC"; then
4254   if test -n "$ac_tool_prefix"; then
4255   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4256 set dummy ${ac_tool_prefix}cc; ac_word=$2
4257 echo "$as_me:$LINENO: checking for $ac_word" >&5
4258 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4259 if test "${ac_cv_prog_CC+set}" = set; then
4260   echo $ECHO_N "(cached) $ECHO_C" >&6
4261 else
4262   if test -n "$CC"; then
4263   ac_cv_prog_CC="$CC" # Let the user override the test.
4264 else
4265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4266 for as_dir in $PATH
4267 do
4268   IFS=$as_save_IFS
4269   test -z "$as_dir" && as_dir=.
4270   for ac_exec_ext in '' $ac_executable_extensions; do
4271   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4272     ac_cv_prog_CC="${ac_tool_prefix}cc"
4273     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4274     break 2
4275   fi
4276 done
4277 done
4278
4279 fi
4280 fi
4281 CC=$ac_cv_prog_CC
4282 if test -n "$CC"; then
4283   echo "$as_me:$LINENO: result: $CC" >&5
4284 echo "${ECHO_T}$CC" >&6
4285 else
4286   echo "$as_me:$LINENO: result: no" >&5
4287 echo "${ECHO_T}no" >&6
4288 fi
4289
4290 fi
4291 if test -z "$ac_cv_prog_CC"; then
4292   ac_ct_CC=$CC
4293   # Extract the first word of "cc", so it can be a program name with args.
4294 set dummy cc; ac_word=$2
4295 echo "$as_me:$LINENO: checking for $ac_word" >&5
4296 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4297 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4298   echo $ECHO_N "(cached) $ECHO_C" >&6
4299 else
4300   if test -n "$ac_ct_CC"; then
4301   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4302 else
4303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4304 for as_dir in $PATH
4305 do
4306   IFS=$as_save_IFS
4307   test -z "$as_dir" && as_dir=.
4308   for ac_exec_ext in '' $ac_executable_extensions; do
4309   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4310     ac_cv_prog_ac_ct_CC="cc"
4311     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4312     break 2
4313   fi
4314 done
4315 done
4316
4317 fi
4318 fi
4319 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4320 if test -n "$ac_ct_CC"; then
4321   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4322 echo "${ECHO_T}$ac_ct_CC" >&6
4323 else
4324   echo "$as_me:$LINENO: result: no" >&5
4325 echo "${ECHO_T}no" >&6
4326 fi
4327
4328   CC=$ac_ct_CC
4329 else
4330   CC="$ac_cv_prog_CC"
4331 fi
4332
4333 fi
4334 if test -z "$CC"; then
4335   # Extract the first word of "cc", so it can be a program name with args.
4336 set dummy cc; ac_word=$2
4337 echo "$as_me:$LINENO: checking for $ac_word" >&5
4338 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4339 if test "${ac_cv_prog_CC+set}" = set; then
4340   echo $ECHO_N "(cached) $ECHO_C" >&6
4341 else
4342   if test -n "$CC"; then
4343   ac_cv_prog_CC="$CC" # Let the user override the test.
4344 else
4345   ac_prog_rejected=no
4346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4347 for as_dir in $PATH
4348 do
4349   IFS=$as_save_IFS
4350   test -z "$as_dir" && as_dir=.
4351   for ac_exec_ext in '' $ac_executable_extensions; do
4352   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4353     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4354        ac_prog_rejected=yes
4355        continue
4356      fi
4357     ac_cv_prog_CC="cc"
4358     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4359     break 2
4360   fi
4361 done
4362 done
4363
4364 if test $ac_prog_rejected = yes; then
4365   # We found a bogon in the path, so make sure we never use it.
4366   set dummy $ac_cv_prog_CC
4367   shift
4368   if test $# != 0; then
4369     # We chose a different compiler from the bogus one.
4370     # However, it has the same basename, so the bogon will be chosen
4371     # first if we set CC to just the basename; use the full file name.
4372     shift
4373     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4374   fi
4375 fi
4376 fi
4377 fi
4378 CC=$ac_cv_prog_CC
4379 if test -n "$CC"; then
4380   echo "$as_me:$LINENO: result: $CC" >&5
4381 echo "${ECHO_T}$CC" >&6
4382 else
4383   echo "$as_me:$LINENO: result: no" >&5
4384 echo "${ECHO_T}no" >&6
4385 fi
4386
4387 fi
4388 if test -z "$CC"; then
4389   if test -n "$ac_tool_prefix"; then
4390   for ac_prog in cl
4391   do
4392     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4393 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4394 echo "$as_me:$LINENO: checking for $ac_word" >&5
4395 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4396 if test "${ac_cv_prog_CC+set}" = set; then
4397   echo $ECHO_N "(cached) $ECHO_C" >&6
4398 else
4399   if test -n "$CC"; then
4400   ac_cv_prog_CC="$CC" # Let the user override the test.
4401 else
4402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4403 for as_dir in $PATH
4404 do
4405   IFS=$as_save_IFS
4406   test -z "$as_dir" && as_dir=.
4407   for ac_exec_ext in '' $ac_executable_extensions; do
4408   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4409     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4410     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4411     break 2
4412   fi
4413 done
4414 done
4415
4416 fi
4417 fi
4418 CC=$ac_cv_prog_CC
4419 if test -n "$CC"; then
4420   echo "$as_me:$LINENO: result: $CC" >&5
4421 echo "${ECHO_T}$CC" >&6
4422 else
4423   echo "$as_me:$LINENO: result: no" >&5
4424 echo "${ECHO_T}no" >&6
4425 fi
4426
4427     test -n "$CC" && break
4428   done
4429 fi
4430 if test -z "$CC"; then
4431   ac_ct_CC=$CC
4432   for ac_prog in cl
4433 do
4434   # Extract the first word of "$ac_prog", so it can be a program name with args.
4435 set dummy $ac_prog; ac_word=$2
4436 echo "$as_me:$LINENO: checking for $ac_word" >&5
4437 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4438 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4439   echo $ECHO_N "(cached) $ECHO_C" >&6
4440 else
4441   if test -n "$ac_ct_CC"; then
4442   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4443 else
4444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4445 for as_dir in $PATH
4446 do
4447   IFS=$as_save_IFS
4448   test -z "$as_dir" && as_dir=.
4449   for ac_exec_ext in '' $ac_executable_extensions; do
4450   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4451     ac_cv_prog_ac_ct_CC="$ac_prog"
4452     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4453     break 2
4454   fi
4455 done
4456 done
4457
4458 fi
4459 fi
4460 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4461 if test -n "$ac_ct_CC"; then
4462   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4463 echo "${ECHO_T}$ac_ct_CC" >&6
4464 else
4465   echo "$as_me:$LINENO: result: no" >&5
4466 echo "${ECHO_T}no" >&6
4467 fi
4468
4469   test -n "$ac_ct_CC" && break
4470 done
4471
4472   CC=$ac_ct_CC
4473 fi
4474
4475 fi
4476
4477
4478 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4479 See \`config.log' for more details." >&5
4480 echo "$as_me: error: no acceptable C compiler found in \$PATH
4481 See \`config.log' for more details." >&2;}
4482    { (exit 1); exit 1; }; }
4483
4484 # Provide some information about the compiler.
4485 echo "$as_me:$LINENO:" \
4486      "checking for C compiler version" >&5
4487 ac_compiler=`set X $ac_compile; echo $2`
4488 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4489   (eval $ac_compiler --version </dev/null >&5) 2>&5
4490   ac_status=$?
4491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4492   (exit $ac_status); }
4493 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4494   (eval $ac_compiler -v </dev/null >&5) 2>&5
4495   ac_status=$?
4496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4497   (exit $ac_status); }
4498 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4499   (eval $ac_compiler -V </dev/null >&5) 2>&5
4500   ac_status=$?
4501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4502   (exit $ac_status); }
4503
4504 cat >conftest.$ac_ext <<_ACEOF
4505 /* confdefs.h.  */
4506 _ACEOF
4507 cat confdefs.h >>conftest.$ac_ext
4508 cat >>conftest.$ac_ext <<_ACEOF
4509 /* end confdefs.h.  */
4510
4511 int
4512 main ()
4513 {
4514
4515   ;
4516   return 0;
4517 }
4518 _ACEOF
4519 ac_clean_files_save=$ac_clean_files
4520 ac_clean_files="$ac_clean_files a.out a.exe b.out"
4521 # Try to create an executable without -o first, disregard a.out.
4522 # It will help us diagnose broken compilers, and finding out an intuition
4523 # of exeext.
4524 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4525 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
4526 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4527 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
4528   (eval $ac_link_default) 2>&5
4529   ac_status=$?
4530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4531   (exit $ac_status); }; then
4532   # Find the output, starting from the most likely.  This scheme is
4533 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
4534 # resort.
4535
4536 # Be careful to initialize this variable, since it used to be cached.
4537 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
4538 ac_cv_exeext=
4539 # b.out is created by i960 compilers.
4540 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
4541 do
4542   test -f "$ac_file" || continue
4543   case $ac_file in
4544     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
4545         ;;
4546     conftest.$ac_ext )
4547         # This is the source file.
4548         ;;
4549     [ab].out )
4550         # We found the default executable, but exeext='' is most
4551         # certainly right.
4552         break;;
4553     *.* )
4554         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4555         # FIXME: I believe we export ac_cv_exeext for Libtool,
4556         # but it would be cool to find out if it's true.  Does anybody
4557         # maintain Libtool? --akim.
4558         export ac_cv_exeext
4559         break;;
4560     * )
4561         break;;
4562   esac
4563 done
4564 else
4565   echo "$as_me: failed program was:" >&5
4566 sed 's/^/| /' conftest.$ac_ext >&5
4567
4568 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
4569 See \`config.log' for more details." >&5
4570 echo "$as_me: error: C compiler cannot create executables
4571 See \`config.log' for more details." >&2;}
4572    { (exit 77); exit 77; }; }
4573 fi
4574
4575 ac_exeext=$ac_cv_exeext
4576 echo "$as_me:$LINENO: result: $ac_file" >&5
4577 echo "${ECHO_T}$ac_file" >&6
4578
4579 # Check the compiler produces executables we can run.  If not, either
4580 # the compiler is broken, or we cross compile.
4581 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4582 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
4583 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4584 # If not cross compiling, check that we can run a simple program.
4585 if test "$cross_compiling" != yes; then
4586   if { ac_try='./$ac_file'
4587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4588   (eval $ac_try) 2>&5
4589   ac_status=$?
4590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4591   (exit $ac_status); }; }; then
4592     cross_compiling=no
4593   else
4594     if test "$cross_compiling" = maybe; then
4595         cross_compiling=yes
4596     else
4597         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
4598 If you meant to cross compile, use \`--host'.
4599 See \`config.log' for more details." >&5
4600 echo "$as_me: error: cannot run C compiled programs.
4601 If you meant to cross compile, use \`--host'.
4602 See \`config.log' for more details." >&2;}
4603    { (exit 1); exit 1; }; }
4604     fi
4605   fi
4606 fi
4607 echo "$as_me:$LINENO: result: yes" >&5
4608 echo "${ECHO_T}yes" >&6
4609
4610 rm -f a.out a.exe conftest$ac_cv_exeext b.out
4611 ac_clean_files=$ac_clean_files_save
4612 # Check the compiler produces executables we can run.  If not, either
4613 # the compiler is broken, or we cross compile.
4614 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4615 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
4616 echo "$as_me:$LINENO: result: $cross_compiling" >&5
4617 echo "${ECHO_T}$cross_compiling" >&6
4618
4619 echo "$as_me:$LINENO: checking for suffix of executables" >&5
4620 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
4621 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4622   (eval $ac_link) 2>&5
4623   ac_status=$?
4624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4625   (exit $ac_status); }; then
4626   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4627 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4628 # work properly (i.e., refer to `conftest.exe'), while it won't with
4629 # `rm'.
4630 for ac_file in conftest.exe conftest conftest.*; do
4631   test -f "$ac_file" || continue
4632   case $ac_file in
4633     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
4634     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4635           export ac_cv_exeext
4636           break;;
4637     * ) break;;
4638   esac
4639 done
4640 else
4641   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4642 See \`config.log' for more details." >&5
4643 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4644 See \`config.log' for more details." >&2;}
4645    { (exit 1); exit 1; }; }
4646 fi
4647
4648 rm -f conftest$ac_cv_exeext
4649 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
4650 echo "${ECHO_T}$ac_cv_exeext" >&6
4651
4652 rm -f conftest.$ac_ext
4653 EXEEXT=$ac_cv_exeext
4654 ac_exeext=$EXEEXT
4655 echo "$as_me:$LINENO: checking for suffix of object files" >&5
4656 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
4657 if test "${ac_cv_objext+set}" = set; then
4658   echo $ECHO_N "(cached) $ECHO_C" >&6
4659 else
4660   cat >conftest.$ac_ext <<_ACEOF
4661 /* confdefs.h.  */
4662 _ACEOF
4663 cat confdefs.h >>conftest.$ac_ext
4664 cat >>conftest.$ac_ext <<_ACEOF
4665 /* end confdefs.h.  */
4666
4667 int
4668 main ()
4669 {
4670
4671   ;
4672   return 0;
4673 }
4674 _ACEOF
4675 rm -f conftest.o conftest.obj
4676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4677   (eval $ac_compile) 2>&5
4678   ac_status=$?
4679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4680   (exit $ac_status); }; then
4681   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
4682   case $ac_file in
4683     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
4684     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4685        break;;
4686   esac
4687 done
4688 else
4689   echo "$as_me: failed program was:" >&5
4690 sed 's/^/| /' conftest.$ac_ext >&5
4691
4692 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
4693 See \`config.log' for more details." >&5
4694 echo "$as_me: error: cannot compute suffix of object files: cannot compile
4695 See \`config.log' for more details." >&2;}
4696    { (exit 1); exit 1; }; }
4697 fi
4698
4699 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4700 fi
4701 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
4702 echo "${ECHO_T}$ac_cv_objext" >&6
4703 OBJEXT=$ac_cv_objext
4704 ac_objext=$OBJEXT
4705 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4706 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4707 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4708   echo $ECHO_N "(cached) $ECHO_C" >&6
4709 else
4710   cat >conftest.$ac_ext <<_ACEOF
4711 /* confdefs.h.  */
4712 _ACEOF
4713 cat confdefs.h >>conftest.$ac_ext
4714 cat >>conftest.$ac_ext <<_ACEOF
4715 /* end confdefs.h.  */
4716
4717 int
4718 main ()
4719 {
4720 #ifndef __GNUC__
4721        choke me
4722 #endif
4723
4724   ;
4725   return 0;
4726 }
4727 _ACEOF
4728 rm -f conftest.$ac_objext
4729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4730   (eval $ac_compile) 2>conftest.er1
4731   ac_status=$?
4732   grep -v '^ *+' conftest.er1 >conftest.err
4733   rm -f conftest.er1
4734   cat conftest.err >&5
4735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4736   (exit $ac_status); } &&
4737          { ac_try='test -z "$ac_c_werror_flag"
4738                          || test ! -s conftest.err'
4739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4740   (eval $ac_try) 2>&5
4741   ac_status=$?
4742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4743   (exit $ac_status); }; } &&
4744          { ac_try='test -s conftest.$ac_objext'
4745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4746   (eval $ac_try) 2>&5
4747   ac_status=$?
4748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4749   (exit $ac_status); }; }; then
4750   ac_compiler_gnu=yes
4751 else
4752   echo "$as_me: failed program was:" >&5
4753 sed 's/^/| /' conftest.$ac_ext >&5
4754
4755 ac_compiler_gnu=no
4756 fi
4757 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4758 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4759
4760 fi
4761 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4762 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4763 GCC=`test $ac_compiler_gnu = yes && echo yes`
4764 ac_test_CFLAGS=${CFLAGS+set}
4765 ac_save_CFLAGS=$CFLAGS
4766 CFLAGS="-g"
4767 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4768 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4769 if test "${ac_cv_prog_cc_g+set}" = set; then
4770   echo $ECHO_N "(cached) $ECHO_C" >&6
4771 else
4772   cat >conftest.$ac_ext <<_ACEOF
4773 /* confdefs.h.  */
4774 _ACEOF
4775 cat confdefs.h >>conftest.$ac_ext
4776 cat >>conftest.$ac_ext <<_ACEOF
4777 /* end confdefs.h.  */
4778
4779 int
4780 main ()
4781 {
4782
4783   ;
4784   return 0;
4785 }
4786 _ACEOF
4787 rm -f conftest.$ac_objext
4788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4789   (eval $ac_compile) 2>conftest.er1
4790   ac_status=$?
4791   grep -v '^ *+' conftest.er1 >conftest.err
4792   rm -f conftest.er1
4793   cat conftest.err >&5
4794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4795   (exit $ac_status); } &&
4796          { ac_try='test -z "$ac_c_werror_flag"
4797                          || test ! -s conftest.err'
4798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4799   (eval $ac_try) 2>&5
4800   ac_status=$?
4801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4802   (exit $ac_status); }; } &&
4803          { ac_try='test -s conftest.$ac_objext'
4804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4805   (eval $ac_try) 2>&5
4806   ac_status=$?
4807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4808   (exit $ac_status); }; }; then
4809   ac_cv_prog_cc_g=yes
4810 else
4811   echo "$as_me: failed program was:" >&5
4812 sed 's/^/| /' conftest.$ac_ext >&5
4813
4814 ac_cv_prog_cc_g=no
4815 fi
4816 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4817 fi
4818 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4819 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4820 if test "$ac_test_CFLAGS" = set; then
4821   CFLAGS=$ac_save_CFLAGS
4822 elif test $ac_cv_prog_cc_g = yes; then
4823   if test "$GCC" = yes; then
4824     CFLAGS="-g -O2"
4825   else
4826     CFLAGS="-g"
4827   fi
4828 else
4829   if test "$GCC" = yes; then
4830     CFLAGS="-O2"
4831   else
4832     CFLAGS=
4833   fi
4834 fi
4835 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4836 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4837 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4838   echo $ECHO_N "(cached) $ECHO_C" >&6
4839 else
4840   ac_cv_prog_cc_stdc=no
4841 ac_save_CC=$CC
4842 cat >conftest.$ac_ext <<_ACEOF
4843 /* confdefs.h.  */
4844 _ACEOF
4845 cat confdefs.h >>conftest.$ac_ext
4846 cat >>conftest.$ac_ext <<_ACEOF
4847 /* end confdefs.h.  */
4848 #include <stdarg.h>
4849 #include <stdio.h>
4850 #include <sys/types.h>
4851 #include <sys/stat.h>
4852 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4853 struct buf { int x; };
4854 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4855 static char *e (p, i)
4856      char **p;
4857      int i;
4858 {
4859   return p[i];
4860 }
4861 static char *f (char * (*g) (char **, int), char **p, ...)
4862 {
4863   char *s;
4864   va_list v;
4865   va_start (v,p);
4866   s = g (p, va_arg (v,int));
4867   va_end (v);
4868   return s;
4869 }
4870
4871 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4872    function prototypes and stuff, but not '\xHH' hex character constants.
4873    These don't provoke an error unfortunately, instead are silently treated
4874    as 'x'.  The following induces an error, until -std1 is added to get
4875    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4876    array size at least.  It's necessary to write '\x00'==0 to get something
4877    that's true only with -std1.  */
4878 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4879
4880 int test (int i, double x);
4881 struct s1 {int (*f) (int a);};
4882 struct s2 {int (*f) (double a);};
4883 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4884 int argc;
4885 char **argv;
4886 int
4887 main ()
4888 {
4889 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4890   ;
4891   return 0;
4892 }
4893 _ACEOF
4894 # Don't try gcc -ansi; that turns off useful extensions and
4895 # breaks some systems' header files.
4896 # AIX                   -qlanglvl=ansi
4897 # Ultrix and OSF/1      -std1
4898 # HP-UX 10.20 and later -Ae
4899 # HP-UX older versions  -Aa -D_HPUX_SOURCE
4900 # SVR4                  -Xc -D__EXTENSIONS__
4901 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4902 do
4903   CC="$ac_save_CC $ac_arg"
4904   rm -f conftest.$ac_objext
4905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4906   (eval $ac_compile) 2>conftest.er1
4907   ac_status=$?
4908   grep -v '^ *+' conftest.er1 >conftest.err
4909   rm -f conftest.er1
4910   cat conftest.err >&5
4911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4912   (exit $ac_status); } &&
4913          { ac_try='test -z "$ac_c_werror_flag"
4914                          || test ! -s conftest.err'
4915   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4916   (eval $ac_try) 2>&5
4917   ac_status=$?
4918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4919   (exit $ac_status); }; } &&
4920          { ac_try='test -s conftest.$ac_objext'
4921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4922   (eval $ac_try) 2>&5
4923   ac_status=$?
4924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4925   (exit $ac_status); }; }; then
4926   ac_cv_prog_cc_stdc=$ac_arg
4927 break
4928 else
4929   echo "$as_me: failed program was:" >&5
4930 sed 's/^/| /' conftest.$ac_ext >&5
4931
4932 fi
4933 rm -f conftest.err conftest.$ac_objext
4934 done
4935 rm -f conftest.$ac_ext conftest.$ac_objext
4936 CC=$ac_save_CC
4937
4938 fi
4939
4940 case "x$ac_cv_prog_cc_stdc" in
4941   x|xno)
4942     echo "$as_me:$LINENO: result: none needed" >&5
4943 echo "${ECHO_T}none needed" >&6 ;;
4944   *)
4945     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4946 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4947     CC="$CC $ac_cv_prog_cc_stdc" ;;
4948 esac
4949
4950 # Some people use a C++ compiler to compile C.  Since we use `exit',
4951 # in C++ we need to declare it.  In case someone uses the same compiler
4952 # for both compiling C and C++ we need to have the C++ compiler decide
4953 # the declaration of exit, since it's the most demanding environment.
4954 cat >conftest.$ac_ext <<_ACEOF
4955 #ifndef __cplusplus
4956   choke me
4957 #endif
4958 _ACEOF
4959 rm -f conftest.$ac_objext
4960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4961   (eval $ac_compile) 2>conftest.er1
4962   ac_status=$?
4963   grep -v '^ *+' conftest.er1 >conftest.err
4964   rm -f conftest.er1
4965   cat conftest.err >&5
4966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4967   (exit $ac_status); } &&
4968          { ac_try='test -z "$ac_c_werror_flag"
4969                          || test ! -s conftest.err'
4970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4971   (eval $ac_try) 2>&5
4972   ac_status=$?
4973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4974   (exit $ac_status); }; } &&
4975          { ac_try='test -s conftest.$ac_objext'
4976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4977   (eval $ac_try) 2>&5
4978   ac_status=$?
4979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4980   (exit $ac_status); }; }; then
4981   for ac_declaration in \
4982    '' \
4983    'extern "C" void std::exit (int) throw (); using std::exit;' \
4984    'extern "C" void std::exit (int); using std::exit;' \
4985    'extern "C" void exit (int) throw ();' \
4986    'extern "C" void exit (int);' \
4987    'void exit (int);'
4988 do
4989   cat >conftest.$ac_ext <<_ACEOF
4990 /* confdefs.h.  */
4991 _ACEOF
4992 cat confdefs.h >>conftest.$ac_ext
4993 cat >>conftest.$ac_ext <<_ACEOF
4994 /* end confdefs.h.  */
4995 $ac_declaration
4996 #include <stdlib.h>
4997 int
4998 main ()
4999 {
5000 exit (42);
5001   ;
5002   return 0;
5003 }
5004 _ACEOF
5005 rm -f conftest.$ac_objext
5006 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5007   (eval $ac_compile) 2>conftest.er1
5008   ac_status=$?
5009   grep -v '^ *+' conftest.er1 >conftest.err
5010   rm -f conftest.er1
5011   cat conftest.err >&5
5012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5013   (exit $ac_status); } &&
5014          { ac_try='test -z "$ac_c_werror_flag"
5015                          || test ! -s conftest.err'
5016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5017   (eval $ac_try) 2>&5
5018   ac_status=$?
5019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5020   (exit $ac_status); }; } &&
5021          { ac_try='test -s conftest.$ac_objext'
5022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5023   (eval $ac_try) 2>&5
5024   ac_status=$?
5025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5026   (exit $ac_status); }; }; then
5027   :
5028 else
5029   echo "$as_me: failed program was:" >&5
5030 sed 's/^/| /' conftest.$ac_ext >&5
5031
5032 continue
5033 fi
5034 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5035   cat >conftest.$ac_ext <<_ACEOF
5036 /* confdefs.h.  */
5037 _ACEOF
5038 cat confdefs.h >>conftest.$ac_ext
5039 cat >>conftest.$ac_ext <<_ACEOF
5040 /* end confdefs.h.  */
5041 $ac_declaration
5042 int
5043 main ()
5044 {
5045 exit (42);
5046   ;
5047   return 0;
5048 }
5049 _ACEOF
5050 rm -f conftest.$ac_objext
5051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5052   (eval $ac_compile) 2>conftest.er1
5053   ac_status=$?
5054   grep -v '^ *+' conftest.er1 >conftest.err
5055   rm -f conftest.er1
5056   cat conftest.err >&5
5057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5058   (exit $ac_status); } &&
5059          { ac_try='test -z "$ac_c_werror_flag"
5060                          || test ! -s conftest.err'
5061   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5062   (eval $ac_try) 2>&5
5063   ac_status=$?
5064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5065   (exit $ac_status); }; } &&
5066          { ac_try='test -s conftest.$ac_objext'
5067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5068   (eval $ac_try) 2>&5
5069   ac_status=$?
5070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5071   (exit $ac_status); }; }; then
5072   break
5073 else
5074   echo "$as_me: failed program was:" >&5
5075 sed 's/^/| /' conftest.$ac_ext >&5
5076
5077 fi
5078 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5079 done
5080 rm -f conftest*
5081 if test -n "$ac_declaration"; then
5082   echo '#ifdef __cplusplus' >>confdefs.h
5083   echo $ac_declaration      >>confdefs.h
5084   echo '#endif'             >>confdefs.h
5085 fi
5086
5087 else
5088   echo "$as_me: failed program was:" >&5
5089 sed 's/^/| /' conftest.$ac_ext >&5
5090
5091 fi
5092 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5093 ac_ext=c
5094 ac_cpp='$CPP $CPPFLAGS'
5095 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5096 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5097 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5098
5099 depcc="$CC"   am_compiler_list=
5100
5101 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5102 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5103 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5104   echo $ECHO_N "(cached) $ECHO_C" >&6
5105 else
5106   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5107   # We make a subdir and do the tests there.  Otherwise we can end up
5108   # making bogus files that we don't know about and never remove.  For
5109   # instance it was reported that on HP-UX the gcc test will end up
5110   # making a dummy file named `D' -- because `-MD' means `put the output
5111   # in D'.
5112   mkdir conftest.dir
5113   # Copy depcomp to subdir because otherwise we won't find it if we're
5114   # using a relative directory.
5115   cp "$am_depcomp" conftest.dir
5116   cd conftest.dir
5117   # We will build objects and dependencies in a subdirectory because
5118   # it helps to detect inapplicable dependency modes.  For instance
5119   # both Tru64's cc and ICC support -MD to output dependencies as a
5120   # side effect of compilation, but ICC will put the dependencies in
5121   # the current directory while Tru64 will put them in the object
5122   # directory.
5123   mkdir sub
5124
5125   am_cv_CC_dependencies_compiler_type=none
5126   if test "$am_compiler_list" = ""; then
5127      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5128   fi
5129   for depmode in $am_compiler_list; do
5130     # Setup a source with many dependencies, because some compilers
5131     # like to wrap large dependency lists on column 80 (with \), and
5132     # we should not choose a depcomp mode which is confused by this.
5133     #
5134     # We need to recreate these files for each test, as the compiler may
5135     # overwrite some of them when testing with obscure command lines.
5136     # This happens at least with the AIX C compiler.
5137     : > sub/conftest.c
5138     for i in 1 2 3 4 5 6; do
5139       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5140       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5141       # Solaris 8's {/usr,}/bin/sh.
5142       touch sub/conftst$i.h
5143     done
5144     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5145
5146     case $depmode in
5147     nosideeffect)
5148       # after this tag, mechanisms are not by side-effect, so they'll
5149       # only be used when explicitly requested
5150       if test "x$enable_dependency_tracking" = xyes; then
5151         continue
5152       else
5153         break
5154       fi
5155       ;;
5156     none) break ;;
5157     esac
5158     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5159     # mode.  It turns out that the SunPro C++ compiler does not properly
5160     # handle `-M -o', and we need to detect this.
5161     if depmode=$depmode \
5162        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5163        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5164        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5165          >/dev/null 2>conftest.err &&
5166        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5167        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5168        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5169       # icc doesn't choke on unknown options, it will just issue warnings
5170       # or remarks (even with -Werror).  So we grep stderr for any message
5171       # that says an option was ignored or not supported.
5172       # When given -MP, icc 7.0 and 7.1 complain thusly:
5173       #   icc: Command line warning: ignoring option '-M'; no argument required
5174       # The diagnosis changed in icc 8.0:
5175       #   icc: Command line remark: option '-MP' not supported
5176       if (grep 'ignoring option' conftest.err ||
5177           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5178         am_cv_CC_dependencies_compiler_type=$depmode
5179         break
5180       fi
5181     fi
5182   done
5183
5184   cd ..
5185   rm -rf conftest.dir
5186 else
5187   am_cv_CC_dependencies_compiler_type=none
5188 fi
5189
5190 fi
5191 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5192 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5193 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5194
5195
5196
5197 if
5198   test "x$enable_dependency_tracking" != xno \
5199   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5200   am__fastdepCC_TRUE=
5201   am__fastdepCC_FALSE='#'
5202 else
5203   am__fastdepCC_TRUE='#'
5204   am__fastdepCC_FALSE=
5205 fi
5206
5207
5208 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5209 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5210 if test "${lt_cv_path_SED+set}" = set; then
5211   echo $ECHO_N "(cached) $ECHO_C" >&6
5212 else
5213   # Loop through the user's path and test for sed and gsed.
5214 # Then use that list of sed's as ones to test for truncation.
5215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5216 for as_dir in $PATH
5217 do
5218   IFS=$as_save_IFS
5219   test -z "$as_dir" && as_dir=.
5220   for lt_ac_prog in sed gsed; do
5221     for ac_exec_ext in '' $ac_executable_extensions; do
5222       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5223         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5224       fi
5225     done
5226   done
5227 done
5228 lt_ac_max=0
5229 lt_ac_count=0
5230 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5231 # along with /bin/sed that truncates output.
5232 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5233   test ! -f $lt_ac_sed && continue
5234   cat /dev/null > conftest.in
5235   lt_ac_count=0
5236   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5237   # Check for GNU sed and select it if it is found.
5238   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5239     lt_cv_path_SED=$lt_ac_sed
5240     break
5241   fi
5242   while true; do
5243     cat conftest.in conftest.in >conftest.tmp
5244     mv conftest.tmp conftest.in
5245     cp conftest.in conftest.nl
5246     echo >>conftest.nl
5247     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5248     cmp -s conftest.out conftest.nl || break
5249     # 10000 chars as input seems more than enough
5250     test $lt_ac_count -gt 10 && break
5251     lt_ac_count=`expr $lt_ac_count + 1`
5252     if test $lt_ac_count -gt $lt_ac_max; then
5253       lt_ac_max=$lt_ac_count
5254       lt_cv_path_SED=$lt_ac_sed
5255     fi
5256   done
5257 done
5258
5259 fi
5260
5261 SED=$lt_cv_path_SED
5262 echo "$as_me:$LINENO: result: $SED" >&5
5263 echo "${ECHO_T}$SED" >&6
5264
5265 echo "$as_me:$LINENO: checking for egrep" >&5
5266 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5267 if test "${ac_cv_prog_egrep+set}" = set; then
5268   echo $ECHO_N "(cached) $ECHO_C" >&6
5269 else
5270   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5271     then ac_cv_prog_egrep='grep -E'
5272     else ac_cv_prog_egrep='egrep'
5273     fi
5274 fi
5275 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5276 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5277  EGREP=$ac_cv_prog_egrep
5278
5279
5280
5281 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5282 if test "${with_gnu_ld+set}" = set; then
5283   withval="$with_gnu_ld"
5284   test "$withval" = no || with_gnu_ld=yes
5285 else
5286   with_gnu_ld=no
5287 fi;
5288 ac_prog=ld
5289 if test "$GCC" = yes; then
5290   # Check if gcc -print-prog-name=ld gives a path.
5291   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5292 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5293   case $host in
5294   *-*-mingw*)
5295     # gcc leaves a trailing carriage return which upsets mingw
5296     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5297   *)
5298     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5299   esac
5300   case $ac_prog in
5301     # Accept absolute paths.
5302     [\\/]* | ?:[\\/]*)
5303       re_direlt='/[^/][^/]*/\.\./'
5304       # Canonicalize the pathname of ld
5305       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5306       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5307         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5308       done
5309       test -z "$LD" && LD="$ac_prog"
5310       ;;
5311   "")
5312     # If it fails, then pretend we aren't using GCC.
5313     ac_prog=ld
5314     ;;
5315   *)
5316     # If it is relative, then search for the first ld in PATH.
5317     with_gnu_ld=unknown
5318     ;;
5319   esac
5320 elif test "$with_gnu_ld" = yes; then
5321   echo "$as_me:$LINENO: checking for GNU ld" >&5
5322 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5323 else
5324   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5325 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5326 fi
5327 if test "${lt_cv_path_LD+set}" = set; then
5328   echo $ECHO_N "(cached) $ECHO_C" >&6
5329 else
5330   if test -z "$LD"; then
5331   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5332   for ac_dir in $PATH; do
5333     IFS="$lt_save_ifs"
5334     test -z "$ac_dir" && ac_dir=.
5335     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5336       lt_cv_path_LD="$ac_dir/$ac_prog"
5337       # Check to see if the program is GNU ld.  I'd rather use --version,
5338       # but apparently some GNU ld's only accept -v.
5339       # Break only if it was the GNU/non-GNU ld that we prefer.
5340       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5341       *GNU* | *'with BFD'*)
5342         test "$with_gnu_ld" != no && break
5343         ;;
5344       *)
5345         test "$with_gnu_ld" != yes && break
5346         ;;
5347       esac
5348     fi
5349   done
5350   IFS="$lt_save_ifs"
5351 else
5352   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5353 fi
5354 fi
5355
5356 LD="$lt_cv_path_LD"
5357 if test -n "$LD"; then
5358   echo "$as_me:$LINENO: result: $LD" >&5
5359 echo "${ECHO_T}$LD" >&6
5360 else
5361   echo "$as_me:$LINENO: result: no" >&5
5362 echo "${ECHO_T}no" >&6
5363 fi
5364 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5365 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5366    { (exit 1); exit 1; }; }
5367 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5368 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5369 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5370   echo $ECHO_N "(cached) $ECHO_C" >&6
5371 else
5372   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5373 case `$LD -v 2>&1 </dev/null` in
5374 *GNU* | *'with BFD'*)
5375   lt_cv_prog_gnu_ld=yes
5376   ;;
5377 *)
5378   lt_cv_prog_gnu_ld=no
5379   ;;
5380 esac
5381 fi
5382 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5383 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5384 with_gnu_ld=$lt_cv_prog_gnu_ld
5385
5386
5387 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5388 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5389 if test "${lt_cv_ld_reload_flag+set}" = set; then
5390   echo $ECHO_N "(cached) $ECHO_C" >&6
5391 else
5392   lt_cv_ld_reload_flag='-r'
5393 fi
5394 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5395 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5396 reload_flag=$lt_cv_ld_reload_flag
5397 case $reload_flag in
5398 "" | " "*) ;;
5399 *) reload_flag=" $reload_flag" ;;
5400 esac
5401 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5402 case $host_os in
5403   darwin*)
5404     if test "$GCC" = yes; then
5405       reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
5406     else
5407       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5408     fi
5409     ;;
5410 esac
5411
5412 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5413 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5414 if test "${lt_cv_path_NM+set}" = set; then
5415   echo $ECHO_N "(cached) $ECHO_C" >&6
5416 else
5417   if test -n "$NM"; then
5418   # Let the user override the test.
5419   lt_cv_path_NM="$NM"
5420 else
5421   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5422   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5423     IFS="$lt_save_ifs"
5424     test -z "$ac_dir" && ac_dir=.
5425     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
5426     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5427       # Check to see if the nm accepts a BSD-compat flag.
5428       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5429       #   nm: unknown option "B" ignored
5430       # Tru64's nm complains that /dev/null is an invalid object file
5431       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5432       */dev/null* | *'Invalid file or object type'*)
5433         lt_cv_path_NM="$tmp_nm -B"
5434         break
5435         ;;
5436       *)
5437         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5438         */dev/null*)
5439           lt_cv_path_NM="$tmp_nm -p"
5440           break
5441           ;;
5442         *)
5443           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5444           continue # so that we can try to find one that supports BSD flags
5445           ;;
5446         esac
5447       esac
5448     fi
5449   done
5450   IFS="$lt_save_ifs"
5451   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5452 fi
5453 fi
5454 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5455 echo "${ECHO_T}$lt_cv_path_NM" >&6
5456 NM="$lt_cv_path_NM"
5457
5458 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5459 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5460 LN_S=$as_ln_s
5461 if test "$LN_S" = "ln -s"; then
5462   echo "$as_me:$LINENO: result: yes" >&5
5463 echo "${ECHO_T}yes" >&6
5464 else
5465   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5466 echo "${ECHO_T}no, using $LN_S" >&6
5467 fi
5468
5469 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5470 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5471 if test "${lt_cv_deplibs_check_method+set}" = set; then
5472   echo $ECHO_N "(cached) $ECHO_C" >&6
5473 else
5474   lt_cv_file_magic_cmd='$MAGIC_CMD'
5475 lt_cv_file_magic_test_file=
5476 lt_cv_deplibs_check_method='unknown'
5477 # Need to set the preceding variable on all platforms that support
5478 # interlibrary dependencies.
5479 # 'none' -- dependencies not supported.
5480 # `unknown' -- same as none, but documents that we really don't know.
5481 # 'pass_all' -- all dependencies passed with no checks.
5482 # 'test_compile' -- check by making test program.
5483 # 'file_magic [[regex]]' -- check by looking for files in library path
5484 # which responds to the $file_magic_cmd with a given extended regex.
5485 # If you have `file' or equivalent on your system and you're not sure
5486 # whether `pass_all' will *always* work, you probably want this one.
5487
5488 case $host_os in
5489 aix4* | aix5*)
5490   lt_cv_deplibs_check_method=pass_all
5491   ;;
5492
5493 beos*)
5494   lt_cv_deplibs_check_method=pass_all
5495   ;;
5496
5497 bsdi[45]*)
5498   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5499   lt_cv_file_magic_cmd='/usr/bin/file -L'
5500   lt_cv_file_magic_test_file=/shlib/libc.so
5501   ;;
5502
5503 cygwin*)
5504   # func_win32_libid is a shell function defined in ltmain.sh
5505   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5506   lt_cv_file_magic_cmd='func_win32_libid'
5507   ;;
5508
5509 mingw* | pw32*)
5510   # Base MSYS/MinGW do not provide the 'file' command needed by
5511   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5512   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5513   lt_cv_file_magic_cmd='$OBJDUMP -f'
5514   ;;
5515
5516 darwin* | rhapsody*)
5517   lt_cv_deplibs_check_method=pass_all
5518   ;;
5519
5520 freebsd* | kfreebsd*-gnu | dragonfly*)
5521   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5522     case $host_cpu in
5523     i*86 )
5524       # Not sure whether the presence of OpenBSD here was a mistake.
5525       # Let's accept both of them until this is cleared up.
5526       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5527       lt_cv_file_magic_cmd=/usr/bin/file
5528       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5529       ;;
5530     esac
5531   else
5532     lt_cv_deplibs_check_method=pass_all
5533   fi
5534   ;;
5535
5536 gnu*)
5537   lt_cv_deplibs_check_method=pass_all
5538   ;;
5539
5540 hpux10.20* | hpux11*)
5541   lt_cv_file_magic_cmd=/usr/bin/file
5542   case "$host_cpu" in
5543   ia64*)
5544     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5545     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5546     ;;
5547   hppa*64*)
5548     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]'
5549     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5550     ;;
5551   *)
5552     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5553     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5554     ;;
5555   esac
5556   ;;
5557
5558 irix5* | irix6* | nonstopux*)
5559   case $LD in
5560   *-32|*"-32 ") libmagic=32-bit;;
5561   *-n32|*"-n32 ") libmagic=N32;;
5562   *-64|*"-64 ") libmagic=64-bit;;
5563   *) libmagic=never-match;;
5564   esac
5565   lt_cv_deplibs_check_method=pass_all
5566   ;;
5567
5568 # This must be Linux ELF.
5569 linux*)
5570   lt_cv_deplibs_check_method=pass_all
5571   ;;
5572
5573 netbsd*)
5574   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5575     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5576   else
5577     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5578   fi
5579   ;;
5580
5581 newos6*)
5582   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5583   lt_cv_file_magic_cmd=/usr/bin/file
5584   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5585   ;;
5586
5587 nto-qnx*)
5588   lt_cv_deplibs_check_method=unknown
5589   ;;
5590
5591 openbsd*)
5592   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5593     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5594   else
5595     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5596   fi
5597   ;;
5598
5599 osf3* | osf4* | osf5*)
5600   lt_cv_deplibs_check_method=pass_all
5601   ;;
5602
5603 sco3.2v5*)
5604   lt_cv_deplibs_check_method=pass_all
5605   ;;
5606
5607 solaris*)
5608   lt_cv_deplibs_check_method=pass_all
5609   ;;
5610
5611 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5612   case $host_vendor in
5613   motorola)
5614     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]'
5615     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5616     ;;
5617   ncr)
5618     lt_cv_deplibs_check_method=pass_all
5619     ;;
5620   sequent)
5621     lt_cv_file_magic_cmd='/bin/file'
5622     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5623     ;;
5624   sni)
5625     lt_cv_file_magic_cmd='/bin/file'
5626     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5627     lt_cv_file_magic_test_file=/lib/libc.so
5628     ;;
5629   siemens)
5630     lt_cv_deplibs_check_method=pass_all
5631     ;;
5632   esac
5633   ;;
5634
5635 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
5636   lt_cv_deplibs_check_method=pass_all
5637   ;;
5638 esac
5639
5640 fi
5641 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5642 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5643 file_magic_cmd=$lt_cv_file_magic_cmd
5644 deplibs_check_method=$lt_cv_deplibs_check_method
5645 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5646
5647
5648
5649
5650 # If no C compiler was specified, use CC.
5651 LTCC=${LTCC-"$CC"}
5652
5653 # Allow CC to be a program name with arguments.
5654 compiler=$CC
5655
5656
5657 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5658 if test "${enable_libtool_lock+set}" = set; then
5659   enableval="$enable_libtool_lock"
5660
5661 fi;
5662 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5663
5664 # Some flags need to be propagated to the compiler or linker for good
5665 # libtool support.
5666 case $host in
5667 ia64-*-hpux*)
5668   # Find out which ABI we are using.
5669   echo 'int i;' > conftest.$ac_ext
5670   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5671   (eval $ac_compile) 2>&5
5672   ac_status=$?
5673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5674   (exit $ac_status); }; then
5675     case `/usr/bin/file conftest.$ac_objext` in
5676     *ELF-32*)
5677       HPUX_IA64_MODE="32"
5678       ;;
5679     *ELF-64*)
5680       HPUX_IA64_MODE="64"
5681       ;;
5682     esac
5683   fi
5684   rm -rf conftest*
5685   ;;
5686 *-*-irix6*)
5687   # Find out which ABI we are using.
5688   echo '#line 5688 "configure"' > conftest.$ac_ext
5689   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5690   (eval $ac_compile) 2>&5
5691   ac_status=$?
5692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5693   (exit $ac_status); }; then
5694    if test "$lt_cv_prog_gnu_ld" = yes; then
5695     case `/usr/bin/file conftest.$ac_objext` in
5696     *32-bit*)
5697       LD="${LD-ld} -melf32bsmip"
5698       ;;
5699     *N32*)
5700       LD="${LD-ld} -melf32bmipn32"
5701       ;;
5702     *64-bit*)
5703       LD="${LD-ld} -melf64bmip"
5704       ;;
5705     esac
5706    else
5707     case `/usr/bin/file conftest.$ac_objext` in
5708     *32-bit*)
5709       LD="${LD-ld} -32"
5710       ;;
5711     *N32*)
5712       LD="${LD-ld} -n32"
5713       ;;
5714     *64-bit*)
5715       LD="${LD-ld} -64"
5716       ;;
5717     esac
5718    fi
5719   fi
5720   rm -rf conftest*
5721   ;;
5722
5723 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5724   # Find out which ABI we are using.
5725   echo 'int i;' > conftest.$ac_ext
5726   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5727   (eval $ac_compile) 2>&5
5728   ac_status=$?
5729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5730   (exit $ac_status); }; then
5731     case "`/usr/bin/file conftest.o`" in
5732     *32-bit*)
5733       case $host in
5734         x86_64-*linux*)
5735           LD="${LD-ld} -m elf_i386"
5736           ;;
5737         ppc64-*linux*|powerpc64-*linux*)
5738           LD="${LD-ld} -m elf32ppclinux"
5739           ;;
5740         s390x-*linux*)
5741           LD="${LD-ld} -m elf_s390"
5742           ;;
5743         sparc64-*linux*)
5744           LD="${LD-ld} -m elf32_sparc"
5745           ;;
5746       esac
5747       ;;
5748     *64-bit*)
5749       case $host in
5750         x86_64-*linux*)
5751           LD="${LD-ld} -m elf_x86_64"
5752           ;;
5753         ppc*-*linux*|powerpc*-*linux*)
5754           LD="${LD-ld} -m elf64ppc"
5755           ;;
5756         s390*-*linux*)
5757           LD="${LD-ld} -m elf64_s390"
5758           ;;
5759         sparc*-*linux*)
5760           LD="${LD-ld} -m elf64_sparc"
5761           ;;
5762       esac
5763       ;;
5764     esac
5765   fi
5766   rm -rf conftest*
5767   ;;
5768
5769 *-*-sco3.2v5*)
5770   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5771   SAVE_CFLAGS="$CFLAGS"
5772   CFLAGS="$CFLAGS -belf"
5773   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5774 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5775 if test "${lt_cv_cc_needs_belf+set}" = set; then
5776   echo $ECHO_N "(cached) $ECHO_C" >&6
5777 else
5778   ac_ext=c
5779 ac_cpp='$CPP $CPPFLAGS'
5780 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5781 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5782 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5783
5784      cat >conftest.$ac_ext <<_ACEOF
5785 /* confdefs.h.  */
5786 _ACEOF
5787 cat confdefs.h >>conftest.$ac_ext
5788 cat >>conftest.$ac_ext <<_ACEOF
5789 /* end confdefs.h.  */
5790
5791 int
5792 main ()
5793 {
5794
5795   ;
5796   return 0;
5797 }
5798 _ACEOF
5799 rm -f conftest.$ac_objext conftest$ac_exeext
5800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5801   (eval $ac_link) 2>conftest.er1
5802   ac_status=$?
5803   grep -v '^ *+' conftest.er1 >conftest.err
5804   rm -f conftest.er1
5805   cat conftest.err >&5
5806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5807   (exit $ac_status); } &&
5808          { ac_try='test -z "$ac_c_werror_flag"
5809                          || test ! -s conftest.err'
5810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5811   (eval $ac_try) 2>&5
5812   ac_status=$?
5813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5814   (exit $ac_status); }; } &&
5815          { ac_try='test -s conftest$ac_exeext'
5816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5817   (eval $ac_try) 2>&5
5818   ac_status=$?
5819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5820   (exit $ac_status); }; }; then
5821   lt_cv_cc_needs_belf=yes
5822 else
5823   echo "$as_me: failed program was:" >&5
5824 sed 's/^/| /' conftest.$ac_ext >&5
5825
5826 lt_cv_cc_needs_belf=no
5827 fi
5828 rm -f conftest.err conftest.$ac_objext \
5829       conftest$ac_exeext conftest.$ac_ext
5830      ac_ext=c
5831 ac_cpp='$CPP $CPPFLAGS'
5832 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5833 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5834 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5835
5836 fi
5837 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5838 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5839   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5840     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5841     CFLAGS="$SAVE_CFLAGS"
5842   fi
5843   ;;
5844 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
5845   if test -n "$ac_tool_prefix"; then
5846   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5847 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5848 echo "$as_me:$LINENO: checking for $ac_word" >&5
5849 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5850 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
5851   echo $ECHO_N "(cached) $ECHO_C" >&6
5852 else
5853   if test -n "$DLLTOOL"; then
5854   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5855 else
5856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5857 for as_dir in $PATH
5858 do
5859   IFS=$as_save_IFS
5860   test -z "$as_dir" && as_dir=.
5861   for ac_exec_ext in '' $ac_executable_extensions; do
5862   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5863     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5864     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5865     break 2
5866   fi
5867 done
5868 done
5869
5870 fi
5871 fi
5872 DLLTOOL=$ac_cv_prog_DLLTOOL
5873 if test -n "$DLLTOOL"; then
5874   echo "$as_me:$LINENO: result: $DLLTOOL" >&5
5875 echo "${ECHO_T}$DLLTOOL" >&6
5876 else
5877   echo "$as_me:$LINENO: result: no" >&5
5878 echo "${ECHO_T}no" >&6
5879 fi
5880
5881 fi
5882 if test -z "$ac_cv_prog_DLLTOOL"; then
5883   ac_ct_DLLTOOL=$DLLTOOL
5884   # Extract the first word of "dlltool", so it can be a program name with args.
5885 set dummy dlltool; ac_word=$2
5886 echo "$as_me:$LINENO: checking for $ac_word" >&5
5887 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5888 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
5889   echo $ECHO_N "(cached) $ECHO_C" >&6
5890 else
5891   if test -n "$ac_ct_DLLTOOL"; then
5892   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5893 else
5894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5895 for as_dir in $PATH
5896 do
5897   IFS=$as_save_IFS
5898   test -z "$as_dir" && as_dir=.
5899   for ac_exec_ext in '' $ac_executable_extensions; do
5900   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5901     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5902     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5903     break 2
5904   fi
5905 done
5906 done
5907
5908   test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
5909 fi
5910 fi
5911 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5912 if test -n "$ac_ct_DLLTOOL"; then
5913   echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
5914 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
5915 else
5916   echo "$as_me:$LINENO: result: no" >&5
5917 echo "${ECHO_T}no" >&6
5918 fi
5919
5920   DLLTOOL=$ac_ct_DLLTOOL
5921 else
5922   DLLTOOL="$ac_cv_prog_DLLTOOL"
5923 fi
5924
5925   if test -n "$ac_tool_prefix"; then
5926   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5927 set dummy ${ac_tool_prefix}as; ac_word=$2
5928 echo "$as_me:$LINENO: checking for $ac_word" >&5
5929 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5930 if test "${ac_cv_prog_AS+set}" = set; then
5931   echo $ECHO_N "(cached) $ECHO_C" >&6
5932 else
5933   if test -n "$AS"; then
5934   ac_cv_prog_AS="$AS" # Let the user override the test.
5935 else
5936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5937 for as_dir in $PATH
5938 do
5939   IFS=$as_save_IFS
5940   test -z "$as_dir" && as_dir=.
5941   for ac_exec_ext in '' $ac_executable_extensions; do
5942   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5943     ac_cv_prog_AS="${ac_tool_prefix}as"
5944     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5945     break 2
5946   fi
5947 done
5948 done
5949
5950 fi
5951 fi
5952 AS=$ac_cv_prog_AS
5953 if test -n "$AS"; then
5954   echo "$as_me:$LINENO: result: $AS" >&5
5955 echo "${ECHO_T}$AS" >&6
5956 else
5957   echo "$as_me:$LINENO: result: no" >&5
5958 echo "${ECHO_T}no" >&6
5959 fi
5960
5961 fi
5962 if test -z "$ac_cv_prog_AS"; then
5963   ac_ct_AS=$AS
5964   # Extract the first word of "as", so it can be a program name with args.
5965 set dummy as; ac_word=$2
5966 echo "$as_me:$LINENO: checking for $ac_word" >&5
5967 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5968 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
5969   echo $ECHO_N "(cached) $ECHO_C" >&6
5970 else
5971   if test -n "$ac_ct_AS"; then
5972   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5973 else
5974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5975 for as_dir in $PATH
5976 do
5977   IFS=$as_save_IFS
5978   test -z "$as_dir" && as_dir=.
5979   for ac_exec_ext in '' $ac_executable_extensions; do
5980   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5981     ac_cv_prog_ac_ct_AS="as"
5982     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5983     break 2
5984   fi
5985 done
5986 done
5987
5988   test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
5989 fi
5990 fi
5991 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5992 if test -n "$ac_ct_AS"; then
5993   echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
5994 echo "${ECHO_T}$ac_ct_AS" >&6
5995 else
5996   echo "$as_me:$LINENO: result: no" >&5
5997 echo "${ECHO_T}no" >&6
5998 fi
5999
6000   AS=$ac_ct_AS
6001 else
6002   AS="$ac_cv_prog_AS"
6003 fi
6004
6005   if test -n "$ac_tool_prefix"; then
6006   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6007 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6008 echo "$as_me:$LINENO: checking for $ac_word" >&5
6009 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6010 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6011   echo $ECHO_N "(cached) $ECHO_C" >&6
6012 else
6013   if test -n "$OBJDUMP"; then
6014   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6015 else
6016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6017 for as_dir in $PATH
6018 do
6019   IFS=$as_save_IFS
6020   test -z "$as_dir" && as_dir=.
6021   for ac_exec_ext in '' $ac_executable_extensions; do
6022   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6023     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6024     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6025     break 2
6026   fi
6027 done
6028 done
6029
6030 fi
6031 fi
6032 OBJDUMP=$ac_cv_prog_OBJDUMP
6033 if test -n "$OBJDUMP"; then
6034   echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6035 echo "${ECHO_T}$OBJDUMP" >&6
6036 else
6037   echo "$as_me:$LINENO: result: no" >&5
6038 echo "${ECHO_T}no" >&6
6039 fi
6040
6041 fi
6042 if test -z "$ac_cv_prog_OBJDUMP"; then
6043   ac_ct_OBJDUMP=$OBJDUMP
6044   # Extract the first word of "objdump", so it can be a program name with args.
6045 set dummy objdump; ac_word=$2
6046 echo "$as_me:$LINENO: checking for $ac_word" >&5
6047 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6048 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6049   echo $ECHO_N "(cached) $ECHO_C" >&6
6050 else
6051   if test -n "$ac_ct_OBJDUMP"; then
6052   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6053 else
6054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6055 for as_dir in $PATH
6056 do
6057   IFS=$as_save_IFS
6058   test -z "$as_dir" && as_dir=.
6059   for ac_exec_ext in '' $ac_executable_extensions; do
6060   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6061     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6062     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6063     break 2
6064   fi
6065 done
6066 done
6067
6068   test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
6069 fi
6070 fi
6071 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6072 if test -n "$ac_ct_OBJDUMP"; then
6073   echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6074 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
6075 else
6076   echo "$as_me:$LINENO: result: no" >&5
6077 echo "${ECHO_T}no" >&6
6078 fi
6079
6080   OBJDUMP=$ac_ct_OBJDUMP
6081 else
6082   OBJDUMP="$ac_cv_prog_OBJDUMP"
6083 fi
6084
6085   ;;
6086
6087 esac
6088
6089 need_locks="$enable_libtool_lock"
6090
6091
6092 ac_ext=c
6093 ac_cpp='$CPP $CPPFLAGS'
6094 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6095 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6096 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6097 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6098 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6099 # On Suns, sometimes $CPP names a directory.
6100 if test -n "$CPP" && test -d "$CPP"; then
6101   CPP=
6102 fi
6103 if test -z "$CPP"; then
6104   if test "${ac_cv_prog_CPP+set}" = set; then
6105   echo $ECHO_N "(cached) $ECHO_C" >&6
6106 else
6107       # Double quotes because CPP needs to be expanded
6108     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6109     do
6110       ac_preproc_ok=false
6111 for ac_c_preproc_warn_flag in '' yes
6112 do
6113   # Use a header file that comes with gcc, so configuring glibc
6114   # with a fresh cross-compiler works.
6115   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6116   # <limits.h> exists even on freestanding compilers.
6117   # On the NeXT, cc -E runs the code through the compiler's parser,
6118   # not just through cpp. "Syntax error" is here to catch this case.
6119   cat >conftest.$ac_ext <<_ACEOF
6120 /* confdefs.h.  */
6121 _ACEOF
6122 cat confdefs.h >>conftest.$ac_ext
6123 cat >>conftest.$ac_ext <<_ACEOF
6124 /* end confdefs.h.  */
6125 #ifdef __STDC__
6126 # include <limits.h>
6127 #else
6128 # include <assert.h>
6129 #endif
6130                      Syntax error
6131 _ACEOF
6132 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6133   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6134   ac_status=$?
6135   grep -v '^ *+' conftest.er1 >conftest.err
6136   rm -f conftest.er1
6137   cat conftest.err >&5
6138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6139   (exit $ac_status); } >/dev/null; then
6140   if test -s conftest.err; then
6141     ac_cpp_err=$ac_c_preproc_warn_flag
6142     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6143   else
6144     ac_cpp_err=
6145   fi
6146 else
6147   ac_cpp_err=yes
6148 fi
6149 if test -z "$ac_cpp_err"; then
6150   :
6151 else
6152   echo "$as_me: failed program was:" >&5
6153 sed 's/^/| /' conftest.$ac_ext >&5
6154
6155   # Broken: fails on valid input.
6156 continue
6157 fi
6158 rm -f conftest.err conftest.$ac_ext
6159
6160   # OK, works on sane cases.  Now check whether non-existent headers
6161   # can be detected and how.
6162   cat >conftest.$ac_ext <<_ACEOF
6163 /* confdefs.h.  */
6164 _ACEOF
6165 cat confdefs.h >>conftest.$ac_ext
6166 cat >>conftest.$ac_ext <<_ACEOF
6167 /* end confdefs.h.  */
6168 #include <ac_nonexistent.h>
6169 _ACEOF
6170 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6171   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6172   ac_status=$?
6173   grep -v '^ *+' conftest.er1 >conftest.err
6174   rm -f conftest.er1
6175   cat conftest.err >&5
6176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6177   (exit $ac_status); } >/dev/null; then
6178   if test -s conftest.err; then
6179     ac_cpp_err=$ac_c_preproc_warn_flag
6180     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6181   else
6182     ac_cpp_err=
6183   fi
6184 else
6185   ac_cpp_err=yes
6186 fi
6187 if test -z "$ac_cpp_err"; then
6188   # Broken: success on invalid input.
6189 continue
6190 else
6191   echo "$as_me: failed program was:" >&5
6192 sed 's/^/| /' conftest.$ac_ext >&5
6193
6194   # Passes both tests.
6195 ac_preproc_ok=:
6196 break
6197 fi
6198 rm -f conftest.err conftest.$ac_ext
6199
6200 done
6201 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6202 rm -f conftest.err conftest.$ac_ext
6203 if $ac_preproc_ok; then
6204   break
6205 fi
6206
6207     done
6208     ac_cv_prog_CPP=$CPP
6209
6210 fi
6211   CPP=$ac_cv_prog_CPP
6212 else
6213   ac_cv_prog_CPP=$CPP
6214 fi
6215 echo "$as_me:$LINENO: result: $CPP" >&5
6216 echo "${ECHO_T}$CPP" >&6
6217 ac_preproc_ok=false
6218 for ac_c_preproc_warn_flag in '' yes
6219 do
6220   # Use a header file that comes with gcc, so configuring glibc
6221   # with a fresh cross-compiler works.
6222   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6223   # <limits.h> exists even on freestanding compilers.
6224   # On the NeXT, cc -E runs the code through the compiler's parser,
6225   # not just through cpp. "Syntax error" is here to catch this case.
6226   cat >conftest.$ac_ext <<_ACEOF
6227 /* confdefs.h.  */
6228 _ACEOF
6229 cat confdefs.h >>conftest.$ac_ext
6230 cat >>conftest.$ac_ext <<_ACEOF
6231 /* end confdefs.h.  */
6232 #ifdef __STDC__
6233 # include <limits.h>
6234 #else
6235 # include <assert.h>
6236 #endif
6237                      Syntax error
6238 _ACEOF
6239 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6240   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6241   ac_status=$?
6242   grep -v '^ *+' conftest.er1 >conftest.err
6243   rm -f conftest.er1
6244   cat conftest.err >&5
6245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6246   (exit $ac_status); } >/dev/null; then
6247   if test -s conftest.err; then
6248     ac_cpp_err=$ac_c_preproc_warn_flag
6249     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6250   else
6251     ac_cpp_err=
6252   fi
6253 else
6254   ac_cpp_err=yes
6255 fi
6256 if test -z "$ac_cpp_err"; then
6257   :
6258 else
6259   echo "$as_me: failed program was:" >&5
6260 sed 's/^/| /' conftest.$ac_ext >&5
6261
6262   # Broken: fails on valid input.
6263 continue
6264 fi
6265 rm -f conftest.err conftest.$ac_ext
6266
6267   # OK, works on sane cases.  Now check whether non-existent headers
6268   # can be detected and how.
6269   cat >conftest.$ac_ext <<_ACEOF
6270 /* confdefs.h.  */
6271 _ACEOF
6272 cat confdefs.h >>conftest.$ac_ext
6273 cat >>conftest.$ac_ext <<_ACEOF
6274 /* end confdefs.h.  */
6275 #include <ac_nonexistent.h>
6276 _ACEOF
6277 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6278   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6279   ac_status=$?
6280   grep -v '^ *+' conftest.er1 >conftest.err
6281   rm -f conftest.er1
6282   cat conftest.err >&5
6283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6284   (exit $ac_status); } >/dev/null; then
6285   if test -s conftest.err; then
6286     ac_cpp_err=$ac_c_preproc_warn_flag
6287     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6288   else
6289     ac_cpp_err=
6290   fi
6291 else
6292   ac_cpp_err=yes
6293 fi
6294 if test -z "$ac_cpp_err"; then
6295   # Broken: success on invalid input.
6296 continue
6297 else
6298   echo "$as_me: failed program was:" >&5
6299 sed 's/^/| /' conftest.$ac_ext >&5
6300
6301   # Passes both tests.
6302 ac_preproc_ok=:
6303 break
6304 fi
6305 rm -f conftest.err conftest.$ac_ext
6306
6307 done
6308 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6309 rm -f conftest.err conftest.$ac_ext
6310 if $ac_preproc_ok; then
6311   :
6312 else
6313   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6314 See \`config.log' for more details." >&5
6315 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6316 See \`config.log' for more details." >&2;}
6317    { (exit 1); exit 1; }; }
6318 fi
6319
6320 ac_ext=c
6321 ac_cpp='$CPP $CPPFLAGS'
6322 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6323 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6324 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6325
6326
6327 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6328 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6329 if test "${ac_cv_header_stdc+set}" = set; then
6330   echo $ECHO_N "(cached) $ECHO_C" >&6
6331 else
6332   cat >conftest.$ac_ext <<_ACEOF
6333 /* confdefs.h.  */
6334 _ACEOF
6335 cat confdefs.h >>conftest.$ac_ext
6336 cat >>conftest.$ac_ext <<_ACEOF
6337 /* end confdefs.h.  */
6338 #include <stdlib.h>
6339 #include <stdarg.h>
6340 #include <string.h>
6341 #include <float.h>
6342
6343 int
6344 main ()
6345 {
6346
6347   ;
6348   return 0;
6349 }
6350 _ACEOF
6351 rm -f conftest.$ac_objext
6352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6353   (eval $ac_compile) 2>conftest.er1
6354   ac_status=$?
6355   grep -v '^ *+' conftest.er1 >conftest.err
6356   rm -f conftest.er1
6357   cat conftest.err >&5
6358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6359   (exit $ac_status); } &&
6360          { ac_try='test -z "$ac_c_werror_flag"
6361                          || test ! -s conftest.err'
6362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6363   (eval $ac_try) 2>&5
6364   ac_status=$?
6365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6366   (exit $ac_status); }; } &&
6367          { ac_try='test -s conftest.$ac_objext'
6368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6369   (eval $ac_try) 2>&5
6370   ac_status=$?
6371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6372   (exit $ac_status); }; }; then
6373   ac_cv_header_stdc=yes
6374 else
6375   echo "$as_me: failed program was:" >&5
6376 sed 's/^/| /' conftest.$ac_ext >&5
6377
6378 ac_cv_header_stdc=no
6379 fi
6380 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6381
6382 if test $ac_cv_header_stdc = yes; then
6383   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6384   cat >conftest.$ac_ext <<_ACEOF
6385 /* confdefs.h.  */
6386 _ACEOF
6387 cat confdefs.h >>conftest.$ac_ext
6388 cat >>conftest.$ac_ext <<_ACEOF
6389 /* end confdefs.h.  */
6390 #include <string.h>
6391
6392 _ACEOF
6393 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6394   $EGREP "memchr" >/dev/null 2>&1; then
6395   :
6396 else
6397   ac_cv_header_stdc=no
6398 fi
6399 rm -f conftest*
6400
6401 fi
6402
6403 if test $ac_cv_header_stdc = yes; then
6404   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6405   cat >conftest.$ac_ext <<_ACEOF
6406 /* confdefs.h.  */
6407 _ACEOF
6408 cat confdefs.h >>conftest.$ac_ext
6409 cat >>conftest.$ac_ext <<_ACEOF
6410 /* end confdefs.h.  */
6411 #include <stdlib.h>
6412
6413 _ACEOF
6414 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6415   $EGREP "free" >/dev/null 2>&1; then
6416   :
6417 else
6418   ac_cv_header_stdc=no
6419 fi
6420 rm -f conftest*
6421
6422 fi
6423
6424 if test $ac_cv_header_stdc = yes; then
6425   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6426   if test "$cross_compiling" = yes; then
6427   :
6428 else
6429   cat >conftest.$ac_ext <<_ACEOF
6430 /* confdefs.h.  */
6431 _ACEOF
6432 cat confdefs.h >>conftest.$ac_ext
6433 cat >>conftest.$ac_ext <<_ACEOF
6434 /* end confdefs.h.  */
6435 #include <ctype.h>
6436 #if ((' ' & 0x0FF) == 0x020)
6437 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6438 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6439 #else
6440 # define ISLOWER(c) \
6441                    (('a' <= (c) && (c) <= 'i') \
6442                      || ('j' <= (c) && (c) <= 'r') \
6443                      || ('s' <= (c) && (c) <= 'z'))
6444 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6445 #endif
6446
6447 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6448 int
6449 main ()
6450 {
6451   int i;
6452   for (i = 0; i < 256; i++)
6453     if (XOR (islower (i), ISLOWER (i))
6454         || toupper (i) != TOUPPER (i))
6455       exit(2);
6456   exit (0);
6457 }
6458 _ACEOF
6459 rm -f conftest$ac_exeext
6460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6461   (eval $ac_link) 2>&5
6462   ac_status=$?
6463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6464   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6466   (eval $ac_try) 2>&5
6467   ac_status=$?
6468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6469   (exit $ac_status); }; }; then
6470   :
6471 else
6472   echo "$as_me: program exited with status $ac_status" >&5
6473 echo "$as_me: failed program was:" >&5
6474 sed 's/^/| /' conftest.$ac_ext >&5
6475
6476 ( exit $ac_status )
6477 ac_cv_header_stdc=no
6478 fi
6479 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6480 fi
6481 fi
6482 fi
6483 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6484 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6485 if test $ac_cv_header_stdc = yes; then
6486
6487 cat >>confdefs.h <<\_ACEOF
6488 #define STDC_HEADERS 1
6489 _ACEOF
6490
6491 fi
6492
6493 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6504                   inttypes.h stdint.h unistd.h
6505 do
6506 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6507 echo "$as_me:$LINENO: checking for $ac_header" >&5
6508 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6509 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6510   echo $ECHO_N "(cached) $ECHO_C" >&6
6511 else
6512   cat >conftest.$ac_ext <<_ACEOF
6513 /* confdefs.h.  */
6514 _ACEOF
6515 cat confdefs.h >>conftest.$ac_ext
6516 cat >>conftest.$ac_ext <<_ACEOF
6517 /* end confdefs.h.  */
6518 $ac_includes_default
6519
6520 #include <$ac_header>
6521 _ACEOF
6522 rm -f conftest.$ac_objext
6523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6524   (eval $ac_compile) 2>conftest.er1
6525   ac_status=$?
6526   grep -v '^ *+' conftest.er1 >conftest.err
6527   rm -f conftest.er1
6528   cat conftest.err >&5
6529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6530   (exit $ac_status); } &&
6531          { ac_try='test -z "$ac_c_werror_flag"
6532                          || test ! -s conftest.err'
6533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6534   (eval $ac_try) 2>&5
6535   ac_status=$?
6536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6537   (exit $ac_status); }; } &&
6538          { ac_try='test -s conftest.$ac_objext'
6539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6540   (eval $ac_try) 2>&5
6541   ac_status=$?
6542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6543   (exit $ac_status); }; }; then
6544   eval "$as_ac_Header=yes"
6545 else
6546   echo "$as_me: failed program was:" >&5
6547 sed 's/^/| /' conftest.$ac_ext >&5
6548
6549 eval "$as_ac_Header=no"
6550 fi
6551 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6552 fi
6553 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6554 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6555 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6556   cat >>confdefs.h <<_ACEOF
6557 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6558 _ACEOF
6559
6560 fi
6561
6562 done
6563
6564
6565
6566 for ac_header in dlfcn.h
6567 do
6568 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6569 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6570   echo "$as_me:$LINENO: checking for $ac_header" >&5
6571 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6572 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6573   echo $ECHO_N "(cached) $ECHO_C" >&6
6574 fi
6575 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6576 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6577 else
6578   # Is the header compilable?
6579 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6580 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6581 cat >conftest.$ac_ext <<_ACEOF
6582 /* confdefs.h.  */
6583 _ACEOF
6584 cat confdefs.h >>conftest.$ac_ext
6585 cat >>conftest.$ac_ext <<_ACEOF
6586 /* end confdefs.h.  */
6587 $ac_includes_default
6588 #include <$ac_header>
6589 _ACEOF
6590 rm -f conftest.$ac_objext
6591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6592   (eval $ac_compile) 2>conftest.er1
6593   ac_status=$?
6594   grep -v '^ *+' conftest.er1 >conftest.err
6595   rm -f conftest.er1
6596   cat conftest.err >&5
6597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6598   (exit $ac_status); } &&
6599          { ac_try='test -z "$ac_c_werror_flag"
6600                          || test ! -s conftest.err'
6601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6602   (eval $ac_try) 2>&5
6603   ac_status=$?
6604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6605   (exit $ac_status); }; } &&
6606          { ac_try='test -s conftest.$ac_objext'
6607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6608   (eval $ac_try) 2>&5
6609   ac_status=$?
6610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6611   (exit $ac_status); }; }; then
6612   ac_header_compiler=yes
6613 else
6614   echo "$as_me: failed program was:" >&5
6615 sed 's/^/| /' conftest.$ac_ext >&5
6616
6617 ac_header_compiler=no
6618 fi
6619 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6620 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6621 echo "${ECHO_T}$ac_header_compiler" >&6
6622
6623 # Is the header present?
6624 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6625 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6626 cat >conftest.$ac_ext <<_ACEOF
6627 /* confdefs.h.  */
6628 _ACEOF
6629 cat confdefs.h >>conftest.$ac_ext
6630 cat >>conftest.$ac_ext <<_ACEOF
6631 /* end confdefs.h.  */
6632 #include <$ac_header>
6633 _ACEOF
6634 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6635   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6636   ac_status=$?
6637   grep -v '^ *+' conftest.er1 >conftest.err
6638   rm -f conftest.er1
6639   cat conftest.err >&5
6640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6641   (exit $ac_status); } >/dev/null; then
6642   if test -s conftest.err; then
6643     ac_cpp_err=$ac_c_preproc_warn_flag
6644     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6645   else
6646     ac_cpp_err=
6647   fi
6648 else
6649   ac_cpp_err=yes
6650 fi
6651 if test -z "$ac_cpp_err"; then
6652   ac_header_preproc=yes
6653 else
6654   echo "$as_me: failed program was:" >&5
6655 sed 's/^/| /' conftest.$ac_ext >&5
6656
6657   ac_header_preproc=no
6658 fi
6659 rm -f conftest.err conftest.$ac_ext
6660 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6661 echo "${ECHO_T}$ac_header_preproc" >&6
6662
6663 # So?  What about this header?
6664 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6665   yes:no: )
6666     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6667 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6668     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6669 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6670     ac_header_preproc=yes
6671     ;;
6672   no:yes:* )
6673     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6674 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6675     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6676 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6677     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6678 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6679     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6680 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6681     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6682 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6683     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6684 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6685     (
6686       cat <<\_ASBOX
6687 ## ------------------------------------------ ##
6688 ## Report this to the AC_PACKAGE_NAME lists.  ##
6689 ## ------------------------------------------ ##
6690 _ASBOX
6691     ) |
6692       sed "s/^/$as_me: WARNING:     /" >&2
6693     ;;
6694 esac
6695 echo "$as_me:$LINENO: checking for $ac_header" >&5
6696 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6697 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6698   echo $ECHO_N "(cached) $ECHO_C" >&6
6699 else
6700   eval "$as_ac_Header=\$ac_header_preproc"
6701 fi
6702 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6703 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6704
6705 fi
6706 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6707   cat >>confdefs.h <<_ACEOF
6708 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6709 _ACEOF
6710
6711 fi
6712
6713 done
6714
6715
6716 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6717
6718 # find the maximum length of command line arguments
6719 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6720 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6721 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6722   echo $ECHO_N "(cached) $ECHO_C" >&6
6723 else
6724     i=0
6725   teststring="ABCD"
6726
6727   case $build_os in
6728   msdosdjgpp*)
6729     # On DJGPP, this test can blow up pretty badly due to problems in libc
6730     # (any single argument exceeding 2000 bytes causes a buffer overrun
6731     # during glob expansion).  Even if it were fixed, the result of this
6732     # check would be larger than it should be.
6733     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6734     ;;
6735
6736   gnu*)
6737     # Under GNU Hurd, this test is not required because there is
6738     # no limit to the length of command line arguments.
6739     # Libtool will interpret -1 as no limit whatsoever
6740     lt_cv_sys_max_cmd_len=-1;
6741     ;;
6742
6743   cygwin* | mingw*)
6744     # On Win9x/ME, this test blows up -- it succeeds, but takes
6745     # about 5 minutes as the teststring grows exponentially.
6746     # Worse, since 9x/ME are not pre-emptively multitasking,
6747     # you end up with a "frozen" computer, even though with patience
6748     # the test eventually succeeds (with a max line length of 256k).
6749     # Instead, let's just punt: use the minimum linelength reported by
6750     # all of the supported platforms: 8192 (on NT/2K/XP).
6751     lt_cv_sys_max_cmd_len=8192;
6752     ;;
6753
6754   amigaos*)
6755     # On AmigaOS with pdksh, this test takes hours, literally.
6756     # So we just punt and use a minimum line length of 8192.
6757     lt_cv_sys_max_cmd_len=8192;
6758     ;;
6759
6760   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6761     # This has been around since 386BSD, at least.  Likely further.
6762     if test -x /sbin/sysctl; then
6763       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6764     elif test -x /usr/sbin/sysctl; then
6765       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6766     else
6767       lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
6768     fi
6769     # And add a safety zone
6770     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6771     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6772     ;;
6773   osf*)
6774     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6775     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6776     # nice to cause kernel panics so lets avoid the loop below.
6777     # First set a reasonable default.
6778     lt_cv_sys_max_cmd_len=16384
6779     #
6780     if test -x /sbin/sysconfig; then
6781       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6782         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6783       esac
6784     fi
6785     ;;
6786   *)
6787     # If test is not a shell built-in, we'll probably end up computing a
6788     # maximum length that is only half of the actual maximum length, but
6789     # we can't tell.
6790     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6791     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6792                = "XX$teststring") >/dev/null 2>&1 &&
6793             new_result=`expr "X$teststring" : ".*" 2>&1` &&
6794             lt_cv_sys_max_cmd_len=$new_result &&
6795             test $i != 17 # 1/2 MB should be enough
6796     do
6797       i=`expr $i + 1`
6798       teststring=$teststring$teststring
6799     done
6800     teststring=
6801     # Add a significant safety factor because C++ compilers can tack on massive
6802     # amounts of additional arguments before passing them to the linker.
6803     # It appears as though 1/2 is a usable value.
6804     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6805     ;;
6806   esac
6807
6808 fi
6809
6810 if test -n $lt_cv_sys_max_cmd_len ; then
6811   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6812 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6813 else
6814   echo "$as_me:$LINENO: result: none" >&5
6815 echo "${ECHO_T}none" >&6
6816 fi
6817
6818
6819
6820
6821 # Check for command to grab the raw symbol name followed by C symbol from nm.
6822 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6823 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6824 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6825   echo $ECHO_N "(cached) $ECHO_C" >&6
6826 else
6827
6828 # These are sane defaults that work on at least a few old systems.
6829 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6830
6831 # Character class describing NM global symbol codes.
6832 symcode='[BCDEGRST]'
6833
6834 # Regexp to match symbols that can be accessed directly from C.
6835 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6836
6837 # Transform an extracted symbol line into a proper C declaration
6838 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6839
6840 # Transform an extracted symbol line into symbol name and symbol address
6841 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'"
6842
6843 # Define system-specific variables.
6844 case $host_os in
6845 aix*)
6846   symcode='[BCDT]'
6847   ;;
6848 cygwin* | mingw* | pw32*)
6849   symcode='[ABCDGISTW]'
6850   ;;
6851 hpux*) # Its linker distinguishes data from code symbols
6852   if test "$host_cpu" = ia64; then
6853     symcode='[ABCDEGRST]'
6854   fi
6855   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6856   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'"
6857   ;;
6858 linux*)
6859   if test "$host_cpu" = ia64; then
6860     symcode='[ABCDGIRSTW]'
6861     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6862     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'"
6863   fi
6864   ;;
6865 irix* | nonstopux*)
6866   symcode='[BCDEGRST]'
6867   ;;
6868 osf*)
6869   symcode='[BCDEGQRST]'
6870   ;;
6871 solaris* | sysv5*)
6872   symcode='[BDRT]'
6873   ;;
6874 sysv4)
6875   symcode='[DFNSTU]'
6876   ;;
6877 esac
6878
6879 # Handle CRLF in mingw tool chain
6880 opt_cr=
6881 case $build_os in
6882 mingw*)
6883   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6884   ;;
6885 esac
6886
6887 # If we're using GNU nm, then use its standard symbol codes.
6888 case `$NM -V 2>&1` in
6889 *GNU* | *'with BFD'*)
6890   symcode='[ABCDGIRSTW]' ;;
6891 esac
6892
6893 # Try without a prefix undercore, then with it.
6894 for ac_symprfx in "" "_"; do
6895
6896   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6897   symxfrm="\\1 $ac_symprfx\\2 \\2"
6898
6899   # Write the raw and C identifiers.
6900   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6901
6902   # Check to see that the pipe works correctly.
6903   pipe_works=no
6904
6905   rm -f conftest*
6906   cat > conftest.$ac_ext <<EOF
6907 #ifdef __cplusplus
6908 extern "C" {
6909 #endif
6910 char nm_test_var;
6911 void nm_test_func(){}
6912 #ifdef __cplusplus
6913 }
6914 #endif
6915 int main(){nm_test_var='a';nm_test_func();return(0);}
6916 EOF
6917
6918   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6919   (eval $ac_compile) 2>&5
6920   ac_status=$?
6921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6922   (exit $ac_status); }; then
6923     # Now try to grab the symbols.
6924     nlist=conftest.nm
6925     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6926   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6927   ac_status=$?
6928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6929   (exit $ac_status); } && test -s "$nlist"; then
6930       # Try sorting and uniquifying the output.
6931       if sort "$nlist" | uniq > "$nlist"T; then
6932         mv -f "$nlist"T "$nlist"
6933       else
6934         rm -f "$nlist"T
6935       fi
6936
6937       # Make sure that we snagged all the symbols we need.
6938       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6939         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6940           cat <<EOF > conftest.$ac_ext
6941 #ifdef __cplusplus
6942 extern "C" {
6943 #endif
6944
6945 EOF
6946           # Now generate the symbol file.
6947           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6948
6949           cat <<EOF >> conftest.$ac_ext
6950 #if defined (__STDC__) && __STDC__
6951 # define lt_ptr_t void *
6952 #else
6953 # define lt_ptr_t char *
6954 # define const
6955 #endif
6956
6957 /* The mapping between symbol names and symbols. */
6958 const struct {
6959   const char *name;
6960   lt_ptr_t address;
6961 }
6962 lt_preloaded_symbols[] =
6963 {
6964 EOF
6965           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6966           cat <<\EOF >> conftest.$ac_ext
6967   {0, (lt_ptr_t) 0}
6968 };
6969
6970 #ifdef __cplusplus
6971 }
6972 #endif
6973 EOF
6974           # Now try linking the two files.
6975           mv conftest.$ac_objext conftstm.$ac_objext
6976           lt_save_LIBS="$LIBS"
6977           lt_save_CFLAGS="$CFLAGS"
6978           LIBS="conftstm.$ac_objext"
6979           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6980           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6981   (eval $ac_link) 2>&5
6982   ac_status=$?
6983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6984   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6985             pipe_works=yes
6986           fi
6987           LIBS="$lt_save_LIBS"
6988           CFLAGS="$lt_save_CFLAGS"
6989         else
6990           echo "cannot find nm_test_func in $nlist" >&5
6991         fi
6992       else
6993         echo "cannot find nm_test_var in $nlist" >&5
6994       fi
6995     else
6996       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6997     fi
6998   else
6999     echo "$progname: failed program was:" >&5
7000     cat conftest.$ac_ext >&5
7001   fi
7002   rm -f conftest* conftst*
7003
7004   # Do not use the global_symbol_pipe unless it works.
7005   if test "$pipe_works" = yes; then
7006     break
7007   else
7008     lt_cv_sys_global_symbol_pipe=
7009   fi
7010 done
7011
7012 fi
7013
7014 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7015   lt_cv_sys_global_symbol_to_cdecl=
7016 fi
7017 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7018   echo "$as_me:$LINENO: result: failed" >&5
7019 echo "${ECHO_T}failed" >&6
7020 else
7021   echo "$as_me:$LINENO: result: ok" >&5
7022 echo "${ECHO_T}ok" >&6
7023 fi
7024
7025 echo "$as_me:$LINENO: checking for objdir" >&5
7026 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7027 if test "${lt_cv_objdir+set}" = set; then
7028   echo $ECHO_N "(cached) $ECHO_C" >&6
7029 else
7030   rm -f .libs 2>/dev/null
7031 mkdir .libs 2>/dev/null
7032 if test -d .libs; then
7033   lt_cv_objdir=.libs
7034 else
7035   # MS-DOS does not allow filenames that begin with a dot.
7036   lt_cv_objdir=_libs
7037 fi
7038 rmdir .libs 2>/dev/null
7039 fi
7040 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7041 echo "${ECHO_T}$lt_cv_objdir" >&6
7042 objdir=$lt_cv_objdir
7043
7044
7045
7046
7047
7048 case $host_os in
7049 aix3*)
7050   # AIX sometimes has problems with the GCC collect2 program.  For some
7051   # reason, if we set the COLLECT_NAMES environment variable, the problems
7052   # vanish in a puff of smoke.
7053   if test "X${COLLECT_NAMES+set}" != Xset; then
7054     COLLECT_NAMES=
7055     export COLLECT_NAMES
7056   fi
7057   ;;
7058 esac
7059
7060 # Sed substitution that helps us do robust quoting.  It backslashifies
7061 # metacharacters that are still active within double-quoted strings.
7062 Xsed='sed -e 1s/^X//'
7063 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7064
7065 # Same as above, but do not quote variable references.
7066 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7067
7068 # Sed substitution to delay expansion of an escaped shell variable in a
7069 # double_quote_subst'ed string.
7070 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7071
7072 # Sed substitution to avoid accidental globbing in evaled expressions
7073 no_glob_subst='s/\*/\\\*/g'
7074
7075 # Constants:
7076 rm="rm -f"
7077
7078 # Global variables:
7079 default_ofile=libtool
7080 can_build_shared=yes
7081
7082 # All known linkers require a `.a' archive for static linking (except M$VC,
7083 # which needs '.lib').
7084 libext=a
7085 ltmain="$ac_aux_dir/ltmain.sh"
7086 ofile="$default_ofile"
7087 with_gnu_ld="$lt_cv_prog_gnu_ld"
7088
7089 if test -n "$ac_tool_prefix"; then
7090   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7091 set dummy ${ac_tool_prefix}ar; ac_word=$2
7092 echo "$as_me:$LINENO: checking for $ac_word" >&5
7093 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7094 if test "${ac_cv_prog_AR+set}" = set; then
7095   echo $ECHO_N "(cached) $ECHO_C" >&6
7096 else
7097   if test -n "$AR"; then
7098   ac_cv_prog_AR="$AR" # Let the user override the test.
7099 else
7100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7101 for as_dir in $PATH
7102 do
7103   IFS=$as_save_IFS
7104   test -z "$as_dir" && as_dir=.
7105   for ac_exec_ext in '' $ac_executable_extensions; do
7106   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7107     ac_cv_prog_AR="${ac_tool_prefix}ar"
7108     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7109     break 2
7110   fi
7111 done
7112 done
7113
7114 fi
7115 fi
7116 AR=$ac_cv_prog_AR
7117 if test -n "$AR"; then
7118   echo "$as_me:$LINENO: result: $AR" >&5
7119 echo "${ECHO_T}$AR" >&6
7120 else
7121   echo "$as_me:$LINENO: result: no" >&5
7122 echo "${ECHO_T}no" >&6
7123 fi
7124
7125 fi
7126 if test -z "$ac_cv_prog_AR"; then
7127   ac_ct_AR=$AR
7128   # Extract the first word of "ar", so it can be a program name with args.
7129 set dummy ar; ac_word=$2
7130 echo "$as_me:$LINENO: checking for $ac_word" >&5
7131 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7132 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7133   echo $ECHO_N "(cached) $ECHO_C" >&6
7134 else
7135   if test -n "$ac_ct_AR"; then
7136   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7137 else
7138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7139 for as_dir in $PATH
7140 do
7141   IFS=$as_save_IFS
7142   test -z "$as_dir" && as_dir=.
7143   for ac_exec_ext in '' $ac_executable_extensions; do
7144   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7145     ac_cv_prog_ac_ct_AR="ar"
7146     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7147     break 2
7148   fi
7149 done
7150 done
7151
7152   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7153 fi
7154 fi
7155 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7156 if test -n "$ac_ct_AR"; then
7157   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7158 echo "${ECHO_T}$ac_ct_AR" >&6
7159 else
7160   echo "$as_me:$LINENO: result: no" >&5
7161 echo "${ECHO_T}no" >&6
7162 fi
7163
7164   AR=$ac_ct_AR
7165 else
7166   AR="$ac_cv_prog_AR"
7167 fi
7168
7169 if test -n "$ac_tool_prefix"; then
7170   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7171 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7172 echo "$as_me:$LINENO: checking for $ac_word" >&5
7173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7174 if test "${ac_cv_prog_RANLIB+set}" = set; then
7175   echo $ECHO_N "(cached) $ECHO_C" >&6
7176 else
7177   if test -n "$RANLIB"; then
7178   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7179 else
7180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7181 for as_dir in $PATH
7182 do
7183   IFS=$as_save_IFS
7184   test -z "$as_dir" && as_dir=.
7185   for ac_exec_ext in '' $ac_executable_extensions; do
7186   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7187     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7188     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7189     break 2
7190   fi
7191 done
7192 done
7193
7194 fi
7195 fi
7196 RANLIB=$ac_cv_prog_RANLIB
7197 if test -n "$RANLIB"; then
7198   echo "$as_me:$LINENO: result: $RANLIB" >&5
7199 echo "${ECHO_T}$RANLIB" >&6
7200 else
7201   echo "$as_me:$LINENO: result: no" >&5
7202 echo "${ECHO_T}no" >&6
7203 fi
7204
7205 fi
7206 if test -z "$ac_cv_prog_RANLIB"; then
7207   ac_ct_RANLIB=$RANLIB
7208   # Extract the first word of "ranlib", so it can be a program name with args.
7209 set dummy ranlib; ac_word=$2
7210 echo "$as_me:$LINENO: checking for $ac_word" >&5
7211 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7212 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7213   echo $ECHO_N "(cached) $ECHO_C" >&6
7214 else
7215   if test -n "$ac_ct_RANLIB"; then
7216   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7217 else
7218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7219 for as_dir in $PATH
7220 do
7221   IFS=$as_save_IFS
7222   test -z "$as_dir" && as_dir=.
7223   for ac_exec_ext in '' $ac_executable_extensions; do
7224   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7225     ac_cv_prog_ac_ct_RANLIB="ranlib"
7226     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7227     break 2
7228   fi
7229 done
7230 done
7231
7232   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7233 fi
7234 fi
7235 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7236 if test -n "$ac_ct_RANLIB"; then
7237   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7238 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7239 else
7240   echo "$as_me:$LINENO: result: no" >&5
7241 echo "${ECHO_T}no" >&6
7242 fi
7243
7244   RANLIB=$ac_ct_RANLIB
7245 else
7246   RANLIB="$ac_cv_prog_RANLIB"
7247 fi
7248
7249 if test -n "$ac_tool_prefix"; then
7250   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7251 set dummy ${ac_tool_prefix}strip; ac_word=$2
7252 echo "$as_me:$LINENO: checking for $ac_word" >&5
7253 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7254 if test "${ac_cv_prog_STRIP+set}" = set; then
7255   echo $ECHO_N "(cached) $ECHO_C" >&6
7256 else
7257   if test -n "$STRIP"; then
7258   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7259 else
7260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7261 for as_dir in $PATH
7262 do
7263   IFS=$as_save_IFS
7264   test -z "$as_dir" && as_dir=.
7265   for ac_exec_ext in '' $ac_executable_extensions; do
7266   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7267     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7268     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7269     break 2
7270   fi
7271 done
7272 done
7273
7274 fi
7275 fi
7276 STRIP=$ac_cv_prog_STRIP
7277 if test -n "$STRIP"; then
7278   echo "$as_me:$LINENO: result: $STRIP" >&5
7279 echo "${ECHO_T}$STRIP" >&6
7280 else
7281   echo "$as_me:$LINENO: result: no" >&5
7282 echo "${ECHO_T}no" >&6
7283 fi
7284
7285 fi
7286 if test -z "$ac_cv_prog_STRIP"; then
7287   ac_ct_STRIP=$STRIP
7288   # Extract the first word of "strip", so it can be a program name with args.
7289 set dummy strip; ac_word=$2
7290 echo "$as_me:$LINENO: checking for $ac_word" >&5
7291 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7292 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7293   echo $ECHO_N "(cached) $ECHO_C" >&6
7294 else
7295   if test -n "$ac_ct_STRIP"; then
7296   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7297 else
7298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7299 for as_dir in $PATH
7300 do
7301   IFS=$as_save_IFS
7302   test -z "$as_dir" && as_dir=.
7303   for ac_exec_ext in '' $ac_executable_extensions; do
7304   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7305     ac_cv_prog_ac_ct_STRIP="strip"
7306     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7307     break 2
7308   fi
7309 done
7310 done
7311
7312   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7313 fi
7314 fi
7315 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7316 if test -n "$ac_ct_STRIP"; then
7317   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7318 echo "${ECHO_T}$ac_ct_STRIP" >&6
7319 else
7320   echo "$as_me:$LINENO: result: no" >&5
7321 echo "${ECHO_T}no" >&6
7322 fi
7323
7324   STRIP=$ac_ct_STRIP
7325 else
7326   STRIP="$ac_cv_prog_STRIP"
7327 fi
7328
7329
7330 old_CC="$CC"
7331 old_CFLAGS="$CFLAGS"
7332
7333 # Set sane defaults for various variables
7334 test -z "$AR" && AR=ar
7335 test -z "$AR_FLAGS" && AR_FLAGS=cru
7336 test -z "$AS" && AS=as
7337 test -z "$CC" && CC=cc
7338 test -z "$LTCC" && LTCC=$CC
7339 test -z "$DLLTOOL" && DLLTOOL=dlltool
7340 test -z "$LD" && LD=ld
7341 test -z "$LN_S" && LN_S="ln -s"
7342 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7343 test -z "$NM" && NM=nm
7344 test -z "$SED" && SED=sed
7345 test -z "$OBJDUMP" && OBJDUMP=objdump
7346 test -z "$RANLIB" && RANLIB=:
7347 test -z "$STRIP" && STRIP=:
7348 test -z "$ac_objext" && ac_objext=o
7349
7350 # Determine commands to create old-style static archives.
7351 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7352 old_postinstall_cmds='chmod 644 $oldlib'
7353 old_postuninstall_cmds=
7354
7355 if test -n "$RANLIB"; then
7356   case $host_os in
7357   openbsd*)
7358     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
7359     ;;
7360   *)
7361     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
7362     ;;
7363   esac
7364   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7365 fi
7366
7367 for cc_temp in $compiler""; do
7368   case $cc_temp in
7369     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7370     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7371     \-*) ;;
7372     *) break;;
7373   esac
7374 done
7375 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7376
7377
7378 # Only perform the check for file, if the check method requires it
7379 case $deplibs_check_method in
7380 file_magic*)
7381   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7382     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7383 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7384 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7385   echo $ECHO_N "(cached) $ECHO_C" >&6
7386 else
7387   case $MAGIC_CMD in
7388 [\\/*] |  ?:[\\/]*)
7389   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7390   ;;
7391 *)
7392   lt_save_MAGIC_CMD="$MAGIC_CMD"
7393   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7394   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7395   for ac_dir in $ac_dummy; do
7396     IFS="$lt_save_ifs"
7397     test -z "$ac_dir" && ac_dir=.
7398     if test -f $ac_dir/${ac_tool_prefix}file; then
7399       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7400       if test -n "$file_magic_test_file"; then
7401         case $deplibs_check_method in
7402         "file_magic "*)
7403           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
7404           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7405           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7406             $EGREP "$file_magic_regex" > /dev/null; then
7407             :
7408           else
7409             cat <<EOF 1>&2
7410
7411 *** Warning: the command libtool uses to detect shared libraries,
7412 *** $file_magic_cmd, produces output that libtool cannot recognize.
7413 *** The result is that libtool may fail to recognize shared libraries
7414 *** as such.  This will affect the creation of libtool libraries that
7415 *** depend on shared libraries, but programs linked with such libtool
7416 *** libraries will work regardless of this problem.  Nevertheless, you
7417 *** may want to report the problem to your system manager and/or to
7418 *** bug-libtool@gnu.org
7419
7420 EOF
7421           fi ;;
7422         esac
7423       fi
7424       break
7425     fi
7426   done
7427   IFS="$lt_save_ifs"
7428   MAGIC_CMD="$lt_save_MAGIC_CMD"
7429   ;;
7430 esac
7431 fi
7432
7433 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7434 if test -n "$MAGIC_CMD"; then
7435   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7436 echo "${ECHO_T}$MAGIC_CMD" >&6
7437 else
7438   echo "$as_me:$LINENO: result: no" >&5
7439 echo "${ECHO_T}no" >&6
7440 fi
7441
7442 if test -z "$lt_cv_path_MAGIC_CMD"; then
7443   if test -n "$ac_tool_prefix"; then
7444     echo "$as_me:$LINENO: checking for file" >&5
7445 echo $ECHO_N "checking for file... $ECHO_C" >&6
7446 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7447   echo $ECHO_N "(cached) $ECHO_C" >&6
7448 else
7449   case $MAGIC_CMD in
7450 [\\/*] |  ?:[\\/]*)
7451   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7452   ;;
7453 *)
7454   lt_save_MAGIC_CMD="$MAGIC_CMD"
7455   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7456   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7457   for ac_dir in $ac_dummy; do
7458     IFS="$lt_save_ifs"
7459     test -z "$ac_dir" && ac_dir=.
7460     if test -f $ac_dir/file; then
7461       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7462       if test -n "$file_magic_test_file"; then
7463         case $deplibs_check_method in
7464         "file_magic "*)
7465           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
7466           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7467           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7468             $EGREP "$file_magic_regex" > /dev/null; then
7469             :
7470           else
7471             cat <<EOF 1>&2
7472
7473 *** Warning: the command libtool uses to detect shared libraries,
7474 *** $file_magic_cmd, produces output that libtool cannot recognize.
7475 *** The result is that libtool may fail to recognize shared libraries
7476 *** as such.  This will affect the creation of libtool libraries that
7477 *** depend on shared libraries, but programs linked with such libtool
7478 *** libraries will work regardless of this problem.  Nevertheless, you
7479 *** may want to report the problem to your system manager and/or to
7480 *** bug-libtool@gnu.org
7481
7482 EOF
7483           fi ;;
7484         esac
7485       fi
7486       break
7487     fi
7488   done
7489   IFS="$lt_save_ifs"
7490   MAGIC_CMD="$lt_save_MAGIC_CMD"
7491   ;;
7492 esac
7493 fi
7494
7495 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7496 if test -n "$MAGIC_CMD"; then
7497   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7498 echo "${ECHO_T}$MAGIC_CMD" >&6
7499 else
7500   echo "$as_me:$LINENO: result: no" >&5
7501 echo "${ECHO_T}no" >&6
7502 fi
7503
7504   else
7505     MAGIC_CMD=:
7506   fi
7507 fi
7508
7509   fi
7510   ;;
7511 esac
7512
7513 enable_dlopen=yes
7514 enable_win32_dll=yes
7515
7516 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7517 if test "${enable_libtool_lock+set}" = set; then
7518   enableval="$enable_libtool_lock"
7519
7520 fi;
7521 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7522
7523
7524 # Check whether --with-pic or --without-pic was given.
7525 if test "${with_pic+set}" = set; then
7526   withval="$with_pic"
7527   pic_mode="$withval"
7528 else
7529   pic_mode=default
7530 fi;
7531 test -z "$pic_mode" && pic_mode=default
7532
7533 # Use C for the default configuration in the libtool script
7534 tagname=
7535 lt_save_CC="$CC"
7536 ac_ext=c
7537 ac_cpp='$CPP $CPPFLAGS'
7538 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7539 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7540 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7541
7542
7543 # Source file extension for C test sources.
7544 ac_ext=c
7545
7546 # Object file extension for compiled C test sources.
7547 objext=o
7548 objext=$objext
7549
7550 # Code to be used in simple compile tests
7551 lt_simple_compile_test_code="int some_variable = 0;\n"
7552
7553 # Code to be used in simple link tests
7554 lt_simple_link_test_code='int main(){return(0);}\n'
7555
7556
7557 # If no C compiler was specified, use CC.
7558 LTCC=${LTCC-"$CC"}
7559
7560 # Allow CC to be a program name with arguments.
7561 compiler=$CC
7562
7563
7564 # save warnings/boilerplate of simple test code
7565 ac_outfile=conftest.$ac_objext
7566 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7567 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
7568 _lt_compiler_boilerplate=`cat conftest.err`
7569 $rm conftest*
7570
7571 ac_outfile=conftest.$ac_objext
7572 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7573 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
7574 _lt_linker_boilerplate=`cat conftest.err`
7575 $rm conftest*
7576
7577
7578 #
7579 # Check for any special shared library compilation flags.
7580 #
7581 lt_prog_cc_shlib=
7582 if test "$GCC" = no; then
7583   case $host_os in
7584   sco3.2v5*)
7585     lt_prog_cc_shlib='-belf'
7586     ;;
7587   esac
7588 fi
7589 if test -n "$lt_prog_cc_shlib"; then
7590   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
7591 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
7592   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
7593   else
7594     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
7595 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
7596     lt_cv_prog_cc_can_build_shared=no
7597   fi
7598 fi
7599
7600
7601 #
7602 # Check to make sure the static flag actually works.
7603 #
7604 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
7605 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
7606 if test "${lt_prog_compiler_static_works+set}" = set; then
7607   echo $ECHO_N "(cached) $ECHO_C" >&6
7608 else
7609   lt_prog_compiler_static_works=no
7610    save_LDFLAGS="$LDFLAGS"
7611    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
7612    printf "$lt_simple_link_test_code" > conftest.$ac_ext
7613    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7614      # The compiler can only warn and ignore the option if not recognized
7615      # So say no if there are warnings
7616      if test -s conftest.err; then
7617        # Append any errors to the config.log.
7618        cat conftest.err 1>&5
7619        $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
7620        $SED '/^$/d' conftest.err >conftest.er2
7621        if diff conftest.exp conftest.er2 >/dev/null; then
7622          lt_prog_compiler_static_works=yes
7623        fi
7624      else
7625        lt_prog_compiler_static_works=yes
7626      fi
7627    fi
7628    $rm conftest*
7629    LDFLAGS="$save_LDFLAGS"
7630
7631 fi
7632 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7633 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7634
7635 if test x"$lt_prog_compiler_static_works" = xyes; then
7636     :
7637 else
7638     lt_prog_compiler_static=
7639 fi
7640
7641
7642
7643
7644 lt_prog_compiler_no_builtin_flag=
7645
7646 if test "$GCC" = yes; then
7647   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7648
7649
7650 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7651 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7652 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7653   echo $ECHO_N "(cached) $ECHO_C" >&6
7654 else
7655   lt_cv_prog_compiler_rtti_exceptions=no
7656   ac_outfile=conftest.$ac_objext
7657    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7658    lt_compiler_flag="-fno-rtti -fno-exceptions"
7659    # Insert the option either (1) after the last *FLAGS variable, or
7660    # (2) before a word containing "conftest.", or (3) at the end.
7661    # Note that $ac_compile itself does not contain backslashes and begins
7662    # with a dollar sign (not a hyphen), so the echo should work correctly.
7663    # The option is referenced via a variable to avoid confusing sed.
7664    lt_compile=`echo "$ac_compile" | $SED \
7665    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7666    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7667    -e 's:$: $lt_compiler_flag:'`
7668    (eval echo "\"\$as_me:7668: $lt_compile\"" >&5)
7669    (eval "$lt_compile" 2>conftest.err)
7670    ac_status=$?
7671    cat conftest.err >&5
7672    echo "$as_me:7672: \$? = $ac_status" >&5
7673    if (exit $ac_status) && test -s "$ac_outfile"; then
7674      # The compiler can only warn and ignore the option if not recognized
7675      # So say no if there are warnings other than the usual output.
7676      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7677      $SED '/^$/d' conftest.err >conftest.er2
7678      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7679        lt_cv_prog_compiler_rtti_exceptions=yes
7680      fi
7681    fi
7682    $rm conftest*
7683
7684 fi
7685 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7686 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7687
7688 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7689     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7690 else
7691     :
7692 fi
7693
7694 fi
7695
7696 lt_prog_compiler_wl=
7697 lt_prog_compiler_pic=
7698 lt_prog_compiler_static=
7699
7700 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7701 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7702
7703   if test "$GCC" = yes; then
7704     lt_prog_compiler_wl='-Wl,'
7705     lt_prog_compiler_static='-static'
7706
7707     case $host_os in
7708       aix*)
7709       # All AIX code is PIC.
7710       if test "$host_cpu" = ia64; then
7711         # AIX 5 now supports IA64 processor
7712         lt_prog_compiler_static='-Bstatic'
7713       fi
7714       ;;
7715
7716     amigaos*)
7717       # FIXME: we need at least 68020 code to build shared libraries, but
7718       # adding the `-m68020' flag to GCC prevents building anything better,
7719       # like `-m68040'.
7720       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7721       ;;
7722
7723     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7724       # PIC is the default for these OSes.
7725       ;;
7726
7727     mingw* | pw32* | os2*)
7728       # This hack is so that the source file can tell whether it is being
7729       # built for inclusion in a dll (and should export symbols for example).
7730       lt_prog_compiler_pic='-DDLL_EXPORT'
7731       ;;
7732
7733     darwin* | rhapsody*)
7734       # PIC is the default on this platform
7735       # Common symbols not allowed in MH_DYLIB files
7736       lt_prog_compiler_pic='-fno-common'
7737       ;;
7738
7739     msdosdjgpp*)
7740       # Just because we use GCC doesn't mean we suddenly get shared libraries
7741       # on systems that don't support them.
7742       lt_prog_compiler_can_build_shared=no
7743       enable_shared=no
7744       ;;
7745
7746     sysv4*MP*)
7747       if test -d /usr/nec; then
7748         lt_prog_compiler_pic=-Kconform_pic
7749       fi
7750       ;;
7751
7752     hpux*)
7753       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7754       # not for PA HP-UX.
7755       case "$host_cpu" in
7756       hppa*64*|ia64*)
7757         # +Z the default
7758         ;;
7759       *)
7760         lt_prog_compiler_pic='-fPIC'
7761         ;;
7762       esac
7763       ;;
7764
7765     *)
7766       lt_prog_compiler_pic='-fPIC'
7767       ;;
7768     esac
7769   else
7770     # PORTME Check for flag to pass linker flags through the system compiler.
7771     case $host_os in
7772     aix*)
7773       lt_prog_compiler_wl='-Wl,'
7774       if test "$host_cpu" = ia64; then
7775         # AIX 5 now supports IA64 processor
7776         lt_prog_compiler_static='-Bstatic'
7777       else
7778         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7779       fi
7780       ;;
7781       darwin*)
7782         # PIC is the default on this platform
7783         # Common symbols not allowed in MH_DYLIB files
7784        case $cc_basename in
7785          xlc*)
7786          lt_prog_compiler_pic='-qnocommon'
7787          lt_prog_compiler_wl='-Wl,'
7788          ;;
7789        esac
7790        ;;
7791
7792     mingw* | pw32* | os2*)
7793       # This hack is so that the source file can tell whether it is being
7794       # built for inclusion in a dll (and should export symbols for example).
7795       lt_prog_compiler_pic='-DDLL_EXPORT'
7796       ;;
7797
7798     hpux9* | hpux10* | hpux11*)
7799       lt_prog_compiler_wl='-Wl,'
7800       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7801       # not for PA HP-UX.
7802       case "$host_cpu" in
7803       hppa*64*|ia64*)
7804         # +Z the default
7805         ;;
7806       *)
7807         lt_prog_compiler_pic='+Z'
7808         ;;
7809       esac
7810       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7811       lt_prog_compiler_static='${wl}-a ${wl}archive'
7812       ;;
7813
7814     irix5* | irix6* | nonstopux*)
7815       lt_prog_compiler_wl='-Wl,'
7816       # PIC (with -KPIC) is the default.
7817       lt_prog_compiler_static='-non_shared'
7818       ;;
7819
7820     newsos6)
7821       lt_prog_compiler_pic='-KPIC'
7822       lt_prog_compiler_static='-Bstatic'
7823       ;;
7824
7825     linux*)
7826       case $cc_basename in
7827       icc* | ecc*)
7828         lt_prog_compiler_wl='-Wl,'
7829         lt_prog_compiler_pic='-KPIC'
7830         lt_prog_compiler_static='-static'
7831         ;;
7832       pgcc* | pgf77* | pgf90*)
7833         # Portland Group compilers (*not* the Pentium gcc compiler,
7834         # which looks to be a dead project)
7835         lt_prog_compiler_wl='-Wl,'
7836         lt_prog_compiler_pic='-fpic'
7837         lt_prog_compiler_static='-static'
7838         ;;
7839       ccc*)
7840         lt_prog_compiler_wl='-Wl,'
7841         # All Alpha code is PIC.
7842         lt_prog_compiler_static='-non_shared'
7843         ;;
7844       esac
7845       ;;
7846
7847     osf3* | osf4* | osf5*)
7848       lt_prog_compiler_wl='-Wl,'
7849       # All OSF/1 code is PIC.
7850       lt_prog_compiler_static='-non_shared'
7851       ;;
7852
7853     sco3.2v5*)
7854       lt_prog_compiler_pic='-Kpic'
7855       lt_prog_compiler_static='-dn'
7856       ;;
7857
7858     solaris*)
7859       lt_prog_compiler_pic='-KPIC'
7860       lt_prog_compiler_static='-Bstatic'
7861       case $cc_basename in
7862       f77* | f90* | f95*)
7863         lt_prog_compiler_wl='-Qoption ld ';;
7864       *)
7865         lt_prog_compiler_wl='-Wl,';;
7866       esac
7867       ;;
7868
7869     sunos4*)
7870       lt_prog_compiler_wl='-Qoption ld '
7871       lt_prog_compiler_pic='-PIC'
7872       lt_prog_compiler_static='-Bstatic'
7873       ;;
7874
7875     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7876       lt_prog_compiler_wl='-Wl,'
7877       lt_prog_compiler_pic='-KPIC'
7878       lt_prog_compiler_static='-Bstatic'
7879       ;;
7880
7881     sysv4*MP*)
7882       if test -d /usr/nec ;then
7883         lt_prog_compiler_pic='-Kconform_pic'
7884         lt_prog_compiler_static='-Bstatic'
7885       fi
7886       ;;
7887
7888     unicos*)
7889       lt_prog_compiler_wl='-Wl,'
7890       lt_prog_compiler_can_build_shared=no
7891       ;;
7892
7893     uts4*)
7894       lt_prog_compiler_pic='-pic'
7895       lt_prog_compiler_static='-Bstatic'
7896       ;;
7897
7898     *)
7899       lt_prog_compiler_can_build_shared=no
7900       ;;
7901     esac
7902   fi
7903
7904 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7905 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7906
7907 #
7908 # Check to make sure the PIC flag actually works.
7909 #
7910 if test -n "$lt_prog_compiler_pic"; then
7911
7912 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7913 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7914 if test "${lt_prog_compiler_pic_works+set}" = set; then
7915   echo $ECHO_N "(cached) $ECHO_C" >&6
7916 else
7917   lt_prog_compiler_pic_works=no
7918   ac_outfile=conftest.$ac_objext
7919    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7920    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7921    # Insert the option either (1) after the last *FLAGS variable, or
7922    # (2) before a word containing "conftest.", or (3) at the end.
7923    # Note that $ac_compile itself does not contain backslashes and begins
7924    # with a dollar sign (not a hyphen), so the echo should work correctly.
7925    # The option is referenced via a variable to avoid confusing sed.
7926    lt_compile=`echo "$ac_compile" | $SED \
7927    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7928    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7929    -e 's:$: $lt_compiler_flag:'`
7930    (eval echo "\"\$as_me:7930: $lt_compile\"" >&5)
7931    (eval "$lt_compile" 2>conftest.err)
7932    ac_status=$?
7933    cat conftest.err >&5
7934    echo "$as_me:7934: \$? = $ac_status" >&5
7935    if (exit $ac_status) && test -s "$ac_outfile"; then
7936      # The compiler can only warn and ignore the option if not recognized
7937      # So say no if there are warnings other than the usual output.
7938      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7939      $SED '/^$/d' conftest.err >conftest.er2
7940      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7941        lt_prog_compiler_pic_works=yes
7942      fi
7943    fi
7944    $rm conftest*
7945
7946 fi
7947 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7948 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7949
7950 if test x"$lt_prog_compiler_pic_works" = xyes; then
7951     case $lt_prog_compiler_pic in
7952      "" | " "*) ;;
7953      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7954      esac
7955 else
7956     lt_prog_compiler_pic=
7957      lt_prog_compiler_can_build_shared=no
7958 fi
7959
7960 fi
7961 case "$host_os" in
7962   # For platforms which do not support PIC, -DPIC is meaningless:
7963   *djgpp*)
7964     lt_prog_compiler_pic=
7965     ;;
7966   *)
7967     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7968     ;;
7969 esac
7970
7971 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7972 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7973 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7974   echo $ECHO_N "(cached) $ECHO_C" >&6
7975 else
7976   lt_cv_prog_compiler_c_o=no
7977    $rm -r conftest 2>/dev/null
7978    mkdir conftest
7979    cd conftest
7980    mkdir out
7981    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7982
7983    lt_compiler_flag="-o out/conftest2.$ac_objext"
7984    # Insert the option either (1) after the last *FLAGS variable, or
7985    # (2) before a word containing "conftest.", or (3) at the end.
7986    # Note that $ac_compile itself does not contain backslashes and begins
7987    # with a dollar sign (not a hyphen), so the echo should work correctly.
7988    lt_compile=`echo "$ac_compile" | $SED \
7989    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7990    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7991    -e 's:$: $lt_compiler_flag:'`
7992    (eval echo "\"\$as_me:7992: $lt_compile\"" >&5)
7993    (eval "$lt_compile" 2>out/conftest.err)
7994    ac_status=$?
7995    cat out/conftest.err >&5
7996    echo "$as_me:7996: \$? = $ac_status" >&5
7997    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7998    then
7999      # The compiler can only warn and ignore the option if not recognized
8000      # So say no if there are warnings
8001      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
8002      $SED '/^$/d' out/conftest.err >out/conftest.er2
8003      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8004        lt_cv_prog_compiler_c_o=yes
8005      fi
8006    fi
8007    chmod u+w .
8008    $rm conftest*
8009    # SGI C++ compiler will create directory out/ii_files/ for
8010    # template instantiation
8011    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8012    $rm out/* && rmdir out
8013    cd ..
8014    rmdir conftest
8015    $rm conftest*
8016
8017 fi
8018 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8019 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8020
8021
8022 hard_links="nottested"
8023 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8024   # do not overwrite the value of need_locks provided by the user
8025   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8026 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8027   hard_links=yes
8028   $rm conftest*
8029   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8030   touch conftest.a
8031   ln conftest.a conftest.b 2>&5 || hard_links=no
8032   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8033   echo "$as_me:$LINENO: result: $hard_links" >&5
8034 echo "${ECHO_T}$hard_links" >&6
8035   if test "$hard_links" = no; then
8036     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8037 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8038     need_locks=warn
8039   fi
8040 else
8041   need_locks=no
8042 fi
8043
8044 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8045 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8046
8047   runpath_var=
8048   allow_undefined_flag=
8049   enable_shared_with_static_runtimes=no
8050   archive_cmds=
8051   archive_expsym_cmds=
8052   old_archive_From_new_cmds=
8053   old_archive_from_expsyms_cmds=
8054   export_dynamic_flag_spec=
8055   whole_archive_flag_spec=
8056   thread_safe_flag_spec=
8057   hardcode_libdir_flag_spec=
8058   hardcode_libdir_flag_spec_ld=
8059   hardcode_libdir_separator=
8060   hardcode_direct=no
8061   hardcode_minus_L=no
8062   hardcode_shlibpath_var=unsupported
8063   link_all_deplibs=unknown
8064   hardcode_automatic=no
8065   module_cmds=
8066   module_expsym_cmds=
8067   always_export_symbols=no
8068   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8069   # include_expsyms should be a list of space-separated symbols to be *always*
8070   # included in the symbol list
8071   include_expsyms=
8072   # exclude_expsyms can be an extended regexp of symbols to exclude
8073   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8074   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8075   # as well as any symbol that contains `d'.
8076   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8077   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8078   # platforms (ab)use it in PIC code, but their linkers get confused if
8079   # the symbol is explicitly referenced.  Since portable code cannot
8080   # rely on this symbol name, it's probably fine to never include it in
8081   # preloaded symbol tables.
8082   extract_expsyms_cmds=
8083   # Just being paranoid about ensuring that cc_basename is set.
8084   for cc_temp in $compiler""; do
8085   case $cc_temp in
8086     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8087     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8088     \-*) ;;
8089     *) break;;
8090   esac
8091 done
8092 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8093
8094   case $host_os in
8095   cygwin* | mingw* | pw32*)
8096     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8097     # When not using gcc, we currently assume that we are using
8098     # Microsoft Visual C++.
8099     if test "$GCC" != yes; then
8100       with_gnu_ld=no
8101     fi
8102     ;;
8103   openbsd*)
8104     with_gnu_ld=no
8105     ;;
8106   esac
8107
8108   ld_shlibs=yes
8109   if test "$with_gnu_ld" = yes; then
8110     # If archive_cmds runs LD, not CC, wlarc should be empty
8111     wlarc='${wl}'
8112
8113     # Set some defaults for GNU ld with shared library support. These
8114     # are reset later if shared libraries are not supported. Putting them
8115     # here allows them to be overridden if necessary.
8116     runpath_var=LD_RUN_PATH
8117     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8118     export_dynamic_flag_spec='${wl}--export-dynamic'
8119     # ancient GNU ld didn't support --whole-archive et. al.
8120     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8121         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8122       else
8123         whole_archive_flag_spec=
8124     fi
8125     supports_anon_versioning=no
8126     case `$LD -v 2>/dev/null` in
8127       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8128       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8129       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8130       *\ 2.11.*) ;; # other 2.11 versions
8131       *) supports_anon_versioning=yes ;;
8132     esac
8133
8134     # See if GNU ld supports shared libraries.
8135     case $host_os in
8136     aix3* | aix4* | aix5*)
8137       # On AIX/PPC, the GNU linker is very broken
8138       if test "$host_cpu" != ia64; then
8139         ld_shlibs=no
8140         cat <<EOF 1>&2
8141
8142 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8143 *** to be unable to reliably create shared libraries on AIX.
8144 *** Therefore, libtool is disabling shared libraries support.  If you
8145 *** really care for shared libraries, you may want to modify your PATH
8146 *** so that a non-GNU linker is found, and then restart.
8147
8148 EOF
8149       fi
8150       ;;
8151
8152     amigaos*)
8153       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)'
8154       hardcode_libdir_flag_spec='-L$libdir'
8155       hardcode_minus_L=yes
8156
8157       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8158       # that the semantics of dynamic libraries on AmigaOS, at least up
8159       # to version 4, is to share data among multiple programs linked
8160       # with the same dynamic library.  Since this doesn't match the
8161       # behavior of shared libraries on other platforms, we can't use
8162       # them.
8163       ld_shlibs=no
8164       ;;
8165
8166     beos*)
8167       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8168         allow_undefined_flag=unsupported
8169         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8170         # support --undefined.  This deserves some investigation.  FIXME
8171         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8172       else
8173         ld_shlibs=no
8174       fi
8175       ;;
8176
8177     cygwin* | mingw* | pw32*)
8178       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8179       # as there is no search path for DLLs.
8180       hardcode_libdir_flag_spec='-L$libdir'
8181       allow_undefined_flag=unsupported
8182       always_export_symbols=no
8183       enable_shared_with_static_runtimes=yes
8184       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8185
8186       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8187         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8188         # If the export-symbols file already is a .def file (1st line
8189         # is EXPORTS), use it as is; otherwise, prepend...
8190         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8191           cp $export_symbols $output_objdir/$soname.def;
8192         else
8193           echo EXPORTS > $output_objdir/$soname.def;
8194           cat $export_symbols >> $output_objdir/$soname.def;
8195         fi~
8196         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
8197       else
8198         ld_shlibs=no
8199       fi
8200       ;;
8201
8202     linux*)
8203       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8204         tmp_addflag=
8205         case $cc_basename,$host_cpu in
8206         pgcc*)                          # Portland Group C compiler
8207           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'
8208           tmp_addflag=' $pic_flag'
8209           ;;
8210         pgf77* | pgf90* )                       # Portland Group f77 and f90 compilers
8211           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'
8212           tmp_addflag=' $pic_flag -Mnomain' ;;
8213         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8214           tmp_addflag=' -i_dynamic' ;;
8215         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8216           tmp_addflag=' -i_dynamic -nofor_main' ;;
8217         ifc* | ifort*)                  # Intel Fortran compiler
8218           tmp_addflag=' -nofor_main' ;;
8219         esac
8220         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8221
8222         if test $supports_anon_versioning = yes; then
8223           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8224   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8225   $echo "local: *; };" >> $output_objdir/$libname.ver~
8226           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8227         fi
8228       else
8229         ld_shlibs=no
8230       fi
8231       ;;
8232
8233     netbsd*)
8234       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8235         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8236         wlarc=
8237       else
8238         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8239         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8240       fi
8241       ;;
8242
8243     solaris* | sysv5*)
8244       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8245         ld_shlibs=no
8246         cat <<EOF 1>&2
8247
8248 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8249 *** create shared libraries on Solaris systems.  Therefore, libtool
8250 *** is disabling shared libraries support.  We urge you to upgrade GNU
8251 *** binutils to release 2.9.1 or newer.  Another option is to modify
8252 *** your PATH or compiler configuration so that the native linker is
8253 *** used, and then restart.
8254
8255 EOF
8256       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8257         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8258         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8259       else
8260         ld_shlibs=no
8261       fi
8262       ;;
8263
8264     sunos4*)
8265       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8266       wlarc=
8267       hardcode_direct=yes
8268       hardcode_shlibpath_var=no
8269       ;;
8270
8271     *)
8272       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8273         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8274         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8275       else
8276         ld_shlibs=no
8277       fi
8278       ;;
8279     esac
8280
8281     if test "$ld_shlibs" = no; then
8282       runpath_var=
8283       hardcode_libdir_flag_spec=
8284       export_dynamic_flag_spec=
8285       whole_archive_flag_spec=
8286     fi
8287   else
8288     # PORTME fill in a description of your system's linker (not GNU ld)
8289     case $host_os in
8290     aix3*)
8291       allow_undefined_flag=unsupported
8292       always_export_symbols=yes
8293       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'
8294       # Note: this linker hardcodes the directories in LIBPATH if there
8295       # are no directories specified by -L.
8296       hardcode_minus_L=yes
8297       if test "$GCC" = yes && test -z "$link_static_flag"; then
8298         # Neither direct hardcoding nor static linking is supported with a
8299         # broken collect2.
8300         hardcode_direct=unsupported
8301       fi
8302       ;;
8303
8304     aix4* | aix5*)
8305       if test "$host_cpu" = ia64; then
8306         # On IA64, the linker does run time linking by default, so we don't
8307         # have to do anything special.
8308         aix_use_runtimelinking=no
8309         exp_sym_flag='-Bexport'
8310         no_entry_flag=""
8311       else
8312         # If we're using GNU nm, then we don't want the "-C" option.
8313         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8314         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8315           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'
8316         else
8317           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'
8318         fi
8319         aix_use_runtimelinking=no
8320
8321         # Test if we are trying to use run time linking or normal
8322         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8323         # need to do runtime linking.
8324         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8325           for ld_flag in $LDFLAGS; do
8326           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8327             aix_use_runtimelinking=yes
8328             break
8329           fi
8330           done
8331         esac
8332
8333         exp_sym_flag='-bexport'
8334         no_entry_flag='-bnoentry'
8335       fi
8336
8337       # When large executables or shared objects are built, AIX ld can
8338       # have problems creating the table of contents.  If linking a library
8339       # or program results in "error TOC overflow" add -mminimal-toc to
8340       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8341       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8342
8343       archive_cmds=''
8344       hardcode_direct=yes
8345       hardcode_libdir_separator=':'
8346       link_all_deplibs=yes
8347
8348       if test "$GCC" = yes; then
8349         case $host_os in aix4.[012]|aix4.[012].*)
8350         # We only want to do this on AIX 4.2 and lower, the check
8351         # below for broken collect2 doesn't work under 4.3+
8352           collect2name=`${CC} -print-prog-name=collect2`
8353           if test -f "$collect2name" && \
8354            strings "$collect2name" | grep resolve_lib_name >/dev/null
8355           then
8356           # We have reworked collect2
8357           hardcode_direct=yes
8358           else
8359           # We have old collect2
8360           hardcode_direct=unsupported
8361           # It fails to find uninstalled libraries when the uninstalled
8362           # path is not listed in the libpath.  Setting hardcode_minus_L
8363           # to unsupported forces relinking
8364           hardcode_minus_L=yes
8365           hardcode_libdir_flag_spec='-L$libdir'
8366           hardcode_libdir_separator=
8367           fi
8368         esac
8369         shared_flag='-shared'
8370         if test "$aix_use_runtimelinking" = yes; then
8371           shared_flag="$shared_flag "'${wl}-G'
8372         fi
8373       else
8374         # not using gcc
8375         if test "$host_cpu" = ia64; then
8376         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8377         # chokes on -Wl,-G. The following line is correct:
8378           shared_flag='-G'
8379         else
8380         if test "$aix_use_runtimelinking" = yes; then
8381             shared_flag='${wl}-G'
8382           else
8383             shared_flag='${wl}-bM:SRE'
8384         fi
8385         fi
8386       fi
8387
8388       # It seems that -bexpall does not export symbols beginning with
8389       # underscore (_), so it is better to generate a list of symbols to export.
8390       always_export_symbols=yes
8391       if test "$aix_use_runtimelinking" = yes; then
8392         # Warning - without using the other runtime loading flags (-brtl),
8393         # -berok will link without error, but may produce a broken library.
8394         allow_undefined_flag='-berok'
8395        # Determine the default libpath from the value encoded in an empty executable.
8396        cat >conftest.$ac_ext <<_ACEOF
8397 /* confdefs.h.  */
8398 _ACEOF
8399 cat confdefs.h >>conftest.$ac_ext
8400 cat >>conftest.$ac_ext <<_ACEOF
8401 /* end confdefs.h.  */
8402
8403 int
8404 main ()
8405 {
8406
8407   ;
8408   return 0;
8409 }
8410 _ACEOF
8411 rm -f conftest.$ac_objext conftest$ac_exeext
8412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8413   (eval $ac_link) 2>conftest.er1
8414   ac_status=$?
8415   grep -v '^ *+' conftest.er1 >conftest.err
8416   rm -f conftest.er1
8417   cat conftest.err >&5
8418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8419   (exit $ac_status); } &&
8420          { ac_try='test -z "$ac_c_werror_flag"
8421                          || test ! -s conftest.err'
8422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8423   (eval $ac_try) 2>&5
8424   ac_status=$?
8425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8426   (exit $ac_status); }; } &&
8427          { ac_try='test -s conftest$ac_exeext'
8428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8429   (eval $ac_try) 2>&5
8430   ac_status=$?
8431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8432   (exit $ac_status); }; }; then
8433
8434 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8435 }'`
8436 # Check for a 64-bit object if we didn't find anything.
8437 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; }
8438 }'`; fi
8439 else
8440   echo "$as_me: failed program was:" >&5
8441 sed 's/^/| /' conftest.$ac_ext >&5
8442
8443 fi
8444 rm -f conftest.err conftest.$ac_objext \
8445       conftest$ac_exeext conftest.$ac_ext
8446 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8447
8448        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8449         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"
8450        else
8451         if test "$host_cpu" = ia64; then
8452           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8453           allow_undefined_flag="-z nodefs"
8454           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"
8455         else
8456          # Determine the default libpath from the value encoded in an empty executable.
8457          cat >conftest.$ac_ext <<_ACEOF
8458 /* confdefs.h.  */
8459 _ACEOF
8460 cat confdefs.h >>conftest.$ac_ext
8461 cat >>conftest.$ac_ext <<_ACEOF
8462 /* end confdefs.h.  */
8463
8464 int
8465 main ()
8466 {
8467
8468   ;
8469   return 0;
8470 }
8471 _ACEOF
8472 rm -f conftest.$ac_objext conftest$ac_exeext
8473 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8474   (eval $ac_link) 2>conftest.er1
8475   ac_status=$?
8476   grep -v '^ *+' conftest.er1 >conftest.err
8477   rm -f conftest.er1
8478   cat conftest.err >&5
8479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8480   (exit $ac_status); } &&
8481          { ac_try='test -z "$ac_c_werror_flag"
8482                          || test ! -s conftest.err'
8483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8484   (eval $ac_try) 2>&5
8485   ac_status=$?
8486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8487   (exit $ac_status); }; } &&
8488          { ac_try='test -s conftest$ac_exeext'
8489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8490   (eval $ac_try) 2>&5
8491   ac_status=$?
8492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8493   (exit $ac_status); }; }; then
8494
8495 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8496 }'`
8497 # Check for a 64-bit object if we didn't find anything.
8498 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; }
8499 }'`; fi
8500 else
8501   echo "$as_me: failed program was:" >&5
8502 sed 's/^/| /' conftest.$ac_ext >&5
8503
8504 fi
8505 rm -f conftest.err conftest.$ac_objext \
8506       conftest$ac_exeext conftest.$ac_ext
8507 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8508
8509          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8510           # Warning - without using the other run time loading flags,
8511           # -berok will link without error, but may produce a broken library.
8512           no_undefined_flag=' ${wl}-bernotok'
8513           allow_undefined_flag=' ${wl}-berok'
8514           # -bexpall does not export symbols beginning with underscore (_)
8515           always_export_symbols=yes
8516           # Exported symbols can be pulled into shared objects from archives
8517           whole_archive_flag_spec=' '
8518           archive_cmds_need_lc=yes
8519           # This is similar to how AIX traditionally builds it's shared libraries.
8520           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'
8521         fi
8522       fi
8523       ;;
8524
8525     amigaos*)
8526       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)'
8527       hardcode_libdir_flag_spec='-L$libdir'
8528       hardcode_minus_L=yes
8529       # see comment about different semantics on the GNU ld section
8530       ld_shlibs=no
8531       ;;
8532
8533     bsdi[45]*)
8534       export_dynamic_flag_spec=-rdynamic
8535       ;;
8536
8537     cygwin* | mingw* | pw32*)
8538       # When not using gcc, we currently assume that we are using
8539       # Microsoft Visual C++.
8540       # hardcode_libdir_flag_spec is actually meaningless, as there is
8541       # no search path for DLLs.
8542       hardcode_libdir_flag_spec=' '
8543       allow_undefined_flag=unsupported
8544       # Tell ltmain to make .lib files, not .a files.
8545       libext=lib
8546       # Tell ltmain to make .dll files, not .so files.
8547       shrext_cmds=".dll"
8548       # FIXME: Setting linknames here is a bad hack.
8549       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8550       # The linker will automatically build a .lib file if we build a DLL.
8551       old_archive_From_new_cmds='true'
8552       # FIXME: Should let the user specify the lib program.
8553       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8554       fix_srcfile_path='`cygpath -w "$srcfile"`'
8555       enable_shared_with_static_runtimes=yes
8556       ;;
8557
8558     darwin* | rhapsody*)
8559       case "$host_os" in
8560         rhapsody* | darwin1.[012])
8561          allow_undefined_flag='${wl}-undefined ${wl}suppress'
8562          ;;
8563        *) # Darwin 1.3 on
8564          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8565            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8566          else
8567            case ${MACOSX_DEPLOYMENT_TARGET} in
8568              10.[012])
8569                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8570                ;;
8571              10.*)
8572                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8573                ;;
8574            esac
8575          fi
8576          ;;
8577       esac
8578       archive_cmds_need_lc=no
8579       hardcode_direct=no
8580       hardcode_automatic=yes
8581       hardcode_shlibpath_var=unsupported
8582       whole_archive_flag_spec=''
8583       link_all_deplibs=yes
8584     if test "$GCC" = yes ; then
8585         output_verbose_link_cmd='echo'
8586         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8587       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8588       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8589       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}'
8590       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}'
8591     else
8592       case $cc_basename in
8593         xlc*)
8594          output_verbose_link_cmd='echo'
8595          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8596          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8597           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8598          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}'
8599           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}'
8600           ;;
8601        *)
8602          ld_shlibs=no
8603           ;;
8604       esac
8605     fi
8606       ;;
8607
8608     dgux*)
8609       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8610       hardcode_libdir_flag_spec='-L$libdir'
8611       hardcode_shlibpath_var=no
8612       ;;
8613
8614     freebsd1*)
8615       ld_shlibs=no
8616       ;;
8617
8618     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8619     # support.  Future versions do this automatically, but an explicit c++rt0.o
8620     # does not break anything, and helps significantly (at the cost of a little
8621     # extra space).
8622     freebsd2.2*)
8623       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8624       hardcode_libdir_flag_spec='-R$libdir'
8625       hardcode_direct=yes
8626       hardcode_shlibpath_var=no
8627       ;;
8628
8629     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8630     freebsd2*)
8631       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8632       hardcode_direct=yes
8633       hardcode_minus_L=yes
8634       hardcode_shlibpath_var=no
8635       ;;
8636
8637     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8638     freebsd* | kfreebsd*-gnu | dragonfly*)
8639       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8640       hardcode_libdir_flag_spec='-R$libdir'
8641       hardcode_direct=yes
8642       hardcode_shlibpath_var=no
8643       ;;
8644
8645     hpux9*)
8646       if test "$GCC" = yes; then
8647         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'
8648       else
8649         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'
8650       fi
8651       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8652       hardcode_libdir_separator=:
8653       hardcode_direct=yes
8654
8655       # hardcode_minus_L: Not really in the search PATH,
8656       # but as the default location of the library.
8657       hardcode_minus_L=yes
8658       export_dynamic_flag_spec='${wl}-E'
8659       ;;
8660
8661     hpux10* | hpux11*)
8662       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8663         case "$host_cpu" in
8664         hppa*64*|ia64*)
8665           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8666           ;;
8667         *)
8668           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8669           ;;
8670         esac
8671       else
8672         case "$host_cpu" in
8673         hppa*64*|ia64*)
8674           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
8675           ;;
8676         *)
8677           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8678           ;;
8679         esac
8680       fi
8681       if test "$with_gnu_ld" = no; then
8682         case "$host_cpu" in
8683         hppa*64*)
8684           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8685           hardcode_libdir_flag_spec_ld='+b $libdir'
8686           hardcode_libdir_separator=:
8687           hardcode_direct=no
8688           hardcode_shlibpath_var=no
8689           ;;
8690         ia64*)
8691           hardcode_libdir_flag_spec='-L$libdir'
8692           hardcode_direct=no
8693           hardcode_shlibpath_var=no
8694
8695           # hardcode_minus_L: Not really in the search PATH,
8696           # but as the default location of the library.
8697           hardcode_minus_L=yes
8698           ;;
8699         *)
8700           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8701           hardcode_libdir_separator=:
8702           hardcode_direct=yes
8703           export_dynamic_flag_spec='${wl}-E'
8704
8705           # hardcode_minus_L: Not really in the search PATH,
8706           # but as the default location of the library.
8707           hardcode_minus_L=yes
8708           ;;
8709         esac
8710       fi
8711       ;;
8712
8713     irix5* | irix6* | nonstopux*)
8714       if test "$GCC" = yes; then
8715         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'
8716       else
8717         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'
8718         hardcode_libdir_flag_spec_ld='-rpath $libdir'
8719       fi
8720       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8721       hardcode_libdir_separator=:
8722       link_all_deplibs=yes
8723       ;;
8724
8725     netbsd*)
8726       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8727         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8728       else
8729         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8730       fi
8731       hardcode_libdir_flag_spec='-R$libdir'
8732       hardcode_direct=yes
8733       hardcode_shlibpath_var=no
8734       ;;
8735
8736     newsos6)
8737       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8738       hardcode_direct=yes
8739       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8740       hardcode_libdir_separator=:
8741       hardcode_shlibpath_var=no
8742       ;;
8743
8744     openbsd*)
8745       hardcode_direct=yes
8746       hardcode_shlibpath_var=no
8747       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8748         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8749         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8750         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8751         export_dynamic_flag_spec='${wl}-E'
8752       else
8753        case $host_os in
8754          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8755            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8756            hardcode_libdir_flag_spec='-R$libdir'
8757            ;;
8758          *)
8759            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8760            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8761            ;;
8762        esac
8763       fi
8764       ;;
8765
8766     os2*)
8767       hardcode_libdir_flag_spec='-L$libdir'
8768       hardcode_minus_L=yes
8769       allow_undefined_flag=unsupported
8770       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'
8771       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8772       ;;
8773
8774     osf3*)
8775       if test "$GCC" = yes; then
8776         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8777         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'
8778       else
8779         allow_undefined_flag=' -expect_unresolved \*'
8780         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'
8781       fi
8782       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8783       hardcode_libdir_separator=:
8784       ;;
8785
8786     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8787       if test "$GCC" = yes; then
8788         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8789         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'
8790         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8791       else
8792         allow_undefined_flag=' -expect_unresolved \*'
8793         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'
8794         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8795         $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'
8796
8797         # Both c and cxx compiler support -rpath directly
8798         hardcode_libdir_flag_spec='-rpath $libdir'
8799       fi
8800       hardcode_libdir_separator=:
8801       ;;
8802
8803     sco3.2v5*)
8804       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8805       hardcode_shlibpath_var=no
8806       export_dynamic_flag_spec='${wl}-Bexport'
8807       runpath_var=LD_RUN_PATH
8808       hardcode_runpath_var=yes
8809       ;;
8810
8811     solaris*)
8812       no_undefined_flag=' -z text'
8813       if test "$GCC" = yes; then
8814         wlarc='${wl}'
8815         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8816         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8817           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8818       else
8819         wlarc=''
8820         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8821         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8822         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8823       fi
8824       hardcode_libdir_flag_spec='-R$libdir'
8825       hardcode_shlibpath_var=no
8826       case $host_os in
8827       solaris2.[0-5] | solaris2.[0-5].*) ;;
8828       *)
8829         # The compiler driver will combine linker options so we
8830         # cannot just pass the convience library names through
8831         # without $wl, iff we do not link with $LD.
8832         # Luckily, gcc supports the same syntax we need for Sun Studio.
8833         # Supported since Solaris 2.6 (maybe 2.5.1?)
8834         case $wlarc in
8835         '')
8836           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8837         *)
8838           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' ;;
8839         esac ;;
8840       esac
8841       link_all_deplibs=yes
8842       ;;
8843
8844     sunos4*)
8845       if test "x$host_vendor" = xsequent; then
8846         # Use $CC to link under sequent, because it throws in some extra .o
8847         # files that make .init and .fini sections work.
8848         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8849       else
8850         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8851       fi
8852       hardcode_libdir_flag_spec='-L$libdir'
8853       hardcode_direct=yes
8854       hardcode_minus_L=yes
8855       hardcode_shlibpath_var=no
8856       ;;
8857
8858     sysv4)
8859       case $host_vendor in
8860         sni)
8861           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8862           hardcode_direct=yes # is this really true???
8863         ;;
8864         siemens)
8865           ## LD is ld it makes a PLAMLIB
8866           ## CC just makes a GrossModule.
8867           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8868           reload_cmds='$CC -r -o $output$reload_objs'
8869           hardcode_direct=no
8870         ;;
8871         motorola)
8872           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8873           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8874         ;;
8875       esac
8876       runpath_var='LD_RUN_PATH'
8877       hardcode_shlibpath_var=no
8878       ;;
8879
8880     sysv4.3*)
8881       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8882       hardcode_shlibpath_var=no
8883       export_dynamic_flag_spec='-Bexport'
8884       ;;
8885
8886     sysv4*MP*)
8887       if test -d /usr/nec; then
8888         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8889         hardcode_shlibpath_var=no
8890         runpath_var=LD_RUN_PATH
8891         hardcode_runpath_var=yes
8892         ld_shlibs=yes
8893       fi
8894       ;;
8895
8896     sysv4.2uw2*)
8897       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8898       hardcode_direct=yes
8899       hardcode_minus_L=no
8900       hardcode_shlibpath_var=no
8901       hardcode_runpath_var=yes
8902       runpath_var=LD_RUN_PATH
8903       ;;
8904
8905    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
8906       no_undefined_flag='${wl}-z ${wl}text'
8907       if test "$GCC" = yes; then
8908         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8909       else
8910         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8911       fi
8912       runpath_var='LD_RUN_PATH'
8913       hardcode_shlibpath_var=no
8914       ;;
8915
8916     sysv5*)
8917       no_undefined_flag=' -z text'
8918       # $CC -shared without GNU ld will not create a library from C++
8919       # object files and a static libstdc++, better avoid it by now
8920       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8921       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8922                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8923       hardcode_libdir_flag_spec=
8924       hardcode_shlibpath_var=no
8925       runpath_var='LD_RUN_PATH'
8926       ;;
8927
8928     uts4*)
8929       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8930       hardcode_libdir_flag_spec='-L$libdir'
8931       hardcode_shlibpath_var=no
8932       ;;
8933
8934     *)
8935       ld_shlibs=no
8936       ;;
8937     esac
8938   fi
8939
8940 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8941 echo "${ECHO_T}$ld_shlibs" >&6
8942 test "$ld_shlibs" = no && can_build_shared=no
8943
8944 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8945 if test "$GCC" = yes; then
8946   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8947 fi
8948
8949 #
8950 # Do we need to explicitly link libc?
8951 #
8952 case "x$archive_cmds_need_lc" in
8953 x|xyes)
8954   # Assume -lc should be added
8955   archive_cmds_need_lc=yes
8956
8957   if test "$enable_shared" = yes && test "$GCC" = yes; then
8958     case $archive_cmds in
8959     *'~'*)
8960       # FIXME: we may have to deal with multi-command sequences.
8961       ;;
8962     '$CC '*)
8963       # Test whether the compiler implicitly links with -lc since on some
8964       # systems, -lgcc has to come before -lc. If gcc already passes -lc
8965       # to ld, don't add -lc before -lgcc.
8966       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8967 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8968       $rm conftest*
8969       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8970
8971       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8972   (eval $ac_compile) 2>&5
8973   ac_status=$?
8974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8975   (exit $ac_status); } 2>conftest.err; then
8976         soname=conftest
8977         lib=conftest
8978         libobjs=conftest.$ac_objext
8979         deplibs=
8980         wl=$lt_prog_compiler_wl
8981         compiler_flags=-v
8982         linker_flags=-v
8983         verstring=
8984         output_objdir=.
8985         libname=conftest
8986         lt_save_allow_undefined_flag=$allow_undefined_flag
8987         allow_undefined_flag=
8988         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8989   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8990   ac_status=$?
8991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8992   (exit $ac_status); }
8993         then
8994           archive_cmds_need_lc=no
8995         else
8996           archive_cmds_need_lc=yes
8997         fi
8998         allow_undefined_flag=$lt_save_allow_undefined_flag
8999       else
9000         cat conftest.err 1>&5
9001       fi
9002       $rm conftest*
9003       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9004 echo "${ECHO_T}$archive_cmds_need_lc" >&6
9005       ;;
9006     esac
9007   fi
9008   ;;
9009 esac
9010
9011 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9012 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9013 library_names_spec=
9014 libname_spec='lib$name'
9015 soname_spec=
9016 shrext_cmds=".so"
9017 postinstall_cmds=
9018 postuninstall_cmds=
9019 finish_cmds=
9020 finish_eval=
9021 shlibpath_var=
9022 shlibpath_overrides_runpath=unknown
9023 version_type=none
9024 dynamic_linker="$host_os ld.so"
9025 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9026 if test "$GCC" = yes; then
9027   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9028   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9029     # if the path contains ";" then we assume it to be the separator
9030     # otherwise default to the standard path separator (i.e. ":") - it is
9031     # assumed that no part of a normal pathname contains ";" but that should
9032     # okay in the real world where ";" in dirpaths is itself problematic.
9033     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9034   else
9035     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9036   fi
9037 else
9038   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9039 fi
9040 need_lib_prefix=unknown
9041 hardcode_into_libs=no
9042
9043 # when you set need_version to no, make sure it does not cause -set_version
9044 # flags to be left without arguments
9045 need_version=unknown
9046
9047 case $host_os in
9048 aix3*)
9049   version_type=linux
9050   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9051   shlibpath_var=LIBPATH
9052
9053   # AIX 3 has no versioning support, so we append a major version to the name.
9054   soname_spec='${libname}${release}${shared_ext}$major'
9055   ;;
9056
9057 aix4* | aix5*)
9058   version_type=linux
9059   need_lib_prefix=no
9060   need_version=no
9061   hardcode_into_libs=yes
9062   if test "$host_cpu" = ia64; then
9063     # AIX 5 supports IA64
9064     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9065     shlibpath_var=LD_LIBRARY_PATH
9066   else
9067     # With GCC up to 2.95.x, collect2 would create an import file
9068     # for dependence libraries.  The import file would start with
9069     # the line `#! .'.  This would cause the generated library to
9070     # depend on `.', always an invalid library.  This was fixed in
9071     # development snapshots of GCC prior to 3.0.
9072     case $host_os in
9073       aix4 | aix4.[01] | aix4.[01].*)
9074       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9075            echo ' yes '
9076            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9077         :
9078       else
9079         can_build_shared=no
9080       fi
9081       ;;
9082     esac
9083     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9084     # soname into executable. Probably we can add versioning support to
9085     # collect2, so additional links can be useful in future.
9086     if test "$aix_use_runtimelinking" = yes; then
9087       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9088       # instead of lib<name>.a to let people know that these are not
9089       # typical AIX shared libraries.
9090       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9091     else
9092       # We preserve .a as extension for shared libraries through AIX4.2
9093       # and later when we are not doing run time linking.
9094       library_names_spec='${libname}${release}.a $libname.a'
9095       soname_spec='${libname}${release}${shared_ext}$major'
9096     fi
9097     shlibpath_var=LIBPATH
9098   fi
9099   ;;
9100
9101 amigaos*)
9102   library_names_spec='$libname.ixlibrary $libname.a'
9103   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9104   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'
9105   ;;
9106
9107 beos*)
9108   library_names_spec='${libname}${shared_ext}'
9109   dynamic_linker="$host_os ld.so"
9110   shlibpath_var=LIBRARY_PATH
9111   ;;
9112
9113 bsdi[45]*)
9114   version_type=linux
9115   need_version=no
9116   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9117   soname_spec='${libname}${release}${shared_ext}$major'
9118   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9119   shlibpath_var=LD_LIBRARY_PATH
9120   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9121   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9122   # the default ld.so.conf also contains /usr/contrib/lib and
9123   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9124   # libtool to hard-code these into programs
9125   ;;
9126
9127 cygwin* | mingw* | pw32*)
9128   version_type=windows
9129   shrext_cmds=".dll"
9130   need_version=no
9131   need_lib_prefix=no
9132
9133   case $GCC,$host_os in
9134   yes,cygwin* | yes,mingw* | yes,pw32*)
9135     library_names_spec='$libname.dll.a'
9136     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9137     postinstall_cmds='base_file=`basename \${file}`~
9138       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9139       dldir=$destdir/`dirname \$dlpath`~
9140       test -d \$dldir || mkdir -p \$dldir~
9141       $install_prog $dir/$dlname \$dldir/$dlname'
9142     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9143       dlpath=$dir/\$dldll~
9144        $rm \$dlpath'
9145     shlibpath_overrides_runpath=yes
9146
9147     case $host_os in
9148     cygwin*)
9149       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9150       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9151       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9152       ;;
9153     mingw*)
9154       # MinGW DLLs use traditional 'lib' prefix
9155       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9156       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9157       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9158         # It is most probably a Windows format PATH printed by
9159         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9160         # path with ; separators, and with drive letters. We can handle the
9161         # drive letters (cygwin fileutils understands them), so leave them,
9162         # especially as we might pass files found there to a mingw objdump,
9163         # which wouldn't understand a cygwinified path. Ahh.
9164         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9165       else
9166         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9167       fi
9168       ;;
9169     pw32*)
9170       # pw32 DLLs use 'pw' prefix rather than 'lib'
9171       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9172       ;;
9173     esac
9174     ;;
9175
9176   *)
9177     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9178     ;;
9179   esac
9180   dynamic_linker='Win32 ld.exe'
9181   # FIXME: first we should search . and the directory the executable is in
9182   shlibpath_var=PATH
9183   ;;
9184
9185 darwin* | rhapsody*)
9186   dynamic_linker="$host_os dyld"
9187   version_type=darwin
9188   need_lib_prefix=no
9189   need_version=no
9190   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9191   soname_spec='${libname}${release}${major}$shared_ext'
9192   shlibpath_overrides_runpath=yes
9193   shlibpath_var=DYLD_LIBRARY_PATH
9194   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
9195   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9196   if test "$GCC" = yes; then
9197     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"`
9198   else
9199     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9200   fi
9201   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9202   ;;
9203
9204 dgux*)
9205   version_type=linux
9206   need_lib_prefix=no
9207   need_version=no
9208   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9209   soname_spec='${libname}${release}${shared_ext}$major'
9210   shlibpath_var=LD_LIBRARY_PATH
9211   ;;
9212
9213 freebsd1*)
9214   dynamic_linker=no
9215   ;;
9216
9217 kfreebsd*-gnu)
9218   version_type=linux
9219   need_lib_prefix=no
9220   need_version=no
9221   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9222   soname_spec='${libname}${release}${shared_ext}$major'
9223   shlibpath_var=LD_LIBRARY_PATH
9224   shlibpath_overrides_runpath=no
9225   hardcode_into_libs=yes
9226   dynamic_linker='GNU ld.so'
9227   ;;
9228
9229 freebsd* | dragonfly*)
9230   # DragonFly does not have aout.  When/if they implement a new
9231   # versioning mechanism, adjust this.
9232   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
9233   version_type=freebsd-$objformat
9234   case $version_type in
9235     freebsd-elf*)
9236       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9237       need_version=no
9238       need_lib_prefix=no
9239       ;;
9240     freebsd-*)
9241       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9242       need_version=yes
9243       ;;
9244   esac
9245   shlibpath_var=LD_LIBRARY_PATH
9246   case $host_os in
9247   freebsd2*)
9248     shlibpath_overrides_runpath=yes
9249     ;;
9250   freebsd3.[01]* | freebsdelf3.[01]*)
9251     shlibpath_overrides_runpath=yes
9252     hardcode_into_libs=yes
9253     ;;
9254   *) # from 3.2 on
9255     shlibpath_overrides_runpath=no
9256     hardcode_into_libs=yes
9257     ;;
9258   esac
9259   ;;
9260
9261 gnu*)
9262   version_type=linux
9263   need_lib_prefix=no
9264   need_version=no
9265   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9266   soname_spec='${libname}${release}${shared_ext}$major'
9267   shlibpath_var=LD_LIBRARY_PATH
9268   hardcode_into_libs=yes
9269   ;;
9270
9271 hpux9* | hpux10* | hpux11*)
9272   # Give a soname corresponding to the major version so that dld.sl refuses to
9273   # link against other versions.
9274   version_type=sunos
9275   need_lib_prefix=no
9276   need_version=no
9277   case "$host_cpu" in
9278   ia64*)
9279     shrext_cmds='.so'
9280     hardcode_into_libs=yes
9281     dynamic_linker="$host_os dld.so"
9282     shlibpath_var=LD_LIBRARY_PATH
9283     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9284     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9285     soname_spec='${libname}${release}${shared_ext}$major'
9286     if test "X$HPUX_IA64_MODE" = X32; then
9287       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9288     else
9289       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9290     fi
9291     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9292     ;;
9293    hppa*64*)
9294      shrext_cmds='.sl'
9295      hardcode_into_libs=yes
9296      dynamic_linker="$host_os dld.sl"
9297      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9298      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9299      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9300      soname_spec='${libname}${release}${shared_ext}$major'
9301      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9302      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9303      ;;
9304    *)
9305     shrext_cmds='.sl'
9306     dynamic_linker="$host_os dld.sl"
9307     shlibpath_var=SHLIB_PATH
9308     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9309     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9310     soname_spec='${libname}${release}${shared_ext}$major'
9311     ;;
9312   esac
9313   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9314   postinstall_cmds='chmod 555 $lib'
9315   ;;
9316
9317 irix5* | irix6* | nonstopux*)
9318   case $host_os in
9319     nonstopux*) version_type=nonstopux ;;
9320     *)
9321         if test "$lt_cv_prog_gnu_ld" = yes; then
9322                 version_type=linux
9323         else
9324                 version_type=irix
9325         fi ;;
9326   esac
9327   need_lib_prefix=no
9328   need_version=no
9329   soname_spec='${libname}${release}${shared_ext}$major'
9330   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9331   case $host_os in
9332   irix5* | nonstopux*)
9333     libsuff= shlibsuff=
9334     ;;
9335   *)
9336     case $LD in # libtool.m4 will add one of these switches to LD
9337     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9338       libsuff= shlibsuff= libmagic=32-bit;;
9339     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9340       libsuff=32 shlibsuff=N32 libmagic=N32;;
9341     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9342       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9343     *) libsuff= shlibsuff= libmagic=never-match;;
9344     esac
9345     ;;
9346   esac
9347   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9348   shlibpath_overrides_runpath=no
9349   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9350   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9351   hardcode_into_libs=yes
9352   ;;
9353
9354 # No shared lib support for Linux oldld, aout, or coff.
9355 linux*oldld* | linux*aout* | linux*coff*)
9356   dynamic_linker=no
9357   ;;
9358
9359 # This must be Linux ELF.
9360 linux*)
9361   version_type=linux
9362   need_lib_prefix=no
9363   need_version=no
9364   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9365   soname_spec='${libname}${release}${shared_ext}$major'
9366   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9367   shlibpath_var=LD_LIBRARY_PATH
9368   shlibpath_overrides_runpath=no
9369   # This implies no fast_install, which is unacceptable.
9370   # Some rework will be needed to allow for fast_install
9371   # before this can be enabled.
9372   hardcode_into_libs=yes
9373
9374   # Append ld.so.conf contents to the search path
9375   if test -f /etc/ld.so.conf; then
9376     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' ' '`
9377     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9378   fi
9379
9380   # We used to test for /lib/ld.so.1 and disable shared libraries on
9381   # powerpc, because MkLinux only supported shared libraries with the
9382   # GNU dynamic linker.  Since this was broken with cross compilers,
9383   # most powerpc-linux boxes support dynamic linking these days and
9384   # people can always --disable-shared, the test was removed, and we
9385   # assume the GNU/Linux dynamic linker is in use.
9386   dynamic_linker='GNU/Linux ld.so'
9387   ;;
9388
9389 knetbsd*-gnu)
9390   version_type=linux
9391   need_lib_prefix=no
9392   need_version=no
9393   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9394   soname_spec='${libname}${release}${shared_ext}$major'
9395   shlibpath_var=LD_LIBRARY_PATH
9396   shlibpath_overrides_runpath=no
9397   hardcode_into_libs=yes
9398   dynamic_linker='GNU ld.so'
9399   ;;
9400
9401 netbsd*)
9402   version_type=sunos
9403   need_lib_prefix=no
9404   need_version=no
9405   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9406     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9407     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9408     dynamic_linker='NetBSD (a.out) ld.so'
9409   else
9410     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9411     soname_spec='${libname}${release}${shared_ext}$major'
9412     dynamic_linker='NetBSD ld.elf_so'
9413   fi
9414   shlibpath_var=LD_LIBRARY_PATH
9415   shlibpath_overrides_runpath=yes
9416   hardcode_into_libs=yes
9417   ;;
9418
9419 newsos6)
9420   version_type=linux
9421   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9422   shlibpath_var=LD_LIBRARY_PATH
9423   shlibpath_overrides_runpath=yes
9424   ;;
9425
9426 nto-qnx*)
9427   version_type=linux
9428   need_lib_prefix=no
9429   need_version=no
9430   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9431   soname_spec='${libname}${release}${shared_ext}$major'
9432   shlibpath_var=LD_LIBRARY_PATH
9433   shlibpath_overrides_runpath=yes
9434   ;;
9435
9436 openbsd*)
9437   version_type=sunos
9438   need_lib_prefix=no
9439   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9440   case $host_os in
9441     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9442     *)                         need_version=no  ;;
9443   esac
9444   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9445   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9446   shlibpath_var=LD_LIBRARY_PATH
9447   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9448     case $host_os in
9449       openbsd2.[89] | openbsd2.[89].*)
9450         shlibpath_overrides_runpath=no
9451         ;;
9452       *)
9453         shlibpath_overrides_runpath=yes
9454         ;;
9455       esac
9456   else
9457     shlibpath_overrides_runpath=yes
9458   fi
9459   ;;
9460
9461 os2*)
9462   libname_spec='$name'
9463   shrext_cmds=".dll"
9464   need_lib_prefix=no
9465   library_names_spec='$libname${shared_ext} $libname.a'
9466   dynamic_linker='OS/2 ld.exe'
9467   shlibpath_var=LIBPATH
9468   ;;
9469
9470 osf3* | osf4* | osf5*)
9471   version_type=osf
9472   need_lib_prefix=no
9473   need_version=no
9474   soname_spec='${libname}${release}${shared_ext}$major'
9475   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9476   shlibpath_var=LD_LIBRARY_PATH
9477   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9478   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9479   ;;
9480
9481 sco3.2v5*)
9482   version_type=osf
9483   soname_spec='${libname}${release}${shared_ext}$major'
9484   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9485   shlibpath_var=LD_LIBRARY_PATH
9486   ;;
9487
9488 solaris*)
9489   version_type=linux
9490   need_lib_prefix=no
9491   need_version=no
9492   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9493   soname_spec='${libname}${release}${shared_ext}$major'
9494   shlibpath_var=LD_LIBRARY_PATH
9495   shlibpath_overrides_runpath=yes
9496   hardcode_into_libs=yes
9497   # ldd complains unless libraries are executable
9498   postinstall_cmds='chmod +x $lib'
9499   ;;
9500
9501 sunos4*)
9502   version_type=sunos
9503   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9504   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9505   shlibpath_var=LD_LIBRARY_PATH
9506   shlibpath_overrides_runpath=yes
9507   if test "$with_gnu_ld" = yes; then
9508     need_lib_prefix=no
9509   fi
9510   need_version=yes
9511   ;;
9512
9513 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9514   version_type=linux
9515   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9516   soname_spec='${libname}${release}${shared_ext}$major'
9517   shlibpath_var=LD_LIBRARY_PATH
9518   case $host_vendor in
9519     sni)
9520       shlibpath_overrides_runpath=no
9521       need_lib_prefix=no
9522       export_dynamic_flag_spec='${wl}-Blargedynsym'
9523       runpath_var=LD_RUN_PATH
9524       ;;
9525     siemens)
9526       need_lib_prefix=no
9527       ;;
9528     motorola)
9529       need_lib_prefix=no
9530       need_version=no
9531       shlibpath_overrides_runpath=no
9532       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9533       ;;
9534   esac
9535   ;;
9536
9537 sysv4*MP*)
9538   if test -d /usr/nec ;then
9539     version_type=linux
9540     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9541     soname_spec='$libname${shared_ext}.$major'
9542     shlibpath_var=LD_LIBRARY_PATH
9543   fi
9544   ;;
9545
9546 uts4*)
9547   version_type=linux
9548   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9549   soname_spec='${libname}${release}${shared_ext}$major'
9550   shlibpath_var=LD_LIBRARY_PATH
9551   ;;
9552
9553 *)
9554   dynamic_linker=no
9555   ;;
9556 esac
9557 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9558 echo "${ECHO_T}$dynamic_linker" >&6
9559 test "$dynamic_linker" = no && can_build_shared=no
9560
9561 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9562 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9563 hardcode_action=
9564 if test -n "$hardcode_libdir_flag_spec" || \
9565    test -n "$runpath_var" || \
9566    test "X$hardcode_automatic" = "Xyes" ; then
9567
9568   # We can hardcode non-existant directories.
9569   if test "$hardcode_direct" != no &&
9570      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9571      # have to relink, otherwise we might link with an installed library
9572      # when we should be linking with a yet-to-be-installed one
9573      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9574      test "$hardcode_minus_L" != no; then
9575     # Linking always hardcodes the temporary library directory.
9576     hardcode_action=relink
9577   else
9578     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9579     hardcode_action=immediate
9580   fi
9581 else
9582   # We cannot hardcode anything, or else we can only hardcode existing
9583   # directories.
9584   hardcode_action=unsupported
9585 fi
9586 echo "$as_me:$LINENO: result: $hardcode_action" >&5
9587 echo "${ECHO_T}$hardcode_action" >&6
9588
9589 if test "$hardcode_action" = relink; then
9590   # Fast installation is not supported
9591   enable_fast_install=no
9592 elif test "$shlibpath_overrides_runpath" = yes ||
9593      test "$enable_shared" = no; then
9594   # Fast installation is not necessary
9595   enable_fast_install=needless
9596 fi
9597
9598 striplib=
9599 old_striplib=
9600 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9601 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9602 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9603   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9604   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9605   echo "$as_me:$LINENO: result: yes" >&5
9606 echo "${ECHO_T}yes" >&6
9607 else
9608 # FIXME - insert some real tests, host_os isn't really good enough
9609   case $host_os in
9610    darwin*)
9611        if test -n "$STRIP" ; then
9612          striplib="$STRIP -x"
9613          echo "$as_me:$LINENO: result: yes" >&5
9614 echo "${ECHO_T}yes" >&6
9615        else
9616   echo "$as_me:$LINENO: result: no" >&5
9617 echo "${ECHO_T}no" >&6
9618 fi
9619        ;;
9620    *)
9621   echo "$as_me:$LINENO: result: no" >&5
9622 echo "${ECHO_T}no" >&6
9623     ;;
9624   esac
9625 fi
9626
9627 if test "x$enable_dlopen" != xyes; then
9628   enable_dlopen=unknown
9629   enable_dlopen_self=unknown
9630   enable_dlopen_self_static=unknown
9631 else
9632   lt_cv_dlopen=no
9633   lt_cv_dlopen_libs=
9634
9635   case $host_os in
9636   beos*)
9637     lt_cv_dlopen="load_add_on"
9638     lt_cv_dlopen_libs=
9639     lt_cv_dlopen_self=yes
9640     ;;
9641
9642   mingw* | pw32*)
9643     lt_cv_dlopen="LoadLibrary"
9644     lt_cv_dlopen_libs=
9645    ;;
9646
9647   cygwin*)
9648     lt_cv_dlopen="dlopen"
9649     lt_cv_dlopen_libs=
9650    ;;
9651
9652   darwin*)
9653   # if libdl is installed we need to link against it
9654     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9655 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9656 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9657   echo $ECHO_N "(cached) $ECHO_C" >&6
9658 else
9659   ac_check_lib_save_LIBS=$LIBS
9660 LIBS="-ldl  $LIBS"
9661 cat >conftest.$ac_ext <<_ACEOF
9662 /* confdefs.h.  */
9663 _ACEOF
9664 cat confdefs.h >>conftest.$ac_ext
9665 cat >>conftest.$ac_ext <<_ACEOF
9666 /* end confdefs.h.  */
9667
9668 /* Override any gcc2 internal prototype to avoid an error.  */
9669 #ifdef __cplusplus
9670 extern "C"
9671 #endif
9672 /* We use char because int might match the return type of a gcc2
9673    builtin and then its argument prototype would still apply.  */
9674 char dlopen ();
9675 int
9676 main ()
9677 {
9678 dlopen ();
9679   ;
9680   return 0;
9681 }
9682 _ACEOF
9683 rm -f conftest.$ac_objext conftest$ac_exeext
9684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9685   (eval $ac_link) 2>conftest.er1
9686   ac_status=$?
9687   grep -v '^ *+' conftest.er1 >conftest.err
9688   rm -f conftest.er1
9689   cat conftest.err >&5
9690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9691   (exit $ac_status); } &&
9692          { ac_try='test -z "$ac_c_werror_flag"
9693                          || test ! -s conftest.err'
9694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9695   (eval $ac_try) 2>&5
9696   ac_status=$?
9697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9698   (exit $ac_status); }; } &&
9699          { ac_try='test -s conftest$ac_exeext'
9700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9701   (eval $ac_try) 2>&5
9702   ac_status=$?
9703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9704   (exit $ac_status); }; }; then
9705   ac_cv_lib_dl_dlopen=yes
9706 else
9707   echo "$as_me: failed program was:" >&5
9708 sed 's/^/| /' conftest.$ac_ext >&5
9709
9710 ac_cv_lib_dl_dlopen=no
9711 fi
9712 rm -f conftest.err conftest.$ac_objext \
9713       conftest$ac_exeext conftest.$ac_ext
9714 LIBS=$ac_check_lib_save_LIBS
9715 fi
9716 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9717 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9718 if test $ac_cv_lib_dl_dlopen = yes; then
9719   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9720 else
9721
9722     lt_cv_dlopen="dyld"
9723     lt_cv_dlopen_libs=
9724     lt_cv_dlopen_self=yes
9725
9726 fi
9727
9728    ;;
9729
9730   *)
9731     echo "$as_me:$LINENO: checking for shl_load" >&5
9732 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9733 if test "${ac_cv_func_shl_load+set}" = set; then
9734   echo $ECHO_N "(cached) $ECHO_C" >&6
9735 else
9736   cat >conftest.$ac_ext <<_ACEOF
9737 /* confdefs.h.  */
9738 _ACEOF
9739 cat confdefs.h >>conftest.$ac_ext
9740 cat >>conftest.$ac_ext <<_ACEOF
9741 /* end confdefs.h.  */
9742 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9743    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9744 #define shl_load innocuous_shl_load
9745
9746 /* System header to define __stub macros and hopefully few prototypes,
9747     which can conflict with char shl_load (); below.
9748     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9749     <limits.h> exists even on freestanding compilers.  */
9750
9751 #ifdef __STDC__
9752 # include <limits.h>
9753 #else
9754 # include <assert.h>
9755 #endif
9756
9757 #undef shl_load
9758
9759 /* Override any gcc2 internal prototype to avoid an error.  */
9760 #ifdef __cplusplus
9761 extern "C"
9762 {
9763 #endif
9764 /* We use char because int might match the return type of a gcc2
9765    builtin and then its argument prototype would still apply.  */
9766 char shl_load ();
9767 /* The GNU C library defines this for functions which it implements
9768     to always fail with ENOSYS.  Some functions are actually named
9769     something starting with __ and the normal name is an alias.  */
9770 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9771 choke me
9772 #else
9773 char (*f) () = shl_load;
9774 #endif
9775 #ifdef __cplusplus
9776 }
9777 #endif
9778
9779 int
9780 main ()
9781 {
9782 return f != shl_load;
9783   ;
9784   return 0;
9785 }
9786 _ACEOF
9787 rm -f conftest.$ac_objext conftest$ac_exeext
9788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9789   (eval $ac_link) 2>conftest.er1
9790   ac_status=$?
9791   grep -v '^ *+' conftest.er1 >conftest.err
9792   rm -f conftest.er1
9793   cat conftest.err >&5
9794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9795   (exit $ac_status); } &&
9796          { ac_try='test -z "$ac_c_werror_flag"
9797                          || test ! -s conftest.err'
9798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9799   (eval $ac_try) 2>&5
9800   ac_status=$?
9801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9802   (exit $ac_status); }; } &&
9803          { ac_try='test -s conftest$ac_exeext'
9804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9805   (eval $ac_try) 2>&5
9806   ac_status=$?
9807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9808   (exit $ac_status); }; }; then
9809   ac_cv_func_shl_load=yes
9810 else
9811   echo "$as_me: failed program was:" >&5
9812 sed 's/^/| /' conftest.$ac_ext >&5
9813
9814 ac_cv_func_shl_load=no
9815 fi
9816 rm -f conftest.err conftest.$ac_objext \
9817       conftest$ac_exeext conftest.$ac_ext
9818 fi
9819 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9820 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9821 if test $ac_cv_func_shl_load = yes; then
9822   lt_cv_dlopen="shl_load"
9823 else
9824   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9825 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9826 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9827   echo $ECHO_N "(cached) $ECHO_C" >&6
9828 else
9829   ac_check_lib_save_LIBS=$LIBS
9830 LIBS="-ldld  $LIBS"
9831 cat >conftest.$ac_ext <<_ACEOF
9832 /* confdefs.h.  */
9833 _ACEOF
9834 cat confdefs.h >>conftest.$ac_ext
9835 cat >>conftest.$ac_ext <<_ACEOF
9836 /* end confdefs.h.  */
9837
9838 /* Override any gcc2 internal prototype to avoid an error.  */
9839 #ifdef __cplusplus
9840 extern "C"
9841 #endif
9842 /* We use char because int might match the return type of a gcc2
9843    builtin and then its argument prototype would still apply.  */
9844 char shl_load ();
9845 int
9846 main ()
9847 {
9848 shl_load ();
9849   ;
9850   return 0;
9851 }
9852 _ACEOF
9853 rm -f conftest.$ac_objext conftest$ac_exeext
9854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9855   (eval $ac_link) 2>conftest.er1
9856   ac_status=$?
9857   grep -v '^ *+' conftest.er1 >conftest.err
9858   rm -f conftest.er1
9859   cat conftest.err >&5
9860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9861   (exit $ac_status); } &&
9862          { ac_try='test -z "$ac_c_werror_flag"
9863                          || test ! -s conftest.err'
9864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9865   (eval $ac_try) 2>&5
9866   ac_status=$?
9867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9868   (exit $ac_status); }; } &&
9869          { ac_try='test -s conftest$ac_exeext'
9870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9871   (eval $ac_try) 2>&5
9872   ac_status=$?
9873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9874   (exit $ac_status); }; }; then
9875   ac_cv_lib_dld_shl_load=yes
9876 else
9877   echo "$as_me: failed program was:" >&5
9878 sed 's/^/| /' conftest.$ac_ext >&5
9879
9880 ac_cv_lib_dld_shl_load=no
9881 fi
9882 rm -f conftest.err conftest.$ac_objext \
9883       conftest$ac_exeext conftest.$ac_ext
9884 LIBS=$ac_check_lib_save_LIBS
9885 fi
9886 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9887 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9888 if test $ac_cv_lib_dld_shl_load = yes; then
9889   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9890 else
9891   echo "$as_me:$LINENO: checking for dlopen" >&5
9892 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9893 if test "${ac_cv_func_dlopen+set}" = set; then
9894   echo $ECHO_N "(cached) $ECHO_C" >&6
9895 else
9896   cat >conftest.$ac_ext <<_ACEOF
9897 /* confdefs.h.  */
9898 _ACEOF
9899 cat confdefs.h >>conftest.$ac_ext
9900 cat >>conftest.$ac_ext <<_ACEOF
9901 /* end confdefs.h.  */
9902 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9903    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9904 #define dlopen innocuous_dlopen
9905
9906 /* System header to define __stub macros and hopefully few prototypes,
9907     which can conflict with char dlopen (); below.
9908     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9909     <limits.h> exists even on freestanding compilers.  */
9910
9911 #ifdef __STDC__
9912 # include <limits.h>
9913 #else
9914 # include <assert.h>
9915 #endif
9916
9917 #undef dlopen
9918
9919 /* Override any gcc2 internal prototype to avoid an error.  */
9920 #ifdef __cplusplus
9921 extern "C"
9922 {
9923 #endif
9924 /* We use char because int might match the return type of a gcc2
9925    builtin and then its argument prototype would still apply.  */
9926 char dlopen ();
9927 /* The GNU C library defines this for functions which it implements
9928     to always fail with ENOSYS.  Some functions are actually named
9929     something starting with __ and the normal name is an alias.  */
9930 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9931 choke me
9932 #else
9933 char (*f) () = dlopen;
9934 #endif
9935 #ifdef __cplusplus
9936 }
9937 #endif
9938
9939 int
9940 main ()
9941 {
9942 return f != dlopen;
9943   ;
9944   return 0;
9945 }
9946 _ACEOF
9947 rm -f conftest.$ac_objext conftest$ac_exeext
9948 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9949   (eval $ac_link) 2>conftest.er1
9950   ac_status=$?
9951   grep -v '^ *+' conftest.er1 >conftest.err
9952   rm -f conftest.er1
9953   cat conftest.err >&5
9954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9955   (exit $ac_status); } &&
9956          { ac_try='test -z "$ac_c_werror_flag"
9957                          || test ! -s conftest.err'
9958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9959   (eval $ac_try) 2>&5
9960   ac_status=$?
9961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9962   (exit $ac_status); }; } &&
9963          { ac_try='test -s conftest$ac_exeext'
9964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9965   (eval $ac_try) 2>&5
9966   ac_status=$?
9967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9968   (exit $ac_status); }; }; then
9969   ac_cv_func_dlopen=yes
9970 else
9971   echo "$as_me: failed program was:" >&5
9972 sed 's/^/| /' conftest.$ac_ext >&5
9973
9974 ac_cv_func_dlopen=no
9975 fi
9976 rm -f conftest.err conftest.$ac_objext \
9977       conftest$ac_exeext conftest.$ac_ext
9978 fi
9979 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9980 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9981 if test $ac_cv_func_dlopen = yes; then
9982   lt_cv_dlopen="dlopen"
9983 else
9984   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9985 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9986 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9987   echo $ECHO_N "(cached) $ECHO_C" >&6
9988 else
9989   ac_check_lib_save_LIBS=$LIBS
9990 LIBS="-ldl  $LIBS"
9991 cat >conftest.$ac_ext <<_ACEOF
9992 /* confdefs.h.  */
9993 _ACEOF
9994 cat confdefs.h >>conftest.$ac_ext
9995 cat >>conftest.$ac_ext <<_ACEOF
9996 /* end confdefs.h.  */
9997
9998 /* Override any gcc2 internal prototype to avoid an error.  */
9999 #ifdef __cplusplus
10000 extern "C"
10001 #endif
10002 /* We use char because int might match the return type of a gcc2
10003    builtin and then its argument prototype would still apply.  */
10004 char dlopen ();
10005 int
10006 main ()
10007 {
10008 dlopen ();
10009   ;
10010   return 0;
10011 }
10012 _ACEOF
10013 rm -f conftest.$ac_objext conftest$ac_exeext
10014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10015   (eval $ac_link) 2>conftest.er1
10016   ac_status=$?
10017   grep -v '^ *+' conftest.er1 >conftest.err
10018   rm -f conftest.er1
10019   cat conftest.err >&5
10020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10021   (exit $ac_status); } &&
10022          { ac_try='test -z "$ac_c_werror_flag"
10023                          || test ! -s conftest.err'
10024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10025   (eval $ac_try) 2>&5
10026   ac_status=$?
10027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10028   (exit $ac_status); }; } &&
10029          { ac_try='test -s conftest$ac_exeext'
10030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10031   (eval $ac_try) 2>&5
10032   ac_status=$?
10033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10034   (exit $ac_status); }; }; then
10035   ac_cv_lib_dl_dlopen=yes
10036 else
10037   echo "$as_me: failed program was:" >&5
10038 sed 's/^/| /' conftest.$ac_ext >&5
10039
10040 ac_cv_lib_dl_dlopen=no
10041 fi
10042 rm -f conftest.err conftest.$ac_objext \
10043       conftest$ac_exeext conftest.$ac_ext
10044 LIBS=$ac_check_lib_save_LIBS
10045 fi
10046 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10047 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10048 if test $ac_cv_lib_dl_dlopen = yes; then
10049   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10050 else
10051   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10052 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10053 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10054   echo $ECHO_N "(cached) $ECHO_C" >&6
10055 else
10056   ac_check_lib_save_LIBS=$LIBS
10057 LIBS="-lsvld  $LIBS"
10058 cat >conftest.$ac_ext <<_ACEOF
10059 /* confdefs.h.  */
10060 _ACEOF
10061 cat confdefs.h >>conftest.$ac_ext
10062 cat >>conftest.$ac_ext <<_ACEOF
10063 /* end confdefs.h.  */
10064
10065 /* Override any gcc2 internal prototype to avoid an error.  */
10066 #ifdef __cplusplus
10067 extern "C"
10068 #endif
10069 /* We use char because int might match the return type of a gcc2
10070    builtin and then its argument prototype would still apply.  */
10071 char dlopen ();
10072 int
10073 main ()
10074 {
10075 dlopen ();
10076   ;
10077   return 0;
10078 }
10079 _ACEOF
10080 rm -f conftest.$ac_objext conftest$ac_exeext
10081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10082   (eval $ac_link) 2>conftest.er1
10083   ac_status=$?
10084   grep -v '^ *+' conftest.er1 >conftest.err
10085   rm -f conftest.er1
10086   cat conftest.err >&5
10087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10088   (exit $ac_status); } &&
10089          { ac_try='test -z "$ac_c_werror_flag"
10090                          || test ! -s conftest.err'
10091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10092   (eval $ac_try) 2>&5
10093   ac_status=$?
10094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10095   (exit $ac_status); }; } &&
10096          { ac_try='test -s conftest$ac_exeext'
10097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10098   (eval $ac_try) 2>&5
10099   ac_status=$?
10100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10101   (exit $ac_status); }; }; then
10102   ac_cv_lib_svld_dlopen=yes
10103 else
10104   echo "$as_me: failed program was:" >&5
10105 sed 's/^/| /' conftest.$ac_ext >&5
10106
10107 ac_cv_lib_svld_dlopen=no
10108 fi
10109 rm -f conftest.err conftest.$ac_objext \
10110       conftest$ac_exeext conftest.$ac_ext
10111 LIBS=$ac_check_lib_save_LIBS
10112 fi
10113 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10114 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10115 if test $ac_cv_lib_svld_dlopen = yes; then
10116   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10117 else
10118   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10119 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10120 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10121   echo $ECHO_N "(cached) $ECHO_C" >&6
10122 else
10123   ac_check_lib_save_LIBS=$LIBS
10124 LIBS="-ldld  $LIBS"
10125 cat >conftest.$ac_ext <<_ACEOF
10126 /* confdefs.h.  */
10127 _ACEOF
10128 cat confdefs.h >>conftest.$ac_ext
10129 cat >>conftest.$ac_ext <<_ACEOF
10130 /* end confdefs.h.  */
10131
10132 /* Override any gcc2 internal prototype to avoid an error.  */
10133 #ifdef __cplusplus
10134 extern "C"
10135 #endif
10136 /* We use char because int might match the return type of a gcc2
10137    builtin and then its argument prototype would still apply.  */
10138 char dld_link ();
10139 int
10140 main ()
10141 {
10142 dld_link ();
10143   ;
10144   return 0;
10145 }
10146 _ACEOF
10147 rm -f conftest.$ac_objext conftest$ac_exeext
10148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10149   (eval $ac_link) 2>conftest.er1
10150   ac_status=$?
10151   grep -v '^ *+' conftest.er1 >conftest.err
10152   rm -f conftest.er1
10153   cat conftest.err >&5
10154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10155   (exit $ac_status); } &&
10156          { ac_try='test -z "$ac_c_werror_flag"
10157                          || test ! -s conftest.err'
10158   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10159   (eval $ac_try) 2>&5
10160   ac_status=$?
10161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10162   (exit $ac_status); }; } &&
10163          { ac_try='test -s conftest$ac_exeext'
10164   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10165   (eval $ac_try) 2>&5
10166   ac_status=$?
10167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10168   (exit $ac_status); }; }; then
10169   ac_cv_lib_dld_dld_link=yes
10170 else
10171   echo "$as_me: failed program was:" >&5
10172 sed 's/^/| /' conftest.$ac_ext >&5
10173
10174 ac_cv_lib_dld_dld_link=no
10175 fi
10176 rm -f conftest.err conftest.$ac_objext \
10177       conftest$ac_exeext conftest.$ac_ext
10178 LIBS=$ac_check_lib_save_LIBS
10179 fi
10180 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10181 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10182 if test $ac_cv_lib_dld_dld_link = yes; then
10183   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10184 fi
10185
10186
10187 fi
10188
10189
10190 fi
10191
10192
10193 fi
10194
10195
10196 fi
10197
10198
10199 fi
10200
10201     ;;
10202   esac
10203
10204   if test "x$lt_cv_dlopen" != xno; then
10205     enable_dlopen=yes
10206   else
10207     enable_dlopen=no
10208   fi
10209
10210   case $lt_cv_dlopen in
10211   dlopen)
10212     save_CPPFLAGS="$CPPFLAGS"
10213     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10214
10215     save_LDFLAGS="$LDFLAGS"
10216     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10217
10218     save_LIBS="$LIBS"
10219     LIBS="$lt_cv_dlopen_libs $LIBS"
10220
10221     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10222 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10223 if test "${lt_cv_dlopen_self+set}" = set; then
10224   echo $ECHO_N "(cached) $ECHO_C" >&6
10225 else
10226           if test "$cross_compiling" = yes; then :
10227   lt_cv_dlopen_self=cross
10228 else
10229   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10230   lt_status=$lt_dlunknown
10231   cat > conftest.$ac_ext <<EOF
10232 #line 10232 "configure"
10233 #include "confdefs.h"
10234
10235 #if HAVE_DLFCN_H
10236 #include <dlfcn.h>
10237 #endif
10238
10239 #include <stdio.h>
10240
10241 #ifdef RTLD_GLOBAL
10242 #  define LT_DLGLOBAL           RTLD_GLOBAL
10243 #else
10244 #  ifdef DL_GLOBAL
10245 #    define LT_DLGLOBAL         DL_GLOBAL
10246 #  else
10247 #    define LT_DLGLOBAL         0
10248 #  endif
10249 #endif
10250
10251 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10252    find out it does not work in some platform. */
10253 #ifndef LT_DLLAZY_OR_NOW
10254 #  ifdef RTLD_LAZY
10255 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10256 #  else
10257 #    ifdef DL_LAZY
10258 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10259 #    else
10260 #      ifdef RTLD_NOW
10261 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10262 #      else
10263 #        ifdef DL_NOW
10264 #          define LT_DLLAZY_OR_NOW      DL_NOW
10265 #        else
10266 #          define LT_DLLAZY_OR_NOW      0
10267 #        endif
10268 #      endif
10269 #    endif
10270 #  endif
10271 #endif
10272
10273 #ifdef __cplusplus
10274 extern "C" void exit (int);
10275 #endif
10276
10277 void fnord() { int i=42;}
10278 int main ()
10279 {
10280   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10281   int status = $lt_dlunknown;
10282
10283   if (self)
10284     {
10285       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10286       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10287       /* dlclose (self); */
10288     }
10289
10290     exit (status);
10291 }
10292 EOF
10293   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10294   (eval $ac_link) 2>&5
10295   ac_status=$?
10296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10297   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10298     (./conftest; exit; ) 2>/dev/null
10299     lt_status=$?
10300     case x$lt_status in
10301       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10302       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10303       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
10304     esac
10305   else :
10306     # compilation failed
10307     lt_cv_dlopen_self=no
10308   fi
10309 fi
10310 rm -fr conftest*
10311
10312
10313 fi
10314 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10315 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10316
10317     if test "x$lt_cv_dlopen_self" = xyes; then
10318       LDFLAGS="$LDFLAGS $link_static_flag"
10319       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10320 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10321 if test "${lt_cv_dlopen_self_static+set}" = set; then
10322   echo $ECHO_N "(cached) $ECHO_C" >&6
10323 else
10324           if test "$cross_compiling" = yes; then :
10325   lt_cv_dlopen_self_static=cross
10326 else
10327   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10328   lt_status=$lt_dlunknown
10329   cat > conftest.$ac_ext <<EOF
10330 #line 10330 "configure"
10331 #include "confdefs.h"
10332
10333 #if HAVE_DLFCN_H
10334 #include <dlfcn.h>
10335 #endif
10336
10337 #include <stdio.h>
10338
10339 #ifdef RTLD_GLOBAL
10340 #  define LT_DLGLOBAL           RTLD_GLOBAL
10341 #else
10342 #  ifdef DL_GLOBAL
10343 #    define LT_DLGLOBAL         DL_GLOBAL
10344 #  else
10345 #    define LT_DLGLOBAL         0
10346 #  endif
10347 #endif
10348
10349 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10350    find out it does not work in some platform. */
10351 #ifndef LT_DLLAZY_OR_NOW
10352 #  ifdef RTLD_LAZY
10353 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10354 #  else
10355 #    ifdef DL_LAZY
10356 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10357 #    else
10358 #      ifdef RTLD_NOW
10359 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10360 #      else
10361 #        ifdef DL_NOW
10362 #          define LT_DLLAZY_OR_NOW      DL_NOW
10363 #        else
10364 #          define LT_DLLAZY_OR_NOW      0
10365 #        endif
10366 #      endif
10367 #    endif
10368 #  endif
10369 #endif
10370
10371 #ifdef __cplusplus
10372 extern "C" void exit (int);
10373 #endif
10374
10375 void fnord() { int i=42;}
10376 int main ()
10377 {
10378   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10379   int status = $lt_dlunknown;
10380
10381   if (self)
10382     {
10383       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10384       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10385       /* dlclose (self); */
10386     }
10387
10388     exit (status);
10389 }
10390 EOF
10391   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10392   (eval $ac_link) 2>&5
10393   ac_status=$?
10394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10395   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10396     (./conftest; exit; ) 2>/dev/null
10397     lt_status=$?
10398     case x$lt_status in
10399       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10400       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10401       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
10402     esac
10403   else :
10404     # compilation failed
10405     lt_cv_dlopen_self_static=no
10406   fi
10407 fi
10408 rm -fr conftest*
10409
10410
10411 fi
10412 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10413 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10414     fi
10415
10416     CPPFLAGS="$save_CPPFLAGS"
10417     LDFLAGS="$save_LDFLAGS"
10418     LIBS="$save_LIBS"
10419     ;;
10420   esac
10421
10422   case $lt_cv_dlopen_self in
10423   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10424   *) enable_dlopen_self=unknown ;;
10425   esac
10426
10427   case $lt_cv_dlopen_self_static in
10428   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10429   *) enable_dlopen_self_static=unknown ;;
10430   esac
10431 fi
10432
10433
10434 # Report which librarie types wil actually be built
10435 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10436 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10437 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10438 echo "${ECHO_T}$can_build_shared" >&6
10439
10440 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10441 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10442 test "$can_build_shared" = "no" && enable_shared=no
10443
10444 # On AIX, shared libraries and static libraries use the same namespace, and
10445 # are all built from PIC.
10446 case "$host_os" in
10447 aix3*)
10448   test "$enable_shared" = yes && enable_static=no
10449   if test -n "$RANLIB"; then
10450     archive_cmds="$archive_cmds~\$RANLIB \$lib"
10451     postinstall_cmds='$RANLIB $lib'
10452   fi
10453   ;;
10454
10455 aix4* | aix5*)
10456   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10457     test "$enable_shared" = yes && enable_static=no
10458   fi
10459     ;;
10460 esac
10461 echo "$as_me:$LINENO: result: $enable_shared" >&5
10462 echo "${ECHO_T}$enable_shared" >&6
10463
10464 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10465 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10466 # Make sure either enable_shared or enable_static is yes.
10467 test "$enable_shared" = yes || enable_static=yes
10468 echo "$as_me:$LINENO: result: $enable_static" >&5
10469 echo "${ECHO_T}$enable_static" >&6
10470
10471 # The else clause should only fire when bootstrapping the
10472 # libtool distribution, otherwise you forgot to ship ltmain.sh
10473 # with your package, and you will get complaints that there are
10474 # no rules to generate ltmain.sh.
10475 if test -f "$ltmain"; then
10476   # See if we are running on zsh, and set the options which allow our commands through
10477   # without removal of \ escapes.
10478   if test -n "${ZSH_VERSION+set}" ; then
10479     setopt NO_GLOB_SUBST
10480   fi
10481   # Now quote all the things that may contain metacharacters while being
10482   # careful not to overquote the AC_SUBSTed values.  We take copies of the
10483   # variables and quote the copies for generation of the libtool script.
10484   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
10485     SED SHELL STRIP \
10486     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10487     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10488     deplibs_check_method reload_flag reload_cmds need_locks \
10489     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10490     lt_cv_sys_global_symbol_to_c_name_address \
10491     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10492     old_postinstall_cmds old_postuninstall_cmds \
10493     compiler \
10494     CC \
10495     LD \
10496     lt_prog_compiler_wl \
10497     lt_prog_compiler_pic \
10498     lt_prog_compiler_static \
10499     lt_prog_compiler_no_builtin_flag \
10500     export_dynamic_flag_spec \
10501     thread_safe_flag_spec \
10502     whole_archive_flag_spec \
10503     enable_shared_with_static_runtimes \
10504     old_archive_cmds \
10505     old_archive_from_new_cmds \
10506     predep_objects \
10507     postdep_objects \
10508     predeps \
10509     postdeps \
10510     compiler_lib_search_path \
10511     archive_cmds \
10512     archive_expsym_cmds \
10513     postinstall_cmds \
10514     postuninstall_cmds \
10515     old_archive_from_expsyms_cmds \
10516     allow_undefined_flag \
10517     no_undefined_flag \
10518     export_symbols_cmds \
10519     hardcode_libdir_flag_spec \
10520     hardcode_libdir_flag_spec_ld \
10521     hardcode_libdir_separator \
10522     hardcode_automatic \
10523     module_cmds \
10524     module_expsym_cmds \
10525     lt_cv_prog_compiler_c_o \
10526     exclude_expsyms \
10527     include_expsyms; do
10528
10529     case $var in
10530     old_archive_cmds | \
10531     old_archive_from_new_cmds | \
10532     archive_cmds | \
10533     archive_expsym_cmds | \
10534     module_cmds | \
10535     module_expsym_cmds | \
10536     old_archive_from_expsyms_cmds | \
10537     export_symbols_cmds | \
10538     extract_expsyms_cmds | reload_cmds | finish_cmds | \
10539     postinstall_cmds | postuninstall_cmds | \
10540     old_postinstall_cmds | old_postuninstall_cmds | \
10541     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10542       # Double-quote double-evaled strings.
10543       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10544       ;;
10545     *)
10546       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10547       ;;
10548     esac
10549   done
10550
10551   case $lt_echo in
10552   *'\$0 --fallback-echo"')
10553     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10554     ;;
10555   esac
10556
10557 cfgfile="${ofile}T"
10558   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10559   $rm -f "$cfgfile"
10560   { echo "$as_me:$LINENO: creating $ofile" >&5
10561 echo "$as_me: creating $ofile" >&6;}
10562
10563   cat <<__EOF__ >> "$cfgfile"
10564 #! $SHELL
10565
10566 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10567 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10568 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10569 #
10570 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10571 # Free Software Foundation, Inc.
10572 #
10573 # This file is part of GNU Libtool:
10574 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10575 #
10576 # This program is free software; you can redistribute it and/or modify
10577 # it under the terms of the GNU General Public License as published by
10578 # the Free Software Foundation; either version 2 of the License, or
10579 # (at your option) any later version.
10580 #
10581 # This program is distributed in the hope that it will be useful, but
10582 # WITHOUT ANY WARRANTY; without even the implied warranty of
10583 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10584 # General Public License for more details.
10585 #
10586 # You should have received a copy of the GNU General Public License
10587 # along with this program; if not, write to the Free Software
10588 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10589 #
10590 # As a special exception to the GNU General Public License, if you
10591 # distribute this file as part of a program that contains a
10592 # configuration script generated by Autoconf, you may include it under
10593 # the same distribution terms that you use for the rest of that program.
10594
10595 # A sed program that does not truncate output.
10596 SED=$lt_SED
10597
10598 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10599 Xsed="$SED -e 1s/^X//"
10600
10601 # The HP-UX ksh and POSIX shell print the target directory to stdout
10602 # if CDPATH is set.
10603 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10604
10605 # The names of the tagged configurations supported by this script.
10606 available_tags=
10607
10608 # ### BEGIN LIBTOOL CONFIG
10609
10610 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10611
10612 # Shell to use when invoking shell scripts.
10613 SHELL=$lt_SHELL
10614
10615 # Whether or not to build shared libraries.
10616 build_libtool_libs=$enable_shared
10617
10618 # Whether or not to build static libraries.
10619 build_old_libs=$enable_static
10620
10621 # Whether or not to add -lc for building shared libraries.
10622 build_libtool_need_lc=$archive_cmds_need_lc
10623
10624 # Whether or not to disallow shared libs when runtime libs are static
10625 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10626
10627 # Whether or not to optimize for fast installation.
10628 fast_install=$enable_fast_install
10629
10630 # The host system.
10631 host_alias=$host_alias
10632 host=$host
10633 host_os=$host_os
10634
10635 # The build system.
10636 build_alias=$build_alias
10637 build=$build
10638 build_os=$build_os
10639
10640 # An echo program that does not interpret backslashes.
10641 echo=$lt_echo
10642
10643 # The archiver.
10644 AR=$lt_AR
10645 AR_FLAGS=$lt_AR_FLAGS
10646
10647 # A C compiler.
10648 LTCC=$lt_LTCC
10649
10650 # A language-specific compiler.
10651 CC=$lt_compiler
10652
10653 # Is the compiler the GNU C compiler?
10654 with_gcc=$GCC
10655
10656 # An ERE matcher.
10657 EGREP=$lt_EGREP
10658
10659 # The linker used to build libraries.
10660 LD=$lt_LD
10661
10662 # Whether we need hard or soft links.
10663 LN_S=$lt_LN_S
10664
10665 # A BSD-compatible nm program.
10666 NM=$lt_NM
10667
10668 # A symbol stripping program
10669 STRIP=$lt_STRIP
10670
10671 # Used to examine libraries when file_magic_cmd begins "file"
10672 MAGIC_CMD=$MAGIC_CMD
10673
10674 # Used on cygwin: DLL creation program.
10675 DLLTOOL="$DLLTOOL"
10676
10677 # Used on cygwin: object dumper.
10678 OBJDUMP="$OBJDUMP"
10679
10680 # Used on cygwin: assembler.
10681 AS="$AS"
10682
10683 # The name of the directory that contains temporary libtool files.
10684 objdir=$objdir
10685
10686 # How to create reloadable object files.
10687 reload_flag=$lt_reload_flag
10688 reload_cmds=$lt_reload_cmds
10689
10690 # How to pass a linker flag through the compiler.
10691 wl=$lt_lt_prog_compiler_wl
10692
10693 # Object file suffix (normally "o").
10694 objext="$ac_objext"
10695
10696 # Old archive suffix (normally "a").
10697 libext="$libext"
10698
10699 # Shared library suffix (normally ".so").
10700 shrext_cmds='$shrext_cmds'
10701
10702 # Executable file suffix (normally "").
10703 exeext="$exeext"
10704
10705 # Additional compiler flags for building library objects.
10706 pic_flag=$lt_lt_prog_compiler_pic
10707 pic_mode=$pic_mode
10708
10709 # What is the maximum length of a command?
10710 max_cmd_len=$lt_cv_sys_max_cmd_len
10711
10712 # Does compiler simultaneously support -c and -o options?
10713 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10714
10715 # Must we lock files when doing compilation?
10716 need_locks=$lt_need_locks
10717
10718 # Do we need the lib prefix for modules?
10719 need_lib_prefix=$need_lib_prefix
10720
10721 # Do we need a version for libraries?
10722 need_version=$need_version
10723
10724 # Whether dlopen is supported.
10725 dlopen_support=$enable_dlopen
10726
10727 # Whether dlopen of programs is supported.
10728 dlopen_self=$enable_dlopen_self
10729
10730 # Whether dlopen of statically linked programs is supported.
10731 dlopen_self_static=$enable_dlopen_self_static
10732
10733 # Compiler flag to prevent dynamic linking.
10734 link_static_flag=$lt_lt_prog_compiler_static
10735
10736 # Compiler flag to turn off builtin functions.
10737 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10738
10739 # Compiler flag to allow reflexive dlopens.
10740 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10741
10742 # Compiler flag to generate shared objects directly from archives.
10743 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10744
10745 # Compiler flag to generate thread-safe objects.
10746 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10747
10748 # Library versioning type.
10749 version_type=$version_type
10750
10751 # Format of library name prefix.
10752 libname_spec=$lt_libname_spec
10753
10754 # List of archive names.  First name is the real one, the rest are links.
10755 # The last name is the one that the linker finds with -lNAME.
10756 library_names_spec=$lt_library_names_spec
10757
10758 # The coded name of the library, if different from the real name.
10759 soname_spec=$lt_soname_spec
10760
10761 # Commands used to build and install an old-style archive.
10762 RANLIB=$lt_RANLIB
10763 old_archive_cmds=$lt_old_archive_cmds
10764 old_postinstall_cmds=$lt_old_postinstall_cmds
10765 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10766
10767 # Create an old-style archive from a shared archive.
10768 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10769
10770 # Create a temporary old-style archive to link instead of a shared archive.
10771 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10772
10773 # Commands used to build and install a shared archive.
10774 archive_cmds=$lt_archive_cmds
10775 archive_expsym_cmds=$lt_archive_expsym_cmds
10776 postinstall_cmds=$lt_postinstall_cmds
10777 postuninstall_cmds=$lt_postuninstall_cmds
10778
10779 # Commands used to build a loadable module (assumed same as above if empty)
10780 module_cmds=$lt_module_cmds
10781 module_expsym_cmds=$lt_module_expsym_cmds
10782
10783 # Commands to strip libraries.
10784 old_striplib=$lt_old_striplib
10785 striplib=$lt_striplib
10786
10787 # Dependencies to place before the objects being linked to create a
10788 # shared library.
10789 predep_objects=$lt_predep_objects
10790
10791 # Dependencies to place after the objects being linked to create a
10792 # shared library.
10793 postdep_objects=$lt_postdep_objects
10794
10795 # Dependencies to place before the objects being linked to create a
10796 # shared library.
10797 predeps=$lt_predeps
10798
10799 # Dependencies to place after the objects being linked to create a
10800 # shared library.
10801 postdeps=$lt_postdeps
10802
10803 # The library search path used internally by the compiler when linking
10804 # a shared library.
10805 compiler_lib_search_path=$lt_compiler_lib_search_path
10806
10807 # Method to check whether dependent libraries are shared objects.
10808 deplibs_check_method=$lt_deplibs_check_method
10809
10810 # Command to use when deplibs_check_method == file_magic.
10811 file_magic_cmd=$lt_file_magic_cmd
10812
10813 # Flag that allows shared libraries with undefined symbols to be built.
10814 allow_undefined_flag=$lt_allow_undefined_flag
10815
10816 # Flag that forces no undefined symbols.
10817 no_undefined_flag=$lt_no_undefined_flag
10818
10819 # Commands used to finish a libtool library installation in a directory.
10820 finish_cmds=$lt_finish_cmds
10821
10822 # Same as above, but a single script fragment to be evaled but not shown.
10823 finish_eval=$lt_finish_eval
10824
10825 # Take the output of nm and produce a listing of raw symbols and C names.
10826 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10827
10828 # Transform the output of nm in a proper C declaration
10829 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10830
10831 # Transform the output of nm in a C name address pair
10832 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10833
10834 # This is the shared library runtime path variable.
10835 runpath_var=$runpath_var
10836
10837 # This is the shared library path variable.
10838 shlibpath_var=$shlibpath_var
10839
10840 # Is shlibpath searched before the hard-coded library search path?
10841 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10842
10843 # How to hardcode a shared library path into an executable.
10844 hardcode_action=$hardcode_action
10845
10846 # Whether we should hardcode library paths into libraries.
10847 hardcode_into_libs=$hardcode_into_libs
10848
10849 # Flag to hardcode \$libdir into a binary during linking.
10850 # This must work even if \$libdir does not exist.
10851 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10852
10853 # If ld is used when linking, flag to hardcode \$libdir into
10854 # a binary during linking. This must work even if \$libdir does
10855 # not exist.
10856 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10857
10858 # Whether we need a single -rpath flag with a separated argument.
10859 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10860
10861 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10862 # resulting binary.
10863 hardcode_direct=$hardcode_direct
10864
10865 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10866 # resulting binary.
10867 hardcode_minus_L=$hardcode_minus_L
10868
10869 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10870 # the resulting binary.
10871 hardcode_shlibpath_var=$hardcode_shlibpath_var
10872
10873 # Set to yes if building a shared library automatically hardcodes DIR into the library
10874 # and all subsequent libraries and executables linked against it.
10875 hardcode_automatic=$hardcode_automatic
10876
10877 # Variables whose values should be saved in libtool wrapper scripts and
10878 # restored at relink time.
10879 variables_saved_for_relink="$variables_saved_for_relink"
10880
10881 # Whether libtool must link a program against all its dependency libraries.
10882 link_all_deplibs=$link_all_deplibs
10883
10884 # Compile-time system search path for libraries
10885 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10886
10887 # Run-time system search path for libraries
10888 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10889
10890 # Fix the shell variable \$srcfile for the compiler.
10891 fix_srcfile_path="$fix_srcfile_path"
10892
10893 # Set to yes if exported symbols are required.
10894 always_export_symbols=$always_export_symbols
10895
10896 # The commands to list exported symbols.
10897 export_symbols_cmds=$lt_export_symbols_cmds
10898
10899 # The commands to extract the exported symbol list from a shared archive.
10900 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10901
10902 # Symbols that should not be listed in the preloaded symbols.
10903 exclude_expsyms=$lt_exclude_expsyms
10904
10905 # Symbols that must always be exported.
10906 include_expsyms=$lt_include_expsyms
10907
10908 # ### END LIBTOOL CONFIG
10909
10910 __EOF__
10911
10912
10913   case $host_os in
10914   aix3*)
10915     cat <<\EOF >> "$cfgfile"
10916
10917 # AIX sometimes has problems with the GCC collect2 program.  For some
10918 # reason, if we set the COLLECT_NAMES environment variable, the problems
10919 # vanish in a puff of smoke.
10920 if test "X${COLLECT_NAMES+set}" != Xset; then
10921   COLLECT_NAMES=
10922   export COLLECT_NAMES
10923 fi
10924 EOF
10925     ;;
10926   esac
10927
10928   # We use sed instead of cat because bash on DJGPP gets confused if
10929   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10930   # text mode, it properly converts lines to CR/LF.  This bash problem
10931   # is reportedly fixed, but why not run on old versions too?
10932   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10933
10934   mv -f "$cfgfile" "$ofile" || \
10935     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10936   chmod +x "$ofile"
10937
10938 else
10939   # If there is no Makefile yet, we rely on a make rule to execute
10940   # `config.status --recheck' to rerun these tests and create the
10941   # libtool script then.
10942   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10943   if test -f "$ltmain_in"; then
10944     test -f Makefile && make "$ltmain"
10945   fi
10946 fi
10947
10948
10949 ac_ext=c
10950 ac_cpp='$CPP $CPPFLAGS'
10951 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10952 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10953 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10954
10955 CC="$lt_save_CC"
10956
10957
10958 # Check whether --with-tags or --without-tags was given.
10959 if test "${with_tags+set}" = set; then
10960   withval="$with_tags"
10961   tagnames="$withval"
10962 fi;
10963
10964 if test -f "$ltmain" && test -n "$tagnames"; then
10965   if test ! -f "${ofile}"; then
10966     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10967 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10968   fi
10969
10970   if test -z "$LTCC"; then
10971     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10972     if test -z "$LTCC"; then
10973       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10974 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10975     else
10976       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10977 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10978     fi
10979   fi
10980
10981   # Extract list of available tagged configurations in $ofile.
10982   # Note that this assumes the entire list is on one line.
10983   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10984
10985   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10986   for tagname in $tagnames; do
10987     IFS="$lt_save_ifs"
10988     # Check whether tagname contains only valid characters
10989     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10990     "") ;;
10991     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10992 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10993    { (exit 1); exit 1; }; }
10994         ;;
10995     esac
10996
10997     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10998     then
10999       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11000 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11001    { (exit 1); exit 1; }; }
11002     fi
11003
11004     # Update the list of available tags.
11005     if test -n "$tagname"; then
11006       echo appending configuration tag \"$tagname\" to $ofile
11007
11008       case $tagname in
11009       CXX)
11010         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11011             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11012             (test "X$CXX" != "Xg++"))) ; then
11013           :
11014         else
11015           tagname=""
11016         fi
11017         ;;
11018
11019       F77)
11020         if test -n "$F77" && test "X$F77" != "Xno"; then
11021           :
11022         else
11023           tagname=""
11024         fi
11025         ;;
11026
11027       GCJ)
11028         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
11029           :
11030         else
11031           tagname=""
11032         fi
11033         ;;
11034
11035       RC)
11036
11037
11038
11039 # Source file extension for RC test sources.
11040 ac_ext=rc
11041
11042 # Object file extension for compiled RC test sources.
11043 objext=o
11044 objext_RC=$objext
11045
11046 # Code to be used in simple compile tests
11047 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
11048
11049 # Code to be used in simple link tests
11050 lt_simple_link_test_code="$lt_simple_compile_test_code"
11051
11052 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11053
11054 # If no C compiler was specified, use CC.
11055 LTCC=${LTCC-"$CC"}
11056
11057 # Allow CC to be a program name with arguments.
11058 compiler=$CC
11059
11060
11061 # save warnings/boilerplate of simple test code
11062 ac_outfile=conftest.$ac_objext
11063 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11064 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11065 _lt_compiler_boilerplate=`cat conftest.err`
11066 $rm conftest*
11067
11068 ac_outfile=conftest.$ac_objext
11069 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11070 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11071 _lt_linker_boilerplate=`cat conftest.err`
11072 $rm conftest*
11073
11074
11075 # Allow CC to be a program name with arguments.
11076 lt_save_CC="$CC"
11077 CC=${RC-"windres"}
11078 compiler=$CC
11079 compiler_RC=$CC
11080 for cc_temp in $compiler""; do
11081   case $cc_temp in
11082     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11083     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11084     \-*) ;;
11085     *) break;;
11086   esac
11087 done
11088 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11089
11090 lt_cv_prog_compiler_c_o_RC=yes
11091
11092 # The else clause should only fire when bootstrapping the
11093 # libtool distribution, otherwise you forgot to ship ltmain.sh
11094 # with your package, and you will get complaints that there are
11095 # no rules to generate ltmain.sh.
11096 if test -f "$ltmain"; then
11097   # See if we are running on zsh, and set the options which allow our commands through
11098   # without removal of \ escapes.
11099   if test -n "${ZSH_VERSION+set}" ; then
11100     setopt NO_GLOB_SUBST
11101   fi
11102   # Now quote all the things that may contain metacharacters while being
11103   # careful not to overquote the AC_SUBSTed values.  We take copies of the
11104   # variables and quote the copies for generation of the libtool script.
11105   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11106     SED SHELL STRIP \
11107     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11108     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11109     deplibs_check_method reload_flag reload_cmds need_locks \
11110     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11111     lt_cv_sys_global_symbol_to_c_name_address \
11112     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11113     old_postinstall_cmds old_postuninstall_cmds \
11114     compiler_RC \
11115     CC_RC \
11116     LD_RC \
11117     lt_prog_compiler_wl_RC \
11118     lt_prog_compiler_pic_RC \
11119     lt_prog_compiler_static_RC \
11120     lt_prog_compiler_no_builtin_flag_RC \
11121     export_dynamic_flag_spec_RC \
11122     thread_safe_flag_spec_RC \
11123     whole_archive_flag_spec_RC \
11124     enable_shared_with_static_runtimes_RC \
11125     old_archive_cmds_RC \
11126     old_archive_from_new_cmds_RC \
11127     predep_objects_RC \
11128     postdep_objects_RC \
11129     predeps_RC \
11130     postdeps_RC \
11131     compiler_lib_search_path_RC \
11132     archive_cmds_RC \
11133     archive_expsym_cmds_RC \
11134     postinstall_cmds_RC \
11135     postuninstall_cmds_RC \
11136     old_archive_from_expsyms_cmds_RC \
11137     allow_undefined_flag_RC \
11138     no_undefined_flag_RC \
11139     export_symbols_cmds_RC \
11140     hardcode_libdir_flag_spec_RC \
11141     hardcode_libdir_flag_spec_ld_RC \
11142     hardcode_libdir_separator_RC \
11143     hardcode_automatic_RC \
11144     module_cmds_RC \
11145     module_expsym_cmds_RC \
11146     lt_cv_prog_compiler_c_o_RC \
11147     exclude_expsyms_RC \
11148     include_expsyms_RC; do
11149
11150     case $var in
11151     old_archive_cmds_RC | \
11152     old_archive_from_new_cmds_RC | \
11153     archive_cmds_RC | \
11154     archive_expsym_cmds_RC | \
11155     module_cmds_RC | \
11156     module_expsym_cmds_RC | \
11157     old_archive_from_expsyms_cmds_RC | \
11158     export_symbols_cmds_RC | \
11159     extract_expsyms_cmds | reload_cmds | finish_cmds | \
11160     postinstall_cmds | postuninstall_cmds | \
11161     old_postinstall_cmds | old_postuninstall_cmds | \
11162     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11163       # Double-quote double-evaled strings.
11164       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11165       ;;
11166     *)
11167       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11168       ;;
11169     esac
11170   done
11171
11172   case $lt_echo in
11173   *'\$0 --fallback-echo"')
11174     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11175     ;;
11176   esac
11177
11178 cfgfile="$ofile"
11179
11180   cat <<__EOF__ >> "$cfgfile"
11181 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
11182
11183 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11184
11185 # Shell to use when invoking shell scripts.
11186 SHELL=$lt_SHELL
11187
11188 # Whether or not to build shared libraries.
11189 build_libtool_libs=$enable_shared
11190
11191 # Whether or not to build static libraries.
11192 build_old_libs=$enable_static
11193
11194 # Whether or not to add -lc for building shared libraries.
11195 build_libtool_need_lc=$archive_cmds_need_lc_RC
11196
11197 # Whether or not to disallow shared libs when runtime libs are static
11198 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
11199
11200 # Whether or not to optimize for fast installation.
11201 fast_install=$enable_fast_install
11202
11203 # The host system.
11204 host_alias=$host_alias
11205 host=$host
11206 host_os=$host_os
11207
11208 # The build system.
11209 build_alias=$build_alias
11210 build=$build
11211 build_os=$build_os
11212
11213 # An echo program that does not interpret backslashes.
11214 echo=$lt_echo
11215
11216 # The archiver.
11217 AR=$lt_AR
11218 AR_FLAGS=$lt_AR_FLAGS
11219
11220 # A C compiler.
11221 LTCC=$lt_LTCC
11222
11223 # A language-specific compiler.
11224 CC=$lt_compiler_RC
11225
11226 # Is the compiler the GNU C compiler?
11227 with_gcc=$GCC_RC
11228
11229 # An ERE matcher.
11230 EGREP=$lt_EGREP
11231
11232 # The linker used to build libraries.
11233 LD=$lt_LD_RC
11234
11235 # Whether we need hard or soft links.
11236 LN_S=$lt_LN_S
11237
11238 # A BSD-compatible nm program.
11239 NM=$lt_NM
11240
11241 # A symbol stripping program
11242 STRIP=$lt_STRIP
11243
11244 # Used to examine libraries when file_magic_cmd begins "file"
11245 MAGIC_CMD=$MAGIC_CMD
11246
11247 # Used on cygwin: DLL creation program.
11248 DLLTOOL="$DLLTOOL"
11249
11250 # Used on cygwin: object dumper.
11251 OBJDUMP="$OBJDUMP"
11252
11253 # Used on cygwin: assembler.
11254 AS="$AS"
11255
11256 # The name of the directory that contains temporary libtool files.
11257 objdir=$objdir
11258
11259 # How to create reloadable object files.
11260 reload_flag=$lt_reload_flag
11261 reload_cmds=$lt_reload_cmds
11262
11263 # How to pass a linker flag through the compiler.
11264 wl=$lt_lt_prog_compiler_wl_RC
11265
11266 # Object file suffix (normally "o").
11267 objext="$ac_objext"
11268
11269 # Old archive suffix (normally "a").
11270 libext="$libext"
11271
11272 # Shared library suffix (normally ".so").
11273 shrext_cmds='$shrext_cmds'
11274
11275 # Executable file suffix (normally "").
11276 exeext="$exeext"
11277
11278 # Additional compiler flags for building library objects.
11279 pic_flag=$lt_lt_prog_compiler_pic_RC
11280 pic_mode=$pic_mode
11281
11282 # What is the maximum length of a command?
11283 max_cmd_len=$lt_cv_sys_max_cmd_len
11284
11285 # Does compiler simultaneously support -c and -o options?
11286 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
11287
11288 # Must we lock files when doing compilation?
11289 need_locks=$lt_need_locks
11290
11291 # Do we need the lib prefix for modules?
11292 need_lib_prefix=$need_lib_prefix
11293
11294 # Do we need a version for libraries?
11295 need_version=$need_version
11296
11297 # Whether dlopen is supported.
11298 dlopen_support=$enable_dlopen
11299
11300 # Whether dlopen of programs is supported.
11301 dlopen_self=$enable_dlopen_self
11302
11303 # Whether dlopen of statically linked programs is supported.
11304 dlopen_self_static=$enable_dlopen_self_static
11305
11306 # Compiler flag to prevent dynamic linking.
11307 link_static_flag=$lt_lt_prog_compiler_static_RC
11308
11309 # Compiler flag to turn off builtin functions.
11310 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
11311
11312 # Compiler flag to allow reflexive dlopens.
11313 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
11314
11315 # Compiler flag to generate shared objects directly from archives.
11316 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
11317
11318 # Compiler flag to generate thread-safe objects.
11319 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
11320
11321 # Library versioning type.
11322 version_type=$version_type
11323
11324 # Format of library name prefix.
11325 libname_spec=$lt_libname_spec
11326
11327 # List of archive names.  First name is the real one, the rest are links.
11328 # The last name is the one that the linker finds with -lNAME.
11329 library_names_spec=$lt_library_names_spec
11330
11331 # The coded name of the library, if different from the real name.
11332 soname_spec=$lt_soname_spec
11333
11334 # Commands used to build and install an old-style archive.
11335 RANLIB=$lt_RANLIB
11336 old_archive_cmds=$lt_old_archive_cmds_RC
11337 old_postinstall_cmds=$lt_old_postinstall_cmds
11338 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11339
11340 # Create an old-style archive from a shared archive.
11341 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
11342
11343 # Create a temporary old-style archive to link instead of a shared archive.
11344 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
11345
11346 # Commands used to build and install a shared archive.
11347 archive_cmds=$lt_archive_cmds_RC
11348 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
11349 postinstall_cmds=$lt_postinstall_cmds
11350 postuninstall_cmds=$lt_postuninstall_cmds
11351
11352 # Commands used to build a loadable module (assumed same as above if empty)
11353 module_cmds=$lt_module_cmds_RC
11354 module_expsym_cmds=$lt_module_expsym_cmds_RC
11355
11356 # Commands to strip libraries.
11357 old_striplib=$lt_old_striplib
11358 striplib=$lt_striplib
11359
11360 # Dependencies to place before the objects being linked to create a
11361 # shared library.
11362 predep_objects=$lt_predep_objects_RC
11363
11364 # Dependencies to place after the objects being linked to create a
11365 # shared library.
11366 postdep_objects=$lt_postdep_objects_RC
11367
11368 # Dependencies to place before the objects being linked to create a
11369 # shared library.
11370 predeps=$lt_predeps_RC
11371
11372 # Dependencies to place after the objects being linked to create a
11373 # shared library.
11374 postdeps=$lt_postdeps_RC
11375
11376 # The library search path used internally by the compiler when linking
11377 # a shared library.
11378 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
11379
11380 # Method to check whether dependent libraries are shared objects.
11381 deplibs_check_method=$lt_deplibs_check_method
11382
11383 # Command to use when deplibs_check_method == file_magic.
11384 file_magic_cmd=$lt_file_magic_cmd
11385
11386 # Flag that allows shared libraries with undefined symbols to be built.
11387 allow_undefined_flag=$lt_allow_undefined_flag_RC
11388
11389 # Flag that forces no undefined symbols.
11390 no_undefined_flag=$lt_no_undefined_flag_RC
11391
11392 # Commands used to finish a libtool library installation in a directory.
11393 finish_cmds=$lt_finish_cmds
11394
11395 # Same as above, but a single script fragment to be evaled but not shown.
11396 finish_eval=$lt_finish_eval
11397
11398 # Take the output of nm and produce a listing of raw symbols and C names.
11399 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11400
11401 # Transform the output of nm in a proper C declaration
11402 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11403
11404 # Transform the output of nm in a C name address pair
11405 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11406
11407 # This is the shared library runtime path variable.
11408 runpath_var=$runpath_var
11409
11410 # This is the shared library path variable.
11411 shlibpath_var=$shlibpath_var
11412
11413 # Is shlibpath searched before the hard-coded library search path?
11414 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11415
11416 # How to hardcode a shared library path into an executable.
11417 hardcode_action=$hardcode_action_RC
11418
11419 # Whether we should hardcode library paths into libraries.
11420 hardcode_into_libs=$hardcode_into_libs
11421
11422 # Flag to hardcode \$libdir into a binary during linking.
11423 # This must work even if \$libdir does not exist.
11424 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
11425
11426 # If ld is used when linking, flag to hardcode \$libdir into
11427 # a binary during linking. This must work even if \$libdir does
11428 # not exist.
11429 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
11430
11431 # Whether we need a single -rpath flag with a separated argument.
11432 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
11433
11434 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11435 # resulting binary.
11436 hardcode_direct=$hardcode_direct_RC
11437
11438 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11439 # resulting binary.
11440 hardcode_minus_L=$hardcode_minus_L_RC
11441
11442 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11443 # the resulting binary.
11444 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
11445
11446 # Set to yes if building a shared library automatically hardcodes DIR into the library
11447 # and all subsequent libraries and executables linked against it.
11448 hardcode_automatic=$hardcode_automatic_RC
11449
11450 # Variables whose values should be saved in libtool wrapper scripts and
11451 # restored at relink time.
11452 variables_saved_for_relink="$variables_saved_for_relink"
11453
11454 # Whether libtool must link a program against all its dependency libraries.
11455 link_all_deplibs=$link_all_deplibs_RC
11456
11457 # Compile-time system search path for libraries
11458 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11459
11460 # Run-time system search path for libraries
11461 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11462
11463 # Fix the shell variable \$srcfile for the compiler.
11464 fix_srcfile_path="$fix_srcfile_path_RC"
11465
11466 # Set to yes if exported symbols are required.
11467 always_export_symbols=$always_export_symbols_RC
11468
11469 # The commands to list exported symbols.
11470 export_symbols_cmds=$lt_export_symbols_cmds_RC
11471
11472 # The commands to extract the exported symbol list from a shared archive.
11473 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11474
11475 # Symbols that should not be listed in the preloaded symbols.
11476 exclude_expsyms=$lt_exclude_expsyms_RC
11477
11478 # Symbols that must always be exported.
11479 include_expsyms=$lt_include_expsyms_RC
11480
11481 # ### END LIBTOOL TAG CONFIG: $tagname
11482
11483 __EOF__
11484
11485
11486 else
11487   # If there is no Makefile yet, we rely on a make rule to execute
11488   # `config.status --recheck' to rerun these tests and create the
11489   # libtool script then.
11490   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11491   if test -f "$ltmain_in"; then
11492     test -f Makefile && make "$ltmain"
11493   fi
11494 fi
11495
11496
11497 ac_ext=c
11498 ac_cpp='$CPP $CPPFLAGS'
11499 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11500 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11501 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11502
11503 CC="$lt_save_CC"
11504
11505         ;;
11506
11507       *)
11508         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
11509 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
11510    { (exit 1); exit 1; }; }
11511         ;;
11512       esac
11513
11514       # Append the new tag name to the list of available tags.
11515       if test -n "$tagname" ; then
11516       available_tags="$available_tags $tagname"
11517     fi
11518     fi
11519   done
11520   IFS="$lt_save_ifs"
11521
11522   # Now substitute the updated list of available tags.
11523   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
11524     mv "${ofile}T" "$ofile"
11525     chmod +x "$ofile"
11526   else
11527     rm -f "${ofile}T"
11528     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
11529 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
11530    { (exit 1); exit 1; }; }
11531   fi
11532 fi
11533
11534
11535
11536 # This can be used to rebuild libtool when needed
11537 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
11538
11539 # Always use our own libtool.
11540 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11541
11542 # Prevent multiple expansion
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553 ol_link_perl=no
11554 if test $ol_enable_perl != no ; then
11555         # Extract the first word of "perl", so it can be a program name with args.
11556 set dummy perl; ac_word=$2
11557 echo "$as_me:$LINENO: checking for $ac_word" >&5
11558 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11559 if test "${ac_cv_path_PERLBIN+set}" = set; then
11560   echo $ECHO_N "(cached) $ECHO_C" >&6
11561 else
11562   case $PERLBIN in
11563   [\\/]* | ?:[\\/]*)
11564   ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
11565   ;;
11566   *)
11567   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11568 for as_dir in $PATH
11569 do
11570   IFS=$as_save_IFS
11571   test -z "$as_dir" && as_dir=.
11572   for ac_exec_ext in '' $ac_executable_extensions; do
11573   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11574     ac_cv_path_PERLBIN="$as_dir/$ac_word$ac_exec_ext"
11575     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11576     break 2
11577   fi
11578 done
11579 done
11580
11581   test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
11582   ;;
11583 esac
11584 fi
11585 PERLBIN=$ac_cv_path_PERLBIN
11586
11587 if test -n "$PERLBIN"; then
11588   echo "$as_me:$LINENO: result: $PERLBIN" >&5
11589 echo "${ECHO_T}$PERLBIN" >&6
11590 else
11591   echo "$as_me:$LINENO: result: no" >&5
11592 echo "${ECHO_T}no" >&6
11593 fi
11594
11595
11596         if test "no$PERLBIN" = "no" ; then
11597                 if test $ol_enable_perl = yes ; then
11598                         { { echo "$as_me:$LINENO: error: could not locate perl" >&5
11599 echo "$as_me: error: could not locate perl" >&2;}
11600    { (exit 1); exit 1; }; }
11601                 fi
11602
11603         else
11604                 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
11605                 PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e 's/ -lc / /' -e 's/ -lc$//'`"
11606
11607                 if test x"$ol_enable_perl" = "xyes" ; then
11608                         SLAPD_PERL_LDFLAGS="$PERL_LDFLAGS"
11609                 else
11610                         MOD_PERL_LDFLAGS="$PERL_LDFLAGS"
11611                 fi
11612                                 ol_link_perl=yes
11613         fi
11614 fi
11615
11616 ac_ext=c
11617 ac_cpp='$CPP $CPPFLAGS'
11618 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11619 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11620 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11621 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
11622 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
11623 # On Suns, sometimes $CPP names a directory.
11624 if test -n "$CPP" && test -d "$CPP"; then
11625   CPP=
11626 fi
11627 if test -z "$CPP"; then
11628   if test "${ac_cv_prog_CPP+set}" = set; then
11629   echo $ECHO_N "(cached) $ECHO_C" >&6
11630 else
11631       # Double quotes because CPP needs to be expanded
11632     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11633     do
11634       ac_preproc_ok=false
11635 for ac_c_preproc_warn_flag in '' yes
11636 do
11637   # Use a header file that comes with gcc, so configuring glibc
11638   # with a fresh cross-compiler works.
11639   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11640   # <limits.h> exists even on freestanding compilers.
11641   # On the NeXT, cc -E runs the code through the compiler's parser,
11642   # not just through cpp. "Syntax error" is here to catch this case.
11643   cat >conftest.$ac_ext <<_ACEOF
11644 /* confdefs.h.  */
11645 _ACEOF
11646 cat confdefs.h >>conftest.$ac_ext
11647 cat >>conftest.$ac_ext <<_ACEOF
11648 /* end confdefs.h.  */
11649 #ifdef __STDC__
11650 # include <limits.h>
11651 #else
11652 # include <assert.h>
11653 #endif
11654                      Syntax error
11655 _ACEOF
11656 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11657   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11658   ac_status=$?
11659   grep -v '^ *+' conftest.er1 >conftest.err
11660   rm -f conftest.er1
11661   cat conftest.err >&5
11662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11663   (exit $ac_status); } >/dev/null; then
11664   if test -s conftest.err; then
11665     ac_cpp_err=$ac_c_preproc_warn_flag
11666     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11667   else
11668     ac_cpp_err=
11669   fi
11670 else
11671   ac_cpp_err=yes
11672 fi
11673 if test -z "$ac_cpp_err"; then
11674   :
11675 else
11676   echo "$as_me: failed program was:" >&5
11677 sed 's/^/| /' conftest.$ac_ext >&5
11678
11679   # Broken: fails on valid input.
11680 continue
11681 fi
11682 rm -f conftest.err conftest.$ac_ext
11683
11684   # OK, works on sane cases.  Now check whether non-existent headers
11685   # can be detected and how.
11686   cat >conftest.$ac_ext <<_ACEOF
11687 /* confdefs.h.  */
11688 _ACEOF
11689 cat confdefs.h >>conftest.$ac_ext
11690 cat >>conftest.$ac_ext <<_ACEOF
11691 /* end confdefs.h.  */
11692 #include <ac_nonexistent.h>
11693 _ACEOF
11694 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11695   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11696   ac_status=$?
11697   grep -v '^ *+' conftest.er1 >conftest.err
11698   rm -f conftest.er1
11699   cat conftest.err >&5
11700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11701   (exit $ac_status); } >/dev/null; then
11702   if test -s conftest.err; then
11703     ac_cpp_err=$ac_c_preproc_warn_flag
11704     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11705   else
11706     ac_cpp_err=
11707   fi
11708 else
11709   ac_cpp_err=yes
11710 fi
11711 if test -z "$ac_cpp_err"; then
11712   # Broken: success on invalid input.
11713 continue
11714 else
11715   echo "$as_me: failed program was:" >&5
11716 sed 's/^/| /' conftest.$ac_ext >&5
11717
11718   # Passes both tests.
11719 ac_preproc_ok=:
11720 break
11721 fi
11722 rm -f conftest.err conftest.$ac_ext
11723
11724 done
11725 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11726 rm -f conftest.err conftest.$ac_ext
11727 if $ac_preproc_ok; then
11728   break
11729 fi
11730
11731     done
11732     ac_cv_prog_CPP=$CPP
11733
11734 fi
11735   CPP=$ac_cv_prog_CPP
11736 else
11737   ac_cv_prog_CPP=$CPP
11738 fi
11739 echo "$as_me:$LINENO: result: $CPP" >&5
11740 echo "${ECHO_T}$CPP" >&6
11741 ac_preproc_ok=false
11742 for ac_c_preproc_warn_flag in '' yes
11743 do
11744   # Use a header file that comes with gcc, so configuring glibc
11745   # with a fresh cross-compiler works.
11746   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11747   # <limits.h> exists even on freestanding compilers.
11748   # On the NeXT, cc -E runs the code through the compiler's parser,
11749   # not just through cpp. "Syntax error" is here to catch this case.
11750   cat >conftest.$ac_ext <<_ACEOF
11751 /* confdefs.h.  */
11752 _ACEOF
11753 cat confdefs.h >>conftest.$ac_ext
11754 cat >>conftest.$ac_ext <<_ACEOF
11755 /* end confdefs.h.  */
11756 #ifdef __STDC__
11757 # include <limits.h>
11758 #else
11759 # include <assert.h>
11760 #endif
11761                      Syntax error
11762 _ACEOF
11763 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11764   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11765   ac_status=$?
11766   grep -v '^ *+' conftest.er1 >conftest.err
11767   rm -f conftest.er1
11768   cat conftest.err >&5
11769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11770   (exit $ac_status); } >/dev/null; then
11771   if test -s conftest.err; then
11772     ac_cpp_err=$ac_c_preproc_warn_flag
11773     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11774   else
11775     ac_cpp_err=
11776   fi
11777 else
11778   ac_cpp_err=yes
11779 fi
11780 if test -z "$ac_cpp_err"; then
11781   :
11782 else
11783   echo "$as_me: failed program was:" >&5
11784 sed 's/^/| /' conftest.$ac_ext >&5
11785
11786   # Broken: fails on valid input.
11787 continue
11788 fi
11789 rm -f conftest.err conftest.$ac_ext
11790
11791   # OK, works on sane cases.  Now check whether non-existent headers
11792   # can be detected and how.
11793   cat >conftest.$ac_ext <<_ACEOF
11794 /* confdefs.h.  */
11795 _ACEOF
11796 cat confdefs.h >>conftest.$ac_ext
11797 cat >>conftest.$ac_ext <<_ACEOF
11798 /* end confdefs.h.  */
11799 #include <ac_nonexistent.h>
11800 _ACEOF
11801 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11802   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11803   ac_status=$?
11804   grep -v '^ *+' conftest.er1 >conftest.err
11805   rm -f conftest.er1
11806   cat conftest.err >&5
11807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11808   (exit $ac_status); } >/dev/null; then
11809   if test -s conftest.err; then
11810     ac_cpp_err=$ac_c_preproc_warn_flag
11811     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11812   else
11813     ac_cpp_err=
11814   fi
11815 else
11816   ac_cpp_err=yes
11817 fi
11818 if test -z "$ac_cpp_err"; then
11819   # Broken: success on invalid input.
11820 continue
11821 else
11822   echo "$as_me: failed program was:" >&5
11823 sed 's/^/| /' conftest.$ac_ext >&5
11824
11825   # Passes both tests.
11826 ac_preproc_ok=:
11827 break
11828 fi
11829 rm -f conftest.err conftest.$ac_ext
11830
11831 done
11832 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11833 rm -f conftest.err conftest.$ac_ext
11834 if $ac_preproc_ok; then
11835   :
11836 else
11837   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
11838 See \`config.log' for more details." >&5
11839 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
11840 See \`config.log' for more details." >&2;}
11841    { (exit 1); exit 1; }; }
11842 fi
11843
11844 ac_ext=c
11845 ac_cpp='$CPP $CPPFLAGS'
11846 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11847 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11848 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11849
11850
11851 case $host_os in
11852   *mingw32* ) ac_cv_mingw32=yes ;;
11853   *cygwin* ) ac_cv_cygwin=yes ;;
11854 esac
11855
11856
11857
11858
11859 cat >>confdefs.h <<_ACEOF
11860 #define EXEEXT "${EXEEXT}"
11861 _ACEOF
11862
11863
11864 echo "$as_me:$LINENO: checking for be_app in -lbe" >&5
11865 echo $ECHO_N "checking for be_app in -lbe... $ECHO_C" >&6
11866 if test "${ac_cv_lib_be_be_app+set}" = set; then
11867   echo $ECHO_N "(cached) $ECHO_C" >&6
11868 else
11869   ac_check_lib_save_LIBS=$LIBS
11870 LIBS="-lbe -lroot -lnet $LIBS"
11871 cat >conftest.$ac_ext <<_ACEOF
11872 /* confdefs.h.  */
11873 _ACEOF
11874 cat confdefs.h >>conftest.$ac_ext
11875 cat >>conftest.$ac_ext <<_ACEOF
11876 /* end confdefs.h.  */
11877
11878 /* Override any gcc2 internal prototype to avoid an error.  */
11879 #ifdef __cplusplus
11880 extern "C"
11881 #endif
11882 /* We use char because int might match the return type of a gcc2
11883    builtin and then its argument prototype would still apply.  */
11884 char be_app ();
11885 int
11886 main ()
11887 {
11888 be_app ();
11889   ;
11890   return 0;
11891 }
11892 _ACEOF
11893 rm -f conftest.$ac_objext conftest$ac_exeext
11894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11895   (eval $ac_link) 2>conftest.er1
11896   ac_status=$?
11897   grep -v '^ *+' conftest.er1 >conftest.err
11898   rm -f conftest.er1
11899   cat conftest.err >&5
11900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11901   (exit $ac_status); } &&
11902          { ac_try='test -z "$ac_c_werror_flag"
11903                          || test ! -s conftest.err'
11904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11905   (eval $ac_try) 2>&5
11906   ac_status=$?
11907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11908   (exit $ac_status); }; } &&
11909          { ac_try='test -s conftest$ac_exeext'
11910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11911   (eval $ac_try) 2>&5
11912   ac_status=$?
11913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11914   (exit $ac_status); }; }; then
11915   ac_cv_lib_be_be_app=yes
11916 else
11917   echo "$as_me: failed program was:" >&5
11918 sed 's/^/| /' conftest.$ac_ext >&5
11919
11920 ac_cv_lib_be_be_app=no
11921 fi
11922 rm -f conftest.err conftest.$ac_objext \
11923       conftest$ac_exeext conftest.$ac_ext
11924 LIBS=$ac_check_lib_save_LIBS
11925 fi
11926 echo "$as_me:$LINENO: result: $ac_cv_lib_be_be_app" >&5
11927 echo "${ECHO_T}$ac_cv_lib_be_be_app" >&6
11928 if test $ac_cv_lib_be_be_app = yes; then
11929   LIBS="$LIBS -lbe -lroot -lnet"
11930 else
11931   :
11932 fi
11933
11934
11935 ac_ext=c
11936 ac_cpp='$CPP $CPPFLAGS'
11937 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11938 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11939 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11940 if test -n "$ac_tool_prefix"; then
11941   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11942 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11943 echo "$as_me:$LINENO: checking for $ac_word" >&5
11944 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11945 if test "${ac_cv_prog_CC+set}" = set; then
11946   echo $ECHO_N "(cached) $ECHO_C" >&6
11947 else
11948   if test -n "$CC"; then
11949   ac_cv_prog_CC="$CC" # Let the user override the test.
11950 else
11951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11952 for as_dir in $PATH
11953 do
11954   IFS=$as_save_IFS
11955   test -z "$as_dir" && as_dir=.
11956   for ac_exec_ext in '' $ac_executable_extensions; do
11957   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11958     ac_cv_prog_CC="${ac_tool_prefix}gcc"
11959     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11960     break 2
11961   fi
11962 done
11963 done
11964
11965 fi
11966 fi
11967 CC=$ac_cv_prog_CC
11968 if test -n "$CC"; then
11969   echo "$as_me:$LINENO: result: $CC" >&5
11970 echo "${ECHO_T}$CC" >&6
11971 else
11972   echo "$as_me:$LINENO: result: no" >&5
11973 echo "${ECHO_T}no" >&6
11974 fi
11975
11976 fi
11977 if test -z "$ac_cv_prog_CC"; then
11978   ac_ct_CC=$CC
11979   # Extract the first word of "gcc", so it can be a program name with args.
11980 set dummy gcc; ac_word=$2
11981 echo "$as_me:$LINENO: checking for $ac_word" >&5
11982 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11983 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11984   echo $ECHO_N "(cached) $ECHO_C" >&6
11985 else
11986   if test -n "$ac_ct_CC"; then
11987   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11988 else
11989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11990 for as_dir in $PATH
11991 do
11992   IFS=$as_save_IFS
11993   test -z "$as_dir" && as_dir=.
11994   for ac_exec_ext in '' $ac_executable_extensions; do
11995   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11996     ac_cv_prog_ac_ct_CC="gcc"
11997     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11998     break 2
11999   fi
12000 done
12001 done
12002
12003 fi
12004 fi
12005 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12006 if test -n "$ac_ct_CC"; then
12007   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12008 echo "${ECHO_T}$ac_ct_CC" >&6
12009 else
12010   echo "$as_me:$LINENO: result: no" >&5
12011 echo "${ECHO_T}no" >&6
12012 fi
12013
12014   CC=$ac_ct_CC
12015 else
12016   CC="$ac_cv_prog_CC"
12017 fi
12018
12019 if test -z "$CC"; then
12020   if test -n "$ac_tool_prefix"; then
12021   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12022 set dummy ${ac_tool_prefix}cc; ac_word=$2
12023 echo "$as_me:$LINENO: checking for $ac_word" >&5
12024 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12025 if test "${ac_cv_prog_CC+set}" = set; then
12026   echo $ECHO_N "(cached) $ECHO_C" >&6
12027 else
12028   if test -n "$CC"; then
12029   ac_cv_prog_CC="$CC" # Let the user override the test.
12030 else
12031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12032 for as_dir in $PATH
12033 do
12034   IFS=$as_save_IFS
12035   test -z "$as_dir" && as_dir=.
12036   for ac_exec_ext in '' $ac_executable_extensions; do
12037   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12038     ac_cv_prog_CC="${ac_tool_prefix}cc"
12039     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12040     break 2
12041   fi
12042 done
12043 done
12044
12045 fi
12046 fi
12047 CC=$ac_cv_prog_CC
12048 if test -n "$CC"; then
12049   echo "$as_me:$LINENO: result: $CC" >&5
12050 echo "${ECHO_T}$CC" >&6
12051 else
12052   echo "$as_me:$LINENO: result: no" >&5
12053 echo "${ECHO_T}no" >&6
12054 fi
12055
12056 fi
12057 if test -z "$ac_cv_prog_CC"; then
12058   ac_ct_CC=$CC
12059   # Extract the first word of "cc", so it can be a program name with args.
12060 set dummy cc; ac_word=$2
12061 echo "$as_me:$LINENO: checking for $ac_word" >&5
12062 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12063 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12064   echo $ECHO_N "(cached) $ECHO_C" >&6
12065 else
12066   if test -n "$ac_ct_CC"; then
12067   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12068 else
12069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12070 for as_dir in $PATH
12071 do
12072   IFS=$as_save_IFS
12073   test -z "$as_dir" && as_dir=.
12074   for ac_exec_ext in '' $ac_executable_extensions; do
12075   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12076     ac_cv_prog_ac_ct_CC="cc"
12077     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12078     break 2
12079   fi
12080 done
12081 done
12082
12083 fi
12084 fi
12085 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12086 if test -n "$ac_ct_CC"; then
12087   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12088 echo "${ECHO_T}$ac_ct_CC" >&6
12089 else
12090   echo "$as_me:$LINENO: result: no" >&5
12091 echo "${ECHO_T}no" >&6
12092 fi
12093
12094   CC=$ac_ct_CC
12095 else
12096   CC="$ac_cv_prog_CC"
12097 fi
12098
12099 fi
12100 if test -z "$CC"; then
12101   # Extract the first word of "cc", so it can be a program name with args.
12102 set dummy cc; ac_word=$2
12103 echo "$as_me:$LINENO: checking for $ac_word" >&5
12104 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12105 if test "${ac_cv_prog_CC+set}" = set; then
12106   echo $ECHO_N "(cached) $ECHO_C" >&6
12107 else
12108   if test -n "$CC"; then
12109   ac_cv_prog_CC="$CC" # Let the user override the test.
12110 else
12111   ac_prog_rejected=no
12112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12113 for as_dir in $PATH
12114 do
12115   IFS=$as_save_IFS
12116   test -z "$as_dir" && as_dir=.
12117   for ac_exec_ext in '' $ac_executable_extensions; do
12118   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12119     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12120        ac_prog_rejected=yes
12121        continue
12122      fi
12123     ac_cv_prog_CC="cc"
12124     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12125     break 2
12126   fi
12127 done
12128 done
12129
12130 if test $ac_prog_rejected = yes; then
12131   # We found a bogon in the path, so make sure we never use it.
12132   set dummy $ac_cv_prog_CC
12133   shift
12134   if test $# != 0; then
12135     # We chose a different compiler from the bogus one.
12136     # However, it has the same basename, so the bogon will be chosen
12137     # first if we set CC to just the basename; use the full file name.
12138     shift
12139     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12140   fi
12141 fi
12142 fi
12143 fi
12144 CC=$ac_cv_prog_CC
12145 if test -n "$CC"; then
12146   echo "$as_me:$LINENO: result: $CC" >&5
12147 echo "${ECHO_T}$CC" >&6
12148 else
12149   echo "$as_me:$LINENO: result: no" >&5
12150 echo "${ECHO_T}no" >&6
12151 fi
12152
12153 fi
12154 if test -z "$CC"; then
12155   if test -n "$ac_tool_prefix"; then
12156   for ac_prog in cl
12157   do
12158     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12159 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12160 echo "$as_me:$LINENO: checking for $ac_word" >&5
12161 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12162 if test "${ac_cv_prog_CC+set}" = set; then
12163   echo $ECHO_N "(cached) $ECHO_C" >&6
12164 else
12165   if test -n "$CC"; then
12166   ac_cv_prog_CC="$CC" # Let the user override the test.
12167 else
12168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12169 for as_dir in $PATH
12170 do
12171   IFS=$as_save_IFS
12172   test -z "$as_dir" && as_dir=.
12173   for ac_exec_ext in '' $ac_executable_extensions; do
12174   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12175     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12176     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12177     break 2
12178   fi
12179 done
12180 done
12181
12182 fi
12183 fi
12184 CC=$ac_cv_prog_CC
12185 if test -n "$CC"; then
12186   echo "$as_me:$LINENO: result: $CC" >&5
12187 echo "${ECHO_T}$CC" >&6
12188 else
12189   echo "$as_me:$LINENO: result: no" >&5
12190 echo "${ECHO_T}no" >&6
12191 fi
12192
12193     test -n "$CC" && break
12194   done
12195 fi
12196 if test -z "$CC"; then
12197   ac_ct_CC=$CC
12198   for ac_prog in cl
12199 do
12200   # Extract the first word of "$ac_prog", so it can be a program name with args.
12201 set dummy $ac_prog; ac_word=$2
12202 echo "$as_me:$LINENO: checking for $ac_word" >&5
12203 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12204 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12205   echo $ECHO_N "(cached) $ECHO_C" >&6
12206 else
12207   if test -n "$ac_ct_CC"; then
12208   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12209 else
12210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12211 for as_dir in $PATH
12212 do
12213   IFS=$as_save_IFS
12214   test -z "$as_dir" && as_dir=.
12215   for ac_exec_ext in '' $ac_executable_extensions; do
12216   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12217     ac_cv_prog_ac_ct_CC="$ac_prog"
12218     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12219     break 2
12220   fi
12221 done
12222 done
12223
12224 fi
12225 fi
12226 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12227 if test -n "$ac_ct_CC"; then
12228   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12229 echo "${ECHO_T}$ac_ct_CC" >&6
12230 else
12231   echo "$as_me:$LINENO: result: no" >&5
12232 echo "${ECHO_T}no" >&6
12233 fi
12234
12235   test -n "$ac_ct_CC" && break
12236 done
12237
12238   CC=$ac_ct_CC
12239 fi
12240
12241 fi
12242
12243
12244 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
12245 See \`config.log' for more details." >&5
12246 echo "$as_me: error: no acceptable C compiler found in \$PATH
12247 See \`config.log' for more details." >&2;}
12248    { (exit 1); exit 1; }; }
12249
12250 # Provide some information about the compiler.
12251 echo "$as_me:$LINENO:" \
12252      "checking for C compiler version" >&5
12253 ac_compiler=`set X $ac_compile; echo $2`
12254 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
12255   (eval $ac_compiler --version </dev/null >&5) 2>&5
12256   ac_status=$?
12257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12258   (exit $ac_status); }
12259 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
12260   (eval $ac_compiler -v </dev/null >&5) 2>&5
12261   ac_status=$?
12262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12263   (exit $ac_status); }
12264 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
12265   (eval $ac_compiler -V </dev/null >&5) 2>&5
12266   ac_status=$?
12267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12268   (exit $ac_status); }
12269
12270 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
12271 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
12272 if test "${ac_cv_c_compiler_gnu+set}" = set; then
12273   echo $ECHO_N "(cached) $ECHO_C" >&6
12274 else
12275   cat >conftest.$ac_ext <<_ACEOF
12276 /* confdefs.h.  */
12277 _ACEOF
12278 cat confdefs.h >>conftest.$ac_ext
12279 cat >>conftest.$ac_ext <<_ACEOF
12280 /* end confdefs.h.  */
12281
12282 int
12283 main ()
12284 {
12285 #ifndef __GNUC__
12286        choke me
12287 #endif
12288
12289   ;
12290   return 0;
12291 }
12292 _ACEOF
12293 rm -f conftest.$ac_objext
12294 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12295   (eval $ac_compile) 2>conftest.er1
12296   ac_status=$?
12297   grep -v '^ *+' conftest.er1 >conftest.err
12298   rm -f conftest.er1
12299   cat conftest.err >&5
12300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12301   (exit $ac_status); } &&
12302          { ac_try='test -z "$ac_c_werror_flag"
12303                          || test ! -s conftest.err'
12304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12305   (eval $ac_try) 2>&5
12306   ac_status=$?
12307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12308   (exit $ac_status); }; } &&
12309          { ac_try='test -s conftest.$ac_objext'
12310   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12311   (eval $ac_try) 2>&5
12312   ac_status=$?
12313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12314   (exit $ac_status); }; }; then
12315   ac_compiler_gnu=yes
12316 else
12317   echo "$as_me: failed program was:" >&5
12318 sed 's/^/| /' conftest.$ac_ext >&5
12319
12320 ac_compiler_gnu=no
12321 fi
12322 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12323 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12324
12325 fi
12326 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
12327 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
12328 GCC=`test $ac_compiler_gnu = yes && echo yes`
12329 ac_test_CFLAGS=${CFLAGS+set}
12330 ac_save_CFLAGS=$CFLAGS
12331 CFLAGS="-g"
12332 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12333 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
12334 if test "${ac_cv_prog_cc_g+set}" = set; then
12335   echo $ECHO_N "(cached) $ECHO_C" >&6
12336 else
12337   cat >conftest.$ac_ext <<_ACEOF
12338 /* confdefs.h.  */
12339 _ACEOF
12340 cat confdefs.h >>conftest.$ac_ext
12341 cat >>conftest.$ac_ext <<_ACEOF
12342 /* end confdefs.h.  */
12343
12344 int
12345 main ()
12346 {
12347
12348   ;
12349   return 0;
12350 }
12351 _ACEOF
12352 rm -f conftest.$ac_objext
12353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12354   (eval $ac_compile) 2>conftest.er1
12355   ac_status=$?
12356   grep -v '^ *+' conftest.er1 >conftest.err
12357   rm -f conftest.er1
12358   cat conftest.err >&5
12359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12360   (exit $ac_status); } &&
12361          { ac_try='test -z "$ac_c_werror_flag"
12362                          || test ! -s conftest.err'
12363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12364   (eval $ac_try) 2>&5
12365   ac_status=$?
12366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12367   (exit $ac_status); }; } &&
12368          { ac_try='test -s conftest.$ac_objext'
12369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12370   (eval $ac_try) 2>&5
12371   ac_status=$?
12372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12373   (exit $ac_status); }; }; then
12374   ac_cv_prog_cc_g=yes
12375 else
12376   echo "$as_me: failed program was:" >&5
12377 sed 's/^/| /' conftest.$ac_ext >&5
12378
12379 ac_cv_prog_cc_g=no
12380 fi
12381 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12382 fi
12383 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12384 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
12385 if test "$ac_test_CFLAGS" = set; then
12386   CFLAGS=$ac_save_CFLAGS
12387 elif test $ac_cv_prog_cc_g = yes; then
12388   if test "$GCC" = yes; then
12389     CFLAGS="-g -O2"
12390   else
12391     CFLAGS="-g"
12392   fi
12393 else
12394   if test "$GCC" = yes; then
12395     CFLAGS="-O2"
12396   else
12397     CFLAGS=
12398   fi
12399 fi
12400 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
12401 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
12402 if test "${ac_cv_prog_cc_stdc+set}" = set; then
12403   echo $ECHO_N "(cached) $ECHO_C" >&6
12404 else
12405   ac_cv_prog_cc_stdc=no
12406 ac_save_CC=$CC
12407 cat >conftest.$ac_ext <<_ACEOF
12408 /* confdefs.h.  */
12409 _ACEOF
12410 cat confdefs.h >>conftest.$ac_ext
12411 cat >>conftest.$ac_ext <<_ACEOF
12412 /* end confdefs.h.  */
12413 #include <stdarg.h>
12414 #include <stdio.h>
12415 #include <sys/types.h>
12416 #include <sys/stat.h>
12417 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
12418 struct buf { int x; };
12419 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12420 static char *e (p, i)
12421      char **p;
12422      int i;
12423 {
12424   return p[i];
12425 }
12426 static char *f (char * (*g) (char **, int), char **p, ...)
12427 {
12428   char *s;
12429   va_list v;
12430   va_start (v,p);
12431   s = g (p, va_arg (v,int));
12432   va_end (v);
12433   return s;
12434 }
12435
12436 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
12437    function prototypes and stuff, but not '\xHH' hex character constants.
12438    These don't provoke an error unfortunately, instead are silently treated
12439    as 'x'.  The following induces an error, until -std1 is added to get
12440    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
12441    array size at least.  It's necessary to write '\x00'==0 to get something
12442    that's true only with -std1.  */
12443 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12444
12445 int test (int i, double x);
12446 struct s1 {int (*f) (int a);};
12447 struct s2 {int (*f) (double a);};
12448 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12449 int argc;
12450 char **argv;
12451 int
12452 main ()
12453 {
12454 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
12455   ;
12456   return 0;
12457 }
12458 _ACEOF
12459 # Don't try gcc -ansi; that turns off useful extensions and
12460 # breaks some systems' header files.
12461 # AIX                   -qlanglvl=ansi
12462 # Ultrix and OSF/1      -std1
12463 # HP-UX 10.20 and later -Ae
12464 # HP-UX older versions  -Aa -D_HPUX_SOURCE
12465 # SVR4                  -Xc -D__EXTENSIONS__
12466 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12467 do
12468   CC="$ac_save_CC $ac_arg"
12469   rm -f conftest.$ac_objext
12470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12471   (eval $ac_compile) 2>conftest.er1
12472   ac_status=$?
12473   grep -v '^ *+' conftest.er1 >conftest.err
12474   rm -f conftest.er1
12475   cat conftest.err >&5
12476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12477   (exit $ac_status); } &&
12478          { ac_try='test -z "$ac_c_werror_flag"
12479                          || test ! -s conftest.err'
12480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12481   (eval $ac_try) 2>&5
12482   ac_status=$?
12483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12484   (exit $ac_status); }; } &&
12485          { ac_try='test -s conftest.$ac_objext'
12486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12487   (eval $ac_try) 2>&5
12488   ac_status=$?
12489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12490   (exit $ac_status); }; }; then
12491   ac_cv_prog_cc_stdc=$ac_arg
12492 break
12493 else
12494   echo "$as_me: failed program was:" >&5
12495 sed 's/^/| /' conftest.$ac_ext >&5
12496
12497 fi
12498 rm -f conftest.err conftest.$ac_objext
12499 done
12500 rm -f conftest.$ac_ext conftest.$ac_objext
12501 CC=$ac_save_CC
12502
12503 fi
12504
12505 case "x$ac_cv_prog_cc_stdc" in
12506   x|xno)
12507     echo "$as_me:$LINENO: result: none needed" >&5
12508 echo "${ECHO_T}none needed" >&6 ;;
12509   *)
12510     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
12511 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
12512     CC="$CC $ac_cv_prog_cc_stdc" ;;
12513 esac
12514
12515 # Some people use a C++ compiler to compile C.  Since we use `exit',
12516 # in C++ we need to declare it.  In case someone uses the same compiler
12517 # for both compiling C and C++ we need to have the C++ compiler decide
12518 # the declaration of exit, since it's the most demanding environment.
12519 cat >conftest.$ac_ext <<_ACEOF
12520 #ifndef __cplusplus
12521   choke me
12522 #endif
12523 _ACEOF
12524 rm -f conftest.$ac_objext
12525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12526   (eval $ac_compile) 2>conftest.er1
12527   ac_status=$?
12528   grep -v '^ *+' conftest.er1 >conftest.err
12529   rm -f conftest.er1
12530   cat conftest.err >&5
12531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12532   (exit $ac_status); } &&
12533          { ac_try='test -z "$ac_c_werror_flag"
12534                          || test ! -s conftest.err'
12535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12536   (eval $ac_try) 2>&5
12537   ac_status=$?
12538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12539   (exit $ac_status); }; } &&
12540          { ac_try='test -s conftest.$ac_objext'
12541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12542   (eval $ac_try) 2>&5
12543   ac_status=$?
12544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12545   (exit $ac_status); }; }; then
12546   for ac_declaration in \
12547    '' \
12548    'extern "C" void std::exit (int) throw (); using std::exit;' \
12549    'extern "C" void std::exit (int); using std::exit;' \
12550    'extern "C" void exit (int) throw ();' \
12551    'extern "C" void exit (int);' \
12552    'void exit (int);'
12553 do
12554   cat >conftest.$ac_ext <<_ACEOF
12555 /* confdefs.h.  */
12556 _ACEOF
12557 cat confdefs.h >>conftest.$ac_ext
12558 cat >>conftest.$ac_ext <<_ACEOF
12559 /* end confdefs.h.  */
12560 $ac_declaration
12561 #include <stdlib.h>
12562 int
12563 main ()
12564 {
12565 exit (42);
12566   ;
12567   return 0;
12568 }
12569 _ACEOF
12570 rm -f conftest.$ac_objext
12571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12572   (eval $ac_compile) 2>conftest.er1
12573   ac_status=$?
12574   grep -v '^ *+' conftest.er1 >conftest.err
12575   rm -f conftest.er1
12576   cat conftest.err >&5
12577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12578   (exit $ac_status); } &&
12579          { ac_try='test -z "$ac_c_werror_flag"
12580                          || test ! -s conftest.err'
12581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12582   (eval $ac_try) 2>&5
12583   ac_status=$?
12584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12585   (exit $ac_status); }; } &&
12586          { ac_try='test -s conftest.$ac_objext'
12587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12588   (eval $ac_try) 2>&5
12589   ac_status=$?
12590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12591   (exit $ac_status); }; }; then
12592   :
12593 else
12594   echo "$as_me: failed program was:" >&5
12595 sed 's/^/| /' conftest.$ac_ext >&5
12596
12597 continue
12598 fi
12599 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12600   cat >conftest.$ac_ext <<_ACEOF
12601 /* confdefs.h.  */
12602 _ACEOF
12603 cat confdefs.h >>conftest.$ac_ext
12604 cat >>conftest.$ac_ext <<_ACEOF
12605 /* end confdefs.h.  */
12606 $ac_declaration
12607 int
12608 main ()
12609 {
12610 exit (42);
12611   ;
12612   return 0;
12613 }
12614 _ACEOF
12615 rm -f conftest.$ac_objext
12616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12617   (eval $ac_compile) 2>conftest.er1
12618   ac_status=$?
12619   grep -v '^ *+' conftest.er1 >conftest.err
12620   rm -f conftest.er1
12621   cat conftest.err >&5
12622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12623   (exit $ac_status); } &&
12624          { ac_try='test -z "$ac_c_werror_flag"
12625                          || test ! -s conftest.err'
12626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12627   (eval $ac_try) 2>&5
12628   ac_status=$?
12629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12630   (exit $ac_status); }; } &&
12631          { ac_try='test -s conftest.$ac_objext'
12632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12633   (eval $ac_try) 2>&5
12634   ac_status=$?
12635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12636   (exit $ac_status); }; }; then
12637   break
12638 else
12639   echo "$as_me: failed program was:" >&5
12640 sed 's/^/| /' conftest.$ac_ext >&5
12641
12642 fi
12643 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12644 done
12645 rm -f conftest*
12646 if test -n "$ac_declaration"; then
12647   echo '#ifdef __cplusplus' >>confdefs.h
12648   echo $ac_declaration      >>confdefs.h
12649   echo '#endif'             >>confdefs.h
12650 fi
12651
12652 else
12653   echo "$as_me: failed program was:" >&5
12654 sed 's/^/| /' conftest.$ac_ext >&5
12655
12656 fi
12657 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12658 ac_ext=c
12659 ac_cpp='$CPP $CPPFLAGS'
12660 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12661 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12662 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12663
12664 depcc="$CC"   am_compiler_list=
12665
12666 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
12667 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
12668 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
12669   echo $ECHO_N "(cached) $ECHO_C" >&6
12670 else
12671   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12672   # We make a subdir and do the tests there.  Otherwise we can end up
12673   # making bogus files that we don't know about and never remove.  For
12674   # instance it was reported that on HP-UX the gcc test will end up
12675   # making a dummy file named `D' -- because `-MD' means `put the output
12676   # in D'.
12677   mkdir conftest.dir
12678   # Copy depcomp to subdir because otherwise we won't find it if we're
12679   # using a relative directory.
12680   cp "$am_depcomp" conftest.dir
12681   cd conftest.dir
12682   # We will build objects and dependencies in a subdirectory because
12683   # it helps to detect inapplicable dependency modes.  For instance
12684   # both Tru64's cc and ICC support -MD to output dependencies as a
12685   # side effect of compilation, but ICC will put the dependencies in
12686   # the current directory while Tru64 will put them in the object
12687   # directory.
12688   mkdir sub
12689
12690   am_cv_CC_dependencies_compiler_type=none
12691   if test "$am_compiler_list" = ""; then
12692      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12693   fi
12694   for depmode in $am_compiler_list; do
12695     # Setup a source with many dependencies, because some compilers
12696     # like to wrap large dependency lists on column 80 (with \), and
12697     # we should not choose a depcomp mode which is confused by this.
12698     #
12699     # We need to recreate these files for each test, as the compiler may
12700     # overwrite some of them when testing with obscure command lines.
12701     # This happens at least with the AIX C compiler.
12702     : > sub/conftest.c
12703     for i in 1 2 3 4 5 6; do
12704       echo '#include "conftst'$i'.h"' >> sub/conftest.c
12705       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12706       # Solaris 8's {/usr,}/bin/sh.
12707       touch sub/conftst$i.h
12708     done
12709     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12710
12711     case $depmode in
12712     nosideeffect)
12713       # after this tag, mechanisms are not by side-effect, so they'll
12714       # only be used when explicitly requested
12715       if test "x$enable_dependency_tracking" = xyes; then
12716         continue
12717       else
12718         break
12719       fi
12720       ;;
12721     none) break ;;
12722     esac
12723     # We check with `-c' and `-o' for the sake of the "dashmstdout"
12724     # mode.  It turns out that the SunPro C++ compiler does not properly
12725     # handle `-M -o', and we need to detect this.
12726     if depmode=$depmode \
12727        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
12728        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12729        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
12730          >/dev/null 2>conftest.err &&
12731        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12732        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
12733        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12734       # icc doesn't choke on unknown options, it will just issue warnings
12735       # or remarks (even with -Werror).  So we grep stderr for any message
12736       # that says an option was ignored or not supported.
12737       # When given -MP, icc 7.0 and 7.1 complain thusly:
12738       #   icc: Command line warning: ignoring option '-M'; no argument required
12739       # The diagnosis changed in icc 8.0:
12740       #   icc: Command line remark: option '-MP' not supported
12741       if (grep 'ignoring option' conftest.err ||
12742           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12743         am_cv_CC_dependencies_compiler_type=$depmode
12744         break
12745       fi
12746     fi
12747   done
12748
12749   cd ..
12750   rm -rf conftest.dir
12751 else
12752   am_cv_CC_dependencies_compiler_type=none
12753 fi
12754
12755 fi
12756 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
12757 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
12758 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12759
12760
12761
12762 if
12763   test "x$enable_dependency_tracking" != xno \
12764   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12765   am__fastdepCC_TRUE=
12766   am__fastdepCC_FALSE='#'
12767 else
12768   am__fastdepCC_TRUE='#'
12769   am__fastdepCC_FALSE=
12770 fi
12771
12772
12773 if test "X${ac_cv_prog_cc_stdc}" = "Xno" ; then
12774         { { echo "$as_me:$LINENO: error: OpenLDAP requires compiler to support STDC constructs." >&5
12775 echo "$as_me: error: OpenLDAP requires compiler to support STDC constructs." >&2;}
12776    { (exit 1); exit 1; }; }
12777 fi
12778
12779 # test for make depend flag
12780 OL_MKDEP=
12781 OL_MKDEP_FLAGS=
12782 if test -z "${MKDEP}"; then
12783         OL_MKDEP="${CC-cc}"
12784         if test -z "${MKDEP_FLAGS}"; then
12785                 echo "$as_me:$LINENO: checking for ${OL_MKDEP} depend flag" >&5
12786 echo $ECHO_N "checking for ${OL_MKDEP} depend flag... $ECHO_C" >&6
12787 if test "${ol_cv_mkdep+set}" = set; then
12788   echo $ECHO_N "(cached) $ECHO_C" >&6
12789 else
12790
12791                         ol_cv_mkdep=no
12792                         for flag in "-M" "-xM"; do
12793                                 cat > conftest.c <<EOF
12794  noCode;
12795 EOF
12796                                 if { ac_try='$OL_MKDEP $flag conftest.c'
12797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12798   (eval $ac_try) 2>&5
12799   ac_status=$?
12800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12801   (exit $ac_status); }; } \
12802                                         | egrep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
12803                                 then
12804                                         if test ! -f conftest."${ac_object}" ; then
12805                                                 ol_cv_mkdep=$flag
12806                                                 OL_MKDEP_FLAGS="$flag"
12807                                                 break
12808                                         fi
12809                                 fi
12810                         done
12811                         rm -f conftest*
12812
12813 fi
12814 echo "$as_me:$LINENO: result: $ol_cv_mkdep" >&5
12815 echo "${ECHO_T}$ol_cv_mkdep" >&6
12816         else
12817                 cc_cv_mkdep=yes
12818                 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
12819         fi
12820 else
12821         cc_cv_mkdep=yes
12822         OL_MKDEP="${MKDEP}"
12823         OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
12824 fi
12825
12826
12827
12828 if test "${ol_cv_mkdep}" = no ; then
12829         # this will soon become an error
12830         { echo "$as_me:$LINENO: WARNING: do not know how to generate dependencies" >&5
12831 echo "$as_me: WARNING: do not know how to generate dependencies" >&2;}
12832 fi
12833
12834 echo "$as_me:$LINENO: checking for afopen in -ls" >&5
12835 echo $ECHO_N "checking for afopen in -ls... $ECHO_C" >&6
12836 if test "${ac_cv_lib_s_afopen+set}" = set; then
12837   echo $ECHO_N "(cached) $ECHO_C" >&6
12838 else
12839   ac_check_lib_save_LIBS=$LIBS
12840 LIBS="-ls  $LIBS"
12841 cat >conftest.$ac_ext <<_ACEOF
12842 /* confdefs.h.  */
12843 _ACEOF
12844 cat confdefs.h >>conftest.$ac_ext
12845 cat >>conftest.$ac_ext <<_ACEOF
12846 /* end confdefs.h.  */
12847
12848 /* Override any gcc2 internal prototype to avoid an error.  */
12849 #ifdef __cplusplus
12850 extern "C"
12851 #endif
12852 /* We use char because int might match the return type of a gcc2
12853    builtin and then its argument prototype would still apply.  */
12854 char afopen ();
12855 int
12856 main ()
12857 {
12858 afopen ();
12859   ;
12860   return 0;
12861 }
12862 _ACEOF
12863 rm -f conftest.$ac_objext conftest$ac_exeext
12864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12865   (eval $ac_link) 2>conftest.er1
12866   ac_status=$?
12867   grep -v '^ *+' conftest.er1 >conftest.err
12868   rm -f conftest.er1
12869   cat conftest.err >&5
12870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12871   (exit $ac_status); } &&
12872          { ac_try='test -z "$ac_c_werror_flag"
12873                          || test ! -s conftest.err'
12874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12875   (eval $ac_try) 2>&5
12876   ac_status=$?
12877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12878   (exit $ac_status); }; } &&
12879          { ac_try='test -s conftest$ac_exeext'
12880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12881   (eval $ac_try) 2>&5
12882   ac_status=$?
12883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12884   (exit $ac_status); }; }; then
12885   ac_cv_lib_s_afopen=yes
12886 else
12887   echo "$as_me: failed program was:" >&5
12888 sed 's/^/| /' conftest.$ac_ext >&5
12889
12890 ac_cv_lib_s_afopen=no
12891 fi
12892 rm -f conftest.err conftest.$ac_objext \
12893       conftest$ac_exeext conftest.$ac_ext
12894 LIBS=$ac_check_lib_save_LIBS
12895 fi
12896 echo "$as_me:$LINENO: result: $ac_cv_lib_s_afopen" >&5
12897 echo "${ECHO_T}$ac_cv_lib_s_afopen" >&6
12898 if test $ac_cv_lib_s_afopen = yes; then
12899
12900         AUTH_LIBS=-ls
12901
12902 cat >>confdefs.h <<\_ACEOF
12903 #define HAVE_AIX_SECURITY 1
12904 _ACEOF
12905
12906
12907 fi
12908
12909
12910 case "$target" in
12911 *-ibm-openedition)
12912         ac_cv_func_getopt=no
12913
12914 cat >>confdefs.h <<\_ACEOF
12915 #define BOTH_STRINGS_H 1
12916 _ACEOF
12917
12918         ;;
12919 esac
12920
12921 ol_link_modules=no
12922 WITH_MODULES_ENABLED=no
12923 if test $ol_enable_modules != no ; then
12924
12925 for ac_header in ltdl.h
12926 do
12927 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12928 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12929   echo "$as_me:$LINENO: checking for $ac_header" >&5
12930 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12931 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12932   echo $ECHO_N "(cached) $ECHO_C" >&6
12933 fi
12934 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12935 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12936 else
12937   # Is the header compilable?
12938 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12939 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12940 cat >conftest.$ac_ext <<_ACEOF
12941 /* confdefs.h.  */
12942 _ACEOF
12943 cat confdefs.h >>conftest.$ac_ext
12944 cat >>conftest.$ac_ext <<_ACEOF
12945 /* end confdefs.h.  */
12946 $ac_includes_default
12947 #include <$ac_header>
12948 _ACEOF
12949 rm -f conftest.$ac_objext
12950 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12951   (eval $ac_compile) 2>conftest.er1
12952   ac_status=$?
12953   grep -v '^ *+' conftest.er1 >conftest.err
12954   rm -f conftest.er1
12955   cat conftest.err >&5
12956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12957   (exit $ac_status); } &&
12958          { ac_try='test -z "$ac_c_werror_flag"
12959                          || test ! -s conftest.err'
12960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12961   (eval $ac_try) 2>&5
12962   ac_status=$?
12963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12964   (exit $ac_status); }; } &&
12965          { ac_try='test -s conftest.$ac_objext'
12966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12967   (eval $ac_try) 2>&5
12968   ac_status=$?
12969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12970   (exit $ac_status); }; }; then
12971   ac_header_compiler=yes
12972 else
12973   echo "$as_me: failed program was:" >&5
12974 sed 's/^/| /' conftest.$ac_ext >&5
12975
12976 ac_header_compiler=no
12977 fi
12978 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12979 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12980 echo "${ECHO_T}$ac_header_compiler" >&6
12981
12982 # Is the header present?
12983 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12984 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12985 cat >conftest.$ac_ext <<_ACEOF
12986 /* confdefs.h.  */
12987 _ACEOF
12988 cat confdefs.h >>conftest.$ac_ext
12989 cat >>conftest.$ac_ext <<_ACEOF
12990 /* end confdefs.h.  */
12991 #include <$ac_header>
12992 _ACEOF
12993 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12994   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12995   ac_status=$?
12996   grep -v '^ *+' conftest.er1 >conftest.err
12997   rm -f conftest.er1
12998   cat conftest.err >&5
12999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13000   (exit $ac_status); } >/dev/null; then
13001   if test -s conftest.err; then
13002     ac_cpp_err=$ac_c_preproc_warn_flag
13003     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13004   else
13005     ac_cpp_err=
13006   fi
13007 else
13008   ac_cpp_err=yes
13009 fi
13010 if test -z "$ac_cpp_err"; then
13011   ac_header_preproc=yes
13012 else
13013   echo "$as_me: failed program was:" >&5
13014 sed 's/^/| /' conftest.$ac_ext >&5
13015
13016   ac_header_preproc=no
13017 fi
13018 rm -f conftest.err conftest.$ac_ext
13019 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13020 echo "${ECHO_T}$ac_header_preproc" >&6
13021
13022 # So?  What about this header?
13023 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13024   yes:no: )
13025     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13026 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13027     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13028 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13029     ac_header_preproc=yes
13030     ;;
13031   no:yes:* )
13032     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13033 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13034     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13035 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13036     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13037 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13038     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13039 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13040     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13041 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13042     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13043 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13044     (
13045       cat <<\_ASBOX
13046 ## ------------------------------------------ ##
13047 ## Report this to the AC_PACKAGE_NAME lists.  ##
13048 ## ------------------------------------------ ##
13049 _ASBOX
13050     ) |
13051       sed "s/^/$as_me: WARNING:     /" >&2
13052     ;;
13053 esac
13054 echo "$as_me:$LINENO: checking for $ac_header" >&5
13055 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13056 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13057   echo $ECHO_N "(cached) $ECHO_C" >&6
13058 else
13059   eval "$as_ac_Header=\$ac_header_preproc"
13060 fi
13061 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13062 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13063
13064 fi
13065 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13066   cat >>confdefs.h <<_ACEOF
13067 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13068 _ACEOF
13069
13070 fi
13071
13072 done
13073
13074
13075         if test $ac_cv_header_ltdl_h = no ; then
13076                 { { echo "$as_me:$LINENO: error: could not locate libtool ltdl.h" >&5
13077 echo "$as_me: error: could not locate libtool ltdl.h" >&2;}
13078    { (exit 1); exit 1; }; }
13079         fi
13080
13081         echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
13082 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
13083 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
13084   echo $ECHO_N "(cached) $ECHO_C" >&6
13085 else
13086   ac_check_lib_save_LIBS=$LIBS
13087 LIBS="-lltdl  $LIBS"
13088 cat >conftest.$ac_ext <<_ACEOF
13089 /* confdefs.h.  */
13090 _ACEOF
13091 cat confdefs.h >>conftest.$ac_ext
13092 cat >>conftest.$ac_ext <<_ACEOF
13093 /* end confdefs.h.  */
13094
13095 /* Override any gcc2 internal prototype to avoid an error.  */
13096 #ifdef __cplusplus
13097 extern "C"
13098 #endif
13099 /* We use char because int might match the return type of a gcc2
13100    builtin and then its argument prototype would still apply.  */
13101 char lt_dlinit ();
13102 int
13103 main ()
13104 {
13105 lt_dlinit ();
13106   ;
13107   return 0;
13108 }
13109 _ACEOF
13110 rm -f conftest.$ac_objext conftest$ac_exeext
13111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13112   (eval $ac_link) 2>conftest.er1
13113   ac_status=$?
13114   grep -v '^ *+' conftest.er1 >conftest.err
13115   rm -f conftest.er1
13116   cat conftest.err >&5
13117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13118   (exit $ac_status); } &&
13119          { ac_try='test -z "$ac_c_werror_flag"
13120                          || test ! -s conftest.err'
13121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13122   (eval $ac_try) 2>&5
13123   ac_status=$?
13124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13125   (exit $ac_status); }; } &&
13126          { ac_try='test -s conftest$ac_exeext'
13127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13128   (eval $ac_try) 2>&5
13129   ac_status=$?
13130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13131   (exit $ac_status); }; }; then
13132   ac_cv_lib_ltdl_lt_dlinit=yes
13133 else
13134   echo "$as_me: failed program was:" >&5
13135 sed 's/^/| /' conftest.$ac_ext >&5
13136
13137 ac_cv_lib_ltdl_lt_dlinit=no
13138 fi
13139 rm -f conftest.err conftest.$ac_objext \
13140       conftest$ac_exeext conftest.$ac_ext
13141 LIBS=$ac_check_lib_save_LIBS
13142 fi
13143 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
13144 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
13145 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
13146
13147                 MODULES_LIBS=-lltdl
13148
13149 cat >>confdefs.h <<\_ACEOF
13150 #define HAVE_LIBLTDL 1
13151 _ACEOF
13152
13153
13154 fi
13155
13156
13157         if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
13158                 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
13159 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
13160    { (exit 1); exit 1; }; }
13161         fi
13162         ol_link_modules=yes
13163         WITH_MODULES_ENABLED=yes
13164
13165 else
13166         for i in $Backends; do
13167                 eval "ol_tmp=\$ol_enable_$i"
13168                 if test $ol_tmp = mod ; then
13169                         { echo "$as_me:$LINENO: WARNING: building static $i backend" >&5
13170 echo "$as_me: WARNING: building static $i backend" >&2;}
13171                         eval "ol_enable_$i=yes"
13172                 fi
13173         done
13174         for i in $Overlays; do
13175                 eval "ol_tmp=\$ol_enable_$i"
13176                 if test $ol_tmp = mod ; then
13177                         { echo "$as_me:$LINENO: WARNING: building static $i overlay" >&5
13178 echo "$as_me: WARNING: building static $i overlay" >&2;}
13179                         eval "ol_enable_$i=yes"
13180                 fi
13181         done
13182 fi
13183
13184 # test for EBCDIC
13185 echo "$as_me:$LINENO: checking for EBCDIC" >&5
13186 echo $ECHO_N "checking for EBCDIC... $ECHO_C" >&6
13187 if test "${ol_cv_cpp_ebcdic+set}" = set; then
13188   echo $ECHO_N "(cached) $ECHO_C" >&6
13189 else
13190
13191         cat >conftest.$ac_ext <<_ACEOF
13192 /* confdefs.h.  */
13193 _ACEOF
13194 cat confdefs.h >>conftest.$ac_ext
13195 cat >>conftest.$ac_ext <<_ACEOF
13196 /* end confdefs.h.  */
13197
13198 #if !('M' == 0xd4)
13199 #include <__ASCII__/generate_error.h>
13200 #endif
13201
13202 _ACEOF
13203 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13204   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13205   ac_status=$?
13206   grep -v '^ *+' conftest.er1 >conftest.err
13207   rm -f conftest.er1
13208   cat conftest.err >&5
13209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13210   (exit $ac_status); } >/dev/null; then
13211   if test -s conftest.err; then
13212     ac_cpp_err=$ac_c_preproc_warn_flag
13213     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13214   else
13215     ac_cpp_err=
13216   fi
13217 else
13218   ac_cpp_err=yes
13219 fi
13220 if test -z "$ac_cpp_err"; then
13221   ol_cv_cpp_ebcdic=yes
13222 else
13223   echo "$as_me: failed program was:" >&5
13224 sed 's/^/| /' conftest.$ac_ext >&5
13225
13226   ol_cv_cpp_ebcdic=no
13227 fi
13228 rm -f conftest.err conftest.$ac_ext
13229 fi
13230 echo "$as_me:$LINENO: result: $ol_cv_cpp_ebcdic" >&5
13231 echo "${ECHO_T}$ol_cv_cpp_ebcdic" >&6
13232 if test $ol_cv_cpp_ebcdic = yes ; then
13233
13234 cat >>confdefs.h <<\_ACEOF
13235 #define HAVE_EBCDIC 1
13236 _ACEOF
13237
13238 fi
13239
13240 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13241 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13242 if test "${ol_cv_header_stdc+set}" = set; then
13243   echo $ECHO_N "(cached) $ECHO_C" >&6
13244 else
13245   cat >conftest.$ac_ext <<_ACEOF
13246 /* confdefs.h.  */
13247 _ACEOF
13248 cat confdefs.h >>conftest.$ac_ext
13249 cat >>conftest.$ac_ext <<_ACEOF
13250 /* end confdefs.h.  */
13251 #include <stdlib.h>
13252 #include <stdarg.h>
13253 #include <string.h>
13254 #include <float.h>
13255 _ACEOF
13256 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13257   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13258   ac_status=$?
13259   grep -v '^ *+' conftest.er1 >conftest.err
13260   rm -f conftest.er1
13261   cat conftest.err >&5
13262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13263   (exit $ac_status); } >/dev/null; then
13264   if test -s conftest.err; then
13265     ac_cpp_err=$ac_c_preproc_warn_flag
13266     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13267   else
13268     ac_cpp_err=
13269   fi
13270 else
13271   ac_cpp_err=yes
13272 fi
13273 if test -z "$ac_cpp_err"; then
13274   ol_cv_header_stdc=yes
13275 else
13276   echo "$as_me: failed program was:" >&5
13277 sed 's/^/| /' conftest.$ac_ext >&5
13278
13279   ol_cv_header_stdc=no
13280 fi
13281 rm -f conftest.err conftest.$ac_ext
13282
13283 if test $ol_cv_header_stdc = yes; then
13284   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13285 cat >conftest.$ac_ext <<_ACEOF
13286 /* confdefs.h.  */
13287 _ACEOF
13288 cat confdefs.h >>conftest.$ac_ext
13289 cat >>conftest.$ac_ext <<_ACEOF
13290 /* end confdefs.h.  */
13291 #include <string.h>
13292
13293 _ACEOF
13294 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13295   $EGREP "memchr" >/dev/null 2>&1; then
13296   :
13297 else
13298   ol_cv_header_stdc=no
13299 fi
13300 rm -f conftest*
13301
13302 fi
13303
13304 if test $ol_cv_header_stdc = yes; then
13305   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13306 cat >conftest.$ac_ext <<_ACEOF
13307 /* confdefs.h.  */
13308 _ACEOF
13309 cat confdefs.h >>conftest.$ac_ext
13310 cat >>conftest.$ac_ext <<_ACEOF
13311 /* end confdefs.h.  */
13312 #include <stdlib.h>
13313
13314 _ACEOF
13315 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13316   $EGREP "free" >/dev/null 2>&1; then
13317   :
13318 else
13319   ol_cv_header_stdc=no
13320 fi
13321 rm -f conftest*
13322
13323 fi
13324
13325 if test $ol_cv_header_stdc = yes; then
13326   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13327 if test "$cross_compiling" = yes; then
13328   :
13329 else
13330   cat >conftest.$ac_ext <<_ACEOF
13331 /* confdefs.h.  */
13332 _ACEOF
13333 cat confdefs.h >>conftest.$ac_ext
13334 cat >>conftest.$ac_ext <<_ACEOF
13335 /* end confdefs.h.  */
13336 #include <ctype.h>
13337 #ifndef HAVE_EBCDIC
13338 #       define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13339 #       define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13340 #else
13341 #       define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
13342                 || ('j' <= (c) && (c) <= 'r') \
13343                 || ('s' <= (c) && (c) <= 'z'))
13344 #       define TOUPPER(c)       (ISLOWER(c) ? ((c) | 0x40) : (c))
13345 #endif
13346 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13347 int main () { int i; for (i = 0; i < 256; i++)
13348 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
13349 exit (0); }
13350
13351 _ACEOF
13352 rm -f conftest$ac_exeext
13353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13354   (eval $ac_link) 2>&5
13355   ac_status=$?
13356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13357   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13359   (eval $ac_try) 2>&5
13360   ac_status=$?
13361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13362   (exit $ac_status); }; }; then
13363   :
13364 else
13365   echo "$as_me: program exited with status $ac_status" >&5
13366 echo "$as_me: failed program was:" >&5
13367 sed 's/^/| /' conftest.$ac_ext >&5
13368
13369 ( exit $ac_status )
13370 ol_cv_header_stdc=no
13371 fi
13372 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13373 fi
13374 fi
13375 fi
13376 echo "$as_me:$LINENO: result: $ol_cv_header_stdc" >&5
13377 echo "${ECHO_T}$ol_cv_header_stdc" >&6
13378 if test $ol_cv_header_stdc = yes; then
13379   cat >>confdefs.h <<\_ACEOF
13380 #define STDC_HEADERS 1
13381 _ACEOF
13382
13383 fi
13384 ac_cv_header_stdc=disable
13385
13386
13387 if test $ol_cv_header_stdc != yes; then
13388         { echo "$as_me:$LINENO: WARNING: could not locate Standard C compliant headers" >&5
13389 echo "$as_me: WARNING: could not locate Standard C compliant headers" >&2;}
13390 fi
13391
13392
13393
13394
13395
13396
13397 ac_header_dirent=no
13398 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13399   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13400 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13401 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
13402 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13403   echo $ECHO_N "(cached) $ECHO_C" >&6
13404 else
13405   cat >conftest.$ac_ext <<_ACEOF
13406 /* confdefs.h.  */
13407 _ACEOF
13408 cat confdefs.h >>conftest.$ac_ext
13409 cat >>conftest.$ac_ext <<_ACEOF
13410 /* end confdefs.h.  */
13411 #include <sys/types.h>
13412 #include <$ac_hdr>
13413
13414 int
13415 main ()
13416 {
13417 if ((DIR *) 0)
13418 return 0;
13419   ;
13420   return 0;
13421 }
13422 _ACEOF
13423 rm -f conftest.$ac_objext
13424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13425   (eval $ac_compile) 2>conftest.er1
13426   ac_status=$?
13427   grep -v '^ *+' conftest.er1 >conftest.err
13428   rm -f conftest.er1
13429   cat conftest.err >&5
13430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13431   (exit $ac_status); } &&
13432          { ac_try='test -z "$ac_c_werror_flag"
13433                          || test ! -s conftest.err'
13434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13435   (eval $ac_try) 2>&5
13436   ac_status=$?
13437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13438   (exit $ac_status); }; } &&
13439          { ac_try='test -s conftest.$ac_objext'
13440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13441   (eval $ac_try) 2>&5
13442   ac_status=$?
13443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13444   (exit $ac_status); }; }; then
13445   eval "$as_ac_Header=yes"
13446 else
13447   echo "$as_me: failed program was:" >&5
13448 sed 's/^/| /' conftest.$ac_ext >&5
13449
13450 eval "$as_ac_Header=no"
13451 fi
13452 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13453 fi
13454 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13455 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13456 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13457   cat >>confdefs.h <<_ACEOF
13458 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13459 _ACEOF
13460
13461 ac_header_dirent=$ac_hdr; break
13462 fi
13463
13464 done
13465 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13466 if test $ac_header_dirent = dirent.h; then
13467   echo "$as_me:$LINENO: checking for library containing opendir" >&5
13468 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
13469 if test "${ac_cv_search_opendir+set}" = set; then
13470   echo $ECHO_N "(cached) $ECHO_C" >&6
13471 else
13472   ac_func_search_save_LIBS=$LIBS
13473 ac_cv_search_opendir=no
13474 cat >conftest.$ac_ext <<_ACEOF
13475 /* confdefs.h.  */
13476 _ACEOF
13477 cat confdefs.h >>conftest.$ac_ext
13478 cat >>conftest.$ac_ext <<_ACEOF
13479 /* end confdefs.h.  */
13480
13481 /* Override any gcc2 internal prototype to avoid an error.  */
13482 #ifdef __cplusplus
13483 extern "C"
13484 #endif
13485 /* We use char because int might match the return type of a gcc2
13486    builtin and then its argument prototype would still apply.  */
13487 char opendir ();
13488 int
13489 main ()
13490 {
13491 opendir ();
13492   ;
13493   return 0;
13494 }
13495 _ACEOF
13496 rm -f conftest.$ac_objext conftest$ac_exeext
13497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13498   (eval $ac_link) 2>conftest.er1
13499   ac_status=$?
13500   grep -v '^ *+' conftest.er1 >conftest.err
13501   rm -f conftest.er1
13502   cat conftest.err >&5
13503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13504   (exit $ac_status); } &&
13505          { ac_try='test -z "$ac_c_werror_flag"
13506                          || test ! -s conftest.err'
13507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13508   (eval $ac_try) 2>&5
13509   ac_status=$?
13510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13511   (exit $ac_status); }; } &&
13512          { ac_try='test -s conftest$ac_exeext'
13513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13514   (eval $ac_try) 2>&5
13515   ac_status=$?
13516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13517   (exit $ac_status); }; }; then
13518   ac_cv_search_opendir="none required"
13519 else
13520   echo "$as_me: failed program was:" >&5
13521 sed 's/^/| /' conftest.$ac_ext >&5
13522
13523 fi
13524 rm -f conftest.err conftest.$ac_objext \
13525       conftest$ac_exeext conftest.$ac_ext
13526 if test "$ac_cv_search_opendir" = no; then
13527   for ac_lib in dir; do
13528     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13529     cat >conftest.$ac_ext <<_ACEOF
13530 /* confdefs.h.  */
13531 _ACEOF
13532 cat confdefs.h >>conftest.$ac_ext
13533 cat >>conftest.$ac_ext <<_ACEOF
13534 /* end confdefs.h.  */
13535
13536 /* Override any gcc2 internal prototype to avoid an error.  */
13537 #ifdef __cplusplus
13538 extern "C"
13539 #endif
13540 /* We use char because int might match the return type of a gcc2
13541    builtin and then its argument prototype would still apply.  */
13542 char opendir ();
13543 int
13544 main ()
13545 {
13546 opendir ();
13547   ;
13548   return 0;
13549 }
13550 _ACEOF
13551 rm -f conftest.$ac_objext conftest$ac_exeext
13552 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13553   (eval $ac_link) 2>conftest.er1
13554   ac_status=$?
13555   grep -v '^ *+' conftest.er1 >conftest.err
13556   rm -f conftest.er1
13557   cat conftest.err >&5
13558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13559   (exit $ac_status); } &&
13560          { ac_try='test -z "$ac_c_werror_flag"
13561                          || test ! -s conftest.err'
13562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13563   (eval $ac_try) 2>&5
13564   ac_status=$?
13565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13566   (exit $ac_status); }; } &&
13567          { ac_try='test -s conftest$ac_exeext'
13568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13569   (eval $ac_try) 2>&5
13570   ac_status=$?
13571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13572   (exit $ac_status); }; }; then
13573   ac_cv_search_opendir="-l$ac_lib"
13574 break
13575 else
13576   echo "$as_me: failed program was:" >&5
13577 sed 's/^/| /' conftest.$ac_ext >&5
13578
13579 fi
13580 rm -f conftest.err conftest.$ac_objext \
13581       conftest$ac_exeext conftest.$ac_ext
13582   done
13583 fi
13584 LIBS=$ac_func_search_save_LIBS
13585 fi
13586 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13587 echo "${ECHO_T}$ac_cv_search_opendir" >&6
13588 if test "$ac_cv_search_opendir" != no; then
13589   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
13590
13591 fi
13592
13593 else
13594   echo "$as_me:$LINENO: checking for library containing opendir" >&5
13595 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
13596 if test "${ac_cv_search_opendir+set}" = set; then
13597   echo $ECHO_N "(cached) $ECHO_C" >&6
13598 else
13599   ac_func_search_save_LIBS=$LIBS
13600 ac_cv_search_opendir=no
13601 cat >conftest.$ac_ext <<_ACEOF
13602 /* confdefs.h.  */
13603 _ACEOF
13604 cat confdefs.h >>conftest.$ac_ext
13605 cat >>conftest.$ac_ext <<_ACEOF
13606 /* end confdefs.h.  */
13607
13608 /* Override any gcc2 internal prototype to avoid an error.  */
13609 #ifdef __cplusplus
13610 extern "C"
13611 #endif
13612 /* We use char because int might match the return type of a gcc2
13613    builtin and then its argument prototype would still apply.  */
13614 char opendir ();
13615 int
13616 main ()
13617 {
13618 opendir ();
13619   ;
13620   return 0;
13621 }
13622 _ACEOF
13623 rm -f conftest.$ac_objext conftest$ac_exeext
13624 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13625   (eval $ac_link) 2>conftest.er1
13626   ac_status=$?
13627   grep -v '^ *+' conftest.er1 >conftest.err
13628   rm -f conftest.er1
13629   cat conftest.err >&5
13630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13631   (exit $ac_status); } &&
13632          { ac_try='test -z "$ac_c_werror_flag"
13633                          || test ! -s conftest.err'
13634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13635   (eval $ac_try) 2>&5
13636   ac_status=$?
13637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13638   (exit $ac_status); }; } &&
13639          { ac_try='test -s conftest$ac_exeext'
13640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13641   (eval $ac_try) 2>&5
13642   ac_status=$?
13643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13644   (exit $ac_status); }; }; then
13645   ac_cv_search_opendir="none required"
13646 else
13647   echo "$as_me: failed program was:" >&5
13648 sed 's/^/| /' conftest.$ac_ext >&5
13649
13650 fi
13651 rm -f conftest.err conftest.$ac_objext \
13652       conftest$ac_exeext conftest.$ac_ext
13653 if test "$ac_cv_search_opendir" = no; then
13654   for ac_lib in x; do
13655     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13656     cat >conftest.$ac_ext <<_ACEOF
13657 /* confdefs.h.  */
13658 _ACEOF
13659 cat confdefs.h >>conftest.$ac_ext
13660 cat >>conftest.$ac_ext <<_ACEOF
13661 /* end confdefs.h.  */
13662
13663 /* Override any gcc2 internal prototype to avoid an error.  */
13664 #ifdef __cplusplus
13665 extern "C"
13666 #endif
13667 /* We use char because int might match the return type of a gcc2
13668    builtin and then its argument prototype would still apply.  */
13669 char opendir ();
13670 int
13671 main ()
13672 {
13673 opendir ();
13674   ;
13675   return 0;
13676 }
13677 _ACEOF
13678 rm -f conftest.$ac_objext conftest$ac_exeext
13679 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13680   (eval $ac_link) 2>conftest.er1
13681   ac_status=$?
13682   grep -v '^ *+' conftest.er1 >conftest.err
13683   rm -f conftest.er1
13684   cat conftest.err >&5
13685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13686   (exit $ac_status); } &&
13687          { ac_try='test -z "$ac_c_werror_flag"
13688                          || test ! -s conftest.err'
13689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13690   (eval $ac_try) 2>&5
13691   ac_status=$?
13692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13693   (exit $ac_status); }; } &&
13694          { ac_try='test -s conftest$ac_exeext'
13695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13696   (eval $ac_try) 2>&5
13697   ac_status=$?
13698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13699   (exit $ac_status); }; }; then
13700   ac_cv_search_opendir="-l$ac_lib"
13701 break
13702 else
13703   echo "$as_me: failed program was:" >&5
13704 sed 's/^/| /' conftest.$ac_ext >&5
13705
13706 fi
13707 rm -f conftest.err conftest.$ac_objext \
13708       conftest$ac_exeext conftest.$ac_ext
13709   done
13710 fi
13711 LIBS=$ac_func_search_save_LIBS
13712 fi
13713 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13714 echo "${ECHO_T}$ac_cv_search_opendir" >&6
13715 if test "$ac_cv_search_opendir" != no; then
13716   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
13717
13718 fi
13719
13720 fi
13721
13722 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
13723 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
13724 if test "${ac_cv_header_sys_wait_h+set}" = set; then
13725   echo $ECHO_N "(cached) $ECHO_C" >&6
13726 else
13727   cat >conftest.$ac_ext <<_ACEOF
13728 /* confdefs.h.  */
13729 _ACEOF
13730 cat confdefs.h >>conftest.$ac_ext
13731 cat >>conftest.$ac_ext <<_ACEOF
13732 /* end confdefs.h.  */
13733 #include <sys/types.h>
13734 #include <sys/wait.h>
13735 #ifndef WEXITSTATUS
13736 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
13737 #endif
13738 #ifndef WIFEXITED
13739 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
13740 #endif
13741
13742 int
13743 main ()
13744 {
13745   int s;
13746   wait (&s);
13747   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
13748   ;
13749   return 0;
13750 }
13751 _ACEOF
13752 rm -f conftest.$ac_objext
13753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13754   (eval $ac_compile) 2>conftest.er1
13755   ac_status=$?
13756   grep -v '^ *+' conftest.er1 >conftest.err
13757   rm -f conftest.er1
13758   cat conftest.err >&5
13759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13760   (exit $ac_status); } &&
13761          { ac_try='test -z "$ac_c_werror_flag"
13762                          || test ! -s conftest.err'
13763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13764   (eval $ac_try) 2>&5
13765   ac_status=$?
13766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13767   (exit $ac_status); }; } &&
13768          { ac_try='test -s conftest.$ac_objext'
13769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13770   (eval $ac_try) 2>&5
13771   ac_status=$?
13772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13773   (exit $ac_status); }; }; then
13774   ac_cv_header_sys_wait_h=yes
13775 else
13776   echo "$as_me: failed program was:" >&5
13777 sed 's/^/| /' conftest.$ac_ext >&5
13778
13779 ac_cv_header_sys_wait_h=no
13780 fi
13781 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13782 fi
13783 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
13784 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
13785 if test $ac_cv_header_sys_wait_h = yes; then
13786
13787 cat >>confdefs.h <<\_ACEOF
13788 #define HAVE_SYS_WAIT_H 1
13789 _ACEOF
13790
13791 fi
13792
13793 echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
13794 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6
13795 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
13796   echo $ECHO_N "(cached) $ECHO_C" >&6
13797 else
13798   cat >conftest.$ac_ext <<_ACEOF
13799 /* confdefs.h.  */
13800 _ACEOF
13801 cat confdefs.h >>conftest.$ac_ext
13802 cat >>conftest.$ac_ext <<_ACEOF
13803 /* end confdefs.h.  */
13804 #include <sys/types.h>
13805 #include <termios.h>
13806 #ifdef TIOCGWINSZ
13807   yes
13808 #endif
13809
13810 _ACEOF
13811 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13812   $EGREP "yes" >/dev/null 2>&1; then
13813   ac_cv_sys_tiocgwinsz_in_termios_h=yes
13814 else
13815   ac_cv_sys_tiocgwinsz_in_termios_h=no
13816 fi
13817 rm -f conftest*
13818
13819 fi
13820 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
13821 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6
13822
13823 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
13824   echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
13825 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6
13826 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
13827   echo $ECHO_N "(cached) $ECHO_C" >&6
13828 else
13829   cat >conftest.$ac_ext <<_ACEOF
13830 /* confdefs.h.  */
13831 _ACEOF
13832 cat confdefs.h >>conftest.$ac_ext
13833 cat >>conftest.$ac_ext <<_ACEOF
13834 /* end confdefs.h.  */
13835 #include <sys/types.h>
13836 #include <sys/ioctl.h>
13837 #ifdef TIOCGWINSZ
13838   yes
13839 #endif
13840
13841 _ACEOF
13842 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13843   $EGREP "yes" >/dev/null 2>&1; then
13844   ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
13845 else
13846   ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
13847 fi
13848 rm -f conftest*
13849
13850 fi
13851 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
13852 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6
13853
13854   if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
13855
13856 cat >>confdefs.h <<\_ACEOF
13857 #define GWINSZ_IN_SYS_IOCTL 1
13858 _ACEOF
13859
13860   fi
13861 fi
13862
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 for ac_header in \
13912         arpa/inet.h             \
13913         arpa/nameser.h          \
13914         assert.h                \
13915         bits/types.h            \
13916         conio.h                 \
13917         crypt.h                 \
13918         direct.h                \
13919         errno.h                 \
13920         fcntl.h                 \
13921         filio.h                 \
13922         getopt.h                \
13923         grp.h                   \
13924         io.h                    \
13925         libutil.h               \
13926         limits.h                \
13927         locale.h                \
13928         netinet/tcp.h           \
13929         malloc.h                \
13930         memory.h                \
13931         psap.h                  \
13932         pwd.h                   \
13933         process.h               \
13934         sgtty.h                 \
13935         shadow.h                \
13936         stddef.h                \
13937         string.h                \
13938         strings.h               \
13939         sysexits.h              \
13940         sys/file.h              \
13941         sys/filio.h             \
13942         sys/errno.h             \
13943         sys/ioctl.h             \
13944         sys/param.h             \
13945         sys/resource.h          \
13946         sys/select.h            \
13947         sys/socket.h            \
13948         sys/stat.h              \
13949         sys/syslog.h            \
13950         sys/time.h              \
13951         sys/types.h             \
13952         sys/uio.h               \
13953         syslog.h                \
13954         termios.h               \
13955         unistd.h                \
13956         utime.h                 \
13957         winsock.h               \
13958         winsock2.h              \
13959
13960 do
13961 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13962 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13963   echo "$as_me:$LINENO: checking for $ac_header" >&5
13964 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13965 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13966   echo $ECHO_N "(cached) $ECHO_C" >&6
13967 fi
13968 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13969 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13970 else
13971   # Is the header compilable?
13972 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13973 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13974 cat >conftest.$ac_ext <<_ACEOF
13975 /* confdefs.h.  */
13976 _ACEOF
13977 cat confdefs.h >>conftest.$ac_ext
13978 cat >>conftest.$ac_ext <<_ACEOF
13979 /* end confdefs.h.  */
13980 $ac_includes_default
13981 #include <$ac_header>
13982 _ACEOF
13983 rm -f conftest.$ac_objext
13984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13985   (eval $ac_compile) 2>conftest.er1
13986   ac_status=$?
13987   grep -v '^ *+' conftest.er1 >conftest.err
13988   rm -f conftest.er1
13989   cat conftest.err >&5
13990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13991   (exit $ac_status); } &&
13992          { ac_try='test -z "$ac_c_werror_flag"
13993                          || test ! -s conftest.err'
13994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13995   (eval $ac_try) 2>&5
13996   ac_status=$?
13997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13998   (exit $ac_status); }; } &&
13999          { ac_try='test -s conftest.$ac_objext'
14000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14001   (eval $ac_try) 2>&5
14002   ac_status=$?
14003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14004   (exit $ac_status); }; }; then
14005   ac_header_compiler=yes
14006 else
14007   echo "$as_me: failed program was:" >&5
14008 sed 's/^/| /' conftest.$ac_ext >&5
14009
14010 ac_header_compiler=no
14011 fi
14012 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14013 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14014 echo "${ECHO_T}$ac_header_compiler" >&6
14015
14016 # Is the header present?
14017 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14018 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14019 cat >conftest.$ac_ext <<_ACEOF
14020 /* confdefs.h.  */
14021 _ACEOF
14022 cat confdefs.h >>conftest.$ac_ext
14023 cat >>conftest.$ac_ext <<_ACEOF
14024 /* end confdefs.h.  */
14025 #include <$ac_header>
14026 _ACEOF
14027 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14028   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14029   ac_status=$?
14030   grep -v '^ *+' conftest.er1 >conftest.err
14031   rm -f conftest.er1
14032   cat conftest.err >&5
14033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14034   (exit $ac_status); } >/dev/null; then
14035   if test -s conftest.err; then
14036     ac_cpp_err=$ac_c_preproc_warn_flag
14037     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14038   else
14039     ac_cpp_err=
14040   fi
14041 else
14042   ac_cpp_err=yes
14043 fi
14044 if test -z "$ac_cpp_err"; then
14045   ac_header_preproc=yes
14046 else
14047   echo "$as_me: failed program was:" >&5
14048 sed 's/^/| /' conftest.$ac_ext >&5
14049
14050   ac_header_preproc=no
14051 fi
14052 rm -f conftest.err conftest.$ac_ext
14053 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14054 echo "${ECHO_T}$ac_header_preproc" >&6
14055
14056 # So?  What about this header?
14057 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14058   yes:no: )
14059     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14060 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14061     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14062 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14063     ac_header_preproc=yes
14064     ;;
14065   no:yes:* )
14066     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14067 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14068     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14069 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14070     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14071 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14072     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14073 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14074     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14075 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14076     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14077 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14078     (
14079       cat <<\_ASBOX
14080 ## ------------------------------------------ ##
14081 ## Report this to the AC_PACKAGE_NAME lists.  ##
14082 ## ------------------------------------------ ##
14083 _ASBOX
14084     ) |
14085       sed "s/^/$as_me: WARNING:     /" >&2
14086     ;;
14087 esac
14088 echo "$as_me:$LINENO: checking for $ac_header" >&5
14089 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14090 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14091   echo $ECHO_N "(cached) $ECHO_C" >&6
14092 else
14093   eval "$as_ac_Header=\$ac_header_preproc"
14094 fi
14095 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14096 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14097
14098 fi
14099 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14100   cat >>confdefs.h <<_ACEOF
14101 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14102 _ACEOF
14103
14104 fi
14105
14106 done
14107
14108
14109
14110 for ac_header in resolv.h
14111 do
14112 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14113 echo "$as_me:$LINENO: checking for $ac_header" >&5
14114 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14115 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14116   echo $ECHO_N "(cached) $ECHO_C" >&6
14117 else
14118   cat >conftest.$ac_ext <<_ACEOF
14119 /* confdefs.h.  */
14120 _ACEOF
14121 cat confdefs.h >>conftest.$ac_ext
14122 cat >>conftest.$ac_ext <<_ACEOF
14123 /* end confdefs.h.  */
14124 $ac_includes_default
14125 #include <netinet/in.h>
14126
14127
14128 #include <$ac_header>
14129 _ACEOF
14130 rm -f conftest.$ac_objext
14131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14132   (eval $ac_compile) 2>conftest.er1
14133   ac_status=$?
14134   grep -v '^ *+' conftest.er1 >conftest.err
14135   rm -f conftest.er1
14136   cat conftest.err >&5
14137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14138   (exit $ac_status); } &&
14139          { ac_try='test -z "$ac_c_werror_flag"
14140                          || test ! -s conftest.err'
14141   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14142   (eval $ac_try) 2>&5
14143   ac_status=$?
14144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14145   (exit $ac_status); }; } &&
14146          { ac_try='test -s conftest.$ac_objext'
14147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14148   (eval $ac_try) 2>&5
14149   ac_status=$?
14150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14151   (exit $ac_status); }; }; then
14152   eval "$as_ac_Header=yes"
14153 else
14154   echo "$as_me: failed program was:" >&5
14155 sed 's/^/| /' conftest.$ac_ext >&5
14156
14157 eval "$as_ac_Header=no"
14158 fi
14159 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14160 fi
14161 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14162 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14163 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14164   cat >>confdefs.h <<_ACEOF
14165 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14166 _ACEOF
14167
14168 fi
14169
14170 done
14171
14172
14173
14174 for ac_header in sys/ucred.h
14175 do
14176 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14177 echo "$as_me:$LINENO: checking for $ac_header" >&5
14178 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14179 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14180   echo $ECHO_N "(cached) $ECHO_C" >&6
14181 else
14182   cat >conftest.$ac_ext <<_ACEOF
14183 /* confdefs.h.  */
14184 _ACEOF
14185 cat confdefs.h >>conftest.$ac_ext
14186 cat >>conftest.$ac_ext <<_ACEOF
14187 /* end confdefs.h.  */
14188 $ac_includes_default
14189 #ifdef HAVE_SYS_PARAM_H
14190 #include <sys/param.h>
14191 #endif
14192
14193
14194 #include <$ac_header>
14195 _ACEOF
14196 rm -f conftest.$ac_objext
14197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14198   (eval $ac_compile) 2>conftest.er1
14199   ac_status=$?
14200   grep -v '^ *+' conftest.er1 >conftest.err
14201   rm -f conftest.er1
14202   cat conftest.err >&5
14203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14204   (exit $ac_status); } &&
14205          { ac_try='test -z "$ac_c_werror_flag"
14206                          || test ! -s conftest.err'
14207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14208   (eval $ac_try) 2>&5
14209   ac_status=$?
14210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14211   (exit $ac_status); }; } &&
14212          { ac_try='test -s conftest.$ac_objext'
14213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14214   (eval $ac_try) 2>&5
14215   ac_status=$?
14216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14217   (exit $ac_status); }; }; then
14218   eval "$as_ac_Header=yes"
14219 else
14220   echo "$as_me: failed program was:" >&5
14221 sed 's/^/| /' conftest.$ac_ext >&5
14222
14223 eval "$as_ac_Header=no"
14224 fi
14225 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14226 fi
14227 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14228 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14229 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14230   cat >>confdefs.h <<_ACEOF
14231 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14232 _ACEOF
14233
14234 fi
14235
14236 done
14237
14238
14239
14240
14241
14242 for ac_func in sigaction sigset
14243 do
14244 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14245 echo "$as_me:$LINENO: checking for $ac_func" >&5
14246 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14247 if eval "test \"\${$as_ac_var+set}\" = set"; then
14248   echo $ECHO_N "(cached) $ECHO_C" >&6
14249 else
14250   cat >conftest.$ac_ext <<_ACEOF
14251 /* confdefs.h.  */
14252 _ACEOF
14253 cat confdefs.h >>conftest.$ac_ext
14254 cat >>conftest.$ac_ext <<_ACEOF
14255 /* end confdefs.h.  */
14256 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14257    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14258 #define $ac_func innocuous_$ac_func
14259
14260 /* System header to define __stub macros and hopefully few prototypes,
14261     which can conflict with char $ac_func (); below.
14262     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14263     <limits.h> exists even on freestanding compilers.  */
14264
14265 #ifdef __STDC__
14266 # include <limits.h>
14267 #else
14268 # include <assert.h>
14269 #endif
14270
14271 #undef $ac_func
14272
14273 /* Override any gcc2 internal prototype to avoid an error.  */
14274 #ifdef __cplusplus
14275 extern "C"
14276 {
14277 #endif
14278 /* We use char because int might match the return type of a gcc2
14279    builtin and then its argument prototype would still apply.  */
14280 char $ac_func ();
14281 /* The GNU C library defines this for functions which it implements
14282     to always fail with ENOSYS.  Some functions are actually named
14283     something starting with __ and the normal name is an alias.  */
14284 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14285 choke me
14286 #else
14287 char (*f) () = $ac_func;
14288 #endif
14289 #ifdef __cplusplus
14290 }
14291 #endif
14292
14293 int
14294 main ()
14295 {
14296 return f != $ac_func;
14297   ;
14298   return 0;
14299 }
14300 _ACEOF
14301 rm -f conftest.$ac_objext conftest$ac_exeext
14302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14303   (eval $ac_link) 2>conftest.er1
14304   ac_status=$?
14305   grep -v '^ *+' conftest.er1 >conftest.err
14306   rm -f conftest.er1
14307   cat conftest.err >&5
14308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14309   (exit $ac_status); } &&
14310          { ac_try='test -z "$ac_c_werror_flag"
14311                          || test ! -s conftest.err'
14312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14313   (eval $ac_try) 2>&5
14314   ac_status=$?
14315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14316   (exit $ac_status); }; } &&
14317          { ac_try='test -s conftest$ac_exeext'
14318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14319   (eval $ac_try) 2>&5
14320   ac_status=$?
14321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14322   (exit $ac_status); }; }; then
14323   eval "$as_ac_var=yes"
14324 else
14325   echo "$as_me: failed program was:" >&5
14326 sed 's/^/| /' conftest.$ac_ext >&5
14327
14328 eval "$as_ac_var=no"
14329 fi
14330 rm -f conftest.err conftest.$ac_objext \
14331       conftest$ac_exeext conftest.$ac_ext
14332 fi
14333 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14334 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14335 if test `eval echo '${'$as_ac_var'}'` = yes; then
14336   cat >>confdefs.h <<_ACEOF
14337 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14338 _ACEOF
14339
14340 fi
14341 done
14342
14343
14344 if test $ac_cv_func_sigaction = no && test $ac_cv_func_sigaction = no ; then
14345
14346 echo "$as_me:$LINENO: checking for sigset in -lV3" >&5
14347 echo $ECHO_N "checking for sigset in -lV3... $ECHO_C" >&6
14348 if test "${ac_cv_lib_V3_sigset+set}" = set; then
14349   echo $ECHO_N "(cached) $ECHO_C" >&6
14350 else
14351   ac_check_lib_save_LIBS=$LIBS
14352 LIBS="-lV3  $LIBS"
14353 cat >conftest.$ac_ext <<_ACEOF
14354 /* confdefs.h.  */
14355 _ACEOF
14356 cat confdefs.h >>conftest.$ac_ext
14357 cat >>conftest.$ac_ext <<_ACEOF
14358 /* end confdefs.h.  */
14359
14360 /* Override any gcc2 internal prototype to avoid an error.  */
14361 #ifdef __cplusplus
14362 extern "C"
14363 #endif
14364 /* We use char because int might match the return type of a gcc2
14365    builtin and then its argument prototype would still apply.  */
14366 char sigset ();
14367 int
14368 main ()
14369 {
14370 sigset ();
14371   ;
14372   return 0;
14373 }
14374 _ACEOF
14375 rm -f conftest.$ac_objext conftest$ac_exeext
14376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14377   (eval $ac_link) 2>conftest.er1
14378   ac_status=$?
14379   grep -v '^ *+' conftest.er1 >conftest.err
14380   rm -f conftest.er1
14381   cat conftest.err >&5
14382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14383   (exit $ac_status); } &&
14384          { ac_try='test -z "$ac_c_werror_flag"
14385                          || test ! -s conftest.err'
14386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14387   (eval $ac_try) 2>&5
14388   ac_status=$?
14389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14390   (exit $ac_status); }; } &&
14391          { ac_try='test -s conftest$ac_exeext'
14392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14393   (eval $ac_try) 2>&5
14394   ac_status=$?
14395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14396   (exit $ac_status); }; }; then
14397   ac_cv_lib_V3_sigset=yes
14398 else
14399   echo "$as_me: failed program was:" >&5
14400 sed 's/^/| /' conftest.$ac_ext >&5
14401
14402 ac_cv_lib_V3_sigset=no
14403 fi
14404 rm -f conftest.err conftest.$ac_objext \
14405       conftest$ac_exeext conftest.$ac_ext
14406 LIBS=$ac_check_lib_save_LIBS
14407 fi
14408 echo "$as_me:$LINENO: result: $ac_cv_lib_V3_sigset" >&5
14409 echo "${ECHO_T}$ac_cv_lib_V3_sigset" >&6
14410 if test $ac_cv_lib_V3_sigset = yes; then
14411   cat >>confdefs.h <<_ACEOF
14412 #define HAVE_LIBV3 1
14413 _ACEOF
14414
14415   LIBS="-lV3 $LIBS"
14416
14417 fi
14418
14419 fi
14420
14421 if test "$ac_cv_cygwin" != yes && test "$ac_cv_header_winsock_h" = yes; then
14422 echo "$as_me:$LINENO: checking for winsock" >&5
14423 echo $ECHO_N "checking for winsock... $ECHO_C" >&6
14424 if test "${ol_cv_winsock+set}" = set; then
14425   echo $ECHO_N "(cached) $ECHO_C" >&6
14426 else
14427   save_LIBS="$LIBS"
14428 for curlib in ws2_32 wsock32; do
14429         LIBS="$LIBS -l$curlib"
14430         cat >conftest.$ac_ext <<_ACEOF
14431 /* confdefs.h.  */
14432 _ACEOF
14433 cat confdefs.h >>conftest.$ac_ext
14434 cat >>conftest.$ac_ext <<_ACEOF
14435 /* end confdefs.h.  */
14436 #include <winsock.h>
14437
14438 int
14439 main ()
14440 {
14441
14442                         socket(0,0,0);
14443                         select(0,NULL,NULL,NULL,NULL);
14444                         closesocket(0);
14445                         gethostname(NULL,0);
14446
14447   ;
14448   return 0;
14449 }
14450 _ACEOF
14451 rm -f conftest.$ac_objext conftest$ac_exeext
14452 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14453   (eval $ac_link) 2>conftest.er1
14454   ac_status=$?
14455   grep -v '^ *+' conftest.er1 >conftest.err
14456   rm -f conftest.er1
14457   cat conftest.err >&5
14458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14459   (exit $ac_status); } &&
14460          { ac_try='test -z "$ac_c_werror_flag"
14461                          || test ! -s conftest.err'
14462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14463   (eval $ac_try) 2>&5
14464   ac_status=$?
14465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14466   (exit $ac_status); }; } &&
14467          { ac_try='test -s conftest$ac_exeext'
14468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14469   (eval $ac_try) 2>&5
14470   ac_status=$?
14471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14472   (exit $ac_status); }; }; then
14473   ol_cv_winsock=yes
14474 else
14475   echo "$as_me: failed program was:" >&5
14476 sed 's/^/| /' conftest.$ac_ext >&5
14477
14478 ol_cv_winsock=no
14479 fi
14480 rm -f conftest.err conftest.$ac_objext \
14481       conftest$ac_exeext conftest.$ac_ext
14482
14483         if test $ol_cv_winsock = yes; then
14484
14485 cat >>confdefs.h <<\_ACEOF
14486 #define HAVE_WINSOCK 1
14487 _ACEOF
14488
14489                 ac_cv_func_socket=yes
14490                 ac_cv_func_select=yes
14491                 ac_cv_func_closesocket=yes
14492                 ac_cv_func_gethostname=yes
14493                 if test $curlib = ws2_32; then
14494                         ol_cv_winsock=winsock2
14495
14496 cat >>confdefs.h <<\_ACEOF
14497 #define HAVE_WINSOCK2 1
14498 _ACEOF
14499
14500                 fi
14501                 break
14502         fi
14503         LIBS="$save_LIBS"
14504 done
14505 fi
14506 echo "$as_me:$LINENO: result: $ol_cv_winsock" >&5
14507 echo "${ECHO_T}$ol_cv_winsock" >&6
14508 fi
14509
14510
14511 echo "$as_me:$LINENO: checking for socket" >&5
14512 echo $ECHO_N "checking for socket... $ECHO_C" >&6
14513 if test "${ac_cv_func_socket+set}" = set; then
14514   echo $ECHO_N "(cached) $ECHO_C" >&6
14515 else
14516   cat >conftest.$ac_ext <<_ACEOF
14517 /* confdefs.h.  */
14518 _ACEOF
14519 cat confdefs.h >>conftest.$ac_ext
14520 cat >>conftest.$ac_ext <<_ACEOF
14521 /* end confdefs.h.  */
14522 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
14523    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14524 #define socket innocuous_socket
14525
14526 /* System header to define __stub macros and hopefully few prototypes,
14527     which can conflict with char socket (); below.
14528     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14529     <limits.h> exists even on freestanding compilers.  */
14530
14531 #ifdef __STDC__
14532 # include <limits.h>
14533 #else
14534 # include <assert.h>
14535 #endif
14536
14537 #undef socket
14538
14539 /* Override any gcc2 internal prototype to avoid an error.  */
14540 #ifdef __cplusplus
14541 extern "C"
14542 {
14543 #endif
14544 /* We use char because int might match the return type of a gcc2
14545    builtin and then its argument prototype would still apply.  */
14546 char socket ();
14547 /* The GNU C library defines this for functions which it implements
14548     to always fail with ENOSYS.  Some functions are actually named
14549     something starting with __ and the normal name is an alias.  */
14550 #if defined (__stub_socket) || defined (__stub___socket)
14551 choke me
14552 #else
14553 char (*f) () = socket;
14554 #endif
14555 #ifdef __cplusplus
14556 }
14557 #endif
14558
14559 int
14560 main ()
14561 {
14562 return f != socket;
14563   ;
14564   return 0;
14565 }
14566 _ACEOF
14567 rm -f conftest.$ac_objext conftest$ac_exeext
14568 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14569   (eval $ac_link) 2>conftest.er1
14570   ac_status=$?
14571   grep -v '^ *+' conftest.er1 >conftest.err
14572   rm -f conftest.er1
14573   cat conftest.err >&5
14574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14575   (exit $ac_status); } &&
14576          { ac_try='test -z "$ac_c_werror_flag"
14577                          || test ! -s conftest.err'
14578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14579   (eval $ac_try) 2>&5
14580   ac_status=$?
14581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14582   (exit $ac_status); }; } &&
14583          { ac_try='test -s conftest$ac_exeext'
14584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14585   (eval $ac_try) 2>&5
14586   ac_status=$?
14587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14588   (exit $ac_status); }; }; then
14589   ac_cv_func_socket=yes
14590 else
14591   echo "$as_me: failed program was:" >&5
14592 sed 's/^/| /' conftest.$ac_ext >&5
14593
14594 ac_cv_func_socket=no
14595 fi
14596 rm -f conftest.err conftest.$ac_objext \
14597       conftest$ac_exeext conftest.$ac_ext
14598 fi
14599 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
14600 echo "${ECHO_T}$ac_cv_func_socket" >&6
14601 if test $ac_cv_func_socket = yes; then
14602   :
14603 else
14604
14605
14606 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
14607 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
14608 if test "${ac_cv_lib_socket_main+set}" = set; then
14609   echo $ECHO_N "(cached) $ECHO_C" >&6
14610 else
14611   ac_check_lib_save_LIBS=$LIBS
14612 LIBS="-lsocket  $LIBS"
14613 cat >conftest.$ac_ext <<_ACEOF
14614 /* confdefs.h.  */
14615 _ACEOF
14616 cat confdefs.h >>conftest.$ac_ext
14617 cat >>conftest.$ac_ext <<_ACEOF
14618 /* end confdefs.h.  */
14619
14620
14621 int
14622 main ()
14623 {
14624 main ();
14625   ;
14626   return 0;
14627 }
14628 _ACEOF
14629 rm -f conftest.$ac_objext conftest$ac_exeext
14630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14631   (eval $ac_link) 2>conftest.er1
14632   ac_status=$?
14633   grep -v '^ *+' conftest.er1 >conftest.err
14634   rm -f conftest.er1
14635   cat conftest.err >&5
14636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14637   (exit $ac_status); } &&
14638          { ac_try='test -z "$ac_c_werror_flag"
14639                          || test ! -s conftest.err'
14640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14641   (eval $ac_try) 2>&5
14642   ac_status=$?
14643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14644   (exit $ac_status); }; } &&
14645          { ac_try='test -s conftest$ac_exeext'
14646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14647   (eval $ac_try) 2>&5
14648   ac_status=$?
14649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14650   (exit $ac_status); }; }; then
14651   ac_cv_lib_socket_main=yes
14652 else
14653   echo "$as_me: failed program was:" >&5
14654 sed 's/^/| /' conftest.$ac_ext >&5
14655
14656 ac_cv_lib_socket_main=no
14657 fi
14658 rm -f conftest.err conftest.$ac_objext \
14659       conftest$ac_exeext conftest.$ac_ext
14660 LIBS=$ac_check_lib_save_LIBS
14661 fi
14662 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
14663 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
14664 if test $ac_cv_lib_socket_main = yes; then
14665   cat >>confdefs.h <<_ACEOF
14666 #define HAVE_LIBSOCKET 1
14667 _ACEOF
14668
14669   LIBS="-lsocket $LIBS"
14670
14671 fi
14672
14673
14674 echo "$as_me:$LINENO: checking for main in -lnet" >&5
14675 echo $ECHO_N "checking for main in -lnet... $ECHO_C" >&6
14676 if test "${ac_cv_lib_net_main+set}" = set; then
14677   echo $ECHO_N "(cached) $ECHO_C" >&6
14678 else
14679   ac_check_lib_save_LIBS=$LIBS
14680 LIBS="-lnet  $LIBS"
14681 cat >conftest.$ac_ext <<_ACEOF
14682 /* confdefs.h.  */
14683 _ACEOF
14684 cat confdefs.h >>conftest.$ac_ext
14685 cat >>conftest.$ac_ext <<_ACEOF
14686 /* end confdefs.h.  */
14687
14688
14689 int
14690 main ()
14691 {
14692 main ();
14693   ;
14694   return 0;
14695 }
14696 _ACEOF
14697 rm -f conftest.$ac_objext conftest$ac_exeext
14698 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14699   (eval $ac_link) 2>conftest.er1
14700   ac_status=$?
14701   grep -v '^ *+' conftest.er1 >conftest.err
14702   rm -f conftest.er1
14703   cat conftest.err >&5
14704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14705   (exit $ac_status); } &&
14706          { ac_try='test -z "$ac_c_werror_flag"
14707                          || test ! -s conftest.err'
14708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14709   (eval $ac_try) 2>&5
14710   ac_status=$?
14711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14712   (exit $ac_status); }; } &&
14713          { ac_try='test -s conftest$ac_exeext'
14714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14715   (eval $ac_try) 2>&5
14716   ac_status=$?
14717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14718   (exit $ac_status); }; }; then
14719   ac_cv_lib_net_main=yes
14720 else
14721   echo "$as_me: failed program was:" >&5
14722 sed 's/^/| /' conftest.$ac_ext >&5
14723
14724 ac_cv_lib_net_main=no
14725 fi
14726 rm -f conftest.err conftest.$ac_objext \
14727       conftest$ac_exeext conftest.$ac_ext
14728 LIBS=$ac_check_lib_save_LIBS
14729 fi
14730 echo "$as_me:$LINENO: result: $ac_cv_lib_net_main" >&5
14731 echo "${ECHO_T}$ac_cv_lib_net_main" >&6
14732 if test $ac_cv_lib_net_main = yes; then
14733   cat >>confdefs.h <<_ACEOF
14734 #define HAVE_LIBNET 1
14735 _ACEOF
14736
14737   LIBS="-lnet $LIBS"
14738
14739 fi
14740
14741
14742 echo "$as_me:$LINENO: checking for main in -lnsl_s" >&5
14743 echo $ECHO_N "checking for main in -lnsl_s... $ECHO_C" >&6
14744 if test "${ac_cv_lib_nsl_s_main+set}" = set; then
14745   echo $ECHO_N "(cached) $ECHO_C" >&6
14746 else
14747   ac_check_lib_save_LIBS=$LIBS
14748 LIBS="-lnsl_s  $LIBS"
14749 cat >conftest.$ac_ext <<_ACEOF
14750 /* confdefs.h.  */
14751 _ACEOF
14752 cat confdefs.h >>conftest.$ac_ext
14753 cat >>conftest.$ac_ext <<_ACEOF
14754 /* end confdefs.h.  */
14755
14756
14757 int
14758 main ()
14759 {
14760 main ();
14761   ;
14762   return 0;
14763 }
14764 _ACEOF
14765 rm -f conftest.$ac_objext conftest$ac_exeext
14766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14767   (eval $ac_link) 2>conftest.er1
14768   ac_status=$?
14769   grep -v '^ *+' conftest.er1 >conftest.err
14770   rm -f conftest.er1
14771   cat conftest.err >&5
14772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14773   (exit $ac_status); } &&
14774          { ac_try='test -z "$ac_c_werror_flag"
14775                          || test ! -s conftest.err'
14776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14777   (eval $ac_try) 2>&5
14778   ac_status=$?
14779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14780   (exit $ac_status); }; } &&
14781          { ac_try='test -s conftest$ac_exeext'
14782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14783   (eval $ac_try) 2>&5
14784   ac_status=$?
14785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14786   (exit $ac_status); }; }; then
14787   ac_cv_lib_nsl_s_main=yes
14788 else
14789   echo "$as_me: failed program was:" >&5
14790 sed 's/^/| /' conftest.$ac_ext >&5
14791
14792 ac_cv_lib_nsl_s_main=no
14793 fi
14794 rm -f conftest.err conftest.$ac_objext \
14795       conftest$ac_exeext conftest.$ac_ext
14796 LIBS=$ac_check_lib_save_LIBS
14797 fi
14798 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_s_main" >&5
14799 echo "${ECHO_T}$ac_cv_lib_nsl_s_main" >&6
14800 if test $ac_cv_lib_nsl_s_main = yes; then
14801   cat >>confdefs.h <<_ACEOF
14802 #define HAVE_LIBNSL_S 1
14803 _ACEOF
14804
14805   LIBS="-lnsl_s $LIBS"
14806
14807 fi
14808
14809
14810 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
14811 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
14812 if test "${ac_cv_lib_nsl_main+set}" = set; then
14813   echo $ECHO_N "(cached) $ECHO_C" >&6
14814 else
14815   ac_check_lib_save_LIBS=$LIBS
14816 LIBS="-lnsl  $LIBS"
14817 cat >conftest.$ac_ext <<_ACEOF
14818 /* confdefs.h.  */
14819 _ACEOF
14820 cat confdefs.h >>conftest.$ac_ext
14821 cat >>conftest.$ac_ext <<_ACEOF
14822 /* end confdefs.h.  */
14823
14824
14825 int
14826 main ()
14827 {
14828 main ();
14829   ;
14830   return 0;
14831 }
14832 _ACEOF
14833 rm -f conftest.$ac_objext conftest$ac_exeext
14834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14835   (eval $ac_link) 2>conftest.er1
14836   ac_status=$?
14837   grep -v '^ *+' conftest.er1 >conftest.err
14838   rm -f conftest.er1
14839   cat conftest.err >&5
14840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14841   (exit $ac_status); } &&
14842          { ac_try='test -z "$ac_c_werror_flag"
14843                          || test ! -s conftest.err'
14844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14845   (eval $ac_try) 2>&5
14846   ac_status=$?
14847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14848   (exit $ac_status); }; } &&
14849          { ac_try='test -s conftest$ac_exeext'
14850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14851   (eval $ac_try) 2>&5
14852   ac_status=$?
14853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14854   (exit $ac_status); }; }; then
14855   ac_cv_lib_nsl_main=yes
14856 else
14857   echo "$as_me: failed program was:" >&5
14858 sed 's/^/| /' conftest.$ac_ext >&5
14859
14860 ac_cv_lib_nsl_main=no
14861 fi
14862 rm -f conftest.err conftest.$ac_objext \
14863       conftest$ac_exeext conftest.$ac_ext
14864 LIBS=$ac_check_lib_save_LIBS
14865 fi
14866 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
14867 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
14868 if test $ac_cv_lib_nsl_main = yes; then
14869   cat >>confdefs.h <<_ACEOF
14870 #define HAVE_LIBNSL 1
14871 _ACEOF
14872
14873   LIBS="-lnsl $LIBS"
14874
14875 fi
14876
14877
14878 echo "$as_me:$LINENO: checking for socket in -linet" >&5
14879 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
14880 if test "${ac_cv_lib_inet_socket+set}" = set; then
14881   echo $ECHO_N "(cached) $ECHO_C" >&6
14882 else
14883   ac_check_lib_save_LIBS=$LIBS
14884 LIBS="-linet  $LIBS"
14885 cat >conftest.$ac_ext <<_ACEOF
14886 /* confdefs.h.  */
14887 _ACEOF
14888 cat confdefs.h >>conftest.$ac_ext
14889 cat >>conftest.$ac_ext <<_ACEOF
14890 /* end confdefs.h.  */
14891
14892 /* Override any gcc2 internal prototype to avoid an error.  */
14893 #ifdef __cplusplus
14894 extern "C"
14895 #endif
14896 /* We use char because int might match the return type of a gcc2
14897    builtin and then its argument prototype would still apply.  */
14898 char socket ();
14899 int
14900 main ()
14901 {
14902 socket ();
14903   ;
14904   return 0;
14905 }
14906 _ACEOF
14907 rm -f conftest.$ac_objext conftest$ac_exeext
14908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14909   (eval $ac_link) 2>conftest.er1
14910   ac_status=$?
14911   grep -v '^ *+' conftest.er1 >conftest.err
14912   rm -f conftest.er1
14913   cat conftest.err >&5
14914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14915   (exit $ac_status); } &&
14916          { ac_try='test -z "$ac_c_werror_flag"
14917                          || test ! -s conftest.err'
14918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14919   (eval $ac_try) 2>&5
14920   ac_status=$?
14921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14922   (exit $ac_status); }; } &&
14923          { ac_try='test -s conftest$ac_exeext'
14924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14925   (eval $ac_try) 2>&5
14926   ac_status=$?
14927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14928   (exit $ac_status); }; }; then
14929   ac_cv_lib_inet_socket=yes
14930 else
14931   echo "$as_me: failed program was:" >&5
14932 sed 's/^/| /' conftest.$ac_ext >&5
14933
14934 ac_cv_lib_inet_socket=no
14935 fi
14936 rm -f conftest.err conftest.$ac_objext \
14937       conftest$ac_exeext conftest.$ac_ext
14938 LIBS=$ac_check_lib_save_LIBS
14939 fi
14940 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
14941 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
14942 if test $ac_cv_lib_inet_socket = yes; then
14943   cat >>confdefs.h <<_ACEOF
14944 #define HAVE_LIBINET 1
14945 _ACEOF
14946
14947   LIBS="-linet $LIBS"
14948
14949 fi
14950
14951
14952 echo "$as_me:$LINENO: checking for main in -lgen" >&5
14953 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
14954 if test "${ac_cv_lib_gen_main+set}" = set; then
14955   echo $ECHO_N "(cached) $ECHO_C" >&6
14956 else
14957   ac_check_lib_save_LIBS=$LIBS
14958 LIBS="-lgen  $LIBS"
14959 cat >conftest.$ac_ext <<_ACEOF
14960 /* confdefs.h.  */
14961 _ACEOF
14962 cat confdefs.h >>conftest.$ac_ext
14963 cat >>conftest.$ac_ext <<_ACEOF
14964 /* end confdefs.h.  */
14965
14966
14967 int
14968 main ()
14969 {
14970 main ();
14971   ;
14972   return 0;
14973 }
14974 _ACEOF
14975 rm -f conftest.$ac_objext conftest$ac_exeext
14976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14977   (eval $ac_link) 2>conftest.er1
14978   ac_status=$?
14979   grep -v '^ *+' conftest.er1 >conftest.err
14980   rm -f conftest.er1
14981   cat conftest.err >&5
14982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14983   (exit $ac_status); } &&
14984          { ac_try='test -z "$ac_c_werror_flag"
14985                          || test ! -s conftest.err'
14986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14987   (eval $ac_try) 2>&5
14988   ac_status=$?
14989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14990   (exit $ac_status); }; } &&
14991          { ac_try='test -s conftest$ac_exeext'
14992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14993   (eval $ac_try) 2>&5
14994   ac_status=$?
14995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14996   (exit $ac_status); }; }; then
14997   ac_cv_lib_gen_main=yes
14998 else
14999   echo "$as_me: failed program was:" >&5
15000 sed 's/^/| /' conftest.$ac_ext >&5
15001
15002 ac_cv_lib_gen_main=no
15003 fi
15004 rm -f conftest.err conftest.$ac_objext \
15005       conftest$ac_exeext conftest.$ac_ext
15006 LIBS=$ac_check_lib_save_LIBS
15007 fi
15008 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
15009 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
15010 if test $ac_cv_lib_gen_main = yes; then
15011   cat >>confdefs.h <<_ACEOF
15012 #define HAVE_LIBGEN 1
15013 _ACEOF
15014
15015   LIBS="-lgen $LIBS"
15016
15017 fi
15018
15019
15020 fi
15021
15022
15023 echo "$as_me:$LINENO: checking for select" >&5
15024 echo $ECHO_N "checking for select... $ECHO_C" >&6
15025 if test "${ac_cv_func_select+set}" = set; then
15026   echo $ECHO_N "(cached) $ECHO_C" >&6
15027 else
15028   cat >conftest.$ac_ext <<_ACEOF
15029 /* confdefs.h.  */
15030 _ACEOF
15031 cat confdefs.h >>conftest.$ac_ext
15032 cat >>conftest.$ac_ext <<_ACEOF
15033 /* end confdefs.h.  */
15034 /* Define select to an innocuous variant, in case <limits.h> declares select.
15035    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15036 #define select innocuous_select
15037
15038 /* System header to define __stub macros and hopefully few prototypes,
15039     which can conflict with char select (); below.
15040     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15041     <limits.h> exists even on freestanding compilers.  */
15042
15043 #ifdef __STDC__
15044 # include <limits.h>
15045 #else
15046 # include <assert.h>
15047 #endif
15048
15049 #undef select
15050
15051 /* Override any gcc2 internal prototype to avoid an error.  */
15052 #ifdef __cplusplus
15053 extern "C"
15054 {
15055 #endif
15056 /* We use char because int might match the return type of a gcc2
15057    builtin and then its argument prototype would still apply.  */
15058 char select ();
15059 /* The GNU C library defines this for functions which it implements
15060     to always fail with ENOSYS.  Some functions are actually named
15061     something starting with __ and the normal name is an alias.  */
15062 #if defined (__stub_select) || defined (__stub___select)
15063 choke me
15064 #else
15065 char (*f) () = select;
15066 #endif
15067 #ifdef __cplusplus
15068 }
15069 #endif
15070
15071 int
15072 main ()
15073 {
15074 return f != select;
15075   ;
15076   return 0;
15077 }
15078 _ACEOF
15079 rm -f conftest.$ac_objext conftest$ac_exeext
15080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15081   (eval $ac_link) 2>conftest.er1
15082   ac_status=$?
15083   grep -v '^ *+' conftest.er1 >conftest.err
15084   rm -f conftest.er1
15085   cat conftest.err >&5
15086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15087   (exit $ac_status); } &&
15088          { ac_try='test -z "$ac_c_werror_flag"
15089                          || test ! -s conftest.err'
15090   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15091   (eval $ac_try) 2>&5
15092   ac_status=$?
15093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15094   (exit $ac_status); }; } &&
15095          { ac_try='test -s conftest$ac_exeext'
15096   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15097   (eval $ac_try) 2>&5
15098   ac_status=$?
15099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15100   (exit $ac_status); }; }; then
15101   ac_cv_func_select=yes
15102 else
15103   echo "$as_me: failed program was:" >&5
15104 sed 's/^/| /' conftest.$ac_ext >&5
15105
15106 ac_cv_func_select=no
15107 fi
15108 rm -f conftest.err conftest.$ac_objext \
15109       conftest$ac_exeext conftest.$ac_ext
15110 fi
15111 echo "$as_me:$LINENO: result: $ac_cv_func_select" >&5
15112 echo "${ECHO_T}$ac_cv_func_select" >&6
15113 if test $ac_cv_func_select = yes; then
15114   :
15115 else
15116   { { echo "$as_me:$LINENO: error: select() required." >&5
15117 echo "$as_me: error: select() required." >&2;}
15118    { (exit 1); exit 1; }; }
15119 fi
15120
15121
15122 if test "${ac_cv_header_winsock_h}" != yes; then
15123
15124
15125 for ac_header in sys/select.h sys/socket.h
15126 do
15127 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15128 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15129   echo "$as_me:$LINENO: checking for $ac_header" >&5
15130 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15131 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15132   echo $ECHO_N "(cached) $ECHO_C" >&6
15133 fi
15134 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15135 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15136 else
15137   # Is the header compilable?
15138 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15139 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15140 cat >conftest.$ac_ext <<_ACEOF
15141 /* confdefs.h.  */
15142 _ACEOF
15143 cat confdefs.h >>conftest.$ac_ext
15144 cat >>conftest.$ac_ext <<_ACEOF
15145 /* end confdefs.h.  */
15146 $ac_includes_default
15147 #include <$ac_header>
15148 _ACEOF
15149 rm -f conftest.$ac_objext
15150 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15151   (eval $ac_compile) 2>conftest.er1
15152   ac_status=$?
15153   grep -v '^ *+' conftest.er1 >conftest.err
15154   rm -f conftest.er1
15155   cat conftest.err >&5
15156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15157   (exit $ac_status); } &&
15158          { ac_try='test -z "$ac_c_werror_flag"
15159                          || test ! -s conftest.err'
15160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15161   (eval $ac_try) 2>&5
15162   ac_status=$?
15163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15164   (exit $ac_status); }; } &&
15165          { ac_try='test -s conftest.$ac_objext'
15166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15167   (eval $ac_try) 2>&5
15168   ac_status=$?
15169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15170   (exit $ac_status); }; }; then
15171   ac_header_compiler=yes
15172 else
15173   echo "$as_me: failed program was:" >&5
15174 sed 's/^/| /' conftest.$ac_ext >&5
15175
15176 ac_header_compiler=no
15177 fi
15178 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15179 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15180 echo "${ECHO_T}$ac_header_compiler" >&6
15181
15182 # Is the header present?
15183 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15184 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15185 cat >conftest.$ac_ext <<_ACEOF
15186 /* confdefs.h.  */
15187 _ACEOF
15188 cat confdefs.h >>conftest.$ac_ext
15189 cat >>conftest.$ac_ext <<_ACEOF
15190 /* end confdefs.h.  */
15191 #include <$ac_header>
15192 _ACEOF
15193 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15194   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15195   ac_status=$?
15196   grep -v '^ *+' conftest.er1 >conftest.err
15197   rm -f conftest.er1
15198   cat conftest.err >&5
15199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15200   (exit $ac_status); } >/dev/null; then
15201   if test -s conftest.err; then
15202     ac_cpp_err=$ac_c_preproc_warn_flag
15203     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15204   else
15205     ac_cpp_err=
15206   fi
15207 else
15208   ac_cpp_err=yes
15209 fi
15210 if test -z "$ac_cpp_err"; then
15211   ac_header_preproc=yes
15212 else
15213   echo "$as_me: failed program was:" >&5
15214 sed 's/^/| /' conftest.$ac_ext >&5
15215
15216   ac_header_preproc=no
15217 fi
15218 rm -f conftest.err conftest.$ac_ext
15219 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15220 echo "${ECHO_T}$ac_header_preproc" >&6
15221
15222 # So?  What about this header?
15223 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15224   yes:no: )
15225     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15226 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15227     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15228 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15229     ac_header_preproc=yes
15230     ;;
15231   no:yes:* )
15232     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15233 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15234     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15235 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15236     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15237 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15238     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15239 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15240     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15241 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15242     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15243 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15244     (
15245       cat <<\_ASBOX
15246 ## ------------------------------------------ ##
15247 ## Report this to the AC_PACKAGE_NAME lists.  ##
15248 ## ------------------------------------------ ##
15249 _ASBOX
15250     ) |
15251       sed "s/^/$as_me: WARNING:     /" >&2
15252     ;;
15253 esac
15254 echo "$as_me:$LINENO: checking for $ac_header" >&5
15255 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15256 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15257   echo $ECHO_N "(cached) $ECHO_C" >&6
15258 else
15259   eval "$as_ac_Header=\$ac_header_preproc"
15260 fi
15261 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15262 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15263
15264 fi
15265 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15266   cat >>confdefs.h <<_ACEOF
15267 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15268 _ACEOF
15269
15270 fi
15271
15272 done
15273
15274 echo "$as_me:$LINENO: checking types of arguments for select" >&5
15275 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
15276 if test "${ac_cv_func_select_args+set}" = set; then
15277   echo $ECHO_N "(cached) $ECHO_C" >&6
15278 else
15279   for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
15280  for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
15281   for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
15282    cat >conftest.$ac_ext <<_ACEOF
15283 /* confdefs.h.  */
15284 _ACEOF
15285 cat confdefs.h >>conftest.$ac_ext
15286 cat >>conftest.$ac_ext <<_ACEOF
15287 /* end confdefs.h.  */
15288 $ac_includes_default
15289 #if HAVE_SYS_SELECT_H
15290 # include <sys/select.h>
15291 #endif
15292 #if HAVE_SYS_SOCKET_H
15293 # include <sys/socket.h>
15294 #endif
15295
15296 int
15297 main ()
15298 {
15299 extern int select ($ac_arg1,
15300                                             $ac_arg234, $ac_arg234, $ac_arg234,
15301                                             $ac_arg5);
15302   ;
15303   return 0;
15304 }
15305 _ACEOF
15306 rm -f conftest.$ac_objext
15307 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15308   (eval $ac_compile) 2>conftest.er1
15309   ac_status=$?
15310   grep -v '^ *+' conftest.er1 >conftest.err
15311   rm -f conftest.er1
15312   cat conftest.err >&5
15313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15314   (exit $ac_status); } &&
15315          { ac_try='test -z "$ac_c_werror_flag"
15316                          || test ! -s conftest.err'
15317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15318   (eval $ac_try) 2>&5
15319   ac_status=$?
15320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15321   (exit $ac_status); }; } &&
15322          { ac_try='test -s conftest.$ac_objext'
15323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15324   (eval $ac_try) 2>&5
15325   ac_status=$?
15326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15327   (exit $ac_status); }; }; then
15328   ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
15329 else
15330   echo "$as_me: failed program was:" >&5
15331 sed 's/^/| /' conftest.$ac_ext >&5
15332
15333 fi
15334 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15335   done
15336  done
15337 done
15338 # Provide a safe default value.
15339 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
15340
15341 fi
15342 echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
15343 echo "${ECHO_T}$ac_cv_func_select_args" >&6
15344 ac_save_IFS=$IFS; IFS=','
15345 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
15346 IFS=$ac_save_IFS
15347 shift
15348
15349 cat >>confdefs.h <<_ACEOF
15350 #define SELECT_TYPE_ARG1 $1
15351 _ACEOF
15352
15353
15354 cat >>confdefs.h <<_ACEOF
15355 #define SELECT_TYPE_ARG234 ($2)
15356 _ACEOF
15357
15358
15359 cat >>confdefs.h <<_ACEOF
15360 #define SELECT_TYPE_ARG5 ($3)
15361 _ACEOF
15362
15363 rm -f conftest*
15364
15365 fi
15366
15367
15368
15369 for ac_func in poll
15370 do
15371 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15372 echo "$as_me:$LINENO: checking for $ac_func" >&5
15373 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15374 if eval "test \"\${$as_ac_var+set}\" = set"; then
15375   echo $ECHO_N "(cached) $ECHO_C" >&6
15376 else
15377   cat >conftest.$ac_ext <<_ACEOF
15378 /* confdefs.h.  */
15379 _ACEOF
15380 cat confdefs.h >>conftest.$ac_ext
15381 cat >>conftest.$ac_ext <<_ACEOF
15382 /* end confdefs.h.  */
15383 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15384    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15385 #define $ac_func innocuous_$ac_func
15386
15387 /* System header to define __stub macros and hopefully few prototypes,
15388     which can conflict with char $ac_func (); below.
15389     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15390     <limits.h> exists even on freestanding compilers.  */
15391
15392 #ifdef __STDC__
15393 # include <limits.h>
15394 #else
15395 # include <assert.h>
15396 #endif
15397
15398 #undef $ac_func
15399
15400 /* Override any gcc2 internal prototype to avoid an error.  */
15401 #ifdef __cplusplus
15402 extern "C"
15403 {
15404 #endif
15405 /* We use char because int might match the return type of a gcc2
15406    builtin and then its argument prototype would still apply.  */
15407 char $ac_func ();
15408 /* The GNU C library defines this for functions which it implements
15409     to always fail with ENOSYS.  Some functions are actually named
15410     something starting with __ and the normal name is an alias.  */
15411 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15412 choke me
15413 #else
15414 char (*f) () = $ac_func;
15415 #endif
15416 #ifdef __cplusplus
15417 }
15418 #endif
15419
15420 int
15421 main ()
15422 {
15423 return f != $ac_func;
15424   ;
15425   return 0;
15426 }
15427 _ACEOF
15428 rm -f conftest.$ac_objext conftest$ac_exeext
15429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15430   (eval $ac_link) 2>conftest.er1
15431   ac_status=$?
15432   grep -v '^ *+' conftest.er1 >conftest.err
15433   rm -f conftest.er1
15434   cat conftest.err >&5
15435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15436   (exit $ac_status); } &&
15437          { ac_try='test -z "$ac_c_werror_flag"
15438                          || test ! -s conftest.err'
15439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15440   (eval $ac_try) 2>&5
15441   ac_status=$?
15442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15443   (exit $ac_status); }; } &&
15444          { ac_try='test -s conftest$ac_exeext'
15445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15446   (eval $ac_try) 2>&5
15447   ac_status=$?
15448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15449   (exit $ac_status); }; }; then
15450   eval "$as_ac_var=yes"
15451 else
15452   echo "$as_me: failed program was:" >&5
15453 sed 's/^/| /' conftest.$ac_ext >&5
15454
15455 eval "$as_ac_var=no"
15456 fi
15457 rm -f conftest.err conftest.$ac_objext \
15458       conftest$ac_exeext conftest.$ac_ext
15459 fi
15460 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15461 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15462 if test `eval echo '${'$as_ac_var'}'` = yes; then
15463   cat >>confdefs.h <<_ACEOF
15464 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15465 _ACEOF
15466
15467 fi
15468 done
15469
15470
15471 for ac_header in poll.h
15472 do
15473 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15474 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15475   echo "$as_me:$LINENO: checking for $ac_header" >&5
15476 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15477 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15478   echo $ECHO_N "(cached) $ECHO_C" >&6
15479 fi
15480 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15481 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15482 else
15483   # Is the header compilable?
15484 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15485 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15486 cat >conftest.$ac_ext <<_ACEOF
15487 /* confdefs.h.  */
15488 _ACEOF
15489 cat confdefs.h >>conftest.$ac_ext
15490 cat >>conftest.$ac_ext <<_ACEOF
15491 /* end confdefs.h.  */
15492 $ac_includes_default
15493 #include <$ac_header>
15494 _ACEOF
15495 rm -f conftest.$ac_objext
15496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15497   (eval $ac_compile) 2>conftest.er1
15498   ac_status=$?
15499   grep -v '^ *+' conftest.er1 >conftest.err
15500   rm -f conftest.er1
15501   cat conftest.err >&5
15502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15503   (exit $ac_status); } &&
15504          { ac_try='test -z "$ac_c_werror_flag"
15505                          || test ! -s conftest.err'
15506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15507   (eval $ac_try) 2>&5
15508   ac_status=$?
15509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15510   (exit $ac_status); }; } &&
15511          { ac_try='test -s conftest.$ac_objext'
15512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15513   (eval $ac_try) 2>&5
15514   ac_status=$?
15515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15516   (exit $ac_status); }; }; then
15517   ac_header_compiler=yes
15518 else
15519   echo "$as_me: failed program was:" >&5
15520 sed 's/^/| /' conftest.$ac_ext >&5
15521
15522 ac_header_compiler=no
15523 fi
15524 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15525 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15526 echo "${ECHO_T}$ac_header_compiler" >&6
15527
15528 # Is the header present?
15529 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15530 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15531 cat >conftest.$ac_ext <<_ACEOF
15532 /* confdefs.h.  */
15533 _ACEOF
15534 cat confdefs.h >>conftest.$ac_ext
15535 cat >>conftest.$ac_ext <<_ACEOF
15536 /* end confdefs.h.  */
15537 #include <$ac_header>
15538 _ACEOF
15539 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15540   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15541   ac_status=$?
15542   grep -v '^ *+' conftest.er1 >conftest.err
15543   rm -f conftest.er1
15544   cat conftest.err >&5
15545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15546   (exit $ac_status); } >/dev/null; then
15547   if test -s conftest.err; then
15548     ac_cpp_err=$ac_c_preproc_warn_flag
15549     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15550   else
15551     ac_cpp_err=
15552   fi
15553 else
15554   ac_cpp_err=yes
15555 fi
15556 if test -z "$ac_cpp_err"; then
15557   ac_header_preproc=yes
15558 else
15559   echo "$as_me: failed program was:" >&5
15560 sed 's/^/| /' conftest.$ac_ext >&5
15561
15562   ac_header_preproc=no
15563 fi
15564 rm -f conftest.err conftest.$ac_ext
15565 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15566 echo "${ECHO_T}$ac_header_preproc" >&6
15567
15568 # So?  What about this header?
15569 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15570   yes:no: )
15571     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15572 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15573     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15574 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15575     ac_header_preproc=yes
15576     ;;
15577   no:yes:* )
15578     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15579 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15580     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15581 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15582     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15583 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15584     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15585 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15586     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15587 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15588     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15589 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15590     (
15591       cat <<\_ASBOX
15592 ## ------------------------------------------ ##
15593 ## Report this to the AC_PACKAGE_NAME lists.  ##
15594 ## ------------------------------------------ ##
15595 _ASBOX
15596     ) |
15597       sed "s/^/$as_me: WARNING:     /" >&2
15598     ;;
15599 esac
15600 echo "$as_me:$LINENO: checking for $ac_header" >&5
15601 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15602 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15603   echo $ECHO_N "(cached) $ECHO_C" >&6
15604 else
15605   eval "$as_ac_Header=\$ac_header_preproc"
15606 fi
15607 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15608 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15609
15610 fi
15611 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15612   cat >>confdefs.h <<_ACEOF
15613 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15614 _ACEOF
15615
15616 fi
15617
15618 done
15619
15620
15621
15622 for ac_header in sys/epoll.h
15623 do
15624 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15625 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15626   echo "$as_me:$LINENO: checking for $ac_header" >&5
15627 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15628 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15629   echo $ECHO_N "(cached) $ECHO_C" >&6
15630 fi
15631 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15632 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15633 else
15634   # Is the header compilable?
15635 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15636 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15637 cat >conftest.$ac_ext <<_ACEOF
15638 /* confdefs.h.  */
15639 _ACEOF
15640 cat confdefs.h >>conftest.$ac_ext
15641 cat >>conftest.$ac_ext <<_ACEOF
15642 /* end confdefs.h.  */
15643 $ac_includes_default
15644 #include <$ac_header>
15645 _ACEOF
15646 rm -f conftest.$ac_objext
15647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15648   (eval $ac_compile) 2>conftest.er1
15649   ac_status=$?
15650   grep -v '^ *+' conftest.er1 >conftest.err
15651   rm -f conftest.er1
15652   cat conftest.err >&5
15653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15654   (exit $ac_status); } &&
15655          { ac_try='test -z "$ac_c_werror_flag"
15656                          || test ! -s conftest.err'
15657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15658   (eval $ac_try) 2>&5
15659   ac_status=$?
15660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15661   (exit $ac_status); }; } &&
15662          { ac_try='test -s conftest.$ac_objext'
15663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15664   (eval $ac_try) 2>&5
15665   ac_status=$?
15666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15667   (exit $ac_status); }; }; then
15668   ac_header_compiler=yes
15669 else
15670   echo "$as_me: failed program was:" >&5
15671 sed 's/^/| /' conftest.$ac_ext >&5
15672
15673 ac_header_compiler=no
15674 fi
15675 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15676 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15677 echo "${ECHO_T}$ac_header_compiler" >&6
15678
15679 # Is the header present?
15680 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15681 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15682 cat >conftest.$ac_ext <<_ACEOF
15683 /* confdefs.h.  */
15684 _ACEOF
15685 cat confdefs.h >>conftest.$ac_ext
15686 cat >>conftest.$ac_ext <<_ACEOF
15687 /* end confdefs.h.  */
15688 #include <$ac_header>
15689 _ACEOF
15690 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15691   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15692   ac_status=$?
15693   grep -v '^ *+' conftest.er1 >conftest.err
15694   rm -f conftest.er1
15695   cat conftest.err >&5
15696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15697   (exit $ac_status); } >/dev/null; then
15698   if test -s conftest.err; then
15699     ac_cpp_err=$ac_c_preproc_warn_flag
15700     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15701   else
15702     ac_cpp_err=
15703   fi
15704 else
15705   ac_cpp_err=yes
15706 fi
15707 if test -z "$ac_cpp_err"; then
15708   ac_header_preproc=yes
15709 else
15710   echo "$as_me: failed program was:" >&5
15711 sed 's/^/| /' conftest.$ac_ext >&5
15712
15713   ac_header_preproc=no
15714 fi
15715 rm -f conftest.err conftest.$ac_ext
15716 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15717 echo "${ECHO_T}$ac_header_preproc" >&6
15718
15719 # So?  What about this header?
15720 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15721   yes:no: )
15722     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15723 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15724     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15725 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15726     ac_header_preproc=yes
15727     ;;
15728   no:yes:* )
15729     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15730 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15731     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15732 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15733     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15734 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15735     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15736 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15737     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15738 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15739     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15740 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15741     (
15742       cat <<\_ASBOX
15743 ## ------------------------------------------ ##
15744 ## Report this to the AC_PACKAGE_NAME lists.  ##
15745 ## ------------------------------------------ ##
15746 _ASBOX
15747     ) |
15748       sed "s/^/$as_me: WARNING:     /" >&2
15749     ;;
15750 esac
15751 echo "$as_me:$LINENO: checking for $ac_header" >&5
15752 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15753 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15754   echo $ECHO_N "(cached) $ECHO_C" >&6
15755 else
15756   eval "$as_ac_Header=\$ac_header_preproc"
15757 fi
15758 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15759 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15760
15761 fi
15762 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15763   cat >>confdefs.h <<_ACEOF
15764 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15765 _ACEOF
15766
15767 fi
15768
15769 done
15770
15771 if test "${ac_cv_header_sys_epoll_h}" = yes; then
15772 echo "$as_me:$LINENO: checking for epoll system call" >&5
15773 echo $ECHO_N "checking for epoll system call... $ECHO_C" >&6
15774 if test "$cross_compiling" = yes; then
15775   echo "$as_me:$LINENO: result: no" >&5
15776 echo "${ECHO_T}no" >&6
15777 else
15778   cat >conftest.$ac_ext <<_ACEOF
15779 /* confdefs.h.  */
15780 _ACEOF
15781 cat confdefs.h >>conftest.$ac_ext
15782 cat >>conftest.$ac_ext <<_ACEOF
15783 /* end confdefs.h.  */
15784 int main(int argc, char *argv)
15785 {
15786         int epfd = epoll_create(256);
15787         exit (epfd == -1 ? 1 : 0);
15788 }
15789 _ACEOF
15790 rm -f conftest$ac_exeext
15791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15792   (eval $ac_link) 2>&5
15793   ac_status=$?
15794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15795   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15797   (eval $ac_try) 2>&5
15798   ac_status=$?
15799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15800   (exit $ac_status); }; }; then
15801   echo "$as_me:$LINENO: result: yes" >&5
15802 echo "${ECHO_T}yes" >&6
15803
15804 cat >>confdefs.h <<\_ACEOF
15805 #define HAVE_EPOLL 1
15806 _ACEOF
15807
15808 else
15809   echo "$as_me: program exited with status $ac_status" >&5
15810 echo "$as_me: failed program was:" >&5
15811 sed 's/^/| /' conftest.$ac_ext >&5
15812
15813 ( exit $ac_status )
15814 echo "$as_me:$LINENO: result: no" >&5
15815 echo "${ECHO_T}no" >&6
15816 fi
15817 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15818 fi
15819 fi
15820
15821 # strerror checks
15822 echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
15823 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
15824 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
15825   echo $ECHO_N "(cached) $ECHO_C" >&6
15826 else
15827
15828         cat >conftest.$ac_ext <<_ACEOF
15829 /* confdefs.h.  */
15830 _ACEOF
15831 cat confdefs.h >>conftest.$ac_ext
15832 cat >>conftest.$ac_ext <<_ACEOF
15833 /* end confdefs.h.  */
15834
15835 #include <stdio.h>
15836 #include <sys/types.h>
15837 #include <errno.h>
15838 #ifdef WINNT
15839 #include <stdlib.h>
15840 #endif
15841 int
15842 main ()
15843 {
15844 char *c = (char *) *sys_errlist
15845   ;
15846   return 0;
15847 }
15848 _ACEOF
15849 rm -f conftest.$ac_objext
15850 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15851   (eval $ac_compile) 2>conftest.er1
15852   ac_status=$?
15853   grep -v '^ *+' conftest.er1 >conftest.err
15854   rm -f conftest.er1
15855   cat conftest.err >&5
15856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15857   (exit $ac_status); } &&
15858          { ac_try='test -z "$ac_c_werror_flag"
15859                          || test ! -s conftest.err'
15860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15861   (eval $ac_try) 2>&5
15862   ac_status=$?
15863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15864   (exit $ac_status); }; } &&
15865          { ac_try='test -s conftest.$ac_objext'
15866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15867   (eval $ac_try) 2>&5
15868   ac_status=$?
15869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15870   (exit $ac_status); }; }; then
15871   ol_cv_dcl_sys_errlist=yes
15872         ol_cv_have_sys_errlist=yes
15873 else
15874   echo "$as_me: failed program was:" >&5
15875 sed 's/^/| /' conftest.$ac_ext >&5
15876
15877 ol_cv_dcl_sys_errlist=no
15878 fi
15879 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15880 fi
15881 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
15882 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
15883 #
15884 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
15885 if test $ol_cv_dcl_sys_errlist = no ; then
15886
15887 cat >>confdefs.h <<\_ACEOF
15888 #define DECL_SYS_ERRLIST 1
15889 _ACEOF
15890
15891
15892         echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
15893 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
15894 if test "${ol_cv_have_sys_errlist+set}" = set; then
15895   echo $ECHO_N "(cached) $ECHO_C" >&6
15896 else
15897
15898                 cat >conftest.$ac_ext <<_ACEOF
15899 /* confdefs.h.  */
15900 _ACEOF
15901 cat confdefs.h >>conftest.$ac_ext
15902 cat >>conftest.$ac_ext <<_ACEOF
15903 /* end confdefs.h.  */
15904 #include <errno.h>
15905 int
15906 main ()
15907 {
15908 char *c = (char *) *sys_errlist
15909   ;
15910   return 0;
15911 }
15912 _ACEOF
15913 rm -f conftest.$ac_objext conftest$ac_exeext
15914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15915   (eval $ac_link) 2>conftest.er1
15916   ac_status=$?
15917   grep -v '^ *+' conftest.er1 >conftest.err
15918   rm -f conftest.er1
15919   cat conftest.err >&5
15920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15921   (exit $ac_status); } &&
15922          { ac_try='test -z "$ac_c_werror_flag"
15923                          || test ! -s conftest.err'
15924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15925   (eval $ac_try) 2>&5
15926   ac_status=$?
15927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15928   (exit $ac_status); }; } &&
15929          { ac_try='test -s conftest$ac_exeext'
15930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15931   (eval $ac_try) 2>&5
15932   ac_status=$?
15933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15934   (exit $ac_status); }; }; then
15935   ol_cv_have_sys_errlist=yes
15936 else
15937   echo "$as_me: failed program was:" >&5
15938 sed 's/^/| /' conftest.$ac_ext >&5
15939
15940 ol_cv_have_sys_errlist=no
15941 fi
15942 rm -f conftest.err conftest.$ac_objext \
15943       conftest$ac_exeext conftest.$ac_ext
15944 fi
15945 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
15946 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
15947 fi
15948 if test $ol_cv_have_sys_errlist = yes ; then
15949
15950 cat >>confdefs.h <<\_ACEOF
15951 #define HAVE_SYS_ERRLIST 1
15952 _ACEOF
15953
15954 fi
15955
15956
15957 for ac_func in strerror strerror_r
15958 do
15959 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15960 echo "$as_me:$LINENO: checking for $ac_func" >&5
15961 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15962 if eval "test \"\${$as_ac_var+set}\" = set"; then
15963   echo $ECHO_N "(cached) $ECHO_C" >&6
15964 else
15965   cat >conftest.$ac_ext <<_ACEOF
15966 /* confdefs.h.  */
15967 _ACEOF
15968 cat confdefs.h >>conftest.$ac_ext
15969 cat >>conftest.$ac_ext <<_ACEOF
15970 /* end confdefs.h.  */
15971 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15972    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15973 #define $ac_func innocuous_$ac_func
15974
15975 /* System header to define __stub macros and hopefully few prototypes,
15976     which can conflict with char $ac_func (); below.
15977     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15978     <limits.h> exists even on freestanding compilers.  */
15979
15980 #ifdef __STDC__
15981 # include <limits.h>
15982 #else
15983 # include <assert.h>
15984 #endif
15985
15986 #undef $ac_func
15987
15988 /* Override any gcc2 internal prototype to avoid an error.  */
15989 #ifdef __cplusplus
15990 extern "C"
15991 {
15992 #endif
15993 /* We use char because int might match the return type of a gcc2
15994    builtin and then its argument prototype would still apply.  */
15995 char $ac_func ();
15996 /* The GNU C library defines this for functions which it implements
15997     to always fail with ENOSYS.  Some functions are actually named
15998     something starting with __ and the normal name is an alias.  */
15999 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16000 choke me
16001 #else
16002 char (*f) () = $ac_func;
16003 #endif
16004 #ifdef __cplusplus
16005 }
16006 #endif
16007
16008 int
16009 main ()
16010 {
16011 return f != $ac_func;
16012   ;
16013   return 0;
16014 }
16015 _ACEOF
16016 rm -f conftest.$ac_objext conftest$ac_exeext
16017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16018   (eval $ac_link) 2>conftest.er1
16019   ac_status=$?
16020   grep -v '^ *+' conftest.er1 >conftest.err
16021   rm -f conftest.er1
16022   cat conftest.err >&5
16023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16024   (exit $ac_status); } &&
16025          { ac_try='test -z "$ac_c_werror_flag"
16026                          || test ! -s conftest.err'
16027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16028   (eval $ac_try) 2>&5
16029   ac_status=$?
16030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16031   (exit $ac_status); }; } &&
16032          { ac_try='test -s conftest$ac_exeext'
16033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16034   (eval $ac_try) 2>&5
16035   ac_status=$?
16036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16037   (exit $ac_status); }; }; then
16038   eval "$as_ac_var=yes"
16039 else
16040   echo "$as_me: failed program was:" >&5
16041 sed 's/^/| /' conftest.$ac_ext >&5
16042
16043 eval "$as_ac_var=no"
16044 fi
16045 rm -f conftest.err conftest.$ac_objext \
16046       conftest$ac_exeext conftest.$ac_ext
16047 fi
16048 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16049 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16050 if test `eval echo '${'$as_ac_var'}'` = yes; then
16051   cat >>confdefs.h <<_ACEOF
16052 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16053 _ACEOF
16054
16055 fi
16056 done
16057
16058 ol_cv_func_strerror_r=no
16059 if test "${ac_cv_func_strerror_r}" = yes ; then
16060         echo "$as_me:$LINENO: checking non-posix strerror_r" >&5
16061 echo $ECHO_N "checking non-posix strerror_r... $ECHO_C" >&6
16062 if test "${ol_cv_nonposix_strerror_r+set}" = set; then
16063   echo $ECHO_N "(cached) $ECHO_C" >&6
16064 else
16065
16066         cat >conftest.$ac_ext <<_ACEOF
16067 /* confdefs.h.  */
16068 _ACEOF
16069 cat confdefs.h >>conftest.$ac_ext
16070 cat >>conftest.$ac_ext <<_ACEOF
16071 /* end confdefs.h.  */
16072 #include <string.h>
16073 _ACEOF
16074 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16075   $EGREP "strerror_r" >/dev/null 2>&1; then
16076   ol_decl_strerror_r=yes
16077 else
16078   ol_decl_strerror_r=no
16079 fi
16080 rm -f conftest*
16081
16082         if test $ol_decl_strerror_r = yes ; then
16083                 cat >conftest.$ac_ext <<_ACEOF
16084 /* confdefs.h.  */
16085 _ACEOF
16086 cat confdefs.h >>conftest.$ac_ext
16087 cat >>conftest.$ac_ext <<_ACEOF
16088 /* end confdefs.h.  */
16089 #include <string.h>
16090 int
16091 main ()
16092 {
16093    /* from autoconf 2.59 */
16094                                 char buf[100];
16095                                 char x = *strerror_r (0, buf, sizeof buf);
16096                                 char *p = strerror_r (0, buf, sizeof buf);
16097
16098   ;
16099   return 0;
16100 }
16101 _ACEOF
16102 rm -f conftest.$ac_objext
16103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16104   (eval $ac_compile) 2>conftest.er1
16105   ac_status=$?
16106   grep -v '^ *+' conftest.er1 >conftest.err
16107   rm -f conftest.er1
16108   cat conftest.err >&5
16109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16110   (exit $ac_status); } &&
16111          { ac_try='test -z "$ac_c_werror_flag"
16112                          || test ! -s conftest.err'
16113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16114   (eval $ac_try) 2>&5
16115   ac_status=$?
16116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16117   (exit $ac_status); }; } &&
16118          { ac_try='test -s conftest.$ac_objext'
16119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16120   (eval $ac_try) 2>&5
16121   ac_status=$?
16122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16123   (exit $ac_status); }; }; then
16124   ol_cv_nonposix_strerror_r=yes
16125 else
16126   echo "$as_me: failed program was:" >&5
16127 sed 's/^/| /' conftest.$ac_ext >&5
16128
16129 ol_cv_nonposix_strerror_r=no
16130 fi
16131 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16132         else
16133                 if test "$cross_compiling" = yes; then
16134   ol_cv_nonposix_strerror=no
16135 else
16136   cat >conftest.$ac_ext <<_ACEOF
16137 /* confdefs.h.  */
16138 _ACEOF
16139 cat confdefs.h >>conftest.$ac_ext
16140 cat >>conftest.$ac_ext <<_ACEOF
16141 /* end confdefs.h.  */
16142
16143                         main() {
16144                                 char buf[100];
16145                                 buf[0] = 0;
16146                                 strerror_r( 1, buf, sizeof buf );
16147                                 exit( buf[0] == 0 );
16148                         }
16149
16150 _ACEOF
16151 rm -f conftest$ac_exeext
16152 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16153   (eval $ac_link) 2>&5
16154   ac_status=$?
16155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16156   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16158   (eval $ac_try) 2>&5
16159   ac_status=$?
16160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16161   (exit $ac_status); }; }; then
16162   ol_cv_nonposix_strerror_r=yes
16163 else
16164   echo "$as_me: program exited with status $ac_status" >&5
16165 echo "$as_me: failed program was:" >&5
16166 sed 's/^/| /' conftest.$ac_ext >&5
16167
16168 ( exit $ac_status )
16169 ol_cv_nonposix_strerror=no
16170 fi
16171 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16172 fi
16173         fi
16174
16175 fi
16176 echo "$as_me:$LINENO: result: $ol_cv_nonposix_strerror_r" >&5
16177 echo "${ECHO_T}$ol_cv_nonposix_strerror_r" >&6
16178 if test $ol_cv_nonposix_strerror_r = yes ; then
16179
16180 cat >>confdefs.h <<\_ACEOF
16181 #define HAVE_NONPOSIX_STRERROR_R 1
16182 _ACEOF
16183
16184 fi
16185
16186 elif test "${ac_cv_func_strerror}" = no ; then
16187         echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
16188 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
16189 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
16190   echo $ECHO_N "(cached) $ECHO_C" >&6
16191 else
16192
16193         cat >conftest.$ac_ext <<_ACEOF
16194 /* confdefs.h.  */
16195 _ACEOF
16196 cat confdefs.h >>conftest.$ac_ext
16197 cat >>conftest.$ac_ext <<_ACEOF
16198 /* end confdefs.h.  */
16199
16200 #include <stdio.h>
16201 #include <sys/types.h>
16202 #include <errno.h>
16203 #ifdef WINNT
16204 #include <stdlib.h>
16205 #endif
16206 int
16207 main ()
16208 {
16209 char *c = (char *) *sys_errlist
16210   ;
16211   return 0;
16212 }
16213 _ACEOF
16214 rm -f conftest.$ac_objext
16215 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16216   (eval $ac_compile) 2>conftest.er1
16217   ac_status=$?
16218   grep -v '^ *+' conftest.er1 >conftest.err
16219   rm -f conftest.er1
16220   cat conftest.err >&5
16221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16222   (exit $ac_status); } &&
16223          { ac_try='test -z "$ac_c_werror_flag"
16224                          || test ! -s conftest.err'
16225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16226   (eval $ac_try) 2>&5
16227   ac_status=$?
16228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16229   (exit $ac_status); }; } &&
16230          { ac_try='test -s conftest.$ac_objext'
16231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16232   (eval $ac_try) 2>&5
16233   ac_status=$?
16234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16235   (exit $ac_status); }; }; then
16236   ol_cv_dcl_sys_errlist=yes
16237         ol_cv_have_sys_errlist=yes
16238 else
16239   echo "$as_me: failed program was:" >&5
16240 sed 's/^/| /' conftest.$ac_ext >&5
16241
16242 ol_cv_dcl_sys_errlist=no
16243 fi
16244 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16245 fi
16246 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
16247 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
16248 #
16249 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
16250 if test $ol_cv_dcl_sys_errlist = no ; then
16251
16252 cat >>confdefs.h <<\_ACEOF
16253 #define DECL_SYS_ERRLIST 1
16254 _ACEOF
16255
16256
16257         echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
16258 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
16259 if test "${ol_cv_have_sys_errlist+set}" = set; then
16260   echo $ECHO_N "(cached) $ECHO_C" >&6
16261 else
16262
16263                 cat >conftest.$ac_ext <<_ACEOF
16264 /* confdefs.h.  */
16265 _ACEOF
16266 cat confdefs.h >>conftest.$ac_ext
16267 cat >>conftest.$ac_ext <<_ACEOF
16268 /* end confdefs.h.  */
16269 #include <errno.h>
16270 int
16271 main ()
16272 {
16273 char *c = (char *) *sys_errlist
16274   ;
16275   return 0;
16276 }
16277 _ACEOF
16278 rm -f conftest.$ac_objext conftest$ac_exeext
16279 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16280   (eval $ac_link) 2>conftest.er1
16281   ac_status=$?
16282   grep -v '^ *+' conftest.er1 >conftest.err
16283   rm -f conftest.er1
16284   cat conftest.err >&5
16285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16286   (exit $ac_status); } &&
16287          { ac_try='test -z "$ac_c_werror_flag"
16288                          || test ! -s conftest.err'
16289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16290   (eval $ac_try) 2>&5
16291   ac_status=$?
16292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16293   (exit $ac_status); }; } &&
16294          { ac_try='test -s conftest$ac_exeext'
16295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16296   (eval $ac_try) 2>&5
16297   ac_status=$?
16298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16299   (exit $ac_status); }; }; then
16300   ol_cv_have_sys_errlist=yes
16301 else
16302   echo "$as_me: failed program was:" >&5
16303 sed 's/^/| /' conftest.$ac_ext >&5
16304
16305 ol_cv_have_sys_errlist=no
16306 fi
16307 rm -f conftest.err conftest.$ac_objext \
16308       conftest$ac_exeext conftest.$ac_ext
16309 fi
16310 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
16311 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
16312 fi
16313 if test $ol_cv_have_sys_errlist = yes ; then
16314
16315 cat >>confdefs.h <<\_ACEOF
16316 #define HAVE_SYS_ERRLIST 1
16317 _ACEOF
16318
16319 fi
16320
16321 fi
16322
16323
16324
16325 for ac_header in regex.h
16326 do
16327 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16328 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16329   echo "$as_me:$LINENO: checking for $ac_header" >&5
16330 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16331 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16332   echo $ECHO_N "(cached) $ECHO_C" >&6
16333 fi
16334 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16335 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16336 else
16337   # Is the header compilable?
16338 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16339 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16340 cat >conftest.$ac_ext <<_ACEOF
16341 /* confdefs.h.  */
16342 _ACEOF
16343 cat confdefs.h >>conftest.$ac_ext
16344 cat >>conftest.$ac_ext <<_ACEOF
16345 /* end confdefs.h.  */
16346 $ac_includes_default
16347 #include <$ac_header>
16348 _ACEOF
16349 rm -f conftest.$ac_objext
16350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16351   (eval $ac_compile) 2>conftest.er1
16352   ac_status=$?
16353   grep -v '^ *+' conftest.er1 >conftest.err
16354   rm -f conftest.er1
16355   cat conftest.err >&5
16356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16357   (exit $ac_status); } &&
16358          { ac_try='test -z "$ac_c_werror_flag"
16359                          || test ! -s conftest.err'
16360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16361   (eval $ac_try) 2>&5
16362   ac_status=$?
16363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16364   (exit $ac_status); }; } &&
16365          { ac_try='test -s conftest.$ac_objext'
16366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16367   (eval $ac_try) 2>&5
16368   ac_status=$?
16369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16370   (exit $ac_status); }; }; then
16371   ac_header_compiler=yes
16372 else
16373   echo "$as_me: failed program was:" >&5
16374 sed 's/^/| /' conftest.$ac_ext >&5
16375
16376 ac_header_compiler=no
16377 fi
16378 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16379 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16380 echo "${ECHO_T}$ac_header_compiler" >&6
16381
16382 # Is the header present?
16383 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16384 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16385 cat >conftest.$ac_ext <<_ACEOF
16386 /* confdefs.h.  */
16387 _ACEOF
16388 cat confdefs.h >>conftest.$ac_ext
16389 cat >>conftest.$ac_ext <<_ACEOF
16390 /* end confdefs.h.  */
16391 #include <$ac_header>
16392 _ACEOF
16393 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16394   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16395   ac_status=$?
16396   grep -v '^ *+' conftest.er1 >conftest.err
16397   rm -f conftest.er1
16398   cat conftest.err >&5
16399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16400   (exit $ac_status); } >/dev/null; then
16401   if test -s conftest.err; then
16402     ac_cpp_err=$ac_c_preproc_warn_flag
16403     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16404   else
16405     ac_cpp_err=
16406   fi
16407 else
16408   ac_cpp_err=yes
16409 fi
16410 if test -z "$ac_cpp_err"; then
16411   ac_header_preproc=yes
16412 else
16413   echo "$as_me: failed program was:" >&5
16414 sed 's/^/| /' conftest.$ac_ext >&5
16415
16416   ac_header_preproc=no
16417 fi
16418 rm -f conftest.err conftest.$ac_ext
16419 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16420 echo "${ECHO_T}$ac_header_preproc" >&6
16421
16422 # So?  What about this header?
16423 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16424   yes:no: )
16425     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16426 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16427     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16428 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16429     ac_header_preproc=yes
16430     ;;
16431   no:yes:* )
16432     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16433 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16434     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16435 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16436     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16437 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16438     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16439 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16440     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16441 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16442     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16443 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16444     (
16445       cat <<\_ASBOX
16446 ## ------------------------------------------ ##
16447 ## Report this to the AC_PACKAGE_NAME lists.  ##
16448 ## ------------------------------------------ ##
16449 _ASBOX
16450     ) |
16451       sed "s/^/$as_me: WARNING:     /" >&2
16452     ;;
16453 esac
16454 echo "$as_me:$LINENO: checking for $ac_header" >&5
16455 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16456 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16457   echo $ECHO_N "(cached) $ECHO_C" >&6
16458 else
16459   eval "$as_ac_Header=\$ac_header_preproc"
16460 fi
16461 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16462 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16463
16464 fi
16465 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16466   cat >>confdefs.h <<_ACEOF
16467 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16468 _ACEOF
16469
16470 fi
16471
16472 done
16473
16474 if test "$ac_cv_header_regex_h" != yes ; then
16475         { { echo "$as_me:$LINENO: error: POSIX regex.h required." >&5
16476 echo "$as_me: error: POSIX regex.h required." >&2;}
16477    { (exit 1); exit 1; }; }
16478 fi
16479 echo "$as_me:$LINENO: checking for library containing regfree" >&5
16480 echo $ECHO_N "checking for library containing regfree... $ECHO_C" >&6
16481 if test "${ac_cv_search_regfree+set}" = set; then
16482   echo $ECHO_N "(cached) $ECHO_C" >&6
16483 else
16484   ac_func_search_save_LIBS=$LIBS
16485 ac_cv_search_regfree=no
16486 cat >conftest.$ac_ext <<_ACEOF
16487 /* confdefs.h.  */
16488 _ACEOF
16489 cat confdefs.h >>conftest.$ac_ext
16490 cat >>conftest.$ac_ext <<_ACEOF
16491 /* end confdefs.h.  */
16492
16493 /* Override any gcc2 internal prototype to avoid an error.  */
16494 #ifdef __cplusplus
16495 extern "C"
16496 #endif
16497 /* We use char because int might match the return type of a gcc2
16498    builtin and then its argument prototype would still apply.  */
16499 char regfree ();
16500 int
16501 main ()
16502 {
16503 regfree ();
16504   ;
16505   return 0;
16506 }
16507 _ACEOF
16508 rm -f conftest.$ac_objext conftest$ac_exeext
16509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16510   (eval $ac_link) 2>conftest.er1
16511   ac_status=$?
16512   grep -v '^ *+' conftest.er1 >conftest.err
16513   rm -f conftest.er1
16514   cat conftest.err >&5
16515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16516   (exit $ac_status); } &&
16517          { ac_try='test -z "$ac_c_werror_flag"
16518                          || test ! -s conftest.err'
16519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16520   (eval $ac_try) 2>&5
16521   ac_status=$?
16522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16523   (exit $ac_status); }; } &&
16524          { ac_try='test -s conftest$ac_exeext'
16525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16526   (eval $ac_try) 2>&5
16527   ac_status=$?
16528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16529   (exit $ac_status); }; }; then
16530   ac_cv_search_regfree="none required"
16531 else
16532   echo "$as_me: failed program was:" >&5
16533 sed 's/^/| /' conftest.$ac_ext >&5
16534
16535 fi
16536 rm -f conftest.err conftest.$ac_objext \
16537       conftest$ac_exeext conftest.$ac_ext
16538 if test "$ac_cv_search_regfree" = no; then
16539   for ac_lib in regex gnuregex; do
16540     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16541     cat >conftest.$ac_ext <<_ACEOF
16542 /* confdefs.h.  */
16543 _ACEOF
16544 cat confdefs.h >>conftest.$ac_ext
16545 cat >>conftest.$ac_ext <<_ACEOF
16546 /* end confdefs.h.  */
16547
16548 /* Override any gcc2 internal prototype to avoid an error.  */
16549 #ifdef __cplusplus
16550 extern "C"
16551 #endif
16552 /* We use char because int might match the return type of a gcc2
16553    builtin and then its argument prototype would still apply.  */
16554 char regfree ();
16555 int
16556 main ()
16557 {
16558 regfree ();
16559   ;
16560   return 0;
16561 }
16562 _ACEOF
16563 rm -f conftest.$ac_objext conftest$ac_exeext
16564 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16565   (eval $ac_link) 2>conftest.er1
16566   ac_status=$?
16567   grep -v '^ *+' conftest.er1 >conftest.err
16568   rm -f conftest.er1
16569   cat conftest.err >&5
16570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16571   (exit $ac_status); } &&
16572          { ac_try='test -z "$ac_c_werror_flag"
16573                          || test ! -s conftest.err'
16574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16575   (eval $ac_try) 2>&5
16576   ac_status=$?
16577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16578   (exit $ac_status); }; } &&
16579          { ac_try='test -s conftest$ac_exeext'
16580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16581   (eval $ac_try) 2>&5
16582   ac_status=$?
16583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16584   (exit $ac_status); }; }; then
16585   ac_cv_search_regfree="-l$ac_lib"
16586 break
16587 else
16588   echo "$as_me: failed program was:" >&5
16589 sed 's/^/| /' conftest.$ac_ext >&5
16590
16591 fi
16592 rm -f conftest.err conftest.$ac_objext \
16593       conftest$ac_exeext conftest.$ac_ext
16594   done
16595 fi
16596 LIBS=$ac_func_search_save_LIBS
16597 fi
16598 echo "$as_me:$LINENO: result: $ac_cv_search_regfree" >&5
16599 echo "${ECHO_T}$ac_cv_search_regfree" >&6
16600 if test "$ac_cv_search_regfree" != no; then
16601   test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
16602   :
16603 else
16604   { { echo "$as_me:$LINENO: error: POSIX regex required." >&5
16605 echo "$as_me: error: POSIX regex required." >&2;}
16606    { (exit 1); exit 1; }; }
16607 fi
16608
16609
16610
16611 echo "$as_me:$LINENO: checking for compatible POSIX regex" >&5
16612 echo $ECHO_N "checking for compatible POSIX regex... $ECHO_C" >&6
16613 if test "${ol_cv_c_posix_regex+set}" = set; then
16614   echo $ECHO_N "(cached) $ECHO_C" >&6
16615 else
16616
16617         if test "$cross_compiling" = yes; then
16618   ol_cv_c_posix_regex=cross
16619 else
16620   cat >conftest.$ac_ext <<_ACEOF
16621 /* confdefs.h.  */
16622 _ACEOF
16623 cat confdefs.h >>conftest.$ac_ext
16624 cat >>conftest.$ac_ext <<_ACEOF
16625 /* end confdefs.h.  */
16626
16627 #include <sys/types.h>
16628 #include <regex.h>
16629 static char *pattern, *string;
16630 main()
16631 {
16632         int rc;
16633         regex_t re;
16634
16635         pattern = "^A";
16636
16637         if(regcomp(&re, pattern, 0)) {
16638                 return -1;
16639         }
16640
16641         string = "ALL MATCH";
16642
16643         rc = regexec(&re, string, 0, (void*)0, 0);
16644
16645         regfree(&re);
16646
16647         return rc;
16648 }
16649 _ACEOF
16650 rm -f conftest$ac_exeext
16651 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16652   (eval $ac_link) 2>&5
16653   ac_status=$?
16654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16655   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16657   (eval $ac_try) 2>&5
16658   ac_status=$?
16659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16660   (exit $ac_status); }; }; then
16661   ol_cv_c_posix_regex=yes
16662 else
16663   echo "$as_me: program exited with status $ac_status" >&5
16664 echo "$as_me: failed program was:" >&5
16665 sed 's/^/| /' conftest.$ac_ext >&5
16666
16667 ( exit $ac_status )
16668 ol_cv_c_posix_regex=no
16669 fi
16670 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16671 fi
16672 fi
16673 echo "$as_me:$LINENO: result: $ol_cv_c_posix_regex" >&5
16674 echo "${ECHO_T}$ol_cv_c_posix_regex" >&6
16675
16676 if test "$ol_cv_c_posix_regex" = no ; then
16677         { { echo "$as_me:$LINENO: error: broken POSIX regex!" >&5
16678 echo "$as_me: error: broken POSIX regex!" >&2;}
16679    { (exit 1); exit 1; }; }
16680 fi
16681
16682
16683 have_uuid=no
16684
16685 for ac_header in sys/uuid.h
16686 do
16687 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16688 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16689   echo "$as_me:$LINENO: checking for $ac_header" >&5
16690 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16691 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16692   echo $ECHO_N "(cached) $ECHO_C" >&6
16693 fi
16694 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16695 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16696 else
16697   # Is the header compilable?
16698 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16699 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16700 cat >conftest.$ac_ext <<_ACEOF
16701 /* confdefs.h.  */
16702 _ACEOF
16703 cat confdefs.h >>conftest.$ac_ext
16704 cat >>conftest.$ac_ext <<_ACEOF
16705 /* end confdefs.h.  */
16706 $ac_includes_default
16707 #include <$ac_header>
16708 _ACEOF
16709 rm -f conftest.$ac_objext
16710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16711   (eval $ac_compile) 2>conftest.er1
16712   ac_status=$?
16713   grep -v '^ *+' conftest.er1 >conftest.err
16714   rm -f conftest.er1
16715   cat conftest.err >&5
16716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16717   (exit $ac_status); } &&
16718          { ac_try='test -z "$ac_c_werror_flag"
16719                          || test ! -s conftest.err'
16720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16721   (eval $ac_try) 2>&5
16722   ac_status=$?
16723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16724   (exit $ac_status); }; } &&
16725          { ac_try='test -s conftest.$ac_objext'
16726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16727   (eval $ac_try) 2>&5
16728   ac_status=$?
16729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16730   (exit $ac_status); }; }; then
16731   ac_header_compiler=yes
16732 else
16733   echo "$as_me: failed program was:" >&5
16734 sed 's/^/| /' conftest.$ac_ext >&5
16735
16736 ac_header_compiler=no
16737 fi
16738 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16739 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16740 echo "${ECHO_T}$ac_header_compiler" >&6
16741
16742 # Is the header present?
16743 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16744 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16745 cat >conftest.$ac_ext <<_ACEOF
16746 /* confdefs.h.  */
16747 _ACEOF
16748 cat confdefs.h >>conftest.$ac_ext
16749 cat >>conftest.$ac_ext <<_ACEOF
16750 /* end confdefs.h.  */
16751 #include <$ac_header>
16752 _ACEOF
16753 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16754   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16755   ac_status=$?
16756   grep -v '^ *+' conftest.er1 >conftest.err
16757   rm -f conftest.er1
16758   cat conftest.err >&5
16759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16760   (exit $ac_status); } >/dev/null; then
16761   if test -s conftest.err; then
16762     ac_cpp_err=$ac_c_preproc_warn_flag
16763     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16764   else
16765     ac_cpp_err=
16766   fi
16767 else
16768   ac_cpp_err=yes
16769 fi
16770 if test -z "$ac_cpp_err"; then
16771   ac_header_preproc=yes
16772 else
16773   echo "$as_me: failed program was:" >&5
16774 sed 's/^/| /' conftest.$ac_ext >&5
16775
16776   ac_header_preproc=no
16777 fi
16778 rm -f conftest.err conftest.$ac_ext
16779 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16780 echo "${ECHO_T}$ac_header_preproc" >&6
16781
16782 # So?  What about this header?
16783 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16784   yes:no: )
16785     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16786 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16787     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16788 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16789     ac_header_preproc=yes
16790     ;;
16791   no:yes:* )
16792     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16793 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16794     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16795 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16796     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16797 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16798     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16799 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16800     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16801 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16802     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16803 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16804     (
16805       cat <<\_ASBOX
16806 ## ------------------------------------------ ##
16807 ## Report this to the AC_PACKAGE_NAME lists.  ##
16808 ## ------------------------------------------ ##
16809 _ASBOX
16810     ) |
16811       sed "s/^/$as_me: WARNING:     /" >&2
16812     ;;
16813 esac
16814 echo "$as_me:$LINENO: checking for $ac_header" >&5
16815 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16816 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16817   echo $ECHO_N "(cached) $ECHO_C" >&6
16818 else
16819   eval "$as_ac_Header=\$ac_header_preproc"
16820 fi
16821 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16822 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16823
16824 fi
16825 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16826   cat >>confdefs.h <<_ACEOF
16827 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16828 _ACEOF
16829
16830 fi
16831
16832 done
16833
16834 if test $ac_cv_header_sys_uuid_h = yes ; then
16835         save_LIBS="$LIBS"
16836         echo "$as_me:$LINENO: checking for library containing uuid_to_str" >&5
16837 echo $ECHO_N "checking for library containing uuid_to_str... $ECHO_C" >&6
16838 if test "${ac_cv_search_uuid_to_str+set}" = set; then
16839   echo $ECHO_N "(cached) $ECHO_C" >&6
16840 else
16841   ac_func_search_save_LIBS=$LIBS
16842 ac_cv_search_uuid_to_str=no
16843 cat >conftest.$ac_ext <<_ACEOF
16844 /* confdefs.h.  */
16845 _ACEOF
16846 cat confdefs.h >>conftest.$ac_ext
16847 cat >>conftest.$ac_ext <<_ACEOF
16848 /* end confdefs.h.  */
16849
16850 /* Override any gcc2 internal prototype to avoid an error.  */
16851 #ifdef __cplusplus
16852 extern "C"
16853 #endif
16854 /* We use char because int might match the return type of a gcc2
16855    builtin and then its argument prototype would still apply.  */
16856 char uuid_to_str ();
16857 int
16858 main ()
16859 {
16860 uuid_to_str ();
16861   ;
16862   return 0;
16863 }
16864 _ACEOF
16865 rm -f conftest.$ac_objext conftest$ac_exeext
16866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16867   (eval $ac_link) 2>conftest.er1
16868   ac_status=$?
16869   grep -v '^ *+' conftest.er1 >conftest.err
16870   rm -f conftest.er1
16871   cat conftest.err >&5
16872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16873   (exit $ac_status); } &&
16874          { ac_try='test -z "$ac_c_werror_flag"
16875                          || test ! -s conftest.err'
16876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16877   (eval $ac_try) 2>&5
16878   ac_status=$?
16879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16880   (exit $ac_status); }; } &&
16881          { ac_try='test -s conftest$ac_exeext'
16882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16883   (eval $ac_try) 2>&5
16884   ac_status=$?
16885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16886   (exit $ac_status); }; }; then
16887   ac_cv_search_uuid_to_str="none required"
16888 else
16889   echo "$as_me: failed program was:" >&5
16890 sed 's/^/| /' conftest.$ac_ext >&5
16891
16892 fi
16893 rm -f conftest.err conftest.$ac_objext \
16894       conftest$ac_exeext conftest.$ac_ext
16895 if test "$ac_cv_search_uuid_to_str" = no; then
16896   for ac_lib in uuid; do
16897     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16898     cat >conftest.$ac_ext <<_ACEOF
16899 /* confdefs.h.  */
16900 _ACEOF
16901 cat confdefs.h >>conftest.$ac_ext
16902 cat >>conftest.$ac_ext <<_ACEOF
16903 /* end confdefs.h.  */
16904
16905 /* Override any gcc2 internal prototype to avoid an error.  */
16906 #ifdef __cplusplus
16907 extern "C"
16908 #endif
16909 /* We use char because int might match the return type of a gcc2
16910    builtin and then its argument prototype would still apply.  */
16911 char uuid_to_str ();
16912 int
16913 main ()
16914 {
16915 uuid_to_str ();
16916   ;
16917   return 0;
16918 }
16919 _ACEOF
16920 rm -f conftest.$ac_objext conftest$ac_exeext
16921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16922   (eval $ac_link) 2>conftest.er1
16923   ac_status=$?
16924   grep -v '^ *+' conftest.er1 >conftest.err
16925   rm -f conftest.er1
16926   cat conftest.err >&5
16927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16928   (exit $ac_status); } &&
16929          { ac_try='test -z "$ac_c_werror_flag"
16930                          || test ! -s conftest.err'
16931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16932   (eval $ac_try) 2>&5
16933   ac_status=$?
16934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16935   (exit $ac_status); }; } &&
16936          { ac_try='test -s conftest$ac_exeext'
16937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16938   (eval $ac_try) 2>&5
16939   ac_status=$?
16940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16941   (exit $ac_status); }; }; then
16942   ac_cv_search_uuid_to_str="-l$ac_lib"
16943 break
16944 else
16945   echo "$as_me: failed program was:" >&5
16946 sed 's/^/| /' conftest.$ac_ext >&5
16947
16948 fi
16949 rm -f conftest.err conftest.$ac_objext \
16950       conftest$ac_exeext conftest.$ac_ext
16951   done
16952 fi
16953 LIBS=$ac_func_search_save_LIBS
16954 fi
16955 echo "$as_me:$LINENO: result: $ac_cv_search_uuid_to_str" >&5
16956 echo "${ECHO_T}$ac_cv_search_uuid_to_str" >&6
16957 if test "$ac_cv_search_uuid_to_str" != no; then
16958   test "$ac_cv_search_uuid_to_str" = "none required" || LIBS="$ac_cv_search_uuid_to_str $LIBS"
16959   have_uuid=yes
16960 else
16961   :
16962 fi
16963
16964         LIBS="$save_LIBS"
16965
16966         if test have_uuid = yes ; then
16967
16968 cat >>confdefs.h <<\_ACEOF
16969 #define HAVE_UUID_TO_STR 1
16970 _ACEOF
16971
16972
16973                 test "$ac_cv_search_uuid_to_str" = "none required" || \
16974                         SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
16975         fi
16976 fi
16977
16978 if test $have_uuid = no ; then
16979         echo "$as_me:$LINENO: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
16980 echo $ECHO_N "checking to see if -lrpcrt4 is needed for win32 UUID support... $ECHO_C" >&6
16981         save_LIBS="$LIBS"
16982         LIBS="$LIBS -lrpcrt4"
16983         cat >conftest.$ac_ext <<_ACEOF
16984 /* confdefs.h.  */
16985 _ACEOF
16986 cat confdefs.h >>conftest.$ac_ext
16987 cat >>conftest.$ac_ext <<_ACEOF
16988 /* end confdefs.h.  */
16989
16990                 int __stdcall UuidCreate(void *);
16991                 int __stdcall UuidToStringA(void *,void **);
16992
16993 int
16994 main ()
16995 {
16996
16997                 UuidCreate(0);
16998                 UuidToStringA(0,0);
16999
17000   ;
17001   return 0;
17002 }
17003 _ACEOF
17004 rm -f conftest.$ac_objext conftest$ac_exeext
17005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17006   (eval $ac_link) 2>conftest.er1
17007   ac_status=$?
17008   grep -v '^ *+' conftest.er1 >conftest.err
17009   rm -f conftest.er1
17010   cat conftest.err >&5
17011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17012   (exit $ac_status); } &&
17013          { ac_try='test -z "$ac_c_werror_flag"
17014                          || test ! -s conftest.err'
17015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17016   (eval $ac_try) 2>&5
17017   ac_status=$?
17018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17019   (exit $ac_status); }; } &&
17020          { ac_try='test -s conftest$ac_exeext'
17021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17022   (eval $ac_try) 2>&5
17023   ac_status=$?
17024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17025   (exit $ac_status); }; }; then
17026   need_rpcrt=yes
17027 else
17028   echo "$as_me: failed program was:" >&5
17029 sed 's/^/| /' conftest.$ac_ext >&5
17030
17031 need_rpcrt=no
17032 fi
17033 rm -f conftest.err conftest.$ac_objext \
17034       conftest$ac_exeext conftest.$ac_ext
17035         if test $need_rpcrt = yes; then
17036                 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
17037         fi
17038         LIBS="$save_LIBS"
17039         echo "$as_me:$LINENO: result: $need_rpcrt" >&5
17040 echo "${ECHO_T}$need_rpcrt" >&6
17041 fi
17042
17043 ol_cv_lib_resolver=no
17044 if test $ol_cv_lib_resolver = no ; then
17045         echo "$as_me:$LINENO: checking for resolver link (default)" >&5
17046 echo $ECHO_N "checking for resolver link (default)... $ECHO_C" >&6
17047 if test "${ol_cv_resolver_none+set}" = set; then
17048   echo $ECHO_N "(cached) $ECHO_C" >&6
17049 else
17050
17051         ol_RESOLVER_LIB=
17052         ol_LIBS=$LIBS
17053         LIBS="$ol_RESOLVER_LIB $LIBS"
17054
17055         cat >conftest.$ac_ext <<_ACEOF
17056 /* confdefs.h.  */
17057 _ACEOF
17058 cat confdefs.h >>conftest.$ac_ext
17059 cat >>conftest.$ac_ext <<_ACEOF
17060 /* end confdefs.h.  */
17061
17062 #ifdef HAVE_SYS_TYPES_H
17063 #       include <sys/types.h>
17064 #endif
17065 #include <netinet/in.h>
17066 #ifdef HAVE_ARPA_NAMESER_H
17067 #       include <arpa/nameser.h>
17068 #endif
17069 #ifdef HAVE_RESOLV_H
17070 #       include <resolv.h>
17071 #endif
17072
17073 int
17074 main ()
17075 {
17076 {
17077         int len, status;
17078         char *request = NULL;
17079         unsigned char reply[64*1024];
17080         unsigned char host[64*1024];
17081         unsigned char *p;
17082
17083 #ifdef NS_HFIXEDSZ
17084         /* Bind 8/9 interface */
17085         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17086 #else
17087         /* Bind 4 interface */
17088 # ifndef T_SRV
17089 #  define T_SRV 33
17090 # endif
17091         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17092 #endif
17093         p = reply;
17094 #ifdef NS_HFIXEDSZ
17095         /* Bind 8/9 interface */
17096         p += NS_HFIXEDSZ;
17097 #elif defined(HFIXEDSZ)
17098         /* Bind 4 interface w/ HFIXEDSZ */
17099         p += HFIXEDSZ;
17100 #else
17101         /* Bind 4 interface w/o HFIXEDSZ */
17102         p += sizeof(HEADER);
17103 #endif
17104         status = dn_expand( reply, reply+len, p, host, sizeof(host));
17105 }
17106   ;
17107   return 0;
17108 }
17109 _ACEOF
17110 rm -f conftest.$ac_objext conftest$ac_exeext
17111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17112   (eval $ac_link) 2>conftest.er1
17113   ac_status=$?
17114   grep -v '^ *+' conftest.er1 >conftest.err
17115   rm -f conftest.er1
17116   cat conftest.err >&5
17117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17118   (exit $ac_status); } &&
17119          { ac_try='test -z "$ac_c_werror_flag"
17120                          || test ! -s conftest.err'
17121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17122   (eval $ac_try) 2>&5
17123   ac_status=$?
17124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17125   (exit $ac_status); }; } &&
17126          { ac_try='test -s conftest$ac_exeext'
17127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17128   (eval $ac_try) 2>&5
17129   ac_status=$?
17130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17131   (exit $ac_status); }; }; then
17132   ol_cv_resolver_none=yes
17133 else
17134   echo "$as_me: failed program was:" >&5
17135 sed 's/^/| /' conftest.$ac_ext >&5
17136
17137 ol_cv_resolver_none=no
17138 fi
17139 rm -f conftest.err conftest.$ac_objext \
17140       conftest$ac_exeext conftest.$ac_ext
17141
17142         LIBS="$ol_LIBS"
17143
17144 fi
17145 echo "$as_me:$LINENO: result: $ol_cv_resolver_none" >&5
17146 echo "${ECHO_T}$ol_cv_resolver_none" >&6
17147
17148         if test $ol_cv_resolver_none = yes ; then
17149                 ol_cv_lib_resolver=yes
17150         fi
17151 fi
17152
17153 if test $ol_cv_lib_resolver = no ; then
17154         echo "$as_me:$LINENO: checking for resolver link (-lresolv)" >&5
17155 echo $ECHO_N "checking for resolver link (-lresolv)... $ECHO_C" >&6
17156 if test "${ol_cv_resolver_resolv+set}" = set; then
17157   echo $ECHO_N "(cached) $ECHO_C" >&6
17158 else
17159
17160         ol_RESOLVER_LIB=-lresolv
17161         ol_LIBS=$LIBS
17162         LIBS="$ol_RESOLVER_LIB $LIBS"
17163
17164         cat >conftest.$ac_ext <<_ACEOF
17165 /* confdefs.h.  */
17166 _ACEOF
17167 cat confdefs.h >>conftest.$ac_ext
17168 cat >>conftest.$ac_ext <<_ACEOF
17169 /* end confdefs.h.  */
17170
17171 #ifdef HAVE_SYS_TYPES_H
17172 #       include <sys/types.h>
17173 #endif
17174 #include <netinet/in.h>
17175 #ifdef HAVE_ARPA_NAMESER_H
17176 #       include <arpa/nameser.h>
17177 #endif
17178 #ifdef HAVE_RESOLV_H
17179 #       include <resolv.h>
17180 #endif
17181
17182 int
17183 main ()
17184 {
17185 {
17186         int len, status;
17187         char *request = NULL;
17188         unsigned char reply[64*1024];
17189         unsigned char host[64*1024];
17190         unsigned char *p;
17191
17192 #ifdef NS_HFIXEDSZ
17193         /* Bind 8/9 interface */
17194         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17195 #else
17196         /* Bind 4 interface */
17197 # ifndef T_SRV
17198 #  define T_SRV 33
17199 # endif
17200         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17201 #endif
17202         p = reply;
17203 #ifdef NS_HFIXEDSZ
17204         /* Bind 8/9 interface */
17205         p += NS_HFIXEDSZ;
17206 #elif defined(HFIXEDSZ)
17207         /* Bind 4 interface w/ HFIXEDSZ */
17208         p += HFIXEDSZ;
17209 #else
17210         /* Bind 4 interface w/o HFIXEDSZ */
17211         p += sizeof(HEADER);
17212 #endif
17213         status = dn_expand( reply, reply+len, p, host, sizeof(host));
17214 }
17215   ;
17216   return 0;
17217 }
17218 _ACEOF
17219 rm -f conftest.$ac_objext conftest$ac_exeext
17220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17221   (eval $ac_link) 2>conftest.er1
17222   ac_status=$?
17223   grep -v '^ *+' conftest.er1 >conftest.err
17224   rm -f conftest.er1
17225   cat conftest.err >&5
17226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17227   (exit $ac_status); } &&
17228          { ac_try='test -z "$ac_c_werror_flag"
17229                          || test ! -s conftest.err'
17230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17231   (eval $ac_try) 2>&5
17232   ac_status=$?
17233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17234   (exit $ac_status); }; } &&
17235          { ac_try='test -s conftest$ac_exeext'
17236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17237   (eval $ac_try) 2>&5
17238   ac_status=$?
17239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17240   (exit $ac_status); }; }; then
17241   ol_cv_resolver_resolv=yes
17242 else
17243   echo "$as_me: failed program was:" >&5
17244 sed 's/^/| /' conftest.$ac_ext >&5
17245
17246 ol_cv_resolver_resolv=no
17247 fi
17248 rm -f conftest.err conftest.$ac_objext \
17249       conftest$ac_exeext conftest.$ac_ext
17250
17251         LIBS="$ol_LIBS"
17252
17253 fi
17254 echo "$as_me:$LINENO: result: $ol_cv_resolver_resolv" >&5
17255 echo "${ECHO_T}$ol_cv_resolver_resolv" >&6
17256
17257         if test $ol_cv_resolver_resolv = yes ; then
17258                 ol_cv_lib_resolver=-lresolv
17259         fi
17260 fi
17261
17262 if test $ol_cv_lib_resolver = no ; then
17263         echo "$as_me:$LINENO: checking for resolver link (-lbind)" >&5
17264 echo $ECHO_N "checking for resolver link (-lbind)... $ECHO_C" >&6
17265 if test "${ol_cv_resolver_bind+set}" = set; then
17266   echo $ECHO_N "(cached) $ECHO_C" >&6
17267 else
17268
17269         ol_RESOLVER_LIB=-lbind
17270         ol_LIBS=$LIBS
17271         LIBS="$ol_RESOLVER_LIB $LIBS"
17272
17273         cat >conftest.$ac_ext <<_ACEOF
17274 /* confdefs.h.  */
17275 _ACEOF
17276 cat confdefs.h >>conftest.$ac_ext
17277 cat >>conftest.$ac_ext <<_ACEOF
17278 /* end confdefs.h.  */
17279
17280 #ifdef HAVE_SYS_TYPES_H
17281 #       include <sys/types.h>
17282 #endif
17283 #include <netinet/in.h>
17284 #ifdef HAVE_ARPA_NAMESER_H
17285 #       include <arpa/nameser.h>
17286 #endif
17287 #ifdef HAVE_RESOLV_H
17288 #       include <resolv.h>
17289 #endif
17290
17291 int
17292 main ()
17293 {
17294 {
17295         int len, status;
17296         char *request = NULL;
17297         unsigned char reply[64*1024];
17298         unsigned char host[64*1024];
17299         unsigned char *p;
17300
17301 #ifdef NS_HFIXEDSZ
17302         /* Bind 8/9 interface */
17303         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17304 #else
17305         /* Bind 4 interface */
17306 # ifndef T_SRV
17307 #  define T_SRV 33
17308 # endif
17309         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17310 #endif
17311         p = reply;
17312 #ifdef NS_HFIXEDSZ
17313         /* Bind 8/9 interface */
17314         p += NS_HFIXEDSZ;
17315 #elif defined(HFIXEDSZ)
17316         /* Bind 4 interface w/ HFIXEDSZ */
17317         p += HFIXEDSZ;
17318 #else
17319         /* Bind 4 interface w/o HFIXEDSZ */
17320         p += sizeof(HEADER);
17321 #endif
17322         status = dn_expand( reply, reply+len, p, host, sizeof(host));
17323 }
17324   ;
17325   return 0;
17326 }
17327 _ACEOF
17328 rm -f conftest.$ac_objext conftest$ac_exeext
17329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17330   (eval $ac_link) 2>conftest.er1
17331   ac_status=$?
17332   grep -v '^ *+' conftest.er1 >conftest.err
17333   rm -f conftest.er1
17334   cat conftest.err >&5
17335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17336   (exit $ac_status); } &&
17337          { ac_try='test -z "$ac_c_werror_flag"
17338                          || test ! -s conftest.err'
17339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17340   (eval $ac_try) 2>&5
17341   ac_status=$?
17342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17343   (exit $ac_status); }; } &&
17344          { ac_try='test -s conftest$ac_exeext'
17345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17346   (eval $ac_try) 2>&5
17347   ac_status=$?
17348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17349   (exit $ac_status); }; }; then
17350   ol_cv_resolver_bind=yes
17351 else
17352   echo "$as_me: failed program was:" >&5
17353 sed 's/^/| /' conftest.$ac_ext >&5
17354
17355 ol_cv_resolver_bind=no
17356 fi
17357 rm -f conftest.err conftest.$ac_objext \
17358       conftest$ac_exeext conftest.$ac_ext
17359
17360         LIBS="$ol_LIBS"
17361
17362 fi
17363 echo "$as_me:$LINENO: result: $ol_cv_resolver_bind" >&5
17364 echo "${ECHO_T}$ol_cv_resolver_bind" >&6
17365
17366         if test $ol_cv_resolver_bind = yes ; then
17367                 ol_cv_lib_resolver=-lbind
17368         fi
17369 fi
17370
17371
17372
17373 ol_link_dnssrv=no
17374 if test "$ol_cv_lib_resolver" != no ; then
17375
17376 cat >>confdefs.h <<\_ACEOF
17377 #define HAVE_RES_QUERY 1
17378 _ACEOF
17379
17380
17381         if test "$ol_enable_dnssrv" != no ; then
17382                 ol_link_dnssrv=yes
17383         fi
17384
17385         if test "$ol_cv_lib_resolver" != yes ; then
17386                 LIBS="$ol_cv_lib_resolver $LIBS"
17387         fi
17388 fi
17389
17390 if test "$ol_enable_dnssrv" = yes -o "$ol_enable_dnssrv" = mod ; then
17391         if test "$ol_link_dnssrv" = no ; then
17392                 { { echo "$as_me:$LINENO: error: DNSSRV requires res_query()" >&5
17393 echo "$as_me: error: DNSSRV requires res_query()" >&2;}
17394    { (exit 1); exit 1; }; }
17395         fi
17396 else
17397         ol_enable_dnssrv=no
17398 fi
17399
17400
17401 for ac_func in hstrerror
17402 do
17403 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17404 echo "$as_me:$LINENO: checking for $ac_func" >&5
17405 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17406 if eval "test \"\${$as_ac_var+set}\" = set"; then
17407   echo $ECHO_N "(cached) $ECHO_C" >&6
17408 else
17409   cat >conftest.$ac_ext <<_ACEOF
17410 /* confdefs.h.  */
17411 _ACEOF
17412 cat confdefs.h >>conftest.$ac_ext
17413 cat >>conftest.$ac_ext <<_ACEOF
17414 /* end confdefs.h.  */
17415 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17416    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17417 #define $ac_func innocuous_$ac_func
17418
17419 /* System header to define __stub macros and hopefully few prototypes,
17420     which can conflict with char $ac_func (); below.
17421     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17422     <limits.h> exists even on freestanding compilers.  */
17423
17424 #ifdef __STDC__
17425 # include <limits.h>
17426 #else
17427 # include <assert.h>
17428 #endif
17429
17430 #undef $ac_func
17431
17432 /* Override any gcc2 internal prototype to avoid an error.  */
17433 #ifdef __cplusplus
17434 extern "C"
17435 {
17436 #endif
17437 /* We use char because int might match the return type of a gcc2
17438    builtin and then its argument prototype would still apply.  */
17439 char $ac_func ();
17440 /* The GNU C library defines this for functions which it implements
17441     to always fail with ENOSYS.  Some functions are actually named
17442     something starting with __ and the normal name is an alias.  */
17443 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17444 choke me
17445 #else
17446 char (*f) () = $ac_func;
17447 #endif
17448 #ifdef __cplusplus
17449 }
17450 #endif
17451
17452 int
17453 main ()
17454 {
17455 return f != $ac_func;
17456   ;
17457   return 0;
17458 }
17459 _ACEOF
17460 rm -f conftest.$ac_objext conftest$ac_exeext
17461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17462   (eval $ac_link) 2>conftest.er1
17463   ac_status=$?
17464   grep -v '^ *+' conftest.er1 >conftest.err
17465   rm -f conftest.er1
17466   cat conftest.err >&5
17467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17468   (exit $ac_status); } &&
17469          { ac_try='test -z "$ac_c_werror_flag"
17470                          || test ! -s conftest.err'
17471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17472   (eval $ac_try) 2>&5
17473   ac_status=$?
17474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17475   (exit $ac_status); }; } &&
17476          { ac_try='test -s conftest$ac_exeext'
17477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17478   (eval $ac_try) 2>&5
17479   ac_status=$?
17480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17481   (exit $ac_status); }; }; then
17482   eval "$as_ac_var=yes"
17483 else
17484   echo "$as_me: failed program was:" >&5
17485 sed 's/^/| /' conftest.$ac_ext >&5
17486
17487 eval "$as_ac_var=no"
17488 fi
17489 rm -f conftest.err conftest.$ac_objext \
17490       conftest$ac_exeext conftest.$ac_ext
17491 fi
17492 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17493 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17494 if test `eval echo '${'$as_ac_var'}'` = yes; then
17495   cat >>confdefs.h <<_ACEOF
17496 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17497 _ACEOF
17498
17499 fi
17500 done
17501
17502
17503
17504
17505
17506
17507 for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
17508 do
17509 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17510 echo "$as_me:$LINENO: checking for $ac_func" >&5
17511 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17512 if eval "test \"\${$as_ac_var+set}\" = set"; then
17513   echo $ECHO_N "(cached) $ECHO_C" >&6
17514 else
17515   cat >conftest.$ac_ext <<_ACEOF
17516 /* confdefs.h.  */
17517 _ACEOF
17518 cat confdefs.h >>conftest.$ac_ext
17519 cat >>conftest.$ac_ext <<_ACEOF
17520 /* end confdefs.h.  */
17521 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17522    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17523 #define $ac_func innocuous_$ac_func
17524
17525 /* System header to define __stub macros and hopefully few prototypes,
17526     which can conflict with char $ac_func (); below.
17527     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17528     <limits.h> exists even on freestanding compilers.  */
17529
17530 #ifdef __STDC__
17531 # include <limits.h>
17532 #else
17533 # include <assert.h>
17534 #endif
17535
17536 #undef $ac_func
17537
17538 /* Override any gcc2 internal prototype to avoid an error.  */
17539 #ifdef __cplusplus
17540 extern "C"
17541 {
17542 #endif
17543 /* We use char because int might match the return type of a gcc2
17544    builtin and then its argument prototype would still apply.  */
17545 char $ac_func ();
17546 /* The GNU C library defines this for functions which it implements
17547     to always fail with ENOSYS.  Some functions are actually named
17548     something starting with __ and the normal name is an alias.  */
17549 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17550 choke me
17551 #else
17552 char (*f) () = $ac_func;
17553 #endif
17554 #ifdef __cplusplus
17555 }
17556 #endif
17557
17558 int
17559 main ()
17560 {
17561 return f != $ac_func;
17562   ;
17563   return 0;
17564 }
17565 _ACEOF
17566 rm -f conftest.$ac_objext conftest$ac_exeext
17567 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17568   (eval $ac_link) 2>conftest.er1
17569   ac_status=$?
17570   grep -v '^ *+' conftest.er1 >conftest.err
17571   rm -f conftest.er1
17572   cat conftest.err >&5
17573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17574   (exit $ac_status); } &&
17575          { ac_try='test -z "$ac_c_werror_flag"
17576                          || test ! -s conftest.err'
17577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17578   (eval $ac_try) 2>&5
17579   ac_status=$?
17580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17581   (exit $ac_status); }; } &&
17582          { ac_try='test -s conftest$ac_exeext'
17583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17584   (eval $ac_try) 2>&5
17585   ac_status=$?
17586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17587   (exit $ac_status); }; }; then
17588   eval "$as_ac_var=yes"
17589 else
17590   echo "$as_me: failed program was:" >&5
17591 sed 's/^/| /' conftest.$ac_ext >&5
17592
17593 eval "$as_ac_var=no"
17594 fi
17595 rm -f conftest.err conftest.$ac_objext \
17596       conftest$ac_exeext conftest.$ac_ext
17597 fi
17598 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17599 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17600 if test `eval echo '${'$as_ac_var'}'` = yes; then
17601   cat >>confdefs.h <<_ACEOF
17602 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17603 _ACEOF
17604
17605 fi
17606 done
17607
17608
17609 ol_link_ipv6=no
17610 if test $ac_cv_func_getaddrinfo = no -o $ac_cv_func_inet_ntop = no ; then
17611         if test $ol_enable_ipv6 = yes ; then
17612                 { { echo "$as_me:$LINENO: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&5
17613 echo "$as_me: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&2;}
17614    { (exit 1); exit 1; }; }
17615         fi
17616 elif test $ol_enable_ipv6 != no ; then
17617         echo "$as_me:$LINENO: checking INET6_ADDRSTRLEN" >&5
17618 echo $ECHO_N "checking INET6_ADDRSTRLEN... $ECHO_C" >&6
17619 if test "${ol_cv_inet6_addrstrlen+set}" = set; then
17620   echo $ECHO_N "(cached) $ECHO_C" >&6
17621 else
17622
17623                 cat >conftest.$ac_ext <<_ACEOF
17624 /* confdefs.h.  */
17625 _ACEOF
17626 cat confdefs.h >>conftest.$ac_ext
17627 cat >>conftest.$ac_ext <<_ACEOF
17628 /* end confdefs.h.  */
17629
17630 #                       include <netinet/in.h>
17631 #                       ifdef INET6_ADDRSTRLEN
17632                                 __has_inet6_addrstrlen__;
17633 #                       endif
17634
17635 _ACEOF
17636 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17637   $EGREP "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
17638   ol_cv_inet6_addrstrlen=yes
17639 else
17640   ol_cv_inet6_addrstrlen=no
17641 fi
17642 rm -f conftest*
17643
17644 fi
17645 echo "$as_me:$LINENO: result: $ol_cv_inet6_addrstrlen" >&5
17646 echo "${ECHO_T}$ol_cv_inet6_addrstrlen" >&6
17647
17648
17649         echo "$as_me:$LINENO: checking struct sockaddr_storage" >&5
17650 echo $ECHO_N "checking struct sockaddr_storage... $ECHO_C" >&6
17651 if test "${ol_cv_struct_sockaddr_storage+set}" = set; then
17652   echo $ECHO_N "(cached) $ECHO_C" >&6
17653 else
17654
17655                 cat >conftest.$ac_ext <<_ACEOF
17656 /* confdefs.h.  */
17657 _ACEOF
17658 cat confdefs.h >>conftest.$ac_ext
17659 cat >>conftest.$ac_ext <<_ACEOF
17660 /* end confdefs.h.  */
17661
17662 #include <sys/types.h>
17663 #include <sys/socket.h>
17664
17665 int
17666 main ()
17667 {
17668
17669                         struct sockaddr_storage ss;
17670
17671   ;
17672   return 0;
17673 }
17674 _ACEOF
17675 rm -f conftest.$ac_objext
17676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17677   (eval $ac_compile) 2>conftest.er1
17678   ac_status=$?
17679   grep -v '^ *+' conftest.er1 >conftest.err
17680   rm -f conftest.er1
17681   cat conftest.err >&5
17682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17683   (exit $ac_status); } &&
17684          { ac_try='test -z "$ac_c_werror_flag"
17685                          || test ! -s conftest.err'
17686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17687   (eval $ac_try) 2>&5
17688   ac_status=$?
17689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17690   (exit $ac_status); }; } &&
17691          { ac_try='test -s conftest.$ac_objext'
17692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17693   (eval $ac_try) 2>&5
17694   ac_status=$?
17695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17696   (exit $ac_status); }; }; then
17697   ol_cv_struct_sockaddr_storage=yes
17698 else
17699   echo "$as_me: failed program was:" >&5
17700 sed 's/^/| /' conftest.$ac_ext >&5
17701
17702 ol_cv_struct_sockaddr_storage=no
17703 fi
17704 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17705 fi
17706 echo "$as_me:$LINENO: result: $ol_cv_struct_sockaddr_storage" >&5
17707 echo "${ECHO_T}$ol_cv_struct_sockaddr_storage" >&6
17708
17709         if test $ol_cv_inet6_addrstrlen = yes \
17710                 -a $ol_cv_struct_sockaddr_storage = yes ; then
17711                 ol_link_ipv6=yes
17712         elif test $ol_enable_ipv6 = yes \
17713                         -a $ol_cv_inet6_addrstrlen = no ; then
17714                 { { echo "$as_me:$LINENO: error: IPv6 support requires INET6_ADDRSTRLEN" >&5
17715 echo "$as_me: error: IPv6 support requires INET6_ADDRSTRLEN" >&2;}
17716    { (exit 1); exit 1; }; }
17717         elif test $ol_enable_ipv6 = yes \
17718                         -a $ol_cv_struct_sockaddr_storage = no ; then
17719                 { { echo "$as_me:$LINENO: error: IPv6 support requires struct sockaddr_storage" >&5
17720 echo "$as_me: error: IPv6 support requires struct sockaddr_storage" >&2;}
17721    { (exit 1); exit 1; }; }
17722         fi
17723 fi
17724
17725 if test $ol_enable_local != no ; then
17726
17727 for ac_header in sys/un.h
17728 do
17729 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17730 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17731   echo "$as_me:$LINENO: checking for $ac_header" >&5
17732 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17733 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17734   echo $ECHO_N "(cached) $ECHO_C" >&6
17735 fi
17736 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17737 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17738 else
17739   # Is the header compilable?
17740 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17741 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17742 cat >conftest.$ac_ext <<_ACEOF
17743 /* confdefs.h.  */
17744 _ACEOF
17745 cat confdefs.h >>conftest.$ac_ext
17746 cat >>conftest.$ac_ext <<_ACEOF
17747 /* end confdefs.h.  */
17748 $ac_includes_default
17749 #include <$ac_header>
17750 _ACEOF
17751 rm -f conftest.$ac_objext
17752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17753   (eval $ac_compile) 2>conftest.er1
17754   ac_status=$?
17755   grep -v '^ *+' conftest.er1 >conftest.err
17756   rm -f conftest.er1
17757   cat conftest.err >&5
17758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17759   (exit $ac_status); } &&
17760          { ac_try='test -z "$ac_c_werror_flag"
17761                          || test ! -s conftest.err'
17762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17763   (eval $ac_try) 2>&5
17764   ac_status=$?
17765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17766   (exit $ac_status); }; } &&
17767          { ac_try='test -s conftest.$ac_objext'
17768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17769   (eval $ac_try) 2>&5
17770   ac_status=$?
17771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17772   (exit $ac_status); }; }; then
17773   ac_header_compiler=yes
17774 else
17775   echo "$as_me: failed program was:" >&5
17776 sed 's/^/| /' conftest.$ac_ext >&5
17777
17778 ac_header_compiler=no
17779 fi
17780 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17781 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17782 echo "${ECHO_T}$ac_header_compiler" >&6
17783
17784 # Is the header present?
17785 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17786 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17787 cat >conftest.$ac_ext <<_ACEOF
17788 /* confdefs.h.  */
17789 _ACEOF
17790 cat confdefs.h >>conftest.$ac_ext
17791 cat >>conftest.$ac_ext <<_ACEOF
17792 /* end confdefs.h.  */
17793 #include <$ac_header>
17794 _ACEOF
17795 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17796   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17797   ac_status=$?
17798   grep -v '^ *+' conftest.er1 >conftest.err
17799   rm -f conftest.er1
17800   cat conftest.err >&5
17801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17802   (exit $ac_status); } >/dev/null; then
17803   if test -s conftest.err; then
17804     ac_cpp_err=$ac_c_preproc_warn_flag
17805     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17806   else
17807     ac_cpp_err=
17808   fi
17809 else
17810   ac_cpp_err=yes
17811 fi
17812 if test -z "$ac_cpp_err"; then
17813   ac_header_preproc=yes
17814 else
17815   echo "$as_me: failed program was:" >&5
17816 sed 's/^/| /' conftest.$ac_ext >&5
17817
17818   ac_header_preproc=no
17819 fi
17820 rm -f conftest.err conftest.$ac_ext
17821 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17822 echo "${ECHO_T}$ac_header_preproc" >&6
17823
17824 # So?  What about this header?
17825 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17826   yes:no: )
17827     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17828 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17829     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17830 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17831     ac_header_preproc=yes
17832     ;;
17833   no:yes:* )
17834     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17835 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17836     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17837 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17838     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17839 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17840     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17841 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17842     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17843 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17844     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17845 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17846     (
17847       cat <<\_ASBOX
17848 ## ------------------------------------------ ##
17849 ## Report this to the AC_PACKAGE_NAME lists.  ##
17850 ## ------------------------------------------ ##
17851 _ASBOX
17852     ) |
17853       sed "s/^/$as_me: WARNING:     /" >&2
17854     ;;
17855 esac
17856 echo "$as_me:$LINENO: checking for $ac_header" >&5
17857 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17858 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17859   echo $ECHO_N "(cached) $ECHO_C" >&6
17860 else
17861   eval "$as_ac_Header=\$ac_header_preproc"
17862 fi
17863 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17864 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17865
17866 fi
17867 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17868   cat >>confdefs.h <<_ACEOF
17869 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17870 _ACEOF
17871
17872 fi
17873
17874 done
17875
17876
17877         if test $ol_enable_local = auto ; then
17878                 ol_enable_local=$ac_cv_header_sys_un_h
17879         elif test $ac_cv_header_sys_un_h = no ; then
17880                 { { echo "$as_me:$LINENO: error: AF_LOCAL domain support requires sys/un.h" >&5
17881 echo "$as_me: error: AF_LOCAL domain support requires sys/un.h" >&2;}
17882    { (exit 1); exit 1; }; }
17883         fi
17884 fi
17885
17886 ol_link_kbind=no
17887 ol_link_krb5=no
17888 ol_link_krb4=no
17889
17890 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
17891         -o $ol_with_kerberos = k5 -o $ol_with_kerberos = k5only \
17892         -o $ol_with_kerberos = k425 ; then
17893
17894
17895 for ac_header in krb5.h
17896 do
17897 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17898 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17899   echo "$as_me:$LINENO: checking for $ac_header" >&5
17900 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17901 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17902   echo $ECHO_N "(cached) $ECHO_C" >&6
17903 fi
17904 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17905 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17906 else
17907   # Is the header compilable?
17908 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17909 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17910 cat >conftest.$ac_ext <<_ACEOF
17911 /* confdefs.h.  */
17912 _ACEOF
17913 cat confdefs.h >>conftest.$ac_ext
17914 cat >>conftest.$ac_ext <<_ACEOF
17915 /* end confdefs.h.  */
17916 $ac_includes_default
17917 #include <$ac_header>
17918 _ACEOF
17919 rm -f conftest.$ac_objext
17920 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17921   (eval $ac_compile) 2>conftest.er1
17922   ac_status=$?
17923   grep -v '^ *+' conftest.er1 >conftest.err
17924   rm -f conftest.er1
17925   cat conftest.err >&5
17926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17927   (exit $ac_status); } &&
17928          { ac_try='test -z "$ac_c_werror_flag"
17929                          || test ! -s conftest.err'
17930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17931   (eval $ac_try) 2>&5
17932   ac_status=$?
17933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17934   (exit $ac_status); }; } &&
17935          { ac_try='test -s conftest.$ac_objext'
17936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17937   (eval $ac_try) 2>&5
17938   ac_status=$?
17939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17940   (exit $ac_status); }; }; then
17941   ac_header_compiler=yes
17942 else
17943   echo "$as_me: failed program was:" >&5
17944 sed 's/^/| /' conftest.$ac_ext >&5
17945
17946 ac_header_compiler=no
17947 fi
17948 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17949 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17950 echo "${ECHO_T}$ac_header_compiler" >&6
17951
17952 # Is the header present?
17953 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17954 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17955 cat >conftest.$ac_ext <<_ACEOF
17956 /* confdefs.h.  */
17957 _ACEOF
17958 cat confdefs.h >>conftest.$ac_ext
17959 cat >>conftest.$ac_ext <<_ACEOF
17960 /* end confdefs.h.  */
17961 #include <$ac_header>
17962 _ACEOF
17963 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17964   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17965   ac_status=$?
17966   grep -v '^ *+' conftest.er1 >conftest.err
17967   rm -f conftest.er1
17968   cat conftest.err >&5
17969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17970   (exit $ac_status); } >/dev/null; then
17971   if test -s conftest.err; then
17972     ac_cpp_err=$ac_c_preproc_warn_flag
17973     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17974   else
17975     ac_cpp_err=
17976   fi
17977 else
17978   ac_cpp_err=yes
17979 fi
17980 if test -z "$ac_cpp_err"; then
17981   ac_header_preproc=yes
17982 else
17983   echo "$as_me: failed program was:" >&5
17984 sed 's/^/| /' conftest.$ac_ext >&5
17985
17986   ac_header_preproc=no
17987 fi
17988 rm -f conftest.err conftest.$ac_ext
17989 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17990 echo "${ECHO_T}$ac_header_preproc" >&6
17991
17992 # So?  What about this header?
17993 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17994   yes:no: )
17995     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17996 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17997     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17998 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17999     ac_header_preproc=yes
18000     ;;
18001   no:yes:* )
18002     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18003 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18004     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18005 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18006     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18007 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18008     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18009 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18010     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18011 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18012     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18013 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18014     (
18015       cat <<\_ASBOX
18016 ## ------------------------------------------ ##
18017 ## Report this to the AC_PACKAGE_NAME lists.  ##
18018 ## ------------------------------------------ ##
18019 _ASBOX
18020     ) |
18021       sed "s/^/$as_me: WARNING:     /" >&2
18022     ;;
18023 esac
18024 echo "$as_me:$LINENO: checking for $ac_header" >&5
18025 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18026 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18027   echo $ECHO_N "(cached) $ECHO_C" >&6
18028 else
18029   eval "$as_ac_Header=\$ac_header_preproc"
18030 fi
18031 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18032 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18033
18034 fi
18035 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18036   cat >>confdefs.h <<_ACEOF
18037 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18038 _ACEOF
18039
18040 fi
18041
18042 done
18043
18044
18045         if test $ac_cv_header_krb5_h = yes ; then
18046
18047 for ac_header in heim_err.h
18048 do
18049 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18050 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18051   echo "$as_me:$LINENO: checking for $ac_header" >&5
18052 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18053 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18054   echo $ECHO_N "(cached) $ECHO_C" >&6
18055 fi
18056 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18057 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18058 else
18059   # Is the header compilable?
18060 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18061 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18062 cat >conftest.$ac_ext <<_ACEOF
18063 /* confdefs.h.  */
18064 _ACEOF
18065 cat confdefs.h >>conftest.$ac_ext
18066 cat >>conftest.$ac_ext <<_ACEOF
18067 /* end confdefs.h.  */
18068 $ac_includes_default
18069 #include <$ac_header>
18070 _ACEOF
18071 rm -f conftest.$ac_objext
18072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18073   (eval $ac_compile) 2>conftest.er1
18074   ac_status=$?
18075   grep -v '^ *+' conftest.er1 >conftest.err
18076   rm -f conftest.er1
18077   cat conftest.err >&5
18078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18079   (exit $ac_status); } &&
18080          { ac_try='test -z "$ac_c_werror_flag"
18081                          || test ! -s conftest.err'
18082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18083   (eval $ac_try) 2>&5
18084   ac_status=$?
18085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18086   (exit $ac_status); }; } &&
18087          { ac_try='test -s conftest.$ac_objext'
18088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18089   (eval $ac_try) 2>&5
18090   ac_status=$?
18091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18092   (exit $ac_status); }; }; then
18093   ac_header_compiler=yes
18094 else
18095   echo "$as_me: failed program was:" >&5
18096 sed 's/^/| /' conftest.$ac_ext >&5
18097
18098 ac_header_compiler=no
18099 fi
18100 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18101 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18102 echo "${ECHO_T}$ac_header_compiler" >&6
18103
18104 # Is the header present?
18105 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18106 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18107 cat >conftest.$ac_ext <<_ACEOF
18108 /* confdefs.h.  */
18109 _ACEOF
18110 cat confdefs.h >>conftest.$ac_ext
18111 cat >>conftest.$ac_ext <<_ACEOF
18112 /* end confdefs.h.  */
18113 #include <$ac_header>
18114 _ACEOF
18115 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18116   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18117   ac_status=$?
18118   grep -v '^ *+' conftest.er1 >conftest.err
18119   rm -f conftest.er1
18120   cat conftest.err >&5
18121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18122   (exit $ac_status); } >/dev/null; then
18123   if test -s conftest.err; then
18124     ac_cpp_err=$ac_c_preproc_warn_flag
18125     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18126   else
18127     ac_cpp_err=
18128   fi
18129 else
18130   ac_cpp_err=yes
18131 fi
18132 if test -z "$ac_cpp_err"; then
18133   ac_header_preproc=yes
18134 else
18135   echo "$as_me: failed program was:" >&5
18136 sed 's/^/| /' conftest.$ac_ext >&5
18137
18138   ac_header_preproc=no
18139 fi
18140 rm -f conftest.err conftest.$ac_ext
18141 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18142 echo "${ECHO_T}$ac_header_preproc" >&6
18143
18144 # So?  What about this header?
18145 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18146   yes:no: )
18147     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18148 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18149     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18150 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18151     ac_header_preproc=yes
18152     ;;
18153   no:yes:* )
18154     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18155 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18156     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18157 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18158     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18159 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18160     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18161 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18162     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18163 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18164     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18165 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18166     (
18167       cat <<\_ASBOX
18168 ## ------------------------------------------ ##
18169 ## Report this to the AC_PACKAGE_NAME lists.  ##
18170 ## ------------------------------------------ ##
18171 _ASBOX
18172     ) |
18173       sed "s/^/$as_me: WARNING:     /" >&2
18174     ;;
18175 esac
18176 echo "$as_me:$LINENO: checking for $ac_header" >&5
18177 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18178 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18179   echo $ECHO_N "(cached) $ECHO_C" >&6
18180 else
18181   eval "$as_ac_Header=\$ac_header_preproc"
18182 fi
18183 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18184 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18185
18186 fi
18187 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18188   cat >>confdefs.h <<_ACEOF
18189 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18190 _ACEOF
18191
18192 fi
18193
18194 done
18195
18196                 if test $ac_cv_header_heim_err_h = yes ; then
18197                         krb5_impl=heimdal
18198                 else
18199                         krb5_impl=mit
18200                 fi
18201
18202                 if test $krb5_impl = mit; then
18203                         echo "$as_me:$LINENO: checking for main in -lk5crypto" >&5
18204 echo $ECHO_N "checking for main in -lk5crypto... $ECHO_C" >&6
18205 if test "${ac_cv_lib_k5crypto_main+set}" = set; then
18206   echo $ECHO_N "(cached) $ECHO_C" >&6
18207 else
18208   ac_check_lib_save_LIBS=$LIBS
18209 LIBS="-lk5crypto  $LIBS"
18210 cat >conftest.$ac_ext <<_ACEOF
18211 /* confdefs.h.  */
18212 _ACEOF
18213 cat confdefs.h >>conftest.$ac_ext
18214 cat >>conftest.$ac_ext <<_ACEOF
18215 /* end confdefs.h.  */
18216
18217
18218 int
18219 main ()
18220 {
18221 main ();
18222   ;
18223   return 0;
18224 }
18225 _ACEOF
18226 rm -f conftest.$ac_objext conftest$ac_exeext
18227 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18228   (eval $ac_link) 2>conftest.er1
18229   ac_status=$?
18230   grep -v '^ *+' conftest.er1 >conftest.err
18231   rm -f conftest.er1
18232   cat conftest.err >&5
18233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18234   (exit $ac_status); } &&
18235          { ac_try='test -z "$ac_c_werror_flag"
18236                          || test ! -s conftest.err'
18237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18238   (eval $ac_try) 2>&5
18239   ac_status=$?
18240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18241   (exit $ac_status); }; } &&
18242          { ac_try='test -s conftest$ac_exeext'
18243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18244   (eval $ac_try) 2>&5
18245   ac_status=$?
18246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18247   (exit $ac_status); }; }; then
18248   ac_cv_lib_k5crypto_main=yes
18249 else
18250   echo "$as_me: failed program was:" >&5
18251 sed 's/^/| /' conftest.$ac_ext >&5
18252
18253 ac_cv_lib_k5crypto_main=no
18254 fi
18255 rm -f conftest.err conftest.$ac_objext \
18256       conftest$ac_exeext conftest.$ac_ext
18257 LIBS=$ac_check_lib_save_LIBS
18258 fi
18259 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_main" >&5
18260 echo "${ECHO_T}$ac_cv_lib_k5crypto_main" >&6
18261 if test $ac_cv_lib_k5crypto_main = yes; then
18262   krb5crypto=k5crypto
18263 else
18264   krb5crypto=crypto
18265 fi
18266
18267
18268                         echo "$as_me:$LINENO: checking for main in -lkrb5" >&5
18269 echo $ECHO_N "checking for main in -lkrb5... $ECHO_C" >&6
18270 if test "${ac_cv_lib_krb5_main+set}" = set; then
18271   echo $ECHO_N "(cached) $ECHO_C" >&6
18272 else
18273   ac_check_lib_save_LIBS=$LIBS
18274 LIBS="-lkrb5 -l$krb5crypto -lcom_err $LIBS"
18275 cat >conftest.$ac_ext <<_ACEOF
18276 /* confdefs.h.  */
18277 _ACEOF
18278 cat confdefs.h >>conftest.$ac_ext
18279 cat >>conftest.$ac_ext <<_ACEOF
18280 /* end confdefs.h.  */
18281
18282
18283 int
18284 main ()
18285 {
18286 main ();
18287   ;
18288   return 0;
18289 }
18290 _ACEOF
18291 rm -f conftest.$ac_objext conftest$ac_exeext
18292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18293   (eval $ac_link) 2>conftest.er1
18294   ac_status=$?
18295   grep -v '^ *+' conftest.er1 >conftest.err
18296   rm -f conftest.er1
18297   cat conftest.err >&5
18298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18299   (exit $ac_status); } &&
18300          { ac_try='test -z "$ac_c_werror_flag"
18301                          || test ! -s conftest.err'
18302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18303   (eval $ac_try) 2>&5
18304   ac_status=$?
18305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18306   (exit $ac_status); }; } &&
18307          { ac_try='test -s conftest$ac_exeext'
18308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18309   (eval $ac_try) 2>&5
18310   ac_status=$?
18311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18312   (exit $ac_status); }; }; then
18313   ac_cv_lib_krb5_main=yes
18314 else
18315   echo "$as_me: failed program was:" >&5
18316 sed 's/^/| /' conftest.$ac_ext >&5
18317
18318 ac_cv_lib_krb5_main=no
18319 fi
18320 rm -f conftest.err conftest.$ac_objext \
18321       conftest$ac_exeext conftest.$ac_ext
18322 LIBS=$ac_check_lib_save_LIBS
18323 fi
18324 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_main" >&5
18325 echo "${ECHO_T}$ac_cv_lib_krb5_main" >&6
18326 if test $ac_cv_lib_krb5_main = yes; then
18327   have_krb5=yes
18328                                 KRB5_LIBS="-lkrb5 -l$krb5crypto -lcom_err"
18329 else
18330   have_krb5=no
18331 fi
18332
18333
18334                 elif test $krb5_impl = heimdal; then
18335                         echo "$as_me:$LINENO: checking for main in -ldes" >&5
18336 echo $ECHO_N "checking for main in -ldes... $ECHO_C" >&6
18337 if test "${ac_cv_lib_des_main+set}" = set; then
18338   echo $ECHO_N "(cached) $ECHO_C" >&6
18339 else
18340   ac_check_lib_save_LIBS=$LIBS
18341 LIBS="-ldes  $LIBS"
18342 cat >conftest.$ac_ext <<_ACEOF
18343 /* confdefs.h.  */
18344 _ACEOF
18345 cat confdefs.h >>conftest.$ac_ext
18346 cat >>conftest.$ac_ext <<_ACEOF
18347 /* end confdefs.h.  */
18348
18349
18350 int
18351 main ()
18352 {
18353 main ();
18354   ;
18355   return 0;
18356 }
18357 _ACEOF
18358 rm -f conftest.$ac_objext conftest$ac_exeext
18359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18360   (eval $ac_link) 2>conftest.er1
18361   ac_status=$?
18362   grep -v '^ *+' conftest.er1 >conftest.err
18363   rm -f conftest.er1
18364   cat conftest.err >&5
18365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18366   (exit $ac_status); } &&
18367          { ac_try='test -z "$ac_c_werror_flag"
18368                          || test ! -s conftest.err'
18369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18370   (eval $ac_try) 2>&5
18371   ac_status=$?
18372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18373   (exit $ac_status); }; } &&
18374          { ac_try='test -s conftest$ac_exeext'
18375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18376   (eval $ac_try) 2>&5
18377   ac_status=$?
18378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18379   (exit $ac_status); }; }; then
18380   ac_cv_lib_des_main=yes
18381 else
18382   echo "$as_me: failed program was:" >&5
18383 sed 's/^/| /' conftest.$ac_ext >&5
18384
18385 ac_cv_lib_des_main=no
18386 fi
18387 rm -f conftest.err conftest.$ac_objext \
18388       conftest$ac_exeext conftest.$ac_ext
18389 LIBS=$ac_check_lib_save_LIBS
18390 fi
18391 echo "$as_me:$LINENO: result: $ac_cv_lib_des_main" >&5
18392 echo "${ECHO_T}$ac_cv_lib_des_main" >&6
18393 if test $ac_cv_lib_des_main = yes; then
18394   krb5crypto=des
18395 else
18396   krb5crypto=crypto
18397 fi
18398
18399
18400                         echo "$as_me:$LINENO: checking for main in -lkrb5" >&5
18401 echo $ECHO_N "checking for main in -lkrb5... $ECHO_C" >&6
18402 if test "${ac_cv_lib_krb5_main+set}" = set; then
18403   echo $ECHO_N "(cached) $ECHO_C" >&6
18404 else
18405   ac_check_lib_save_LIBS=$LIBS
18406 LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
18407 cat >conftest.$ac_ext <<_ACEOF
18408 /* confdefs.h.  */
18409 _ACEOF
18410 cat confdefs.h >>conftest.$ac_ext
18411 cat >>conftest.$ac_ext <<_ACEOF
18412 /* end confdefs.h.  */
18413
18414
18415 int
18416 main ()
18417 {
18418 main ();
18419   ;
18420   return 0;
18421 }
18422 _ACEOF
18423 rm -f conftest.$ac_objext conftest$ac_exeext
18424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18425   (eval $ac_link) 2>conftest.er1
18426   ac_status=$?
18427   grep -v '^ *+' conftest.er1 >conftest.err
18428   rm -f conftest.er1
18429   cat conftest.err >&5
18430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18431   (exit $ac_status); } &&
18432          { ac_try='test -z "$ac_c_werror_flag"
18433                          || test ! -s conftest.err'
18434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18435   (eval $ac_try) 2>&5
18436   ac_status=$?
18437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18438   (exit $ac_status); }; } &&
18439          { ac_try='test -s conftest$ac_exeext'
18440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18441   (eval $ac_try) 2>&5
18442   ac_status=$?
18443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18444   (exit $ac_status); }; }; then
18445   ac_cv_lib_krb5_main=yes
18446 else
18447   echo "$as_me: failed program was:" >&5
18448 sed 's/^/| /' conftest.$ac_ext >&5
18449
18450 ac_cv_lib_krb5_main=no
18451 fi
18452 rm -f conftest.err conftest.$ac_objext \
18453       conftest$ac_exeext conftest.$ac_ext
18454 LIBS=$ac_check_lib_save_LIBS
18455 fi
18456 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_main" >&5
18457 echo "${ECHO_T}$ac_cv_lib_krb5_main" >&6
18458 if test $ac_cv_lib_krb5_main = yes; then
18459   have_krb5=yes
18460                                 KRB5_LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err"
18461 else
18462   have_krb5=no
18463 fi
18464
18465
18466
18467 cat >>confdefs.h <<\_ACEOF
18468 #define HAVE_HEIMDAL_KERBEROS 1
18469 _ACEOF
18470
18471
18472                 else
18473                         have_krb5=no
18474                         { echo "$as_me:$LINENO: WARNING: Unrecognized Kerberos5 Implementation" >&5
18475 echo "$as_me: WARNING: Unrecognized Kerberos5 Implementation" >&2;}
18476                 fi
18477
18478                 if test $have_krb5 = yes ; then
18479                         ol_link_krb5=yes
18480
18481
18482 cat >>confdefs.h <<\_ACEOF
18483 #define HAVE_KRB5 1
18484 _ACEOF
18485
18486
18487                         if test $ol_with_kerberos = k5only ; then
18488                                 ol_with_kerberos=found
18489                         fi
18490
18491                 elif test $ol_with_kerberos != auto ; then
18492                         { { echo "$as_me:$LINENO: error: Required Kerberos 5 support not available" >&5
18493 echo "$as_me: error: Required Kerberos 5 support not available" >&2;}
18494    { (exit 1); exit 1; }; }
18495                 fi
18496
18497         fi
18498 fi
18499
18500 if test $ol_link_krb5 = yes -a \( $ol_with_kerberos = yes -o \
18501         $ol_with_kerberos = auto -o $ol_with_kerberos = k425 \) ; then
18502
18503
18504
18505 for ac_header in kerberosIV/krb.h kerberosIV/des.h
18506 do
18507 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18508 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18509   echo "$as_me:$LINENO: checking for $ac_header" >&5
18510 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18511 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18512   echo $ECHO_N "(cached) $ECHO_C" >&6
18513 fi
18514 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18515 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18516 else
18517   # Is the header compilable?
18518 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18519 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18520 cat >conftest.$ac_ext <<_ACEOF
18521 /* confdefs.h.  */
18522 _ACEOF
18523 cat confdefs.h >>conftest.$ac_ext
18524 cat >>conftest.$ac_ext <<_ACEOF
18525 /* end confdefs.h.  */
18526 $ac_includes_default
18527 #include <$ac_header>
18528 _ACEOF
18529 rm -f conftest.$ac_objext
18530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18531   (eval $ac_compile) 2>conftest.er1
18532   ac_status=$?
18533   grep -v '^ *+' conftest.er1 >conftest.err
18534   rm -f conftest.er1
18535   cat conftest.err >&5
18536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18537   (exit $ac_status); } &&
18538          { ac_try='test -z "$ac_c_werror_flag"
18539                          || test ! -s conftest.err'
18540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18541   (eval $ac_try) 2>&5
18542   ac_status=$?
18543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18544   (exit $ac_status); }; } &&
18545          { ac_try='test -s conftest.$ac_objext'
18546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18547   (eval $ac_try) 2>&5
18548   ac_status=$?
18549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18550   (exit $ac_status); }; }; then
18551   ac_header_compiler=yes
18552 else
18553   echo "$as_me: failed program was:" >&5
18554 sed 's/^/| /' conftest.$ac_ext >&5
18555
18556 ac_header_compiler=no
18557 fi
18558 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18559 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18560 echo "${ECHO_T}$ac_header_compiler" >&6
18561
18562 # Is the header present?
18563 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18564 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18565 cat >conftest.$ac_ext <<_ACEOF
18566 /* confdefs.h.  */
18567 _ACEOF
18568 cat confdefs.h >>conftest.$ac_ext
18569 cat >>conftest.$ac_ext <<_ACEOF
18570 /* end confdefs.h.  */
18571 #include <$ac_header>
18572 _ACEOF
18573 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18574   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18575   ac_status=$?
18576   grep -v '^ *+' conftest.er1 >conftest.err
18577   rm -f conftest.er1
18578   cat conftest.err >&5
18579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18580   (exit $ac_status); } >/dev/null; then
18581   if test -s conftest.err; then
18582     ac_cpp_err=$ac_c_preproc_warn_flag
18583     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18584   else
18585     ac_cpp_err=
18586   fi
18587 else
18588   ac_cpp_err=yes
18589 fi
18590 if test -z "$ac_cpp_err"; then
18591   ac_header_preproc=yes
18592 else
18593   echo "$as_me: failed program was:" >&5
18594 sed 's/^/| /' conftest.$ac_ext >&5
18595
18596   ac_header_preproc=no
18597 fi
18598 rm -f conftest.err conftest.$ac_ext
18599 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18600 echo "${ECHO_T}$ac_header_preproc" >&6
18601
18602 # So?  What about this header?
18603 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18604   yes:no: )
18605     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18606 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18607     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18608 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18609     ac_header_preproc=yes
18610     ;;
18611   no:yes:* )
18612     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18613 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18614     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18615 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18616     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18617 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18618     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18619 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18620     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18621 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18622     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18623 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18624     (
18625       cat <<\_ASBOX
18626 ## ------------------------------------------ ##
18627 ## Report this to the AC_PACKAGE_NAME lists.  ##
18628 ## ------------------------------------------ ##
18629 _ASBOX
18630     ) |
18631       sed "s/^/$as_me: WARNING:     /" >&2
18632     ;;
18633 esac
18634 echo "$as_me:$LINENO: checking for $ac_header" >&5
18635 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18636 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18637   echo $ECHO_N "(cached) $ECHO_C" >&6
18638 else
18639   eval "$as_ac_Header=\$ac_header_preproc"
18640 fi
18641 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18642 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18643
18644 fi
18645 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18646   cat >>confdefs.h <<_ACEOF
18647 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18648 _ACEOF
18649
18650 fi
18651
18652 done
18653
18654
18655         if test $ac_cv_header_kerberosIV_krb_h = yes ; then
18656                 if test $krb5_impl = mit; then
18657                         echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
18658 echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6
18659 if test "${ac_cv_lib_krb4_main+set}" = set; then
18660   echo $ECHO_N "(cached) $ECHO_C" >&6
18661 else
18662   ac_check_lib_save_LIBS=$LIBS
18663 LIBS="-lkrb4 -ldes425 -lkrb5 -l$krb5crypto -lcom_err $LIBS"
18664 cat >conftest.$ac_ext <<_ACEOF
18665 /* confdefs.h.  */
18666 _ACEOF
18667 cat confdefs.h >>conftest.$ac_ext
18668 cat >>conftest.$ac_ext <<_ACEOF
18669 /* end confdefs.h.  */
18670
18671
18672 int
18673 main ()
18674 {
18675 main ();
18676   ;
18677   return 0;
18678 }
18679 _ACEOF
18680 rm -f conftest.$ac_objext conftest$ac_exeext
18681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18682   (eval $ac_link) 2>conftest.er1
18683   ac_status=$?
18684   grep -v '^ *+' conftest.er1 >conftest.err
18685   rm -f conftest.er1
18686   cat conftest.err >&5
18687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18688   (exit $ac_status); } &&
18689          { ac_try='test -z "$ac_c_werror_flag"
18690                          || test ! -s conftest.err'
18691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18692   (eval $ac_try) 2>&5
18693   ac_status=$?
18694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18695   (exit $ac_status); }; } &&
18696          { ac_try='test -s conftest$ac_exeext'
18697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18698   (eval $ac_try) 2>&5
18699   ac_status=$?
18700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18701   (exit $ac_status); }; }; then
18702   ac_cv_lib_krb4_main=yes
18703 else
18704   echo "$as_me: failed program was:" >&5
18705 sed 's/^/| /' conftest.$ac_ext >&5
18706
18707 ac_cv_lib_krb4_main=no
18708 fi
18709 rm -f conftest.err conftest.$ac_objext \
18710       conftest$ac_exeext conftest.$ac_ext
18711 LIBS=$ac_check_lib_save_LIBS
18712 fi
18713 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_main" >&5
18714 echo "${ECHO_T}$ac_cv_lib_krb4_main" >&6
18715 if test $ac_cv_lib_krb4_main = yes; then
18716   have_k425=yes
18717                                 KRB4_LIBS="-lkrb4 -ldes425"
18718 else
18719   have_k425=no
18720 fi
18721
18722
18723                 elif test $krb5_impl = heimdal; then
18724                         echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
18725 echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6
18726 if test "${ac_cv_lib_krb4_main+set}" = set; then
18727   echo $ECHO_N "(cached) $ECHO_C" >&6
18728 else
18729   ac_check_lib_save_LIBS=$LIBS
18730 LIBS="-lkrb4 -lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
18731 cat >conftest.$ac_ext <<_ACEOF
18732 /* confdefs.h.  */
18733 _ACEOF
18734 cat confdefs.h >>conftest.$ac_ext
18735 cat >>conftest.$ac_ext <<_ACEOF
18736 /* end confdefs.h.  */
18737
18738
18739 int
18740 main ()
18741 {
18742 main ();
18743   ;
18744   return 0;
18745 }
18746 _ACEOF
18747 rm -f conftest.$ac_objext conftest$ac_exeext
18748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18749   (eval $ac_link) 2>conftest.er1
18750   ac_status=$?
18751   grep -v '^ *+' conftest.er1 >conftest.err
18752   rm -f conftest.er1
18753   cat conftest.err >&5
18754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18755   (exit $ac_status); } &&
18756          { ac_try='test -z "$ac_c_werror_flag"
18757                          || test ! -s conftest.err'
18758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18759   (eval $ac_try) 2>&5
18760   ac_status=$?
18761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18762   (exit $ac_status); }; } &&
18763          { ac_try='test -s conftest$ac_exeext'
18764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18765   (eval $ac_try) 2>&5
18766   ac_status=$?
18767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18768   (exit $ac_status); }; }; then
18769   ac_cv_lib_krb4_main=yes
18770 else
18771   echo "$as_me: failed program was:" >&5
18772 sed 's/^/| /' conftest.$ac_ext >&5
18773
18774 ac_cv_lib_krb4_main=no
18775 fi
18776 rm -f conftest.err conftest.$ac_objext \
18777       conftest$ac_exeext conftest.$ac_ext
18778 LIBS=$ac_check_lib_save_LIBS
18779 fi
18780 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_main" >&5
18781 echo "${ECHO_T}$ac_cv_lib_krb4_main" >&6
18782 if test $ac_cv_lib_krb4_main = yes; then
18783   have_k425=yes
18784                                 KRB4_LIBS="-lkrb4"
18785 else
18786   have_k425=no
18787 fi
18788
18789
18790                 else
18791                         have_425=no
18792                         { echo "$as_me:$LINENO: WARNING: Unrecongized Kerberos V Implementation" >&5
18793 echo "$as_me: WARNING: Unrecongized Kerberos V Implementation" >&2;}
18794                 fi
18795
18796                 if test $have_k425 = yes ; then
18797                         ol_with_kerberos=found
18798                         ol_link_krb4=yes
18799
18800
18801 cat >>confdefs.h <<\_ACEOF
18802 #define HAVE_KRB425 1
18803 _ACEOF
18804
18805
18806 cat >>confdefs.h <<\_ACEOF
18807 #define HAVE_KRB4 1
18808 _ACEOF
18809
18810
18811                         echo "$as_me:$LINENO: checking for des_debug in Kerberos libraries" >&5
18812 echo $ECHO_N "checking for des_debug in Kerberos libraries... $ECHO_C" >&6
18813 if test "${ol_cv_var_des_debug+set}" = set; then
18814   echo $ECHO_N "(cached) $ECHO_C" >&6
18815 else
18816
18817                                                                 save_LIBS="$LIBS"
18818                                 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
18819                                 cat >conftest.$ac_ext <<_ACEOF
18820 /* confdefs.h.  */
18821 _ACEOF
18822 cat confdefs.h >>conftest.$ac_ext
18823 cat >>conftest.$ac_ext <<_ACEOF
18824 /* end confdefs.h.  */
18825
18826 #include <kerberosIV/krb.h>
18827 #include <kerberosIV/des.h>
18828 extern int des_debug;
18829
18830 int
18831 main ()
18832 {
18833
18834 des_debug = 1;
18835
18836   ;
18837   return 0;
18838 }
18839 _ACEOF
18840 rm -f conftest.$ac_objext conftest$ac_exeext
18841 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18842   (eval $ac_link) 2>conftest.er1
18843   ac_status=$?
18844   grep -v '^ *+' conftest.er1 >conftest.err
18845   rm -f conftest.er1
18846   cat conftest.err >&5
18847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18848   (exit $ac_status); } &&
18849          { ac_try='test -z "$ac_c_werror_flag"
18850                          || test ! -s conftest.err'
18851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18852   (eval $ac_try) 2>&5
18853   ac_status=$?
18854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18855   (exit $ac_status); }; } &&
18856          { ac_try='test -s conftest$ac_exeext'
18857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18858   (eval $ac_try) 2>&5
18859   ac_status=$?
18860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18861   (exit $ac_status); }; }; then
18862   ol_cv_var_des_debug=yes
18863 else
18864   echo "$as_me: failed program was:" >&5
18865 sed 's/^/| /' conftest.$ac_ext >&5
18866
18867 ol_cv_var_des_debug=no
18868 fi
18869 rm -f conftest.err conftest.$ac_objext \
18870       conftest$ac_exeext conftest.$ac_ext
18871                                                                 LIBS="$save_LIBS"
18872
18873 fi
18874 echo "$as_me:$LINENO: result: $ol_cv_var_des_debug" >&5
18875 echo "${ECHO_T}$ol_cv_var_des_debug" >&6
18876
18877                         if test $ol_cv_var_des_debug = yes ; then
18878
18879 cat >>confdefs.h <<\_ACEOF
18880 #define HAVE_DES_DEBUG 1
18881 _ACEOF
18882
18883                         fi
18884
18885                         LIBS="$save_LIBS"
18886                 fi
18887         fi
18888 fi
18889
18890 if test $ol_link_krb5 = yes ; then
18891         ol_with_kerberos=found
18892 fi
18893
18894 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
18895         -o $ol_with_kerberos = k4 -o $ol_with_kerberos = kth ; then
18896
18897
18898
18899
18900 for ac_header in krb.h des.h krb-archaeology.h
18901 do
18902 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18903 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18904   echo "$as_me:$LINENO: checking for $ac_header" >&5
18905 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18906 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18907   echo $ECHO_N "(cached) $ECHO_C" >&6
18908 fi
18909 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18910 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18911 else
18912   # Is the header compilable?
18913 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18914 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18915 cat >conftest.$ac_ext <<_ACEOF
18916 /* confdefs.h.  */
18917 _ACEOF
18918 cat confdefs.h >>conftest.$ac_ext
18919 cat >>conftest.$ac_ext <<_ACEOF
18920 /* end confdefs.h.  */
18921 $ac_includes_default
18922 #include <$ac_header>
18923 _ACEOF
18924 rm -f conftest.$ac_objext
18925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18926   (eval $ac_compile) 2>conftest.er1
18927   ac_status=$?
18928   grep -v '^ *+' conftest.er1 >conftest.err
18929   rm -f conftest.er1
18930   cat conftest.err >&5
18931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18932   (exit $ac_status); } &&
18933          { ac_try='test -z "$ac_c_werror_flag"
18934                          || test ! -s conftest.err'
18935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18936   (eval $ac_try) 2>&5
18937   ac_status=$?
18938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18939   (exit $ac_status); }; } &&
18940          { ac_try='test -s conftest.$ac_objext'
18941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18942   (eval $ac_try) 2>&5
18943   ac_status=$?
18944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18945   (exit $ac_status); }; }; then
18946   ac_header_compiler=yes
18947 else
18948   echo "$as_me: failed program was:" >&5
18949 sed 's/^/| /' conftest.$ac_ext >&5
18950
18951 ac_header_compiler=no
18952 fi
18953 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18954 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18955 echo "${ECHO_T}$ac_header_compiler" >&6
18956
18957 # Is the header present?
18958 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18959 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18960 cat >conftest.$ac_ext <<_ACEOF
18961 /* confdefs.h.  */
18962 _ACEOF
18963 cat confdefs.h >>conftest.$ac_ext
18964 cat >>conftest.$ac_ext <<_ACEOF
18965 /* end confdefs.h.  */
18966 #include <$ac_header>
18967 _ACEOF
18968 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18969   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18970   ac_status=$?
18971   grep -v '^ *+' conftest.er1 >conftest.err
18972   rm -f conftest.er1
18973   cat conftest.err >&5
18974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18975   (exit $ac_status); } >/dev/null; then
18976   if test -s conftest.err; then
18977     ac_cpp_err=$ac_c_preproc_warn_flag
18978     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18979   else
18980     ac_cpp_err=
18981   fi
18982 else
18983   ac_cpp_err=yes
18984 fi
18985 if test -z "$ac_cpp_err"; then
18986   ac_header_preproc=yes
18987 else
18988   echo "$as_me: failed program was:" >&5
18989 sed 's/^/| /' conftest.$ac_ext >&5
18990
18991   ac_header_preproc=no
18992 fi
18993 rm -f conftest.err conftest.$ac_ext
18994 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18995 echo "${ECHO_T}$ac_header_preproc" >&6
18996
18997 # So?  What about this header?
18998 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18999   yes:no: )
19000     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19001 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19002     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19003 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19004     ac_header_preproc=yes
19005     ;;
19006   no:yes:* )
19007     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19008 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19009     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19010 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19011     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19012 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19013     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19014 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19015     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19016 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19017     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19018 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19019     (
19020       cat <<\_ASBOX
19021 ## ------------------------------------------ ##
19022 ## Report this to the AC_PACKAGE_NAME lists.  ##
19023 ## ------------------------------------------ ##
19024 _ASBOX
19025     ) |
19026       sed "s/^/$as_me: WARNING:     /" >&2
19027     ;;
19028 esac
19029 echo "$as_me:$LINENO: checking for $ac_header" >&5
19030 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19031 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19032   echo $ECHO_N "(cached) $ECHO_C" >&6
19033 else
19034   eval "$as_ac_Header=\$ac_header_preproc"
19035 fi
19036 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19037 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19038
19039 fi
19040 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19041   cat >>confdefs.h <<_ACEOF
19042 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19043 _ACEOF
19044
19045 fi
19046
19047 done
19048
19049
19050         if test $ac_cv_header_krb_h = yes ; then
19051                 echo "$as_me:$LINENO: checking for main in -lkrb" >&5
19052 echo $ECHO_N "checking for main in -lkrb... $ECHO_C" >&6
19053 if test "${ac_cv_lib_krb_main+set}" = set; then
19054   echo $ECHO_N "(cached) $ECHO_C" >&6
19055 else
19056   ac_check_lib_save_LIBS=$LIBS
19057 LIBS="-lkrb -ldes $LIBS"
19058 cat >conftest.$ac_ext <<_ACEOF
19059 /* confdefs.h.  */
19060 _ACEOF
19061 cat confdefs.h >>conftest.$ac_ext
19062 cat >>conftest.$ac_ext <<_ACEOF
19063 /* end confdefs.h.  */
19064
19065
19066 int
19067 main ()
19068 {
19069 main ();
19070   ;
19071   return 0;
19072 }
19073 _ACEOF
19074 rm -f conftest.$ac_objext conftest$ac_exeext
19075 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19076   (eval $ac_link) 2>conftest.er1
19077   ac_status=$?
19078   grep -v '^ *+' conftest.er1 >conftest.err
19079   rm -f conftest.er1
19080   cat conftest.err >&5
19081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19082   (exit $ac_status); } &&
19083          { ac_try='test -z "$ac_c_werror_flag"
19084                          || test ! -s conftest.err'
19085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19086   (eval $ac_try) 2>&5
19087   ac_status=$?
19088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19089   (exit $ac_status); }; } &&
19090          { ac_try='test -s conftest$ac_exeext'
19091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19092   (eval $ac_try) 2>&5
19093   ac_status=$?
19094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19095   (exit $ac_status); }; }; then
19096   ac_cv_lib_krb_main=yes
19097 else
19098   echo "$as_me: failed program was:" >&5
19099 sed 's/^/| /' conftest.$ac_ext >&5
19100
19101 ac_cv_lib_krb_main=no
19102 fi
19103 rm -f conftest.err conftest.$ac_objext \
19104       conftest$ac_exeext conftest.$ac_ext
19105 LIBS=$ac_check_lib_save_LIBS
19106 fi
19107 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_main" >&5
19108 echo "${ECHO_T}$ac_cv_lib_krb_main" >&6
19109 if test $ac_cv_lib_krb_main = yes; then
19110   have_k4=yes
19111 else
19112   have_k4=no
19113 fi
19114
19115
19116                 if test $have_k4 = yes ; then
19117                         ol_with_kerberos=found
19118                         ol_link_krb4=yes
19119
19120
19121 cat >>confdefs.h <<\_ACEOF
19122 #define HAVE_KRB4 1
19123 _ACEOF
19124
19125
19126                         KRB4_LIBS="-lkrb -ldes"
19127
19128                         if test $ac_cv_header_krb_archaeology_h = yes ; then
19129
19130 cat >>confdefs.h <<\_ACEOF
19131 #define HAVE_KTH_KERBEROS 1
19132 _ACEOF
19133
19134                         fi
19135                 fi
19136         fi
19137 fi
19138
19139 if test $ol_link_krb4 = yes -a $ol_enable_kbind != no ; then
19140         ol_link_kbind=yes
19141
19142 elif test $ol_enable_kbind = yes ; then
19143         { { echo "$as_me:$LINENO: error: Kerberos IV detection failed" >&5
19144 echo "$as_me: error: Kerberos IV detection failed" >&2;}
19145    { (exit 1); exit 1; }; }
19146 fi
19147
19148 if test $ol_link_krb4 = yes -o $ol_link_krb5 = yes ; then
19149
19150 cat >>confdefs.h <<\_ACEOF
19151 #define HAVE_KERBEROS 1
19152 _ACEOF
19153
19154
19155 elif test $ol_with_kerberos != auto -a $ol_with_kerberos != no ; then
19156         { { echo "$as_me:$LINENO: error: Kerberos detection failed" >&5
19157 echo "$as_me: error: Kerberos detection failed" >&2;}
19158    { (exit 1); exit 1; }; }
19159 fi
19160
19161
19162 ol_link_tls=no
19163 if test $ol_with_tls != no ; then
19164
19165
19166 for ac_header in openssl/ssl.h ssl.h
19167 do
19168 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19169 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19170   echo "$as_me:$LINENO: checking for $ac_header" >&5
19171 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19172 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19173   echo $ECHO_N "(cached) $ECHO_C" >&6
19174 fi
19175 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19176 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19177 else
19178   # Is the header compilable?
19179 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19180 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19181 cat >conftest.$ac_ext <<_ACEOF
19182 /* confdefs.h.  */
19183 _ACEOF
19184 cat confdefs.h >>conftest.$ac_ext
19185 cat >>conftest.$ac_ext <<_ACEOF
19186 /* end confdefs.h.  */
19187 $ac_includes_default
19188 #include <$ac_header>
19189 _ACEOF
19190 rm -f conftest.$ac_objext
19191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19192   (eval $ac_compile) 2>conftest.er1
19193   ac_status=$?
19194   grep -v '^ *+' conftest.er1 >conftest.err
19195   rm -f conftest.er1
19196   cat conftest.err >&5
19197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19198   (exit $ac_status); } &&
19199          { ac_try='test -z "$ac_c_werror_flag"
19200                          || test ! -s conftest.err'
19201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19202   (eval $ac_try) 2>&5
19203   ac_status=$?
19204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19205   (exit $ac_status); }; } &&
19206          { ac_try='test -s conftest.$ac_objext'
19207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19208   (eval $ac_try) 2>&5
19209   ac_status=$?
19210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19211   (exit $ac_status); }; }; then
19212   ac_header_compiler=yes
19213 else
19214   echo "$as_me: failed program was:" >&5
19215 sed 's/^/| /' conftest.$ac_ext >&5
19216
19217 ac_header_compiler=no
19218 fi
19219 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19220 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19221 echo "${ECHO_T}$ac_header_compiler" >&6
19222
19223 # Is the header present?
19224 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19225 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19226 cat >conftest.$ac_ext <<_ACEOF
19227 /* confdefs.h.  */
19228 _ACEOF
19229 cat confdefs.h >>conftest.$ac_ext
19230 cat >>conftest.$ac_ext <<_ACEOF
19231 /* end confdefs.h.  */
19232 #include <$ac_header>
19233 _ACEOF
19234 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19235   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19236   ac_status=$?
19237   grep -v '^ *+' conftest.er1 >conftest.err
19238   rm -f conftest.er1
19239   cat conftest.err >&5
19240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19241   (exit $ac_status); } >/dev/null; then
19242   if test -s conftest.err; then
19243     ac_cpp_err=$ac_c_preproc_warn_flag
19244     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19245   else
19246     ac_cpp_err=
19247   fi
19248 else
19249   ac_cpp_err=yes
19250 fi
19251 if test -z "$ac_cpp_err"; then
19252   ac_header_preproc=yes
19253 else
19254   echo "$as_me: failed program was:" >&5
19255 sed 's/^/| /' conftest.$ac_ext >&5
19256
19257   ac_header_preproc=no
19258 fi
19259 rm -f conftest.err conftest.$ac_ext
19260 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19261 echo "${ECHO_T}$ac_header_preproc" >&6
19262
19263 # So?  What about this header?
19264 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19265   yes:no: )
19266     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19267 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19268     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19269 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19270     ac_header_preproc=yes
19271     ;;
19272   no:yes:* )
19273     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19274 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19275     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19276 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19277     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19278 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19279     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19280 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19281     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19282 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19283     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19284 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19285     (
19286       cat <<\_ASBOX
19287 ## ------------------------------------------ ##
19288 ## Report this to the AC_PACKAGE_NAME lists.  ##
19289 ## ------------------------------------------ ##
19290 _ASBOX
19291     ) |
19292       sed "s/^/$as_me: WARNING:     /" >&2
19293     ;;
19294 esac
19295 echo "$as_me:$LINENO: checking for $ac_header" >&5
19296 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19297 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19298   echo $ECHO_N "(cached) $ECHO_C" >&6
19299 else
19300   eval "$as_ac_Header=\$ac_header_preproc"
19301 fi
19302 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19303 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19304
19305 fi
19306 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19307   cat >>confdefs.h <<_ACEOF
19308 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19309 _ACEOF
19310
19311 fi
19312
19313 done
19314
19315
19316         if test $ac_cv_header_openssl_ssl_h = yes \
19317                 -o $ac_cv_header_ssl_h = yes ; then
19318                 echo "$as_me:$LINENO: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
19319 echo $ECHO_N "checking for SSLeay_add_ssl_algorithms in -lssl... $ECHO_C" >&6
19320 if test "${ac_cv_lib_ssl_SSLeay_add_ssl_algorithms+set}" = set; then
19321   echo $ECHO_N "(cached) $ECHO_C" >&6
19322 else
19323   ac_check_lib_save_LIBS=$LIBS
19324 LIBS="-lssl -lcrypto $LIBS"
19325 cat >conftest.$ac_ext <<_ACEOF
19326 /* confdefs.h.  */
19327 _ACEOF
19328 cat confdefs.h >>conftest.$ac_ext
19329 cat >>conftest.$ac_ext <<_ACEOF
19330 /* end confdefs.h.  */
19331
19332 /* Override any gcc2 internal prototype to avoid an error.  */
19333 #ifdef __cplusplus
19334 extern "C"
19335 #endif
19336 /* We use char because int might match the return type of a gcc2
19337    builtin and then its argument prototype would still apply.  */
19338 char SSLeay_add_ssl_algorithms ();
19339 int
19340 main ()
19341 {
19342 SSLeay_add_ssl_algorithms ();
19343   ;
19344   return 0;
19345 }
19346 _ACEOF
19347 rm -f conftest.$ac_objext conftest$ac_exeext
19348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19349   (eval $ac_link) 2>conftest.er1
19350   ac_status=$?
19351   grep -v '^ *+' conftest.er1 >conftest.err
19352   rm -f conftest.er1
19353   cat conftest.err >&5
19354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19355   (exit $ac_status); } &&
19356          { ac_try='test -z "$ac_c_werror_flag"
19357                          || test ! -s conftest.err'
19358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19359   (eval $ac_try) 2>&5
19360   ac_status=$?
19361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19362   (exit $ac_status); }; } &&
19363          { ac_try='test -s conftest$ac_exeext'
19364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19365   (eval $ac_try) 2>&5
19366   ac_status=$?
19367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19368   (exit $ac_status); }; }; then
19369   ac_cv_lib_ssl_SSLeay_add_ssl_algorithms=yes
19370 else
19371   echo "$as_me: failed program was:" >&5
19372 sed 's/^/| /' conftest.$ac_ext >&5
19373
19374 ac_cv_lib_ssl_SSLeay_add_ssl_algorithms=no
19375 fi
19376 rm -f conftest.err conftest.$ac_objext \
19377       conftest$ac_exeext conftest.$ac_ext
19378 LIBS=$ac_check_lib_save_LIBS
19379 fi
19380 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSLeay_add_ssl_algorithms" >&5
19381 echo "${ECHO_T}$ac_cv_lib_ssl_SSLeay_add_ssl_algorithms" >&6
19382 if test $ac_cv_lib_ssl_SSLeay_add_ssl_algorithms = yes; then
19383   have_ssleay=yes
19384                         need_rsaref=no
19385 else
19386   have_ssleay=no
19387 fi
19388
19389
19390                 if test $have_ssleay = no ; then
19391                         echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
19392 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
19393 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
19394   echo $ECHO_N "(cached) $ECHO_C" >&6
19395 else
19396   ac_check_lib_save_LIBS=$LIBS
19397 LIBS="-lssl -lcrypto $LIBS"
19398 cat >conftest.$ac_ext <<_ACEOF
19399 /* confdefs.h.  */
19400 _ACEOF
19401 cat confdefs.h >>conftest.$ac_ext
19402 cat >>conftest.$ac_ext <<_ACEOF
19403 /* end confdefs.h.  */
19404
19405 /* Override any gcc2 internal prototype to avoid an error.  */
19406 #ifdef __cplusplus
19407 extern "C"
19408 #endif
19409 /* We use char because int might match the return type of a gcc2
19410    builtin and then its argument prototype would still apply.  */
19411 char SSL_library_init ();
19412 int
19413 main ()
19414 {
19415 SSL_library_init ();
19416   ;
19417   return 0;
19418 }
19419 _ACEOF
19420 rm -f conftest.$ac_objext conftest$ac_exeext
19421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19422   (eval $ac_link) 2>conftest.er1
19423   ac_status=$?
19424   grep -v '^ *+' conftest.er1 >conftest.err
19425   rm -f conftest.er1
19426   cat conftest.err >&5
19427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19428   (exit $ac_status); } &&
19429          { ac_try='test -z "$ac_c_werror_flag"
19430                          || test ! -s conftest.err'
19431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19432   (eval $ac_try) 2>&5
19433   ac_status=$?
19434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19435   (exit $ac_status); }; } &&
19436          { ac_try='test -s conftest$ac_exeext'
19437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19438   (eval $ac_try) 2>&5
19439   ac_status=$?
19440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19441   (exit $ac_status); }; }; then
19442   ac_cv_lib_ssl_SSL_library_init=yes
19443 else
19444   echo "$as_me: failed program was:" >&5
19445 sed 's/^/| /' conftest.$ac_ext >&5
19446
19447 ac_cv_lib_ssl_SSL_library_init=no
19448 fi
19449 rm -f conftest.err conftest.$ac_objext \
19450       conftest$ac_exeext conftest.$ac_ext
19451 LIBS=$ac_check_lib_save_LIBS
19452 fi
19453 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
19454 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
19455 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
19456   have_ssleay=yes
19457                                 need_rsaref=no
19458 else
19459   have_ssleay=no
19460 fi
19461
19462                 fi
19463
19464                 if test $have_ssleay = no ; then
19465                         echo "$as_me:$LINENO: checking for ssl3_accept in -lssl" >&5
19466 echo $ECHO_N "checking for ssl3_accept in -lssl... $ECHO_C" >&6
19467 if test "${ac_cv_lib_ssl_ssl3_accept+set}" = set; then
19468   echo $ECHO_N "(cached) $ECHO_C" >&6
19469 else
19470   ac_check_lib_save_LIBS=$LIBS
19471 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
19472 cat >conftest.$ac_ext <<_ACEOF
19473 /* confdefs.h.  */
19474 _ACEOF
19475 cat confdefs.h >>conftest.$ac_ext
19476 cat >>conftest.$ac_ext <<_ACEOF
19477 /* end confdefs.h.  */
19478
19479 /* Override any gcc2 internal prototype to avoid an error.  */
19480 #ifdef __cplusplus
19481 extern "C"
19482 #endif
19483 /* We use char because int might match the return type of a gcc2
19484    builtin and then its argument prototype would still apply.  */
19485 char ssl3_accept ();
19486 int
19487 main ()
19488 {
19489 ssl3_accept ();
19490   ;
19491   return 0;
19492 }
19493 _ACEOF
19494 rm -f conftest.$ac_objext conftest$ac_exeext
19495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19496   (eval $ac_link) 2>conftest.er1
19497   ac_status=$?
19498   grep -v '^ *+' conftest.er1 >conftest.err
19499   rm -f conftest.er1
19500   cat conftest.err >&5
19501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19502   (exit $ac_status); } &&
19503          { ac_try='test -z "$ac_c_werror_flag"
19504                          || test ! -s conftest.err'
19505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19506   (eval $ac_try) 2>&5
19507   ac_status=$?
19508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19509   (exit $ac_status); }; } &&
19510          { ac_try='test -s conftest$ac_exeext'
19511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19512   (eval $ac_try) 2>&5
19513   ac_status=$?
19514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19515   (exit $ac_status); }; }; then
19516   ac_cv_lib_ssl_ssl3_accept=yes
19517 else
19518   echo "$as_me: failed program was:" >&5
19519 sed 's/^/| /' conftest.$ac_ext >&5
19520
19521 ac_cv_lib_ssl_ssl3_accept=no
19522 fi
19523 rm -f conftest.err conftest.$ac_objext \
19524       conftest$ac_exeext conftest.$ac_ext
19525 LIBS=$ac_check_lib_save_LIBS
19526 fi
19527 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl3_accept" >&5
19528 echo "${ECHO_T}$ac_cv_lib_ssl_ssl3_accept" >&6
19529 if test $ac_cv_lib_ssl_ssl3_accept = yes; then
19530   have_ssleay=yes
19531                                 need_rsaref=yes
19532 else
19533   have_ssleay=no
19534 fi
19535
19536                 fi
19537
19538                 if test $have_ssleay = yes ; then
19539                         ol_with_tls=found
19540                         ol_link_tls=yes
19541
19542
19543 cat >>confdefs.h <<\_ACEOF
19544 #define HAVE_SSLEAY 1
19545 _ACEOF
19546
19547
19548                         if test $need_rsaref = yes; then
19549
19550 cat >>confdefs.h <<\_ACEOF
19551 #define HAVE_RSAREF 1
19552 _ACEOF
19553
19554
19555                                 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
19556                         else
19557                                 TLS_LIBS="-lssl -lcrypto"
19558                         fi
19559                 fi
19560                 echo "$as_me:$LINENO: checking OpenSSL library version (CRL checking capability)" >&5
19561 echo $ECHO_N "checking OpenSSL library version (CRL checking capability)... $ECHO_C" >&6
19562 if test "${ol_cv_ssl_crl_compat+set}" = set; then
19563   echo $ECHO_N "(cached) $ECHO_C" >&6
19564 else
19565
19566         cat >conftest.$ac_ext <<_ACEOF
19567 /* confdefs.h.  */
19568 _ACEOF
19569 cat confdefs.h >>conftest.$ac_ext
19570 cat >>conftest.$ac_ext <<_ACEOF
19571 /* end confdefs.h.  */
19572
19573 #ifdef HAVE_OPENSSL_SSL_H
19574 #include <openssl/ssl.h>
19575 #else
19576 #include <ssl.h>
19577 #endif
19578
19579 /* Require 0.9.7d+ */
19580 #if OPENSSL_VERSION_NUMBER >= 0x0090704fL
19581         char *__ssl_compat = "0.9.7d";
19582 #endif
19583
19584 _ACEOF
19585 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19586   $EGREP "__ssl_compat" >/dev/null 2>&1; then
19587   ol_cv_ssl_crl_compat=yes
19588 else
19589   ol_cv_ssl_crl_compat=no
19590 fi
19591 rm -f conftest*
19592
19593 fi
19594 echo "$as_me:$LINENO: result: $ol_cv_ssl_crl_compat" >&5
19595 echo "${ECHO_T}$ol_cv_ssl_crl_compat" >&6
19596
19597                 if test $ol_cv_ssl_crl_compat = no ; then
19598                         ol_link_ssl=no
19599                 else
19600
19601 cat >>confdefs.h <<\_ACEOF
19602 #define HAVE_OPENSSL_CRL 1
19603 _ACEOF
19604
19605                 fi
19606         fi
19607
19608 else
19609         { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
19610 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
19611 fi
19612
19613 WITH_TLS=no
19614 if test $ol_link_tls = yes ; then
19615
19616 cat >>confdefs.h <<\_ACEOF
19617 #define HAVE_TLS 1
19618 _ACEOF
19619
19620         WITH_TLS=yes
19621
19622 elif test $ol_with_tls = auto ; then
19623         { echo "$as_me:$LINENO: WARNING: Could not locate TLS/SSL package" >&5
19624 echo "$as_me: WARNING: Could not locate TLS/SSL package" >&2;}
19625         { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
19626 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
19627
19628 elif test $ol_with_tls != no ; then
19629         { { echo "$as_me:$LINENO: error: Could not locate TLS/SSL package" >&5
19630 echo "$as_me: error: Could not locate TLS/SSL package" >&2;}
19631    { (exit 1); exit 1; }; }
19632 fi
19633
19634 if test $ol_enable_lmpasswd != no; then
19635         if test $ol_link_tls != yes ; then
19636                 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
19637 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
19638    { (exit 1); exit 1; }; }
19639         fi
19640
19641
19642 cat >>confdefs.h <<\_ACEOF
19643 #define SLAPD_LMHASH 1
19644 _ACEOF
19645
19646 fi
19647
19648 ol_link_threads=no
19649
19650 if test $ol_with_threads = auto -o $ol_with_threads = yes \
19651         -o $ol_with_threads = nt ; then
19652
19653
19654         echo "$as_me:$LINENO: checking for _beginthread" >&5
19655 echo $ECHO_N "checking for _beginthread... $ECHO_C" >&6
19656 if test "${ac_cv_func__beginthread+set}" = set; then
19657   echo $ECHO_N "(cached) $ECHO_C" >&6
19658 else
19659   cat >conftest.$ac_ext <<_ACEOF
19660 /* confdefs.h.  */
19661 _ACEOF
19662 cat confdefs.h >>conftest.$ac_ext
19663 cat >>conftest.$ac_ext <<_ACEOF
19664 /* end confdefs.h.  */
19665 /* Define _beginthread to an innocuous variant, in case <limits.h> declares _beginthread.
19666    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19667 #define _beginthread innocuous__beginthread
19668
19669 /* System header to define __stub macros and hopefully few prototypes,
19670     which can conflict with char _beginthread (); below.
19671     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19672     <limits.h> exists even on freestanding compilers.  */
19673
19674 #ifdef __STDC__
19675 # include <limits.h>
19676 #else
19677 # include <assert.h>
19678 #endif
19679
19680 #undef _beginthread
19681
19682 /* Override any gcc2 internal prototype to avoid an error.  */
19683 #ifdef __cplusplus
19684 extern "C"
19685 {
19686 #endif
19687 /* We use char because int might match the return type of a gcc2
19688    builtin and then its argument prototype would still apply.  */
19689 char _beginthread ();
19690 /* The GNU C library defines this for functions which it implements
19691     to always fail with ENOSYS.  Some functions are actually named
19692     something starting with __ and the normal name is an alias.  */
19693 #if defined (__stub__beginthread) || defined (__stub____beginthread)
19694 choke me
19695 #else
19696 char (*f) () = _beginthread;
19697 #endif
19698 #ifdef __cplusplus
19699 }
19700 #endif
19701
19702 int
19703 main ()
19704 {
19705 return f != _beginthread;
19706   ;
19707   return 0;
19708 }
19709 _ACEOF
19710 rm -f conftest.$ac_objext conftest$ac_exeext
19711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19712   (eval $ac_link) 2>conftest.er1
19713   ac_status=$?
19714   grep -v '^ *+' conftest.er1 >conftest.err
19715   rm -f conftest.er1
19716   cat conftest.err >&5
19717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19718   (exit $ac_status); } &&
19719          { ac_try='test -z "$ac_c_werror_flag"
19720                          || test ! -s conftest.err'
19721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19722   (eval $ac_try) 2>&5
19723   ac_status=$?
19724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19725   (exit $ac_status); }; } &&
19726          { ac_try='test -s conftest$ac_exeext'
19727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19728   (eval $ac_try) 2>&5
19729   ac_status=$?
19730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19731   (exit $ac_status); }; }; then
19732   ac_cv_func__beginthread=yes
19733 else
19734   echo "$as_me: failed program was:" >&5
19735 sed 's/^/| /' conftest.$ac_ext >&5
19736
19737 ac_cv_func__beginthread=no
19738 fi
19739 rm -f conftest.err conftest.$ac_objext \
19740       conftest$ac_exeext conftest.$ac_ext
19741 fi
19742 echo "$as_me:$LINENO: result: $ac_cv_func__beginthread" >&5
19743 echo "${ECHO_T}$ac_cv_func__beginthread" >&6
19744
19745
19746         if test $ac_cv_func__beginthread = yes ; then
19747
19748 cat >>confdefs.h <<\_ACEOF
19749 #define HAVE_NT_THREADS 1
19750 _ACEOF
19751
19752                 ol_cv_nt_threads=yes
19753         fi
19754
19755
19756         if test "$ol_cv_nt_threads" = yes ; then
19757                 ol_link_threads=nt
19758                 ol_with_threads=found
19759                 ol_with_yielding_select=yes
19760
19761
19762 cat >>confdefs.h <<\_ACEOF
19763 #define HAVE_NT_SERVICE_MANAGER 1
19764 _ACEOF
19765
19766
19767 cat >>confdefs.h <<\_ACEOF
19768 #define HAVE_NT_EVENT_LOG 1
19769 _ACEOF
19770
19771         fi
19772
19773         if test $ol_with_threads = nt ; then
19774                 { { echo "$as_me:$LINENO: error: could not locate NT Threads" >&5
19775 echo "$as_me: error: could not locate NT Threads" >&2;}
19776    { (exit 1); exit 1; }; }
19777         fi
19778 fi
19779
19780 if test $ol_with_threads = auto -o $ol_with_threads = yes \
19781         -o $ol_with_threads = posix ; then
19782
19783
19784 for ac_header in pthread.h
19785 do
19786 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19787 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19788   echo "$as_me:$LINENO: checking for $ac_header" >&5
19789 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19790 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19791   echo $ECHO_N "(cached) $ECHO_C" >&6
19792 fi
19793 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19794 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19795 else
19796   # Is the header compilable?
19797 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19798 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19799 cat >conftest.$ac_ext <<_ACEOF
19800 /* confdefs.h.  */
19801 _ACEOF
19802 cat confdefs.h >>conftest.$ac_ext
19803 cat >>conftest.$ac_ext <<_ACEOF
19804 /* end confdefs.h.  */
19805 $ac_includes_default
19806 #include <$ac_header>
19807 _ACEOF
19808 rm -f conftest.$ac_objext
19809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19810   (eval $ac_compile) 2>conftest.er1
19811   ac_status=$?
19812   grep -v '^ *+' conftest.er1 >conftest.err
19813   rm -f conftest.er1
19814   cat conftest.err >&5
19815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19816   (exit $ac_status); } &&
19817          { ac_try='test -z "$ac_c_werror_flag"
19818                          || test ! -s conftest.err'
19819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19820   (eval $ac_try) 2>&5
19821   ac_status=$?
19822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19823   (exit $ac_status); }; } &&
19824          { ac_try='test -s conftest.$ac_objext'
19825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19826   (eval $ac_try) 2>&5
19827   ac_status=$?
19828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19829   (exit $ac_status); }; }; then
19830   ac_header_compiler=yes
19831 else
19832   echo "$as_me: failed program was:" >&5
19833 sed 's/^/| /' conftest.$ac_ext >&5
19834
19835 ac_header_compiler=no
19836 fi
19837 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19838 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19839 echo "${ECHO_T}$ac_header_compiler" >&6
19840
19841 # Is the header present?
19842 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19843 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19844 cat >conftest.$ac_ext <<_ACEOF
19845 /* confdefs.h.  */
19846 _ACEOF
19847 cat confdefs.h >>conftest.$ac_ext
19848 cat >>conftest.$ac_ext <<_ACEOF
19849 /* end confdefs.h.  */
19850 #include <$ac_header>
19851 _ACEOF
19852 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19853   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19854   ac_status=$?
19855   grep -v '^ *+' conftest.er1 >conftest.err
19856   rm -f conftest.er1
19857   cat conftest.err >&5
19858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19859   (exit $ac_status); } >/dev/null; then
19860   if test -s conftest.err; then
19861     ac_cpp_err=$ac_c_preproc_warn_flag
19862     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19863   else
19864     ac_cpp_err=
19865   fi
19866 else
19867   ac_cpp_err=yes
19868 fi
19869 if test -z "$ac_cpp_err"; then
19870   ac_header_preproc=yes
19871 else
19872   echo "$as_me: failed program was:" >&5
19873 sed 's/^/| /' conftest.$ac_ext >&5
19874
19875   ac_header_preproc=no
19876 fi
19877 rm -f conftest.err conftest.$ac_ext
19878 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19879 echo "${ECHO_T}$ac_header_preproc" >&6
19880
19881 # So?  What about this header?
19882 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19883   yes:no: )
19884     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19885 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19886     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19887 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19888     ac_header_preproc=yes
19889     ;;
19890   no:yes:* )
19891     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19892 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19893     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19894 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19895     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19896 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19897     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19898 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19899     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19900 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19901     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19902 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19903     (
19904       cat <<\_ASBOX
19905 ## ------------------------------------------ ##
19906 ## Report this to the AC_PACKAGE_NAME lists.  ##
19907 ## ------------------------------------------ ##
19908 _ASBOX
19909     ) |
19910       sed "s/^/$as_me: WARNING:     /" >&2
19911     ;;
19912 esac
19913 echo "$as_me:$LINENO: checking for $ac_header" >&5
19914 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19915 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19916   echo $ECHO_N "(cached) $ECHO_C" >&6
19917 else
19918   eval "$as_ac_Header=\$ac_header_preproc"
19919 fi
19920 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19921 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19922
19923 fi
19924 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19925   cat >>confdefs.h <<_ACEOF
19926 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19927 _ACEOF
19928
19929 fi
19930
19931 done
19932
19933
19934         if test $ac_cv_header_pthread_h = yes ; then
19935                 echo "$as_me:$LINENO: checking POSIX thread version" >&5
19936 echo $ECHO_N "checking POSIX thread version... $ECHO_C" >&6
19937 if test "${ol_cv_pthread_version+set}" = set; then
19938   echo $ECHO_N "(cached) $ECHO_C" >&6
19939 else
19940
19941         cat >conftest.$ac_ext <<_ACEOF
19942 /* confdefs.h.  */
19943 _ACEOF
19944 cat confdefs.h >>conftest.$ac_ext
19945 cat >>conftest.$ac_ext <<_ACEOF
19946 /* end confdefs.h.  */
19947
19948 #               include <pthread.h>
19949
19950 int
19951 main ()
19952 {
19953
19954                 int i = PTHREAD_CREATE_JOINABLE;
19955
19956   ;
19957   return 0;
19958 }
19959 _ACEOF
19960 rm -f conftest.$ac_objext
19961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19962   (eval $ac_compile) 2>conftest.er1
19963   ac_status=$?
19964   grep -v '^ *+' conftest.er1 >conftest.err
19965   rm -f conftest.er1
19966   cat conftest.err >&5
19967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19968   (exit $ac_status); } &&
19969          { ac_try='test -z "$ac_c_werror_flag"
19970                          || test ! -s conftest.err'
19971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19972   (eval $ac_try) 2>&5
19973   ac_status=$?
19974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19975   (exit $ac_status); }; } &&
19976          { ac_try='test -s conftest.$ac_objext'
19977   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19978   (eval $ac_try) 2>&5
19979   ac_status=$?
19980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19981   (exit $ac_status); }; }; then
19982
19983         cat >conftest.$ac_ext <<_ACEOF
19984 /* confdefs.h.  */
19985 _ACEOF
19986 cat confdefs.h >>conftest.$ac_ext
19987 cat >>conftest.$ac_ext <<_ACEOF
19988 /* end confdefs.h.  */
19989 #include <pthread.h>
19990
19991 _ACEOF
19992 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19993   $EGREP "pthread_detach" >/dev/null 2>&1; then
19994   ol_cv_pthread_version=10
19995 else
19996   ol_cv_pthread_version=8
19997 fi
19998 rm -f conftest*
19999
20000 else
20001   echo "$as_me: failed program was:" >&5
20002 sed 's/^/| /' conftest.$ac_ext >&5
20003
20004
20005         cat >conftest.$ac_ext <<_ACEOF
20006 /* confdefs.h.  */
20007 _ACEOF
20008 cat confdefs.h >>conftest.$ac_ext
20009 cat >>conftest.$ac_ext <<_ACEOF
20010 /* end confdefs.h.  */
20011
20012 #               include <pthread.h>
20013 #               ifdef PTHREAD_CREATE_UNDETACHED
20014                 draft7
20015 #               endif
20016
20017 _ACEOF
20018 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20019   $EGREP "draft7" >/dev/null 2>&1; then
20020   ol_cv_pthread_version=7
20021 else
20022
20023         cat >conftest.$ac_ext <<_ACEOF
20024 /* confdefs.h.  */
20025 _ACEOF
20026 cat confdefs.h >>conftest.$ac_ext
20027 cat >>conftest.$ac_ext <<_ACEOF
20028 /* end confdefs.h.  */
20029 #include <pthread.h>
20030
20031 _ACEOF
20032 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20033   $EGREP "pthread_attr_init" >/dev/null 2>&1; then
20034   ol_cv_pthread_version=6
20035 else
20036
20037         cat >conftest.$ac_ext <<_ACEOF
20038 /* confdefs.h.  */
20039 _ACEOF
20040 cat confdefs.h >>conftest.$ac_ext
20041 cat >>conftest.$ac_ext <<_ACEOF
20042 /* end confdefs.h.  */
20043
20044 #               include <pthread.h>
20045 #ifdef          PTHREAD_MUTEX_INITIALIZER
20046                 draft5
20047 #endif
20048
20049 _ACEOF
20050 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20051   $EGREP "draft5" >/dev/null 2>&1; then
20052   ol_cv_pthread_version=5
20053 else
20054   ol_cv_pthread_version=4
20055 fi
20056 rm -f conftest*
20057
20058 fi
20059 rm -f conftest*
20060
20061 fi
20062 rm -f conftest*
20063
20064 fi
20065 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20066
20067 fi
20068 echo "$as_me:$LINENO: result: $ol_cv_pthread_version" >&5
20069 echo "${ECHO_T}$ol_cv_pthread_version" >&6
20070
20071
20072                 if test $ol_cv_pthread_version != 0 ; then
20073
20074 cat >>confdefs.h <<_ACEOF
20075 #define HAVE_PTHREADS $ol_cv_pthread_version
20076 _ACEOF
20077
20078                 else
20079                         { { echo "$as_me:$LINENO: error: unknown pthread version" >&5
20080 echo "$as_me: error: unknown pthread version" >&2;}
20081    { (exit 1); exit 1; }; }
20082                 fi
20083
20084                 # consider threads found
20085                 ol_with_threads=found
20086
20087
20088         echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
20089 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
20090 if test "${ol_cv_header_linux_threads+set}" = set; then
20091   echo $ECHO_N "(cached) $ECHO_C" >&6
20092 else
20093   cat >conftest.$ac_ext <<_ACEOF
20094 /* confdefs.h.  */
20095 _ACEOF
20096 cat confdefs.h >>conftest.$ac_ext
20097 cat >>conftest.$ac_ext <<_ACEOF
20098 /* end confdefs.h.  */
20099 #include <pthread.h>
20100 _ACEOF
20101 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20102   $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
20103   ol_cv_header_linux_threads=yes
20104 else
20105   ol_cv_header_linux_threads=no
20106 fi
20107 rm -f conftest*
20108
20109
20110 fi
20111 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
20112 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
20113         if test $ol_cv_header_linux_threads = yes; then
20114
20115 cat >>confdefs.h <<\_ACEOF
20116 #define HAVE_LINUX_THREADS 1
20117 _ACEOF
20118
20119         fi
20120
20121
20122         echo "$as_me:$LINENO: checking for GNU Pth pthread.h" >&5
20123 echo $ECHO_N "checking for GNU Pth pthread.h... $ECHO_C" >&6
20124 if test "${ol_cv_header_gnu_pth_pthread_h+set}" = set; then
20125   echo $ECHO_N "(cached) $ECHO_C" >&6
20126 else
20127   cat >conftest.$ac_ext <<_ACEOF
20128 /* confdefs.h.  */
20129 _ACEOF
20130 cat confdefs.h >>conftest.$ac_ext
20131 cat >>conftest.$ac_ext <<_ACEOF
20132 /* end confdefs.h.  */
20133 #include <pthread.h>
20134 #ifdef _POSIX_THREAD_IS_GNU_PTH
20135         __gnu_pth__;
20136 #endif
20137
20138 _ACEOF
20139 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20140   $EGREP "__gnu_pth__" >/dev/null 2>&1; then
20141   ol_cv_header_gnu_pth_pthread_h=yes
20142 else
20143   ol_cv_header_gnu_pth_pthread_h=no
20144 fi
20145 rm -f conftest*
20146
20147
20148 fi
20149 echo "$as_me:$LINENO: result: $ol_cv_header_gnu_pth_pthread_h" >&5
20150 echo "${ECHO_T}$ol_cv_header_gnu_pth_pthread_h" >&6
20151
20152
20153                 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
20154
20155 for ac_header in sched.h
20156 do
20157 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20158 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20159   echo "$as_me:$LINENO: checking for $ac_header" >&5
20160 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20161 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20162   echo $ECHO_N "(cached) $ECHO_C" >&6
20163 fi
20164 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20165 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20166 else
20167   # Is the header compilable?
20168 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20169 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20170 cat >conftest.$ac_ext <<_ACEOF
20171 /* confdefs.h.  */
20172 _ACEOF
20173 cat confdefs.h >>conftest.$ac_ext
20174 cat >>conftest.$ac_ext <<_ACEOF
20175 /* end confdefs.h.  */
20176 $ac_includes_default
20177 #include <$ac_header>
20178 _ACEOF
20179 rm -f conftest.$ac_objext
20180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20181   (eval $ac_compile) 2>conftest.er1
20182   ac_status=$?
20183   grep -v '^ *+' conftest.er1 >conftest.err
20184   rm -f conftest.er1
20185   cat conftest.err >&5
20186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20187   (exit $ac_status); } &&
20188          { ac_try='test -z "$ac_c_werror_flag"
20189                          || test ! -s conftest.err'
20190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20191   (eval $ac_try) 2>&5
20192   ac_status=$?
20193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20194   (exit $ac_status); }; } &&
20195          { ac_try='test -s conftest.$ac_objext'
20196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20197   (eval $ac_try) 2>&5
20198   ac_status=$?
20199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20200   (exit $ac_status); }; }; then
20201   ac_header_compiler=yes
20202 else
20203   echo "$as_me: failed program was:" >&5
20204 sed 's/^/| /' conftest.$ac_ext >&5
20205
20206 ac_header_compiler=no
20207 fi
20208 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20209 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20210 echo "${ECHO_T}$ac_header_compiler" >&6
20211
20212 # Is the header present?
20213 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20214 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20215 cat >conftest.$ac_ext <<_ACEOF
20216 /* confdefs.h.  */
20217 _ACEOF
20218 cat confdefs.h >>conftest.$ac_ext
20219 cat >>conftest.$ac_ext <<_ACEOF
20220 /* end confdefs.h.  */
20221 #include <$ac_header>
20222 _ACEOF
20223 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20224   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20225   ac_status=$?
20226   grep -v '^ *+' conftest.er1 >conftest.err
20227   rm -f conftest.er1
20228   cat conftest.err >&5
20229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20230   (exit $ac_status); } >/dev/null; then
20231   if test -s conftest.err; then
20232     ac_cpp_err=$ac_c_preproc_warn_flag
20233     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20234   else
20235     ac_cpp_err=
20236   fi
20237 else
20238   ac_cpp_err=yes
20239 fi
20240 if test -z "$ac_cpp_err"; then
20241   ac_header_preproc=yes
20242 else
20243   echo "$as_me: failed program was:" >&5
20244 sed 's/^/| /' conftest.$ac_ext >&5
20245
20246   ac_header_preproc=no
20247 fi
20248 rm -f conftest.err conftest.$ac_ext
20249 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20250 echo "${ECHO_T}$ac_header_preproc" >&6
20251
20252 # So?  What about this header?
20253 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20254   yes:no: )
20255     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20256 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20257     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20258 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20259     ac_header_preproc=yes
20260     ;;
20261   no:yes:* )
20262     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20263 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20264     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20265 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20266     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20267 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20268     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20269 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20270     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20271 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20272     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20273 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20274     (
20275       cat <<\_ASBOX
20276 ## ------------------------------------------ ##
20277 ## Report this to the AC_PACKAGE_NAME lists.  ##
20278 ## ------------------------------------------ ##
20279 _ASBOX
20280     ) |
20281       sed "s/^/$as_me: WARNING:     /" >&2
20282     ;;
20283 esac
20284 echo "$as_me:$LINENO: checking for $ac_header" >&5
20285 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20286 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20287   echo $ECHO_N "(cached) $ECHO_C" >&6
20288 else
20289   eval "$as_ac_Header=\$ac_header_preproc"
20290 fi
20291 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20292 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20293
20294 fi
20295 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20296   cat >>confdefs.h <<_ACEOF
20297 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20298 _ACEOF
20299
20300 fi
20301
20302 done
20303
20304                 fi
20305
20306
20307                                 echo "$as_me:$LINENO: checking for pthread_create in default libraries" >&5
20308 echo $ECHO_N "checking for pthread_create in default libraries... $ECHO_C" >&6
20309 if test "${ol_cv_pthread_create+set}" = set; then
20310   echo $ECHO_N "(cached) $ECHO_C" >&6
20311 else
20312
20313                         if test "$cross_compiling" = yes; then
20314   cat >conftest.$ac_ext <<_ACEOF
20315 /* confdefs.h.  */
20316 _ACEOF
20317 cat confdefs.h >>conftest.$ac_ext
20318 cat >>conftest.$ac_ext <<_ACEOF
20319 /* end confdefs.h.  */
20320
20321 /* pthread test headers */
20322 #include <pthread.h>
20323 #if HAVE_PTHREADS < 7
20324 #include <errno.h>
20325 #endif
20326 #ifndef NULL
20327 #define NULL (void*)0
20328 #endif
20329
20330 static void *task(p)
20331         void *p;
20332 {
20333         return (void *) (p == NULL);
20334 }
20335
20336 int
20337 main ()
20338 {
20339
20340         /* pthread test function */
20341 #ifndef PTHREAD_CREATE_DETACHED
20342 #define PTHREAD_CREATE_DETACHED 1
20343 #endif
20344         pthread_t t;
20345         int status;
20346         int detach = PTHREAD_CREATE_DETACHED;
20347
20348 #if HAVE_PTHREADS > 4
20349         /* Final pthreads */
20350         pthread_attr_t attr;
20351
20352         status = pthread_attr_init(&attr);
20353         if( status ) return status;
20354
20355 #if HAVE_PTHREADS < 7
20356         status = pthread_attr_setdetachstate(&attr, &detach);
20357         if( status < 0 ) status = errno;
20358 #else
20359         status = pthread_attr_setdetachstate(&attr, detach);
20360 #endif
20361         if( status ) return status;
20362         status = pthread_create( &t, &attr, task, NULL );
20363 #if HAVE_PTHREADS < 7
20364         if( status < 0 ) status = errno;
20365 #endif
20366         if( status ) return status;
20367 #else
20368         /* Draft 4 pthreads */
20369         status = pthread_create( &t, pthread_attr_default, task, NULL );
20370         if( status ) return errno;
20371
20372         /* give thread a chance to complete */
20373         /* it should remain joinable and hence detachable */
20374         sleep( 1 );
20375
20376         status = pthread_detach( &t );
20377         if( status ) return errno;
20378 #endif
20379
20380 #ifdef HAVE_LINUX_THREADS
20381         pthread_kill_other_threads_np();
20382 #endif
20383
20384         return 0;
20385
20386   ;
20387   return 0;
20388 }
20389 _ACEOF
20390 rm -f conftest.$ac_objext conftest$ac_exeext
20391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20392   (eval $ac_link) 2>conftest.er1
20393   ac_status=$?
20394   grep -v '^ *+' conftest.er1 >conftest.err
20395   rm -f conftest.er1
20396   cat conftest.err >&5
20397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20398   (exit $ac_status); } &&
20399          { ac_try='test -z "$ac_c_werror_flag"
20400                          || test ! -s conftest.err'
20401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20402   (eval $ac_try) 2>&5
20403   ac_status=$?
20404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20405   (exit $ac_status); }; } &&
20406          { ac_try='test -s conftest$ac_exeext'
20407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20408   (eval $ac_try) 2>&5
20409   ac_status=$?
20410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20411   (exit $ac_status); }; }; then
20412   ol_cv_pthread_create=yes
20413 else
20414   echo "$as_me: failed program was:" >&5
20415 sed 's/^/| /' conftest.$ac_ext >&5
20416
20417 ol_cv_pthread_create=no
20418 fi
20419 rm -f conftest.err conftest.$ac_objext \
20420       conftest$ac_exeext conftest.$ac_ext
20421 else
20422   cat >conftest.$ac_ext <<_ACEOF
20423 /* confdefs.h.  */
20424 _ACEOF
20425 cat confdefs.h >>conftest.$ac_ext
20426 cat >>conftest.$ac_ext <<_ACEOF
20427 /* end confdefs.h.  */
20428
20429 /* pthread test headers */
20430 #include <pthread.h>
20431 #if HAVE_PTHREADS < 7
20432 #include <errno.h>
20433 #endif
20434 #ifndef NULL
20435 #define NULL (void*)0
20436 #endif
20437
20438 static void *task(p)
20439         void *p;
20440 {
20441         return (void *) (p == NULL);
20442 }
20443
20444
20445 int main(argc, argv)
20446         int argc;
20447         char **argv;
20448 {
20449
20450         /* pthread test function */
20451 #ifndef PTHREAD_CREATE_DETACHED
20452 #define PTHREAD_CREATE_DETACHED 1
20453 #endif
20454         pthread_t t;
20455         int status;
20456         int detach = PTHREAD_CREATE_DETACHED;
20457
20458 #if HAVE_PTHREADS > 4
20459         /* Final pthreads */
20460         pthread_attr_t attr;
20461
20462         status = pthread_attr_init(&attr);
20463         if( status ) return status;
20464
20465 #if HAVE_PTHREADS < 7
20466         status = pthread_attr_setdetachstate(&attr, &detach);
20467         if( status < 0 ) status = errno;
20468 #else
20469         status = pthread_attr_setdetachstate(&attr, detach);
20470 #endif
20471         if( status ) return status;
20472         status = pthread_create( &t, &attr, task, NULL );
20473 #if HAVE_PTHREADS < 7
20474         if( status < 0 ) status = errno;
20475 #endif
20476         if( status ) return status;
20477 #else
20478         /* Draft 4 pthreads */
20479         status = pthread_create( &t, pthread_attr_default, task, NULL );
20480         if( status ) return errno;
20481
20482         /* give thread a chance to complete */
20483         /* it should remain joinable and hence detachable */
20484         sleep( 1 );
20485
20486         status = pthread_detach( &t );
20487         if( status ) return errno;
20488 #endif
20489
20490 #ifdef HAVE_LINUX_THREADS
20491         pthread_kill_other_threads_np();
20492 #endif
20493
20494         return 0;
20495
20496 }
20497
20498 _ACEOF
20499 rm -f conftest$ac_exeext
20500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20501   (eval $ac_link) 2>&5
20502   ac_status=$?
20503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20504   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20506   (eval $ac_try) 2>&5
20507   ac_status=$?
20508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20509   (exit $ac_status); }; }; then
20510   ol_cv_pthread_create=yes
20511 else
20512   echo "$as_me: program exited with status $ac_status" >&5
20513 echo "$as_me: failed program was:" >&5
20514 sed 's/^/| /' conftest.$ac_ext >&5
20515
20516 ( exit $ac_status )
20517 ol_cv_pthread_create=no
20518 fi
20519 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20520 fi
20521 fi
20522 echo "$as_me:$LINENO: result: $ol_cv_pthread_create" >&5
20523 echo "${ECHO_T}$ol_cv_pthread_create" >&6
20524
20525                 if test $ol_cv_pthread_create != no ; then
20526                         ol_link_threads=posix
20527                         ol_link_pthreads=""
20528                 fi
20529
20530                 # Pthread try link: -kthread (ol_cv_pthread_kthread)
20531 if test "$ol_link_threads" = no ; then
20532         # try -kthread
20533         echo "$as_me:$LINENO: checking for pthread link with -kthread" >&5
20534 echo $ECHO_N "checking for pthread link with -kthread... $ECHO_C" >&6
20535 if test "${ol_cv_pthread_kthread+set}" = set; then
20536   echo $ECHO_N "(cached) $ECHO_C" >&6
20537 else
20538
20539                 # save the flags
20540                 ol_LIBS="$LIBS"
20541                 LIBS="-kthread $LIBS"
20542
20543                 if test "$cross_compiling" = yes; then
20544   cat >conftest.$ac_ext <<_ACEOF
20545 /* confdefs.h.  */
20546 _ACEOF
20547 cat confdefs.h >>conftest.$ac_ext
20548 cat >>conftest.$ac_ext <<_ACEOF
20549 /* end confdefs.h.  */
20550
20551 /* pthread test headers */
20552 #include <pthread.h>
20553 #if HAVE_PTHREADS < 7
20554 #include <errno.h>
20555 #endif
20556 #ifndef NULL
20557 #define NULL (void*)0
20558 #endif
20559
20560 static void *task(p)
20561         void *p;
20562 {
20563         return (void *) (p == NULL);
20564 }
20565
20566 int
20567 main ()
20568 {
20569
20570         /* pthread test function */
20571 #ifndef PTHREAD_CREATE_DETACHED
20572 #define PTHREAD_CREATE_DETACHED 1
20573 #endif
20574         pthread_t t;
20575         int status;
20576         int detach = PTHREAD_CREATE_DETACHED;
20577
20578 #if HAVE_PTHREADS > 4
20579         /* Final pthreads */
20580         pthread_attr_t attr;
20581
20582         status = pthread_attr_init(&attr);
20583         if( status ) return status;
20584
20585 #if HAVE_PTHREADS < 7
20586         status = pthread_attr_setdetachstate(&attr, &detach);
20587         if( status < 0 ) status = errno;
20588 #else
20589         status = pthread_attr_setdetachstate(&attr, detach);
20590 #endif
20591         if( status ) return status;
20592         status = pthread_create( &t, &attr, task, NULL );
20593 #if HAVE_PTHREADS < 7
20594         if( status < 0 ) status = errno;
20595 #endif
20596         if( status ) return status;
20597 #else
20598         /* Draft 4 pthreads */
20599         status = pthread_create( &t, pthread_attr_default, task, NULL );
20600         if( status ) return errno;
20601
20602         /* give thread a chance to complete */
20603         /* it should remain joinable and hence detachable */
20604         sleep( 1 );
20605
20606         status = pthread_detach( &t );
20607         if( status ) return errno;
20608 #endif
20609
20610 #ifdef HAVE_LINUX_THREADS
20611         pthread_kill_other_threads_np();
20612 #endif
20613
20614         return 0;
20615
20616   ;
20617   return 0;
20618 }
20619 _ACEOF
20620 rm -f conftest.$ac_objext conftest$ac_exeext
20621 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20622   (eval $ac_link) 2>conftest.er1
20623   ac_status=$?
20624   grep -v '^ *+' conftest.er1 >conftest.err
20625   rm -f conftest.er1
20626   cat conftest.err >&5
20627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20628   (exit $ac_status); } &&
20629          { ac_try='test -z "$ac_c_werror_flag"
20630                          || test ! -s conftest.err'
20631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20632   (eval $ac_try) 2>&5
20633   ac_status=$?
20634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20635   (exit $ac_status); }; } &&
20636          { ac_try='test -s conftest$ac_exeext'
20637   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20638   (eval $ac_try) 2>&5
20639   ac_status=$?
20640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20641   (exit $ac_status); }; }; then
20642   ol_cv_pthread_kthread=yes
20643 else
20644   echo "$as_me: failed program was:" >&5
20645 sed 's/^/| /' conftest.$ac_ext >&5
20646
20647 ol_cv_pthread_kthread=no
20648 fi
20649 rm -f conftest.err conftest.$ac_objext \
20650       conftest$ac_exeext conftest.$ac_ext
20651 else
20652   cat >conftest.$ac_ext <<_ACEOF
20653 /* confdefs.h.  */
20654 _ACEOF
20655 cat confdefs.h >>conftest.$ac_ext
20656 cat >>conftest.$ac_ext <<_ACEOF
20657 /* end confdefs.h.  */
20658
20659 /* pthread test headers */
20660 #include <pthread.h>
20661 #if HAVE_PTHREADS < 7
20662 #include <errno.h>
20663 #endif
20664 #ifndef NULL
20665 #define NULL (void*)0
20666 #endif
20667
20668 static void *task(p)
20669         void *p;
20670 {
20671         return (void *) (p == NULL);
20672 }
20673
20674
20675 int main(argc, argv)
20676         int argc;
20677         char **argv;
20678 {
20679
20680         /* pthread test function */
20681 #ifndef PTHREAD_CREATE_DETACHED
20682 #define PTHREAD_CREATE_DETACHED 1
20683 #endif
20684         pthread_t t;
20685         int status;
20686         int detach = PTHREAD_CREATE_DETACHED;
20687
20688 #if HAVE_PTHREADS > 4
20689         /* Final pthreads */
20690         pthread_attr_t attr;
20691
20692         status = pthread_attr_init(&attr);
20693         if( status ) return status;
20694
20695 #if HAVE_PTHREADS < 7
20696         status = pthread_attr_setdetachstate(&attr, &detach);
20697         if( status < 0 ) status = errno;
20698 #else
20699         status = pthread_attr_setdetachstate(&attr, detach);
20700 #endif
20701         if( status ) return status;
20702         status = pthread_create( &t, &attr, task, NULL );
20703 #if HAVE_PTHREADS < 7
20704         if( status < 0 ) status = errno;
20705 #endif
20706         if( status ) return status;
20707 #else
20708         /* Draft 4 pthreads */
20709         status = pthread_create( &t, pthread_attr_default, task, NULL );
20710         if( status ) return errno;
20711
20712         /* give thread a chance to complete */
20713         /* it should remain joinable and hence detachable */
20714         sleep( 1 );
20715
20716         status = pthread_detach( &t );
20717         if( status ) return errno;
20718 #endif
20719
20720 #ifdef HAVE_LINUX_THREADS
20721         pthread_kill_other_threads_np();
20722 #endif
20723
20724         return 0;
20725
20726 }
20727
20728 _ACEOF
20729 rm -f conftest$ac_exeext
20730 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20731   (eval $ac_link) 2>&5
20732   ac_status=$?
20733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20734   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20736   (eval $ac_try) 2>&5
20737   ac_status=$?
20738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20739   (exit $ac_status); }; }; then
20740   ol_cv_pthread_kthread=yes
20741 else
20742   echo "$as_me: program exited with status $ac_status" >&5
20743 echo "$as_me: failed program was:" >&5
20744 sed 's/^/| /' conftest.$ac_ext >&5
20745
20746 ( exit $ac_status )
20747 ol_cv_pthread_kthread=no
20748 fi
20749 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20750 fi
20751
20752                 # restore the LIBS
20753                 LIBS="$ol_LIBS"
20754
20755 fi
20756 echo "$as_me:$LINENO: result: $ol_cv_pthread_kthread" >&5
20757 echo "${ECHO_T}$ol_cv_pthread_kthread" >&6
20758
20759         if test $ol_cv_pthread_kthread = yes ; then
20760                 ol_link_pthreads="-kthread"
20761                 ol_link_threads=posix
20762         fi
20763 fi
20764
20765                 # Pthread try link: -pthread (ol_cv_pthread_pthread)
20766 if test "$ol_link_threads" = no ; then
20767         # try -pthread
20768         echo "$as_me:$LINENO: checking for pthread link with -pthread" >&5
20769 echo $ECHO_N "checking for pthread link with -pthread... $ECHO_C" >&6
20770 if test "${ol_cv_pthread_pthread+set}" = set; then
20771   echo $ECHO_N "(cached) $ECHO_C" >&6
20772 else
20773
20774                 # save the flags
20775                 ol_LIBS="$LIBS"
20776                 LIBS="-pthread $LIBS"
20777
20778                 if test "$cross_compiling" = yes; then
20779   cat >conftest.$ac_ext <<_ACEOF
20780 /* confdefs.h.  */
20781 _ACEOF
20782 cat confdefs.h >>conftest.$ac_ext
20783 cat >>conftest.$ac_ext <<_ACEOF
20784 /* end confdefs.h.  */
20785
20786 /* pthread test headers */
20787 #include <pthread.h>
20788 #if HAVE_PTHREADS < 7
20789 #include <errno.h>
20790 #endif
20791 #ifndef NULL
20792 #define NULL (void*)0
20793 #endif
20794
20795 static void *task(p)
20796         void *p;
20797 {
20798         return (void *) (p == NULL);
20799 }
20800
20801 int
20802 main ()
20803 {
20804
20805         /* pthread test function */
20806 #ifndef PTHREAD_CREATE_DETACHED
20807 #define PTHREAD_CREATE_DETACHED 1
20808 #endif
20809         pthread_t t;
20810         int status;
20811         int detach = PTHREAD_CREATE_DETACHED;
20812
20813 #if HAVE_PTHREADS > 4
20814         /* Final pthreads */
20815         pthread_attr_t attr;
20816
20817         status = pthread_attr_init(&attr);
20818         if( status ) return status;
20819
20820 #if HAVE_PTHREADS < 7
20821         status = pthread_attr_setdetachstate(&attr, &detach);
20822         if( status < 0 ) status = errno;
20823 #else
20824         status = pthread_attr_setdetachstate(&attr, detach);
20825 #endif
20826         if( status ) return status;
20827         status = pthread_create( &t, &attr, task, NULL );
20828 #if HAVE_PTHREADS < 7
20829         if( status < 0 ) status = errno;
20830 #endif
20831         if( status ) return status;
20832 #else
20833         /* Draft 4 pthreads */
20834         status = pthread_create( &t, pthread_attr_default, task, NULL );
20835         if( status ) return errno;
20836
20837         /* give thread a chance to complete */
20838         /* it should remain joinable and hence detachable */
20839         sleep( 1 );
20840
20841         status = pthread_detach( &t );
20842         if( status ) return errno;
20843 #endif
20844
20845 #ifdef HAVE_LINUX_THREADS
20846         pthread_kill_other_threads_np();
20847 #endif
20848
20849         return 0;
20850
20851   ;
20852   return 0;
20853 }
20854 _ACEOF
20855 rm -f conftest.$ac_objext conftest$ac_exeext
20856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20857   (eval $ac_link) 2>conftest.er1
20858   ac_status=$?
20859   grep -v '^ *+' conftest.er1 >conftest.err
20860   rm -f conftest.er1
20861   cat conftest.err >&5
20862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20863   (exit $ac_status); } &&
20864          { ac_try='test -z "$ac_c_werror_flag"
20865                          || test ! -s conftest.err'
20866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20867   (eval $ac_try) 2>&5
20868   ac_status=$?
20869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20870   (exit $ac_status); }; } &&
20871          { ac_try='test -s conftest$ac_exeext'
20872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20873   (eval $ac_try) 2>&5
20874   ac_status=$?
20875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20876   (exit $ac_status); }; }; then
20877   ol_cv_pthread_pthread=yes
20878 else
20879   echo "$as_me: failed program was:" >&5
20880 sed 's/^/| /' conftest.$ac_ext >&5
20881
20882 ol_cv_pthread_pthread=no
20883 fi
20884 rm -f conftest.err conftest.$ac_objext \
20885       conftest$ac_exeext conftest.$ac_ext
20886 else
20887   cat >conftest.$ac_ext <<_ACEOF
20888 /* confdefs.h.  */
20889 _ACEOF
20890 cat confdefs.h >>conftest.$ac_ext
20891 cat >>conftest.$ac_ext <<_ACEOF
20892 /* end confdefs.h.  */
20893
20894 /* pthread test headers */
20895 #include <pthread.h>
20896 #if HAVE_PTHREADS < 7
20897 #include <errno.h>
20898 #endif
20899 #ifndef NULL
20900 #define NULL (void*)0
20901 #endif
20902
20903 static void *task(p)
20904         void *p;
20905 {
20906         return (void *) (p == NULL);
20907 }
20908
20909
20910 int main(argc, argv)
20911         int argc;
20912         char **argv;
20913 {
20914
20915         /* pthread test function */
20916 #ifndef PTHREAD_CREATE_DETACHED
20917 #define PTHREAD_CREATE_DETACHED 1
20918 #endif
20919         pthread_t t;
20920         int status;
20921         int detach = PTHREAD_CREATE_DETACHED;
20922
20923 #if HAVE_PTHREADS > 4
20924         /* Final pthreads */
20925         pthread_attr_t attr;
20926
20927         status = pthread_attr_init(&attr);
20928         if( status ) return status;
20929
20930 #if HAVE_PTHREADS < 7
20931         status = pthread_attr_setdetachstate(&attr, &detach);
20932         if( status < 0 ) status = errno;
20933 #else
20934         status = pthread_attr_setdetachstate(&attr, detach);
20935 #endif
20936         if( status ) return status;
20937         status = pthread_create( &t, &attr, task, NULL );
20938 #if HAVE_PTHREADS < 7
20939         if( status < 0 ) status = errno;
20940 #endif
20941         if( status ) return status;
20942 #else
20943         /* Draft 4 pthreads */
20944         status = pthread_create( &t, pthread_attr_default, task, NULL );
20945         if( status ) return errno;
20946
20947         /* give thread a chance to complete */
20948         /* it should remain joinable and hence detachable */
20949         sleep( 1 );
20950
20951         status = pthread_detach( &t );
20952         if( status ) return errno;
20953 #endif
20954
20955 #ifdef HAVE_LINUX_THREADS
20956         pthread_kill_other_threads_np();
20957 #endif
20958
20959         return 0;
20960
20961 }
20962
20963 _ACEOF
20964 rm -f conftest$ac_exeext
20965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20966   (eval $ac_link) 2>&5
20967   ac_status=$?
20968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20969   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20971   (eval $ac_try) 2>&5
20972   ac_status=$?
20973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20974   (exit $ac_status); }; }; then
20975   ol_cv_pthread_pthread=yes
20976 else
20977   echo "$as_me: program exited with status $ac_status" >&5
20978 echo "$as_me: failed program was:" >&5
20979 sed 's/^/| /' conftest.$ac_ext >&5
20980
20981 ( exit $ac_status )
20982 ol_cv_pthread_pthread=no
20983 fi
20984 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20985 fi
20986
20987                 # restore the LIBS
20988                 LIBS="$ol_LIBS"
20989
20990 fi
20991 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthread" >&5
20992 echo "${ECHO_T}$ol_cv_pthread_pthread" >&6
20993
20994         if test $ol_cv_pthread_pthread = yes ; then
20995                 ol_link_pthreads="-pthread"
20996                 ol_link_threads=posix
20997         fi
20998 fi
20999
21000                 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
21001 if test "$ol_link_threads" = no ; then
21002         # try -pthreads
21003         echo "$as_me:$LINENO: checking for pthread link with -pthreads" >&5
21004 echo $ECHO_N "checking for pthread link with -pthreads... $ECHO_C" >&6
21005 if test "${ol_cv_pthread_pthreads+set}" = set; then
21006   echo $ECHO_N "(cached) $ECHO_C" >&6
21007 else
21008
21009                 # save the flags
21010                 ol_LIBS="$LIBS"
21011                 LIBS="-pthreads $LIBS"
21012
21013                 if test "$cross_compiling" = yes; then
21014   cat >conftest.$ac_ext <<_ACEOF
21015 /* confdefs.h.  */
21016 _ACEOF
21017 cat confdefs.h >>conftest.$ac_ext
21018 cat >>conftest.$ac_ext <<_ACEOF
21019 /* end confdefs.h.  */
21020
21021 /* pthread test headers */
21022 #include <pthread.h>
21023 #if HAVE_PTHREADS < 7
21024 #include <errno.h>
21025 #endif
21026 #ifndef NULL
21027 #define NULL (void*)0
21028 #endif
21029
21030 static void *task(p)
21031         void *p;
21032 {
21033         return (void *) (p == NULL);
21034 }
21035
21036 int
21037 main ()
21038 {
21039
21040         /* pthread test function */
21041 #ifndef PTHREAD_CREATE_DETACHED
21042 #define PTHREAD_CREATE_DETACHED 1
21043 #endif
21044         pthread_t t;
21045         int status;
21046         int detach = PTHREAD_CREATE_DETACHED;
21047
21048 #if HAVE_PTHREADS > 4
21049         /* Final pthreads */
21050         pthread_attr_t attr;
21051
21052         status = pthread_attr_init(&attr);
21053         if( status ) return status;
21054
21055 #if HAVE_PTHREADS < 7
21056         status = pthread_attr_setdetachstate(&attr, &detach);
21057         if( status < 0 ) status = errno;
21058 #else
21059         status = pthread_attr_setdetachstate(&attr, detach);
21060 #endif
21061         if( status ) return status;
21062         status = pthread_create( &t, &attr, task, NULL );
21063 #if HAVE_PTHREADS < 7
21064         if( status < 0 ) status = errno;
21065 #endif
21066         if( status ) return status;
21067 #else
21068         /* Draft 4 pthreads */
21069         status = pthread_create( &t, pthread_attr_default, task, NULL );
21070         if( status ) return errno;
21071
21072         /* give thread a chance to complete */
21073         /* it should remain joinable and hence detachable */
21074         sleep( 1 );
21075
21076         status = pthread_detach( &t );
21077         if( status ) return errno;
21078 #endif
21079
21080 #ifdef HAVE_LINUX_THREADS
21081         pthread_kill_other_threads_np();
21082 #endif
21083
21084         return 0;
21085
21086   ;
21087   return 0;
21088 }
21089 _ACEOF
21090 rm -f conftest.$ac_objext conftest$ac_exeext
21091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21092   (eval $ac_link) 2>conftest.er1
21093   ac_status=$?
21094   grep -v '^ *+' conftest.er1 >conftest.err
21095   rm -f conftest.er1
21096   cat conftest.err >&5
21097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21098   (exit $ac_status); } &&
21099          { ac_try='test -z "$ac_c_werror_flag"
21100                          || test ! -s conftest.err'
21101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21102   (eval $ac_try) 2>&5
21103   ac_status=$?
21104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21105   (exit $ac_status); }; } &&
21106          { ac_try='test -s conftest$ac_exeext'
21107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21108   (eval $ac_try) 2>&5
21109   ac_status=$?
21110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21111   (exit $ac_status); }; }; then
21112   ol_cv_pthread_pthreads=yes
21113 else
21114   echo "$as_me: failed program was:" >&5
21115 sed 's/^/| /' conftest.$ac_ext >&5
21116
21117 ol_cv_pthread_pthreads=no
21118 fi
21119 rm -f conftest.err conftest.$ac_objext \
21120       conftest$ac_exeext conftest.$ac_ext
21121 else
21122   cat >conftest.$ac_ext <<_ACEOF
21123 /* confdefs.h.  */
21124 _ACEOF
21125 cat confdefs.h >>conftest.$ac_ext
21126 cat >>conftest.$ac_ext <<_ACEOF
21127 /* end confdefs.h.  */
21128
21129 /* pthread test headers */
21130 #include <pthread.h>
21131 #if HAVE_PTHREADS < 7
21132 #include <errno.h>
21133 #endif
21134 #ifndef NULL
21135 #define NULL (void*)0
21136 #endif
21137
21138 static void *task(p)
21139         void *p;
21140 {
21141         return (void *) (p == NULL);
21142 }
21143
21144
21145 int main(argc, argv)
21146         int argc;
21147         char **argv;
21148 {
21149
21150         /* pthread test function */
21151 #ifndef PTHREAD_CREATE_DETACHED
21152 #define PTHREAD_CREATE_DETACHED 1
21153 #endif
21154         pthread_t t;
21155         int status;
21156         int detach = PTHREAD_CREATE_DETACHED;
21157
21158 #if HAVE_PTHREADS > 4
21159         /* Final pthreads */
21160         pthread_attr_t attr;
21161
21162         status = pthread_attr_init(&attr);
21163         if( status ) return status;
21164
21165 #if HAVE_PTHREADS < 7
21166         status = pthread_attr_setdetachstate(&attr, &detach);
21167         if( status < 0 ) status = errno;
21168 #else
21169         status = pthread_attr_setdetachstate(&attr, detach);
21170 #endif
21171         if( status ) return status;
21172         status = pthread_create( &t, &attr, task, NULL );
21173 #if HAVE_PTHREADS < 7
21174         if( status < 0 ) status = errno;
21175 #endif
21176         if( status ) return status;
21177 #else
21178         /* Draft 4 pthreads */
21179         status = pthread_create( &t, pthread_attr_default, task, NULL );
21180         if( status ) return errno;
21181
21182         /* give thread a chance to complete */
21183         /* it should remain joinable and hence detachable */
21184         sleep( 1 );
21185
21186         status = pthread_detach( &t );
21187         if( status ) return errno;
21188 #endif
21189
21190 #ifdef HAVE_LINUX_THREADS
21191         pthread_kill_other_threads_np();
21192 #endif
21193
21194         return 0;
21195
21196 }
21197
21198 _ACEOF
21199 rm -f conftest$ac_exeext
21200 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21201   (eval $ac_link) 2>&5
21202   ac_status=$?
21203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21204   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21206   (eval $ac_try) 2>&5
21207   ac_status=$?
21208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21209   (exit $ac_status); }; }; then
21210   ol_cv_pthread_pthreads=yes
21211 else
21212   echo "$as_me: program exited with status $ac_status" >&5
21213 echo "$as_me: failed program was:" >&5
21214 sed 's/^/| /' conftest.$ac_ext >&5
21215
21216 ( exit $ac_status )
21217 ol_cv_pthread_pthreads=no
21218 fi
21219 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21220 fi
21221
21222                 # restore the LIBS
21223                 LIBS="$ol_LIBS"
21224
21225 fi
21226 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthreads" >&5
21227 echo "${ECHO_T}$ol_cv_pthread_pthreads" >&6
21228
21229         if test $ol_cv_pthread_pthreads = yes ; then
21230                 ol_link_pthreads="-pthreads"
21231                 ol_link_threads=posix
21232         fi
21233 fi
21234
21235                 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
21236 if test "$ol_link_threads" = no ; then
21237         # try -mthreads
21238         echo "$as_me:$LINENO: checking for pthread link with -mthreads" >&5
21239 echo $ECHO_N "checking for pthread link with -mthreads... $ECHO_C" >&6
21240 if test "${ol_cv_pthread_mthreads+set}" = set; then
21241   echo $ECHO_N "(cached) $ECHO_C" >&6
21242 else
21243
21244                 # save the flags
21245                 ol_LIBS="$LIBS"
21246                 LIBS="-mthreads $LIBS"
21247
21248                 if test "$cross_compiling" = yes; then
21249   cat >conftest.$ac_ext <<_ACEOF
21250 /* confdefs.h.  */
21251 _ACEOF
21252 cat confdefs.h >>conftest.$ac_ext
21253 cat >>conftest.$ac_ext <<_ACEOF
21254 /* end confdefs.h.  */
21255
21256 /* pthread test headers */
21257 #include <pthread.h>
21258 #if HAVE_PTHREADS < 7
21259 #include <errno.h>
21260 #endif
21261 #ifndef NULL
21262 #define NULL (void*)0
21263 #endif
21264
21265 static void *task(p)
21266         void *p;
21267 {
21268         return (void *) (p == NULL);
21269 }
21270
21271 int
21272 main ()
21273 {
21274
21275         /* pthread test function */
21276 #ifndef PTHREAD_CREATE_DETACHED
21277 #define PTHREAD_CREATE_DETACHED 1
21278 #endif
21279         pthread_t t;
21280         int status;
21281         int detach = PTHREAD_CREATE_DETACHED;
21282
21283 #if HAVE_PTHREADS > 4
21284         /* Final pthreads */
21285         pthread_attr_t attr;
21286
21287         status = pthread_attr_init(&attr);
21288         if( status ) return status;
21289
21290 #if HAVE_PTHREADS < 7
21291         status = pthread_attr_setdetachstate(&attr, &detach);
21292         if( status < 0 ) status = errno;
21293 #else
21294         status = pthread_attr_setdetachstate(&attr, detach);
21295 #endif
21296         if( status ) return status;
21297         status = pthread_create( &t, &attr, task, NULL );
21298 #if HAVE_PTHREADS < 7
21299         if( status < 0 ) status = errno;
21300 #endif
21301         if( status ) return status;
21302 #else
21303         /* Draft 4 pthreads */
21304         status = pthread_create( &t, pthread_attr_default, task, NULL );
21305         if( status ) return errno;
21306
21307         /* give thread a chance to complete */
21308         /* it should remain joinable and hence detachable */
21309         sleep( 1 );
21310
21311         status = pthread_detach( &t );
21312         if( status ) return errno;
21313 #endif
21314
21315 #ifdef HAVE_LINUX_THREADS
21316         pthread_kill_other_threads_np();
21317 #endif
21318
21319         return 0;
21320
21321   ;
21322   return 0;
21323 }
21324 _ACEOF
21325 rm -f conftest.$ac_objext conftest$ac_exeext
21326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21327   (eval $ac_link) 2>conftest.er1
21328   ac_status=$?
21329   grep -v '^ *+' conftest.er1 >conftest.err
21330   rm -f conftest.er1
21331   cat conftest.err >&5
21332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21333   (exit $ac_status); } &&
21334          { ac_try='test -z "$ac_c_werror_flag"
21335                          || test ! -s conftest.err'
21336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21337   (eval $ac_try) 2>&5
21338   ac_status=$?
21339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21340   (exit $ac_status); }; } &&
21341          { ac_try='test -s conftest$ac_exeext'
21342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21343   (eval $ac_try) 2>&5
21344   ac_status=$?
21345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21346   (exit $ac_status); }; }; then
21347   ol_cv_pthread_mthreads=yes
21348 else
21349   echo "$as_me: failed program was:" >&5
21350 sed 's/^/| /' conftest.$ac_ext >&5
21351
21352 ol_cv_pthread_mthreads=no
21353 fi
21354 rm -f conftest.err conftest.$ac_objext \
21355       conftest$ac_exeext conftest.$ac_ext
21356 else
21357   cat >conftest.$ac_ext <<_ACEOF
21358 /* confdefs.h.  */
21359 _ACEOF
21360 cat confdefs.h >>conftest.$ac_ext
21361 cat >>conftest.$ac_ext <<_ACEOF
21362 /* end confdefs.h.  */
21363
21364 /* pthread test headers */
21365 #include <pthread.h>
21366 #if HAVE_PTHREADS < 7
21367 #include <errno.h>
21368 #endif
21369 #ifndef NULL
21370 #define NULL (void*)0
21371 #endif
21372
21373 static void *task(p)
21374         void *p;
21375 {
21376         return (void *) (p == NULL);
21377 }
21378
21379
21380 int main(argc, argv)
21381         int argc;
21382         char **argv;
21383 {
21384
21385         /* pthread test function */
21386 #ifndef PTHREAD_CREATE_DETACHED
21387 #define PTHREAD_CREATE_DETACHED 1
21388 #endif
21389         pthread_t t;
21390         int status;
21391         int detach = PTHREAD_CREATE_DETACHED;
21392
21393 #if HAVE_PTHREADS > 4
21394         /* Final pthreads */
21395         pthread_attr_t attr;
21396
21397         status = pthread_attr_init(&attr);
21398         if( status ) return status;
21399
21400 #if HAVE_PTHREADS < 7
21401         status = pthread_attr_setdetachstate(&attr, &detach);
21402         if( status < 0 ) status = errno;
21403 #else
21404         status = pthread_attr_setdetachstate(&attr, detach);
21405 #endif
21406         if( status ) return status;
21407         status = pthread_create( &t, &attr, task, NULL );
21408 #if HAVE_PTHREADS < 7
21409         if( status < 0 ) status = errno;
21410 #endif
21411         if( status ) return status;
21412 #else
21413         /* Draft 4 pthreads */
21414         status = pthread_create( &t, pthread_attr_default, task, NULL );
21415         if( status ) return errno;
21416
21417         /* give thread a chance to complete */
21418         /* it should remain joinable and hence detachable */
21419         sleep( 1 );
21420
21421         status = pthread_detach( &t );
21422         if( status ) return errno;
21423 #endif
21424
21425 #ifdef HAVE_LINUX_THREADS
21426         pthread_kill_other_threads_np();
21427 #endif
21428
21429         return 0;
21430
21431 }
21432
21433 _ACEOF
21434 rm -f conftest$ac_exeext
21435 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21436   (eval $ac_link) 2>&5
21437   ac_status=$?
21438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21439   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21441   (eval $ac_try) 2>&5
21442   ac_status=$?
21443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21444   (exit $ac_status); }; }; then
21445   ol_cv_pthread_mthreads=yes
21446 else
21447   echo "$as_me: program exited with status $ac_status" >&5
21448 echo "$as_me: failed program was:" >&5
21449 sed 's/^/| /' conftest.$ac_ext >&5
21450
21451 ( exit $ac_status )
21452 ol_cv_pthread_mthreads=no
21453 fi
21454 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21455 fi
21456
21457                 # restore the LIBS
21458                 LIBS="$ol_LIBS"
21459
21460 fi
21461 echo "$as_me:$LINENO: result: $ol_cv_pthread_mthreads" >&5
21462 echo "${ECHO_T}$ol_cv_pthread_mthreads" >&6
21463
21464         if test $ol_cv_pthread_mthreads = yes ; then
21465                 ol_link_pthreads="-mthreads"
21466                 ol_link_threads=posix
21467         fi
21468 fi
21469
21470                 # Pthread try link: -thread (ol_cv_pthread_thread)
21471 if test "$ol_link_threads" = no ; then
21472         # try -thread
21473         echo "$as_me:$LINENO: checking for pthread link with -thread" >&5
21474 echo $ECHO_N "checking for pthread link with -thread... $ECHO_C" >&6
21475 if test "${ol_cv_pthread_thread+set}" = set; then
21476   echo $ECHO_N "(cached) $ECHO_C" >&6
21477 else
21478
21479                 # save the flags
21480                 ol_LIBS="$LIBS"
21481                 LIBS="-thread $LIBS"
21482
21483                 if test "$cross_compiling" = yes; then
21484   cat >conftest.$ac_ext <<_ACEOF
21485 /* confdefs.h.  */
21486 _ACEOF
21487 cat confdefs.h >>conftest.$ac_ext
21488 cat >>conftest.$ac_ext <<_ACEOF
21489 /* end confdefs.h.  */
21490
21491 /* pthread test headers */
21492 #include <pthread.h>
21493 #if HAVE_PTHREADS < 7
21494 #include <errno.h>
21495 #endif
21496 #ifndef NULL
21497 #define NULL (void*)0
21498 #endif
21499
21500 static void *task(p)
21501         void *p;
21502 {
21503         return (void *) (p == NULL);
21504 }
21505
21506 int
21507 main ()
21508 {
21509
21510         /* pthread test function */
21511 #ifndef PTHREAD_CREATE_DETACHED
21512 #define PTHREAD_CREATE_DETACHED 1
21513 #endif
21514         pthread_t t;
21515         int status;
21516         int detach = PTHREAD_CREATE_DETACHED;
21517
21518 #if HAVE_PTHREADS > 4
21519         /* Final pthreads */
21520         pthread_attr_t attr;
21521
21522         status = pthread_attr_init(&attr);
21523         if( status ) return status;
21524
21525 #if HAVE_PTHREADS < 7
21526         status = pthread_attr_setdetachstate(&attr, &detach);
21527         if( status < 0 ) status = errno;
21528 #else
21529         status = pthread_attr_setdetachstate(&attr, detach);
21530 #endif
21531         if( status ) return status;
21532         status = pthread_create( &t, &attr, task, NULL );
21533 #if HAVE_PTHREADS < 7
21534         if( status < 0 ) status = errno;
21535 #endif
21536         if( status ) return status;
21537 #else
21538         /* Draft 4 pthreads */
21539         status = pthread_create( &t, pthread_attr_default, task, NULL );
21540         if( status ) return errno;
21541
21542         /* give thread a chance to complete */
21543         /* it should remain joinable and hence detachable */
21544         sleep( 1 );
21545
21546         status = pthread_detach( &t );
21547         if( status ) return errno;
21548 #endif
21549
21550 #ifdef HAVE_LINUX_THREADS
21551         pthread_kill_other_threads_np();
21552 #endif
21553
21554         return 0;
21555
21556   ;
21557   return 0;
21558 }
21559 _ACEOF
21560 rm -f conftest.$ac_objext conftest$ac_exeext
21561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21562   (eval $ac_link) 2>conftest.er1
21563   ac_status=$?
21564   grep -v '^ *+' conftest.er1 >conftest.err
21565   rm -f conftest.er1
21566   cat conftest.err >&5
21567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21568   (exit $ac_status); } &&
21569          { ac_try='test -z "$ac_c_werror_flag"
21570                          || test ! -s conftest.err'
21571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21572   (eval $ac_try) 2>&5
21573   ac_status=$?
21574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21575   (exit $ac_status); }; } &&
21576          { ac_try='test -s conftest$ac_exeext'
21577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21578   (eval $ac_try) 2>&5
21579   ac_status=$?
21580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21581   (exit $ac_status); }; }; then
21582   ol_cv_pthread_thread=yes
21583 else
21584   echo "$as_me: failed program was:" >&5
21585 sed 's/^/| /' conftest.$ac_ext >&5
21586
21587 ol_cv_pthread_thread=no
21588 fi
21589 rm -f conftest.err conftest.$ac_objext \
21590       conftest$ac_exeext conftest.$ac_ext
21591 else
21592   cat >conftest.$ac_ext <<_ACEOF
21593 /* confdefs.h.  */
21594 _ACEOF
21595 cat confdefs.h >>conftest.$ac_ext
21596 cat >>conftest.$ac_ext <<_ACEOF
21597 /* end confdefs.h.  */
21598
21599 /* pthread test headers */
21600 #include <pthread.h>
21601 #if HAVE_PTHREADS < 7
21602 #include <errno.h>
21603 #endif
21604 #ifndef NULL
21605 #define NULL (void*)0
21606 #endif
21607
21608 static void *task(p)
21609         void *p;
21610 {
21611         return (void *) (p == NULL);
21612 }
21613
21614
21615 int main(argc, argv)
21616         int argc;
21617         char **argv;
21618 {
21619
21620         /* pthread test function */
21621 #ifndef PTHREAD_CREATE_DETACHED
21622 #define PTHREAD_CREATE_DETACHED 1
21623 #endif
21624         pthread_t t;
21625         int status;
21626         int detach = PTHREAD_CREATE_DETACHED;
21627
21628 #if HAVE_PTHREADS > 4
21629         /* Final pthreads */
21630         pthread_attr_t attr;
21631
21632         status = pthread_attr_init(&attr);
21633         if( status ) return status;
21634
21635 #if HAVE_PTHREADS < 7
21636         status = pthread_attr_setdetachstate(&attr, &detach);
21637         if( status < 0 ) status = errno;
21638 #else
21639         status = pthread_attr_setdetachstate(&attr, detach);
21640 #endif
21641         if( status ) return status;
21642         status = pthread_create( &t, &attr, task, NULL );
21643 #if HAVE_PTHREADS < 7
21644         if( status < 0 ) status = errno;
21645 #endif
21646         if( status ) return status;
21647 #else
21648         /* Draft 4 pthreads */
21649         status = pthread_create( &t, pthread_attr_default, task, NULL );
21650         if( status ) return errno;
21651
21652         /* give thread a chance to complete */
21653         /* it should remain joinable and hence detachable */
21654         sleep( 1 );
21655
21656         status = pthread_detach( &t );
21657         if( status ) return errno;
21658 #endif
21659
21660 #ifdef HAVE_LINUX_THREADS
21661         pthread_kill_other_threads_np();
21662 #endif
21663
21664         return 0;
21665
21666 }
21667
21668 _ACEOF
21669 rm -f conftest$ac_exeext
21670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21671   (eval $ac_link) 2>&5
21672   ac_status=$?
21673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21674   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21676   (eval $ac_try) 2>&5
21677   ac_status=$?
21678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21679   (exit $ac_status); }; }; then
21680   ol_cv_pthread_thread=yes
21681 else
21682   echo "$as_me: program exited with status $ac_status" >&5
21683 echo "$as_me: failed program was:" >&5
21684 sed 's/^/| /' conftest.$ac_ext >&5
21685
21686 ( exit $ac_status )
21687 ol_cv_pthread_thread=no
21688 fi
21689 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21690 fi
21691
21692                 # restore the LIBS
21693                 LIBS="$ol_LIBS"
21694
21695 fi
21696 echo "$as_me:$LINENO: result: $ol_cv_pthread_thread" >&5
21697 echo "${ECHO_T}$ol_cv_pthread_thread" >&6
21698
21699         if test $ol_cv_pthread_thread = yes ; then
21700                 ol_link_pthreads="-thread"
21701                 ol_link_threads=posix
21702         fi
21703 fi
21704
21705
21706                 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
21707 if test "$ol_link_threads" = no ; then
21708         # try -lpthread -lmach -lexc -lc_r
21709         echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
21710 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc -lc_r... $ECHO_C" >&6
21711 if test "${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}" = set; then
21712   echo $ECHO_N "(cached) $ECHO_C" >&6
21713 else
21714
21715                 # save the flags
21716                 ol_LIBS="$LIBS"
21717                 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
21718
21719                 if test "$cross_compiling" = yes; then
21720   cat >conftest.$ac_ext <<_ACEOF
21721 /* confdefs.h.  */
21722 _ACEOF
21723 cat confdefs.h >>conftest.$ac_ext
21724 cat >>conftest.$ac_ext <<_ACEOF
21725 /* end confdefs.h.  */
21726
21727 /* pthread test headers */
21728 #include <pthread.h>
21729 #if HAVE_PTHREADS < 7
21730 #include <errno.h>
21731 #endif
21732 #ifndef NULL
21733 #define NULL (void*)0
21734 #endif
21735
21736 static void *task(p)
21737         void *p;
21738 {
21739         return (void *) (p == NULL);
21740 }
21741
21742 int
21743 main ()
21744 {
21745
21746         /* pthread test function */
21747 #ifndef PTHREAD_CREATE_DETACHED
21748 #define PTHREAD_CREATE_DETACHED 1
21749 #endif
21750         pthread_t t;
21751         int status;
21752         int detach = PTHREAD_CREATE_DETACHED;
21753
21754 #if HAVE_PTHREADS > 4
21755         /* Final pthreads */
21756         pthread_attr_t attr;
21757
21758         status = pthread_attr_init(&attr);
21759         if( status ) return status;
21760
21761 #if HAVE_PTHREADS < 7
21762         status = pthread_attr_setdetachstate(&attr, &detach);
21763         if( status < 0 ) status = errno;
21764 #else
21765         status = pthread_attr_setdetachstate(&attr, detach);
21766 #endif
21767         if( status ) return status;
21768         status = pthread_create( &t, &attr, task, NULL );
21769 #if HAVE_PTHREADS < 7
21770         if( status < 0 ) status = errno;
21771 #endif
21772         if( status ) return status;
21773 #else
21774         /* Draft 4 pthreads */
21775         status = pthread_create( &t, pthread_attr_default, task, NULL );
21776         if( status ) return errno;
21777
21778         /* give thread a chance to complete */
21779         /* it should remain joinable and hence detachable */
21780         sleep( 1 );
21781
21782         status = pthread_detach( &t );
21783         if( status ) return errno;
21784 #endif
21785
21786 #ifdef HAVE_LINUX_THREADS
21787         pthread_kill_other_threads_np();
21788 #endif
21789
21790         return 0;
21791
21792   ;
21793   return 0;
21794 }
21795 _ACEOF
21796 rm -f conftest.$ac_objext conftest$ac_exeext
21797 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21798   (eval $ac_link) 2>conftest.er1
21799   ac_status=$?
21800   grep -v '^ *+' conftest.er1 >conftest.err
21801   rm -f conftest.er1
21802   cat conftest.err >&5
21803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21804   (exit $ac_status); } &&
21805          { ac_try='test -z "$ac_c_werror_flag"
21806                          || test ! -s conftest.err'
21807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21808   (eval $ac_try) 2>&5
21809   ac_status=$?
21810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21811   (exit $ac_status); }; } &&
21812          { ac_try='test -s conftest$ac_exeext'
21813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21814   (eval $ac_try) 2>&5
21815   ac_status=$?
21816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21817   (exit $ac_status); }; }; then
21818   ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
21819 else
21820   echo "$as_me: failed program was:" >&5
21821 sed 's/^/| /' conftest.$ac_ext >&5
21822
21823 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
21824 fi
21825 rm -f conftest.err conftest.$ac_objext \
21826       conftest$ac_exeext conftest.$ac_ext
21827 else
21828   cat >conftest.$ac_ext <<_ACEOF
21829 /* confdefs.h.  */
21830 _ACEOF
21831 cat confdefs.h >>conftest.$ac_ext
21832 cat >>conftest.$ac_ext <<_ACEOF
21833 /* end confdefs.h.  */
21834
21835 /* pthread test headers */
21836 #include <pthread.h>
21837 #if HAVE_PTHREADS < 7
21838 #include <errno.h>
21839 #endif
21840 #ifndef NULL
21841 #define NULL (void*)0
21842 #endif
21843
21844 static void *task(p)
21845         void *p;
21846 {
21847         return (void *) (p == NULL);
21848 }
21849
21850
21851 int main(argc, argv)
21852         int argc;
21853         char **argv;
21854 {
21855
21856         /* pthread test function */
21857 #ifndef PTHREAD_CREATE_DETACHED
21858 #define PTHREAD_CREATE_DETACHED 1
21859 #endif
21860         pthread_t t;
21861         int status;
21862         int detach = PTHREAD_CREATE_DETACHED;
21863
21864 #if HAVE_PTHREADS > 4
21865         /* Final pthreads */
21866         pthread_attr_t attr;
21867
21868         status = pthread_attr_init(&attr);
21869         if( status ) return status;
21870
21871 #if HAVE_PTHREADS < 7
21872         status = pthread_attr_setdetachstate(&attr, &detach);
21873         if( status < 0 ) status = errno;
21874 #else
21875         status = pthread_attr_setdetachstate(&attr, detach);
21876 #endif
21877         if( status ) return status;
21878         status = pthread_create( &t, &attr, task, NULL );
21879 #if HAVE_PTHREADS < 7
21880         if( status < 0 ) status = errno;
21881 #endif
21882         if( status ) return status;
21883 #else
21884         /* Draft 4 pthreads */
21885         status = pthread_create( &t, pthread_attr_default, task, NULL );
21886         if( status ) return errno;
21887
21888         /* give thread a chance to complete */
21889         /* it should remain joinable and hence detachable */
21890         sleep( 1 );
21891
21892         status = pthread_detach( &t );
21893         if( status ) return errno;
21894 #endif
21895
21896 #ifdef HAVE_LINUX_THREADS
21897         pthread_kill_other_threads_np();
21898 #endif
21899
21900         return 0;
21901
21902 }
21903
21904 _ACEOF
21905 rm -f conftest$ac_exeext
21906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21907   (eval $ac_link) 2>&5
21908   ac_status=$?
21909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21910   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21912   (eval $ac_try) 2>&5
21913   ac_status=$?
21914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21915   (exit $ac_status); }; }; then
21916   ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
21917 else
21918   echo "$as_me: program exited with status $ac_status" >&5
21919 echo "$as_me: failed program was:" >&5
21920 sed 's/^/| /' conftest.$ac_ext >&5
21921
21922 ( exit $ac_status )
21923 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
21924 fi
21925 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21926 fi
21927
21928                 # restore the LIBS
21929                 LIBS="$ol_LIBS"
21930
21931 fi
21932 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
21933 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6
21934
21935         if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
21936                 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
21937                 ol_link_threads=posix
21938         fi
21939 fi
21940
21941                 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
21942 if test "$ol_link_threads" = no ; then
21943         # try -lpthread -lmach -lexc
21944         echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc" >&5
21945 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc... $ECHO_C" >&6
21946 if test "${ol_cv_pthread_lpthread_lmach_lexc+set}" = set; then
21947   echo $ECHO_N "(cached) $ECHO_C" >&6
21948 else
21949
21950                 # save the flags
21951                 ol_LIBS="$LIBS"
21952                 LIBS="-lpthread -lmach -lexc $LIBS"
21953
21954                 if test "$cross_compiling" = yes; then
21955   cat >conftest.$ac_ext <<_ACEOF
21956 /* confdefs.h.  */
21957 _ACEOF
21958 cat confdefs.h >>conftest.$ac_ext
21959 cat >>conftest.$ac_ext <<_ACEOF
21960 /* end confdefs.h.  */
21961
21962 /* pthread test headers */
21963 #include <pthread.h>
21964 #if HAVE_PTHREADS < 7
21965 #include <errno.h>
21966 #endif
21967 #ifndef NULL
21968 #define NULL (void*)0
21969 #endif
21970
21971 static void *task(p)
21972         void *p;
21973 {
21974         return (void *) (p == NULL);
21975 }
21976
21977 int
21978 main ()
21979 {
21980
21981         /* pthread test function */
21982 #ifndef PTHREAD_CREATE_DETACHED
21983 #define PTHREAD_CREATE_DETACHED 1
21984 #endif
21985         pthread_t t;
21986         int status;
21987         int detach = PTHREAD_CREATE_DETACHED;
21988
21989 #if HAVE_PTHREADS > 4
21990         /* Final pthreads */
21991         pthread_attr_t attr;
21992
21993         status = pthread_attr_init(&attr);
21994         if( status ) return status;
21995
21996 #if HAVE_PTHREADS < 7
21997         status = pthread_attr_setdetachstate(&attr, &detach);
21998         if( status < 0 ) status = errno;
21999 #else
22000         status = pthread_attr_setdetachstate(&attr, detach);
22001 #endif
22002         if( status ) return status;
22003         status = pthread_create( &t, &attr, task, NULL );
22004 #if HAVE_PTHREADS < 7
22005         if( status < 0 ) status = errno;
22006 #endif
22007         if( status ) return status;
22008 #else
22009         /* Draft 4 pthreads */
22010         status = pthread_create( &t, pthread_attr_default, task, NULL );
22011         if( status ) return errno;
22012
22013         /* give thread a chance to complete */
22014         /* it should remain joinable and hence detachable */
22015         sleep( 1 );
22016
22017         status = pthread_detach( &t );
22018         if( status ) return errno;
22019 #endif
22020
22021 #ifdef HAVE_LINUX_THREADS
22022         pthread_kill_other_threads_np();
22023 #endif
22024
22025         return 0;
22026
22027   ;
22028   return 0;
22029 }
22030 _ACEOF
22031 rm -f conftest.$ac_objext conftest$ac_exeext
22032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22033   (eval $ac_link) 2>conftest.er1
22034   ac_status=$?
22035   grep -v '^ *+' conftest.er1 >conftest.err
22036   rm -f conftest.er1
22037   cat conftest.err >&5
22038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22039   (exit $ac_status); } &&
22040          { ac_try='test -z "$ac_c_werror_flag"
22041                          || test ! -s conftest.err'
22042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22043   (eval $ac_try) 2>&5
22044   ac_status=$?
22045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22046   (exit $ac_status); }; } &&
22047          { ac_try='test -s conftest$ac_exeext'
22048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22049   (eval $ac_try) 2>&5
22050   ac_status=$?
22051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22052   (exit $ac_status); }; }; then
22053   ol_cv_pthread_lpthread_lmach_lexc=yes
22054 else
22055   echo "$as_me: failed program was:" >&5
22056 sed 's/^/| /' conftest.$ac_ext >&5
22057
22058 ol_cv_pthread_lpthread_lmach_lexc=no
22059 fi
22060 rm -f conftest.err conftest.$ac_objext \
22061       conftest$ac_exeext conftest.$ac_ext
22062 else
22063   cat >conftest.$ac_ext <<_ACEOF
22064 /* confdefs.h.  */
22065 _ACEOF
22066 cat confdefs.h >>conftest.$ac_ext
22067 cat >>conftest.$ac_ext <<_ACEOF
22068 /* end confdefs.h.  */
22069
22070 /* pthread test headers */
22071 #include <pthread.h>
22072 #if HAVE_PTHREADS < 7
22073 #include <errno.h>
22074 #endif
22075 #ifndef NULL
22076 #define NULL (void*)0
22077 #endif
22078
22079 static void *task(p)
22080         void *p;
22081 {
22082         return (void *) (p == NULL);
22083 }
22084
22085
22086 int main(argc, argv)
22087         int argc;
22088         char **argv;
22089 {
22090
22091         /* pthread test function */
22092 #ifndef PTHREAD_CREATE_DETACHED
22093 #define PTHREAD_CREATE_DETACHED 1
22094 #endif
22095         pthread_t t;
22096         int status;
22097         int detach = PTHREAD_CREATE_DETACHED;
22098
22099 #if HAVE_PTHREADS > 4
22100         /* Final pthreads */
22101         pthread_attr_t attr;
22102
22103         status = pthread_attr_init(&attr);
22104         if( status ) return status;
22105
22106 #if HAVE_PTHREADS < 7
22107         status = pthread_attr_setdetachstate(&attr, &detach);
22108         if( status < 0 ) status = errno;
22109 #else
22110         status = pthread_attr_setdetachstate(&attr, detach);
22111 #endif
22112         if( status ) return status;
22113         status = pthread_create( &t, &attr, task, NULL );
22114 #if HAVE_PTHREADS < 7
22115         if( status < 0 ) status = errno;
22116 #endif
22117         if( status ) return status;
22118 #else
22119         /* Draft 4 pthreads */
22120         status = pthread_create( &t, pthread_attr_default, task, NULL );
22121         if( status ) return errno;
22122
22123         /* give thread a chance to complete */
22124         /* it should remain joinable and hence detachable */
22125         sleep( 1 );
22126
22127         status = pthread_detach( &t );
22128         if( status ) return errno;
22129 #endif
22130
22131 #ifdef HAVE_LINUX_THREADS
22132         pthread_kill_other_threads_np();
22133 #endif
22134
22135         return 0;
22136
22137 }
22138
22139 _ACEOF
22140 rm -f conftest$ac_exeext
22141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22142   (eval $ac_link) 2>&5
22143   ac_status=$?
22144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22145   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22147   (eval $ac_try) 2>&5
22148   ac_status=$?
22149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22150   (exit $ac_status); }; }; then
22151   ol_cv_pthread_lpthread_lmach_lexc=yes
22152 else
22153   echo "$as_me: program exited with status $ac_status" >&5
22154 echo "$as_me: failed program was:" >&5
22155 sed 's/^/| /' conftest.$ac_ext >&5
22156
22157 ( exit $ac_status )
22158 ol_cv_pthread_lpthread_lmach_lexc=no
22159 fi
22160 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22161 fi
22162
22163                 # restore the LIBS
22164                 LIBS="$ol_LIBS"
22165
22166 fi
22167 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
22168 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc" >&6
22169
22170         if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
22171                 ol_link_pthreads="-lpthread -lmach -lexc"
22172                 ol_link_threads=posix
22173         fi
22174 fi
22175
22176
22177                 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
22178 if test "$ol_link_threads" = no ; then
22179         # try -lpthread -Wl,-woff,85
22180         echo "$as_me:$LINENO: checking for pthread link with -lpthread -Wl,-woff,85" >&5
22181 echo $ECHO_N "checking for pthread link with -lpthread -Wl,-woff,85... $ECHO_C" >&6
22182 if test "${ol_cv_pthread_lib_lpthread_woff+set}" = set; then
22183   echo $ECHO_N "(cached) $ECHO_C" >&6
22184 else
22185
22186                 # save the flags
22187                 ol_LIBS="$LIBS"
22188                 LIBS="-lpthread -Wl,-woff,85 $LIBS"
22189
22190                 if test "$cross_compiling" = yes; then
22191   cat >conftest.$ac_ext <<_ACEOF
22192 /* confdefs.h.  */
22193 _ACEOF
22194 cat confdefs.h >>conftest.$ac_ext
22195 cat >>conftest.$ac_ext <<_ACEOF
22196 /* end confdefs.h.  */
22197
22198 /* pthread test headers */
22199 #include <pthread.h>
22200 #if HAVE_PTHREADS < 7
22201 #include <errno.h>
22202 #endif
22203 #ifndef NULL
22204 #define NULL (void*)0
22205 #endif
22206
22207 static void *task(p)
22208         void *p;
22209 {
22210         return (void *) (p == NULL);
22211 }
22212
22213 int
22214 main ()
22215 {
22216
22217         /* pthread test function */
22218 #ifndef PTHREAD_CREATE_DETACHED
22219 #define PTHREAD_CREATE_DETACHED 1
22220 #endif
22221         pthread_t t;
22222         int status;
22223         int detach = PTHREAD_CREATE_DETACHED;
22224
22225 #if HAVE_PTHREADS > 4
22226         /* Final pthreads */
22227         pthread_attr_t attr;
22228
22229         status = pthread_attr_init(&attr);
22230         if( status ) return status;
22231
22232 #if HAVE_PTHREADS < 7
22233         status = pthread_attr_setdetachstate(&attr, &detach);
22234         if( status < 0 ) status = errno;
22235 #else
22236         status = pthread_attr_setdetachstate(&attr, detach);
22237 #endif
22238         if( status ) return status;
22239         status = pthread_create( &t, &attr, task, NULL );
22240 #if HAVE_PTHREADS < 7
22241         if( status < 0 ) status = errno;
22242 #endif
22243         if( status ) return status;
22244 #else
22245         /* Draft 4 pthreads */
22246         status = pthread_create( &t, pthread_attr_default, task, NULL );
22247         if( status ) return errno;
22248
22249         /* give thread a chance to complete */
22250         /* it should remain joinable and hence detachable */
22251         sleep( 1 );
22252
22253         status = pthread_detach( &t );
22254         if( status ) return errno;
22255 #endif
22256
22257 #ifdef HAVE_LINUX_THREADS
22258         pthread_kill_other_threads_np();
22259 #endif
22260
22261         return 0;
22262
22263   ;
22264   return 0;
22265 }
22266 _ACEOF
22267 rm -f conftest.$ac_objext conftest$ac_exeext
22268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22269   (eval $ac_link) 2>conftest.er1
22270   ac_status=$?
22271   grep -v '^ *+' conftest.er1 >conftest.err
22272   rm -f conftest.er1
22273   cat conftest.err >&5
22274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22275   (exit $ac_status); } &&
22276          { ac_try='test -z "$ac_c_werror_flag"
22277                          || test ! -s conftest.err'
22278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22279   (eval $ac_try) 2>&5
22280   ac_status=$?
22281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22282   (exit $ac_status); }; } &&
22283          { ac_try='test -s conftest$ac_exeext'
22284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22285   (eval $ac_try) 2>&5
22286   ac_status=$?
22287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22288   (exit $ac_status); }; }; then
22289   ol_cv_pthread_lib_lpthread_woff=yes
22290 else
22291   echo "$as_me: failed program was:" >&5
22292 sed 's/^/| /' conftest.$ac_ext >&5
22293
22294 ol_cv_pthread_lib_lpthread_woff=no
22295 fi
22296 rm -f conftest.err conftest.$ac_objext \
22297       conftest$ac_exeext conftest.$ac_ext
22298 else
22299   cat >conftest.$ac_ext <<_ACEOF
22300 /* confdefs.h.  */
22301 _ACEOF
22302 cat confdefs.h >>conftest.$ac_ext
22303 cat >>conftest.$ac_ext <<_ACEOF
22304 /* end confdefs.h.  */
22305
22306 /* pthread test headers */
22307 #include <pthread.h>
22308 #if HAVE_PTHREADS < 7
22309 #include <errno.h>
22310 #endif
22311 #ifndef NULL
22312 #define NULL (void*)0
22313 #endif
22314
22315 static void *task(p)
22316         void *p;
22317 {
22318         return (void *) (p == NULL);
22319 }
22320
22321
22322 int main(argc, argv)
22323         int argc;
22324         char **argv;
22325 {
22326
22327         /* pthread test function */
22328 #ifndef PTHREAD_CREATE_DETACHED
22329 #define PTHREAD_CREATE_DETACHED 1
22330 #endif
22331         pthread_t t;
22332         int status;
22333         int detach = PTHREAD_CREATE_DETACHED;
22334
22335 #if HAVE_PTHREADS > 4
22336         /* Final pthreads */
22337         pthread_attr_t attr;
22338
22339         status = pthread_attr_init(&attr);
22340         if( status ) return status;
22341
22342 #if HAVE_PTHREADS < 7
22343         status = pthread_attr_setdetachstate(&attr, &detach);
22344         if( status < 0 ) status = errno;
22345 #else
22346         status = pthread_attr_setdetachstate(&attr, detach);
22347 #endif
22348         if( status ) return status;
22349         status = pthread_create( &t, &attr, task, NULL );
22350 #if HAVE_PTHREADS < 7
22351         if( status < 0 ) status = errno;
22352 #endif
22353         if( status ) return status;
22354 #else
22355         /* Draft 4 pthreads */
22356         status = pthread_create( &t, pthread_attr_default, task, NULL );
22357         if( status ) return errno;
22358
22359         /* give thread a chance to complete */
22360         /* it should remain joinable and hence detachable */
22361         sleep( 1 );
22362
22363         status = pthread_detach( &t );
22364         if( status ) return errno;
22365 #endif
22366
22367 #ifdef HAVE_LINUX_THREADS
22368         pthread_kill_other_threads_np();
22369 #endif
22370
22371         return 0;
22372
22373 }
22374
22375 _ACEOF
22376 rm -f conftest$ac_exeext
22377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22378   (eval $ac_link) 2>&5
22379   ac_status=$?
22380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22381   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22383   (eval $ac_try) 2>&5
22384   ac_status=$?
22385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22386   (exit $ac_status); }; }; then
22387   ol_cv_pthread_lib_lpthread_woff=yes
22388 else
22389   echo "$as_me: program exited with status $ac_status" >&5
22390 echo "$as_me: failed program was:" >&5
22391 sed 's/^/| /' conftest.$ac_ext >&5
22392
22393 ( exit $ac_status )
22394 ol_cv_pthread_lib_lpthread_woff=no
22395 fi
22396 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22397 fi
22398
22399                 # restore the LIBS
22400                 LIBS="$ol_LIBS"
22401
22402 fi
22403 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthread_woff" >&5
22404 echo "${ECHO_T}$ol_cv_pthread_lib_lpthread_woff" >&6
22405
22406         if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
22407                 ol_link_pthreads="-lpthread -Wl,-woff,85"
22408                 ol_link_threads=posix
22409         fi
22410 fi
22411
22412
22413                 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
22414 if test "$ol_link_threads" = no ; then
22415         # try -lpthread
22416         echo "$as_me:$LINENO: checking for pthread link with -lpthread" >&5
22417 echo $ECHO_N "checking for pthread link with -lpthread... $ECHO_C" >&6
22418 if test "${ol_cv_pthread_lpthread+set}" = set; then
22419   echo $ECHO_N "(cached) $ECHO_C" >&6
22420 else
22421
22422                 # save the flags
22423                 ol_LIBS="$LIBS"
22424                 LIBS="-lpthread $LIBS"
22425
22426                 if test "$cross_compiling" = yes; then
22427   cat >conftest.$ac_ext <<_ACEOF
22428 /* confdefs.h.  */
22429 _ACEOF
22430 cat confdefs.h >>conftest.$ac_ext
22431 cat >>conftest.$ac_ext <<_ACEOF
22432 /* end confdefs.h.  */
22433
22434 /* pthread test headers */
22435 #include <pthread.h>
22436 #if HAVE_PTHREADS < 7
22437 #include <errno.h>
22438 #endif
22439 #ifndef NULL
22440 #define NULL (void*)0
22441 #endif
22442
22443 static void *task(p)
22444         void *p;
22445 {
22446         return (void *) (p == NULL);
22447 }
22448
22449 int
22450 main ()
22451 {
22452
22453         /* pthread test function */
22454 #ifndef PTHREAD_CREATE_DETACHED
22455 #define PTHREAD_CREATE_DETACHED 1
22456 #endif
22457         pthread_t t;
22458         int status;
22459         int detach = PTHREAD_CREATE_DETACHED;
22460
22461 #if HAVE_PTHREADS > 4
22462         /* Final pthreads */
22463         pthread_attr_t attr;
22464
22465         status = pthread_attr_init(&attr);
22466         if( status ) return status;
22467
22468 #if HAVE_PTHREADS < 7
22469         status = pthread_attr_setdetachstate(&attr, &detach);
22470         if( status < 0 ) status = errno;
22471 #else
22472         status = pthread_attr_setdetachstate(&attr, detach);
22473 #endif
22474         if( status ) return status;
22475         status = pthread_create( &t, &attr, task, NULL );
22476 #if HAVE_PTHREADS < 7
22477         if( status < 0 ) status = errno;
22478 #endif
22479         if( status ) return status;
22480 #else
22481         /* Draft 4 pthreads */
22482         status = pthread_create( &t, pthread_attr_default, task, NULL );
22483         if( status ) return errno;
22484
22485         /* give thread a chance to complete */
22486         /* it should remain joinable and hence detachable */
22487         sleep( 1 );
22488
22489         status = pthread_detach( &t );
22490         if( status ) return errno;
22491 #endif
22492
22493 #ifdef HAVE_LINUX_THREADS
22494         pthread_kill_other_threads_np();
22495 #endif
22496
22497         return 0;
22498
22499   ;
22500   return 0;
22501 }
22502 _ACEOF
22503 rm -f conftest.$ac_objext conftest$ac_exeext
22504 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22505   (eval $ac_link) 2>conftest.er1
22506   ac_status=$?
22507   grep -v '^ *+' conftest.er1 >conftest.err
22508   rm -f conftest.er1
22509   cat conftest.err >&5
22510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22511   (exit $ac_status); } &&
22512          { ac_try='test -z "$ac_c_werror_flag"
22513                          || test ! -s conftest.err'
22514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22515   (eval $ac_try) 2>&5
22516   ac_status=$?
22517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22518   (exit $ac_status); }; } &&
22519          { ac_try='test -s conftest$ac_exeext'
22520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22521   (eval $ac_try) 2>&5
22522   ac_status=$?
22523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22524   (exit $ac_status); }; }; then
22525   ol_cv_pthread_lpthread=yes
22526 else
22527   echo "$as_me: failed program was:" >&5
22528 sed 's/^/| /' conftest.$ac_ext >&5
22529
22530 ol_cv_pthread_lpthread=no
22531 fi
22532 rm -f conftest.err conftest.$ac_objext \
22533       conftest$ac_exeext conftest.$ac_ext
22534 else
22535   cat >conftest.$ac_ext <<_ACEOF
22536 /* confdefs.h.  */
22537 _ACEOF
22538 cat confdefs.h >>conftest.$ac_ext
22539 cat >>conftest.$ac_ext <<_ACEOF
22540 /* end confdefs.h.  */
22541
22542 /* pthread test headers */
22543 #include <pthread.h>
22544 #if HAVE_PTHREADS < 7
22545 #include <errno.h>
22546 #endif
22547 #ifndef NULL
22548 #define NULL (void*)0
22549 #endif
22550
22551 static void *task(p)
22552         void *p;
22553 {
22554         return (void *) (p == NULL);
22555 }
22556
22557
22558 int main(argc, argv)
22559         int argc;
22560         char **argv;
22561 {
22562
22563         /* pthread test function */
22564 #ifndef PTHREAD_CREATE_DETACHED
22565 #define PTHREAD_CREATE_DETACHED 1
22566 #endif
22567         pthread_t t;
22568         int status;
22569         int detach = PTHREAD_CREATE_DETACHED;
22570
22571 #if HAVE_PTHREADS > 4
22572         /* Final pthreads */
22573         pthread_attr_t attr;
22574
22575         status = pthread_attr_init(&attr);
22576         if( status ) return status;
22577
22578 #if HAVE_PTHREADS < 7
22579         status = pthread_attr_setdetachstate(&attr, &detach);
22580         if( status < 0 ) status = errno;
22581 #else
22582         status = pthread_attr_setdetachstate(&attr, detach);
22583 #endif
22584         if( status ) return status;
22585         status = pthread_create( &t, &attr, task, NULL );
22586 #if HAVE_PTHREADS < 7
22587         if( status < 0 ) status = errno;
22588 #endif
22589         if( status ) return status;
22590 #else
22591         /* Draft 4 pthreads */
22592         status = pthread_create( &t, pthread_attr_default, task, NULL );
22593         if( status ) return errno;
22594
22595         /* give thread a chance to complete */
22596         /* it should remain joinable and hence detachable */
22597         sleep( 1 );
22598
22599         status = pthread_detach( &t );
22600         if( status ) return errno;
22601 #endif
22602
22603 #ifdef HAVE_LINUX_THREADS
22604         pthread_kill_other_threads_np();
22605 #endif
22606
22607         return 0;
22608
22609 }
22610
22611 _ACEOF
22612 rm -f conftest$ac_exeext
22613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22614   (eval $ac_link) 2>&5
22615   ac_status=$?
22616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22617   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22619   (eval $ac_try) 2>&5
22620   ac_status=$?
22621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22622   (exit $ac_status); }; }; then
22623   ol_cv_pthread_lpthread=yes
22624 else
22625   echo "$as_me: program exited with status $ac_status" >&5
22626 echo "$as_me: failed program was:" >&5
22627 sed 's/^/| /' conftest.$ac_ext >&5
22628
22629 ( exit $ac_status )
22630 ol_cv_pthread_lpthread=no
22631 fi
22632 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22633 fi
22634
22635                 # restore the LIBS
22636                 LIBS="$ol_LIBS"
22637
22638 fi
22639 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread" >&5
22640 echo "${ECHO_T}$ol_cv_pthread_lpthread" >&6
22641
22642         if test $ol_cv_pthread_lpthread = yes ; then
22643                 ol_link_pthreads="-lpthread"
22644                 ol_link_threads=posix
22645         fi
22646 fi
22647
22648                 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
22649 if test "$ol_link_threads" = no ; then
22650         # try -lc_r
22651         echo "$as_me:$LINENO: checking for pthread link with -lc_r" >&5
22652 echo $ECHO_N "checking for pthread link with -lc_r... $ECHO_C" >&6
22653 if test "${ol_cv_pthread_lc_r+set}" = set; then
22654   echo $ECHO_N "(cached) $ECHO_C" >&6
22655 else
22656
22657                 # save the flags
22658                 ol_LIBS="$LIBS"
22659                 LIBS="-lc_r $LIBS"
22660
22661                 if test "$cross_compiling" = yes; then
22662   cat >conftest.$ac_ext <<_ACEOF
22663 /* confdefs.h.  */
22664 _ACEOF
22665 cat confdefs.h >>conftest.$ac_ext
22666 cat >>conftest.$ac_ext <<_ACEOF
22667 /* end confdefs.h.  */
22668
22669 /* pthread test headers */
22670 #include <pthread.h>
22671 #if HAVE_PTHREADS < 7
22672 #include <errno.h>
22673 #endif
22674 #ifndef NULL
22675 #define NULL (void*)0
22676 #endif
22677
22678 static void *task(p)
22679         void *p;
22680 {
22681         return (void *) (p == NULL);
22682 }
22683
22684 int
22685 main ()
22686 {
22687
22688         /* pthread test function */
22689 #ifndef PTHREAD_CREATE_DETACHED
22690 #define PTHREAD_CREATE_DETACHED 1
22691 #endif
22692         pthread_t t;
22693         int status;
22694         int detach = PTHREAD_CREATE_DETACHED;
22695
22696 #if HAVE_PTHREADS > 4
22697         /* Final pthreads */
22698         pthread_attr_t attr;
22699
22700         status = pthread_attr_init(&attr);
22701         if( status ) return status;
22702
22703 #if HAVE_PTHREADS < 7
22704         status = pthread_attr_setdetachstate(&attr, &detach);
22705         if( status < 0 ) status = errno;
22706 #else
22707         status = pthread_attr_setdetachstate(&attr, detach);
22708 #endif
22709         if( status ) return status;
22710         status = pthread_create( &t, &attr, task, NULL );
22711 #if HAVE_PTHREADS < 7
22712         if( status < 0 ) status = errno;
22713 #endif
22714         if( status ) return status;
22715 #else
22716         /* Draft 4 pthreads */
22717         status = pthread_create( &t, pthread_attr_default, task, NULL );
22718         if( status ) return errno;
22719
22720         /* give thread a chance to complete */
22721         /* it should remain joinable and hence detachable */
22722         sleep( 1 );
22723
22724         status = pthread_detach( &t );
22725         if( status ) return errno;
22726 #endif
22727
22728 #ifdef HAVE_LINUX_THREADS
22729         pthread_kill_other_threads_np();
22730 #endif
22731
22732         return 0;
22733
22734   ;
22735   return 0;
22736 }
22737 _ACEOF
22738 rm -f conftest.$ac_objext conftest$ac_exeext
22739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22740   (eval $ac_link) 2>conftest.er1
22741   ac_status=$?
22742   grep -v '^ *+' conftest.er1 >conftest.err
22743   rm -f conftest.er1
22744   cat conftest.err >&5
22745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22746   (exit $ac_status); } &&
22747          { ac_try='test -z "$ac_c_werror_flag"
22748                          || test ! -s conftest.err'
22749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22750   (eval $ac_try) 2>&5
22751   ac_status=$?
22752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22753   (exit $ac_status); }; } &&
22754          { ac_try='test -s conftest$ac_exeext'
22755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22756   (eval $ac_try) 2>&5
22757   ac_status=$?
22758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22759   (exit $ac_status); }; }; then
22760   ol_cv_pthread_lc_r=yes
22761 else
22762   echo "$as_me: failed program was:" >&5
22763 sed 's/^/| /' conftest.$ac_ext >&5
22764
22765 ol_cv_pthread_lc_r=no
22766 fi
22767 rm -f conftest.err conftest.$ac_objext \
22768       conftest$ac_exeext conftest.$ac_ext
22769 else
22770   cat >conftest.$ac_ext <<_ACEOF
22771 /* confdefs.h.  */
22772 _ACEOF
22773 cat confdefs.h >>conftest.$ac_ext
22774 cat >>conftest.$ac_ext <<_ACEOF
22775 /* end confdefs.h.  */
22776
22777 /* pthread test headers */
22778 #include <pthread.h>
22779 #if HAVE_PTHREADS < 7
22780 #include <errno.h>
22781 #endif
22782 #ifndef NULL
22783 #define NULL (void*)0
22784 #endif
22785
22786 static void *task(p)
22787         void *p;
22788 {
22789         return (void *) (p == NULL);
22790 }
22791
22792
22793 int main(argc, argv)
22794         int argc;
22795         char **argv;
22796 {
22797
22798         /* pthread test function */
22799 #ifndef PTHREAD_CREATE_DETACHED
22800 #define PTHREAD_CREATE_DETACHED 1
22801 #endif
22802         pthread_t t;
22803         int status;
22804         int detach = PTHREAD_CREATE_DETACHED;
22805
22806 #if HAVE_PTHREADS > 4
22807         /* Final pthreads */
22808         pthread_attr_t attr;
22809
22810         status = pthread_attr_init(&attr);
22811         if( status ) return status;
22812
22813 #if HAVE_PTHREADS < 7
22814         status = pthread_attr_setdetachstate(&attr, &detach);
22815         if( status < 0 ) status = errno;
22816 #else
22817         status = pthread_attr_setdetachstate(&attr, detach);
22818 #endif
22819         if( status ) return status;
22820         status = pthread_create( &t, &attr, task, NULL );
22821 #if HAVE_PTHREADS < 7
22822         if( status < 0 ) status = errno;
22823 #endif
22824         if( status ) return status;
22825 #else
22826         /* Draft 4 pthreads */
22827         status = pthread_create( &t, pthread_attr_default, task, NULL );
22828         if( status ) return errno;
22829
22830         /* give thread a chance to complete */
22831         /* it should remain joinable and hence detachable */
22832         sleep( 1 );
22833
22834         status = pthread_detach( &t );
22835         if( status ) return errno;
22836 #endif
22837
22838 #ifdef HAVE_LINUX_THREADS
22839         pthread_kill_other_threads_np();
22840 #endif
22841
22842         return 0;
22843
22844 }
22845
22846 _ACEOF
22847 rm -f conftest$ac_exeext
22848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22849   (eval $ac_link) 2>&5
22850   ac_status=$?
22851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22852   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22854   (eval $ac_try) 2>&5
22855   ac_status=$?
22856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22857   (exit $ac_status); }; }; then
22858   ol_cv_pthread_lc_r=yes
22859 else
22860   echo "$as_me: program exited with status $ac_status" >&5
22861 echo "$as_me: failed program was:" >&5
22862 sed 's/^/| /' conftest.$ac_ext >&5
22863
22864 ( exit $ac_status )
22865 ol_cv_pthread_lc_r=no
22866 fi
22867 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22868 fi
22869
22870                 # restore the LIBS
22871                 LIBS="$ol_LIBS"
22872
22873 fi
22874 echo "$as_me:$LINENO: result: $ol_cv_pthread_lc_r" >&5
22875 echo "${ECHO_T}$ol_cv_pthread_lc_r" >&6
22876
22877         if test $ol_cv_pthread_lc_r = yes ; then
22878                 ol_link_pthreads="-lc_r"
22879                 ol_link_threads=posix
22880         fi
22881 fi
22882
22883
22884                 # Pthread try link: -threads (ol_cv_pthread_threads)
22885 if test "$ol_link_threads" = no ; then
22886         # try -threads
22887         echo "$as_me:$LINENO: checking for pthread link with -threads" >&5
22888 echo $ECHO_N "checking for pthread link with -threads... $ECHO_C" >&6
22889 if test "${ol_cv_pthread_threads+set}" = set; then
22890   echo $ECHO_N "(cached) $ECHO_C" >&6
22891 else
22892
22893                 # save the flags
22894                 ol_LIBS="$LIBS"
22895                 LIBS="-threads $LIBS"
22896
22897                 if test "$cross_compiling" = yes; then
22898   cat >conftest.$ac_ext <<_ACEOF
22899 /* confdefs.h.  */
22900 _ACEOF
22901 cat confdefs.h >>conftest.$ac_ext
22902 cat >>conftest.$ac_ext <<_ACEOF
22903 /* end confdefs.h.  */
22904
22905 /* pthread test headers */
22906 #include <pthread.h>
22907 #if HAVE_PTHREADS < 7
22908 #include <errno.h>
22909 #endif
22910 #ifndef NULL
22911 #define NULL (void*)0
22912 #endif
22913
22914 static void *task(p)
22915         void *p;
22916 {
22917         return (void *) (p == NULL);
22918 }
22919
22920 int
22921 main ()
22922 {
22923
22924         /* pthread test function */
22925 #ifndef PTHREAD_CREATE_DETACHED
22926 #define PTHREAD_CREATE_DETACHED 1
22927 #endif
22928         pthread_t t;
22929         int status;
22930         int detach = PTHREAD_CREATE_DETACHED;
22931
22932 #if HAVE_PTHREADS > 4
22933         /* Final pthreads */
22934         pthread_attr_t attr;
22935
22936         status = pthread_attr_init(&attr);
22937         if( status ) return status;
22938
22939 #if HAVE_PTHREADS < 7
22940         status = pthread_attr_setdetachstate(&attr, &detach);
22941         if( status < 0 ) status = errno;
22942 #else
22943         status = pthread_attr_setdetachstate(&attr, detach);
22944 #endif
22945         if( status ) return status;
22946         status = pthread_create( &t, &attr, task, NULL );
22947 #if HAVE_PTHREADS < 7
22948         if( status < 0 ) status = errno;
22949 #endif
22950         if( status ) return status;
22951 #else
22952         /* Draft 4 pthreads */
22953         status = pthread_create( &t, pthread_attr_default, task, NULL );
22954         if( status ) return errno;
22955
22956         /* give thread a chance to complete */
22957         /* it should remain joinable and hence detachable */
22958         sleep( 1 );
22959
22960         status = pthread_detach( &t );
22961         if( status ) return errno;
22962 #endif
22963
22964 #ifdef HAVE_LINUX_THREADS
22965         pthread_kill_other_threads_np();
22966 #endif
22967
22968         return 0;
22969
22970   ;
22971   return 0;
22972 }
22973 _ACEOF
22974 rm -f conftest.$ac_objext conftest$ac_exeext
22975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22976   (eval $ac_link) 2>conftest.er1
22977   ac_status=$?
22978   grep -v '^ *+' conftest.er1 >conftest.err
22979   rm -f conftest.er1
22980   cat conftest.err >&5
22981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22982   (exit $ac_status); } &&
22983          { ac_try='test -z "$ac_c_werror_flag"
22984                          || test ! -s conftest.err'
22985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22986   (eval $ac_try) 2>&5
22987   ac_status=$?
22988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22989   (exit $ac_status); }; } &&
22990          { ac_try='test -s conftest$ac_exeext'
22991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22992   (eval $ac_try) 2>&5
22993   ac_status=$?
22994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22995   (exit $ac_status); }; }; then
22996   ol_cv_pthread_threads=yes
22997 else
22998   echo "$as_me: failed program was:" >&5
22999 sed 's/^/| /' conftest.$ac_ext >&5
23000
23001 ol_cv_pthread_threads=no
23002 fi
23003 rm -f conftest.err conftest.$ac_objext \
23004       conftest$ac_exeext conftest.$ac_ext
23005 else
23006   cat >conftest.$ac_ext <<_ACEOF
23007 /* confdefs.h.  */
23008 _ACEOF
23009 cat confdefs.h >>conftest.$ac_ext
23010 cat >>conftest.$ac_ext <<_ACEOF
23011 /* end confdefs.h.  */
23012
23013 /* pthread test headers */
23014 #include <pthread.h>
23015 #if HAVE_PTHREADS < 7
23016 #include <errno.h>
23017 #endif
23018 #ifndef NULL
23019 #define NULL (void*)0
23020 #endif
23021
23022 static void *task(p)
23023         void *p;
23024 {
23025         return (void *) (p == NULL);
23026 }
23027
23028
23029 int main(argc, argv)
23030         int argc;
23031         char **argv;
23032 {
23033
23034         /* pthread test function */
23035 #ifndef PTHREAD_CREATE_DETACHED
23036 #define PTHREAD_CREATE_DETACHED 1
23037 #endif
23038         pthread_t t;
23039         int status;
23040         int detach = PTHREAD_CREATE_DETACHED;
23041
23042 #if HAVE_PTHREADS > 4
23043         /* Final pthreads */
23044         pthread_attr_t attr;
23045
23046         status = pthread_attr_init(&attr);
23047         if( status ) return status;
23048
23049 #if HAVE_PTHREADS < 7
23050         status = pthread_attr_setdetachstate(&attr, &detach);
23051         if( status < 0 ) status = errno;
23052 #else
23053         status = pthread_attr_setdetachstate(&attr, detach);
23054 #endif
23055         if( status ) return status;
23056         status = pthread_create( &t, &attr, task, NULL );
23057 #if HAVE_PTHREADS < 7
23058         if( status < 0 ) status = errno;
23059 #endif
23060         if( status ) return status;
23061 #else
23062         /* Draft 4 pthreads */
23063         status = pthread_create( &t, pthread_attr_default, task, NULL );
23064         if( status ) return errno;
23065
23066         /* give thread a chance to complete */
23067         /* it should remain joinable and hence detachable */
23068         sleep( 1 );
23069
23070         status = pthread_detach( &t );
23071         if( status ) return errno;
23072 #endif
23073
23074 #ifdef HAVE_LINUX_THREADS
23075         pthread_kill_other_threads_np();
23076 #endif
23077
23078         return 0;
23079
23080 }
23081
23082 _ACEOF
23083 rm -f conftest$ac_exeext
23084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23085   (eval $ac_link) 2>&5
23086   ac_status=$?
23087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23088   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23090   (eval $ac_try) 2>&5
23091   ac_status=$?
23092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23093   (exit $ac_status); }; }; then
23094   ol_cv_pthread_threads=yes
23095 else
23096   echo "$as_me: program exited with status $ac_status" >&5
23097 echo "$as_me: failed program was:" >&5
23098 sed 's/^/| /' conftest.$ac_ext >&5
23099
23100 ( exit $ac_status )
23101 ol_cv_pthread_threads=no
23102 fi
23103 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23104 fi
23105
23106                 # restore the LIBS
23107                 LIBS="$ol_LIBS"
23108
23109 fi
23110 echo "$as_me:$LINENO: result: $ol_cv_pthread_threads" >&5
23111 echo "${ECHO_T}$ol_cv_pthread_threads" >&6
23112
23113         if test $ol_cv_pthread_threads = yes ; then
23114                 ol_link_pthreads="-threads"
23115                 ol_link_threads=posix
23116         fi
23117 fi
23118
23119
23120                 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
23121 if test "$ol_link_threads" = no ; then
23122         # try -lpthreads -lmach -lexc -lc_r
23123         echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
23124 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc -lc_r... $ECHO_C" >&6
23125 if test "${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}" = set; then
23126   echo $ECHO_N "(cached) $ECHO_C" >&6
23127 else
23128
23129                 # save the flags
23130                 ol_LIBS="$LIBS"
23131                 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
23132
23133                 if test "$cross_compiling" = yes; then
23134   cat >conftest.$ac_ext <<_ACEOF
23135 /* confdefs.h.  */
23136 _ACEOF
23137 cat confdefs.h >>conftest.$ac_ext
23138 cat >>conftest.$ac_ext <<_ACEOF
23139 /* end confdefs.h.  */
23140
23141 /* pthread test headers */
23142 #include <pthread.h>
23143 #if HAVE_PTHREADS < 7
23144 #include <errno.h>
23145 #endif
23146 #ifndef NULL
23147 #define NULL (void*)0
23148 #endif
23149
23150 static void *task(p)
23151         void *p;
23152 {
23153         return (void *) (p == NULL);
23154 }
23155
23156 int
23157 main ()
23158 {
23159
23160         /* pthread test function */
23161 #ifndef PTHREAD_CREATE_DETACHED
23162 #define PTHREAD_CREATE_DETACHED 1
23163 #endif
23164         pthread_t t;
23165         int status;
23166         int detach = PTHREAD_CREATE_DETACHED;
23167
23168 #if HAVE_PTHREADS > 4
23169         /* Final pthreads */
23170         pthread_attr_t attr;
23171
23172         status = pthread_attr_init(&attr);
23173         if( status ) return status;
23174
23175 #if HAVE_PTHREADS < 7
23176         status = pthread_attr_setdetachstate(&attr, &detach);
23177         if( status < 0 ) status = errno;
23178 #else
23179         status = pthread_attr_setdetachstate(&attr, detach);
23180 #endif
23181         if( status ) return status;
23182         status = pthread_create( &t, &attr, task, NULL );
23183 #if HAVE_PTHREADS < 7
23184         if( status < 0 ) status = errno;
23185 #endif
23186         if( status ) return status;
23187 #else
23188         /* Draft 4 pthreads */
23189         status = pthread_create( &t, pthread_attr_default, task, NULL );
23190         if( status ) return errno;
23191
23192         /* give thread a chance to complete */
23193         /* it should remain joinable and hence detachable */
23194         sleep( 1 );
23195
23196         status = pthread_detach( &t );
23197         if( status ) return errno;
23198 #endif
23199
23200 #ifdef HAVE_LINUX_THREADS
23201         pthread_kill_other_threads_np();
23202 #endif
23203
23204         return 0;
23205
23206   ;
23207   return 0;
23208 }
23209 _ACEOF
23210 rm -f conftest.$ac_objext conftest$ac_exeext
23211 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23212   (eval $ac_link) 2>conftest.er1
23213   ac_status=$?
23214   grep -v '^ *+' conftest.er1 >conftest.err
23215   rm -f conftest.er1
23216   cat conftest.err >&5
23217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23218   (exit $ac_status); } &&
23219          { ac_try='test -z "$ac_c_werror_flag"
23220                          || test ! -s conftest.err'
23221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23222   (eval $ac_try) 2>&5
23223   ac_status=$?
23224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23225   (exit $ac_status); }; } &&
23226          { ac_try='test -s conftest$ac_exeext'
23227   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23228   (eval $ac_try) 2>&5
23229   ac_status=$?
23230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23231   (exit $ac_status); }; }; then
23232   ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
23233 else
23234   echo "$as_me: failed program was:" >&5
23235 sed 's/^/| /' conftest.$ac_ext >&5
23236
23237 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
23238 fi
23239 rm -f conftest.err conftest.$ac_objext \
23240       conftest$ac_exeext conftest.$ac_ext
23241 else
23242   cat >conftest.$ac_ext <<_ACEOF
23243 /* confdefs.h.  */
23244 _ACEOF
23245 cat confdefs.h >>conftest.$ac_ext
23246 cat >>conftest.$ac_ext <<_ACEOF
23247 /* end confdefs.h.  */
23248
23249 /* pthread test headers */
23250 #include <pthread.h>
23251 #if HAVE_PTHREADS < 7
23252 #include <errno.h>
23253 #endif
23254 #ifndef NULL
23255 #define NULL (void*)0
23256 #endif
23257
23258 static void *task(p)
23259         void *p;
23260 {
23261         return (void *) (p == NULL);
23262 }
23263
23264
23265 int main(argc, argv)
23266         int argc;
23267         char **argv;
23268 {
23269
23270         /* pthread test function */
23271 #ifndef PTHREAD_CREATE_DETACHED
23272 #define PTHREAD_CREATE_DETACHED 1
23273 #endif
23274         pthread_t t;
23275         int status;
23276         int detach = PTHREAD_CREATE_DETACHED;
23277
23278 #if HAVE_PTHREADS > 4
23279         /* Final pthreads */
23280         pthread_attr_t attr;
23281
23282         status = pthread_attr_init(&attr);
23283         if( status ) return status;
23284
23285 #if HAVE_PTHREADS < 7
23286         status = pthread_attr_setdetachstate(&attr, &detach);
23287         if( status < 0 ) status = errno;
23288 #else
23289         status = pthread_attr_setdetachstate(&attr, detach);
23290 #endif
23291         if( status ) return status;
23292         status = pthread_create( &t, &attr, task, NULL );
23293 #if HAVE_PTHREADS < 7
23294         if( status < 0 ) status = errno;
23295 #endif
23296         if( status ) return status;
23297 #else
23298         /* Draft 4 pthreads */
23299         status = pthread_create( &t, pthread_attr_default, task, NULL );
23300         if( status ) return errno;
23301
23302         /* give thread a chance to complete */
23303         /* it should remain joinable and hence detachable */
23304         sleep( 1 );
23305
23306         status = pthread_detach( &t );
23307         if( status ) return errno;
23308 #endif
23309
23310 #ifdef HAVE_LINUX_THREADS
23311         pthread_kill_other_threads_np();
23312 #endif
23313
23314         return 0;
23315
23316 }
23317
23318 _ACEOF
23319 rm -f conftest$ac_exeext
23320 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23321   (eval $ac_link) 2>&5
23322   ac_status=$?
23323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23324   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23326   (eval $ac_try) 2>&5
23327   ac_status=$?
23328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23329   (exit $ac_status); }; }; then
23330   ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
23331 else
23332   echo "$as_me: program exited with status $ac_status" >&5
23333 echo "$as_me: failed program was:" >&5
23334 sed 's/^/| /' conftest.$ac_ext >&5
23335
23336 ( exit $ac_status )
23337 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
23338 fi
23339 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23340 fi
23341
23342                 # restore the LIBS
23343                 LIBS="$ol_LIBS"
23344
23345 fi
23346 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
23347 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6
23348
23349         if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
23350                 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
23351                 ol_link_threads=posix
23352         fi
23353 fi
23354
23355                 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
23356 if test "$ol_link_threads" = no ; then
23357         # try -lpthreads -lmach -lexc
23358         echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc" >&5
23359 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc... $ECHO_C" >&6
23360 if test "${ol_cv_pthread_lpthreads_lmach_lexc+set}" = set; then
23361   echo $ECHO_N "(cached) $ECHO_C" >&6
23362 else
23363
23364                 # save the flags
23365                 ol_LIBS="$LIBS"
23366                 LIBS="-lpthreads -lmach -lexc $LIBS"
23367
23368                 if test "$cross_compiling" = yes; then
23369   cat >conftest.$ac_ext <<_ACEOF
23370 /* confdefs.h.  */
23371 _ACEOF
23372 cat confdefs.h >>conftest.$ac_ext
23373 cat >>conftest.$ac_ext <<_ACEOF
23374 /* end confdefs.h.  */
23375
23376 /* pthread test headers */
23377 #include <pthread.h>
23378 #if HAVE_PTHREADS < 7
23379 #include <errno.h>
23380 #endif
23381 #ifndef NULL
23382 #define NULL (void*)0
23383 #endif
23384
23385 static void *task(p)
23386         void *p;
23387 {
23388         return (void *) (p == NULL);
23389 }
23390
23391 int
23392 main ()
23393 {
23394
23395         /* pthread test function */
23396 #ifndef PTHREAD_CREATE_DETACHED
23397 #define PTHREAD_CREATE_DETACHED 1
23398 #endif
23399         pthread_t t;
23400         int status;
23401         int detach = PTHREAD_CREATE_DETACHED;
23402
23403 #if HAVE_PTHREADS > 4
23404         /* Final pthreads */
23405         pthread_attr_t attr;
23406
23407         status = pthread_attr_init(&attr);
23408         if( status ) return status;
23409
23410 #if HAVE_PTHREADS < 7
23411         status = pthread_attr_setdetachstate(&attr, &detach);
23412         if( status < 0 ) status = errno;
23413 #else
23414         status = pthread_attr_setdetachstate(&attr, detach);
23415 #endif
23416         if( status ) return status;
23417         status = pthread_create( &t, &attr, task, NULL );
23418 #if HAVE_PTHREADS < 7
23419         if( status < 0 ) status = errno;
23420 #endif
23421         if( status ) return status;
23422 #else
23423         /* Draft 4 pthreads */
23424         status = pthread_create( &t, pthread_attr_default, task, NULL );
23425         if( status ) return errno;
23426
23427         /* give thread a chance to complete */
23428         /* it should remain joinable and hence detachable */
23429         sleep( 1 );
23430
23431         status = pthread_detach( &t );
23432         if( status ) return errno;
23433 #endif
23434
23435 #ifdef HAVE_LINUX_THREADS
23436         pthread_kill_other_threads_np();
23437 #endif
23438
23439         return 0;
23440
23441   ;
23442   return 0;
23443 }
23444 _ACEOF
23445 rm -f conftest.$ac_objext conftest$ac_exeext
23446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23447   (eval $ac_link) 2>conftest.er1
23448   ac_status=$?
23449   grep -v '^ *+' conftest.er1 >conftest.err
23450   rm -f conftest.er1
23451   cat conftest.err >&5
23452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23453   (exit $ac_status); } &&
23454          { ac_try='test -z "$ac_c_werror_flag"
23455                          || test ! -s conftest.err'
23456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23457   (eval $ac_try) 2>&5
23458   ac_status=$?
23459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23460   (exit $ac_status); }; } &&
23461          { ac_try='test -s conftest$ac_exeext'
23462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23463   (eval $ac_try) 2>&5
23464   ac_status=$?
23465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23466   (exit $ac_status); }; }; then
23467   ol_cv_pthread_lpthreads_lmach_lexc=yes
23468 else
23469   echo "$as_me: failed program was:" >&5
23470 sed 's/^/| /' conftest.$ac_ext >&5
23471
23472 ol_cv_pthread_lpthreads_lmach_lexc=no
23473 fi
23474 rm -f conftest.err conftest.$ac_objext \
23475       conftest$ac_exeext conftest.$ac_ext
23476 else
23477   cat >conftest.$ac_ext <<_ACEOF
23478 /* confdefs.h.  */
23479 _ACEOF
23480 cat confdefs.h >>conftest.$ac_ext
23481 cat >>conftest.$ac_ext <<_ACEOF
23482 /* end confdefs.h.  */
23483
23484 /* pthread test headers */
23485 #include <pthread.h>
23486 #if HAVE_PTHREADS < 7
23487 #include <errno.h>
23488 #endif
23489 #ifndef NULL
23490 #define NULL (void*)0
23491 #endif
23492
23493 static void *task(p)
23494         void *p;
23495 {
23496         return (void *) (p == NULL);
23497 }
23498
23499
23500 int main(argc, argv)
23501         int argc;
23502         char **argv;
23503 {
23504
23505         /* pthread test function */
23506 #ifndef PTHREAD_CREATE_DETACHED
23507 #define PTHREAD_CREATE_DETACHED 1
23508 #endif
23509         pthread_t t;
23510         int status;
23511         int detach = PTHREAD_CREATE_DETACHED;
23512
23513 #if HAVE_PTHREADS > 4
23514         /* Final pthreads */
23515         pthread_attr_t attr;
23516
23517         status = pthread_attr_init(&attr);
23518         if( status ) return status;
23519
23520 #if HAVE_PTHREADS < 7
23521         status = pthread_attr_setdetachstate(&attr, &detach);
23522         if( status < 0 ) status = errno;
23523 #else
23524         status = pthread_attr_setdetachstate(&attr, detach);
23525 #endif
23526         if( status ) return status;
23527         status = pthread_create( &t, &attr, task, NULL );
23528 #if HAVE_PTHREADS < 7
23529         if( status < 0 ) status = errno;
23530 #endif
23531         if( status ) return status;
23532 #else
23533         /* Draft 4 pthreads */
23534         status = pthread_create( &t, pthread_attr_default, task, NULL );
23535         if( status ) return errno;
23536
23537         /* give thread a chance to complete */
23538         /* it should remain joinable and hence detachable */
23539         sleep( 1 );
23540
23541         status = pthread_detach( &t );
23542         if( status ) return errno;
23543 #endif
23544
23545 #ifdef HAVE_LINUX_THREADS
23546         pthread_kill_other_threads_np();
23547 #endif
23548
23549         return 0;
23550
23551 }
23552
23553 _ACEOF
23554 rm -f conftest$ac_exeext
23555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23556   (eval $ac_link) 2>&5
23557   ac_status=$?
23558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23559   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23561   (eval $ac_try) 2>&5
23562   ac_status=$?
23563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23564   (exit $ac_status); }; }; then
23565   ol_cv_pthread_lpthreads_lmach_lexc=yes
23566 else
23567   echo "$as_me: program exited with status $ac_status" >&5
23568 echo "$as_me: failed program was:" >&5
23569 sed 's/^/| /' conftest.$ac_ext >&5
23570
23571 ( exit $ac_status )
23572 ol_cv_pthread_lpthreads_lmach_lexc=no
23573 fi
23574 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23575 fi
23576
23577                 # restore the LIBS
23578                 LIBS="$ol_LIBS"
23579
23580 fi
23581 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
23582 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc" >&6
23583
23584         if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
23585                 ol_link_pthreads="-lpthreads -lmach -lexc"
23586                 ol_link_threads=posix
23587         fi
23588 fi
23589
23590                 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
23591 if test "$ol_link_threads" = no ; then
23592         # try -lpthreads -lexc
23593         echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lexc" >&5
23594 echo $ECHO_N "checking for pthread link with -lpthreads -lexc... $ECHO_C" >&6
23595 if test "${ol_cv_pthread_lpthreads_lexc+set}" = set; then
23596   echo $ECHO_N "(cached) $ECHO_C" >&6
23597 else
23598
23599                 # save the flags
23600                 ol_LIBS="$LIBS"
23601                 LIBS="-lpthreads -lexc $LIBS"
23602
23603                 if test "$cross_compiling" = yes; then
23604   cat >conftest.$ac_ext <<_ACEOF
23605 /* confdefs.h.  */
23606 _ACEOF
23607 cat confdefs.h >>conftest.$ac_ext
23608 cat >>conftest.$ac_ext <<_ACEOF
23609 /* end confdefs.h.  */
23610
23611 /* pthread test headers */
23612 #include <pthread.h>
23613 #if HAVE_PTHREADS < 7
23614 #include <errno.h>
23615 #endif
23616 #ifndef NULL
23617 #define NULL (void*)0
23618 #endif
23619
23620 static void *task(p)
23621         void *p;
23622 {
23623         return (void *) (p == NULL);
23624 }
23625
23626 int
23627 main ()
23628 {
23629
23630         /* pthread test function */
23631 #ifndef PTHREAD_CREATE_DETACHED
23632 #define PTHREAD_CREATE_DETACHED 1
23633 #endif
23634         pthread_t t;
23635         int status;
23636         int detach = PTHREAD_CREATE_DETACHED;
23637
23638 #if HAVE_PTHREADS > 4
23639         /* Final pthreads */
23640         pthread_attr_t attr;
23641
23642         status = pthread_attr_init(&attr);
23643         if( status ) return status;
23644
23645 #if HAVE_PTHREADS < 7
23646         status = pthread_attr_setdetachstate(&attr, &detach);
23647         if( status < 0 ) status = errno;
23648 #else
23649         status = pthread_attr_setdetachstate(&attr, detach);
23650 #endif
23651         if( status ) return status;
23652         status = pthread_create( &t, &attr, task, NULL );
23653 #if HAVE_PTHREADS < 7
23654         if( status < 0 ) status = errno;
23655 #endif
23656         if( status ) return status;
23657 #else
23658         /* Draft 4 pthreads */
23659         status = pthread_create( &t, pthread_attr_default, task, NULL );
23660         if( status ) return errno;
23661
23662         /* give thread a chance to complete */
23663         /* it should remain joinable and hence detachable */
23664         sleep( 1 );
23665
23666         status = pthread_detach( &t );
23667         if( status ) return errno;
23668 #endif
23669
23670 #ifdef HAVE_LINUX_THREADS
23671         pthread_kill_other_threads_np();
23672 #endif
23673
23674         return 0;
23675
23676   ;
23677   return 0;
23678 }
23679 _ACEOF
23680 rm -f conftest.$ac_objext conftest$ac_exeext
23681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23682   (eval $ac_link) 2>conftest.er1
23683   ac_status=$?
23684   grep -v '^ *+' conftest.er1 >conftest.err
23685   rm -f conftest.er1
23686   cat conftest.err >&5
23687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23688   (exit $ac_status); } &&
23689          { ac_try='test -z "$ac_c_werror_flag"
23690                          || test ! -s conftest.err'
23691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23692   (eval $ac_try) 2>&5
23693   ac_status=$?
23694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23695   (exit $ac_status); }; } &&
23696          { ac_try='test -s conftest$ac_exeext'
23697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23698   (eval $ac_try) 2>&5
23699   ac_status=$?
23700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23701   (exit $ac_status); }; }; then
23702   ol_cv_pthread_lpthreads_lexc=yes
23703 else
23704   echo "$as_me: failed program was:" >&5
23705 sed 's/^/| /' conftest.$ac_ext >&5
23706
23707 ol_cv_pthread_lpthreads_lexc=no
23708 fi
23709 rm -f conftest.err conftest.$ac_objext \
23710       conftest$ac_exeext conftest.$ac_ext
23711 else
23712   cat >conftest.$ac_ext <<_ACEOF
23713 /* confdefs.h.  */
23714 _ACEOF
23715 cat confdefs.h >>conftest.$ac_ext
23716 cat >>conftest.$ac_ext <<_ACEOF
23717 /* end confdefs.h.  */
23718
23719 /* pthread test headers */
23720 #include <pthread.h>
23721 #if HAVE_PTHREADS < 7
23722 #include <errno.h>
23723 #endif
23724 #ifndef NULL
23725 #define NULL (void*)0
23726 #endif
23727
23728 static void *task(p)
23729         void *p;
23730 {
23731         return (void *) (p == NULL);
23732 }
23733
23734
23735 int main(argc, argv)
23736         int argc;
23737         char **argv;
23738 {
23739
23740         /* pthread test function */
23741 #ifndef PTHREAD_CREATE_DETACHED
23742 #define PTHREAD_CREATE_DETACHED 1
23743 #endif
23744         pthread_t t;
23745         int status;
23746         int detach = PTHREAD_CREATE_DETACHED;
23747
23748 #if HAVE_PTHREADS > 4
23749         /* Final pthreads */
23750         pthread_attr_t attr;
23751
23752         status = pthread_attr_init(&attr);
23753         if( status ) return status;
23754
23755 #if HAVE_PTHREADS < 7
23756         status = pthread_attr_setdetachstate(&attr, &detach);
23757         if( status < 0 ) status = errno;
23758 #else
23759         status = pthread_attr_setdetachstate(&attr, detach);
23760 #endif
23761         if( status ) return status;
23762         status = pthread_create( &t, &attr, task, NULL );
23763 #if HAVE_PTHREADS < 7
23764         if( status < 0 ) status = errno;
23765 #endif
23766         if( status ) return status;
23767 #else
23768         /* Draft 4 pthreads */
23769         status = pthread_create( &t, pthread_attr_default, task, NULL );
23770         if( status ) return errno;
23771
23772         /* give thread a chance to complete */
23773         /* it should remain joinable and hence detachable */
23774         sleep( 1 );
23775
23776         status = pthread_detach( &t );
23777         if( status ) return errno;
23778 #endif
23779
23780 #ifdef HAVE_LINUX_THREADS
23781         pthread_kill_other_threads_np();
23782 #endif
23783
23784         return 0;
23785
23786 }
23787
23788 _ACEOF
23789 rm -f conftest$ac_exeext
23790 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23791   (eval $ac_link) 2>&5
23792   ac_status=$?
23793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23794   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23796   (eval $ac_try) 2>&5
23797   ac_status=$?
23798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23799   (exit $ac_status); }; }; then
23800   ol_cv_pthread_lpthreads_lexc=yes
23801 else
23802   echo "$as_me: program exited with status $ac_status" >&5
23803 echo "$as_me: failed program was:" >&5
23804 sed 's/^/| /' conftest.$ac_ext >&5
23805
23806 ( exit $ac_status )
23807 ol_cv_pthread_lpthreads_lexc=no
23808 fi
23809 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23810 fi
23811
23812                 # restore the LIBS
23813                 LIBS="$ol_LIBS"
23814
23815 fi
23816 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lexc" >&5
23817 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lexc" >&6
23818
23819         if test $ol_cv_pthread_lpthreads_lexc = yes ; then
23820                 ol_link_pthreads="-lpthreads -lexc"
23821                 ol_link_threads=posix
23822         fi
23823 fi
23824
23825
23826                 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
23827 if test "$ol_link_threads" = no ; then
23828         # try -lpthreads
23829         echo "$as_me:$LINENO: checking for pthread link with -lpthreads" >&5
23830 echo $ECHO_N "checking for pthread link with -lpthreads... $ECHO_C" >&6
23831 if test "${ol_cv_pthread_lib_lpthreads+set}" = set; then
23832   echo $ECHO_N "(cached) $ECHO_C" >&6
23833 else
23834
23835                 # save the flags
23836                 ol_LIBS="$LIBS"
23837                 LIBS="-lpthreads $LIBS"
23838
23839                 if test "$cross_compiling" = yes; then
23840   cat >conftest.$ac_ext <<_ACEOF
23841 /* confdefs.h.  */
23842 _ACEOF
23843 cat confdefs.h >>conftest.$ac_ext
23844 cat >>conftest.$ac_ext <<_ACEOF
23845 /* end confdefs.h.  */
23846
23847 /* pthread test headers */
23848 #include <pthread.h>
23849 #if HAVE_PTHREADS < 7
23850 #include <errno.h>
23851 #endif
23852 #ifndef NULL
23853 #define NULL (void*)0
23854 #endif
23855
23856 static void *task(p)
23857         void *p;
23858 {
23859         return (void *) (p == NULL);
23860 }
23861
23862 int
23863 main ()
23864 {
23865
23866         /* pthread test function */
23867 #ifndef PTHREAD_CREATE_DETACHED
23868 #define PTHREAD_CREATE_DETACHED 1
23869 #endif
23870         pthread_t t;
23871         int status;
23872         int detach = PTHREAD_CREATE_DETACHED;
23873
23874 #if HAVE_PTHREADS > 4
23875         /* Final pthreads */
23876         pthread_attr_t attr;
23877
23878         status = pthread_attr_init(&attr);
23879         if( status ) return status;
23880
23881 #if HAVE_PTHREADS < 7
23882         status = pthread_attr_setdetachstate(&attr, &detach);
23883         if( status < 0 ) status = errno;
23884 #else
23885         status = pthread_attr_setdetachstate(&attr, detach);
23886 #endif
23887         if( status ) return status;
23888         status = pthread_create( &t, &attr, task, NULL );
23889 #if HAVE_PTHREADS < 7
23890         if( status < 0 ) status = errno;
23891 #endif
23892         if( status ) return status;
23893 #else
23894         /* Draft 4 pthreads */
23895         status = pthread_create( &t, pthread_attr_default, task, NULL );
23896         if( status ) return errno;
23897
23898         /* give thread a chance to complete */
23899         /* it should remain joinable and hence detachable */
23900         sleep( 1 );
23901
23902         status = pthread_detach( &t );
23903         if( status ) return errno;
23904 #endif
23905
23906 #ifdef HAVE_LINUX_THREADS
23907         pthread_kill_other_threads_np();
23908 #endif
23909
23910         return 0;
23911
23912   ;
23913   return 0;
23914 }
23915 _ACEOF
23916 rm -f conftest.$ac_objext conftest$ac_exeext
23917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23918   (eval $ac_link) 2>conftest.er1
23919   ac_status=$?
23920   grep -v '^ *+' conftest.er1 >conftest.err
23921   rm -f conftest.er1
23922   cat conftest.err >&5
23923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23924   (exit $ac_status); } &&
23925          { ac_try='test -z "$ac_c_werror_flag"
23926                          || test ! -s conftest.err'
23927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23928   (eval $ac_try) 2>&5
23929   ac_status=$?
23930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23931   (exit $ac_status); }; } &&
23932          { ac_try='test -s conftest$ac_exeext'
23933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23934   (eval $ac_try) 2>&5
23935   ac_status=$?
23936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23937   (exit $ac_status); }; }; then
23938   ol_cv_pthread_lib_lpthreads=yes
23939 else
23940   echo "$as_me: failed program was:" >&5
23941 sed 's/^/| /' conftest.$ac_ext >&5
23942
23943 ol_cv_pthread_lib_lpthreads=no
23944 fi
23945 rm -f conftest.err conftest.$ac_objext \
23946       conftest$ac_exeext conftest.$ac_ext
23947 else
23948   cat >conftest.$ac_ext <<_ACEOF
23949 /* confdefs.h.  */
23950 _ACEOF
23951 cat confdefs.h >>conftest.$ac_ext
23952 cat >>conftest.$ac_ext <<_ACEOF
23953 /* end confdefs.h.  */
23954
23955 /* pthread test headers */
23956 #include <pthread.h>
23957 #if HAVE_PTHREADS < 7
23958 #include <errno.h>
23959 #endif
23960 #ifndef NULL
23961 #define NULL (void*)0
23962 #endif
23963
23964 static void *task(p)
23965         void *p;
23966 {
23967         return (void *) (p == NULL);
23968 }
23969
23970
23971 int main(argc, argv)
23972         int argc;
23973         char **argv;
23974 {
23975
23976         /* pthread test function */
23977 #ifndef PTHREAD_CREATE_DETACHED
23978 #define PTHREAD_CREATE_DETACHED 1
23979 #endif
23980         pthread_t t;
23981         int status;
23982         int detach = PTHREAD_CREATE_DETACHED;
23983
23984 #if HAVE_PTHREADS > 4
23985         /* Final pthreads */
23986         pthread_attr_t attr;
23987
23988         status = pthread_attr_init(&attr);
23989         if( status ) return status;
23990
23991 #if HAVE_PTHREADS < 7
23992         status = pthread_attr_setdetachstate(&attr, &detach);
23993         if( status < 0 ) status = errno;
23994 #else
23995         status = pthread_attr_setdetachstate(&attr, detach);
23996 #endif
23997         if( status ) return status;
23998         status = pthread_create( &t, &attr, task, NULL );
23999 #if HAVE_PTHREADS < 7
24000         if( status < 0 ) status = errno;
24001 #endif
24002         if( status ) return status;
24003 #else
24004         /* Draft 4 pthreads */
24005         status = pthread_create( &t, pthread_attr_default, task, NULL );
24006         if( status ) return errno;
24007
24008         /* give thread a chance to complete */
24009         /* it should remain joinable and hence detachable */
24010         sleep( 1 );
24011
24012         status = pthread_detach( &t );
24013         if( status ) return errno;
24014 #endif
24015
24016 #ifdef HAVE_LINUX_THREADS
24017         pthread_kill_other_threads_np();
24018 #endif
24019
24020         return 0;
24021
24022 }
24023
24024 _ACEOF
24025 rm -f conftest$ac_exeext
24026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24027   (eval $ac_link) 2>&5
24028   ac_status=$?
24029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24030   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24032   (eval $ac_try) 2>&5
24033   ac_status=$?
24034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24035   (exit $ac_status); }; }; then
24036   ol_cv_pthread_lib_lpthreads=yes
24037 else
24038   echo "$as_me: program exited with status $ac_status" >&5
24039 echo "$as_me: failed program was:" >&5
24040 sed 's/^/| /' conftest.$ac_ext >&5
24041
24042 ( exit $ac_status )
24043 ol_cv_pthread_lib_lpthreads=no
24044 fi
24045 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24046 fi
24047
24048                 # restore the LIBS
24049                 LIBS="$ol_LIBS"
24050
24051 fi
24052 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthreads" >&5
24053 echo "${ECHO_T}$ol_cv_pthread_lib_lpthreads" >&6
24054
24055         if test $ol_cv_pthread_lib_lpthreads = yes ; then
24056                 ol_link_pthreads="-lpthreads"
24057                 ol_link_threads=posix
24058         fi
24059 fi
24060
24061
24062                 if test $ol_link_threads != no ; then
24063                         LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
24064
24065                                                 save_CPPFLAGS="$CPPFLAGS"
24066                         save_LIBS="$LIBS"
24067                         LIBS="$LTHREAD_LIBS $LIBS"
24068
24069
24070
24071
24072 for ac_func in sched_yield pthread_yield thr_yield
24073 do
24074 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24075 echo "$as_me:$LINENO: checking for $ac_func" >&5
24076 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24077 if eval "test \"\${$as_ac_var+set}\" = set"; then
24078   echo $ECHO_N "(cached) $ECHO_C" >&6
24079 else
24080   cat >conftest.$ac_ext <<_ACEOF
24081 /* confdefs.h.  */
24082 _ACEOF
24083 cat confdefs.h >>conftest.$ac_ext
24084 cat >>conftest.$ac_ext <<_ACEOF
24085 /* end confdefs.h.  */
24086 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24087    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24088 #define $ac_func innocuous_$ac_func
24089
24090 /* System header to define __stub macros and hopefully few prototypes,
24091     which can conflict with char $ac_func (); below.
24092     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24093     <limits.h> exists even on freestanding compilers.  */
24094
24095 #ifdef __STDC__
24096 # include <limits.h>
24097 #else
24098 # include <assert.h>
24099 #endif
24100
24101 #undef $ac_func
24102
24103 /* Override any gcc2 internal prototype to avoid an error.  */
24104 #ifdef __cplusplus
24105 extern "C"
24106 {
24107 #endif
24108 /* We use char because int might match the return type of a gcc2
24109    builtin and then its argument prototype would still apply.  */
24110 char $ac_func ();
24111 /* The GNU C library defines this for functions which it implements
24112     to always fail with ENOSYS.  Some functions are actually named
24113     something starting with __ and the normal name is an alias.  */
24114 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24115 choke me
24116 #else
24117 char (*f) () = $ac_func;
24118 #endif
24119 #ifdef __cplusplus
24120 }
24121 #endif
24122
24123 int
24124 main ()
24125 {
24126 return f != $ac_func;
24127   ;
24128   return 0;
24129 }
24130 _ACEOF
24131 rm -f conftest.$ac_objext conftest$ac_exeext
24132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24133   (eval $ac_link) 2>conftest.er1
24134   ac_status=$?
24135   grep -v '^ *+' conftest.er1 >conftest.err
24136   rm -f conftest.er1
24137   cat conftest.err >&5
24138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24139   (exit $ac_status); } &&
24140          { ac_try='test -z "$ac_c_werror_flag"
24141                          || test ! -s conftest.err'
24142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24143   (eval $ac_try) 2>&5
24144   ac_status=$?
24145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24146   (exit $ac_status); }; } &&
24147          { ac_try='test -s conftest$ac_exeext'
24148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24149   (eval $ac_try) 2>&5
24150   ac_status=$?
24151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24152   (exit $ac_status); }; }; then
24153   eval "$as_ac_var=yes"
24154 else
24155   echo "$as_me: failed program was:" >&5
24156 sed 's/^/| /' conftest.$ac_ext >&5
24157
24158 eval "$as_ac_var=no"
24159 fi
24160 rm -f conftest.err conftest.$ac_objext \
24161       conftest$ac_exeext conftest.$ac_ext
24162 fi
24163 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24164 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24165 if test `eval echo '${'$as_ac_var'}'` = yes; then
24166   cat >>confdefs.h <<_ACEOF
24167 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24168 _ACEOF
24169
24170 fi
24171 done
24172
24173
24174                         if test $ac_cv_func_sched_yield = no -a \
24175                                 $ac_cv_func_pthread_yield = no -a \
24176                                 $ac_cv_func_thr_yield = no ; then
24177                                                                 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
24178 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
24179 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
24180   echo $ECHO_N "(cached) $ECHO_C" >&6
24181 else
24182   ac_check_lib_save_LIBS=$LIBS
24183 LIBS="-lrt  $LIBS"
24184 cat >conftest.$ac_ext <<_ACEOF
24185 /* confdefs.h.  */
24186 _ACEOF
24187 cat confdefs.h >>conftest.$ac_ext
24188 cat >>conftest.$ac_ext <<_ACEOF
24189 /* end confdefs.h.  */
24190
24191 /* Override any gcc2 internal prototype to avoid an error.  */
24192 #ifdef __cplusplus
24193 extern "C"
24194 #endif
24195 /* We use char because int might match the return type of a gcc2
24196    builtin and then its argument prototype would still apply.  */
24197 char sched_yield ();
24198 int
24199 main ()
24200 {
24201 sched_yield ();
24202   ;
24203   return 0;
24204 }
24205 _ACEOF
24206 rm -f conftest.$ac_objext conftest$ac_exeext
24207 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24208   (eval $ac_link) 2>conftest.er1
24209   ac_status=$?
24210   grep -v '^ *+' conftest.er1 >conftest.err
24211   rm -f conftest.er1
24212   cat conftest.err >&5
24213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24214   (exit $ac_status); } &&
24215          { ac_try='test -z "$ac_c_werror_flag"
24216                          || test ! -s conftest.err'
24217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24218   (eval $ac_try) 2>&5
24219   ac_status=$?
24220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24221   (exit $ac_status); }; } &&
24222          { ac_try='test -s conftest$ac_exeext'
24223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24224   (eval $ac_try) 2>&5
24225   ac_status=$?
24226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24227   (exit $ac_status); }; }; then
24228   ac_cv_lib_rt_sched_yield=yes
24229 else
24230   echo "$as_me: failed program was:" >&5
24231 sed 's/^/| /' conftest.$ac_ext >&5
24232
24233 ac_cv_lib_rt_sched_yield=no
24234 fi
24235 rm -f conftest.err conftest.$ac_objext \
24236       conftest$ac_exeext conftest.$ac_ext
24237 LIBS=$ac_check_lib_save_LIBS
24238 fi
24239 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
24240 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
24241 if test $ac_cv_lib_rt_sched_yield = yes; then
24242   LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
24243
24244 cat >>confdefs.h <<\_ACEOF
24245 #define HAVE_SCHED_YIELD 1
24246 _ACEOF
24247
24248                                         ac_cv_func_sched_yield=yes
24249 else
24250   ac_cv_func_sched_yield=no
24251 fi
24252
24253                         fi
24254                         if test $ac_cv_func_sched_yield = no -a \
24255                                 $ac_cv_func_pthread_yield = no -a \
24256                                 "$ac_cv_func_thr_yield" = no ; then
24257                                 { echo "$as_me:$LINENO: WARNING: could not locate sched_yield() or pthread_yield()" >&5
24258 echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
24259                         fi
24260
24261
24262
24263 for ac_func in pthread_kill pthread_rwlock_destroy
24264 do
24265 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24266 echo "$as_me:$LINENO: checking for $ac_func" >&5
24267 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24268 if eval "test \"\${$as_ac_var+set}\" = set"; then
24269   echo $ECHO_N "(cached) $ECHO_C" >&6
24270 else
24271   cat >conftest.$ac_ext <<_ACEOF
24272 /* confdefs.h.  */
24273 _ACEOF
24274 cat confdefs.h >>conftest.$ac_ext
24275 cat >>conftest.$ac_ext <<_ACEOF
24276 /* end confdefs.h.  */
24277 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24278    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24279 #define $ac_func innocuous_$ac_func
24280
24281 /* System header to define __stub macros and hopefully few prototypes,
24282     which can conflict with char $ac_func (); below.
24283     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24284     <limits.h> exists even on freestanding compilers.  */
24285
24286 #ifdef __STDC__
24287 # include <limits.h>
24288 #else
24289 # include <assert.h>
24290 #endif
24291
24292 #undef $ac_func
24293
24294 /* Override any gcc2 internal prototype to avoid an error.  */
24295 #ifdef __cplusplus
24296 extern "C"
24297 {
24298 #endif
24299 /* We use char because int might match the return type of a gcc2
24300    builtin and then its argument prototype would still apply.  */
24301 char $ac_func ();
24302 /* The GNU C library defines this for functions which it implements
24303     to always fail with ENOSYS.  Some functions are actually named
24304     something starting with __ and the normal name is an alias.  */
24305 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24306 choke me
24307 #else
24308 char (*f) () = $ac_func;
24309 #endif
24310 #ifdef __cplusplus
24311 }
24312 #endif
24313
24314 int
24315 main ()
24316 {
24317 return f != $ac_func;
24318   ;
24319   return 0;
24320 }
24321 _ACEOF
24322 rm -f conftest.$ac_objext conftest$ac_exeext
24323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24324   (eval $ac_link) 2>conftest.er1
24325   ac_status=$?
24326   grep -v '^ *+' conftest.er1 >conftest.err
24327   rm -f conftest.er1
24328   cat conftest.err >&5
24329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24330   (exit $ac_status); } &&
24331          { ac_try='test -z "$ac_c_werror_flag"
24332                          || test ! -s conftest.err'
24333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24334   (eval $ac_try) 2>&5
24335   ac_status=$?
24336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24337   (exit $ac_status); }; } &&
24338          { ac_try='test -s conftest$ac_exeext'
24339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24340   (eval $ac_try) 2>&5
24341   ac_status=$?
24342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24343   (exit $ac_status); }; }; then
24344   eval "$as_ac_var=yes"
24345 else
24346   echo "$as_me: failed program was:" >&5
24347 sed 's/^/| /' conftest.$ac_ext >&5
24348
24349 eval "$as_ac_var=no"
24350 fi
24351 rm -f conftest.err conftest.$ac_objext \
24352       conftest$ac_exeext conftest.$ac_ext
24353 fi
24354 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24355 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24356 if test `eval echo '${'$as_ac_var'}'` = yes; then
24357   cat >>confdefs.h <<_ACEOF
24358 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24359 _ACEOF
24360
24361 fi
24362 done
24363
24364
24365                                                                         echo "$as_me:$LINENO: checking for pthread_detach with <pthread.h>" >&5
24366 echo $ECHO_N "checking for pthread_detach with <pthread.h>... $ECHO_C" >&6
24367 if test "${ol_cv_func_pthread_detach+set}" = set; then
24368   echo $ECHO_N "(cached) $ECHO_C" >&6
24369 else
24370
24371                                                                 cat >conftest.$ac_ext <<_ACEOF
24372 /* confdefs.h.  */
24373 _ACEOF
24374 cat confdefs.h >>conftest.$ac_ext
24375 cat >>conftest.$ac_ext <<_ACEOF
24376 /* end confdefs.h.  */
24377
24378 #include <pthread.h>
24379 #ifndef NULL
24380 #define NULL (void*)0
24381 #endif
24382
24383 int
24384 main ()
24385 {
24386 pthread_detach(NULL);
24387   ;
24388   return 0;
24389 }
24390 _ACEOF
24391 rm -f conftest.$ac_objext conftest$ac_exeext
24392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24393   (eval $ac_link) 2>conftest.er1
24394   ac_status=$?
24395   grep -v '^ *+' conftest.er1 >conftest.err
24396   rm -f conftest.er1
24397   cat conftest.err >&5
24398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24399   (exit $ac_status); } &&
24400          { ac_try='test -z "$ac_c_werror_flag"
24401                          || test ! -s conftest.err'
24402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24403   (eval $ac_try) 2>&5
24404   ac_status=$?
24405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24406   (exit $ac_status); }; } &&
24407          { ac_try='test -s conftest$ac_exeext'
24408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24409   (eval $ac_try) 2>&5
24410   ac_status=$?
24411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24412   (exit $ac_status); }; }; then
24413   ol_cv_func_pthread_detach=yes
24414 else
24415   echo "$as_me: failed program was:" >&5
24416 sed 's/^/| /' conftest.$ac_ext >&5
24417
24418 ol_cv_func_pthread_detach=no
24419 fi
24420 rm -f conftest.err conftest.$ac_objext \
24421       conftest$ac_exeext conftest.$ac_ext
24422
24423 fi
24424 echo "$as_me:$LINENO: result: $ol_cv_func_pthread_detach" >&5
24425 echo "${ECHO_T}$ol_cv_func_pthread_detach" >&6
24426
24427                         if test $ol_cv_func_pthread_detach = no ; then
24428                                 { { echo "$as_me:$LINENO: error: could not locate pthread_detach()" >&5
24429 echo "$as_me: error: could not locate pthread_detach()" >&2;}
24430    { (exit 1); exit 1; }; }
24431                         fi
24432
24433
24434 cat >>confdefs.h <<\_ACEOF
24435 #define HAVE_PTHREAD_DETACH 1
24436 _ACEOF
24437
24438
24439
24440
24441
24442
24443 for ac_func in \
24444                                 pthread_setconcurrency \
24445                                 pthread_getconcurrency \
24446                                 thr_setconcurrency \
24447                                 thr_getconcurrency \
24448
24449 do
24450 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24451 echo "$as_me:$LINENO: checking for $ac_func" >&5
24452 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24453 if eval "test \"\${$as_ac_var+set}\" = set"; then
24454   echo $ECHO_N "(cached) $ECHO_C" >&6
24455 else
24456   cat >conftest.$ac_ext <<_ACEOF
24457 /* confdefs.h.  */
24458 _ACEOF
24459 cat confdefs.h >>conftest.$ac_ext
24460 cat >>conftest.$ac_ext <<_ACEOF
24461 /* end confdefs.h.  */
24462 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24463    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24464 #define $ac_func innocuous_$ac_func
24465
24466 /* System header to define __stub macros and hopefully few prototypes,
24467     which can conflict with char $ac_func (); below.
24468     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24469     <limits.h> exists even on freestanding compilers.  */
24470
24471 #ifdef __STDC__
24472 # include <limits.h>
24473 #else
24474 # include <assert.h>
24475 #endif
24476
24477 #undef $ac_func
24478
24479 /* Override any gcc2 internal prototype to avoid an error.  */
24480 #ifdef __cplusplus
24481 extern "C"
24482 {
24483 #endif
24484 /* We use char because int might match the return type of a gcc2
24485    builtin and then its argument prototype would still apply.  */
24486 char $ac_func ();
24487 /* The GNU C library defines this for functions which it implements
24488     to always fail with ENOSYS.  Some functions are actually named
24489     something starting with __ and the normal name is an alias.  */
24490 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24491 choke me
24492 #else
24493 char (*f) () = $ac_func;
24494 #endif
24495 #ifdef __cplusplus
24496 }
24497 #endif
24498
24499 int
24500 main ()
24501 {
24502 return f != $ac_func;
24503   ;
24504   return 0;
24505 }
24506 _ACEOF
24507 rm -f conftest.$ac_objext conftest$ac_exeext
24508 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24509   (eval $ac_link) 2>conftest.er1
24510   ac_status=$?
24511   grep -v '^ *+' conftest.er1 >conftest.err
24512   rm -f conftest.er1
24513   cat conftest.err >&5
24514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24515   (exit $ac_status); } &&
24516          { ac_try='test -z "$ac_c_werror_flag"
24517                          || test ! -s conftest.err'
24518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24519   (eval $ac_try) 2>&5
24520   ac_status=$?
24521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24522   (exit $ac_status); }; } &&
24523          { ac_try='test -s conftest$ac_exeext'
24524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24525   (eval $ac_try) 2>&5
24526   ac_status=$?
24527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24528   (exit $ac_status); }; }; then
24529   eval "$as_ac_var=yes"
24530 else
24531   echo "$as_me: failed program was:" >&5
24532 sed 's/^/| /' conftest.$ac_ext >&5
24533
24534 eval "$as_ac_var=no"
24535 fi
24536 rm -f conftest.err conftest.$ac_objext \
24537       conftest$ac_exeext conftest.$ac_ext
24538 fi
24539 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24540 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24541 if test `eval echo '${'$as_ac_var'}'` = yes; then
24542   cat >>confdefs.h <<_ACEOF
24543 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24544 _ACEOF
24545
24546 fi
24547 done
24548
24549
24550
24551
24552 for ac_func in pthread_kill_other_threads_np
24553 do
24554 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24555 echo "$as_me:$LINENO: checking for $ac_func" >&5
24556 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24557 if eval "test \"\${$as_ac_var+set}\" = set"; then
24558   echo $ECHO_N "(cached) $ECHO_C" >&6
24559 else
24560   cat >conftest.$ac_ext <<_ACEOF
24561 /* confdefs.h.  */
24562 _ACEOF
24563 cat confdefs.h >>conftest.$ac_ext
24564 cat >>conftest.$ac_ext <<_ACEOF
24565 /* end confdefs.h.  */
24566 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24567    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24568 #define $ac_func innocuous_$ac_func
24569
24570 /* System header to define __stub macros and hopefully few prototypes,
24571     which can conflict with char $ac_func (); below.
24572     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24573     <limits.h> exists even on freestanding compilers.  */
24574
24575 #ifdef __STDC__
24576 # include <limits.h>
24577 #else
24578 # include <assert.h>
24579 #endif
24580
24581 #undef $ac_func
24582
24583 /* Override any gcc2 internal prototype to avoid an error.  */
24584 #ifdef __cplusplus
24585 extern "C"
24586 {
24587 #endif
24588 /* We use char because int might match the return type of a gcc2
24589    builtin and then its argument prototype would still apply.  */
24590 char $ac_func ();
24591 /* The GNU C library defines this for functions which it implements
24592     to always fail with ENOSYS.  Some functions are actually named
24593     something starting with __ and the normal name is an alias.  */
24594 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24595 choke me
24596 #else
24597 char (*f) () = $ac_func;
24598 #endif
24599 #ifdef __cplusplus
24600 }
24601 #endif
24602
24603 int
24604 main ()
24605 {
24606 return f != $ac_func;
24607   ;
24608   return 0;
24609 }
24610 _ACEOF
24611 rm -f conftest.$ac_objext conftest$ac_exeext
24612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24613   (eval $ac_link) 2>conftest.er1
24614   ac_status=$?
24615   grep -v '^ *+' conftest.er1 >conftest.err
24616   rm -f conftest.er1
24617   cat conftest.err >&5
24618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24619   (exit $ac_status); } &&
24620          { ac_try='test -z "$ac_c_werror_flag"
24621                          || test ! -s conftest.err'
24622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24623   (eval $ac_try) 2>&5
24624   ac_status=$?
24625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24626   (exit $ac_status); }; } &&
24627          { ac_try='test -s conftest$ac_exeext'
24628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24629   (eval $ac_try) 2>&5
24630   ac_status=$?
24631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24632   (exit $ac_status); }; }; then
24633   eval "$as_ac_var=yes"
24634 else
24635   echo "$as_me: failed program was:" >&5
24636 sed 's/^/| /' conftest.$ac_ext >&5
24637
24638 eval "$as_ac_var=no"
24639 fi
24640 rm -f conftest.err conftest.$ac_objext \
24641       conftest$ac_exeext conftest.$ac_ext
24642 fi
24643 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24644 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24645 if test `eval echo '${'$as_ac_var'}'` = yes; then
24646   cat >>confdefs.h <<_ACEOF
24647 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24648 _ACEOF
24649
24650 fi
24651 done
24652
24653         echo "$as_me:$LINENO: checking for LinuxThreads implementation" >&5
24654 echo $ECHO_N "checking for LinuxThreads implementation... $ECHO_C" >&6
24655 if test "${ol_cv_sys_linux_threads+set}" = set; then
24656   echo $ECHO_N "(cached) $ECHO_C" >&6
24657 else
24658   ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
24659 fi
24660 echo "$as_me:$LINENO: result: $ol_cv_sys_linux_threads" >&5
24661 echo "${ECHO_T}$ol_cv_sys_linux_threads" >&6
24662
24663
24664
24665
24666         echo "$as_me:$LINENO: checking for LinuxThreads consistency" >&5
24667 echo $ECHO_N "checking for LinuxThreads consistency... $ECHO_C" >&6
24668 if test "${ol_cv_linux_threads+set}" = set; then
24669   echo $ECHO_N "(cached) $ECHO_C" >&6
24670 else
24671
24672                 if test $ol_cv_header_linux_threads = yes -a \
24673                         $ol_cv_sys_linux_threads = yes; then
24674                         ol_cv_linux_threads=yes
24675                 elif test $ol_cv_header_linux_threads = no -a \
24676                         $ol_cv_sys_linux_threads = no; then
24677                         ol_cv_linux_threads=no
24678                 else
24679                         ol_cv_linux_threads=error
24680                 fi
24681
24682 fi
24683 echo "$as_me:$LINENO: result: $ol_cv_linux_threads" >&5
24684 echo "${ECHO_T}$ol_cv_linux_threads" >&6
24685
24686
24687                         if test $ol_cv_linux_threads = error; then
24688                                 { { echo "$as_me:$LINENO: error: LinuxThreads header/library mismatch" >&5
24689 echo "$as_me: error: LinuxThreads header/library mismatch" >&2;}
24690    { (exit 1); exit 1; }; };
24691                         fi
24692
24693                         echo "$as_me:$LINENO: checking if pthread_create() works" >&5
24694 echo $ECHO_N "checking if pthread_create() works... $ECHO_C" >&6
24695 if test "${ol_cv_pthread_create_works+set}" = set; then
24696   echo $ECHO_N "(cached) $ECHO_C" >&6
24697 else
24698
24699                         if test "$cross_compiling" = yes; then
24700                                 ol_cv_pthread_create_works=yes
24701 else
24702   cat >conftest.$ac_ext <<_ACEOF
24703 /* confdefs.h.  */
24704 _ACEOF
24705 cat confdefs.h >>conftest.$ac_ext
24706 cat >>conftest.$ac_ext <<_ACEOF
24707 /* end confdefs.h.  */
24708
24709 /* pthread test headers */
24710 #include <pthread.h>
24711 #if HAVE_PTHREADS < 7
24712 #include <errno.h>
24713 #endif
24714 #ifndef NULL
24715 #define NULL (void*)0
24716 #endif
24717
24718 static void *task(p)
24719         void *p;
24720 {
24721         return (void *) (p == NULL);
24722 }
24723
24724
24725 int main(argc, argv)
24726         int argc;
24727         char **argv;
24728 {
24729
24730         /* pthread test function */
24731 #ifndef PTHREAD_CREATE_DETACHED
24732 #define PTHREAD_CREATE_DETACHED 1
24733 #endif
24734         pthread_t t;
24735         int status;
24736         int detach = PTHREAD_CREATE_DETACHED;
24737
24738 #if HAVE_PTHREADS > 4
24739         /* Final pthreads */
24740         pthread_attr_t attr;
24741
24742         status = pthread_attr_init(&attr);
24743         if( status ) return status;
24744
24745 #if HAVE_PTHREADS < 7
24746         status = pthread_attr_setdetachstate(&attr, &detach);
24747         if( status < 0 ) status = errno;
24748 #else
24749         status = pthread_attr_setdetachstate(&attr, detach);
24750 #endif
24751         if( status ) return status;
24752         status = pthread_create( &t, &attr, task, NULL );
24753 #if HAVE_PTHREADS < 7
24754         if( status < 0 ) status = errno;
24755 #endif
24756         if( status ) return status;
24757 #else
24758         /* Draft 4 pthreads */
24759         status = pthread_create( &t, pthread_attr_default, task, NULL );
24760         if( status ) return errno;
24761
24762         /* give thread a chance to complete */
24763         /* it should remain joinable and hence detachable */
24764         sleep( 1 );
24765
24766         status = pthread_detach( &t );
24767         if( status ) return errno;
24768 #endif
24769
24770 #ifdef HAVE_LINUX_THREADS
24771         pthread_kill_other_threads_np();
24772 #endif
24773
24774         return 0;
24775
24776 }
24777
24778 _ACEOF
24779 rm -f conftest$ac_exeext
24780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24781   (eval $ac_link) 2>&5
24782   ac_status=$?
24783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24784   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24786   (eval $ac_try) 2>&5
24787   ac_status=$?
24788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24789   (exit $ac_status); }; }; then
24790   ol_cv_pthread_create_works=yes
24791 else
24792   echo "$as_me: program exited with status $ac_status" >&5
24793 echo "$as_me: failed program was:" >&5
24794 sed 's/^/| /' conftest.$ac_ext >&5
24795
24796 ( exit $ac_status )
24797 ol_cv_pthread_create_works=no
24798 fi
24799 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24800 fi
24801 fi
24802 echo "$as_me:$LINENO: result: $ol_cv_pthread_create_works" >&5
24803 echo "${ECHO_T}$ol_cv_pthread_create_works" >&6
24804
24805                         if test $ol_cv_pthread_create_works = no ; then
24806                                 { { echo "$as_me:$LINENO: error: pthread_create is not usable, check environment settings" >&5
24807 echo "$as_me: error: pthread_create is not usable, check environment settings" >&2;}
24808    { (exit 1); exit 1; }; }
24809                         fi
24810
24811                                                 if test $ol_with_yielding_select = auto ; then
24812                                 echo "$as_me:$LINENO: checking if select yields when using pthreads" >&5
24813 echo $ECHO_N "checking if select yields when using pthreads... $ECHO_C" >&6
24814 if test "${ol_cv_pthread_select_yields+set}" = set; then
24815   echo $ECHO_N "(cached) $ECHO_C" >&6
24816 else
24817
24818                                 if test "$cross_compiling" = yes; then
24819   ol_cv_pthread_select_yields=cross
24820 else
24821   cat >conftest.$ac_ext <<_ACEOF
24822 /* confdefs.h.  */
24823 _ACEOF
24824 cat confdefs.h >>conftest.$ac_ext
24825 cat >>conftest.$ac_ext <<_ACEOF
24826 /* end confdefs.h.  */
24827
24828 #include <sys/types.h>
24829 #include <sys/time.h>
24830 #include <unistd.h>
24831 #include <pthread.h>
24832 #ifndef NULL
24833 #define NULL (void*) 0
24834 #endif
24835
24836 static int fildes[2];
24837
24838 static void *task(p)
24839         void *p;
24840 {
24841         int i;
24842         struct timeval tv;
24843
24844         fd_set rfds;
24845
24846         tv.tv_sec=10;
24847         tv.tv_usec=0;
24848
24849         FD_ZERO(&rfds);
24850         FD_SET(fildes[0], &rfds);
24851
24852         /* we're not interested in any fds */
24853         i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
24854
24855         if(i < 0) {
24856                 perror("select");
24857                 exit(10);
24858         }
24859
24860         exit(0); /* if we exit here, the select blocked the whole process */
24861 }
24862
24863 int main(argc, argv)
24864         int argc;
24865         char **argv;
24866 {
24867         pthread_t t;
24868
24869         /* create a pipe to select */
24870         if(pipe(&fildes[0])) {
24871                 perror("select");
24872                 exit(1);
24873         }
24874
24875 #ifdef HAVE_PTHREAD_SETCONCURRENCY
24876         (void) pthread_setconcurrency(2);
24877 #else
24878 #ifdef HAVE_THR_SETCONCURRENCY
24879         /* Set Solaris LWP concurrency to 2 */
24880         thr_setconcurrency(2);
24881 #endif
24882 #endif
24883
24884 #if HAVE_PTHREADS < 6
24885         pthread_create(&t, pthread_attr_default, task, NULL);
24886 #else
24887         pthread_create(&t, NULL, task, NULL);
24888 #endif
24889
24890         /* make sure task runs first */
24891 #if HAVE_THR_YIELD
24892         thr_yield();
24893 #elif defined( HAVE_SCHED_YIELD )
24894         sched_yield();
24895 #elif defined( HAVE_PTHREAD_YIELD )
24896         pthread_yield();
24897 #endif
24898
24899         exit(2);
24900 }
24901 _ACEOF
24902 rm -f conftest$ac_exeext
24903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24904   (eval $ac_link) 2>&5
24905   ac_status=$?
24906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24907   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24908   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24909   (eval $ac_try) 2>&5
24910   ac_status=$?
24911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24912   (exit $ac_status); }; }; then
24913   ol_cv_pthread_select_yields=no
24914 else
24915   echo "$as_me: program exited with status $ac_status" >&5
24916 echo "$as_me: failed program was:" >&5
24917 sed 's/^/| /' conftest.$ac_ext >&5
24918
24919 ( exit $ac_status )
24920 ol_cv_pthread_select_yields=yes
24921 fi
24922 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24923 fi
24924 fi
24925 echo "$as_me:$LINENO: result: $ol_cv_pthread_select_yields" >&5
24926 echo "${ECHO_T}$ol_cv_pthread_select_yields" >&6
24927
24928                                 if test $ol_cv_pthread_select_yields = cross ; then
24929                                         { { echo "$as_me:$LINENO: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&5
24930 echo "$as_me: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&2;}
24931    { (exit 1); exit 1; }; }
24932                                 fi
24933
24934                                 if test $ol_cv_pthread_select_yields = yes ; then
24935                                         ol_with_yielding_select=yes
24936                                 fi
24937                         fi
24938
24939                                                 CPPFLAGS="$save_CPPFLAGS"
24940                         LIBS="$save_LIBS"
24941                 else
24942                         { { echo "$as_me:$LINENO: error: could not locate usable POSIX Threads" >&5
24943 echo "$as_me: error: could not locate usable POSIX Threads" >&2;}
24944    { (exit 1); exit 1; }; }
24945                 fi
24946         fi
24947
24948         if test $ol_with_threads = posix ; then
24949                 { { echo "$as_me:$LINENO: error: could not locate POSIX Threads" >&5
24950 echo "$as_me: error: could not locate POSIX Threads" >&2;}
24951    { (exit 1); exit 1; }; }
24952         fi
24953 fi
24954
24955 if test $ol_with_threads = auto -o $ol_with_threads = yes \
24956         -o $ol_with_threads = mach ; then
24957
24958
24959
24960 for ac_header in mach/cthreads.h cthreads.h
24961 do
24962 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24963 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24964   echo "$as_me:$LINENO: checking for $ac_header" >&5
24965 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24966 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24967   echo $ECHO_N "(cached) $ECHO_C" >&6
24968 fi
24969 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24970 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24971 else
24972   # Is the header compilable?
24973 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24974 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24975 cat >conftest.$ac_ext <<_ACEOF
24976 /* confdefs.h.  */
24977 _ACEOF
24978 cat confdefs.h >>conftest.$ac_ext
24979 cat >>conftest.$ac_ext <<_ACEOF
24980 /* end confdefs.h.  */
24981 $ac_includes_default
24982 #include <$ac_header>
24983 _ACEOF
24984 rm -f conftest.$ac_objext
24985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24986   (eval $ac_compile) 2>conftest.er1
24987   ac_status=$?
24988   grep -v '^ *+' conftest.er1 >conftest.err
24989   rm -f conftest.er1
24990   cat conftest.err >&5
24991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24992   (exit $ac_status); } &&
24993          { ac_try='test -z "$ac_c_werror_flag"
24994                          || test ! -s conftest.err'
24995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24996   (eval $ac_try) 2>&5
24997   ac_status=$?
24998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24999   (exit $ac_status); }; } &&
25000          { ac_try='test -s conftest.$ac_objext'
25001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25002   (eval $ac_try) 2>&5
25003   ac_status=$?
25004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25005   (exit $ac_status); }; }; then
25006   ac_header_compiler=yes
25007 else
25008   echo "$as_me: failed program was:" >&5
25009 sed 's/^/| /' conftest.$ac_ext >&5
25010
25011 ac_header_compiler=no
25012 fi
25013 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25014 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25015 echo "${ECHO_T}$ac_header_compiler" >&6
25016
25017 # Is the header present?
25018 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25019 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25020 cat >conftest.$ac_ext <<_ACEOF
25021 /* confdefs.h.  */
25022 _ACEOF
25023 cat confdefs.h >>conftest.$ac_ext
25024 cat >>conftest.$ac_ext <<_ACEOF
25025 /* end confdefs.h.  */
25026 #include <$ac_header>
25027 _ACEOF
25028 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25029   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25030   ac_status=$?
25031   grep -v '^ *+' conftest.er1 >conftest.err
25032   rm -f conftest.er1
25033   cat conftest.err >&5
25034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25035   (exit $ac_status); } >/dev/null; then
25036   if test -s conftest.err; then
25037     ac_cpp_err=$ac_c_preproc_warn_flag
25038     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25039   else
25040     ac_cpp_err=
25041   fi
25042 else
25043   ac_cpp_err=yes
25044 fi
25045 if test -z "$ac_cpp_err"; then
25046   ac_header_preproc=yes
25047 else
25048   echo "$as_me: failed program was:" >&5
25049 sed 's/^/| /' conftest.$ac_ext >&5
25050
25051   ac_header_preproc=no
25052 fi
25053 rm -f conftest.err conftest.$ac_ext
25054 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25055 echo "${ECHO_T}$ac_header_preproc" >&6
25056
25057 # So?  What about this header?
25058 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25059   yes:no: )
25060     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25061 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25062     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25063 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25064     ac_header_preproc=yes
25065     ;;
25066   no:yes:* )
25067     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25068 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25069     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25070 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25071     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25072 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25073     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25074 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25075     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25076 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25077     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25078 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25079     (
25080       cat <<\_ASBOX
25081 ## ------------------------------------------ ##
25082 ## Report this to the AC_PACKAGE_NAME lists.  ##
25083 ## ------------------------------------------ ##
25084 _ASBOX
25085     ) |
25086       sed "s/^/$as_me: WARNING:     /" >&2
25087     ;;
25088 esac
25089 echo "$as_me:$LINENO: checking for $ac_header" >&5
25090 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25091 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25092   echo $ECHO_N "(cached) $ECHO_C" >&6
25093 else
25094   eval "$as_ac_Header=\$ac_header_preproc"
25095 fi
25096 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25097 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25098
25099 fi
25100 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25101   cat >>confdefs.h <<_ACEOF
25102 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25103 _ACEOF
25104
25105 fi
25106
25107 done
25108
25109         if test $ac_cv_header_mach_cthreads_h = yes ; then
25110                 ol_with_threads=found
25111
25112                                 echo "$as_me:$LINENO: checking for cthread_fork" >&5
25113 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
25114 if test "${ac_cv_func_cthread_fork+set}" = set; then
25115   echo $ECHO_N "(cached) $ECHO_C" >&6
25116 else
25117   cat >conftest.$ac_ext <<_ACEOF
25118 /* confdefs.h.  */
25119 _ACEOF
25120 cat confdefs.h >>conftest.$ac_ext
25121 cat >>conftest.$ac_ext <<_ACEOF
25122 /* end confdefs.h.  */
25123 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
25124    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25125 #define cthread_fork innocuous_cthread_fork
25126
25127 /* System header to define __stub macros and hopefully few prototypes,
25128     which can conflict with char cthread_fork (); below.
25129     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25130     <limits.h> exists even on freestanding compilers.  */
25131
25132 #ifdef __STDC__
25133 # include <limits.h>
25134 #else
25135 # include <assert.h>
25136 #endif
25137
25138 #undef cthread_fork
25139
25140 /* Override any gcc2 internal prototype to avoid an error.  */
25141 #ifdef __cplusplus
25142 extern "C"
25143 {
25144 #endif
25145 /* We use char because int might match the return type of a gcc2
25146    builtin and then its argument prototype would still apply.  */
25147 char cthread_fork ();
25148 /* The GNU C library defines this for functions which it implements
25149     to always fail with ENOSYS.  Some functions are actually named
25150     something starting with __ and the normal name is an alias.  */
25151 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
25152 choke me
25153 #else
25154 char (*f) () = cthread_fork;
25155 #endif
25156 #ifdef __cplusplus
25157 }
25158 #endif
25159
25160 int
25161 main ()
25162 {
25163 return f != cthread_fork;
25164   ;
25165   return 0;
25166 }
25167 _ACEOF
25168 rm -f conftest.$ac_objext conftest$ac_exeext
25169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25170   (eval $ac_link) 2>conftest.er1
25171   ac_status=$?
25172   grep -v '^ *+' conftest.er1 >conftest.err
25173   rm -f conftest.er1
25174   cat conftest.err >&5
25175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25176   (exit $ac_status); } &&
25177          { ac_try='test -z "$ac_c_werror_flag"
25178                          || test ! -s conftest.err'
25179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25180   (eval $ac_try) 2>&5
25181   ac_status=$?
25182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25183   (exit $ac_status); }; } &&
25184          { ac_try='test -s conftest$ac_exeext'
25185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25186   (eval $ac_try) 2>&5
25187   ac_status=$?
25188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25189   (exit $ac_status); }; }; then
25190   ac_cv_func_cthread_fork=yes
25191 else
25192   echo "$as_me: failed program was:" >&5
25193 sed 's/^/| /' conftest.$ac_ext >&5
25194
25195 ac_cv_func_cthread_fork=no
25196 fi
25197 rm -f conftest.err conftest.$ac_objext \
25198       conftest$ac_exeext conftest.$ac_ext
25199 fi
25200 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
25201 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
25202 if test $ac_cv_func_cthread_fork = yes; then
25203   ol_link_threads=yes
25204 fi
25205
25206
25207                 if test $ol_link_threads = no ; then
25208                                                                         echo "$as_me:$LINENO: checking for cthread_fork with -all_load" >&5
25209 echo $ECHO_N "checking for cthread_fork with -all_load... $ECHO_C" >&6
25210 if test "${ol_cv_cthread_all_load+set}" = set; then
25211   echo $ECHO_N "(cached) $ECHO_C" >&6
25212 else
25213
25214                                                                 save_LIBS="$LIBS"
25215                                 LIBS="-all_load $LIBS"
25216                                 cat >conftest.$ac_ext <<_ACEOF
25217 /* confdefs.h.  */
25218 _ACEOF
25219 cat confdefs.h >>conftest.$ac_ext
25220 cat >>conftest.$ac_ext <<_ACEOF
25221 /* end confdefs.h.  */
25222 #include <mach/cthreads.h>
25223 int
25224 main ()
25225 {
25226
25227                                         cthread_fork((void *)0, (void *)0);
25228
25229   ;
25230   return 0;
25231 }
25232 _ACEOF
25233 rm -f conftest.$ac_objext conftest$ac_exeext
25234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25235   (eval $ac_link) 2>conftest.er1
25236   ac_status=$?
25237   grep -v '^ *+' conftest.er1 >conftest.err
25238   rm -f conftest.er1
25239   cat conftest.err >&5
25240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25241   (exit $ac_status); } &&
25242          { ac_try='test -z "$ac_c_werror_flag"
25243                          || test ! -s conftest.err'
25244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25245   (eval $ac_try) 2>&5
25246   ac_status=$?
25247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25248   (exit $ac_status); }; } &&
25249          { ac_try='test -s conftest$ac_exeext'
25250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25251   (eval $ac_try) 2>&5
25252   ac_status=$?
25253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25254   (exit $ac_status); }; }; then
25255   ol_cv_cthread_all_load=yes
25256 else
25257   echo "$as_me: failed program was:" >&5
25258 sed 's/^/| /' conftest.$ac_ext >&5
25259
25260 ol_cv_cthread_all_load=no
25261 fi
25262 rm -f conftest.err conftest.$ac_objext \
25263       conftest$ac_exeext conftest.$ac_ext
25264                                                                 LIBS="$save_LIBS"
25265
25266 fi
25267 echo "$as_me:$LINENO: result: $ol_cv_cthread_all_load" >&5
25268 echo "${ECHO_T}$ol_cv_cthread_all_load" >&6
25269
25270                         if test $ol_cv_cthread_all_load = yes ; then
25271                                 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
25272                                 ol_link_threads=mach
25273                                 ol_with_threads=found
25274                         fi
25275                 fi
25276
25277         elif test $ac_cv_header_cthreads_h = yes ; then
25278
25279                 ol_with_threads=found
25280
25281                                 save_LIBS="$LIBS"
25282                 LIBS="$LIBS -lthreads"
25283                 echo "$as_me:$LINENO: checking for cthread_fork" >&5
25284 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
25285 if test "${ac_cv_func_cthread_fork+set}" = set; then
25286   echo $ECHO_N "(cached) $ECHO_C" >&6
25287 else
25288   cat >conftest.$ac_ext <<_ACEOF
25289 /* confdefs.h.  */
25290 _ACEOF
25291 cat confdefs.h >>conftest.$ac_ext
25292 cat >>conftest.$ac_ext <<_ACEOF
25293 /* end confdefs.h.  */
25294 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
25295    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25296 #define cthread_fork innocuous_cthread_fork
25297
25298 /* System header to define __stub macros and hopefully few prototypes,
25299     which can conflict with char cthread_fork (); below.
25300     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25301     <limits.h> exists even on freestanding compilers.  */
25302
25303 #ifdef __STDC__
25304 # include <limits.h>
25305 #else
25306 # include <assert.h>
25307 #endif
25308
25309 #undef cthread_fork
25310
25311 /* Override any gcc2 internal prototype to avoid an error.  */
25312 #ifdef __cplusplus
25313 extern "C"
25314 {
25315 #endif
25316 /* We use char because int might match the return type of a gcc2
25317    builtin and then its argument prototype would still apply.  */
25318 char cthread_fork ();
25319 /* The GNU C library defines this for functions which it implements
25320     to always fail with ENOSYS.  Some functions are actually named
25321     something starting with __ and the normal name is an alias.  */
25322 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
25323 choke me
25324 #else
25325 char (*f) () = cthread_fork;
25326 #endif
25327 #ifdef __cplusplus
25328 }
25329 #endif
25330
25331 int
25332 main ()
25333 {
25334 return f != cthread_fork;
25335   ;
25336   return 0;
25337 }
25338 _ACEOF
25339 rm -f conftest.$ac_objext conftest$ac_exeext
25340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25341   (eval $ac_link) 2>conftest.er1
25342   ac_status=$?
25343   grep -v '^ *+' conftest.er1 >conftest.err
25344   rm -f conftest.er1
25345   cat conftest.err >&5
25346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25347   (exit $ac_status); } &&
25348          { ac_try='test -z "$ac_c_werror_flag"
25349                          || test ! -s conftest.err'
25350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25351   (eval $ac_try) 2>&5
25352   ac_status=$?
25353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25354   (exit $ac_status); }; } &&
25355          { ac_try='test -s conftest$ac_exeext'
25356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25357   (eval $ac_try) 2>&5
25358   ac_status=$?
25359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25360   (exit $ac_status); }; }; then
25361   ac_cv_func_cthread_fork=yes
25362 else
25363   echo "$as_me: failed program was:" >&5
25364 sed 's/^/| /' conftest.$ac_ext >&5
25365
25366 ac_cv_func_cthread_fork=no
25367 fi
25368 rm -f conftest.err conftest.$ac_objext \
25369       conftest$ac_exeext conftest.$ac_ext
25370 fi
25371 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
25372 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
25373 if test $ac_cv_func_cthread_fork = yes; then
25374   ol_link_threads=yes
25375 fi
25376
25377                 LIBS="$save_LIBS"
25378
25379                 if test $ol_link_threads = yes ; then
25380                         LTHREAD_LIBS="-lthreads"
25381                         ol_link_threads=mach
25382                         ol_with_threads=found
25383                 else
25384                         { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
25385 echo "$as_me: error: could not link with Mach CThreads" >&2;}
25386    { (exit 1); exit 1; }; }
25387                 fi
25388
25389         elif test $ol_with_threads = mach ; then
25390                 { { echo "$as_me:$LINENO: error: could not locate Mach CThreads" >&5
25391 echo "$as_me: error: could not locate Mach CThreads" >&2;}
25392    { (exit 1); exit 1; }; }
25393         fi
25394
25395         if test $ol_link_threads = mach ; then
25396
25397 cat >>confdefs.h <<\_ACEOF
25398 #define HAVE_MACH_CTHREADS 1
25399 _ACEOF
25400
25401         elif test $ol_with_threads = found ; then
25402                 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
25403 echo "$as_me: error: could not link with Mach CThreads" >&2;}
25404    { (exit 1); exit 1; }; }
25405         fi
25406 fi
25407
25408 if test $ol_with_threads = auto -o $ol_with_threads = yes \
25409         -o $ol_with_threads = pth ; then
25410
25411
25412 for ac_header in pth.h
25413 do
25414 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25415 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25416   echo "$as_me:$LINENO: checking for $ac_header" >&5
25417 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25418 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25419   echo $ECHO_N "(cached) $ECHO_C" >&6
25420 fi
25421 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25422 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25423 else
25424   # Is the header compilable?
25425 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25426 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25427 cat >conftest.$ac_ext <<_ACEOF
25428 /* confdefs.h.  */
25429 _ACEOF
25430 cat confdefs.h >>conftest.$ac_ext
25431 cat >>conftest.$ac_ext <<_ACEOF
25432 /* end confdefs.h.  */
25433 $ac_includes_default
25434 #include <$ac_header>
25435 _ACEOF
25436 rm -f conftest.$ac_objext
25437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25438   (eval $ac_compile) 2>conftest.er1
25439   ac_status=$?
25440   grep -v '^ *+' conftest.er1 >conftest.err
25441   rm -f conftest.er1
25442   cat conftest.err >&5
25443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25444   (exit $ac_status); } &&
25445          { ac_try='test -z "$ac_c_werror_flag"
25446                          || test ! -s conftest.err'
25447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25448   (eval $ac_try) 2>&5
25449   ac_status=$?
25450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25451   (exit $ac_status); }; } &&
25452          { ac_try='test -s conftest.$ac_objext'
25453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25454   (eval $ac_try) 2>&5
25455   ac_status=$?
25456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25457   (exit $ac_status); }; }; then
25458   ac_header_compiler=yes
25459 else
25460   echo "$as_me: failed program was:" >&5
25461 sed 's/^/| /' conftest.$ac_ext >&5
25462
25463 ac_header_compiler=no
25464 fi
25465 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25466 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25467 echo "${ECHO_T}$ac_header_compiler" >&6
25468
25469 # Is the header present?
25470 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25471 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25472 cat >conftest.$ac_ext <<_ACEOF
25473 /* confdefs.h.  */
25474 _ACEOF
25475 cat confdefs.h >>conftest.$ac_ext
25476 cat >>conftest.$ac_ext <<_ACEOF
25477 /* end confdefs.h.  */
25478 #include <$ac_header>
25479 _ACEOF
25480 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25481   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25482   ac_status=$?
25483   grep -v '^ *+' conftest.er1 >conftest.err
25484   rm -f conftest.er1
25485   cat conftest.err >&5
25486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25487   (exit $ac_status); } >/dev/null; then
25488   if test -s conftest.err; then
25489     ac_cpp_err=$ac_c_preproc_warn_flag
25490     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25491   else
25492     ac_cpp_err=
25493   fi
25494 else
25495   ac_cpp_err=yes
25496 fi
25497 if test -z "$ac_cpp_err"; then
25498   ac_header_preproc=yes
25499 else
25500   echo "$as_me: failed program was:" >&5
25501 sed 's/^/| /' conftest.$ac_ext >&5
25502
25503   ac_header_preproc=no
25504 fi
25505 rm -f conftest.err conftest.$ac_ext
25506 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25507 echo "${ECHO_T}$ac_header_preproc" >&6
25508
25509 # So?  What about this header?
25510 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25511   yes:no: )
25512     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25513 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25514     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25515 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25516     ac_header_preproc=yes
25517     ;;
25518   no:yes:* )
25519     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25520 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25521     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25522 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25523     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25524 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25525     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25526 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25527     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25528 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25529     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25530 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25531     (
25532       cat <<\_ASBOX
25533 ## ------------------------------------------ ##
25534 ## Report this to the AC_PACKAGE_NAME lists.  ##
25535 ## ------------------------------------------ ##
25536 _ASBOX
25537     ) |
25538       sed "s/^/$as_me: WARNING:     /" >&2
25539     ;;
25540 esac
25541 echo "$as_me:$LINENO: checking for $ac_header" >&5
25542 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25543 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25544   echo $ECHO_N "(cached) $ECHO_C" >&6
25545 else
25546   eval "$as_ac_Header=\$ac_header_preproc"
25547 fi
25548 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25549 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25550
25551 fi
25552 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25553   cat >>confdefs.h <<_ACEOF
25554 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25555 _ACEOF
25556
25557 fi
25558
25559 done
25560
25561
25562         if test $ac_cv_header_pth_h = yes ; then
25563                 echo "$as_me:$LINENO: checking for pth_version in -lpth" >&5
25564 echo $ECHO_N "checking for pth_version in -lpth... $ECHO_C" >&6
25565 if test "${ac_cv_lib_pth_pth_version+set}" = set; then
25566   echo $ECHO_N "(cached) $ECHO_C" >&6
25567 else
25568   ac_check_lib_save_LIBS=$LIBS
25569 LIBS="-lpth  $LIBS"
25570 cat >conftest.$ac_ext <<_ACEOF
25571 /* confdefs.h.  */
25572 _ACEOF
25573 cat confdefs.h >>conftest.$ac_ext
25574 cat >>conftest.$ac_ext <<_ACEOF
25575 /* end confdefs.h.  */
25576
25577 /* Override any gcc2 internal prototype to avoid an error.  */
25578 #ifdef __cplusplus
25579 extern "C"
25580 #endif
25581 /* We use char because int might match the return type of a gcc2
25582    builtin and then its argument prototype would still apply.  */
25583 char pth_version ();
25584 int
25585 main ()
25586 {
25587 pth_version ();
25588   ;
25589   return 0;
25590 }
25591 _ACEOF
25592 rm -f conftest.$ac_objext conftest$ac_exeext
25593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25594   (eval $ac_link) 2>conftest.er1
25595   ac_status=$?
25596   grep -v '^ *+' conftest.er1 >conftest.err
25597   rm -f conftest.er1
25598   cat conftest.err >&5
25599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25600   (exit $ac_status); } &&
25601          { ac_try='test -z "$ac_c_werror_flag"
25602                          || test ! -s conftest.err'
25603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25604   (eval $ac_try) 2>&5
25605   ac_status=$?
25606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25607   (exit $ac_status); }; } &&
25608          { ac_try='test -s conftest$ac_exeext'
25609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25610   (eval $ac_try) 2>&5
25611   ac_status=$?
25612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25613   (exit $ac_status); }; }; then
25614   ac_cv_lib_pth_pth_version=yes
25615 else
25616   echo "$as_me: failed program was:" >&5
25617 sed 's/^/| /' conftest.$ac_ext >&5
25618
25619 ac_cv_lib_pth_pth_version=no
25620 fi
25621 rm -f conftest.err conftest.$ac_objext \
25622       conftest$ac_exeext conftest.$ac_ext
25623 LIBS=$ac_check_lib_save_LIBS
25624 fi
25625 echo "$as_me:$LINENO: result: $ac_cv_lib_pth_pth_version" >&5
25626 echo "${ECHO_T}$ac_cv_lib_pth_pth_version" >&6
25627 if test $ac_cv_lib_pth_pth_version = yes; then
25628   have_pth=yes
25629 else
25630   have_pth=no
25631 fi
25632
25633
25634                 if test $have_pth = yes ; then
25635
25636 cat >>confdefs.h <<\_ACEOF
25637 #define HAVE_GNU_PTH 1
25638 _ACEOF
25639
25640                         LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
25641                         ol_link_threads=pth
25642                         ol_with_threads=found
25643
25644                         if test $ol_with_yielding_select = auto ; then
25645                                 ol_with_yielding_select=yes
25646                         fi
25647                 fi
25648         fi
25649 fi
25650
25651 if test $ol_with_threads = auto -o $ol_with_threads = yes \
25652         -o $ol_with_threads = lwp ; then
25653
25654
25655
25656 for ac_header in thread.h synch.h
25657 do
25658 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25659 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25660   echo "$as_me:$LINENO: checking for $ac_header" >&5
25661 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25662 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25663   echo $ECHO_N "(cached) $ECHO_C" >&6
25664 fi
25665 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25666 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25667 else
25668   # Is the header compilable?
25669 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25670 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25671 cat >conftest.$ac_ext <<_ACEOF
25672 /* confdefs.h.  */
25673 _ACEOF
25674 cat confdefs.h >>conftest.$ac_ext
25675 cat >>conftest.$ac_ext <<_ACEOF
25676 /* end confdefs.h.  */
25677 $ac_includes_default
25678 #include <$ac_header>
25679 _ACEOF
25680 rm -f conftest.$ac_objext
25681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25682   (eval $ac_compile) 2>conftest.er1
25683   ac_status=$?
25684   grep -v '^ *+' conftest.er1 >conftest.err
25685   rm -f conftest.er1
25686   cat conftest.err >&5
25687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25688   (exit $ac_status); } &&
25689          { ac_try='test -z "$ac_c_werror_flag"
25690                          || test ! -s conftest.err'
25691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25692   (eval $ac_try) 2>&5
25693   ac_status=$?
25694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25695   (exit $ac_status); }; } &&
25696          { ac_try='test -s conftest.$ac_objext'
25697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25698   (eval $ac_try) 2>&5
25699   ac_status=$?
25700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25701   (exit $ac_status); }; }; then
25702   ac_header_compiler=yes
25703 else
25704   echo "$as_me: failed program was:" >&5
25705 sed 's/^/| /' conftest.$ac_ext >&5
25706
25707 ac_header_compiler=no
25708 fi
25709 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25710 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25711 echo "${ECHO_T}$ac_header_compiler" >&6
25712
25713 # Is the header present?
25714 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25715 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25716 cat >conftest.$ac_ext <<_ACEOF
25717 /* confdefs.h.  */
25718 _ACEOF
25719 cat confdefs.h >>conftest.$ac_ext
25720 cat >>conftest.$ac_ext <<_ACEOF
25721 /* end confdefs.h.  */
25722 #include <$ac_header>
25723 _ACEOF
25724 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25725   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25726   ac_status=$?
25727   grep -v '^ *+' conftest.er1 >conftest.err
25728   rm -f conftest.er1
25729   cat conftest.err >&5
25730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25731   (exit $ac_status); } >/dev/null; then
25732   if test -s conftest.err; then
25733     ac_cpp_err=$ac_c_preproc_warn_flag
25734     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25735   else
25736     ac_cpp_err=
25737   fi
25738 else
25739   ac_cpp_err=yes
25740 fi
25741 if test -z "$ac_cpp_err"; then
25742   ac_header_preproc=yes
25743 else
25744   echo "$as_me: failed program was:" >&5
25745 sed 's/^/| /' conftest.$ac_ext >&5
25746
25747   ac_header_preproc=no
25748 fi
25749 rm -f conftest.err conftest.$ac_ext
25750 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25751 echo "${ECHO_T}$ac_header_preproc" >&6
25752
25753 # So?  What about this header?
25754 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25755   yes:no: )
25756     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25757 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25758     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25759 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25760     ac_header_preproc=yes
25761     ;;
25762   no:yes:* )
25763     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25764 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25765     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25766 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25767     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25768 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25769     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25770 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25771     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25772 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25773     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25774 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25775     (
25776       cat <<\_ASBOX
25777 ## ------------------------------------------ ##
25778 ## Report this to the AC_PACKAGE_NAME lists.  ##
25779 ## ------------------------------------------ ##
25780 _ASBOX
25781     ) |
25782       sed "s/^/$as_me: WARNING:     /" >&2
25783     ;;
25784 esac
25785 echo "$as_me:$LINENO: checking for $ac_header" >&5
25786 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25787 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25788   echo $ECHO_N "(cached) $ECHO_C" >&6
25789 else
25790   eval "$as_ac_Header=\$ac_header_preproc"
25791 fi
25792 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25793 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25794
25795 fi
25796 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25797   cat >>confdefs.h <<_ACEOF
25798 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25799 _ACEOF
25800
25801 fi
25802
25803 done
25804
25805         if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
25806                 echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
25807 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6
25808 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
25809   echo $ECHO_N "(cached) $ECHO_C" >&6
25810 else
25811   ac_check_lib_save_LIBS=$LIBS
25812 LIBS="-lthread  $LIBS"
25813 cat >conftest.$ac_ext <<_ACEOF
25814 /* confdefs.h.  */
25815 _ACEOF
25816 cat confdefs.h >>conftest.$ac_ext
25817 cat >>conftest.$ac_ext <<_ACEOF
25818 /* end confdefs.h.  */
25819
25820 /* Override any gcc2 internal prototype to avoid an error.  */
25821 #ifdef __cplusplus
25822 extern "C"
25823 #endif
25824 /* We use char because int might match the return type of a gcc2
25825    builtin and then its argument prototype would still apply.  */
25826 char thr_create ();
25827 int
25828 main ()
25829 {
25830 thr_create ();
25831   ;
25832   return 0;
25833 }
25834 _ACEOF
25835 rm -f conftest.$ac_objext conftest$ac_exeext
25836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25837   (eval $ac_link) 2>conftest.er1
25838   ac_status=$?
25839   grep -v '^ *+' conftest.er1 >conftest.err
25840   rm -f conftest.er1
25841   cat conftest.err >&5
25842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25843   (exit $ac_status); } &&
25844          { ac_try='test -z "$ac_c_werror_flag"
25845                          || test ! -s conftest.err'
25846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25847   (eval $ac_try) 2>&5
25848   ac_status=$?
25849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25850   (exit $ac_status); }; } &&
25851          { ac_try='test -s conftest$ac_exeext'
25852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25853   (eval $ac_try) 2>&5
25854   ac_status=$?
25855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25856   (exit $ac_status); }; }; then
25857   ac_cv_lib_thread_thr_create=yes
25858 else
25859   echo "$as_me: failed program was:" >&5
25860 sed 's/^/| /' conftest.$ac_ext >&5
25861
25862 ac_cv_lib_thread_thr_create=no
25863 fi
25864 rm -f conftest.err conftest.$ac_objext \
25865       conftest$ac_exeext conftest.$ac_ext
25866 LIBS=$ac_check_lib_save_LIBS
25867 fi
25868 echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
25869 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6
25870 if test $ac_cv_lib_thread_thr_create = yes; then
25871   have_thr=yes
25872 else
25873   have_thr=no
25874 fi
25875
25876
25877                 if test $have_thr = yes ; then
25878
25879 cat >>confdefs.h <<\_ACEOF
25880 #define HAVE_THR 1
25881 _ACEOF
25882
25883                         LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
25884                         ol_link_threads=thr
25885
25886                         if test $ol_with_yielding_select = auto ; then
25887                                 ol_with_yielding_select=yes
25888                         fi
25889
25890
25891
25892 for ac_func in \
25893                                 thr_setconcurrency \
25894                                 thr_getconcurrency \
25895
25896 do
25897 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25898 echo "$as_me:$LINENO: checking for $ac_func" >&5
25899 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25900 if eval "test \"\${$as_ac_var+set}\" = set"; then
25901   echo $ECHO_N "(cached) $ECHO_C" >&6
25902 else
25903   cat >conftest.$ac_ext <<_ACEOF
25904 /* confdefs.h.  */
25905 _ACEOF
25906 cat confdefs.h >>conftest.$ac_ext
25907 cat >>conftest.$ac_ext <<_ACEOF
25908 /* end confdefs.h.  */
25909 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25910    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25911 #define $ac_func innocuous_$ac_func
25912
25913 /* System header to define __stub macros and hopefully few prototypes,
25914     which can conflict with char $ac_func (); below.
25915     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25916     <limits.h> exists even on freestanding compilers.  */
25917
25918 #ifdef __STDC__
25919 # include <limits.h>
25920 #else
25921 # include <assert.h>
25922 #endif
25923
25924 #undef $ac_func
25925
25926 /* Override any gcc2 internal prototype to avoid an error.  */
25927 #ifdef __cplusplus
25928 extern "C"
25929 {
25930 #endif
25931 /* We use char because int might match the return type of a gcc2
25932    builtin and then its argument prototype would still apply.  */
25933 char $ac_func ();
25934 /* The GNU C library defines this for functions which it implements
25935     to always fail with ENOSYS.  Some functions are actually named
25936     something starting with __ and the normal name is an alias.  */
25937 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25938 choke me
25939 #else
25940 char (*f) () = $ac_func;
25941 #endif
25942 #ifdef __cplusplus
25943 }
25944 #endif
25945
25946 int
25947 main ()
25948 {
25949 return f != $ac_func;
25950   ;
25951   return 0;
25952 }
25953 _ACEOF
25954 rm -f conftest.$ac_objext conftest$ac_exeext
25955 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25956   (eval $ac_link) 2>conftest.er1
25957   ac_status=$?
25958   grep -v '^ *+' conftest.er1 >conftest.err
25959   rm -f conftest.er1
25960   cat conftest.err >&5
25961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25962   (exit $ac_status); } &&
25963          { ac_try='test -z "$ac_c_werror_flag"
25964                          || test ! -s conftest.err'
25965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25966   (eval $ac_try) 2>&5
25967   ac_status=$?
25968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25969   (exit $ac_status); }; } &&
25970          { ac_try='test -s conftest$ac_exeext'
25971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25972   (eval $ac_try) 2>&5
25973   ac_status=$?
25974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25975   (exit $ac_status); }; }; then
25976   eval "$as_ac_var=yes"
25977 else
25978   echo "$as_me: failed program was:" >&5
25979 sed 's/^/| /' conftest.$ac_ext >&5
25980
25981 eval "$as_ac_var=no"
25982 fi
25983 rm -f conftest.err conftest.$ac_objext \
25984       conftest$ac_exeext conftest.$ac_ext
25985 fi
25986 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25987 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25988 if test `eval echo '${'$as_ac_var'}'` = yes; then
25989   cat >>confdefs.h <<_ACEOF
25990 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25991 _ACEOF
25992
25993 fi
25994 done
25995
25996                 fi
25997         fi
25998
25999
26000 for ac_header in lwp/lwp.h
26001 do
26002 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26003 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26004   echo "$as_me:$LINENO: checking for $ac_header" >&5
26005 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26006 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26007   echo $ECHO_N "(cached) $ECHO_C" >&6
26008 fi
26009 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26010 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26011 else
26012   # Is the header compilable?
26013 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26014 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26015 cat >conftest.$ac_ext <<_ACEOF
26016 /* confdefs.h.  */
26017 _ACEOF
26018 cat confdefs.h >>conftest.$ac_ext
26019 cat >>conftest.$ac_ext <<_ACEOF
26020 /* end confdefs.h.  */
26021 $ac_includes_default
26022 #include <$ac_header>
26023 _ACEOF
26024 rm -f conftest.$ac_objext
26025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26026   (eval $ac_compile) 2>conftest.er1
26027   ac_status=$?
26028   grep -v '^ *+' conftest.er1 >conftest.err
26029   rm -f conftest.er1
26030   cat conftest.err >&5
26031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26032   (exit $ac_status); } &&
26033          { ac_try='test -z "$ac_c_werror_flag"
26034                          || test ! -s conftest.err'
26035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26036   (eval $ac_try) 2>&5
26037   ac_status=$?
26038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26039   (exit $ac_status); }; } &&
26040          { ac_try='test -s conftest.$ac_objext'
26041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26042   (eval $ac_try) 2>&5
26043   ac_status=$?
26044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26045   (exit $ac_status); }; }; then
26046   ac_header_compiler=yes
26047 else
26048   echo "$as_me: failed program was:" >&5
26049 sed 's/^/| /' conftest.$ac_ext >&5
26050
26051 ac_header_compiler=no
26052 fi
26053 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26054 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26055 echo "${ECHO_T}$ac_header_compiler" >&6
26056
26057 # Is the header present?
26058 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26059 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26060 cat >conftest.$ac_ext <<_ACEOF
26061 /* confdefs.h.  */
26062 _ACEOF
26063 cat confdefs.h >>conftest.$ac_ext
26064 cat >>conftest.$ac_ext <<_ACEOF
26065 /* end confdefs.h.  */
26066 #include <$ac_header>
26067 _ACEOF
26068 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26069   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26070   ac_status=$?
26071   grep -v '^ *+' conftest.er1 >conftest.err
26072   rm -f conftest.er1
26073   cat conftest.err >&5
26074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26075   (exit $ac_status); } >/dev/null; then
26076   if test -s conftest.err; then
26077     ac_cpp_err=$ac_c_preproc_warn_flag
26078     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26079   else
26080     ac_cpp_err=
26081   fi
26082 else
26083   ac_cpp_err=yes
26084 fi
26085 if test -z "$ac_cpp_err"; then
26086   ac_header_preproc=yes
26087 else
26088   echo "$as_me: failed program was:" >&5
26089 sed 's/^/| /' conftest.$ac_ext >&5
26090
26091   ac_header_preproc=no
26092 fi
26093 rm -f conftest.err conftest.$ac_ext
26094 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26095 echo "${ECHO_T}$ac_header_preproc" >&6
26096
26097 # So?  What about this header?
26098 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26099   yes:no: )
26100     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26101 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26102     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26103 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26104     ac_header_preproc=yes
26105     ;;
26106   no:yes:* )
26107     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26108 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26109     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26110 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26111     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26112 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26113     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26114 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26115     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26116 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26117     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26118 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26119     (
26120       cat <<\_ASBOX
26121 ## ------------------------------------------ ##
26122 ## Report this to the AC_PACKAGE_NAME lists.  ##
26123 ## ------------------------------------------ ##
26124 _ASBOX
26125     ) |
26126       sed "s/^/$as_me: WARNING:     /" >&2
26127     ;;
26128 esac
26129 echo "$as_me:$LINENO: checking for $ac_header" >&5
26130 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26131 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26132   echo $ECHO_N "(cached) $ECHO_C" >&6
26133 else
26134   eval "$as_ac_Header=\$ac_header_preproc"
26135 fi
26136 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26137 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26138
26139 fi
26140 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26141   cat >>confdefs.h <<_ACEOF
26142 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26143 _ACEOF
26144
26145 fi
26146
26147 done
26148
26149         if test $ac_cv_header_lwp_lwp_h = yes ; then
26150                 echo "$as_me:$LINENO: checking for lwp_create in -llwp" >&5
26151 echo $ECHO_N "checking for lwp_create in -llwp... $ECHO_C" >&6
26152 if test "${ac_cv_lib_lwp_lwp_create+set}" = set; then
26153   echo $ECHO_N "(cached) $ECHO_C" >&6
26154 else
26155   ac_check_lib_save_LIBS=$LIBS
26156 LIBS="-llwp  $LIBS"
26157 cat >conftest.$ac_ext <<_ACEOF
26158 /* confdefs.h.  */
26159 _ACEOF
26160 cat confdefs.h >>conftest.$ac_ext
26161 cat >>conftest.$ac_ext <<_ACEOF
26162 /* end confdefs.h.  */
26163
26164 /* Override any gcc2 internal prototype to avoid an error.  */
26165 #ifdef __cplusplus
26166 extern "C"
26167 #endif
26168 /* We use char because int might match the return type of a gcc2
26169    builtin and then its argument prototype would still apply.  */
26170 char lwp_create ();
26171 int
26172 main ()
26173 {
26174 lwp_create ();
26175   ;
26176   return 0;
26177 }
26178 _ACEOF
26179 rm -f conftest.$ac_objext conftest$ac_exeext
26180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26181   (eval $ac_link) 2>conftest.er1
26182   ac_status=$?
26183   grep -v '^ *+' conftest.er1 >conftest.err
26184   rm -f conftest.er1
26185   cat conftest.err >&5
26186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26187   (exit $ac_status); } &&
26188          { ac_try='test -z "$ac_c_werror_flag"
26189                          || test ! -s conftest.err'
26190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26191   (eval $ac_try) 2>&5
26192   ac_status=$?
26193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26194   (exit $ac_status); }; } &&
26195          { ac_try='test -s conftest$ac_exeext'
26196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26197   (eval $ac_try) 2>&5
26198   ac_status=$?
26199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26200   (exit $ac_status); }; }; then
26201   ac_cv_lib_lwp_lwp_create=yes
26202 else
26203   echo "$as_me: failed program was:" >&5
26204 sed 's/^/| /' conftest.$ac_ext >&5
26205
26206 ac_cv_lib_lwp_lwp_create=no
26207 fi
26208 rm -f conftest.err conftest.$ac_objext \
26209       conftest$ac_exeext conftest.$ac_ext
26210 LIBS=$ac_check_lib_save_LIBS
26211 fi
26212 echo "$as_me:$LINENO: result: $ac_cv_lib_lwp_lwp_create" >&5
26213 echo "${ECHO_T}$ac_cv_lib_lwp_lwp_create" >&6
26214 if test $ac_cv_lib_lwp_lwp_create = yes; then
26215   have_lwp=yes
26216 else
26217   have_lwp=no
26218 fi
26219
26220
26221                 if test $have_lwp = yes ; then
26222
26223 cat >>confdefs.h <<\_ACEOF
26224 #define HAVE_LWP 1
26225 _ACEOF
26226
26227                         LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
26228                         ol_link_threads=lwp
26229
26230                         if test $ol_with_yielding_select = auto ; then
26231                                 ol_with_yielding_select=no
26232                         fi
26233                 fi
26234         fi
26235 fi
26236
26237 if test $ol_with_yielding_select = yes ; then
26238
26239 cat >>confdefs.h <<\_ACEOF
26240 #define HAVE_YIELDING_SELECT 1
26241 _ACEOF
26242
26243 fi
26244
26245 if test $ol_with_threads = manual ; then
26246                 ol_link_threads=yes
26247
26248         { echo "$as_me:$LINENO: WARNING: thread defines and link options must be set manually" >&5
26249 echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
26250
26251
26252
26253 for ac_header in pthread.h sched.h
26254 do
26255 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26256 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26257   echo "$as_me:$LINENO: checking for $ac_header" >&5
26258 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26259 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26260   echo $ECHO_N "(cached) $ECHO_C" >&6
26261 fi
26262 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26263 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26264 else
26265   # Is the header compilable?
26266 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26267 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26268 cat >conftest.$ac_ext <<_ACEOF
26269 /* confdefs.h.  */
26270 _ACEOF
26271 cat confdefs.h >>conftest.$ac_ext
26272 cat >>conftest.$ac_ext <<_ACEOF
26273 /* end confdefs.h.  */
26274 $ac_includes_default
26275 #include <$ac_header>
26276 _ACEOF
26277 rm -f conftest.$ac_objext
26278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26279   (eval $ac_compile) 2>conftest.er1
26280   ac_status=$?
26281   grep -v '^ *+' conftest.er1 >conftest.err
26282   rm -f conftest.er1
26283   cat conftest.err >&5
26284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26285   (exit $ac_status); } &&
26286          { ac_try='test -z "$ac_c_werror_flag"
26287                          || test ! -s conftest.err'
26288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26289   (eval $ac_try) 2>&5
26290   ac_status=$?
26291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26292   (exit $ac_status); }; } &&
26293          { ac_try='test -s conftest.$ac_objext'
26294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26295   (eval $ac_try) 2>&5
26296   ac_status=$?
26297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26298   (exit $ac_status); }; }; then
26299   ac_header_compiler=yes
26300 else
26301   echo "$as_me: failed program was:" >&5
26302 sed 's/^/| /' conftest.$ac_ext >&5
26303
26304 ac_header_compiler=no
26305 fi
26306 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26307 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26308 echo "${ECHO_T}$ac_header_compiler" >&6
26309
26310 # Is the header present?
26311 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26312 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26313 cat >conftest.$ac_ext <<_ACEOF
26314 /* confdefs.h.  */
26315 _ACEOF
26316 cat confdefs.h >>conftest.$ac_ext
26317 cat >>conftest.$ac_ext <<_ACEOF
26318 /* end confdefs.h.  */
26319 #include <$ac_header>
26320 _ACEOF
26321 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26322   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26323   ac_status=$?
26324   grep -v '^ *+' conftest.er1 >conftest.err
26325   rm -f conftest.er1
26326   cat conftest.err >&5
26327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26328   (exit $ac_status); } >/dev/null; then
26329   if test -s conftest.err; then
26330     ac_cpp_err=$ac_c_preproc_warn_flag
26331     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26332   else
26333     ac_cpp_err=
26334   fi
26335 else
26336   ac_cpp_err=yes
26337 fi
26338 if test -z "$ac_cpp_err"; then
26339   ac_header_preproc=yes
26340 else
26341   echo "$as_me: failed program was:" >&5
26342 sed 's/^/| /' conftest.$ac_ext >&5
26343
26344   ac_header_preproc=no
26345 fi
26346 rm -f conftest.err conftest.$ac_ext
26347 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26348 echo "${ECHO_T}$ac_header_preproc" >&6
26349
26350 # So?  What about this header?
26351 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26352   yes:no: )
26353     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26354 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26355     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26356 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26357     ac_header_preproc=yes
26358     ;;
26359   no:yes:* )
26360     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26361 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26362     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26363 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26364     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26365 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26366     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26367 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26368     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26369 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26370     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26371 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26372     (
26373       cat <<\_ASBOX
26374 ## ------------------------------------------ ##
26375 ## Report this to the AC_PACKAGE_NAME lists.  ##
26376 ## ------------------------------------------ ##
26377 _ASBOX
26378     ) |
26379       sed "s/^/$as_me: WARNING:     /" >&2
26380     ;;
26381 esac
26382 echo "$as_me:$LINENO: checking for $ac_header" >&5
26383 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26384 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26385   echo $ECHO_N "(cached) $ECHO_C" >&6
26386 else
26387   eval "$as_ac_Header=\$ac_header_preproc"
26388 fi
26389 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26390 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26391
26392 fi
26393 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26394   cat >>confdefs.h <<_ACEOF
26395 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26396 _ACEOF
26397
26398 fi
26399
26400 done
26401
26402
26403
26404 for ac_func in sched_yield pthread_yield
26405 do
26406 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26407 echo "$as_me:$LINENO: checking for $ac_func" >&5
26408 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26409 if eval "test \"\${$as_ac_var+set}\" = set"; then
26410   echo $ECHO_N "(cached) $ECHO_C" >&6
26411 else
26412   cat >conftest.$ac_ext <<_ACEOF
26413 /* confdefs.h.  */
26414 _ACEOF
26415 cat confdefs.h >>conftest.$ac_ext
26416 cat >>conftest.$ac_ext <<_ACEOF
26417 /* end confdefs.h.  */
26418 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26419    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26420 #define $ac_func innocuous_$ac_func
26421
26422 /* System header to define __stub macros and hopefully few prototypes,
26423     which can conflict with char $ac_func (); below.
26424     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26425     <limits.h> exists even on freestanding compilers.  */
26426
26427 #ifdef __STDC__
26428 # include <limits.h>
26429 #else
26430 # include <assert.h>
26431 #endif
26432
26433 #undef $ac_func
26434
26435 /* Override any gcc2 internal prototype to avoid an error.  */
26436 #ifdef __cplusplus
26437 extern "C"
26438 {
26439 #endif
26440 /* We use char because int might match the return type of a gcc2
26441    builtin and then its argument prototype would still apply.  */
26442 char $ac_func ();
26443 /* The GNU C library defines this for functions which it implements
26444     to always fail with ENOSYS.  Some functions are actually named
26445     something starting with __ and the normal name is an alias.  */
26446 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26447 choke me
26448 #else
26449 char (*f) () = $ac_func;
26450 #endif
26451 #ifdef __cplusplus
26452 }
26453 #endif
26454
26455 int
26456 main ()
26457 {
26458 return f != $ac_func;
26459   ;
26460   return 0;
26461 }
26462 _ACEOF
26463 rm -f conftest.$ac_objext conftest$ac_exeext
26464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26465   (eval $ac_link) 2>conftest.er1
26466   ac_status=$?
26467   grep -v '^ *+' conftest.er1 >conftest.err
26468   rm -f conftest.er1
26469   cat conftest.err >&5
26470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26471   (exit $ac_status); } &&
26472          { ac_try='test -z "$ac_c_werror_flag"
26473                          || test ! -s conftest.err'
26474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26475   (eval $ac_try) 2>&5
26476   ac_status=$?
26477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26478   (exit $ac_status); }; } &&
26479          { ac_try='test -s conftest$ac_exeext'
26480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26481   (eval $ac_try) 2>&5
26482   ac_status=$?
26483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26484   (exit $ac_status); }; }; then
26485   eval "$as_ac_var=yes"
26486 else
26487   echo "$as_me: failed program was:" >&5
26488 sed 's/^/| /' conftest.$ac_ext >&5
26489
26490 eval "$as_ac_var=no"
26491 fi
26492 rm -f conftest.err conftest.$ac_objext \
26493       conftest$ac_exeext conftest.$ac_ext
26494 fi
26495 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26496 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26497 if test `eval echo '${'$as_ac_var'}'` = yes; then
26498   cat >>confdefs.h <<_ACEOF
26499 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26500 _ACEOF
26501
26502 fi
26503 done
26504
26505
26506         echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
26507 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
26508 if test "${ol_cv_header_linux_threads+set}" = set; then
26509   echo $ECHO_N "(cached) $ECHO_C" >&6
26510 else
26511   cat >conftest.$ac_ext <<_ACEOF
26512 /* confdefs.h.  */
26513 _ACEOF
26514 cat confdefs.h >>conftest.$ac_ext
26515 cat >>conftest.$ac_ext <<_ACEOF
26516 /* end confdefs.h.  */
26517 #include <pthread.h>
26518 _ACEOF
26519 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26520   $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
26521   ol_cv_header_linux_threads=yes
26522 else
26523   ol_cv_header_linux_threads=no
26524 fi
26525 rm -f conftest*
26526
26527
26528 fi
26529 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
26530 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
26531         if test $ol_cv_header_linux_threads = yes; then
26532
26533 cat >>confdefs.h <<\_ACEOF
26534 #define HAVE_LINUX_THREADS 1
26535 _ACEOF
26536
26537         fi
26538
26539
26540
26541 for ac_header in mach/cthreads.h
26542 do
26543 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26544 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26545   echo "$as_me:$LINENO: checking for $ac_header" >&5
26546 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26547 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26548   echo $ECHO_N "(cached) $ECHO_C" >&6
26549 fi
26550 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26551 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26552 else
26553   # Is the header compilable?
26554 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26555 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26556 cat >conftest.$ac_ext <<_ACEOF
26557 /* confdefs.h.  */
26558 _ACEOF
26559 cat confdefs.h >>conftest.$ac_ext
26560 cat >>conftest.$ac_ext <<_ACEOF
26561 /* end confdefs.h.  */
26562 $ac_includes_default
26563 #include <$ac_header>
26564 _ACEOF
26565 rm -f conftest.$ac_objext
26566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26567   (eval $ac_compile) 2>conftest.er1
26568   ac_status=$?
26569   grep -v '^ *+' conftest.er1 >conftest.err
26570   rm -f conftest.er1
26571   cat conftest.err >&5
26572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26573   (exit $ac_status); } &&
26574          { ac_try='test -z "$ac_c_werror_flag"
26575                          || test ! -s conftest.err'
26576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26577   (eval $ac_try) 2>&5
26578   ac_status=$?
26579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26580   (exit $ac_status); }; } &&
26581          { ac_try='test -s conftest.$ac_objext'
26582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26583   (eval $ac_try) 2>&5
26584   ac_status=$?
26585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26586   (exit $ac_status); }; }; then
26587   ac_header_compiler=yes
26588 else
26589   echo "$as_me: failed program was:" >&5
26590 sed 's/^/| /' conftest.$ac_ext >&5
26591
26592 ac_header_compiler=no
26593 fi
26594 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26595 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26596 echo "${ECHO_T}$ac_header_compiler" >&6
26597
26598 # Is the header present?
26599 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26600 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26601 cat >conftest.$ac_ext <<_ACEOF
26602 /* confdefs.h.  */
26603 _ACEOF
26604 cat confdefs.h >>conftest.$ac_ext
26605 cat >>conftest.$ac_ext <<_ACEOF
26606 /* end confdefs.h.  */
26607 #include <$ac_header>
26608 _ACEOF
26609 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26610   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26611   ac_status=$?
26612   grep -v '^ *+' conftest.er1 >conftest.err
26613   rm -f conftest.er1
26614   cat conftest.err >&5
26615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26616   (exit $ac_status); } >/dev/null; then
26617   if test -s conftest.err; then
26618     ac_cpp_err=$ac_c_preproc_warn_flag
26619     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26620   else
26621     ac_cpp_err=
26622   fi
26623 else
26624   ac_cpp_err=yes
26625 fi
26626 if test -z "$ac_cpp_err"; then
26627   ac_header_preproc=yes
26628 else
26629   echo "$as_me: failed program was:" >&5
26630 sed 's/^/| /' conftest.$ac_ext >&5
26631
26632   ac_header_preproc=no
26633 fi
26634 rm -f conftest.err conftest.$ac_ext
26635 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26636 echo "${ECHO_T}$ac_header_preproc" >&6
26637
26638 # So?  What about this header?
26639 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26640   yes:no: )
26641     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26642 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26643     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26644 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26645     ac_header_preproc=yes
26646     ;;
26647   no:yes:* )
26648     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26649 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26650     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26651 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26652     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26653 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26654     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26655 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26656     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26657 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26658     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26659 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26660     (
26661       cat <<\_ASBOX
26662 ## ------------------------------------------ ##
26663 ## Report this to the AC_PACKAGE_NAME lists.  ##
26664 ## ------------------------------------------ ##
26665 _ASBOX
26666     ) |
26667       sed "s/^/$as_me: WARNING:     /" >&2
26668     ;;
26669 esac
26670 echo "$as_me:$LINENO: checking for $ac_header" >&5
26671 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26672 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26673   echo $ECHO_N "(cached) $ECHO_C" >&6
26674 else
26675   eval "$as_ac_Header=\$ac_header_preproc"
26676 fi
26677 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26678 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26679
26680 fi
26681 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26682   cat >>confdefs.h <<_ACEOF
26683 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26684 _ACEOF
26685
26686 fi
26687
26688 done
26689
26690
26691 for ac_header in lwp/lwp.h
26692 do
26693 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26694 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26695   echo "$as_me:$LINENO: checking for $ac_header" >&5
26696 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26697 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26698   echo $ECHO_N "(cached) $ECHO_C" >&6
26699 fi
26700 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26701 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26702 else
26703   # Is the header compilable?
26704 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26705 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26706 cat >conftest.$ac_ext <<_ACEOF
26707 /* confdefs.h.  */
26708 _ACEOF
26709 cat confdefs.h >>conftest.$ac_ext
26710 cat >>conftest.$ac_ext <<_ACEOF
26711 /* end confdefs.h.  */
26712 $ac_includes_default
26713 #include <$ac_header>
26714 _ACEOF
26715 rm -f conftest.$ac_objext
26716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26717   (eval $ac_compile) 2>conftest.er1
26718   ac_status=$?
26719   grep -v '^ *+' conftest.er1 >conftest.err
26720   rm -f conftest.er1
26721   cat conftest.err >&5
26722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26723   (exit $ac_status); } &&
26724          { ac_try='test -z "$ac_c_werror_flag"
26725                          || test ! -s conftest.err'
26726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26727   (eval $ac_try) 2>&5
26728   ac_status=$?
26729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26730   (exit $ac_status); }; } &&
26731          { ac_try='test -s conftest.$ac_objext'
26732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26733   (eval $ac_try) 2>&5
26734   ac_status=$?
26735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26736   (exit $ac_status); }; }; then
26737   ac_header_compiler=yes
26738 else
26739   echo "$as_me: failed program was:" >&5
26740 sed 's/^/| /' conftest.$ac_ext >&5
26741
26742 ac_header_compiler=no
26743 fi
26744 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26745 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26746 echo "${ECHO_T}$ac_header_compiler" >&6
26747
26748 # Is the header present?
26749 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26750 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26751 cat >conftest.$ac_ext <<_ACEOF
26752 /* confdefs.h.  */
26753 _ACEOF
26754 cat confdefs.h >>conftest.$ac_ext
26755 cat >>conftest.$ac_ext <<_ACEOF
26756 /* end confdefs.h.  */
26757 #include <$ac_header>
26758 _ACEOF
26759 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26760   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26761   ac_status=$?
26762   grep -v '^ *+' conftest.er1 >conftest.err
26763   rm -f conftest.er1
26764   cat conftest.err >&5
26765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26766   (exit $ac_status); } >/dev/null; then
26767   if test -s conftest.err; then
26768     ac_cpp_err=$ac_c_preproc_warn_flag
26769     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26770   else
26771     ac_cpp_err=
26772   fi
26773 else
26774   ac_cpp_err=yes
26775 fi
26776 if test -z "$ac_cpp_err"; then
26777   ac_header_preproc=yes
26778 else
26779   echo "$as_me: failed program was:" >&5
26780 sed 's/^/| /' conftest.$ac_ext >&5
26781
26782   ac_header_preproc=no
26783 fi
26784 rm -f conftest.err conftest.$ac_ext
26785 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26786 echo "${ECHO_T}$ac_header_preproc" >&6
26787
26788 # So?  What about this header?
26789 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26790   yes:no: )
26791     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26792 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26793     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26794 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26795     ac_header_preproc=yes
26796     ;;
26797   no:yes:* )
26798     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26799 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26800     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26801 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26802     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26803 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26804     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26805 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26806     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26807 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26808     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26809 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26810     (
26811       cat <<\_ASBOX
26812 ## ------------------------------------------ ##
26813 ## Report this to the AC_PACKAGE_NAME lists.  ##
26814 ## ------------------------------------------ ##
26815 _ASBOX
26816     ) |
26817       sed "s/^/$as_me: WARNING:     /" >&2
26818     ;;
26819 esac
26820 echo "$as_me:$LINENO: checking for $ac_header" >&5
26821 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26822 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26823   echo $ECHO_N "(cached) $ECHO_C" >&6
26824 else
26825   eval "$as_ac_Header=\$ac_header_preproc"
26826 fi
26827 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26828 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26829
26830 fi
26831 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26832   cat >>confdefs.h <<_ACEOF
26833 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26834 _ACEOF
26835
26836 fi
26837
26838 done
26839
26840
26841
26842 for ac_header in thread.h synch.h
26843 do
26844 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26845 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26846   echo "$as_me:$LINENO: checking for $ac_header" >&5
26847 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26848 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26849   echo $ECHO_N "(cached) $ECHO_C" >&6
26850 fi
26851 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26852 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26853 else
26854   # Is the header compilable?
26855 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26856 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26857 cat >conftest.$ac_ext <<_ACEOF
26858 /* confdefs.h.  */
26859 _ACEOF
26860 cat confdefs.h >>conftest.$ac_ext
26861 cat >>conftest.$ac_ext <<_ACEOF
26862 /* end confdefs.h.  */
26863 $ac_includes_default
26864 #include <$ac_header>
26865 _ACEOF
26866 rm -f conftest.$ac_objext
26867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26868   (eval $ac_compile) 2>conftest.er1
26869   ac_status=$?
26870   grep -v '^ *+' conftest.er1 >conftest.err
26871   rm -f conftest.er1
26872   cat conftest.err >&5
26873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26874   (exit $ac_status); } &&
26875          { ac_try='test -z "$ac_c_werror_flag"
26876                          || test ! -s conftest.err'
26877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26878   (eval $ac_try) 2>&5
26879   ac_status=$?
26880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26881   (exit $ac_status); }; } &&
26882          { ac_try='test -s conftest.$ac_objext'
26883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26884   (eval $ac_try) 2>&5
26885   ac_status=$?
26886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26887   (exit $ac_status); }; }; then
26888   ac_header_compiler=yes
26889 else
26890   echo "$as_me: failed program was:" >&5
26891 sed 's/^/| /' conftest.$ac_ext >&5
26892
26893 ac_header_compiler=no
26894 fi
26895 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26896 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26897 echo "${ECHO_T}$ac_header_compiler" >&6
26898
26899 # Is the header present?
26900 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26901 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26902 cat >conftest.$ac_ext <<_ACEOF
26903 /* confdefs.h.  */
26904 _ACEOF
26905 cat confdefs.h >>conftest.$ac_ext
26906 cat >>conftest.$ac_ext <<_ACEOF
26907 /* end confdefs.h.  */
26908 #include <$ac_header>
26909 _ACEOF
26910 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26911   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26912   ac_status=$?
26913   grep -v '^ *+' conftest.er1 >conftest.err
26914   rm -f conftest.er1
26915   cat conftest.err >&5
26916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26917   (exit $ac_status); } >/dev/null; then
26918   if test -s conftest.err; then
26919     ac_cpp_err=$ac_c_preproc_warn_flag
26920     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26921   else
26922     ac_cpp_err=
26923   fi
26924 else
26925   ac_cpp_err=yes
26926 fi
26927 if test -z "$ac_cpp_err"; then
26928   ac_header_preproc=yes
26929 else
26930   echo "$as_me: failed program was:" >&5
26931 sed 's/^/| /' conftest.$ac_ext >&5
26932
26933   ac_header_preproc=no
26934 fi
26935 rm -f conftest.err conftest.$ac_ext
26936 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26937 echo "${ECHO_T}$ac_header_preproc" >&6
26938
26939 # So?  What about this header?
26940 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26941   yes:no: )
26942     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26943 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26944     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26945 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26946     ac_header_preproc=yes
26947     ;;
26948   no:yes:* )
26949     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26950 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26951     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26952 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26953     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26954 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26955     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26956 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26957     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26958 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26959     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26960 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26961     (
26962       cat <<\_ASBOX
26963 ## ------------------------------------------ ##
26964 ## Report this to the AC_PACKAGE_NAME lists.  ##
26965 ## ------------------------------------------ ##
26966 _ASBOX
26967     ) |
26968       sed "s/^/$as_me: WARNING:     /" >&2
26969     ;;
26970 esac
26971 echo "$as_me:$LINENO: checking for $ac_header" >&5
26972 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26973 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26974   echo $ECHO_N "(cached) $ECHO_C" >&6
26975 else
26976   eval "$as_ac_Header=\$ac_header_preproc"
26977 fi
26978 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26979 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26980
26981 fi
26982 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26983   cat >>confdefs.h <<_ACEOF
26984 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26985 _ACEOF
26986
26987 fi
26988
26989 done
26990
26991 fi
26992
26993 if test $ol_link_threads != no -a $ol_link_threads != nt ; then
26994                         cat >>confdefs.h <<\_ACEOF
26995 #define REENTRANT 1
26996 _ACEOF
26997
26998         cat >>confdefs.h <<\_ACEOF
26999 #define _REENTRANT 1
27000 _ACEOF
27001
27002         cat >>confdefs.h <<\_ACEOF
27003 #define THREAD_SAFE 1
27004 _ACEOF
27005
27006         cat >>confdefs.h <<\_ACEOF
27007 #define _THREAD_SAFE 1
27008 _ACEOF
27009
27010         cat >>confdefs.h <<\_ACEOF
27011 #define THREADSAFE 1
27012 _ACEOF
27013
27014         cat >>confdefs.h <<\_ACEOF
27015 #define _THREADSAFE 1
27016 _ACEOF
27017
27018         cat >>confdefs.h <<\_ACEOF
27019 #define _SGI_MP_SOURCE 1
27020 _ACEOF
27021
27022
27023                         echo "$as_me:$LINENO: checking for thread specific errno" >&5
27024 echo $ECHO_N "checking for thread specific errno... $ECHO_C" >&6
27025 if test "${ol_cv_errno_thread_specific+set}" = set; then
27026   echo $ECHO_N "(cached) $ECHO_C" >&6
27027 else
27028
27029                 cat >conftest.$ac_ext <<_ACEOF
27030 /* confdefs.h.  */
27031 _ACEOF
27032 cat confdefs.h >>conftest.$ac_ext
27033 cat >>conftest.$ac_ext <<_ACEOF
27034 /* end confdefs.h.  */
27035 #include <errno.h>
27036 int
27037 main ()
27038 {
27039 errno = 0;
27040   ;
27041   return 0;
27042 }
27043 _ACEOF
27044 rm -f conftest.$ac_objext conftest$ac_exeext
27045 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27046   (eval $ac_link) 2>conftest.er1
27047   ac_status=$?
27048   grep -v '^ *+' conftest.er1 >conftest.err
27049   rm -f conftest.er1
27050   cat conftest.err >&5
27051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27052   (exit $ac_status); } &&
27053          { ac_try='test -z "$ac_c_werror_flag"
27054                          || test ! -s conftest.err'
27055   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27056   (eval $ac_try) 2>&5
27057   ac_status=$?
27058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27059   (exit $ac_status); }; } &&
27060          { ac_try='test -s conftest$ac_exeext'
27061   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27062   (eval $ac_try) 2>&5
27063   ac_status=$?
27064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27065   (exit $ac_status); }; }; then
27066   ol_cv_errno_thread_specific=yes
27067 else
27068   echo "$as_me: failed program was:" >&5
27069 sed 's/^/| /' conftest.$ac_ext >&5
27070
27071 ol_cv_errno_thread_specific=no
27072 fi
27073 rm -f conftest.err conftest.$ac_objext \
27074       conftest$ac_exeext conftest.$ac_ext
27075
27076 fi
27077 echo "$as_me:$LINENO: result: $ol_cv_errno_thread_specific" >&5
27078 echo "${ECHO_T}$ol_cv_errno_thread_specific" >&6
27079
27080                         echo "$as_me:$LINENO: checking for thread specific h_errno" >&5
27081 echo $ECHO_N "checking for thread specific h_errno... $ECHO_C" >&6
27082 if test "${ol_cv_h_errno_thread_specific+set}" = set; then
27083   echo $ECHO_N "(cached) $ECHO_C" >&6
27084 else
27085
27086                 cat >conftest.$ac_ext <<_ACEOF
27087 /* confdefs.h.  */
27088 _ACEOF
27089 cat confdefs.h >>conftest.$ac_ext
27090 cat >>conftest.$ac_ext <<_ACEOF
27091 /* end confdefs.h.  */
27092 #include <netdb.h>
27093 int
27094 main ()
27095 {
27096 h_errno = 0;
27097   ;
27098   return 0;
27099 }
27100 _ACEOF
27101 rm -f conftest.$ac_objext conftest$ac_exeext
27102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27103   (eval $ac_link) 2>conftest.er1
27104   ac_status=$?
27105   grep -v '^ *+' conftest.er1 >conftest.err
27106   rm -f conftest.er1
27107   cat conftest.err >&5
27108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27109   (exit $ac_status); } &&
27110          { ac_try='test -z "$ac_c_werror_flag"
27111                          || test ! -s conftest.err'
27112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27113   (eval $ac_try) 2>&5
27114   ac_status=$?
27115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27116   (exit $ac_status); }; } &&
27117          { ac_try='test -s conftest$ac_exeext'
27118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27119   (eval $ac_try) 2>&5
27120   ac_status=$?
27121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27122   (exit $ac_status); }; }; then
27123   ol_cv_h_errno_thread_specific=yes
27124 else
27125   echo "$as_me: failed program was:" >&5
27126 sed 's/^/| /' conftest.$ac_ext >&5
27127
27128 ol_cv_h_errno_thread_specific=no
27129 fi
27130 rm -f conftest.err conftest.$ac_objext \
27131       conftest$ac_exeext conftest.$ac_ext
27132
27133 fi
27134 echo "$as_me:$LINENO: result: $ol_cv_h_errno_thread_specific" >&5
27135 echo "${ECHO_T}$ol_cv_h_errno_thread_specific" >&6
27136
27137         if test $ol_cv_errno_thread_specific != yes \
27138                 -o $ol_cv_h_errno_thread_specific != yes ; then
27139                 LIBS="$LTHREAD_LIBS $LIBS"
27140                 LTHREAD_LIBS=""
27141         fi
27142
27143 fi
27144
27145 if test $ol_link_threads = no ; then
27146         if test $ol_with_threads = yes ; then
27147                 { { echo "$as_me:$LINENO: error: no suitable thread support" >&5
27148 echo "$as_me: error: no suitable thread support" >&2;}
27149    { (exit 1); exit 1; }; }
27150         fi
27151
27152         if test $ol_with_threads = auto ; then
27153                 { echo "$as_me:$LINENO: WARNING: no suitable thread support, disabling threads" >&5
27154 echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
27155                 ol_with_threads=no
27156         fi
27157
27158
27159 cat >>confdefs.h <<\_ACEOF
27160 #define NO_THREADS 1
27161 _ACEOF
27162
27163         LTHREAD_LIBS=""
27164 fi
27165
27166 if test $ol_link_threads != no ; then
27167
27168 cat >>confdefs.h <<\_ACEOF
27169 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
27170 _ACEOF
27171
27172 fi
27173
27174
27175
27176
27177 for ac_func in \
27178         ctime_r                 \
27179         gethostbyname_r gethostbyaddr_r \
27180
27181 do
27182 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27183 echo "$as_me:$LINENO: checking for $ac_func" >&5
27184 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27185 if eval "test \"\${$as_ac_var+set}\" = set"; then
27186   echo $ECHO_N "(cached) $ECHO_C" >&6
27187 else
27188   cat >conftest.$ac_ext <<_ACEOF
27189 /* confdefs.h.  */
27190 _ACEOF
27191 cat confdefs.h >>conftest.$ac_ext
27192 cat >>conftest.$ac_ext <<_ACEOF
27193 /* end confdefs.h.  */
27194 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27195    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27196 #define $ac_func innocuous_$ac_func
27197
27198 /* System header to define __stub macros and hopefully few prototypes,
27199     which can conflict with char $ac_func (); below.
27200     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27201     <limits.h> exists even on freestanding compilers.  */
27202
27203 #ifdef __STDC__
27204 # include <limits.h>
27205 #else
27206 # include <assert.h>
27207 #endif
27208
27209 #undef $ac_func
27210
27211 /* Override any gcc2 internal prototype to avoid an error.  */
27212 #ifdef __cplusplus
27213 extern "C"
27214 {
27215 #endif
27216 /* We use char because int might match the return type of a gcc2
27217    builtin and then its argument prototype would still apply.  */
27218 char $ac_func ();
27219 /* The GNU C library defines this for functions which it implements
27220     to always fail with ENOSYS.  Some functions are actually named
27221     something starting with __ and the normal name is an alias.  */
27222 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27223 choke me
27224 #else
27225 char (*f) () = $ac_func;
27226 #endif
27227 #ifdef __cplusplus
27228 }
27229 #endif
27230
27231 int
27232 main ()
27233 {
27234 return f != $ac_func;
27235   ;
27236   return 0;
27237 }
27238 _ACEOF
27239 rm -f conftest.$ac_objext conftest$ac_exeext
27240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27241   (eval $ac_link) 2>conftest.er1
27242   ac_status=$?
27243   grep -v '^ *+' conftest.er1 >conftest.err
27244   rm -f conftest.er1
27245   cat conftest.err >&5
27246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27247   (exit $ac_status); } &&
27248          { ac_try='test -z "$ac_c_werror_flag"
27249                          || test ! -s conftest.err'
27250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27251   (eval $ac_try) 2>&5
27252   ac_status=$?
27253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27254   (exit $ac_status); }; } &&
27255          { ac_try='test -s conftest$ac_exeext'
27256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27257   (eval $ac_try) 2>&5
27258   ac_status=$?
27259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27260   (exit $ac_status); }; }; then
27261   eval "$as_ac_var=yes"
27262 else
27263   echo "$as_me: failed program was:" >&5
27264 sed 's/^/| /' conftest.$ac_ext >&5
27265
27266 eval "$as_ac_var=no"
27267 fi
27268 rm -f conftest.err conftest.$ac_objext \
27269       conftest$ac_exeext conftest.$ac_ext
27270 fi
27271 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27272 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27273 if test `eval echo '${'$as_ac_var'}'` = yes; then
27274   cat >>confdefs.h <<_ACEOF
27275 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27276 _ACEOF
27277
27278 fi
27279 done
27280
27281
27282 if test "$ac_cv_func_ctime_r" = no ; then
27283         ol_cv_func_ctime_r_nargs=0
27284 else
27285         echo "$as_me:$LINENO: checking number of arguments of ctime_r" >&5
27286 echo $ECHO_N "checking number of arguments of ctime_r... $ECHO_C" >&6
27287 if test "${ol_cv_func_ctime_r_nargs+set}" = set; then
27288   echo $ECHO_N "(cached) $ECHO_C" >&6
27289 else
27290   cat >conftest.$ac_ext <<_ACEOF
27291 /* confdefs.h.  */
27292 _ACEOF
27293 cat confdefs.h >>conftest.$ac_ext
27294 cat >>conftest.$ac_ext <<_ACEOF
27295 /* end confdefs.h.  */
27296 #include <time.h>
27297 int
27298 main ()
27299 {
27300 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
27301   ;
27302   return 0;
27303 }
27304 _ACEOF
27305 rm -f conftest.$ac_objext
27306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27307   (eval $ac_compile) 2>conftest.er1
27308   ac_status=$?
27309   grep -v '^ *+' conftest.er1 >conftest.err
27310   rm -f conftest.er1
27311   cat conftest.err >&5
27312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27313   (exit $ac_status); } &&
27314          { ac_try='test -z "$ac_c_werror_flag"
27315                          || test ! -s conftest.err'
27316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27317   (eval $ac_try) 2>&5
27318   ac_status=$?
27319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27320   (exit $ac_status); }; } &&
27321          { ac_try='test -s conftest.$ac_objext'
27322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27323   (eval $ac_try) 2>&5
27324   ac_status=$?
27325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27326   (exit $ac_status); }; }; then
27327   ol_cv_func_ctime_r_nargs3=yes
27328 else
27329   echo "$as_me: failed program was:" >&5
27330 sed 's/^/| /' conftest.$ac_ext >&5
27331
27332 ol_cv_func_ctime_r_nargs3=no
27333 fi
27334 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27335
27336         cat >conftest.$ac_ext <<_ACEOF
27337 /* confdefs.h.  */
27338 _ACEOF
27339 cat confdefs.h >>conftest.$ac_ext
27340 cat >>conftest.$ac_ext <<_ACEOF
27341 /* end confdefs.h.  */
27342 #include <time.h>
27343 int
27344 main ()
27345 {
27346 time_t ti; char *buffer; ctime_r(&ti,buffer);
27347   ;
27348   return 0;
27349 }
27350 _ACEOF
27351 rm -f conftest.$ac_objext
27352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27353   (eval $ac_compile) 2>conftest.er1
27354   ac_status=$?
27355   grep -v '^ *+' conftest.er1 >conftest.err
27356   rm -f conftest.er1
27357   cat conftest.err >&5
27358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27359   (exit $ac_status); } &&
27360          { ac_try='test -z "$ac_c_werror_flag"
27361                          || test ! -s conftest.err'
27362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27363   (eval $ac_try) 2>&5
27364   ac_status=$?
27365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27366   (exit $ac_status); }; } &&
27367          { ac_try='test -s conftest.$ac_objext'
27368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27369   (eval $ac_try) 2>&5
27370   ac_status=$?
27371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27372   (exit $ac_status); }; }; then
27373   ol_cv_func_ctime_r_nargs2=yes
27374 else
27375   echo "$as_me: failed program was:" >&5
27376 sed 's/^/| /' conftest.$ac_ext >&5
27377
27378 ol_cv_func_ctime_r_nargs2=no
27379 fi
27380 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27381
27382         if test $ol_cv_func_ctime_r_nargs3 = yes -a \
27383                 $ol_cv_func_ctime_r_nargs2 = no ; then
27384
27385                 ol_cv_func_ctime_r_nargs=3
27386
27387         elif test $ol_cv_func_ctime_r_nargs3 = no -a \
27388                 $ol_cv_func_ctime_r_nargs2 = yes ; then
27389
27390                 ol_cv_func_ctime_r_nargs=2
27391
27392         else
27393                 ol_cv_func_ctime_r_nargs=0
27394         fi
27395
27396 fi
27397 echo "$as_me:$LINENO: result: $ol_cv_func_ctime_r_nargs" >&5
27398 echo "${ECHO_T}$ol_cv_func_ctime_r_nargs" >&6
27399
27400   if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
27401
27402 cat >>confdefs.h <<_ACEOF
27403 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
27404 _ACEOF
27405
27406   fi
27407
27408 fi
27409
27410 if test "$ac_cv_func_gethostbyname_r" = yes ; then
27411         echo "$as_me:$LINENO: checking number of arguments of gethostbyname_r" >&5
27412 echo $ECHO_N "checking number of arguments of gethostbyname_r... $ECHO_C" >&6
27413 if test "${ol_cv_func_gethostbyname_r_nargs+set}" = set; then
27414   echo $ECHO_N "(cached) $ECHO_C" >&6
27415 else
27416   cat >conftest.$ac_ext <<_ACEOF
27417 /* confdefs.h.  */
27418 _ACEOF
27419 cat confdefs.h >>conftest.$ac_ext
27420 cat >>conftest.$ac_ext <<_ACEOF
27421 /* end confdefs.h.  */
27422 #include <sys/types.h>
27423 #include <sys/socket.h>
27424 #include <netinet/in.h>
27425 #include <netdb.h>
27426 #define BUFSIZE (sizeof(struct hostent)+10)
27427 int
27428 main ()
27429 {
27430 struct hostent hent; char buffer[BUFSIZE];
27431                 int bufsize=BUFSIZE;int h_errno;
27432                 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
27433                         buffer, bufsize, &h_errno);
27434   ;
27435   return 0;
27436 }
27437 _ACEOF
27438 rm -f conftest.$ac_objext
27439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27440   (eval $ac_compile) 2>conftest.er1
27441   ac_status=$?
27442   grep -v '^ *+' conftest.er1 >conftest.err
27443   rm -f conftest.er1
27444   cat conftest.err >&5
27445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27446   (exit $ac_status); } &&
27447          { ac_try='test -z "$ac_c_werror_flag"
27448                          || test ! -s conftest.err'
27449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27450   (eval $ac_try) 2>&5
27451   ac_status=$?
27452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27453   (exit $ac_status); }; } &&
27454          { ac_try='test -s conftest.$ac_objext'
27455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27456   (eval $ac_try) 2>&5
27457   ac_status=$?
27458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27459   (exit $ac_status); }; }; then
27460   ol_cv_func_gethostbyname_r_nargs5=yes
27461 else
27462   echo "$as_me: failed program was:" >&5
27463 sed 's/^/| /' conftest.$ac_ext >&5
27464
27465 ol_cv_func_gethostbyname_r_nargs5=no
27466 fi
27467 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27468
27469         cat >conftest.$ac_ext <<_ACEOF
27470 /* confdefs.h.  */
27471 _ACEOF
27472 cat confdefs.h >>conftest.$ac_ext
27473 cat >>conftest.$ac_ext <<_ACEOF
27474 /* end confdefs.h.  */
27475 #include <sys/types.h>
27476 #include <sys/socket.h>
27477 #include <netinet/in.h>
27478 #include <netdb.h>
27479 #define BUFSIZE (sizeof(struct hostent)+10)
27480 int
27481 main ()
27482 {
27483 struct hostent hent;struct hostent *rhent;
27484                 char buffer[BUFSIZE];
27485                 int bufsize=BUFSIZE;int h_errno;
27486                 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
27487                         &rhent, &h_errno);
27488   ;
27489   return 0;
27490 }
27491 _ACEOF
27492 rm -f conftest.$ac_objext
27493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27494   (eval $ac_compile) 2>conftest.er1
27495   ac_status=$?
27496   grep -v '^ *+' conftest.er1 >conftest.err
27497   rm -f conftest.er1
27498   cat conftest.err >&5
27499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27500   (exit $ac_status); } &&
27501          { ac_try='test -z "$ac_c_werror_flag"
27502                          || test ! -s conftest.err'
27503   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27504   (eval $ac_try) 2>&5
27505   ac_status=$?
27506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27507   (exit $ac_status); }; } &&
27508          { ac_try='test -s conftest.$ac_objext'
27509   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27510   (eval $ac_try) 2>&5
27511   ac_status=$?
27512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27513   (exit $ac_status); }; }; then
27514   ol_cv_func_gethostbyname_r_nargs6=yes
27515 else
27516   echo "$as_me: failed program was:" >&5
27517 sed 's/^/| /' conftest.$ac_ext >&5
27518
27519 ol_cv_func_gethostbyname_r_nargs6=no
27520 fi
27521 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27522
27523         if test $ol_cv_func_gethostbyname_r_nargs5 = yes -a \
27524                 $ol_cv_func_gethostbyname_r_nargs6 = no ; then
27525
27526                 ol_cv_func_gethostbyname_r_nargs=5
27527
27528         elif test $ol_cv_func_gethostbyname_r_nargs5 = no -a \
27529                 $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
27530
27531                 ol_cv_func_gethostbyname_r_nargs=6
27532
27533         else
27534                 ol_cv_func_gethostbyname_r_nargs=0
27535         fi
27536
27537 fi
27538 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyname_r_nargs" >&5
27539 echo "${ECHO_T}$ol_cv_func_gethostbyname_r_nargs" >&6
27540   if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
27541
27542 cat >>confdefs.h <<_ACEOF
27543 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
27544 _ACEOF
27545
27546   fi
27547
27548 else
27549         ol_cv_func_gethostbyname_r_nargs=0
27550 fi
27551
27552 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
27553         echo "$as_me:$LINENO: checking number of arguments of gethostbyaddr_r" >&5
27554 echo $ECHO_N "checking number of arguments of gethostbyaddr_r... $ECHO_C" >&6
27555 if test "${ol_cv_func_gethostbyaddr_r_nargs+set}" = set; then
27556   echo $ECHO_N "(cached) $ECHO_C" >&6
27557 else
27558   cat >conftest.$ac_ext <<_ACEOF
27559 /* confdefs.h.  */
27560 _ACEOF
27561 cat confdefs.h >>conftest.$ac_ext
27562 cat >>conftest.$ac_ext <<_ACEOF
27563 /* end confdefs.h.  */
27564 #include <sys/types.h>
27565 #include <sys/socket.h>
27566 #include <netinet/in.h>
27567 #include <netdb.h>
27568 #define BUFSIZE (sizeof(struct hostent)+10)
27569 int
27570 main ()
27571 {
27572 struct hostent hent; char buffer[BUFSIZE];
27573             struct in_addr add;
27574             size_t alen=sizeof(struct in_addr);
27575             int bufsize=BUFSIZE;int h_errno;
27576                 (void)gethostbyaddr_r( (void *)&(add.s_addr),
27577                         alen, AF_INET, &hent, buffer, bufsize, &h_errno);
27578   ;
27579   return 0;
27580 }
27581 _ACEOF
27582 rm -f conftest.$ac_objext
27583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27584   (eval $ac_compile) 2>conftest.er1
27585   ac_status=$?
27586   grep -v '^ *+' conftest.er1 >conftest.err
27587   rm -f conftest.er1
27588   cat conftest.err >&5
27589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27590   (exit $ac_status); } &&
27591          { ac_try='test -z "$ac_c_werror_flag"
27592                          || test ! -s conftest.err'
27593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27594   (eval $ac_try) 2>&5
27595   ac_status=$?
27596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27597   (exit $ac_status); }; } &&
27598          { ac_try='test -s conftest.$ac_objext'
27599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27600   (eval $ac_try) 2>&5
27601   ac_status=$?
27602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27603   (exit $ac_status); }; }; then
27604   ol_cv_func_gethostbyaddr_r_nargs7=yes
27605 else
27606   echo "$as_me: failed program was:" >&5
27607 sed 's/^/| /' conftest.$ac_ext >&5
27608
27609 ol_cv_func_gethostbyaddr_r_nargs7=no
27610 fi
27611 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27612
27613         cat >conftest.$ac_ext <<_ACEOF
27614 /* confdefs.h.  */
27615 _ACEOF
27616 cat confdefs.h >>conftest.$ac_ext
27617 cat >>conftest.$ac_ext <<_ACEOF
27618 /* end confdefs.h.  */
27619 #include <sys/types.h>
27620 #include <sys/socket.h>
27621 #include <netinet/in.h>
27622 #include <netdb.h>
27623 #define BUFSIZE (sizeof(struct hostent)+10)
27624 int
27625 main ()
27626 {
27627 struct hostent hent;
27628                 struct hostent *rhent; char buffer[BUFSIZE];
27629                 struct in_addr add;
27630                 size_t alen=sizeof(struct in_addr);
27631                 int bufsize=BUFSIZE;int h_errno;
27632                 (void)gethostbyaddr_r( (void *)&(add.s_addr),
27633                         alen, AF_INET, &hent, buffer, bufsize,
27634                         &rhent, &h_errno);
27635   ;
27636   return 0;
27637 }
27638 _ACEOF
27639 rm -f conftest.$ac_objext
27640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27641   (eval $ac_compile) 2>conftest.er1
27642   ac_status=$?
27643   grep -v '^ *+' conftest.er1 >conftest.err
27644   rm -f conftest.er1
27645   cat conftest.err >&5
27646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27647   (exit $ac_status); } &&
27648          { ac_try='test -z "$ac_c_werror_flag"
27649                          || test ! -s conftest.err'
27650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27651   (eval $ac_try) 2>&5
27652   ac_status=$?
27653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27654   (exit $ac_status); }; } &&
27655          { ac_try='test -s conftest.$ac_objext'
27656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27657   (eval $ac_try) 2>&5
27658   ac_status=$?
27659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27660   (exit $ac_status); }; }; then
27661   ol_cv_func_gethostbyaddr_r_nargs8=yes
27662 else
27663   echo "$as_me: failed program was:" >&5
27664 sed 's/^/| /' conftest.$ac_ext >&5
27665
27666 ol_cv_func_gethostbyaddr_r_nargs8=no
27667 fi
27668 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27669
27670         if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes -a \
27671                 $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
27672
27673                 ol_cv_func_gethostbyaddr_r_nargs=7
27674
27675         elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no -a \
27676                 $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
27677
27678                 ol_cv_func_gethostbyaddr_r_nargs=8
27679
27680         else
27681                 ol_cv_func_gethostbyaddr_r_nargs=0
27682         fi
27683
27684 fi
27685 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyaddr_r_nargs" >&5
27686 echo "${ECHO_T}$ol_cv_func_gethostbyaddr_r_nargs" >&6
27687   if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
27688
27689 cat >>confdefs.h <<_ACEOF
27690 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
27691 _ACEOF
27692
27693   fi
27694
27695 else
27696         ol_cv_func_gethostbyaddr_r_nargs=0
27697 fi
27698
27699 ol_link_ldbm=no
27700
27701 if test $ol_enable_ldbm_api = auto \
27702         -o $ol_enable_ldbm_api = berkeley \
27703         -o $ol_enable_ldbm_api = bcompat ; then
27704
27705         if test $ol_enable_ldbm_api = bcompat; then \
27706
27707
27708 for ac_header in db_185.h db.h
27709 do
27710 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27711 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27712   echo "$as_me:$LINENO: checking for $ac_header" >&5
27713 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27714 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27715   echo $ECHO_N "(cached) $ECHO_C" >&6
27716 fi
27717 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27718 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27719 else
27720   # Is the header compilable?
27721 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27722 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27723 cat >conftest.$ac_ext <<_ACEOF
27724 /* confdefs.h.  */
27725 _ACEOF
27726 cat confdefs.h >>conftest.$ac_ext
27727 cat >>conftest.$ac_ext <<_ACEOF
27728 /* end confdefs.h.  */
27729 $ac_includes_default
27730 #include <$ac_header>
27731 _ACEOF
27732 rm -f conftest.$ac_objext
27733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27734   (eval $ac_compile) 2>conftest.er1
27735   ac_status=$?
27736   grep -v '^ *+' conftest.er1 >conftest.err
27737   rm -f conftest.er1
27738   cat conftest.err >&5
27739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27740   (exit $ac_status); } &&
27741          { ac_try='test -z "$ac_c_werror_flag"
27742                          || test ! -s conftest.err'
27743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27744   (eval $ac_try) 2>&5
27745   ac_status=$?
27746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27747   (exit $ac_status); }; } &&
27748          { ac_try='test -s conftest.$ac_objext'
27749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27750   (eval $ac_try) 2>&5
27751   ac_status=$?
27752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27753   (exit $ac_status); }; }; then
27754   ac_header_compiler=yes
27755 else
27756   echo "$as_me: failed program was:" >&5
27757 sed 's/^/| /' conftest.$ac_ext >&5
27758
27759 ac_header_compiler=no
27760 fi
27761 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27762 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27763 echo "${ECHO_T}$ac_header_compiler" >&6
27764
27765 # Is the header present?
27766 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27767 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27768 cat >conftest.$ac_ext <<_ACEOF
27769 /* confdefs.h.  */
27770 _ACEOF
27771 cat confdefs.h >>conftest.$ac_ext
27772 cat >>conftest.$ac_ext <<_ACEOF
27773 /* end confdefs.h.  */
27774 #include <$ac_header>
27775 _ACEOF
27776 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27777   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27778   ac_status=$?
27779   grep -v '^ *+' conftest.er1 >conftest.err
27780   rm -f conftest.er1
27781   cat conftest.err >&5
27782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27783   (exit $ac_status); } >/dev/null; then
27784   if test -s conftest.err; then
27785     ac_cpp_err=$ac_c_preproc_warn_flag
27786     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27787   else
27788     ac_cpp_err=
27789   fi
27790 else
27791   ac_cpp_err=yes
27792 fi
27793 if test -z "$ac_cpp_err"; then
27794   ac_header_preproc=yes
27795 else
27796   echo "$as_me: failed program was:" >&5
27797 sed 's/^/| /' conftest.$ac_ext >&5
27798
27799   ac_header_preproc=no
27800 fi
27801 rm -f conftest.err conftest.$ac_ext
27802 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27803 echo "${ECHO_T}$ac_header_preproc" >&6
27804
27805 # So?  What about this header?
27806 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27807   yes:no: )
27808     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27809 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27810     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27811 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27812     ac_header_preproc=yes
27813     ;;
27814   no:yes:* )
27815     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27816 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27817     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27818 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27819     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27820 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27821     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27822 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27823     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27824 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27825     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27826 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27827     (
27828       cat <<\_ASBOX
27829 ## ------------------------------------------ ##
27830 ## Report this to the AC_PACKAGE_NAME lists.  ##
27831 ## ------------------------------------------ ##
27832 _ASBOX
27833     ) |
27834       sed "s/^/$as_me: WARNING:     /" >&2
27835     ;;
27836 esac
27837 echo "$as_me:$LINENO: checking for $ac_header" >&5
27838 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27839 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27840   echo $ECHO_N "(cached) $ECHO_C" >&6
27841 else
27842   eval "$as_ac_Header=\$ac_header_preproc"
27843 fi
27844 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27845 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27846
27847 fi
27848 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27849   cat >>confdefs.h <<_ACEOF
27850 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27851 _ACEOF
27852
27853 fi
27854
27855 done
27856
27857 if test $ac_cv_header_db_185_h = yes -o $ac_cv_header_db_h = yes; then
27858         echo "$as_me:$LINENO: checking if Berkeley DB header compatibility" >&5
27859 echo $ECHO_N "checking if Berkeley DB header compatibility... $ECHO_C" >&6
27860 if test "${ol_cv_header_db1+set}" = set; then
27861   echo $ECHO_N "(cached) $ECHO_C" >&6
27862 else
27863
27864                 cat >conftest.$ac_ext <<_ACEOF
27865 /* confdefs.h.  */
27866 _ACEOF
27867 cat confdefs.h >>conftest.$ac_ext
27868 cat >>conftest.$ac_ext <<_ACEOF
27869 /* end confdefs.h.  */
27870
27871 #if HAVE_DB_185_H
27872 #       include <db_185.h>
27873 #else
27874 #       include <db.h>
27875 #endif
27876
27877  /* this check could be improved */
27878 #ifndef DB_VERSION_MAJOR
27879 #       define DB_VERSION_MAJOR 1
27880 #endif
27881
27882 #if DB_VERSION_MAJOR == 1
27883         __db_version_1
27884 #endif
27885
27886 _ACEOF
27887 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27888   $EGREP "__db_version_1" >/dev/null 2>&1; then
27889   ol_cv_header_db1=yes
27890 else
27891   ol_cv_header_db1=no
27892 fi
27893 rm -f conftest*
27894
27895 fi
27896 echo "$as_me:$LINENO: result: $ol_cv_header_db1" >&5
27897 echo "${ECHO_T}$ol_cv_header_db1" >&6
27898
27899         if test $ol_cv_header_db1 = yes ; then
27900                 ol_cv_lib_db=no
27901 if test $ol_cv_lib_db = no ; then
27902         echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
27903 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6
27904 if test "${ol_cv_db_none+set}" = set; then
27905   echo $ECHO_N "(cached) $ECHO_C" >&6
27906 else
27907
27908         ol_DB_LIB=
27909         ol_LIBS=$LIBS
27910         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
27911
27912         cat >conftest.$ac_ext <<_ACEOF
27913 /* confdefs.h.  */
27914 _ACEOF
27915 cat confdefs.h >>conftest.$ac_ext
27916 cat >>conftest.$ac_ext <<_ACEOF
27917 /* end confdefs.h.  */
27918
27919 #ifdef HAVE_DB_185_H
27920 # include <db_185.h>
27921 #else
27922 # include <db.h>
27923 #endif
27924
27925 #ifndef DB_VERSION_MAJOR
27926 # define DB_VERSION_MAJOR 1
27927 #endif
27928
27929 #ifndef NULL
27930 #define NULL ((void*)0)
27931 #endif
27932
27933 int
27934 main ()
27935 {
27936
27937 #if DB_VERSION_MAJOR > 1
27938         {
27939                 char *version;
27940                 int major, minor, patch;
27941
27942                 version = db_version( &major, &minor, &patch );
27943
27944                 if( major != DB_VERSION_MAJOR ||
27945                         minor < DB_VERSION_MINOR )
27946                 {
27947                         printf("Berkeley DB version mismatch\n"
27948                                 "\theader: %s\n\tlibrary: %s\n",
27949                                 DB_VERSION_STRING, version);
27950                         return 1;
27951                 }
27952         }
27953 #endif
27954
27955 #if DB_VERSION_MAJOR > 2
27956         db_env_create( NULL, 0 );
27957 #elif DB_VERSION_MAJOR > 1
27958         db_appexit( NULL );
27959 #else
27960         (void) dbopen( NULL, 0, 0, 0, NULL);
27961 #endif
27962
27963   ;
27964   return 0;
27965 }
27966 _ACEOF
27967 rm -f conftest.$ac_objext conftest$ac_exeext
27968 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27969   (eval $ac_link) 2>conftest.er1
27970   ac_status=$?
27971   grep -v '^ *+' conftest.er1 >conftest.err
27972   rm -f conftest.er1
27973   cat conftest.err >&5
27974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27975   (exit $ac_status); } &&
27976          { ac_try='test -z "$ac_c_werror_flag"
27977                          || test ! -s conftest.err'
27978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27979   (eval $ac_try) 2>&5
27980   ac_status=$?
27981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27982   (exit $ac_status); }; } &&
27983          { ac_try='test -s conftest$ac_exeext'
27984   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27985   (eval $ac_try) 2>&5
27986   ac_status=$?
27987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27988   (exit $ac_status); }; }; then
27989   ol_cv_db_none=yes
27990 else
27991   echo "$as_me: failed program was:" >&5
27992 sed 's/^/| /' conftest.$ac_ext >&5
27993
27994 ol_cv_db_none=no
27995 fi
27996 rm -f conftest.err conftest.$ac_objext \
27997       conftest$ac_exeext conftest.$ac_ext
27998
27999         LIBS="$ol_LIBS"
28000
28001 fi
28002 echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
28003 echo "${ECHO_T}$ol_cv_db_none" >&6
28004
28005         if test $ol_cv_db_none = yes ; then
28006                 ol_cv_lib_db=yes
28007         fi
28008 fi
28009
28010 if test $ol_cv_lib_db = no ; then
28011         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb43)" >&5
28012 echo $ECHO_N "checking for Berkeley DB link (-ldb43)... $ECHO_C" >&6
28013 if test "${ol_cv_db_db43+set}" = set; then
28014   echo $ECHO_N "(cached) $ECHO_C" >&6
28015 else
28016
28017         ol_DB_LIB=-ldb43
28018         ol_LIBS=$LIBS
28019         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28020
28021         cat >conftest.$ac_ext <<_ACEOF
28022 /* confdefs.h.  */
28023 _ACEOF
28024 cat confdefs.h >>conftest.$ac_ext
28025 cat >>conftest.$ac_ext <<_ACEOF
28026 /* end confdefs.h.  */
28027
28028 #ifdef HAVE_DB_185_H
28029 # include <db_185.h>
28030 #else
28031 # include <db.h>
28032 #endif
28033
28034 #ifndef DB_VERSION_MAJOR
28035 # define DB_VERSION_MAJOR 1
28036 #endif
28037
28038 #ifndef NULL
28039 #define NULL ((void*)0)
28040 #endif
28041
28042 int
28043 main ()
28044 {
28045
28046 #if DB_VERSION_MAJOR > 1
28047         {
28048                 char *version;
28049                 int major, minor, patch;
28050
28051                 version = db_version( &major, &minor, &patch );
28052
28053                 if( major != DB_VERSION_MAJOR ||
28054                         minor < DB_VERSION_MINOR )
28055                 {
28056                         printf("Berkeley DB version mismatch\n"
28057                                 "\theader: %s\n\tlibrary: %s\n",
28058                                 DB_VERSION_STRING, version);
28059                         return 1;
28060                 }
28061         }
28062 #endif
28063
28064 #if DB_VERSION_MAJOR > 2
28065         db_env_create( NULL, 0 );
28066 #elif DB_VERSION_MAJOR > 1
28067         db_appexit( NULL );
28068 #else
28069         (void) dbopen( NULL, 0, 0, 0, NULL);
28070 #endif
28071
28072   ;
28073   return 0;
28074 }
28075 _ACEOF
28076 rm -f conftest.$ac_objext conftest$ac_exeext
28077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28078   (eval $ac_link) 2>conftest.er1
28079   ac_status=$?
28080   grep -v '^ *+' conftest.er1 >conftest.err
28081   rm -f conftest.er1
28082   cat conftest.err >&5
28083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28084   (exit $ac_status); } &&
28085          { ac_try='test -z "$ac_c_werror_flag"
28086                          || test ! -s conftest.err'
28087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28088   (eval $ac_try) 2>&5
28089   ac_status=$?
28090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28091   (exit $ac_status); }; } &&
28092          { ac_try='test -s conftest$ac_exeext'
28093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28094   (eval $ac_try) 2>&5
28095   ac_status=$?
28096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28097   (exit $ac_status); }; }; then
28098   ol_cv_db_db43=yes
28099 else
28100   echo "$as_me: failed program was:" >&5
28101 sed 's/^/| /' conftest.$ac_ext >&5
28102
28103 ol_cv_db_db43=no
28104 fi
28105 rm -f conftest.err conftest.$ac_objext \
28106       conftest$ac_exeext conftest.$ac_ext
28107
28108         LIBS="$ol_LIBS"
28109
28110 fi
28111 echo "$as_me:$LINENO: result: $ol_cv_db_db43" >&5
28112 echo "${ECHO_T}$ol_cv_db_db43" >&6
28113
28114         if test $ol_cv_db_db43 = yes ; then
28115                 ol_cv_lib_db=-ldb43
28116         fi
28117 fi
28118
28119 if test $ol_cv_lib_db = no ; then
28120         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-43)" >&5
28121 echo $ECHO_N "checking for Berkeley DB link (-ldb-43)... $ECHO_C" >&6
28122 if test "${ol_cv_db_db_43+set}" = set; then
28123   echo $ECHO_N "(cached) $ECHO_C" >&6
28124 else
28125
28126         ol_DB_LIB=-ldb-43
28127         ol_LIBS=$LIBS
28128         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28129
28130         cat >conftest.$ac_ext <<_ACEOF
28131 /* confdefs.h.  */
28132 _ACEOF
28133 cat confdefs.h >>conftest.$ac_ext
28134 cat >>conftest.$ac_ext <<_ACEOF
28135 /* end confdefs.h.  */
28136
28137 #ifdef HAVE_DB_185_H
28138 # include <db_185.h>
28139 #else
28140 # include <db.h>
28141 #endif
28142
28143 #ifndef DB_VERSION_MAJOR
28144 # define DB_VERSION_MAJOR 1
28145 #endif
28146
28147 #ifndef NULL
28148 #define NULL ((void*)0)
28149 #endif
28150
28151 int
28152 main ()
28153 {
28154
28155 #if DB_VERSION_MAJOR > 1
28156         {
28157                 char *version;
28158                 int major, minor, patch;
28159
28160                 version = db_version( &major, &minor, &patch );
28161
28162                 if( major != DB_VERSION_MAJOR ||
28163                         minor < DB_VERSION_MINOR )
28164                 {
28165                         printf("Berkeley DB version mismatch\n"
28166                                 "\theader: %s\n\tlibrary: %s\n",
28167                                 DB_VERSION_STRING, version);
28168                         return 1;
28169                 }
28170         }
28171 #endif
28172
28173 #if DB_VERSION_MAJOR > 2
28174         db_env_create( NULL, 0 );
28175 #elif DB_VERSION_MAJOR > 1
28176         db_appexit( NULL );
28177 #else
28178         (void) dbopen( NULL, 0, 0, 0, NULL);
28179 #endif
28180
28181   ;
28182   return 0;
28183 }
28184 _ACEOF
28185 rm -f conftest.$ac_objext conftest$ac_exeext
28186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28187   (eval $ac_link) 2>conftest.er1
28188   ac_status=$?
28189   grep -v '^ *+' conftest.er1 >conftest.err
28190   rm -f conftest.er1
28191   cat conftest.err >&5
28192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28193   (exit $ac_status); } &&
28194          { ac_try='test -z "$ac_c_werror_flag"
28195                          || test ! -s conftest.err'
28196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28197   (eval $ac_try) 2>&5
28198   ac_status=$?
28199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28200   (exit $ac_status); }; } &&
28201          { ac_try='test -s conftest$ac_exeext'
28202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28203   (eval $ac_try) 2>&5
28204   ac_status=$?
28205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28206   (exit $ac_status); }; }; then
28207   ol_cv_db_db_43=yes
28208 else
28209   echo "$as_me: failed program was:" >&5
28210 sed 's/^/| /' conftest.$ac_ext >&5
28211
28212 ol_cv_db_db_43=no
28213 fi
28214 rm -f conftest.err conftest.$ac_objext \
28215       conftest$ac_exeext conftest.$ac_ext
28216
28217         LIBS="$ol_LIBS"
28218
28219 fi
28220 echo "$as_me:$LINENO: result: $ol_cv_db_db_43" >&5
28221 echo "${ECHO_T}$ol_cv_db_db_43" >&6
28222
28223         if test $ol_cv_db_db_43 = yes ; then
28224                 ol_cv_lib_db=-ldb-43
28225         fi
28226 fi
28227
28228 if test $ol_cv_lib_db = no ; then
28229         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.3)" >&5
28230 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.3)... $ECHO_C" >&6
28231 if test "${ol_cv_db_db_4_dot_3+set}" = set; then
28232   echo $ECHO_N "(cached) $ECHO_C" >&6
28233 else
28234
28235         ol_DB_LIB=-ldb-4.3
28236         ol_LIBS=$LIBS
28237         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28238
28239         cat >conftest.$ac_ext <<_ACEOF
28240 /* confdefs.h.  */
28241 _ACEOF
28242 cat confdefs.h >>conftest.$ac_ext
28243 cat >>conftest.$ac_ext <<_ACEOF
28244 /* end confdefs.h.  */
28245
28246 #ifdef HAVE_DB_185_H
28247 # include <db_185.h>
28248 #else
28249 # include <db.h>
28250 #endif
28251
28252 #ifndef DB_VERSION_MAJOR
28253 # define DB_VERSION_MAJOR 1
28254 #endif
28255
28256 #ifndef NULL
28257 #define NULL ((void*)0)
28258 #endif
28259
28260 int
28261 main ()
28262 {
28263
28264 #if DB_VERSION_MAJOR > 1
28265         {
28266                 char *version;
28267                 int major, minor, patch;
28268
28269                 version = db_version( &major, &minor, &patch );
28270
28271                 if( major != DB_VERSION_MAJOR ||
28272                         minor < DB_VERSION_MINOR )
28273                 {
28274                         printf("Berkeley DB version mismatch\n"
28275                                 "\theader: %s\n\tlibrary: %s\n",
28276                                 DB_VERSION_STRING, version);
28277                         return 1;
28278                 }
28279         }
28280 #endif
28281
28282 #if DB_VERSION_MAJOR > 2
28283         db_env_create( NULL, 0 );
28284 #elif DB_VERSION_MAJOR > 1
28285         db_appexit( NULL );
28286 #else
28287         (void) dbopen( NULL, 0, 0, 0, NULL);
28288 #endif
28289
28290   ;
28291   return 0;
28292 }
28293 _ACEOF
28294 rm -f conftest.$ac_objext conftest$ac_exeext
28295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28296   (eval $ac_link) 2>conftest.er1
28297   ac_status=$?
28298   grep -v '^ *+' conftest.er1 >conftest.err
28299   rm -f conftest.er1
28300   cat conftest.err >&5
28301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28302   (exit $ac_status); } &&
28303          { ac_try='test -z "$ac_c_werror_flag"
28304                          || test ! -s conftest.err'
28305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28306   (eval $ac_try) 2>&5
28307   ac_status=$?
28308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28309   (exit $ac_status); }; } &&
28310          { ac_try='test -s conftest$ac_exeext'
28311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28312   (eval $ac_try) 2>&5
28313   ac_status=$?
28314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28315   (exit $ac_status); }; }; then
28316   ol_cv_db_db_4_dot_3=yes
28317 else
28318   echo "$as_me: failed program was:" >&5
28319 sed 's/^/| /' conftest.$ac_ext >&5
28320
28321 ol_cv_db_db_4_dot_3=no
28322 fi
28323 rm -f conftest.err conftest.$ac_objext \
28324       conftest$ac_exeext conftest.$ac_ext
28325
28326         LIBS="$ol_LIBS"
28327
28328 fi
28329 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_3" >&5
28330 echo "${ECHO_T}$ol_cv_db_db_4_dot_3" >&6
28331
28332         if test $ol_cv_db_db_4_dot_3 = yes ; then
28333                 ol_cv_lib_db=-ldb-4.3
28334         fi
28335 fi
28336
28337 if test $ol_cv_lib_db = no ; then
28338         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-3)" >&5
28339 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-3)... $ECHO_C" >&6
28340 if test "${ol_cv_db_db_4_3+set}" = set; then
28341   echo $ECHO_N "(cached) $ECHO_C" >&6
28342 else
28343
28344         ol_DB_LIB=-ldb-4-3
28345         ol_LIBS=$LIBS
28346         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28347
28348         cat >conftest.$ac_ext <<_ACEOF
28349 /* confdefs.h.  */
28350 _ACEOF
28351 cat confdefs.h >>conftest.$ac_ext
28352 cat >>conftest.$ac_ext <<_ACEOF
28353 /* end confdefs.h.  */
28354
28355 #ifdef HAVE_DB_185_H
28356 # include <db_185.h>
28357 #else
28358 # include <db.h>
28359 #endif
28360
28361 #ifndef DB_VERSION_MAJOR
28362 # define DB_VERSION_MAJOR 1
28363 #endif
28364
28365 #ifndef NULL
28366 #define NULL ((void*)0)
28367 #endif
28368
28369 int
28370 main ()
28371 {
28372
28373 #if DB_VERSION_MAJOR > 1
28374         {
28375                 char *version;
28376                 int major, minor, patch;
28377
28378                 version = db_version( &major, &minor, &patch );
28379
28380                 if( major != DB_VERSION_MAJOR ||
28381                         minor < DB_VERSION_MINOR )
28382                 {
28383                         printf("Berkeley DB version mismatch\n"
28384                                 "\theader: %s\n\tlibrary: %s\n",
28385                                 DB_VERSION_STRING, version);
28386                         return 1;
28387                 }
28388         }
28389 #endif
28390
28391 #if DB_VERSION_MAJOR > 2
28392         db_env_create( NULL, 0 );
28393 #elif DB_VERSION_MAJOR > 1
28394         db_appexit( NULL );
28395 #else
28396         (void) dbopen( NULL, 0, 0, 0, NULL);
28397 #endif
28398
28399   ;
28400   return 0;
28401 }
28402 _ACEOF
28403 rm -f conftest.$ac_objext conftest$ac_exeext
28404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28405   (eval $ac_link) 2>conftest.er1
28406   ac_status=$?
28407   grep -v '^ *+' conftest.er1 >conftest.err
28408   rm -f conftest.er1
28409   cat conftest.err >&5
28410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28411   (exit $ac_status); } &&
28412          { ac_try='test -z "$ac_c_werror_flag"
28413                          || test ! -s conftest.err'
28414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28415   (eval $ac_try) 2>&5
28416   ac_status=$?
28417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28418   (exit $ac_status); }; } &&
28419          { ac_try='test -s conftest$ac_exeext'
28420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28421   (eval $ac_try) 2>&5
28422   ac_status=$?
28423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28424   (exit $ac_status); }; }; then
28425   ol_cv_db_db_4_3=yes
28426 else
28427   echo "$as_me: failed program was:" >&5
28428 sed 's/^/| /' conftest.$ac_ext >&5
28429
28430 ol_cv_db_db_4_3=no
28431 fi
28432 rm -f conftest.err conftest.$ac_objext \
28433       conftest$ac_exeext conftest.$ac_ext
28434
28435         LIBS="$ol_LIBS"
28436
28437 fi
28438 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_3" >&5
28439 echo "${ECHO_T}$ol_cv_db_db_4_3" >&6
28440
28441         if test $ol_cv_db_db_4_3 = yes ; then
28442                 ol_cv_lib_db=-ldb-4-3
28443         fi
28444 fi
28445
28446 if test $ol_cv_lib_db = no ; then
28447         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb42)" >&5
28448 echo $ECHO_N "checking for Berkeley DB link (-ldb42)... $ECHO_C" >&6
28449 if test "${ol_cv_db_db42+set}" = set; then
28450   echo $ECHO_N "(cached) $ECHO_C" >&6
28451 else
28452
28453         ol_DB_LIB=-ldb42
28454         ol_LIBS=$LIBS
28455         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28456
28457         cat >conftest.$ac_ext <<_ACEOF
28458 /* confdefs.h.  */
28459 _ACEOF
28460 cat confdefs.h >>conftest.$ac_ext
28461 cat >>conftest.$ac_ext <<_ACEOF
28462 /* end confdefs.h.  */
28463
28464 #ifdef HAVE_DB_185_H
28465 # include <db_185.h>
28466 #else
28467 # include <db.h>
28468 #endif
28469
28470 #ifndef DB_VERSION_MAJOR
28471 # define DB_VERSION_MAJOR 1
28472 #endif
28473
28474 #ifndef NULL
28475 #define NULL ((void*)0)
28476 #endif
28477
28478 int
28479 main ()
28480 {
28481
28482 #if DB_VERSION_MAJOR > 1
28483         {
28484                 char *version;
28485                 int major, minor, patch;
28486
28487                 version = db_version( &major, &minor, &patch );
28488
28489                 if( major != DB_VERSION_MAJOR ||
28490                         minor < DB_VERSION_MINOR )
28491                 {
28492                         printf("Berkeley DB version mismatch\n"
28493                                 "\theader: %s\n\tlibrary: %s\n",
28494                                 DB_VERSION_STRING, version);
28495                         return 1;
28496                 }
28497         }
28498 #endif
28499
28500 #if DB_VERSION_MAJOR > 2
28501         db_env_create( NULL, 0 );
28502 #elif DB_VERSION_MAJOR > 1
28503         db_appexit( NULL );
28504 #else
28505         (void) dbopen( NULL, 0, 0, 0, NULL);
28506 #endif
28507
28508   ;
28509   return 0;
28510 }
28511 _ACEOF
28512 rm -f conftest.$ac_objext conftest$ac_exeext
28513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28514   (eval $ac_link) 2>conftest.er1
28515   ac_status=$?
28516   grep -v '^ *+' conftest.er1 >conftest.err
28517   rm -f conftest.er1
28518   cat conftest.err >&5
28519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28520   (exit $ac_status); } &&
28521          { ac_try='test -z "$ac_c_werror_flag"
28522                          || test ! -s conftest.err'
28523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28524   (eval $ac_try) 2>&5
28525   ac_status=$?
28526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28527   (exit $ac_status); }; } &&
28528          { ac_try='test -s conftest$ac_exeext'
28529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28530   (eval $ac_try) 2>&5
28531   ac_status=$?
28532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28533   (exit $ac_status); }; }; then
28534   ol_cv_db_db42=yes
28535 else
28536   echo "$as_me: failed program was:" >&5
28537 sed 's/^/| /' conftest.$ac_ext >&5
28538
28539 ol_cv_db_db42=no
28540 fi
28541 rm -f conftest.err conftest.$ac_objext \
28542       conftest$ac_exeext conftest.$ac_ext
28543
28544         LIBS="$ol_LIBS"
28545
28546 fi
28547 echo "$as_me:$LINENO: result: $ol_cv_db_db42" >&5
28548 echo "${ECHO_T}$ol_cv_db_db42" >&6
28549
28550         if test $ol_cv_db_db42 = yes ; then
28551                 ol_cv_lib_db=-ldb42
28552         fi
28553 fi
28554
28555 if test $ol_cv_lib_db = no ; then
28556         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-42)" >&5
28557 echo $ECHO_N "checking for Berkeley DB link (-ldb-42)... $ECHO_C" >&6
28558 if test "${ol_cv_db_db_42+set}" = set; then
28559   echo $ECHO_N "(cached) $ECHO_C" >&6
28560 else
28561
28562         ol_DB_LIB=-ldb-42
28563         ol_LIBS=$LIBS
28564         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28565
28566         cat >conftest.$ac_ext <<_ACEOF
28567 /* confdefs.h.  */
28568 _ACEOF
28569 cat confdefs.h >>conftest.$ac_ext
28570 cat >>conftest.$ac_ext <<_ACEOF
28571 /* end confdefs.h.  */
28572
28573 #ifdef HAVE_DB_185_H
28574 # include <db_185.h>
28575 #else
28576 # include <db.h>
28577 #endif
28578
28579 #ifndef DB_VERSION_MAJOR
28580 # define DB_VERSION_MAJOR 1
28581 #endif
28582
28583 #ifndef NULL
28584 #define NULL ((void*)0)
28585 #endif
28586
28587 int
28588 main ()
28589 {
28590
28591 #if DB_VERSION_MAJOR > 1
28592         {
28593                 char *version;
28594                 int major, minor, patch;
28595
28596                 version = db_version( &major, &minor, &patch );
28597
28598                 if( major != DB_VERSION_MAJOR ||
28599                         minor < DB_VERSION_MINOR )
28600                 {
28601                         printf("Berkeley DB version mismatch\n"
28602                                 "\theader: %s\n\tlibrary: %s\n",
28603                                 DB_VERSION_STRING, version);
28604                         return 1;
28605                 }
28606         }
28607 #endif
28608
28609 #if DB_VERSION_MAJOR > 2
28610         db_env_create( NULL, 0 );
28611 #elif DB_VERSION_MAJOR > 1
28612         db_appexit( NULL );
28613 #else
28614         (void) dbopen( NULL, 0, 0, 0, NULL);
28615 #endif
28616
28617   ;
28618   return 0;
28619 }
28620 _ACEOF
28621 rm -f conftest.$ac_objext conftest$ac_exeext
28622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28623   (eval $ac_link) 2>conftest.er1
28624   ac_status=$?
28625   grep -v '^ *+' conftest.er1 >conftest.err
28626   rm -f conftest.er1
28627   cat conftest.err >&5
28628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28629   (exit $ac_status); } &&
28630          { ac_try='test -z "$ac_c_werror_flag"
28631                          || test ! -s conftest.err'
28632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28633   (eval $ac_try) 2>&5
28634   ac_status=$?
28635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28636   (exit $ac_status); }; } &&
28637          { ac_try='test -s conftest$ac_exeext'
28638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28639   (eval $ac_try) 2>&5
28640   ac_status=$?
28641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28642   (exit $ac_status); }; }; then
28643   ol_cv_db_db_42=yes
28644 else
28645   echo "$as_me: failed program was:" >&5
28646 sed 's/^/| /' conftest.$ac_ext >&5
28647
28648 ol_cv_db_db_42=no
28649 fi
28650 rm -f conftest.err conftest.$ac_objext \
28651       conftest$ac_exeext conftest.$ac_ext
28652
28653         LIBS="$ol_LIBS"
28654
28655 fi
28656 echo "$as_me:$LINENO: result: $ol_cv_db_db_42" >&5
28657 echo "${ECHO_T}$ol_cv_db_db_42" >&6
28658
28659         if test $ol_cv_db_db_42 = yes ; then
28660                 ol_cv_lib_db=-ldb-42
28661         fi
28662 fi
28663
28664 if test $ol_cv_lib_db = no ; then
28665         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.2)" >&5
28666 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.2)... $ECHO_C" >&6
28667 if test "${ol_cv_db_db_4_dot_2+set}" = set; then
28668   echo $ECHO_N "(cached) $ECHO_C" >&6
28669 else
28670
28671         ol_DB_LIB=-ldb-4.2
28672         ol_LIBS=$LIBS
28673         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28674
28675         cat >conftest.$ac_ext <<_ACEOF
28676 /* confdefs.h.  */
28677 _ACEOF
28678 cat confdefs.h >>conftest.$ac_ext
28679 cat >>conftest.$ac_ext <<_ACEOF
28680 /* end confdefs.h.  */
28681
28682 #ifdef HAVE_DB_185_H
28683 # include <db_185.h>
28684 #else
28685 # include <db.h>
28686 #endif
28687
28688 #ifndef DB_VERSION_MAJOR
28689 # define DB_VERSION_MAJOR 1
28690 #endif
28691
28692 #ifndef NULL
28693 #define NULL ((void*)0)
28694 #endif
28695
28696 int
28697 main ()
28698 {
28699
28700 #if DB_VERSION_MAJOR > 1
28701         {
28702                 char *version;
28703                 int major, minor, patch;
28704
28705                 version = db_version( &major, &minor, &patch );
28706
28707                 if( major != DB_VERSION_MAJOR ||
28708                         minor < DB_VERSION_MINOR )
28709                 {
28710                         printf("Berkeley DB version mismatch\n"
28711                                 "\theader: %s\n\tlibrary: %s\n",
28712                                 DB_VERSION_STRING, version);
28713                         return 1;
28714                 }
28715         }
28716 #endif
28717
28718 #if DB_VERSION_MAJOR > 2
28719         db_env_create( NULL, 0 );
28720 #elif DB_VERSION_MAJOR > 1
28721         db_appexit( NULL );
28722 #else
28723         (void) dbopen( NULL, 0, 0, 0, NULL);
28724 #endif
28725
28726   ;
28727   return 0;
28728 }
28729 _ACEOF
28730 rm -f conftest.$ac_objext conftest$ac_exeext
28731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28732   (eval $ac_link) 2>conftest.er1
28733   ac_status=$?
28734   grep -v '^ *+' conftest.er1 >conftest.err
28735   rm -f conftest.er1
28736   cat conftest.err >&5
28737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28738   (exit $ac_status); } &&
28739          { ac_try='test -z "$ac_c_werror_flag"
28740                          || test ! -s conftest.err'
28741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28742   (eval $ac_try) 2>&5
28743   ac_status=$?
28744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28745   (exit $ac_status); }; } &&
28746          { ac_try='test -s conftest$ac_exeext'
28747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28748   (eval $ac_try) 2>&5
28749   ac_status=$?
28750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28751   (exit $ac_status); }; }; then
28752   ol_cv_db_db_4_dot_2=yes
28753 else
28754   echo "$as_me: failed program was:" >&5
28755 sed 's/^/| /' conftest.$ac_ext >&5
28756
28757 ol_cv_db_db_4_dot_2=no
28758 fi
28759 rm -f conftest.err conftest.$ac_objext \
28760       conftest$ac_exeext conftest.$ac_ext
28761
28762         LIBS="$ol_LIBS"
28763
28764 fi
28765 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_2" >&5
28766 echo "${ECHO_T}$ol_cv_db_db_4_dot_2" >&6
28767
28768         if test $ol_cv_db_db_4_dot_2 = yes ; then
28769                 ol_cv_lib_db=-ldb-4.2
28770         fi
28771 fi
28772
28773 if test $ol_cv_lib_db = no ; then
28774         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-2)" >&5
28775 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-2)... $ECHO_C" >&6
28776 if test "${ol_cv_db_db_4_2+set}" = set; then
28777   echo $ECHO_N "(cached) $ECHO_C" >&6
28778 else
28779
28780         ol_DB_LIB=-ldb-4-2
28781         ol_LIBS=$LIBS
28782         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28783
28784         cat >conftest.$ac_ext <<_ACEOF
28785 /* confdefs.h.  */
28786 _ACEOF
28787 cat confdefs.h >>conftest.$ac_ext
28788 cat >>conftest.$ac_ext <<_ACEOF
28789 /* end confdefs.h.  */
28790
28791 #ifdef HAVE_DB_185_H
28792 # include <db_185.h>
28793 #else
28794 # include <db.h>
28795 #endif
28796
28797 #ifndef DB_VERSION_MAJOR
28798 # define DB_VERSION_MAJOR 1
28799 #endif
28800
28801 #ifndef NULL
28802 #define NULL ((void*)0)
28803 #endif
28804
28805 int
28806 main ()
28807 {
28808
28809 #if DB_VERSION_MAJOR > 1
28810         {
28811                 char *version;
28812                 int major, minor, patch;
28813
28814                 version = db_version( &major, &minor, &patch );
28815
28816                 if( major != DB_VERSION_MAJOR ||
28817                         minor < DB_VERSION_MINOR )
28818                 {
28819                         printf("Berkeley DB version mismatch\n"
28820                                 "\theader: %s\n\tlibrary: %s\n",
28821                                 DB_VERSION_STRING, version);
28822                         return 1;
28823                 }
28824         }
28825 #endif
28826
28827 #if DB_VERSION_MAJOR > 2
28828         db_env_create( NULL, 0 );
28829 #elif DB_VERSION_MAJOR > 1
28830         db_appexit( NULL );
28831 #else
28832         (void) dbopen( NULL, 0, 0, 0, NULL);
28833 #endif
28834
28835   ;
28836   return 0;
28837 }
28838 _ACEOF
28839 rm -f conftest.$ac_objext conftest$ac_exeext
28840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28841   (eval $ac_link) 2>conftest.er1
28842   ac_status=$?
28843   grep -v '^ *+' conftest.er1 >conftest.err
28844   rm -f conftest.er1
28845   cat conftest.err >&5
28846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28847   (exit $ac_status); } &&
28848          { ac_try='test -z "$ac_c_werror_flag"
28849                          || test ! -s conftest.err'
28850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28851   (eval $ac_try) 2>&5
28852   ac_status=$?
28853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28854   (exit $ac_status); }; } &&
28855          { ac_try='test -s conftest$ac_exeext'
28856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28857   (eval $ac_try) 2>&5
28858   ac_status=$?
28859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28860   (exit $ac_status); }; }; then
28861   ol_cv_db_db_4_2=yes
28862 else
28863   echo "$as_me: failed program was:" >&5
28864 sed 's/^/| /' conftest.$ac_ext >&5
28865
28866 ol_cv_db_db_4_2=no
28867 fi
28868 rm -f conftest.err conftest.$ac_objext \
28869       conftest$ac_exeext conftest.$ac_ext
28870
28871         LIBS="$ol_LIBS"
28872
28873 fi
28874 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_2" >&5
28875 echo "${ECHO_T}$ol_cv_db_db_4_2" >&6
28876
28877         if test $ol_cv_db_db_4_2 = yes ; then
28878                 ol_cv_lib_db=-ldb-4-2
28879         fi
28880 fi
28881
28882 if test $ol_cv_lib_db = no ; then
28883         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
28884 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6
28885 if test "${ol_cv_db_db_4+set}" = set; then
28886   echo $ECHO_N "(cached) $ECHO_C" >&6
28887 else
28888
28889         ol_DB_LIB=-ldb-4
28890         ol_LIBS=$LIBS
28891         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28892
28893         cat >conftest.$ac_ext <<_ACEOF
28894 /* confdefs.h.  */
28895 _ACEOF
28896 cat confdefs.h >>conftest.$ac_ext
28897 cat >>conftest.$ac_ext <<_ACEOF
28898 /* end confdefs.h.  */
28899
28900 #ifdef HAVE_DB_185_H
28901 # include <db_185.h>
28902 #else
28903 # include <db.h>
28904 #endif
28905
28906 #ifndef DB_VERSION_MAJOR
28907 # define DB_VERSION_MAJOR 1
28908 #endif
28909
28910 #ifndef NULL
28911 #define NULL ((void*)0)
28912 #endif
28913
28914 int
28915 main ()
28916 {
28917
28918 #if DB_VERSION_MAJOR > 1
28919         {
28920                 char *version;
28921                 int major, minor, patch;
28922
28923                 version = db_version( &major, &minor, &patch );
28924
28925                 if( major != DB_VERSION_MAJOR ||
28926                         minor < DB_VERSION_MINOR )
28927                 {
28928                         printf("Berkeley DB version mismatch\n"
28929                                 "\theader: %s\n\tlibrary: %s\n",
28930                                 DB_VERSION_STRING, version);
28931                         return 1;
28932                 }
28933         }
28934 #endif
28935
28936 #if DB_VERSION_MAJOR > 2
28937         db_env_create( NULL, 0 );
28938 #elif DB_VERSION_MAJOR > 1
28939         db_appexit( NULL );
28940 #else
28941         (void) dbopen( NULL, 0, 0, 0, NULL);
28942 #endif
28943
28944   ;
28945   return 0;
28946 }
28947 _ACEOF
28948 rm -f conftest.$ac_objext conftest$ac_exeext
28949 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28950   (eval $ac_link) 2>conftest.er1
28951   ac_status=$?
28952   grep -v '^ *+' conftest.er1 >conftest.err
28953   rm -f conftest.er1
28954   cat conftest.err >&5
28955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28956   (exit $ac_status); } &&
28957          { ac_try='test -z "$ac_c_werror_flag"
28958                          || test ! -s conftest.err'
28959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28960   (eval $ac_try) 2>&5
28961   ac_status=$?
28962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28963   (exit $ac_status); }; } &&
28964          { ac_try='test -s conftest$ac_exeext'
28965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28966   (eval $ac_try) 2>&5
28967   ac_status=$?
28968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28969   (exit $ac_status); }; }; then
28970   ol_cv_db_db_4=yes
28971 else
28972   echo "$as_me: failed program was:" >&5
28973 sed 's/^/| /' conftest.$ac_ext >&5
28974
28975 ol_cv_db_db_4=no
28976 fi
28977 rm -f conftest.err conftest.$ac_objext \
28978       conftest$ac_exeext conftest.$ac_ext
28979
28980         LIBS="$ol_LIBS"
28981
28982 fi
28983 echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
28984 echo "${ECHO_T}$ol_cv_db_db_4" >&6
28985
28986         if test $ol_cv_db_db_4 = yes ; then
28987                 ol_cv_lib_db=-ldb-4
28988         fi
28989 fi
28990
28991 if test $ol_cv_lib_db = no ; then
28992         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
28993 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6
28994 if test "${ol_cv_db_db4+set}" = set; then
28995   echo $ECHO_N "(cached) $ECHO_C" >&6
28996 else
28997
28998         ol_DB_LIB=-ldb4
28999         ol_LIBS=$LIBS
29000         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29001
29002         cat >conftest.$ac_ext <<_ACEOF
29003 /* confdefs.h.  */
29004 _ACEOF
29005 cat confdefs.h >>conftest.$ac_ext
29006 cat >>conftest.$ac_ext <<_ACEOF
29007 /* end confdefs.h.  */
29008
29009 #ifdef HAVE_DB_185_H
29010 # include <db_185.h>
29011 #else
29012 # include <db.h>
29013 #endif
29014
29015 #ifndef DB_VERSION_MAJOR
29016 # define DB_VERSION_MAJOR 1
29017 #endif
29018
29019 #ifndef NULL
29020 #define NULL ((void*)0)
29021 #endif
29022
29023 int
29024 main ()
29025 {
29026
29027 #if DB_VERSION_MAJOR > 1
29028         {
29029                 char *version;
29030                 int major, minor, patch;
29031
29032                 version = db_version( &major, &minor, &patch );
29033
29034                 if( major != DB_VERSION_MAJOR ||
29035                         minor < DB_VERSION_MINOR )
29036                 {
29037                         printf("Berkeley DB version mismatch\n"
29038                                 "\theader: %s\n\tlibrary: %s\n",
29039                                 DB_VERSION_STRING, version);
29040                         return 1;
29041                 }
29042         }
29043 #endif
29044
29045 #if DB_VERSION_MAJOR > 2
29046         db_env_create( NULL, 0 );
29047 #elif DB_VERSION_MAJOR > 1
29048         db_appexit( NULL );
29049 #else
29050         (void) dbopen( NULL, 0, 0, 0, NULL);
29051 #endif
29052
29053   ;
29054   return 0;
29055 }
29056 _ACEOF
29057 rm -f conftest.$ac_objext conftest$ac_exeext
29058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29059   (eval $ac_link) 2>conftest.er1
29060   ac_status=$?
29061   grep -v '^ *+' conftest.er1 >conftest.err
29062   rm -f conftest.er1
29063   cat conftest.err >&5
29064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29065   (exit $ac_status); } &&
29066          { ac_try='test -z "$ac_c_werror_flag"
29067                          || test ! -s conftest.err'
29068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29069   (eval $ac_try) 2>&5
29070   ac_status=$?
29071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29072   (exit $ac_status); }; } &&
29073          { ac_try='test -s conftest$ac_exeext'
29074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29075   (eval $ac_try) 2>&5
29076   ac_status=$?
29077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29078   (exit $ac_status); }; }; then
29079   ol_cv_db_db4=yes
29080 else
29081   echo "$as_me: failed program was:" >&5
29082 sed 's/^/| /' conftest.$ac_ext >&5
29083
29084 ol_cv_db_db4=no
29085 fi
29086 rm -f conftest.err conftest.$ac_objext \
29087       conftest$ac_exeext conftest.$ac_ext
29088
29089         LIBS="$ol_LIBS"
29090
29091 fi
29092 echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
29093 echo "${ECHO_T}$ol_cv_db_db4" >&6
29094
29095         if test $ol_cv_db_db4 = yes ; then
29096                 ol_cv_lib_db=-ldb4
29097         fi
29098 fi
29099
29100 if test $ol_cv_lib_db = no ; then
29101         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
29102 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6
29103 if test "${ol_cv_db_db+set}" = set; then
29104   echo $ECHO_N "(cached) $ECHO_C" >&6
29105 else
29106
29107         ol_DB_LIB=-ldb
29108         ol_LIBS=$LIBS
29109         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29110
29111         cat >conftest.$ac_ext <<_ACEOF
29112 /* confdefs.h.  */
29113 _ACEOF
29114 cat confdefs.h >>conftest.$ac_ext
29115 cat >>conftest.$ac_ext <<_ACEOF
29116 /* end confdefs.h.  */
29117
29118 #ifdef HAVE_DB_185_H
29119 # include <db_185.h>
29120 #else
29121 # include <db.h>
29122 #endif
29123
29124 #ifndef DB_VERSION_MAJOR
29125 # define DB_VERSION_MAJOR 1
29126 #endif
29127
29128 #ifndef NULL
29129 #define NULL ((void*)0)
29130 #endif
29131
29132 int
29133 main ()
29134 {
29135
29136 #if DB_VERSION_MAJOR > 1
29137         {
29138                 char *version;
29139                 int major, minor, patch;
29140
29141                 version = db_version( &major, &minor, &patch );
29142
29143                 if( major != DB_VERSION_MAJOR ||
29144                         minor < DB_VERSION_MINOR )
29145                 {
29146                         printf("Berkeley DB version mismatch\n"
29147                                 "\theader: %s\n\tlibrary: %s\n",
29148                                 DB_VERSION_STRING, version);
29149                         return 1;
29150                 }
29151         }
29152 #endif
29153
29154 #if DB_VERSION_MAJOR > 2
29155         db_env_create( NULL, 0 );
29156 #elif DB_VERSION_MAJOR > 1
29157         db_appexit( NULL );
29158 #else
29159         (void) dbopen( NULL, 0, 0, 0, NULL);
29160 #endif
29161
29162   ;
29163   return 0;
29164 }
29165 _ACEOF
29166 rm -f conftest.$ac_objext conftest$ac_exeext
29167 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29168   (eval $ac_link) 2>conftest.er1
29169   ac_status=$?
29170   grep -v '^ *+' conftest.er1 >conftest.err
29171   rm -f conftest.er1
29172   cat conftest.err >&5
29173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29174   (exit $ac_status); } &&
29175          { ac_try='test -z "$ac_c_werror_flag"
29176                          || test ! -s conftest.err'
29177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29178   (eval $ac_try) 2>&5
29179   ac_status=$?
29180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29181   (exit $ac_status); }; } &&
29182          { ac_try='test -s conftest$ac_exeext'
29183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29184   (eval $ac_try) 2>&5
29185   ac_status=$?
29186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29187   (exit $ac_status); }; }; then
29188   ol_cv_db_db=yes
29189 else
29190   echo "$as_me: failed program was:" >&5
29191 sed 's/^/| /' conftest.$ac_ext >&5
29192
29193 ol_cv_db_db=no
29194 fi
29195 rm -f conftest.err conftest.$ac_objext \
29196       conftest$ac_exeext conftest.$ac_ext
29197
29198         LIBS="$ol_LIBS"
29199
29200 fi
29201 echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
29202 echo "${ECHO_T}$ol_cv_db_db" >&6
29203
29204         if test $ol_cv_db_db = yes ; then
29205                 ol_cv_lib_db=-ldb
29206         fi
29207 fi
29208
29209 if test $ol_cv_lib_db = no ; then
29210         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb41)" >&5
29211 echo $ECHO_N "checking for Berkeley DB link (-ldb41)... $ECHO_C" >&6
29212 if test "${ol_cv_db_db41+set}" = set; then
29213   echo $ECHO_N "(cached) $ECHO_C" >&6
29214 else
29215
29216         ol_DB_LIB=-ldb41
29217         ol_LIBS=$LIBS
29218         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29219
29220         cat >conftest.$ac_ext <<_ACEOF
29221 /* confdefs.h.  */
29222 _ACEOF
29223 cat confdefs.h >>conftest.$ac_ext
29224 cat >>conftest.$ac_ext <<_ACEOF
29225 /* end confdefs.h.  */
29226
29227 #ifdef HAVE_DB_185_H
29228 # include <db_185.h>
29229 #else
29230 # include <db.h>
29231 #endif
29232
29233 #ifndef DB_VERSION_MAJOR
29234 # define DB_VERSION_MAJOR 1
29235 #endif
29236
29237 #ifndef NULL
29238 #define NULL ((void*)0)
29239 #endif
29240
29241 int
29242 main ()
29243 {
29244
29245 #if DB_VERSION_MAJOR > 1
29246         {
29247                 char *version;
29248                 int major, minor, patch;
29249
29250                 version = db_version( &major, &minor, &patch );
29251
29252                 if( major != DB_VERSION_MAJOR ||
29253                         minor < DB_VERSION_MINOR )
29254                 {
29255                         printf("Berkeley DB version mismatch\n"
29256                                 "\theader: %s\n\tlibrary: %s\n",
29257                                 DB_VERSION_STRING, version);
29258                         return 1;
29259                 }
29260         }
29261 #endif
29262
29263 #if DB_VERSION_MAJOR > 2
29264         db_env_create( NULL, 0 );
29265 #elif DB_VERSION_MAJOR > 1
29266         db_appexit( NULL );
29267 #else
29268         (void) dbopen( NULL, 0, 0, 0, NULL);
29269 #endif
29270
29271   ;
29272   return 0;
29273 }
29274 _ACEOF
29275 rm -f conftest.$ac_objext conftest$ac_exeext
29276 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29277   (eval $ac_link) 2>conftest.er1
29278   ac_status=$?
29279   grep -v '^ *+' conftest.er1 >conftest.err
29280   rm -f conftest.er1
29281   cat conftest.err >&5
29282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29283   (exit $ac_status); } &&
29284          { ac_try='test -z "$ac_c_werror_flag"
29285                          || test ! -s conftest.err'
29286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29287   (eval $ac_try) 2>&5
29288   ac_status=$?
29289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29290   (exit $ac_status); }; } &&
29291          { ac_try='test -s conftest$ac_exeext'
29292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29293   (eval $ac_try) 2>&5
29294   ac_status=$?
29295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29296   (exit $ac_status); }; }; then
29297   ol_cv_db_db41=yes
29298 else
29299   echo "$as_me: failed program was:" >&5
29300 sed 's/^/| /' conftest.$ac_ext >&5
29301
29302 ol_cv_db_db41=no
29303 fi
29304 rm -f conftest.err conftest.$ac_objext \
29305       conftest$ac_exeext conftest.$ac_ext
29306
29307         LIBS="$ol_LIBS"
29308
29309 fi
29310 echo "$as_me:$LINENO: result: $ol_cv_db_db41" >&5
29311 echo "${ECHO_T}$ol_cv_db_db41" >&6
29312
29313         if test $ol_cv_db_db41 = yes ; then
29314                 ol_cv_lib_db=-ldb41
29315         fi
29316 fi
29317
29318 if test $ol_cv_lib_db = no ; then
29319         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-41)" >&5
29320 echo $ECHO_N "checking for Berkeley DB link (-ldb-41)... $ECHO_C" >&6
29321 if test "${ol_cv_db_db_41+set}" = set; then
29322   echo $ECHO_N "(cached) $ECHO_C" >&6
29323 else
29324
29325         ol_DB_LIB=-ldb-41
29326         ol_LIBS=$LIBS
29327         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29328
29329         cat >conftest.$ac_ext <<_ACEOF
29330 /* confdefs.h.  */
29331 _ACEOF
29332 cat confdefs.h >>conftest.$ac_ext
29333 cat >>conftest.$ac_ext <<_ACEOF
29334 /* end confdefs.h.  */
29335
29336 #ifdef HAVE_DB_185_H
29337 # include <db_185.h>
29338 #else
29339 # include <db.h>
29340 #endif
29341
29342 #ifndef DB_VERSION_MAJOR
29343 # define DB_VERSION_MAJOR 1
29344 #endif
29345
29346 #ifndef NULL
29347 #define NULL ((void*)0)
29348 #endif
29349
29350 int
29351 main ()
29352 {
29353
29354 #if DB_VERSION_MAJOR > 1
29355         {
29356                 char *version;
29357                 int major, minor, patch;
29358
29359                 version = db_version( &major, &minor, &patch );
29360
29361                 if( major != DB_VERSION_MAJOR ||
29362                         minor < DB_VERSION_MINOR )
29363                 {
29364                         printf("Berkeley DB version mismatch\n"
29365                                 "\theader: %s\n\tlibrary: %s\n",
29366                                 DB_VERSION_STRING, version);
29367                         return 1;
29368                 }
29369         }
29370 #endif
29371
29372 #if DB_VERSION_MAJOR > 2
29373         db_env_create( NULL, 0 );
29374 #elif DB_VERSION_MAJOR > 1
29375         db_appexit( NULL );
29376 #else
29377         (void) dbopen( NULL, 0, 0, 0, NULL);
29378 #endif
29379
29380   ;
29381   return 0;
29382 }
29383 _ACEOF
29384 rm -f conftest.$ac_objext conftest$ac_exeext
29385 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29386   (eval $ac_link) 2>conftest.er1
29387   ac_status=$?
29388   grep -v '^ *+' conftest.er1 >conftest.err
29389   rm -f conftest.er1
29390   cat conftest.err >&5
29391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29392   (exit $ac_status); } &&
29393          { ac_try='test -z "$ac_c_werror_flag"
29394                          || test ! -s conftest.err'
29395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29396   (eval $ac_try) 2>&5
29397   ac_status=$?
29398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29399   (exit $ac_status); }; } &&
29400          { ac_try='test -s conftest$ac_exeext'
29401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29402   (eval $ac_try) 2>&5
29403   ac_status=$?
29404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29405   (exit $ac_status); }; }; then
29406   ol_cv_db_db_41=yes
29407 else
29408   echo "$as_me: failed program was:" >&5
29409 sed 's/^/| /' conftest.$ac_ext >&5
29410
29411 ol_cv_db_db_41=no
29412 fi
29413 rm -f conftest.err conftest.$ac_objext \
29414       conftest$ac_exeext conftest.$ac_ext
29415
29416         LIBS="$ol_LIBS"
29417
29418 fi
29419 echo "$as_me:$LINENO: result: $ol_cv_db_db_41" >&5
29420 echo "${ECHO_T}$ol_cv_db_db_41" >&6
29421
29422         if test $ol_cv_db_db_41 = yes ; then
29423                 ol_cv_lib_db=-ldb-41
29424         fi
29425 fi
29426
29427 if test $ol_cv_lib_db = no ; then
29428         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.1)" >&5
29429 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.1)... $ECHO_C" >&6
29430 if test "${ol_cv_db_db_4_dot_1+set}" = set; then
29431   echo $ECHO_N "(cached) $ECHO_C" >&6
29432 else
29433
29434         ol_DB_LIB=-ldb-4.1
29435         ol_LIBS=$LIBS
29436         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29437
29438         cat >conftest.$ac_ext <<_ACEOF
29439 /* confdefs.h.  */
29440 _ACEOF
29441 cat confdefs.h >>conftest.$ac_ext
29442 cat >>conftest.$ac_ext <<_ACEOF
29443 /* end confdefs.h.  */
29444
29445 #ifdef HAVE_DB_185_H
29446 # include <db_185.h>
29447 #else
29448 # include <db.h>
29449 #endif
29450
29451 #ifndef DB_VERSION_MAJOR
29452 # define DB_VERSION_MAJOR 1
29453 #endif
29454
29455 #ifndef NULL
29456 #define NULL ((void*)0)
29457 #endif
29458
29459 int
29460 main ()
29461 {
29462
29463 #if DB_VERSION_MAJOR > 1
29464         {
29465                 char *version;
29466                 int major, minor, patch;
29467
29468                 version = db_version( &major, &minor, &patch );
29469
29470                 if( major != DB_VERSION_MAJOR ||
29471                         minor < DB_VERSION_MINOR )
29472                 {
29473                         printf("Berkeley DB version mismatch\n"
29474                                 "\theader: %s\n\tlibrary: %s\n",
29475                                 DB_VERSION_STRING, version);
29476                         return 1;
29477                 }
29478         }
29479 #endif
29480
29481 #if DB_VERSION_MAJOR > 2
29482         db_env_create( NULL, 0 );
29483 #elif DB_VERSION_MAJOR > 1
29484         db_appexit( NULL );
29485 #else
29486         (void) dbopen( NULL, 0, 0, 0, NULL);
29487 #endif
29488
29489   ;
29490   return 0;
29491 }
29492 _ACEOF
29493 rm -f conftest.$ac_objext conftest$ac_exeext
29494 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29495   (eval $ac_link) 2>conftest.er1
29496   ac_status=$?
29497   grep -v '^ *+' conftest.er1 >conftest.err
29498   rm -f conftest.er1
29499   cat conftest.err >&5
29500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29501   (exit $ac_status); } &&
29502          { ac_try='test -z "$ac_c_werror_flag"
29503                          || test ! -s conftest.err'
29504   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29505   (eval $ac_try) 2>&5
29506   ac_status=$?
29507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29508   (exit $ac_status); }; } &&
29509          { ac_try='test -s conftest$ac_exeext'
29510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29511   (eval $ac_try) 2>&5
29512   ac_status=$?
29513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29514   (exit $ac_status); }; }; then
29515   ol_cv_db_db_4_dot_1=yes
29516 else
29517   echo "$as_me: failed program was:" >&5
29518 sed 's/^/| /' conftest.$ac_ext >&5
29519
29520 ol_cv_db_db_4_dot_1=no
29521 fi
29522 rm -f conftest.err conftest.$ac_objext \
29523       conftest$ac_exeext conftest.$ac_ext
29524
29525         LIBS="$ol_LIBS"
29526
29527 fi
29528 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_1" >&5
29529 echo "${ECHO_T}$ol_cv_db_db_4_dot_1" >&6
29530
29531         if test $ol_cv_db_db_4_dot_1 = yes ; then
29532                 ol_cv_lib_db=-ldb-4.1
29533         fi
29534 fi
29535
29536 if test $ol_cv_lib_db = no ; then
29537         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-1)" >&5
29538 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-1)... $ECHO_C" >&6
29539 if test "${ol_cv_db_db_4_1+set}" = set; then
29540   echo $ECHO_N "(cached) $ECHO_C" >&6
29541 else
29542
29543         ol_DB_LIB=-ldb-4-1
29544         ol_LIBS=$LIBS
29545         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29546
29547         cat >conftest.$ac_ext <<_ACEOF
29548 /* confdefs.h.  */
29549 _ACEOF
29550 cat confdefs.h >>conftest.$ac_ext
29551 cat >>conftest.$ac_ext <<_ACEOF
29552 /* end confdefs.h.  */
29553
29554 #ifdef HAVE_DB_185_H
29555 # include <db_185.h>
29556 #else
29557 # include <db.h>
29558 #endif
29559
29560 #ifndef DB_VERSION_MAJOR
29561 # define DB_VERSION_MAJOR 1
29562 #endif
29563
29564 #ifndef NULL
29565 #define NULL ((void*)0)
29566 #endif
29567
29568 int
29569 main ()
29570 {
29571
29572 #if DB_VERSION_MAJOR > 1
29573         {
29574                 char *version;
29575                 int major, minor, patch;
29576
29577                 version = db_version( &major, &minor, &patch );
29578
29579                 if( major != DB_VERSION_MAJOR ||
29580                         minor < DB_VERSION_MINOR )
29581                 {
29582                         printf("Berkeley DB version mismatch\n"
29583                                 "\theader: %s\n\tlibrary: %s\n",
29584                                 DB_VERSION_STRING, version);
29585                         return 1;
29586                 }
29587         }
29588 #endif
29589
29590 #if DB_VERSION_MAJOR > 2
29591         db_env_create( NULL, 0 );
29592 #elif DB_VERSION_MAJOR > 1
29593         db_appexit( NULL );
29594 #else
29595         (void) dbopen( NULL, 0, 0, 0, NULL);
29596 #endif
29597
29598   ;
29599   return 0;
29600 }
29601 _ACEOF
29602 rm -f conftest.$ac_objext conftest$ac_exeext
29603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29604   (eval $ac_link) 2>conftest.er1
29605   ac_status=$?
29606   grep -v '^ *+' conftest.er1 >conftest.err
29607   rm -f conftest.er1
29608   cat conftest.err >&5
29609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29610   (exit $ac_status); } &&
29611          { ac_try='test -z "$ac_c_werror_flag"
29612                          || test ! -s conftest.err'
29613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29614   (eval $ac_try) 2>&5
29615   ac_status=$?
29616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29617   (exit $ac_status); }; } &&
29618          { ac_try='test -s conftest$ac_exeext'
29619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29620   (eval $ac_try) 2>&5
29621   ac_status=$?
29622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29623   (exit $ac_status); }; }; then
29624   ol_cv_db_db_4_1=yes
29625 else
29626   echo "$as_me: failed program was:" >&5
29627 sed 's/^/| /' conftest.$ac_ext >&5
29628
29629 ol_cv_db_db_4_1=no
29630 fi
29631 rm -f conftest.err conftest.$ac_objext \
29632       conftest$ac_exeext conftest.$ac_ext
29633
29634         LIBS="$ol_LIBS"
29635
29636 fi
29637 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_1" >&5
29638 echo "${ECHO_T}$ol_cv_db_db_4_1" >&6
29639
29640         if test $ol_cv_db_db_4_1 = yes ; then
29641                 ol_cv_lib_db=-ldb-4-1
29642         fi
29643 fi
29644
29645 if test $ol_cv_lib_db = no ; then
29646         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb3)" >&5
29647 echo $ECHO_N "checking for Berkeley DB link (-ldb3)... $ECHO_C" >&6
29648 if test "${ol_cv_db_db3+set}" = set; then
29649   echo $ECHO_N "(cached) $ECHO_C" >&6
29650 else
29651
29652         ol_DB_LIB=-ldb3
29653         ol_LIBS=$LIBS
29654         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29655
29656         cat >conftest.$ac_ext <<_ACEOF
29657 /* confdefs.h.  */
29658 _ACEOF
29659 cat confdefs.h >>conftest.$ac_ext
29660 cat >>conftest.$ac_ext <<_ACEOF
29661 /* end confdefs.h.  */
29662
29663 #ifdef HAVE_DB_185_H
29664 # include <db_185.h>
29665 #else
29666 # include <db.h>
29667 #endif
29668
29669 #ifndef DB_VERSION_MAJOR
29670 # define DB_VERSION_MAJOR 1
29671 #endif
29672
29673 #ifndef NULL
29674 #define NULL ((void*)0)
29675 #endif
29676
29677 int
29678 main ()
29679 {
29680
29681 #if DB_VERSION_MAJOR > 1
29682         {
29683                 char *version;
29684                 int major, minor, patch;
29685
29686                 version = db_version( &major, &minor, &patch );
29687
29688                 if( major != DB_VERSION_MAJOR ||
29689                         minor < DB_VERSION_MINOR )
29690                 {
29691                         printf("Berkeley DB version mismatch\n"
29692                                 "\theader: %s\n\tlibrary: %s\n",
29693                                 DB_VERSION_STRING, version);
29694                         return 1;
29695                 }
29696         }
29697 #endif
29698
29699 #if DB_VERSION_MAJOR > 2
29700         db_env_create( NULL, 0 );
29701 #elif DB_VERSION_MAJOR > 1
29702         db_appexit( NULL );
29703 #else
29704         (void) dbopen( NULL, 0, 0, 0, NULL);
29705 #endif
29706
29707   ;
29708   return 0;
29709 }
29710 _ACEOF
29711 rm -f conftest.$ac_objext conftest$ac_exeext
29712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29713   (eval $ac_link) 2>conftest.er1
29714   ac_status=$?
29715   grep -v '^ *+' conftest.er1 >conftest.err
29716   rm -f conftest.er1
29717   cat conftest.err >&5
29718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29719   (exit $ac_status); } &&
29720          { ac_try='test -z "$ac_c_werror_flag"
29721                          || test ! -s conftest.err'
29722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29723   (eval $ac_try) 2>&5
29724   ac_status=$?
29725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29726   (exit $ac_status); }; } &&
29727          { ac_try='test -s conftest$ac_exeext'
29728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29729   (eval $ac_try) 2>&5
29730   ac_status=$?
29731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29732   (exit $ac_status); }; }; then
29733   ol_cv_db_db3=yes
29734 else
29735   echo "$as_me: failed program was:" >&5
29736 sed 's/^/| /' conftest.$ac_ext >&5
29737
29738 ol_cv_db_db3=no
29739 fi
29740 rm -f conftest.err conftest.$ac_objext \
29741       conftest$ac_exeext conftest.$ac_ext
29742
29743         LIBS="$ol_LIBS"
29744
29745 fi
29746 echo "$as_me:$LINENO: result: $ol_cv_db_db3" >&5
29747 echo "${ECHO_T}$ol_cv_db_db3" >&6
29748
29749         if test $ol_cv_db_db3 = yes ; then
29750                 ol_cv_lib_db=-ldb3
29751         fi
29752 fi
29753
29754 if test $ol_cv_lib_db = no ; then
29755         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-3)" >&5
29756 echo $ECHO_N "checking for Berkeley DB link (-ldb-3)... $ECHO_C" >&6
29757 if test "${ol_cv_db_db_3+set}" = set; then
29758   echo $ECHO_N "(cached) $ECHO_C" >&6
29759 else
29760
29761         ol_DB_LIB=-ldb-3
29762         ol_LIBS=$LIBS
29763         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29764
29765         cat >conftest.$ac_ext <<_ACEOF
29766 /* confdefs.h.  */
29767 _ACEOF
29768 cat confdefs.h >>conftest.$ac_ext
29769 cat >>conftest.$ac_ext <<_ACEOF
29770 /* end confdefs.h.  */
29771
29772 #ifdef HAVE_DB_185_H
29773 # include <db_185.h>
29774 #else
29775 # include <db.h>
29776 #endif
29777
29778 #ifndef DB_VERSION_MAJOR
29779 # define DB_VERSION_MAJOR 1
29780 #endif
29781
29782 #ifndef NULL
29783 #define NULL ((void*)0)
29784 #endif
29785
29786 int
29787 main ()
29788 {
29789
29790 #if DB_VERSION_MAJOR > 1
29791         {
29792                 char *version;
29793                 int major, minor, patch;
29794
29795                 version = db_version( &major, &minor, &patch );
29796
29797                 if( major != DB_VERSION_MAJOR ||
29798                         minor < DB_VERSION_MINOR )
29799                 {
29800                         printf("Berkeley DB version mismatch\n"
29801                                 "\theader: %s\n\tlibrary: %s\n",
29802                                 DB_VERSION_STRING, version);
29803                         return 1;
29804                 }
29805         }
29806 #endif
29807
29808 #if DB_VERSION_MAJOR > 2
29809         db_env_create( NULL, 0 );
29810 #elif DB_VERSION_MAJOR > 1
29811         db_appexit( NULL );
29812 #else
29813         (void) dbopen( NULL, 0, 0, 0, NULL);
29814 #endif
29815
29816   ;
29817   return 0;
29818 }
29819 _ACEOF
29820 rm -f conftest.$ac_objext conftest$ac_exeext
29821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29822   (eval $ac_link) 2>conftest.er1
29823   ac_status=$?
29824   grep -v '^ *+' conftest.er1 >conftest.err
29825   rm -f conftest.er1
29826   cat conftest.err >&5
29827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29828   (exit $ac_status); } &&
29829          { ac_try='test -z "$ac_c_werror_flag"
29830                          || test ! -s conftest.err'
29831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29832   (eval $ac_try) 2>&5
29833   ac_status=$?
29834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29835   (exit $ac_status); }; } &&
29836          { ac_try='test -s conftest$ac_exeext'
29837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29838   (eval $ac_try) 2>&5
29839   ac_status=$?
29840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29841   (exit $ac_status); }; }; then
29842   ol_cv_db_db_3=yes
29843 else
29844   echo "$as_me: failed program was:" >&5
29845 sed 's/^/| /' conftest.$ac_ext >&5
29846
29847 ol_cv_db_db_3=no
29848 fi
29849 rm -f conftest.err conftest.$ac_objext \
29850       conftest$ac_exeext conftest.$ac_ext
29851
29852         LIBS="$ol_LIBS"
29853
29854 fi
29855 echo "$as_me:$LINENO: result: $ol_cv_db_db_3" >&5
29856 echo "${ECHO_T}$ol_cv_db_db_3" >&6
29857
29858         if test $ol_cv_db_db_3 = yes ; then
29859                 ol_cv_lib_db=-ldb-3
29860         fi
29861 fi
29862
29863 if test $ol_cv_lib_db = no ; then
29864         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb2)" >&5
29865 echo $ECHO_N "checking for Berkeley DB link (-ldb2)... $ECHO_C" >&6
29866 if test "${ol_cv_db_db2+set}" = set; then
29867   echo $ECHO_N "(cached) $ECHO_C" >&6
29868 else
29869
29870         ol_DB_LIB=-ldb2
29871         ol_LIBS=$LIBS
29872         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29873
29874         cat >conftest.$ac_ext <<_ACEOF
29875 /* confdefs.h.  */
29876 _ACEOF
29877 cat confdefs.h >>conftest.$ac_ext
29878 cat >>conftest.$ac_ext <<_ACEOF
29879 /* end confdefs.h.  */
29880
29881 #ifdef HAVE_DB_185_H
29882 # include <db_185.h>
29883 #else
29884 # include <db.h>
29885 #endif
29886
29887 #ifndef DB_VERSION_MAJOR
29888 # define DB_VERSION_MAJOR 1
29889 #endif
29890
29891 #ifndef NULL
29892 #define NULL ((void*)0)
29893 #endif
29894
29895 int
29896 main ()
29897 {
29898
29899 #if DB_VERSION_MAJOR > 1
29900         {
29901                 char *version;
29902                 int major, minor, patch;
29903
29904                 version = db_version( &major, &minor, &patch );
29905
29906                 if( major != DB_VERSION_MAJOR ||
29907                         minor < DB_VERSION_MINOR )
29908                 {
29909                         printf("Berkeley DB version mismatch\n"
29910                                 "\theader: %s\n\tlibrary: %s\n",
29911                                 DB_VERSION_STRING, version);
29912                         return 1;
29913                 }
29914         }
29915 #endif
29916
29917 #if DB_VERSION_MAJOR > 2
29918         db_env_create( NULL, 0 );
29919 #elif DB_VERSION_MAJOR > 1
29920         db_appexit( NULL );
29921 #else
29922         (void) dbopen( NULL, 0, 0, 0, NULL);
29923 #endif
29924
29925   ;
29926   return 0;
29927 }
29928 _ACEOF
29929 rm -f conftest.$ac_objext conftest$ac_exeext
29930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29931   (eval $ac_link) 2>conftest.er1
29932   ac_status=$?
29933   grep -v '^ *+' conftest.er1 >conftest.err
29934   rm -f conftest.er1
29935   cat conftest.err >&5
29936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29937   (exit $ac_status); } &&
29938          { ac_try='test -z "$ac_c_werror_flag"
29939                          || test ! -s conftest.err'
29940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29941   (eval $ac_try) 2>&5
29942   ac_status=$?
29943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29944   (exit $ac_status); }; } &&
29945          { ac_try='test -s conftest$ac_exeext'
29946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29947   (eval $ac_try) 2>&5
29948   ac_status=$?
29949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29950   (exit $ac_status); }; }; then
29951   ol_cv_db_db2=yes
29952 else
29953   echo "$as_me: failed program was:" >&5
29954 sed 's/^/| /' conftest.$ac_ext >&5
29955
29956 ol_cv_db_db2=no
29957 fi
29958 rm -f conftest.err conftest.$ac_objext \
29959       conftest$ac_exeext conftest.$ac_ext
29960
29961         LIBS="$ol_LIBS"
29962
29963 fi
29964 echo "$as_me:$LINENO: result: $ol_cv_db_db2" >&5
29965 echo "${ECHO_T}$ol_cv_db_db2" >&6
29966
29967         if test $ol_cv_db_db2 = yes ; then
29968                 ol_cv_lib_db=-ldb2
29969         fi
29970 fi
29971
29972 if test $ol_cv_lib_db = no ; then
29973         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-2)" >&5
29974 echo $ECHO_N "checking for Berkeley DB link (-ldb-2)... $ECHO_C" >&6
29975 if test "${ol_cv_db_db_2+set}" = set; then
29976   echo $ECHO_N "(cached) $ECHO_C" >&6
29977 else
29978
29979         ol_DB_LIB=-ldb-2
29980         ol_LIBS=$LIBS
29981         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29982
29983         cat >conftest.$ac_ext <<_ACEOF
29984 /* confdefs.h.  */
29985 _ACEOF
29986 cat confdefs.h >>conftest.$ac_ext
29987 cat >>conftest.$ac_ext <<_ACEOF
29988 /* end confdefs.h.  */
29989
29990 #ifdef HAVE_DB_185_H
29991 # include <db_185.h>
29992 #else
29993 # include <db.h>
29994 #endif
29995
29996 #ifndef DB_VERSION_MAJOR
29997 # define DB_VERSION_MAJOR 1
29998 #endif
29999
30000 #ifndef NULL
30001 #define NULL ((void*)0)
30002 #endif
30003
30004 int
30005 main ()
30006 {
30007
30008 #if DB_VERSION_MAJOR > 1
30009         {
30010                 char *version;
30011                 int major, minor, patch;
30012
30013                 version = db_version( &major, &minor, &patch );
30014
30015                 if( major != DB_VERSION_MAJOR ||
30016                         minor < DB_VERSION_MINOR )
30017                 {
30018                         printf("Berkeley DB version mismatch\n"
30019                                 "\theader: %s\n\tlibrary: %s\n",
30020                                 DB_VERSION_STRING, version);
30021                         return 1;
30022                 }
30023         }
30024 #endif
30025
30026 #if DB_VERSION_MAJOR > 2
30027         db_env_create( NULL, 0 );
30028 #elif DB_VERSION_MAJOR > 1
30029         db_appexit( NULL );
30030 #else
30031         (void) dbopen( NULL, 0, 0, 0, NULL);
30032 #endif
30033
30034   ;
30035   return 0;
30036 }
30037 _ACEOF
30038 rm -f conftest.$ac_objext conftest$ac_exeext
30039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30040   (eval $ac_link) 2>conftest.er1
30041   ac_status=$?
30042   grep -v '^ *+' conftest.er1 >conftest.err
30043   rm -f conftest.er1
30044   cat conftest.err >&5
30045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30046   (exit $ac_status); } &&
30047          { ac_try='test -z "$ac_c_werror_flag"
30048                          || test ! -s conftest.err'
30049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30050   (eval $ac_try) 2>&5
30051   ac_status=$?
30052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30053   (exit $ac_status); }; } &&
30054          { ac_try='test -s conftest$ac_exeext'
30055   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30056   (eval $ac_try) 2>&5
30057   ac_status=$?
30058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30059   (exit $ac_status); }; }; then
30060   ol_cv_db_db_2=yes
30061 else
30062   echo "$as_me: failed program was:" >&5
30063 sed 's/^/| /' conftest.$ac_ext >&5
30064
30065 ol_cv_db_db_2=no
30066 fi
30067 rm -f conftest.err conftest.$ac_objext \
30068       conftest$ac_exeext conftest.$ac_ext
30069
30070         LIBS="$ol_LIBS"
30071
30072 fi
30073 echo "$as_me:$LINENO: result: $ol_cv_db_db_2" >&5
30074 echo "${ECHO_T}$ol_cv_db_db_2" >&6
30075
30076         if test $ol_cv_db_db_2 = yes ; then
30077                 ol_cv_lib_db=-ldb-2
30078         fi
30079 fi
30080
30081 if test $ol_cv_lib_db = no ; then
30082         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb1)" >&5
30083 echo $ECHO_N "checking for Berkeley DB link (-ldb1)... $ECHO_C" >&6
30084 if test "${ol_cv_db_db1+set}" = set; then
30085   echo $ECHO_N "(cached) $ECHO_C" >&6
30086 else
30087
30088         ol_DB_LIB=-ldb1
30089         ol_LIBS=$LIBS
30090         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30091
30092         cat >conftest.$ac_ext <<_ACEOF
30093 /* confdefs.h.  */
30094 _ACEOF
30095 cat confdefs.h >>conftest.$ac_ext
30096 cat >>conftest.$ac_ext <<_ACEOF
30097 /* end confdefs.h.  */
30098
30099 #ifdef HAVE_DB_185_H
30100 # include <db_185.h>
30101 #else
30102 # include <db.h>
30103 #endif
30104
30105 #ifndef DB_VERSION_MAJOR
30106 # define DB_VERSION_MAJOR 1
30107 #endif
30108
30109 #ifndef NULL
30110 #define NULL ((void*)0)
30111 #endif
30112
30113 int
30114 main ()
30115 {
30116
30117 #if DB_VERSION_MAJOR > 1
30118         {
30119                 char *version;
30120                 int major, minor, patch;
30121
30122                 version = db_version( &major, &minor, &patch );
30123
30124                 if( major != DB_VERSION_MAJOR ||
30125                         minor < DB_VERSION_MINOR )
30126                 {
30127                         printf("Berkeley DB version mismatch\n"
30128                                 "\theader: %s\n\tlibrary: %s\n",
30129                                 DB_VERSION_STRING, version);
30130                         return 1;
30131                 }
30132         }
30133 #endif
30134
30135 #if DB_VERSION_MAJOR > 2
30136         db_env_create( NULL, 0 );
30137 #elif DB_VERSION_MAJOR > 1
30138         db_appexit( NULL );
30139 #else
30140         (void) dbopen( NULL, 0, 0, 0, NULL);
30141 #endif
30142
30143   ;
30144   return 0;
30145 }
30146 _ACEOF
30147 rm -f conftest.$ac_objext conftest$ac_exeext
30148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30149   (eval $ac_link) 2>conftest.er1
30150   ac_status=$?
30151   grep -v '^ *+' conftest.er1 >conftest.err
30152   rm -f conftest.er1
30153   cat conftest.err >&5
30154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30155   (exit $ac_status); } &&
30156          { ac_try='test -z "$ac_c_werror_flag"
30157                          || test ! -s conftest.err'
30158   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30159   (eval $ac_try) 2>&5
30160   ac_status=$?
30161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30162   (exit $ac_status); }; } &&
30163          { ac_try='test -s conftest$ac_exeext'
30164   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30165   (eval $ac_try) 2>&5
30166   ac_status=$?
30167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30168   (exit $ac_status); }; }; then
30169   ol_cv_db_db1=yes
30170 else
30171   echo "$as_me: failed program was:" >&5
30172 sed 's/^/| /' conftest.$ac_ext >&5
30173
30174 ol_cv_db_db1=no
30175 fi
30176 rm -f conftest.err conftest.$ac_objext \
30177       conftest$ac_exeext conftest.$ac_ext
30178
30179         LIBS="$ol_LIBS"
30180
30181 fi
30182 echo "$as_me:$LINENO: result: $ol_cv_db_db1" >&5
30183 echo "${ECHO_T}$ol_cv_db_db1" >&6
30184
30185         if test $ol_cv_db_db1 = yes ; then
30186                 ol_cv_lib_db=-ldb1
30187         fi
30188 fi
30189
30190 if test $ol_cv_lib_db = no ; then
30191         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-1)" >&5
30192 echo $ECHO_N "checking for Berkeley DB link (-ldb-1)... $ECHO_C" >&6
30193 if test "${ol_cv_db_db_1+set}" = set; then
30194   echo $ECHO_N "(cached) $ECHO_C" >&6
30195 else
30196
30197         ol_DB_LIB=-ldb-1
30198         ol_LIBS=$LIBS
30199         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30200
30201         cat >conftest.$ac_ext <<_ACEOF
30202 /* confdefs.h.  */
30203 _ACEOF
30204 cat confdefs.h >>conftest.$ac_ext
30205 cat >>conftest.$ac_ext <<_ACEOF
30206 /* end confdefs.h.  */
30207
30208 #ifdef HAVE_DB_185_H
30209 # include <db_185.h>
30210 #else
30211 # include <db.h>
30212 #endif
30213
30214 #ifndef DB_VERSION_MAJOR
30215 # define DB_VERSION_MAJOR 1
30216 #endif
30217
30218 #ifndef NULL
30219 #define NULL ((void*)0)
30220 #endif
30221
30222 int
30223 main ()
30224 {
30225
30226 #if DB_VERSION_MAJOR > 1
30227         {
30228                 char *version;
30229                 int major, minor, patch;
30230
30231                 version = db_version( &major, &minor, &patch );
30232
30233                 if( major != DB_VERSION_MAJOR ||
30234                         minor < DB_VERSION_MINOR )
30235                 {
30236                         printf("Berkeley DB version mismatch\n"
30237                                 "\theader: %s\n\tlibrary: %s\n",
30238                                 DB_VERSION_STRING, version);
30239                         return 1;
30240                 }
30241         }
30242 #endif
30243
30244 #if DB_VERSION_MAJOR > 2
30245         db_env_create( NULL, 0 );
30246 #elif DB_VERSION_MAJOR > 1
30247         db_appexit( NULL );
30248 #else
30249         (void) dbopen( NULL, 0, 0, 0, NULL);
30250 #endif
30251
30252   ;
30253   return 0;
30254 }
30255 _ACEOF
30256 rm -f conftest.$ac_objext conftest$ac_exeext
30257 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30258   (eval $ac_link) 2>conftest.er1
30259   ac_status=$?
30260   grep -v '^ *+' conftest.er1 >conftest.err
30261   rm -f conftest.er1
30262   cat conftest.err >&5
30263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30264   (exit $ac_status); } &&
30265          { ac_try='test -z "$ac_c_werror_flag"
30266                          || test ! -s conftest.err'
30267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30268   (eval $ac_try) 2>&5
30269   ac_status=$?
30270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30271   (exit $ac_status); }; } &&
30272          { ac_try='test -s conftest$ac_exeext'
30273   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30274   (eval $ac_try) 2>&5
30275   ac_status=$?
30276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30277   (exit $ac_status); }; }; then
30278   ol_cv_db_db_1=yes
30279 else
30280   echo "$as_me: failed program was:" >&5
30281 sed 's/^/| /' conftest.$ac_ext >&5
30282
30283 ol_cv_db_db_1=no
30284 fi
30285 rm -f conftest.err conftest.$ac_objext \
30286       conftest$ac_exeext conftest.$ac_ext
30287
30288         LIBS="$ol_LIBS"
30289
30290 fi
30291 echo "$as_me:$LINENO: result: $ol_cv_db_db_1" >&5
30292 echo "${ECHO_T}$ol_cv_db_db_1" >&6
30293
30294         if test $ol_cv_db_db_1 = yes ; then
30295                 ol_cv_lib_db=-ldb-1
30296         fi
30297 fi
30298
30299
30300                 if test "$ol_cv_lib_db" != no ; then
30301                         ol_cv_berkeley_db=yes
30302                 fi
30303         fi
30304 fi
30305
30306         else
30307                 ol_cv_berkeley_db=no
30308
30309 for ac_header in db.h
30310 do
30311 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30312 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30313   echo "$as_me:$LINENO: checking for $ac_header" >&5
30314 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30315 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30316   echo $ECHO_N "(cached) $ECHO_C" >&6
30317 fi
30318 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30319 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30320 else
30321   # Is the header compilable?
30322 echo "$as_me:$LINENO: checking $ac_header usability" >&5
30323 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30324 cat >conftest.$ac_ext <<_ACEOF
30325 /* confdefs.h.  */
30326 _ACEOF
30327 cat confdefs.h >>conftest.$ac_ext
30328 cat >>conftest.$ac_ext <<_ACEOF
30329 /* end confdefs.h.  */
30330 $ac_includes_default
30331 #include <$ac_header>
30332 _ACEOF
30333 rm -f conftest.$ac_objext
30334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30335   (eval $ac_compile) 2>conftest.er1
30336   ac_status=$?
30337   grep -v '^ *+' conftest.er1 >conftest.err
30338   rm -f conftest.er1
30339   cat conftest.err >&5
30340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30341   (exit $ac_status); } &&
30342          { ac_try='test -z "$ac_c_werror_flag"
30343                          || test ! -s conftest.err'
30344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30345   (eval $ac_try) 2>&5
30346   ac_status=$?
30347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30348   (exit $ac_status); }; } &&
30349          { ac_try='test -s conftest.$ac_objext'
30350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30351   (eval $ac_try) 2>&5
30352   ac_status=$?
30353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30354   (exit $ac_status); }; }; then
30355   ac_header_compiler=yes
30356 else
30357   echo "$as_me: failed program was:" >&5
30358 sed 's/^/| /' conftest.$ac_ext >&5
30359
30360 ac_header_compiler=no
30361 fi
30362 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30363 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30364 echo "${ECHO_T}$ac_header_compiler" >&6
30365
30366 # Is the header present?
30367 echo "$as_me:$LINENO: checking $ac_header presence" >&5
30368 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30369 cat >conftest.$ac_ext <<_ACEOF
30370 /* confdefs.h.  */
30371 _ACEOF
30372 cat confdefs.h >>conftest.$ac_ext
30373 cat >>conftest.$ac_ext <<_ACEOF
30374 /* end confdefs.h.  */
30375 #include <$ac_header>
30376 _ACEOF
30377 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30378   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30379   ac_status=$?
30380   grep -v '^ *+' conftest.er1 >conftest.err
30381   rm -f conftest.er1
30382   cat conftest.err >&5
30383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30384   (exit $ac_status); } >/dev/null; then
30385   if test -s conftest.err; then
30386     ac_cpp_err=$ac_c_preproc_warn_flag
30387     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30388   else
30389     ac_cpp_err=
30390   fi
30391 else
30392   ac_cpp_err=yes
30393 fi
30394 if test -z "$ac_cpp_err"; then
30395   ac_header_preproc=yes
30396 else
30397   echo "$as_me: failed program was:" >&5
30398 sed 's/^/| /' conftest.$ac_ext >&5
30399
30400   ac_header_preproc=no
30401 fi
30402 rm -f conftest.err conftest.$ac_ext
30403 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30404 echo "${ECHO_T}$ac_header_preproc" >&6
30405
30406 # So?  What about this header?
30407 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30408   yes:no: )
30409     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30410 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30411     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30412 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30413     ac_header_preproc=yes
30414     ;;
30415   no:yes:* )
30416     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30417 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30418     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30419 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30420     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30421 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30422     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30423 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30424     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30425 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30426     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30427 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30428     (
30429       cat <<\_ASBOX
30430 ## ------------------------------------------ ##
30431 ## Report this to the AC_PACKAGE_NAME lists.  ##
30432 ## ------------------------------------------ ##
30433 _ASBOX
30434     ) |
30435       sed "s/^/$as_me: WARNING:     /" >&2
30436     ;;
30437 esac
30438 echo "$as_me:$LINENO: checking for $ac_header" >&5
30439 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30440 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30441   echo $ECHO_N "(cached) $ECHO_C" >&6
30442 else
30443   eval "$as_ac_Header=\$ac_header_preproc"
30444 fi
30445 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30446 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30447
30448 fi
30449 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30450   cat >>confdefs.h <<_ACEOF
30451 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30452 _ACEOF
30453
30454 fi
30455
30456 done
30457
30458 if test $ac_cv_header_db_h = yes; then
30459         ol_cv_lib_db=no
30460 if test $ol_cv_lib_db = no ; then
30461         echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
30462 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6
30463 if test "${ol_cv_db_none+set}" = set; then
30464   echo $ECHO_N "(cached) $ECHO_C" >&6
30465 else
30466
30467         ol_DB_LIB=
30468         ol_LIBS=$LIBS
30469         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30470
30471         cat >conftest.$ac_ext <<_ACEOF
30472 /* confdefs.h.  */
30473 _ACEOF
30474 cat confdefs.h >>conftest.$ac_ext
30475 cat >>conftest.$ac_ext <<_ACEOF
30476 /* end confdefs.h.  */
30477
30478 #ifdef HAVE_DB_185_H
30479 # include <db_185.h>
30480 #else
30481 # include <db.h>
30482 #endif
30483
30484 #ifndef DB_VERSION_MAJOR
30485 # define DB_VERSION_MAJOR 1
30486 #endif
30487
30488 #ifndef NULL
30489 #define NULL ((void*)0)
30490 #endif
30491
30492 int
30493 main ()
30494 {
30495
30496 #if DB_VERSION_MAJOR > 1
30497         {
30498                 char *version;
30499                 int major, minor, patch;
30500
30501                 version = db_version( &major, &minor, &patch );
30502
30503                 if( major != DB_VERSION_MAJOR ||
30504                         minor < DB_VERSION_MINOR )
30505                 {
30506                         printf("Berkeley DB version mismatch\n"
30507                                 "\theader: %s\n\tlibrary: %s\n",
30508                                 DB_VERSION_STRING, version);
30509                         return 1;
30510                 }
30511         }
30512 #endif
30513
30514 #if DB_VERSION_MAJOR > 2
30515         db_env_create( NULL, 0 );
30516 #elif DB_VERSION_MAJOR > 1
30517         db_appexit( NULL );
30518 #else
30519         (void) dbopen( NULL, 0, 0, 0, NULL);
30520 #endif
30521
30522   ;
30523   return 0;
30524 }
30525 _ACEOF
30526 rm -f conftest.$ac_objext conftest$ac_exeext
30527 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30528   (eval $ac_link) 2>conftest.er1
30529   ac_status=$?
30530   grep -v '^ *+' conftest.er1 >conftest.err
30531   rm -f conftest.er1
30532   cat conftest.err >&5
30533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30534   (exit $ac_status); } &&
30535          { ac_try='test -z "$ac_c_werror_flag"
30536                          || test ! -s conftest.err'
30537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30538   (eval $ac_try) 2>&5
30539   ac_status=$?
30540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30541   (exit $ac_status); }; } &&
30542          { ac_try='test -s conftest$ac_exeext'
30543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30544   (eval $ac_try) 2>&5
30545   ac_status=$?
30546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30547   (exit $ac_status); }; }; then
30548   ol_cv_db_none=yes
30549 else
30550   echo "$as_me: failed program was:" >&5
30551 sed 's/^/| /' conftest.$ac_ext >&5
30552
30553 ol_cv_db_none=no
30554 fi
30555 rm -f conftest.err conftest.$ac_objext \
30556       conftest$ac_exeext conftest.$ac_ext
30557
30558         LIBS="$ol_LIBS"
30559
30560 fi
30561 echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
30562 echo "${ECHO_T}$ol_cv_db_none" >&6
30563
30564         if test $ol_cv_db_none = yes ; then
30565                 ol_cv_lib_db=yes
30566         fi
30567 fi
30568
30569 if test $ol_cv_lib_db = no ; then
30570         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb43)" >&5
30571 echo $ECHO_N "checking for Berkeley DB link (-ldb43)... $ECHO_C" >&6
30572 if test "${ol_cv_db_db43+set}" = set; then
30573   echo $ECHO_N "(cached) $ECHO_C" >&6
30574 else
30575
30576         ol_DB_LIB=-ldb43
30577         ol_LIBS=$LIBS
30578         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30579
30580         cat >conftest.$ac_ext <<_ACEOF
30581 /* confdefs.h.  */
30582 _ACEOF
30583 cat confdefs.h >>conftest.$ac_ext
30584 cat >>conftest.$ac_ext <<_ACEOF
30585 /* end confdefs.h.  */
30586
30587 #ifdef HAVE_DB_185_H
30588 # include <db_185.h>
30589 #else
30590 # include <db.h>
30591 #endif
30592
30593 #ifndef DB_VERSION_MAJOR
30594 # define DB_VERSION_MAJOR 1
30595 #endif
30596
30597 #ifndef NULL
30598 #define NULL ((void*)0)
30599 #endif
30600
30601 int
30602 main ()
30603 {
30604
30605 #if DB_VERSION_MAJOR > 1
30606         {
30607                 char *version;
30608                 int major, minor, patch;
30609
30610                 version = db_version( &major, &minor, &patch );
30611
30612                 if( major != DB_VERSION_MAJOR ||
30613                         minor < DB_VERSION_MINOR )
30614                 {
30615                         printf("Berkeley DB version mismatch\n"
30616                                 "\theader: %s\n\tlibrary: %s\n",
30617                                 DB_VERSION_STRING, version);
30618                         return 1;
30619                 }
30620         }
30621 #endif
30622
30623 #if DB_VERSION_MAJOR > 2
30624         db_env_create( NULL, 0 );
30625 #elif DB_VERSION_MAJOR > 1
30626         db_appexit( NULL );
30627 #else
30628         (void) dbopen( NULL, 0, 0, 0, NULL);
30629 #endif
30630
30631   ;
30632   return 0;
30633 }
30634 _ACEOF
30635 rm -f conftest.$ac_objext conftest$ac_exeext
30636 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30637   (eval $ac_link) 2>conftest.er1
30638   ac_status=$?
30639   grep -v '^ *+' conftest.er1 >conftest.err
30640   rm -f conftest.er1
30641   cat conftest.err >&5
30642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30643   (exit $ac_status); } &&
30644          { ac_try='test -z "$ac_c_werror_flag"
30645                          || test ! -s conftest.err'
30646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30647   (eval $ac_try) 2>&5
30648   ac_status=$?
30649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30650   (exit $ac_status); }; } &&
30651          { ac_try='test -s conftest$ac_exeext'
30652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30653   (eval $ac_try) 2>&5
30654   ac_status=$?
30655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30656   (exit $ac_status); }; }; then
30657   ol_cv_db_db43=yes
30658 else
30659   echo "$as_me: failed program was:" >&5
30660 sed 's/^/| /' conftest.$ac_ext >&5
30661
30662 ol_cv_db_db43=no
30663 fi
30664 rm -f conftest.err conftest.$ac_objext \
30665       conftest$ac_exeext conftest.$ac_ext
30666
30667         LIBS="$ol_LIBS"
30668
30669 fi
30670 echo "$as_me:$LINENO: result: $ol_cv_db_db43" >&5
30671 echo "${ECHO_T}$ol_cv_db_db43" >&6
30672
30673         if test $ol_cv_db_db43 = yes ; then
30674                 ol_cv_lib_db=-ldb43
30675         fi
30676 fi
30677
30678 if test $ol_cv_lib_db = no ; then
30679         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-43)" >&5
30680 echo $ECHO_N "checking for Berkeley DB link (-ldb-43)... $ECHO_C" >&6
30681 if test "${ol_cv_db_db_43+set}" = set; then
30682   echo $ECHO_N "(cached) $ECHO_C" >&6
30683 else
30684
30685         ol_DB_LIB=-ldb-43
30686         ol_LIBS=$LIBS
30687         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30688
30689         cat >conftest.$ac_ext <<_ACEOF
30690 /* confdefs.h.  */
30691 _ACEOF
30692 cat confdefs.h >>conftest.$ac_ext
30693 cat >>conftest.$ac_ext <<_ACEOF
30694 /* end confdefs.h.  */
30695
30696 #ifdef HAVE_DB_185_H
30697 # include <db_185.h>
30698 #else
30699 # include <db.h>
30700 #endif
30701
30702 #ifndef DB_VERSION_MAJOR
30703 # define DB_VERSION_MAJOR 1
30704 #endif
30705
30706 #ifndef NULL
30707 #define NULL ((void*)0)
30708 #endif
30709
30710 int
30711 main ()
30712 {
30713
30714 #if DB_VERSION_MAJOR > 1
30715         {
30716                 char *version;
30717                 int major, minor, patch;
30718
30719                 version = db_version( &major, &minor, &patch );
30720
30721                 if( major != DB_VERSION_MAJOR ||
30722                         minor < DB_VERSION_MINOR )
30723                 {
30724                         printf("Berkeley DB version mismatch\n"
30725                                 "\theader: %s\n\tlibrary: %s\n",
30726                                 DB_VERSION_STRING, version);
30727                         return 1;
30728                 }
30729         }
30730 #endif
30731
30732 #if DB_VERSION_MAJOR > 2
30733         db_env_create( NULL, 0 );
30734 #elif DB_VERSION_MAJOR > 1
30735         db_appexit( NULL );
30736 #else
30737         (void) dbopen( NULL, 0, 0, 0, NULL);
30738 #endif
30739
30740   ;
30741   return 0;
30742 }
30743 _ACEOF
30744 rm -f conftest.$ac_objext conftest$ac_exeext
30745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30746   (eval $ac_link) 2>conftest.er1
30747   ac_status=$?
30748   grep -v '^ *+' conftest.er1 >conftest.err
30749   rm -f conftest.er1
30750   cat conftest.err >&5
30751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30752   (exit $ac_status); } &&
30753          { ac_try='test -z "$ac_c_werror_flag"
30754                          || test ! -s conftest.err'
30755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30756   (eval $ac_try) 2>&5
30757   ac_status=$?
30758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30759   (exit $ac_status); }; } &&
30760          { ac_try='test -s conftest$ac_exeext'
30761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30762   (eval $ac_try) 2>&5
30763   ac_status=$?
30764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30765   (exit $ac_status); }; }; then
30766   ol_cv_db_db_43=yes
30767 else
30768   echo "$as_me: failed program was:" >&5
30769 sed 's/^/| /' conftest.$ac_ext >&5
30770
30771 ol_cv_db_db_43=no
30772 fi
30773 rm -f conftest.err conftest.$ac_objext \
30774       conftest$ac_exeext conftest.$ac_ext
30775
30776         LIBS="$ol_LIBS"
30777
30778 fi
30779 echo "$as_me:$LINENO: result: $ol_cv_db_db_43" >&5
30780 echo "${ECHO_T}$ol_cv_db_db_43" >&6
30781
30782         if test $ol_cv_db_db_43 = yes ; then
30783                 ol_cv_lib_db=-ldb-43
30784         fi
30785 fi
30786
30787 if test $ol_cv_lib_db = no ; then
30788         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.3)" >&5
30789 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.3)... $ECHO_C" >&6
30790 if test "${ol_cv_db_db_4_dot_3+set}" = set; then
30791   echo $ECHO_N "(cached) $ECHO_C" >&6
30792 else
30793
30794         ol_DB_LIB=-ldb-4.3
30795         ol_LIBS=$LIBS
30796         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30797
30798         cat >conftest.$ac_ext <<_ACEOF
30799 /* confdefs.h.  */
30800 _ACEOF
30801 cat confdefs.h >>conftest.$ac_ext
30802 cat >>conftest.$ac_ext <<_ACEOF
30803 /* end confdefs.h.  */
30804
30805 #ifdef HAVE_DB_185_H
30806 # include <db_185.h>
30807 #else
30808 # include <db.h>
30809 #endif
30810
30811 #ifndef DB_VERSION_MAJOR
30812 # define DB_VERSION_MAJOR 1
30813 #endif
30814
30815 #ifndef NULL
30816 #define NULL ((void*)0)
30817 #endif
30818
30819 int
30820 main ()
30821 {
30822
30823 #if DB_VERSION_MAJOR > 1
30824         {
30825                 char *version;
30826                 int major, minor, patch;
30827
30828                 version = db_version( &major, &minor, &patch );
30829
30830                 if( major != DB_VERSION_MAJOR ||
30831                         minor < DB_VERSION_MINOR )
30832                 {
30833                         printf("Berkeley DB version mismatch\n"
30834                                 "\theader: %s\n\tlibrary: %s\n",
30835                                 DB_VERSION_STRING, version);
30836                         return 1;
30837                 }
30838         }
30839 #endif
30840
30841 #if DB_VERSION_MAJOR > 2
30842         db_env_create( NULL, 0 );
30843 #elif DB_VERSION_MAJOR > 1
30844         db_appexit( NULL );
30845 #else
30846         (void) dbopen( NULL, 0, 0, 0, NULL);
30847 #endif
30848
30849   ;
30850   return 0;
30851 }
30852 _ACEOF
30853 rm -f conftest.$ac_objext conftest$ac_exeext
30854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30855   (eval $ac_link) 2>conftest.er1
30856   ac_status=$?
30857   grep -v '^ *+' conftest.er1 >conftest.err
30858   rm -f conftest.er1
30859   cat conftest.err >&5
30860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30861   (exit $ac_status); } &&
30862          { ac_try='test -z "$ac_c_werror_flag"
30863                          || test ! -s conftest.err'
30864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30865   (eval $ac_try) 2>&5
30866   ac_status=$?
30867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30868   (exit $ac_status); }; } &&
30869          { ac_try='test -s conftest$ac_exeext'
30870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30871   (eval $ac_try) 2>&5
30872   ac_status=$?
30873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30874   (exit $ac_status); }; }; then
30875   ol_cv_db_db_4_dot_3=yes
30876 else
30877   echo "$as_me: failed program was:" >&5
30878 sed 's/^/| /' conftest.$ac_ext >&5
30879
30880 ol_cv_db_db_4_dot_3=no
30881 fi
30882 rm -f conftest.err conftest.$ac_objext \
30883       conftest$ac_exeext conftest.$ac_ext
30884
30885         LIBS="$ol_LIBS"
30886
30887 fi
30888 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_3" >&5
30889 echo "${ECHO_T}$ol_cv_db_db_4_dot_3" >&6
30890
30891         if test $ol_cv_db_db_4_dot_3 = yes ; then
30892                 ol_cv_lib_db=-ldb-4.3
30893         fi
30894 fi
30895
30896 if test $ol_cv_lib_db = no ; then
30897         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-3)" >&5
30898 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-3)... $ECHO_C" >&6
30899 if test "${ol_cv_db_db_4_3+set}" = set; then
30900   echo $ECHO_N "(cached) $ECHO_C" >&6
30901 else
30902
30903         ol_DB_LIB=-ldb-4-3
30904         ol_LIBS=$LIBS
30905         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30906
30907         cat >conftest.$ac_ext <<_ACEOF
30908 /* confdefs.h.  */
30909 _ACEOF
30910 cat confdefs.h >>conftest.$ac_ext
30911 cat >>conftest.$ac_ext <<_ACEOF
30912 /* end confdefs.h.  */
30913
30914 #ifdef HAVE_DB_185_H
30915 # include <db_185.h>
30916 #else
30917 # include <db.h>
30918 #endif
30919
30920 #ifndef DB_VERSION_MAJOR
30921 # define DB_VERSION_MAJOR 1
30922 #endif
30923
30924 #ifndef NULL
30925 #define NULL ((void*)0)
30926 #endif
30927
30928 int
30929 main ()
30930 {
30931
30932 #if DB_VERSION_MAJOR > 1
30933         {
30934                 char *version;
30935                 int major, minor, patch;
30936
30937                 version = db_version( &major, &minor, &patch );
30938
30939                 if( major != DB_VERSION_MAJOR ||
30940                         minor < DB_VERSION_MINOR )
30941                 {
30942                         printf("Berkeley DB version mismatch\n"
30943                                 "\theader: %s\n\tlibrary: %s\n",
30944                                 DB_VERSION_STRING, version);
30945                         return 1;
30946                 }
30947         }
30948 #endif
30949
30950 #if DB_VERSION_MAJOR > 2
30951         db_env_create( NULL, 0 );
30952 #elif DB_VERSION_MAJOR > 1
30953         db_appexit( NULL );
30954 #else
30955         (void) dbopen( NULL, 0, 0, 0, NULL);
30956 #endif
30957
30958   ;
30959   return 0;
30960 }
30961 _ACEOF
30962 rm -f conftest.$ac_objext conftest$ac_exeext
30963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30964   (eval $ac_link) 2>conftest.er1
30965   ac_status=$?
30966   grep -v '^ *+' conftest.er1 >conftest.err
30967   rm -f conftest.er1
30968   cat conftest.err >&5
30969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30970   (exit $ac_status); } &&
30971          { ac_try='test -z "$ac_c_werror_flag"
30972                          || test ! -s conftest.err'
30973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30974   (eval $ac_try) 2>&5
30975   ac_status=$?
30976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30977   (exit $ac_status); }; } &&
30978          { ac_try='test -s conftest$ac_exeext'
30979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30980   (eval $ac_try) 2>&5
30981   ac_status=$?
30982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30983   (exit $ac_status); }; }; then
30984   ol_cv_db_db_4_3=yes
30985 else
30986   echo "$as_me: failed program was:" >&5
30987 sed 's/^/| /' conftest.$ac_ext >&5
30988
30989 ol_cv_db_db_4_3=no
30990 fi
30991 rm -f conftest.err conftest.$ac_objext \
30992       conftest$ac_exeext conftest.$ac_ext
30993
30994         LIBS="$ol_LIBS"
30995
30996 fi
30997 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_3" >&5
30998 echo "${ECHO_T}$ol_cv_db_db_4_3" >&6
30999
31000         if test $ol_cv_db_db_4_3 = yes ; then
31001                 ol_cv_lib_db=-ldb-4-3
31002         fi
31003 fi
31004
31005 if test $ol_cv_lib_db = no ; then
31006         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb42)" >&5
31007 echo $ECHO_N "checking for Berkeley DB link (-ldb42)... $ECHO_C" >&6
31008 if test "${ol_cv_db_db42+set}" = set; then
31009   echo $ECHO_N "(cached) $ECHO_C" >&6
31010 else
31011
31012         ol_DB_LIB=-ldb42
31013         ol_LIBS=$LIBS
31014         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31015
31016         cat >conftest.$ac_ext <<_ACEOF
31017 /* confdefs.h.  */
31018 _ACEOF
31019 cat confdefs.h >>conftest.$ac_ext
31020 cat >>conftest.$ac_ext <<_ACEOF
31021 /* end confdefs.h.  */
31022
31023 #ifdef HAVE_DB_185_H
31024 # include <db_185.h>
31025 #else
31026 # include <db.h>
31027 #endif
31028
31029 #ifndef DB_VERSION_MAJOR
31030 # define DB_VERSION_MAJOR 1
31031 #endif
31032
31033 #ifndef NULL
31034 #define NULL ((void*)0)
31035 #endif
31036
31037 int
31038 main ()
31039 {
31040
31041 #if DB_VERSION_MAJOR > 1
31042         {
31043                 char *version;
31044                 int major, minor, patch;
31045
31046                 version = db_version( &major, &minor, &patch );
31047
31048                 if( major != DB_VERSION_MAJOR ||
31049                         minor < DB_VERSION_MINOR )
31050                 {
31051                         printf("Berkeley DB version mismatch\n"
31052                                 "\theader: %s\n\tlibrary: %s\n",
31053                                 DB_VERSION_STRING, version);
31054                         return 1;
31055                 }
31056         }
31057 #endif
31058
31059 #if DB_VERSION_MAJOR > 2
31060         db_env_create( NULL, 0 );
31061 #elif DB_VERSION_MAJOR > 1
31062         db_appexit( NULL );
31063 #else
31064         (void) dbopen( NULL, 0, 0, 0, NULL);
31065 #endif
31066
31067   ;
31068   return 0;
31069 }
31070 _ACEOF
31071 rm -f conftest.$ac_objext conftest$ac_exeext
31072 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31073   (eval $ac_link) 2>conftest.er1
31074   ac_status=$?
31075   grep -v '^ *+' conftest.er1 >conftest.err
31076   rm -f conftest.er1
31077   cat conftest.err >&5
31078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31079   (exit $ac_status); } &&
31080          { ac_try='test -z "$ac_c_werror_flag"
31081                          || test ! -s conftest.err'
31082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31083   (eval $ac_try) 2>&5
31084   ac_status=$?
31085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31086   (exit $ac_status); }; } &&
31087          { ac_try='test -s conftest$ac_exeext'
31088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31089   (eval $ac_try) 2>&5
31090   ac_status=$?
31091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31092   (exit $ac_status); }; }; then
31093   ol_cv_db_db42=yes
31094 else
31095   echo "$as_me: failed program was:" >&5
31096 sed 's/^/| /' conftest.$ac_ext >&5
31097
31098 ol_cv_db_db42=no
31099 fi
31100 rm -f conftest.err conftest.$ac_objext \
31101       conftest$ac_exeext conftest.$ac_ext
31102
31103         LIBS="$ol_LIBS"
31104
31105 fi
31106 echo "$as_me:$LINENO: result: $ol_cv_db_db42" >&5
31107 echo "${ECHO_T}$ol_cv_db_db42" >&6
31108
31109         if test $ol_cv_db_db42 = yes ; then
31110                 ol_cv_lib_db=-ldb42
31111         fi
31112 fi
31113
31114 if test $ol_cv_lib_db = no ; then
31115         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-42)" >&5
31116 echo $ECHO_N "checking for Berkeley DB link (-ldb-42)... $ECHO_C" >&6
31117 if test "${ol_cv_db_db_42+set}" = set; then
31118   echo $ECHO_N "(cached) $ECHO_C" >&6
31119 else
31120
31121         ol_DB_LIB=-ldb-42
31122         ol_LIBS=$LIBS
31123         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31124
31125         cat >conftest.$ac_ext <<_ACEOF
31126 /* confdefs.h.  */
31127 _ACEOF
31128 cat confdefs.h >>conftest.$ac_ext
31129 cat >>conftest.$ac_ext <<_ACEOF
31130 /* end confdefs.h.  */
31131
31132 #ifdef HAVE_DB_185_H
31133 # include <db_185.h>
31134 #else
31135 # include <db.h>
31136 #endif
31137
31138 #ifndef DB_VERSION_MAJOR
31139 # define DB_VERSION_MAJOR 1
31140 #endif
31141
31142 #ifndef NULL
31143 #define NULL ((void*)0)
31144 #endif
31145
31146 int
31147 main ()
31148 {
31149
31150 #if DB_VERSION_MAJOR > 1
31151         {
31152                 char *version;
31153                 int major, minor, patch;
31154
31155                 version = db_version( &major, &minor, &patch );
31156
31157                 if( major != DB_VERSION_MAJOR ||
31158                         minor < DB_VERSION_MINOR )
31159                 {
31160                         printf("Berkeley DB version mismatch\n"
31161                                 "\theader: %s\n\tlibrary: %s\n",
31162                                 DB_VERSION_STRING, version);
31163                         return 1;
31164                 }
31165         }
31166 #endif
31167
31168 #if DB_VERSION_MAJOR > 2
31169         db_env_create( NULL, 0 );
31170 #elif DB_VERSION_MAJOR > 1
31171         db_appexit( NULL );
31172 #else
31173         (void) dbopen( NULL, 0, 0, 0, NULL);
31174 #endif
31175
31176   ;
31177   return 0;
31178 }
31179 _ACEOF
31180 rm -f conftest.$ac_objext conftest$ac_exeext
31181 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31182   (eval $ac_link) 2>conftest.er1
31183   ac_status=$?
31184   grep -v '^ *+' conftest.er1 >conftest.err
31185   rm -f conftest.er1
31186   cat conftest.err >&5
31187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31188   (exit $ac_status); } &&
31189          { ac_try='test -z "$ac_c_werror_flag"
31190                          || test ! -s conftest.err'
31191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31192   (eval $ac_try) 2>&5
31193   ac_status=$?
31194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31195   (exit $ac_status); }; } &&
31196          { ac_try='test -s conftest$ac_exeext'
31197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31198   (eval $ac_try) 2>&5
31199   ac_status=$?
31200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31201   (exit $ac_status); }; }; then
31202   ol_cv_db_db_42=yes
31203 else
31204   echo "$as_me: failed program was:" >&5
31205 sed 's/^/| /' conftest.$ac_ext >&5
31206
31207 ol_cv_db_db_42=no
31208 fi
31209 rm -f conftest.err conftest.$ac_objext \
31210       conftest$ac_exeext conftest.$ac_ext
31211
31212         LIBS="$ol_LIBS"
31213
31214 fi
31215 echo "$as_me:$LINENO: result: $ol_cv_db_db_42" >&5
31216 echo "${ECHO_T}$ol_cv_db_db_42" >&6
31217
31218         if test $ol_cv_db_db_42 = yes ; then
31219                 ol_cv_lib_db=-ldb-42
31220         fi
31221 fi
31222
31223 if test $ol_cv_lib_db = no ; then
31224         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.2)" >&5
31225 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.2)... $ECHO_C" >&6
31226 if test "${ol_cv_db_db_4_dot_2+set}" = set; then
31227   echo $ECHO_N "(cached) $ECHO_C" >&6
31228 else
31229
31230         ol_DB_LIB=-ldb-4.2
31231         ol_LIBS=$LIBS
31232         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31233
31234         cat >conftest.$ac_ext <<_ACEOF
31235 /* confdefs.h.  */
31236 _ACEOF
31237 cat confdefs.h >>conftest.$ac_ext
31238 cat >>conftest.$ac_ext <<_ACEOF
31239 /* end confdefs.h.  */
31240
31241 #ifdef HAVE_DB_185_H
31242 # include <db_185.h>
31243 #else
31244 # include <db.h>
31245 #endif
31246
31247 #ifndef DB_VERSION_MAJOR
31248 # define DB_VERSION_MAJOR 1
31249 #endif
31250
31251 #ifndef NULL
31252 #define NULL ((void*)0)
31253 #endif
31254
31255 int
31256 main ()
31257 {
31258
31259 #if DB_VERSION_MAJOR > 1
31260         {
31261                 char *version;
31262                 int major, minor, patch;
31263
31264                 version = db_version( &major, &minor, &patch );
31265
31266                 if( major != DB_VERSION_MAJOR ||
31267                         minor < DB_VERSION_MINOR )
31268                 {
31269                         printf("Berkeley DB version mismatch\n"
31270                                 "\theader: %s\n\tlibrary: %s\n",
31271                                 DB_VERSION_STRING, version);
31272                         return 1;
31273                 }
31274         }
31275 #endif
31276
31277 #if DB_VERSION_MAJOR > 2
31278         db_env_create( NULL, 0 );
31279 #elif DB_VERSION_MAJOR > 1
31280         db_appexit( NULL );
31281 #else
31282         (void) dbopen( NULL, 0, 0, 0, NULL);
31283 #endif
31284
31285   ;
31286   return 0;
31287 }
31288 _ACEOF
31289 rm -f conftest.$ac_objext conftest$ac_exeext
31290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31291   (eval $ac_link) 2>conftest.er1
31292   ac_status=$?
31293   grep -v '^ *+' conftest.er1 >conftest.err
31294   rm -f conftest.er1
31295   cat conftest.err >&5
31296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31297   (exit $ac_status); } &&
31298          { ac_try='test -z "$ac_c_werror_flag"
31299                          || test ! -s conftest.err'
31300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31301   (eval $ac_try) 2>&5
31302   ac_status=$?
31303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31304   (exit $ac_status); }; } &&
31305          { ac_try='test -s conftest$ac_exeext'
31306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31307   (eval $ac_try) 2>&5
31308   ac_status=$?
31309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31310   (exit $ac_status); }; }; then
31311   ol_cv_db_db_4_dot_2=yes
31312 else
31313   echo "$as_me: failed program was:" >&5
31314 sed 's/^/| /' conftest.$ac_ext >&5
31315
31316 ol_cv_db_db_4_dot_2=no
31317 fi
31318 rm -f conftest.err conftest.$ac_objext \
31319       conftest$ac_exeext conftest.$ac_ext
31320
31321         LIBS="$ol_LIBS"
31322
31323 fi
31324 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_2" >&5
31325 echo "${ECHO_T}$ol_cv_db_db_4_dot_2" >&6
31326
31327         if test $ol_cv_db_db_4_dot_2 = yes ; then
31328                 ol_cv_lib_db=-ldb-4.2
31329         fi
31330 fi
31331
31332 if test $ol_cv_lib_db = no ; then
31333         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-2)" >&5
31334 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-2)... $ECHO_C" >&6
31335 if test "${ol_cv_db_db_4_2+set}" = set; then
31336   echo $ECHO_N "(cached) $ECHO_C" >&6
31337 else
31338
31339         ol_DB_LIB=-ldb-4-2
31340         ol_LIBS=$LIBS
31341         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31342
31343         cat >conftest.$ac_ext <<_ACEOF
31344 /* confdefs.h.  */
31345 _ACEOF
31346 cat confdefs.h >>conftest.$ac_ext
31347 cat >>conftest.$ac_ext <<_ACEOF
31348 /* end confdefs.h.  */
31349
31350 #ifdef HAVE_DB_185_H
31351 # include <db_185.h>
31352 #else
31353 # include <db.h>
31354 #endif
31355
31356 #ifndef DB_VERSION_MAJOR
31357 # define DB_VERSION_MAJOR 1
31358 #endif
31359
31360 #ifndef NULL
31361 #define NULL ((void*)0)
31362 #endif
31363
31364 int
31365 main ()
31366 {
31367
31368 #if DB_VERSION_MAJOR > 1
31369         {
31370                 char *version;
31371                 int major, minor, patch;
31372
31373                 version = db_version( &major, &minor, &patch );
31374
31375                 if( major != DB_VERSION_MAJOR ||
31376                         minor < DB_VERSION_MINOR )
31377                 {
31378                         printf("Berkeley DB version mismatch\n"
31379                                 "\theader: %s\n\tlibrary: %s\n",
31380                                 DB_VERSION_STRING, version);
31381                         return 1;
31382                 }
31383         }
31384 #endif
31385
31386 #if DB_VERSION_MAJOR > 2
31387         db_env_create( NULL, 0 );
31388 #elif DB_VERSION_MAJOR > 1
31389         db_appexit( NULL );
31390 #else
31391         (void) dbopen( NULL, 0, 0, 0, NULL);
31392 #endif
31393
31394   ;
31395   return 0;
31396 }
31397 _ACEOF
31398 rm -f conftest.$ac_objext conftest$ac_exeext
31399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31400   (eval $ac_link) 2>conftest.er1
31401   ac_status=$?
31402   grep -v '^ *+' conftest.er1 >conftest.err
31403   rm -f conftest.er1
31404   cat conftest.err >&5
31405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31406   (exit $ac_status); } &&
31407          { ac_try='test -z "$ac_c_werror_flag"
31408                          || test ! -s conftest.err'
31409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31410   (eval $ac_try) 2>&5
31411   ac_status=$?
31412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31413   (exit $ac_status); }; } &&
31414          { ac_try='test -s conftest$ac_exeext'
31415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31416   (eval $ac_try) 2>&5
31417   ac_status=$?
31418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31419   (exit $ac_status); }; }; then
31420   ol_cv_db_db_4_2=yes
31421 else
31422   echo "$as_me: failed program was:" >&5
31423 sed 's/^/| /' conftest.$ac_ext >&5
31424
31425 ol_cv_db_db_4_2=no
31426 fi
31427 rm -f conftest.err conftest.$ac_objext \
31428       conftest$ac_exeext conftest.$ac_ext
31429
31430         LIBS="$ol_LIBS"
31431
31432 fi
31433 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_2" >&5
31434 echo "${ECHO_T}$ol_cv_db_db_4_2" >&6
31435
31436         if test $ol_cv_db_db_4_2 = yes ; then
31437                 ol_cv_lib_db=-ldb-4-2
31438         fi
31439 fi
31440
31441 if test $ol_cv_lib_db = no ; then
31442         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
31443 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6
31444 if test "${ol_cv_db_db_4+set}" = set; then
31445   echo $ECHO_N "(cached) $ECHO_C" >&6
31446 else
31447
31448         ol_DB_LIB=-ldb-4
31449         ol_LIBS=$LIBS
31450         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31451
31452         cat >conftest.$ac_ext <<_ACEOF
31453 /* confdefs.h.  */
31454 _ACEOF
31455 cat confdefs.h >>conftest.$ac_ext
31456 cat >>conftest.$ac_ext <<_ACEOF
31457 /* end confdefs.h.  */
31458
31459 #ifdef HAVE_DB_185_H
31460 # include <db_185.h>
31461 #else
31462 # include <db.h>
31463 #endif
31464
31465 #ifndef DB_VERSION_MAJOR
31466 # define DB_VERSION_MAJOR 1
31467 #endif
31468
31469 #ifndef NULL
31470 #define NULL ((void*)0)
31471 #endif
31472
31473 int
31474 main ()
31475 {
31476
31477 #if DB_VERSION_MAJOR > 1
31478         {
31479                 char *version;
31480                 int major, minor, patch;
31481
31482                 version = db_version( &major, &minor, &patch );
31483
31484                 if( major != DB_VERSION_MAJOR ||
31485                         minor < DB_VERSION_MINOR )
31486                 {
31487                         printf("Berkeley DB version mismatch\n"
31488                                 "\theader: %s\n\tlibrary: %s\n",
31489                                 DB_VERSION_STRING, version);
31490                         return 1;
31491                 }
31492         }
31493 #endif
31494
31495 #if DB_VERSION_MAJOR > 2
31496         db_env_create( NULL, 0 );
31497 #elif DB_VERSION_MAJOR > 1
31498         db_appexit( NULL );
31499 #else
31500         (void) dbopen( NULL, 0, 0, 0, NULL);
31501 #endif
31502
31503   ;
31504   return 0;
31505 }
31506 _ACEOF
31507 rm -f conftest.$ac_objext conftest$ac_exeext
31508 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31509   (eval $ac_link) 2>conftest.er1
31510   ac_status=$?
31511   grep -v '^ *+' conftest.er1 >conftest.err
31512   rm -f conftest.er1
31513   cat conftest.err >&5
31514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31515   (exit $ac_status); } &&
31516          { ac_try='test -z "$ac_c_werror_flag"
31517                          || test ! -s conftest.err'
31518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31519   (eval $ac_try) 2>&5
31520   ac_status=$?
31521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31522   (exit $ac_status); }; } &&
31523          { ac_try='test -s conftest$ac_exeext'
31524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31525   (eval $ac_try) 2>&5
31526   ac_status=$?
31527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31528   (exit $ac_status); }; }; then
31529   ol_cv_db_db_4=yes
31530 else
31531   echo "$as_me: failed program was:" >&5
31532 sed 's/^/| /' conftest.$ac_ext >&5
31533
31534 ol_cv_db_db_4=no
31535 fi
31536 rm -f conftest.err conftest.$ac_objext \
31537       conftest$ac_exeext conftest.$ac_ext
31538
31539         LIBS="$ol_LIBS"
31540
31541 fi
31542 echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
31543 echo "${ECHO_T}$ol_cv_db_db_4" >&6
31544
31545         if test $ol_cv_db_db_4 = yes ; then
31546                 ol_cv_lib_db=-ldb-4
31547         fi
31548 fi
31549
31550 if test $ol_cv_lib_db = no ; then
31551         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
31552 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6
31553 if test "${ol_cv_db_db4+set}" = set; then
31554   echo $ECHO_N "(cached) $ECHO_C" >&6
31555 else
31556
31557         ol_DB_LIB=-ldb4
31558         ol_LIBS=$LIBS
31559         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31560
31561         cat >conftest.$ac_ext <<_ACEOF
31562 /* confdefs.h.  */
31563 _ACEOF
31564 cat confdefs.h >>conftest.$ac_ext
31565 cat >>conftest.$ac_ext <<_ACEOF
31566 /* end confdefs.h.  */
31567
31568 #ifdef HAVE_DB_185_H
31569 # include <db_185.h>
31570 #else
31571 # include <db.h>
31572 #endif
31573
31574 #ifndef DB_VERSION_MAJOR
31575 # define DB_VERSION_MAJOR 1
31576 #endif
31577
31578 #ifndef NULL
31579 #define NULL ((void*)0)
31580 #endif
31581
31582 int
31583 main ()
31584 {
31585
31586 #if DB_VERSION_MAJOR > 1
31587         {
31588                 char *version;
31589                 int major, minor, patch;
31590
31591                 version = db_version( &major, &minor, &patch );
31592
31593                 if( major != DB_VERSION_MAJOR ||
31594                         minor < DB_VERSION_MINOR )
31595                 {
31596                         printf("Berkeley DB version mismatch\n"
31597                                 "\theader: %s\n\tlibrary: %s\n",
31598                                 DB_VERSION_STRING, version);
31599                         return 1;
31600                 }
31601         }
31602 #endif
31603
31604 #if DB_VERSION_MAJOR > 2
31605         db_env_create( NULL, 0 );
31606 #elif DB_VERSION_MAJOR > 1
31607         db_appexit( NULL );
31608 #else
31609         (void) dbopen( NULL, 0, 0, 0, NULL);
31610 #endif
31611
31612   ;
31613   return 0;
31614 }
31615 _ACEOF
31616 rm -f conftest.$ac_objext conftest$ac_exeext
31617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31618   (eval $ac_link) 2>conftest.er1
31619   ac_status=$?
31620   grep -v '^ *+' conftest.er1 >conftest.err
31621   rm -f conftest.er1
31622   cat conftest.err >&5
31623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31624   (exit $ac_status); } &&
31625          { ac_try='test -z "$ac_c_werror_flag"
31626                          || test ! -s conftest.err'
31627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31628   (eval $ac_try) 2>&5
31629   ac_status=$?
31630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31631   (exit $ac_status); }; } &&
31632          { ac_try='test -s conftest$ac_exeext'
31633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31634   (eval $ac_try) 2>&5
31635   ac_status=$?
31636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31637   (exit $ac_status); }; }; then
31638   ol_cv_db_db4=yes
31639 else
31640   echo "$as_me: failed program was:" >&5
31641 sed 's/^/| /' conftest.$ac_ext >&5
31642
31643 ol_cv_db_db4=no
31644 fi
31645 rm -f conftest.err conftest.$ac_objext \
31646       conftest$ac_exeext conftest.$ac_ext
31647
31648         LIBS="$ol_LIBS"
31649
31650 fi
31651 echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
31652 echo "${ECHO_T}$ol_cv_db_db4" >&6
31653
31654         if test $ol_cv_db_db4 = yes ; then
31655                 ol_cv_lib_db=-ldb4
31656         fi
31657 fi
31658
31659 if test $ol_cv_lib_db = no ; then
31660         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
31661 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6
31662 if test "${ol_cv_db_db+set}" = set; then
31663   echo $ECHO_N "(cached) $ECHO_C" >&6
31664 else
31665
31666         ol_DB_LIB=-ldb
31667         ol_LIBS=$LIBS
31668         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31669
31670         cat >conftest.$ac_ext <<_ACEOF
31671 /* confdefs.h.  */
31672 _ACEOF
31673 cat confdefs.h >>conftest.$ac_ext
31674 cat >>conftest.$ac_ext <<_ACEOF
31675 /* end confdefs.h.  */
31676
31677 #ifdef HAVE_DB_185_H
31678 # include <db_185.h>
31679 #else
31680 # include <db.h>
31681 #endif
31682
31683 #ifndef DB_VERSION_MAJOR
31684 # define DB_VERSION_MAJOR 1
31685 #endif
31686
31687 #ifndef NULL
31688 #define NULL ((void*)0)
31689 #endif
31690
31691 int
31692 main ()
31693 {
31694
31695 #if DB_VERSION_MAJOR > 1
31696         {
31697                 char *version;
31698                 int major, minor, patch;
31699
31700                 version = db_version( &major, &minor, &patch );
31701
31702                 if( major != DB_VERSION_MAJOR ||
31703                         minor < DB_VERSION_MINOR )
31704                 {
31705                         printf("Berkeley DB version mismatch\n"
31706                                 "\theader: %s\n\tlibrary: %s\n",
31707                                 DB_VERSION_STRING, version);
31708                         return 1;
31709                 }
31710         }
31711 #endif
31712
31713 #if DB_VERSION_MAJOR > 2
31714         db_env_create( NULL, 0 );
31715 #elif DB_VERSION_MAJOR > 1
31716         db_appexit( NULL );
31717 #else
31718         (void) dbopen( NULL, 0, 0, 0, NULL);
31719 #endif
31720
31721   ;
31722   return 0;
31723 }
31724 _ACEOF
31725 rm -f conftest.$ac_objext conftest$ac_exeext
31726 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31727   (eval $ac_link) 2>conftest.er1
31728   ac_status=$?
31729   grep -v '^ *+' conftest.er1 >conftest.err
31730   rm -f conftest.er1
31731   cat conftest.err >&5
31732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31733   (exit $ac_status); } &&
31734          { ac_try='test -z "$ac_c_werror_flag"
31735                          || test ! -s conftest.err'
31736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31737   (eval $ac_try) 2>&5
31738   ac_status=$?
31739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31740   (exit $ac_status); }; } &&
31741          { ac_try='test -s conftest$ac_exeext'
31742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31743   (eval $ac_try) 2>&5
31744   ac_status=$?
31745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31746   (exit $ac_status); }; }; then
31747   ol_cv_db_db=yes
31748 else
31749   echo "$as_me: failed program was:" >&5
31750 sed 's/^/| /' conftest.$ac_ext >&5
31751
31752 ol_cv_db_db=no
31753 fi
31754 rm -f conftest.err conftest.$ac_objext \
31755       conftest$ac_exeext conftest.$ac_ext
31756
31757         LIBS="$ol_LIBS"
31758
31759 fi
31760 echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
31761 echo "${ECHO_T}$ol_cv_db_db" >&6
31762
31763         if test $ol_cv_db_db = yes ; then
31764                 ol_cv_lib_db=-ldb
31765         fi
31766 fi
31767
31768 if test $ol_cv_lib_db = no ; then
31769         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb41)" >&5
31770 echo $ECHO_N "checking for Berkeley DB link (-ldb41)... $ECHO_C" >&6
31771 if test "${ol_cv_db_db41+set}" = set; then
31772   echo $ECHO_N "(cached) $ECHO_C" >&6
31773 else
31774
31775         ol_DB_LIB=-ldb41
31776         ol_LIBS=$LIBS
31777         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31778
31779         cat >conftest.$ac_ext <<_ACEOF
31780 /* confdefs.h.  */
31781 _ACEOF
31782 cat confdefs.h >>conftest.$ac_ext
31783 cat >>conftest.$ac_ext <<_ACEOF
31784 /* end confdefs.h.  */
31785
31786 #ifdef HAVE_DB_185_H
31787 # include <db_185.h>
31788 #else
31789 # include <db.h>
31790 #endif
31791
31792 #ifndef DB_VERSION_MAJOR
31793 # define DB_VERSION_MAJOR 1
31794 #endif
31795
31796 #ifndef NULL
31797 #define NULL ((void*)0)
31798 #endif
31799
31800 int
31801 main ()
31802 {
31803
31804 #if DB_VERSION_MAJOR > 1
31805         {
31806                 char *version;
31807                 int major, minor, patch;
31808
31809                 version = db_version( &major, &minor, &patch );
31810
31811                 if( major != DB_VERSION_MAJOR ||
31812                         minor < DB_VERSION_MINOR )
31813                 {
31814                         printf("Berkeley DB version mismatch\n"
31815                                 "\theader: %s\n\tlibrary: %s\n",
31816                                 DB_VERSION_STRING, version);
31817                         return 1;
31818                 }
31819         }
31820 #endif
31821
31822 #if DB_VERSION_MAJOR > 2
31823         db_env_create( NULL, 0 );
31824 #elif DB_VERSION_MAJOR > 1
31825         db_appexit( NULL );
31826 #else
31827         (void) dbopen( NULL, 0, 0, 0, NULL);
31828 #endif
31829
31830   ;
31831   return 0;
31832 }
31833 _ACEOF
31834 rm -f conftest.$ac_objext conftest$ac_exeext
31835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31836   (eval $ac_link) 2>conftest.er1
31837   ac_status=$?
31838   grep -v '^ *+' conftest.er1 >conftest.err
31839   rm -f conftest.er1
31840   cat conftest.err >&5
31841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31842   (exit $ac_status); } &&
31843          { ac_try='test -z "$ac_c_werror_flag"
31844                          || test ! -s conftest.err'
31845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31846   (eval $ac_try) 2>&5
31847   ac_status=$?
31848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31849   (exit $ac_status); }; } &&
31850          { ac_try='test -s conftest$ac_exeext'
31851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31852   (eval $ac_try) 2>&5
31853   ac_status=$?
31854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31855   (exit $ac_status); }; }; then
31856   ol_cv_db_db41=yes
31857 else
31858   echo "$as_me: failed program was:" >&5
31859 sed 's/^/| /' conftest.$ac_ext >&5
31860
31861 ol_cv_db_db41=no
31862 fi
31863 rm -f conftest.err conftest.$ac_objext \
31864       conftest$ac_exeext conftest.$ac_ext
31865
31866         LIBS="$ol_LIBS"
31867
31868 fi
31869 echo "$as_me:$LINENO: result: $ol_cv_db_db41" >&5
31870 echo "${ECHO_T}$ol_cv_db_db41" >&6
31871
31872         if test $ol_cv_db_db41 = yes ; then
31873                 ol_cv_lib_db=-ldb41
31874         fi
31875 fi
31876
31877 if test $ol_cv_lib_db = no ; then
31878         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-41)" >&5
31879 echo $ECHO_N "checking for Berkeley DB link (-ldb-41)... $ECHO_C" >&6
31880 if test "${ol_cv_db_db_41+set}" = set; then
31881   echo $ECHO_N "(cached) $ECHO_C" >&6
31882 else
31883
31884         ol_DB_LIB=-ldb-41
31885         ol_LIBS=$LIBS
31886         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31887
31888         cat >conftest.$ac_ext <<_ACEOF
31889 /* confdefs.h.  */
31890 _ACEOF
31891 cat confdefs.h >>conftest.$ac_ext
31892 cat >>conftest.$ac_ext <<_ACEOF
31893 /* end confdefs.h.  */
31894
31895 #ifdef HAVE_DB_185_H
31896 # include <db_185.h>
31897 #else
31898 # include <db.h>
31899 #endif
31900
31901 #ifndef DB_VERSION_MAJOR
31902 # define DB_VERSION_MAJOR 1
31903 #endif
31904
31905 #ifndef NULL
31906 #define NULL ((void*)0)
31907 #endif
31908
31909 int
31910 main ()
31911 {
31912
31913 #if DB_VERSION_MAJOR > 1
31914         {
31915                 char *version;
31916                 int major, minor, patch;
31917
31918                 version = db_version( &major, &minor, &patch );
31919
31920                 if( major != DB_VERSION_MAJOR ||
31921                         minor < DB_VERSION_MINOR )
31922                 {
31923                         printf("Berkeley DB version mismatch\n"
31924                                 "\theader: %s\n\tlibrary: %s\n",
31925                                 DB_VERSION_STRING, version);
31926                         return 1;
31927                 }
31928         }
31929 #endif
31930
31931 #if DB_VERSION_MAJOR > 2
31932         db_env_create( NULL, 0 );
31933 #elif DB_VERSION_MAJOR > 1
31934         db_appexit( NULL );
31935 #else
31936         (void) dbopen( NULL, 0, 0, 0, NULL);
31937 #endif
31938
31939   ;
31940   return 0;
31941 }
31942 _ACEOF
31943 rm -f conftest.$ac_objext conftest$ac_exeext
31944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31945   (eval $ac_link) 2>conftest.er1
31946   ac_status=$?
31947   grep -v '^ *+' conftest.er1 >conftest.err
31948   rm -f conftest.er1
31949   cat conftest.err >&5
31950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31951   (exit $ac_status); } &&
31952          { ac_try='test -z "$ac_c_werror_flag"
31953                          || test ! -s conftest.err'
31954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31955   (eval $ac_try) 2>&5
31956   ac_status=$?
31957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31958   (exit $ac_status); }; } &&
31959          { ac_try='test -s conftest$ac_exeext'
31960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31961   (eval $ac_try) 2>&5
31962   ac_status=$?
31963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31964   (exit $ac_status); }; }; then
31965   ol_cv_db_db_41=yes
31966 else
31967   echo "$as_me: failed program was:" >&5
31968 sed 's/^/| /' conftest.$ac_ext >&5
31969
31970 ol_cv_db_db_41=no
31971 fi
31972 rm -f conftest.err conftest.$ac_objext \
31973       conftest$ac_exeext conftest.$ac_ext
31974
31975         LIBS="$ol_LIBS"
31976
31977 fi
31978 echo "$as_me:$LINENO: result: $ol_cv_db_db_41" >&5
31979 echo "${ECHO_T}$ol_cv_db_db_41" >&6
31980
31981         if test $ol_cv_db_db_41 = yes ; then
31982                 ol_cv_lib_db=-ldb-41
31983         fi
31984 fi
31985
31986 if test $ol_cv_lib_db = no ; then
31987         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.1)" >&5
31988 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.1)... $ECHO_C" >&6
31989 if test "${ol_cv_db_db_4_dot_1+set}" = set; then
31990   echo $ECHO_N "(cached) $ECHO_C" >&6
31991 else
31992
31993         ol_DB_LIB=-ldb-4.1
31994         ol_LIBS=$LIBS
31995         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31996
31997         cat >conftest.$ac_ext <<_ACEOF
31998 /* confdefs.h.  */
31999 _ACEOF
32000 cat confdefs.h >>conftest.$ac_ext
32001 cat >>conftest.$ac_ext <<_ACEOF
32002 /* end confdefs.h.  */
32003
32004 #ifdef HAVE_DB_185_H
32005 # include <db_185.h>
32006 #else
32007 # include <db.h>
32008 #endif
32009
32010 #ifndef DB_VERSION_MAJOR
32011 # define DB_VERSION_MAJOR 1
32012 #endif
32013
32014 #ifndef NULL
32015 #define NULL ((void*)0)
32016 #endif
32017
32018 int
32019 main ()
32020 {
32021
32022 #if DB_VERSION_MAJOR > 1
32023         {
32024                 char *version;
32025                 int major, minor, patch;
32026
32027                 version = db_version( &major, &minor, &patch );
32028
32029                 if( major != DB_VERSION_MAJOR ||
32030                         minor < DB_VERSION_MINOR )
32031                 {
32032                         printf("Berkeley DB version mismatch\n"
32033                                 "\theader: %s\n\tlibrary: %s\n",
32034                                 DB_VERSION_STRING, version);
32035                         return 1;
32036                 }
32037         }
32038 #endif
32039
32040 #if DB_VERSION_MAJOR > 2
32041         db_env_create( NULL, 0 );
32042 #elif DB_VERSION_MAJOR > 1
32043         db_appexit( NULL );
32044 #else
32045         (void) dbopen( NULL, 0, 0, 0, NULL);
32046 #endif
32047
32048   ;
32049   return 0;
32050 }
32051 _ACEOF
32052 rm -f conftest.$ac_objext conftest$ac_exeext
32053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32054   (eval $ac_link) 2>conftest.er1
32055   ac_status=$?
32056   grep -v '^ *+' conftest.er1 >conftest.err
32057   rm -f conftest.er1
32058   cat conftest.err >&5
32059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32060   (exit $ac_status); } &&
32061          { ac_try='test -z "$ac_c_werror_flag"
32062                          || test ! -s conftest.err'
32063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32064   (eval $ac_try) 2>&5
32065   ac_status=$?
32066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32067   (exit $ac_status); }; } &&
32068          { ac_try='test -s conftest$ac_exeext'
32069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32070   (eval $ac_try) 2>&5
32071   ac_status=$?
32072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32073   (exit $ac_status); }; }; then
32074   ol_cv_db_db_4_dot_1=yes
32075 else
32076   echo "$as_me: failed program was:" >&5
32077 sed 's/^/| /' conftest.$ac_ext >&5
32078
32079 ol_cv_db_db_4_dot_1=no
32080 fi
32081 rm -f conftest.err conftest.$ac_objext \
32082       conftest$ac_exeext conftest.$ac_ext
32083
32084         LIBS="$ol_LIBS"
32085
32086 fi
32087 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_1" >&5
32088 echo "${ECHO_T}$ol_cv_db_db_4_dot_1" >&6
32089
32090         if test $ol_cv_db_db_4_dot_1 = yes ; then
32091                 ol_cv_lib_db=-ldb-4.1
32092         fi
32093 fi
32094
32095 if test $ol_cv_lib_db = no ; then
32096         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-1)" >&5
32097 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-1)... $ECHO_C" >&6
32098 if test "${ol_cv_db_db_4_1+set}" = set; then
32099   echo $ECHO_N "(cached) $ECHO_C" >&6
32100 else
32101
32102         ol_DB_LIB=-ldb-4-1
32103         ol_LIBS=$LIBS
32104         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32105
32106         cat >conftest.$ac_ext <<_ACEOF
32107 /* confdefs.h.  */
32108 _ACEOF
32109 cat confdefs.h >>conftest.$ac_ext
32110 cat >>conftest.$ac_ext <<_ACEOF
32111 /* end confdefs.h.  */
32112
32113 #ifdef HAVE_DB_185_H
32114 # include <db_185.h>
32115 #else
32116 # include <db.h>
32117 #endif
32118
32119 #ifndef DB_VERSION_MAJOR
32120 # define DB_VERSION_MAJOR 1
32121 #endif
32122
32123 #ifndef NULL
32124 #define NULL ((void*)0)
32125 #endif
32126
32127 int
32128 main ()
32129 {
32130
32131 #if DB_VERSION_MAJOR > 1
32132         {
32133                 char *version;
32134                 int major, minor, patch;
32135
32136                 version = db_version( &major, &minor, &patch );
32137
32138                 if( major != DB_VERSION_MAJOR ||
32139                         minor < DB_VERSION_MINOR )
32140                 {
32141                         printf("Berkeley DB version mismatch\n"
32142                                 "\theader: %s\n\tlibrary: %s\n",
32143                                 DB_VERSION_STRING, version);
32144                         return 1;
32145                 }
32146         }
32147 #endif
32148
32149 #if DB_VERSION_MAJOR > 2
32150         db_env_create( NULL, 0 );
32151 #elif DB_VERSION_MAJOR > 1
32152         db_appexit( NULL );
32153 #else
32154         (void) dbopen( NULL, 0, 0, 0, NULL);
32155 #endif
32156
32157   ;
32158   return 0;
32159 }
32160 _ACEOF
32161 rm -f conftest.$ac_objext conftest$ac_exeext
32162 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32163   (eval $ac_link) 2>conftest.er1
32164   ac_status=$?
32165   grep -v '^ *+' conftest.er1 >conftest.err
32166   rm -f conftest.er1
32167   cat conftest.err >&5
32168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32169   (exit $ac_status); } &&
32170          { ac_try='test -z "$ac_c_werror_flag"
32171                          || test ! -s conftest.err'
32172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32173   (eval $ac_try) 2>&5
32174   ac_status=$?
32175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32176   (exit $ac_status); }; } &&
32177          { ac_try='test -s conftest$ac_exeext'
32178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32179   (eval $ac_try) 2>&5
32180   ac_status=$?
32181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32182   (exit $ac_status); }; }; then
32183   ol_cv_db_db_4_1=yes
32184 else
32185   echo "$as_me: failed program was:" >&5
32186 sed 's/^/| /' conftest.$ac_ext >&5
32187
32188 ol_cv_db_db_4_1=no
32189 fi
32190 rm -f conftest.err conftest.$ac_objext \
32191       conftest$ac_exeext conftest.$ac_ext
32192
32193         LIBS="$ol_LIBS"
32194
32195 fi
32196 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_1" >&5
32197 echo "${ECHO_T}$ol_cv_db_db_4_1" >&6
32198
32199         if test $ol_cv_db_db_4_1 = yes ; then
32200                 ol_cv_lib_db=-ldb-4-1
32201         fi
32202 fi
32203
32204 if test $ol_cv_lib_db = no ; then
32205         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb3)" >&5
32206 echo $ECHO_N "checking for Berkeley DB link (-ldb3)... $ECHO_C" >&6
32207 if test "${ol_cv_db_db3+set}" = set; then
32208   echo $ECHO_N "(cached) $ECHO_C" >&6
32209 else
32210
32211         ol_DB_LIB=-ldb3
32212         ol_LIBS=$LIBS
32213         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32214
32215         cat >conftest.$ac_ext <<_ACEOF
32216 /* confdefs.h.  */
32217 _ACEOF
32218 cat confdefs.h >>conftest.$ac_ext
32219 cat >>conftest.$ac_ext <<_ACEOF
32220 /* end confdefs.h.  */
32221
32222 #ifdef HAVE_DB_185_H
32223 # include <db_185.h>
32224 #else
32225 # include <db.h>
32226 #endif
32227
32228 #ifndef DB_VERSION_MAJOR
32229 # define DB_VERSION_MAJOR 1
32230 #endif
32231
32232 #ifndef NULL
32233 #define NULL ((void*)0)
32234 #endif
32235
32236 int
32237 main ()
32238 {
32239
32240 #if DB_VERSION_MAJOR > 1
32241         {
32242                 char *version;
32243                 int major, minor, patch;
32244
32245                 version = db_version( &major, &minor, &patch );
32246
32247                 if( major != DB_VERSION_MAJOR ||
32248                         minor < DB_VERSION_MINOR )
32249                 {
32250                         printf("Berkeley DB version mismatch\n"
32251                                 "\theader: %s\n\tlibrary: %s\n",
32252                                 DB_VERSION_STRING, version);
32253                         return 1;
32254                 }
32255         }
32256 #endif
32257
32258 #if DB_VERSION_MAJOR > 2
32259         db_env_create( NULL, 0 );
32260 #elif DB_VERSION_MAJOR > 1
32261         db_appexit( NULL );
32262 #else
32263         (void) dbopen( NULL, 0, 0, 0, NULL);
32264 #endif
32265
32266   ;
32267   return 0;
32268 }
32269 _ACEOF
32270 rm -f conftest.$ac_objext conftest$ac_exeext
32271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32272   (eval $ac_link) 2>conftest.er1
32273   ac_status=$?
32274   grep -v '^ *+' conftest.er1 >conftest.err
32275   rm -f conftest.er1
32276   cat conftest.err >&5
32277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32278   (exit $ac_status); } &&
32279          { ac_try='test -z "$ac_c_werror_flag"
32280                          || test ! -s conftest.err'
32281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32282   (eval $ac_try) 2>&5
32283   ac_status=$?
32284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32285   (exit $ac_status); }; } &&
32286          { ac_try='test -s conftest$ac_exeext'
32287   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32288   (eval $ac_try) 2>&5
32289   ac_status=$?
32290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32291   (exit $ac_status); }; }; then
32292   ol_cv_db_db3=yes
32293 else
32294   echo "$as_me: failed program was:" >&5
32295 sed 's/^/| /' conftest.$ac_ext >&5
32296
32297 ol_cv_db_db3=no
32298 fi
32299 rm -f conftest.err conftest.$ac_objext \
32300       conftest$ac_exeext conftest.$ac_ext
32301
32302         LIBS="$ol_LIBS"
32303
32304 fi
32305 echo "$as_me:$LINENO: result: $ol_cv_db_db3" >&5
32306 echo "${ECHO_T}$ol_cv_db_db3" >&6
32307
32308         if test $ol_cv_db_db3 = yes ; then
32309                 ol_cv_lib_db=-ldb3
32310         fi
32311 fi
32312
32313 if test $ol_cv_lib_db = no ; then
32314         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-3)" >&5
32315 echo $ECHO_N "checking for Berkeley DB link (-ldb-3)... $ECHO_C" >&6
32316 if test "${ol_cv_db_db_3+set}" = set; then
32317   echo $ECHO_N "(cached) $ECHO_C" >&6
32318 else
32319
32320         ol_DB_LIB=-ldb-3
32321         ol_LIBS=$LIBS
32322         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32323
32324         cat >conftest.$ac_ext <<_ACEOF
32325 /* confdefs.h.  */
32326 _ACEOF
32327 cat confdefs.h >>conftest.$ac_ext
32328 cat >>conftest.$ac_ext <<_ACEOF
32329 /* end confdefs.h.  */
32330
32331 #ifdef HAVE_DB_185_H
32332 # include <db_185.h>
32333 #else
32334 # include <db.h>
32335 #endif
32336
32337 #ifndef DB_VERSION_MAJOR
32338 # define DB_VERSION_MAJOR 1
32339 #endif
32340
32341 #ifndef NULL
32342 #define NULL ((void*)0)
32343 #endif
32344
32345 int
32346 main ()
32347 {
32348
32349 #if DB_VERSION_MAJOR > 1
32350         {
32351                 char *version;
32352                 int major, minor, patch;
32353
32354                 version = db_version( &major, &minor, &patch );
32355
32356                 if( major != DB_VERSION_MAJOR ||
32357                         minor < DB_VERSION_MINOR )
32358                 {
32359                         printf("Berkeley DB version mismatch\n"
32360                                 "\theader: %s\n\tlibrary: %s\n",
32361                                 DB_VERSION_STRING, version);
32362                         return 1;
32363                 }
32364         }
32365 #endif
32366
32367 #if DB_VERSION_MAJOR > 2
32368         db_env_create( NULL, 0 );
32369 #elif DB_VERSION_MAJOR > 1
32370         db_appexit( NULL );
32371 #else
32372         (void) dbopen( NULL, 0, 0, 0, NULL);
32373 #endif
32374
32375   ;
32376   return 0;
32377 }
32378 _ACEOF
32379 rm -f conftest.$ac_objext conftest$ac_exeext
32380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32381   (eval $ac_link) 2>conftest.er1
32382   ac_status=$?
32383   grep -v '^ *+' conftest.er1 >conftest.err
32384   rm -f conftest.er1
32385   cat conftest.err >&5
32386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32387   (exit $ac_status); } &&
32388          { ac_try='test -z "$ac_c_werror_flag"
32389                          || test ! -s conftest.err'
32390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32391   (eval $ac_try) 2>&5
32392   ac_status=$?
32393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32394   (exit $ac_status); }; } &&
32395          { ac_try='test -s conftest$ac_exeext'
32396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32397   (eval $ac_try) 2>&5
32398   ac_status=$?
32399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32400   (exit $ac_status); }; }; then
32401   ol_cv_db_db_3=yes
32402 else
32403   echo "$as_me: failed program was:" >&5
32404 sed 's/^/| /' conftest.$ac_ext >&5
32405
32406 ol_cv_db_db_3=no
32407 fi
32408 rm -f conftest.err conftest.$ac_objext \
32409       conftest$ac_exeext conftest.$ac_ext
32410
32411         LIBS="$ol_LIBS"
32412
32413 fi
32414 echo "$as_me:$LINENO: result: $ol_cv_db_db_3" >&5
32415 echo "${ECHO_T}$ol_cv_db_db_3" >&6
32416
32417         if test $ol_cv_db_db_3 = yes ; then
32418                 ol_cv_lib_db=-ldb-3
32419         fi
32420 fi
32421
32422 if test $ol_cv_lib_db = no ; then
32423         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb2)" >&5
32424 echo $ECHO_N "checking for Berkeley DB link (-ldb2)... $ECHO_C" >&6
32425 if test "${ol_cv_db_db2+set}" = set; then
32426   echo $ECHO_N "(cached) $ECHO_C" >&6
32427 else
32428
32429         ol_DB_LIB=-ldb2
32430         ol_LIBS=$LIBS
32431         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32432
32433         cat >conftest.$ac_ext <<_ACEOF
32434 /* confdefs.h.  */
32435 _ACEOF
32436 cat confdefs.h >>conftest.$ac_ext
32437 cat >>conftest.$ac_ext <<_ACEOF
32438 /* end confdefs.h.  */
32439
32440 #ifdef HAVE_DB_185_H
32441 # include <db_185.h>
32442 #else
32443 # include <db.h>
32444 #endif
32445
32446 #ifndef DB_VERSION_MAJOR
32447 # define DB_VERSION_MAJOR 1
32448 #endif
32449
32450 #ifndef NULL
32451 #define NULL ((void*)0)
32452 #endif
32453
32454 int
32455 main ()
32456 {
32457
32458 #if DB_VERSION_MAJOR > 1
32459         {
32460                 char *version;
32461                 int major, minor, patch;
32462
32463                 version = db_version( &major, &minor, &patch );
32464
32465                 if( major != DB_VERSION_MAJOR ||
32466                         minor < DB_VERSION_MINOR )
32467                 {
32468                         printf("Berkeley DB version mismatch\n"
32469                                 "\theader: %s\n\tlibrary: %s\n",
32470                                 DB_VERSION_STRING, version);
32471                         return 1;
32472                 }
32473         }
32474 #endif
32475
32476 #if DB_VERSION_MAJOR > 2
32477         db_env_create( NULL, 0 );
32478 #elif DB_VERSION_MAJOR > 1
32479         db_appexit( NULL );
32480 #else
32481         (void) dbopen( NULL, 0, 0, 0, NULL);
32482 #endif
32483
32484   ;
32485   return 0;
32486 }
32487 _ACEOF
32488 rm -f conftest.$ac_objext conftest$ac_exeext
32489 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32490   (eval $ac_link) 2>conftest.er1
32491   ac_status=$?
32492   grep -v '^ *+' conftest.er1 >conftest.err
32493   rm -f conftest.er1
32494   cat conftest.err >&5
32495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32496   (exit $ac_status); } &&
32497          { ac_try='test -z "$ac_c_werror_flag"
32498                          || test ! -s conftest.err'
32499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32500   (eval $ac_try) 2>&5
32501   ac_status=$?
32502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32503   (exit $ac_status); }; } &&
32504          { ac_try='test -s conftest$ac_exeext'
32505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32506   (eval $ac_try) 2>&5
32507   ac_status=$?
32508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32509   (exit $ac_status); }; }; then
32510   ol_cv_db_db2=yes
32511 else
32512   echo "$as_me: failed program was:" >&5
32513 sed 's/^/| /' conftest.$ac_ext >&5
32514
32515 ol_cv_db_db2=no
32516 fi
32517 rm -f conftest.err conftest.$ac_objext \
32518       conftest$ac_exeext conftest.$ac_ext
32519
32520         LIBS="$ol_LIBS"
32521
32522 fi
32523 echo "$as_me:$LINENO: result: $ol_cv_db_db2" >&5
32524 echo "${ECHO_T}$ol_cv_db_db2" >&6
32525
32526         if test $ol_cv_db_db2 = yes ; then
32527                 ol_cv_lib_db=-ldb2
32528         fi
32529 fi
32530
32531 if test $ol_cv_lib_db = no ; then
32532         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-2)" >&5
32533 echo $ECHO_N "checking for Berkeley DB link (-ldb-2)... $ECHO_C" >&6
32534 if test "${ol_cv_db_db_2+set}" = set; then
32535   echo $ECHO_N "(cached) $ECHO_C" >&6
32536 else
32537
32538         ol_DB_LIB=-ldb-2
32539         ol_LIBS=$LIBS
32540         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32541
32542         cat >conftest.$ac_ext <<_ACEOF
32543 /* confdefs.h.  */
32544 _ACEOF
32545 cat confdefs.h >>conftest.$ac_ext
32546 cat >>conftest.$ac_ext <<_ACEOF
32547 /* end confdefs.h.  */
32548
32549 #ifdef HAVE_DB_185_H
32550 # include <db_185.h>
32551 #else
32552 # include <db.h>
32553 #endif
32554
32555 #ifndef DB_VERSION_MAJOR
32556 # define DB_VERSION_MAJOR 1
32557 #endif
32558
32559 #ifndef NULL
32560 #define NULL ((void*)0)
32561 #endif
32562
32563 int
32564 main ()
32565 {
32566
32567 #if DB_VERSION_MAJOR > 1
32568         {
32569                 char *version;
32570                 int major, minor, patch;
32571
32572                 version = db_version( &major, &minor, &patch );
32573
32574                 if( major != DB_VERSION_MAJOR ||
32575                         minor < DB_VERSION_MINOR )
32576                 {
32577                         printf("Berkeley DB version mismatch\n"
32578                                 "\theader: %s\n\tlibrary: %s\n",
32579                                 DB_VERSION_STRING, version);
32580                         return 1;
32581                 }
32582         }
32583 #endif
32584
32585 #if DB_VERSION_MAJOR > 2
32586         db_env_create( NULL, 0 );
32587 #elif DB_VERSION_MAJOR > 1
32588         db_appexit( NULL );
32589 #else
32590         (void) dbopen( NULL, 0, 0, 0, NULL);
32591 #endif
32592
32593   ;
32594   return 0;
32595 }
32596 _ACEOF
32597 rm -f conftest.$ac_objext conftest$ac_exeext
32598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32599   (eval $ac_link) 2>conftest.er1
32600   ac_status=$?
32601   grep -v '^ *+' conftest.er1 >conftest.err
32602   rm -f conftest.er1
32603   cat conftest.err >&5
32604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32605   (exit $ac_status); } &&
32606          { ac_try='test -z "$ac_c_werror_flag"
32607                          || test ! -s conftest.err'
32608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32609   (eval $ac_try) 2>&5
32610   ac_status=$?
32611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32612   (exit $ac_status); }; } &&
32613          { ac_try='test -s conftest$ac_exeext'
32614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32615   (eval $ac_try) 2>&5
32616   ac_status=$?
32617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32618   (exit $ac_status); }; }; then
32619   ol_cv_db_db_2=yes
32620 else
32621   echo "$as_me: failed program was:" >&5
32622 sed 's/^/| /' conftest.$ac_ext >&5
32623
32624 ol_cv_db_db_2=no
32625 fi
32626 rm -f conftest.err conftest.$ac_objext \
32627       conftest$ac_exeext conftest.$ac_ext
32628
32629         LIBS="$ol_LIBS"
32630
32631 fi
32632 echo "$as_me:$LINENO: result: $ol_cv_db_db_2" >&5
32633 echo "${ECHO_T}$ol_cv_db_db_2" >&6
32634
32635         if test $ol_cv_db_db_2 = yes ; then
32636                 ol_cv_lib_db=-ldb-2
32637         fi
32638 fi
32639
32640 if test $ol_cv_lib_db = no ; then
32641         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb1)" >&5
32642 echo $ECHO_N "checking for Berkeley DB link (-ldb1)... $ECHO_C" >&6
32643 if test "${ol_cv_db_db1+set}" = set; then
32644   echo $ECHO_N "(cached) $ECHO_C" >&6
32645 else
32646
32647         ol_DB_LIB=-ldb1
32648         ol_LIBS=$LIBS
32649         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32650
32651         cat >conftest.$ac_ext <<_ACEOF
32652 /* confdefs.h.  */
32653 _ACEOF
32654 cat confdefs.h >>conftest.$ac_ext
32655 cat >>conftest.$ac_ext <<_ACEOF
32656 /* end confdefs.h.  */
32657
32658 #ifdef HAVE_DB_185_H
32659 # include <db_185.h>
32660 #else
32661 # include <db.h>
32662 #endif
32663
32664 #ifndef DB_VERSION_MAJOR
32665 # define DB_VERSION_MAJOR 1
32666 #endif
32667
32668 #ifndef NULL
32669 #define NULL ((void*)0)
32670 #endif
32671
32672 int
32673 main ()
32674 {
32675
32676 #if DB_VERSION_MAJOR > 1
32677         {
32678                 char *version;
32679                 int major, minor, patch;
32680
32681                 version = db_version( &major, &minor, &patch );
32682
32683                 if( major != DB_VERSION_MAJOR ||
32684                         minor < DB_VERSION_MINOR )
32685                 {
32686                         printf("Berkeley DB version mismatch\n"
32687                                 "\theader: %s\n\tlibrary: %s\n",
32688                                 DB_VERSION_STRING, version);
32689                         return 1;
32690                 }
32691         }
32692 #endif
32693
32694 #if DB_VERSION_MAJOR > 2
32695         db_env_create( NULL, 0 );
32696 #elif DB_VERSION_MAJOR > 1
32697         db_appexit( NULL );
32698 #else
32699         (void) dbopen( NULL, 0, 0, 0, NULL);
32700 #endif
32701
32702   ;
32703   return 0;
32704 }
32705 _ACEOF
32706 rm -f conftest.$ac_objext conftest$ac_exeext
32707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32708   (eval $ac_link) 2>conftest.er1
32709   ac_status=$?
32710   grep -v '^ *+' conftest.er1 >conftest.err
32711   rm -f conftest.er1
32712   cat conftest.err >&5
32713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32714   (exit $ac_status); } &&
32715          { ac_try='test -z "$ac_c_werror_flag"
32716                          || test ! -s conftest.err'
32717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32718   (eval $ac_try) 2>&5
32719   ac_status=$?
32720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32721   (exit $ac_status); }; } &&
32722          { ac_try='test -s conftest$ac_exeext'
32723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32724   (eval $ac_try) 2>&5
32725   ac_status=$?
32726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32727   (exit $ac_status); }; }; then
32728   ol_cv_db_db1=yes
32729 else
32730   echo "$as_me: failed program was:" >&5
32731 sed 's/^/| /' conftest.$ac_ext >&5
32732
32733 ol_cv_db_db1=no
32734 fi
32735 rm -f conftest.err conftest.$ac_objext \
32736       conftest$ac_exeext conftest.$ac_ext
32737
32738         LIBS="$ol_LIBS"
32739
32740 fi
32741 echo "$as_me:$LINENO: result: $ol_cv_db_db1" >&5
32742 echo "${ECHO_T}$ol_cv_db_db1" >&6
32743
32744         if test $ol_cv_db_db1 = yes ; then
32745                 ol_cv_lib_db=-ldb1
32746         fi
32747 fi
32748
32749 if test $ol_cv_lib_db = no ; then
32750         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-1)" >&5
32751 echo $ECHO_N "checking for Berkeley DB link (-ldb-1)... $ECHO_C" >&6
32752 if test "${ol_cv_db_db_1+set}" = set; then
32753   echo $ECHO_N "(cached) $ECHO_C" >&6
32754 else
32755
32756         ol_DB_LIB=-ldb-1
32757         ol_LIBS=$LIBS
32758         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32759
32760         cat >conftest.$ac_ext <<_ACEOF
32761 /* confdefs.h.  */
32762 _ACEOF
32763 cat confdefs.h >>conftest.$ac_ext
32764 cat >>conftest.$ac_ext <<_ACEOF
32765 /* end confdefs.h.  */
32766
32767 #ifdef HAVE_DB_185_H
32768 # include <db_185.h>
32769 #else
32770 # include <db.h>
32771 #endif
32772
32773 #ifndef DB_VERSION_MAJOR
32774 # define DB_VERSION_MAJOR 1
32775 #endif
32776
32777 #ifndef NULL
32778 #define NULL ((void*)0)
32779 #endif
32780
32781 int
32782 main ()
32783 {
32784
32785 #if DB_VERSION_MAJOR > 1
32786         {
32787                 char *version;
32788                 int major, minor, patch;
32789
32790                 version = db_version( &major, &minor, &patch );
32791
32792                 if( major != DB_VERSION_MAJOR ||
32793                         minor < DB_VERSION_MINOR )
32794                 {
32795                         printf("Berkeley DB version mismatch\n"
32796                                 "\theader: %s\n\tlibrary: %s\n",
32797                                 DB_VERSION_STRING, version);
32798                         return 1;
32799                 }
32800         }
32801 #endif
32802
32803 #if DB_VERSION_MAJOR > 2
32804         db_env_create( NULL, 0 );
32805 #elif DB_VERSION_MAJOR > 1
32806         db_appexit( NULL );
32807 #else
32808         (void) dbopen( NULL, 0, 0, 0, NULL);
32809 #endif
32810
32811   ;
32812   return 0;
32813 }
32814 _ACEOF
32815 rm -f conftest.$ac_objext conftest$ac_exeext
32816 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32817   (eval $ac_link) 2>conftest.er1
32818   ac_status=$?
32819   grep -v '^ *+' conftest.er1 >conftest.err
32820   rm -f conftest.er1
32821   cat conftest.err >&5
32822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32823   (exit $ac_status); } &&
32824          { ac_try='test -z "$ac_c_werror_flag"
32825                          || test ! -s conftest.err'
32826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32827   (eval $ac_try) 2>&5
32828   ac_status=$?
32829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32830   (exit $ac_status); }; } &&
32831          { ac_try='test -s conftest$ac_exeext'
32832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32833   (eval $ac_try) 2>&5
32834   ac_status=$?
32835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32836   (exit $ac_status); }; }; then
32837   ol_cv_db_db_1=yes
32838 else
32839   echo "$as_me: failed program was:" >&5
32840 sed 's/^/| /' conftest.$ac_ext >&5
32841
32842 ol_cv_db_db_1=no
32843 fi
32844 rm -f conftest.err conftest.$ac_objext \
32845       conftest$ac_exeext conftest.$ac_ext
32846
32847         LIBS="$ol_LIBS"
32848
32849 fi
32850 echo "$as_me:$LINENO: result: $ol_cv_db_db_1" >&5
32851 echo "${ECHO_T}$ol_cv_db_db_1" >&6
32852
32853         if test $ol_cv_db_db_1 = yes ; then
32854                 ol_cv_lib_db=-ldb-1
32855         fi
32856 fi
32857
32858
32859         if test "$ol_cv_lib_db" != no ; then
32860                 ol_cv_berkeley_db=yes
32861                 echo "$as_me:$LINENO: checking for Berkeley DB version match" >&5
32862 echo $ECHO_N "checking for Berkeley DB version match... $ECHO_C" >&6
32863 if test "${ol_cv_berkeley_db_version+set}" = set; then
32864   echo $ECHO_N "(cached) $ECHO_C" >&6
32865 else
32866
32867         ol_LIBS="$LIBS"
32868         LIBS="$LTHREAD_LIBS $LIBS"
32869         if test $ol_cv_lib_db != yes ; then
32870                 LIBS="$ol_cv_lib_db $LIBS"
32871         fi
32872
32873         if test "$cross_compiling" = yes; then
32874   ol_cv_berkeley_db_version=cross
32875 else
32876   cat >conftest.$ac_ext <<_ACEOF
32877 /* confdefs.h.  */
32878 _ACEOF
32879 cat confdefs.h >>conftest.$ac_ext
32880 cat >>conftest.$ac_ext <<_ACEOF
32881 /* end confdefs.h.  */
32882
32883 #ifdef HAVE_DB_185_H
32884         choke me;
32885 #else
32886 #include <db.h>
32887 #endif
32888 #ifndef DB_VERSION_MAJOR
32889 # define DB_VERSION_MAJOR 1
32890 #endif
32891 #ifndef NULL
32892 #define NULL ((void *)0)
32893 #endif
32894 main()
32895 {
32896 #if DB_VERSION_MAJOR > 1
32897         char *version;
32898         int major, minor, patch;
32899
32900         version = db_version( &major, &minor, &patch );
32901
32902         if( major != DB_VERSION_MAJOR ||
32903                 minor != DB_VERSION_MINOR ||
32904                 patch != DB_VERSION_PATCH )
32905         {
32906                 printf("Berkeley DB version mismatch\n"
32907                         "\theader: %s\n\tlibrary: %s\n",
32908                         DB_VERSION_STRING, version);
32909                 return 1;
32910         }
32911 #endif
32912
32913         return 0;
32914 }
32915 _ACEOF
32916 rm -f conftest$ac_exeext
32917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32918   (eval $ac_link) 2>&5
32919   ac_status=$?
32920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32921   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32923   (eval $ac_try) 2>&5
32924   ac_status=$?
32925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32926   (exit $ac_status); }; }; then
32927   ol_cv_berkeley_db_version=yes
32928 else
32929   echo "$as_me: program exited with status $ac_status" >&5
32930 echo "$as_me: failed program was:" >&5
32931 sed 's/^/| /' conftest.$ac_ext >&5
32932
32933 ( exit $ac_status )
32934 ol_cv_berkeley_db_version=no
32935 fi
32936 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32937 fi
32938
32939         LIBS="$ol_LIBS"
32940
32941 fi
32942 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_version" >&5
32943 echo "${ECHO_T}$ol_cv_berkeley_db_version" >&6
32944
32945         if test $ol_cv_berkeley_db_version = no ; then
32946                 { { echo "$as_me:$LINENO: error: Berkeley DB version mismatch" >&5
32947 echo "$as_me: error: Berkeley DB version mismatch" >&2;}
32948    { (exit 1); exit 1; }; }
32949         fi
32950
32951                 echo "$as_me:$LINENO: checking for Berkeley DB thread support" >&5
32952 echo $ECHO_N "checking for Berkeley DB thread support... $ECHO_C" >&6
32953 if test "${ol_cv_berkeley_db_thread+set}" = set; then
32954   echo $ECHO_N "(cached) $ECHO_C" >&6
32955 else
32956
32957         ol_LIBS="$LIBS"
32958         LIBS="$LTHREAD_LIBS $LIBS"
32959         if test $ol_cv_lib_db != yes ; then
32960                 LIBS="$ol_cv_lib_db $LIBS"
32961         fi
32962
32963         if test "$cross_compiling" = yes; then
32964   ol_cv_berkeley_db_thread=cross
32965 else
32966   cat >conftest.$ac_ext <<_ACEOF
32967 /* confdefs.h.  */
32968 _ACEOF
32969 cat confdefs.h >>conftest.$ac_ext
32970 cat >>conftest.$ac_ext <<_ACEOF
32971 /* end confdefs.h.  */
32972
32973 #ifdef HAVE_DB_185_H
32974         choke me;
32975 #else
32976 #include <db.h>
32977 #endif
32978 #ifndef NULL
32979 #define NULL ((void *)0)
32980 #endif
32981 main()
32982 {
32983         int rc;
32984         u_int32_t flags = DB_CREATE |
32985 #ifdef DB_PRIVATE
32986                 DB_PRIVATE |
32987 #endif
32988                 DB_THREAD;
32989
32990 #if DB_VERSION_MAJOR > 2
32991         DB_ENV *env = NULL;
32992
32993         rc = db_env_create( &env, 0 );
32994
32995         flags |= DB_INIT_MPOOL;
32996 #ifdef DB_MPOOL_PRIVATE
32997         flags |= DB_MPOOL_PRIVATE;
32998 #endif
32999
33000         if( rc ) {
33001                 printf("BerkeleyDB: %s\n", db_strerror(rc) );
33002                 return rc;
33003         }
33004
33005 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
33006         rc = env->open( env, NULL, flags, 0 );
33007 #else
33008         rc = env->open( env, NULL, NULL, flags, 0 );
33009 #endif
33010
33011         if ( rc == 0 ) {
33012                 rc = env->close( env, 0 );
33013         }
33014
33015         if( rc ) {
33016                 printf("BerkeleyDB: %s\n", db_strerror(rc) );
33017                 return rc;
33018         }
33019
33020 #else
33021         DB_ENV env;
33022         memset( &env, '\0', sizeof(env) );
33023
33024         rc = db_appinit( NULL, NULL, &env, flags );
33025
33026         if( rc == 0 ) {
33027                 db_appexit( &env );
33028         }
33029
33030         unlink("__db_mpool.share");
33031         unlink("__db_lock.share");
33032 #endif
33033
33034         return rc;
33035 }
33036 _ACEOF
33037 rm -f conftest$ac_exeext
33038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33039   (eval $ac_link) 2>&5
33040   ac_status=$?
33041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33042   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33044   (eval $ac_try) 2>&5
33045   ac_status=$?
33046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33047   (exit $ac_status); }; }; then
33048   ol_cv_berkeley_db_thread=yes
33049 else
33050   echo "$as_me: program exited with status $ac_status" >&5
33051 echo "$as_me: failed program was:" >&5
33052 sed 's/^/| /' conftest.$ac_ext >&5
33053
33054 ( exit $ac_status )
33055 ol_cv_berkeley_db_thread=no
33056 fi
33057 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33058 fi
33059
33060         LIBS="$ol_LIBS"
33061
33062 fi
33063 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_thread" >&5
33064 echo "${ECHO_T}$ol_cv_berkeley_db_thread" >&6
33065
33066         if test $ol_cv_berkeley_db_thread != no ; then
33067
33068 cat >>confdefs.h <<\_ACEOF
33069 #define HAVE_BERKELEY_DB_THREAD 1
33070 _ACEOF
33071
33072         fi
33073
33074         fi
33075 fi
33076
33077         fi
33078
33079         if test $ol_cv_berkeley_db != no ; then
33080
33081 cat >>confdefs.h <<\_ACEOF
33082 #define HAVE_BERKELEY_DB 1
33083 _ACEOF
33084
33085
33086                 ol_link_ldbm=berkeley
33087                 ol_enable_ldbm_api=berkeley
33088
33089                 if test $ol_enable_ldbm_type = hash ; then
33090
33091 cat >>confdefs.h <<\_ACEOF
33092 #define LDBM_USE_DBHASH 1
33093 _ACEOF
33094
33095                 else
33096
33097 cat >>confdefs.h <<\_ACEOF
33098 #define LDBM_USE_DBBTREE 1
33099 _ACEOF
33100
33101                 fi
33102
33103                                                 if test $ol_cv_lib_db != yes ; then
33104                         LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
33105                 fi
33106         fi
33107 fi
33108
33109 if test $ol_enable_bdb != no -o $ol_enable_hdb != no; then
33110         if test $ol_link_ldbm != berkeley ; then
33111                 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB not available" >&5
33112 echo "$as_me: error: BDB/HDB: BerkeleyDB not available" >&2;}
33113    { (exit 1); exit 1; }; }
33114         else
33115                 echo "$as_me:$LINENO: checking Berkeley DB version for BDB/HDB backends" >&5
33116 echo $ECHO_N "checking Berkeley DB version for BDB/HDB backends... $ECHO_C" >&6
33117 if test "${ol_cv_bdb_compat+set}" = set; then
33118   echo $ECHO_N "(cached) $ECHO_C" >&6
33119 else
33120
33121         cat >conftest.$ac_ext <<_ACEOF
33122 /* confdefs.h.  */
33123 _ACEOF
33124 cat confdefs.h >>conftest.$ac_ext
33125 cat >>conftest.$ac_ext <<_ACEOF
33126 /* end confdefs.h.  */
33127
33128 #include <db.h>
33129
33130  /* this check could be improved */
33131 #ifndef DB_VERSION_MAJOR
33132 #       define DB_VERSION_MAJOR 1
33133 #endif
33134 #ifndef DB_VERSION_MINOR
33135 #       define DB_VERSION_MINOR 0
33136 #endif
33137
33138 /* require 4.2 or later */
33139 #if (DB_VERSION_MAJOR >= 4) && (DB_VERSION_MINOR >= 2)
33140         __db_version_compat
33141 #endif
33142
33143 _ACEOF
33144 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33145   $EGREP "__db_version_compat" >/dev/null 2>&1; then
33146   ol_cv_bdb_compat=yes
33147 else
33148   ol_cv_bdb_compat=no
33149 fi
33150 rm -f conftest*
33151
33152 fi
33153 echo "$as_me:$LINENO: result: $ol_cv_bdb_compat" >&5
33154 echo "${ECHO_T}$ol_cv_bdb_compat" >&6
33155
33156
33157                 if test $ol_cv_bdb_compat != yes ; then
33158                         { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB version incompatible" >&5
33159 echo "$as_me: error: BDB/HDB: BerkeleyDB version incompatible" >&2;}
33160    { (exit 1); exit 1; }; }
33161                 fi
33162         fi
33163 fi
33164
33165 if test $ol_link_ldbm = no -a $ol_enable_ldbm_type = btree ; then
33166         { echo "$as_me:$LINENO: WARNING: Could not find LDBM with BTREE support" >&5
33167 echo "$as_me: WARNING: Could not find LDBM with BTREE support" >&2;}
33168         ol_enable_ldbm_api=none
33169 fi
33170
33171 if test $ol_enable_ldbm_api = auto -o $ol_enable_ldbm_api = mdbm ; then
33172         echo "$as_me:$LINENO: checking for MDBM library" >&5
33173 echo $ECHO_N "checking for MDBM library... $ECHO_C" >&6
33174 if test "${ol_cv_lib_mdbm+set}" = set; then
33175   echo $ECHO_N "(cached) $ECHO_C" >&6
33176 else
33177         ol_LIBS="$LIBS"
33178         echo "$as_me:$LINENO: checking for mdbm_set_chain" >&5
33179 echo $ECHO_N "checking for mdbm_set_chain... $ECHO_C" >&6
33180 if test "${ac_cv_func_mdbm_set_chain+set}" = set; then
33181   echo $ECHO_N "(cached) $ECHO_C" >&6
33182 else
33183   cat >conftest.$ac_ext <<_ACEOF
33184 /* confdefs.h.  */
33185 _ACEOF
33186 cat confdefs.h >>conftest.$ac_ext
33187 cat >>conftest.$ac_ext <<_ACEOF
33188 /* end confdefs.h.  */
33189 /* Define mdbm_set_chain to an innocuous variant, in case <limits.h> declares mdbm_set_chain.
33190    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33191 #define mdbm_set_chain innocuous_mdbm_set_chain
33192
33193 /* System header to define __stub macros and hopefully few prototypes,
33194     which can conflict with char mdbm_set_chain (); below.
33195     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33196     <limits.h> exists even on freestanding compilers.  */
33197
33198 #ifdef __STDC__
33199 # include <limits.h>
33200 #else
33201 # include <assert.h>
33202 #endif
33203
33204 #undef mdbm_set_chain
33205
33206 /* Override any gcc2 internal prototype to avoid an error.  */
33207 #ifdef __cplusplus
33208 extern "C"
33209 {
33210 #endif
33211 /* We use char because int might match the return type of a gcc2
33212    builtin and then its argument prototype would still apply.  */
33213 char mdbm_set_chain ();
33214 /* The GNU C library defines this for functions which it implements
33215     to always fail with ENOSYS.  Some functions are actually named
33216     something starting with __ and the normal name is an alias.  */
33217 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
33218 choke me
33219 #else
33220 char (*f) () = mdbm_set_chain;
33221 #endif
33222 #ifdef __cplusplus
33223 }
33224 #endif
33225
33226 int
33227 main ()
33228 {
33229 return f != mdbm_set_chain;
33230   ;
33231   return 0;
33232 }
33233 _ACEOF
33234 rm -f conftest.$ac_objext conftest$ac_exeext
33235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33236   (eval $ac_link) 2>conftest.er1
33237   ac_status=$?
33238   grep -v '^ *+' conftest.er1 >conftest.err
33239   rm -f conftest.er1
33240   cat conftest.err >&5
33241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33242   (exit $ac_status); } &&
33243          { ac_try='test -z "$ac_c_werror_flag"
33244                          || test ! -s conftest.err'
33245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33246   (eval $ac_try) 2>&5
33247   ac_status=$?
33248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33249   (exit $ac_status); }; } &&
33250          { ac_try='test -s conftest$ac_exeext'
33251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33252   (eval $ac_try) 2>&5
33253   ac_status=$?
33254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33255   (exit $ac_status); }; }; then
33256   ac_cv_func_mdbm_set_chain=yes
33257 else
33258   echo "$as_me: failed program was:" >&5
33259 sed 's/^/| /' conftest.$ac_ext >&5
33260
33261 ac_cv_func_mdbm_set_chain=no
33262 fi
33263 rm -f conftest.err conftest.$ac_objext \
33264       conftest$ac_exeext conftest.$ac_ext
33265 fi
33266 echo "$as_me:$LINENO: result: $ac_cv_func_mdbm_set_chain" >&5
33267 echo "${ECHO_T}$ac_cv_func_mdbm_set_chain" >&6
33268 if test $ac_cv_func_mdbm_set_chain = yes; then
33269   ol_cv_lib_mdbm=yes
33270 else
33271
33272                 echo "$as_me:$LINENO: checking for mdbm_set_chain in -lmdbm" >&5
33273 echo $ECHO_N "checking for mdbm_set_chain in -lmdbm... $ECHO_C" >&6
33274 if test "${ac_cv_lib_mdbm_mdbm_set_chain+set}" = set; then
33275   echo $ECHO_N "(cached) $ECHO_C" >&6
33276 else
33277   ac_check_lib_save_LIBS=$LIBS
33278 LIBS="-lmdbm  $LIBS"
33279 cat >conftest.$ac_ext <<_ACEOF
33280 /* confdefs.h.  */
33281 _ACEOF
33282 cat confdefs.h >>conftest.$ac_ext
33283 cat >>conftest.$ac_ext <<_ACEOF
33284 /* end confdefs.h.  */
33285
33286 /* Override any gcc2 internal prototype to avoid an error.  */
33287 #ifdef __cplusplus
33288 extern "C"
33289 #endif
33290 /* We use char because int might match the return type of a gcc2
33291    builtin and then its argument prototype would still apply.  */
33292 char mdbm_set_chain ();
33293 int
33294 main ()
33295 {
33296 mdbm_set_chain ();
33297   ;
33298   return 0;
33299 }
33300 _ACEOF
33301 rm -f conftest.$ac_objext conftest$ac_exeext
33302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33303   (eval $ac_link) 2>conftest.er1
33304   ac_status=$?
33305   grep -v '^ *+' conftest.er1 >conftest.err
33306   rm -f conftest.er1
33307   cat conftest.err >&5
33308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33309   (exit $ac_status); } &&
33310          { ac_try='test -z "$ac_c_werror_flag"
33311                          || test ! -s conftest.err'
33312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33313   (eval $ac_try) 2>&5
33314   ac_status=$?
33315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33316   (exit $ac_status); }; } &&
33317          { ac_try='test -s conftest$ac_exeext'
33318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33319   (eval $ac_try) 2>&5
33320   ac_status=$?
33321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33322   (exit $ac_status); }; }; then
33323   ac_cv_lib_mdbm_mdbm_set_chain=yes
33324 else
33325   echo "$as_me: failed program was:" >&5
33326 sed 's/^/| /' conftest.$ac_ext >&5
33327
33328 ac_cv_lib_mdbm_mdbm_set_chain=no
33329 fi
33330 rm -f conftest.err conftest.$ac_objext \
33331       conftest$ac_exeext conftest.$ac_ext
33332 LIBS=$ac_check_lib_save_LIBS
33333 fi
33334 echo "$as_me:$LINENO: result: $ac_cv_lib_mdbm_mdbm_set_chain" >&5
33335 echo "${ECHO_T}$ac_cv_lib_mdbm_mdbm_set_chain" >&6
33336 if test $ac_cv_lib_mdbm_mdbm_set_chain = yes; then
33337   ol_cv_lib_mdbm=-lmdbm
33338 else
33339   ol_cv_lib_mdbm=no
33340 fi
33341
33342
33343 fi
33344
33345         LIBS="$ol_LIBS"
33346
33347 fi
33348 echo "$as_me:$LINENO: result: $ol_cv_lib_mdbm" >&5
33349 echo "${ECHO_T}$ol_cv_lib_mdbm" >&6
33350
33351
33352
33353 for ac_header in mdbm.h
33354 do
33355 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33356 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33357   echo "$as_me:$LINENO: checking for $ac_header" >&5
33358 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33359 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33360   echo $ECHO_N "(cached) $ECHO_C" >&6
33361 fi
33362 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33363 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33364 else
33365   # Is the header compilable?
33366 echo "$as_me:$LINENO: checking $ac_header usability" >&5
33367 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
33368 cat >conftest.$ac_ext <<_ACEOF
33369 /* confdefs.h.  */
33370 _ACEOF
33371 cat confdefs.h >>conftest.$ac_ext
33372 cat >>conftest.$ac_ext <<_ACEOF
33373 /* end confdefs.h.  */
33374 $ac_includes_default
33375 #include <$ac_header>
33376 _ACEOF
33377 rm -f conftest.$ac_objext
33378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33379   (eval $ac_compile) 2>conftest.er1
33380   ac_status=$?
33381   grep -v '^ *+' conftest.er1 >conftest.err
33382   rm -f conftest.er1
33383   cat conftest.err >&5
33384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33385   (exit $ac_status); } &&
33386          { ac_try='test -z "$ac_c_werror_flag"
33387                          || test ! -s conftest.err'
33388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33389   (eval $ac_try) 2>&5
33390   ac_status=$?
33391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33392   (exit $ac_status); }; } &&
33393          { ac_try='test -s conftest.$ac_objext'
33394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33395   (eval $ac_try) 2>&5
33396   ac_status=$?
33397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33398   (exit $ac_status); }; }; then
33399   ac_header_compiler=yes
33400 else
33401   echo "$as_me: failed program was:" >&5
33402 sed 's/^/| /' conftest.$ac_ext >&5
33403
33404 ac_header_compiler=no
33405 fi
33406 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33407 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33408 echo "${ECHO_T}$ac_header_compiler" >&6
33409
33410 # Is the header present?
33411 echo "$as_me:$LINENO: checking $ac_header presence" >&5
33412 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
33413 cat >conftest.$ac_ext <<_ACEOF
33414 /* confdefs.h.  */
33415 _ACEOF
33416 cat confdefs.h >>conftest.$ac_ext
33417 cat >>conftest.$ac_ext <<_ACEOF
33418 /* end confdefs.h.  */
33419 #include <$ac_header>
33420 _ACEOF
33421 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33422   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33423   ac_status=$?
33424   grep -v '^ *+' conftest.er1 >conftest.err
33425   rm -f conftest.er1
33426   cat conftest.err >&5
33427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33428   (exit $ac_status); } >/dev/null; then
33429   if test -s conftest.err; then
33430     ac_cpp_err=$ac_c_preproc_warn_flag
33431     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33432   else
33433     ac_cpp_err=
33434   fi
33435 else
33436   ac_cpp_err=yes
33437 fi
33438 if test -z "$ac_cpp_err"; then
33439   ac_header_preproc=yes
33440 else
33441   echo "$as_me: failed program was:" >&5
33442 sed 's/^/| /' conftest.$ac_ext >&5
33443
33444   ac_header_preproc=no
33445 fi
33446 rm -f conftest.err conftest.$ac_ext
33447 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33448 echo "${ECHO_T}$ac_header_preproc" >&6
33449
33450 # So?  What about this header?
33451 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33452   yes:no: )
33453     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33454 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33455     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33456 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33457     ac_header_preproc=yes
33458     ;;
33459   no:yes:* )
33460     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33461 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33462     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
33463 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
33464     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33465 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33466     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
33467 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
33468     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33469 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33470     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33471 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33472     (
33473       cat <<\_ASBOX
33474 ## ------------------------------------------ ##
33475 ## Report this to the AC_PACKAGE_NAME lists.  ##
33476 ## ------------------------------------------ ##
33477 _ASBOX
33478     ) |
33479       sed "s/^/$as_me: WARNING:     /" >&2
33480     ;;
33481 esac
33482 echo "$as_me:$LINENO: checking for $ac_header" >&5
33483 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33484 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33485   echo $ECHO_N "(cached) $ECHO_C" >&6
33486 else
33487   eval "$as_ac_Header=\$ac_header_preproc"
33488 fi
33489 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33490 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33491
33492 fi
33493 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33494   cat >>confdefs.h <<_ACEOF
33495 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33496 _ACEOF
33497
33498 fi
33499
33500 done
33501
33502  echo "$as_me:$LINENO: checking for db" >&5
33503 echo $ECHO_N "checking for db... $ECHO_C" >&6
33504 if test "${ol_cv_mdbm+set}" = set; then
33505   echo $ECHO_N "(cached) $ECHO_C" >&6
33506 else
33507
33508         if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
33509                 ol_cv_mdbm=no
33510         else
33511                 ol_cv_mdbm=yes
33512         fi
33513
33514 fi
33515 echo "$as_me:$LINENO: result: $ol_cv_mdbm" >&5
33516 echo "${ECHO_T}$ol_cv_mdbm" >&6
33517  if test $ol_cv_mdbm = yes ; then
33518
33519 cat >>confdefs.h <<\_ACEOF
33520 #define HAVE_MDBM 1
33521 _ACEOF
33522
33523  fi
33524
33525
33526         if test $ol_cv_mdbm = yes ; then
33527                 ol_link_ldbm=mdbm
33528                 ol_enable_ldbm_api=mdbm
33529                 if test $ol_cv_lib_mdbm != yes ; then
33530                         LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
33531                 fi
33532         fi
33533 fi
33534
33535 if test $ol_enable_ldbm_api = auto -o $ol_enable_ldbm_api = gdbm ; then
33536         echo "$as_me:$LINENO: checking for GDBM library" >&5
33537 echo $ECHO_N "checking for GDBM library... $ECHO_C" >&6
33538 if test "${ol_cv_lib_gdbm+set}" = set; then
33539   echo $ECHO_N "(cached) $ECHO_C" >&6
33540 else
33541         ol_LIBS="$LIBS"
33542         echo "$as_me:$LINENO: checking for gdbm_open" >&5
33543 echo $ECHO_N "checking for gdbm_open... $ECHO_C" >&6
33544 if test "${ac_cv_func_gdbm_open+set}" = set; then
33545   echo $ECHO_N "(cached) $ECHO_C" >&6
33546 else
33547   cat >conftest.$ac_ext <<_ACEOF
33548 /* confdefs.h.  */
33549 _ACEOF
33550 cat confdefs.h >>conftest.$ac_ext
33551 cat >>conftest.$ac_ext <<_ACEOF
33552 /* end confdefs.h.  */
33553 /* Define gdbm_open to an innocuous variant, in case <limits.h> declares gdbm_open.
33554    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33555 #define gdbm_open innocuous_gdbm_open
33556
33557 /* System header to define __stub macros and hopefully few prototypes,
33558     which can conflict with char gdbm_open (); below.
33559     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33560     <limits.h> exists even on freestanding compilers.  */
33561
33562 #ifdef __STDC__
33563 # include <limits.h>
33564 #else
33565 # include <assert.h>
33566 #endif
33567
33568 #undef gdbm_open
33569
33570 /* Override any gcc2 internal prototype to avoid an error.  */
33571 #ifdef __cplusplus
33572 extern "C"
33573 {
33574 #endif
33575 /* We use char because int might match the return type of a gcc2
33576    builtin and then its argument prototype would still apply.  */
33577 char gdbm_open ();
33578 /* The GNU C library defines this for functions which it implements
33579     to always fail with ENOSYS.  Some functions are actually named
33580     something starting with __ and the normal name is an alias.  */
33581 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
33582 choke me
33583 #else
33584 char (*f) () = gdbm_open;
33585 #endif
33586 #ifdef __cplusplus
33587 }
33588 #endif
33589
33590 int
33591 main ()
33592 {
33593 return f != gdbm_open;
33594   ;
33595   return 0;
33596 }
33597 _ACEOF
33598 rm -f conftest.$ac_objext conftest$ac_exeext
33599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33600   (eval $ac_link) 2>conftest.er1
33601   ac_status=$?
33602   grep -v '^ *+' conftest.er1 >conftest.err
33603   rm -f conftest.er1
33604   cat conftest.err >&5
33605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33606   (exit $ac_status); } &&
33607          { ac_try='test -z "$ac_c_werror_flag"
33608                          || test ! -s conftest.err'
33609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33610   (eval $ac_try) 2>&5
33611   ac_status=$?
33612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33613   (exit $ac_status); }; } &&
33614          { ac_try='test -s conftest$ac_exeext'
33615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33616   (eval $ac_try) 2>&5
33617   ac_status=$?
33618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33619   (exit $ac_status); }; }; then
33620   ac_cv_func_gdbm_open=yes
33621 else
33622   echo "$as_me: failed program was:" >&5
33623 sed 's/^/| /' conftest.$ac_ext >&5
33624
33625 ac_cv_func_gdbm_open=no
33626 fi
33627 rm -f conftest.err conftest.$ac_objext \
33628       conftest$ac_exeext conftest.$ac_ext
33629 fi
33630 echo "$as_me:$LINENO: result: $ac_cv_func_gdbm_open" >&5
33631 echo "${ECHO_T}$ac_cv_func_gdbm_open" >&6
33632 if test $ac_cv_func_gdbm_open = yes; then
33633   ol_cv_lib_gdbm=yes
33634 else
33635
33636                 echo "$as_me:$LINENO: checking for gdbm_open in -lgdbm" >&5
33637 echo $ECHO_N "checking for gdbm_open in -lgdbm... $ECHO_C" >&6
33638 if test "${ac_cv_lib_gdbm_gdbm_open+set}" = set; then
33639   echo $ECHO_N "(cached) $ECHO_C" >&6
33640 else
33641   ac_check_lib_save_LIBS=$LIBS
33642 LIBS="-lgdbm  $LIBS"
33643 cat >conftest.$ac_ext <<_ACEOF
33644 /* confdefs.h.  */
33645 _ACEOF
33646 cat confdefs.h >>conftest.$ac_ext
33647 cat >>conftest.$ac_ext <<_ACEOF
33648 /* end confdefs.h.  */
33649
33650 /* Override any gcc2 internal prototype to avoid an error.  */
33651 #ifdef __cplusplus
33652 extern "C"
33653 #endif
33654 /* We use char because int might match the return type of a gcc2
33655    builtin and then its argument prototype would still apply.  */
33656 char gdbm_open ();
33657 int
33658 main ()
33659 {
33660 gdbm_open ();
33661   ;
33662   return 0;
33663 }
33664 _ACEOF
33665 rm -f conftest.$ac_objext conftest$ac_exeext
33666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33667   (eval $ac_link) 2>conftest.er1
33668   ac_status=$?
33669   grep -v '^ *+' conftest.er1 >conftest.err
33670   rm -f conftest.er1
33671   cat conftest.err >&5
33672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33673   (exit $ac_status); } &&
33674          { ac_try='test -z "$ac_c_werror_flag"
33675                          || test ! -s conftest.err'
33676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33677   (eval $ac_try) 2>&5
33678   ac_status=$?
33679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33680   (exit $ac_status); }; } &&
33681          { ac_try='test -s conftest$ac_exeext'
33682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33683   (eval $ac_try) 2>&5
33684   ac_status=$?
33685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33686   (exit $ac_status); }; }; then
33687   ac_cv_lib_gdbm_gdbm_open=yes
33688 else
33689   echo "$as_me: failed program was:" >&5
33690 sed 's/^/| /' conftest.$ac_ext >&5
33691
33692 ac_cv_lib_gdbm_gdbm_open=no
33693 fi
33694 rm -f conftest.err conftest.$ac_objext \
33695       conftest$ac_exeext conftest.$ac_ext
33696 LIBS=$ac_check_lib_save_LIBS
33697 fi
33698 echo "$as_me:$LINENO: result: $ac_cv_lib_gdbm_gdbm_open" >&5
33699 echo "${ECHO_T}$ac_cv_lib_gdbm_gdbm_open" >&6
33700 if test $ac_cv_lib_gdbm_gdbm_open = yes; then
33701   ol_cv_lib_gdbm=-lgdbm
33702 else
33703   ol_cv_lib_gdbm=no
33704 fi
33705
33706
33707 fi
33708
33709         LIBS="$ol_LIBS"
33710
33711 fi
33712 echo "$as_me:$LINENO: result: $ol_cv_lib_gdbm" >&5
33713 echo "${ECHO_T}$ol_cv_lib_gdbm" >&6
33714
33715
33716
33717 for ac_header in gdbm.h
33718 do
33719 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33720 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33721   echo "$as_me:$LINENO: checking for $ac_header" >&5
33722 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33723 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33724   echo $ECHO_N "(cached) $ECHO_C" >&6
33725 fi
33726 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33727 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33728 else
33729   # Is the header compilable?
33730 echo "$as_me:$LINENO: checking $ac_header usability" >&5
33731 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
33732 cat >conftest.$ac_ext <<_ACEOF
33733 /* confdefs.h.  */
33734 _ACEOF
33735 cat confdefs.h >>conftest.$ac_ext
33736 cat >>conftest.$ac_ext <<_ACEOF
33737 /* end confdefs.h.  */
33738 $ac_includes_default
33739 #include <$ac_header>
33740 _ACEOF
33741 rm -f conftest.$ac_objext
33742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33743   (eval $ac_compile) 2>conftest.er1
33744   ac_status=$?
33745   grep -v '^ *+' conftest.er1 >conftest.err
33746   rm -f conftest.er1
33747   cat conftest.err >&5
33748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33749   (exit $ac_status); } &&
33750          { ac_try='test -z "$ac_c_werror_flag"
33751                          || test ! -s conftest.err'
33752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33753   (eval $ac_try) 2>&5
33754   ac_status=$?
33755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33756   (exit $ac_status); }; } &&
33757          { ac_try='test -s conftest.$ac_objext'
33758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33759   (eval $ac_try) 2>&5
33760   ac_status=$?
33761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33762   (exit $ac_status); }; }; then
33763   ac_header_compiler=yes
33764 else
33765   echo "$as_me: failed program was:" >&5
33766 sed 's/^/| /' conftest.$ac_ext >&5
33767
33768 ac_header_compiler=no
33769 fi
33770 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33771 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33772 echo "${ECHO_T}$ac_header_compiler" >&6
33773
33774 # Is the header present?
33775 echo "$as_me:$LINENO: checking $ac_header presence" >&5
33776 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
33777 cat >conftest.$ac_ext <<_ACEOF
33778 /* confdefs.h.  */
33779 _ACEOF
33780 cat confdefs.h >>conftest.$ac_ext
33781 cat >>conftest.$ac_ext <<_ACEOF
33782 /* end confdefs.h.  */
33783 #include <$ac_header>
33784 _ACEOF
33785 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33786   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33787   ac_status=$?
33788   grep -v '^ *+' conftest.er1 >conftest.err
33789   rm -f conftest.er1
33790   cat conftest.err >&5
33791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33792   (exit $ac_status); } >/dev/null; then
33793   if test -s conftest.err; then
33794     ac_cpp_err=$ac_c_preproc_warn_flag
33795     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33796   else
33797     ac_cpp_err=
33798   fi
33799 else
33800   ac_cpp_err=yes
33801 fi
33802 if test -z "$ac_cpp_err"; then
33803   ac_header_preproc=yes
33804 else
33805   echo "$as_me: failed program was:" >&5
33806 sed 's/^/| /' conftest.$ac_ext >&5
33807
33808   ac_header_preproc=no
33809 fi
33810 rm -f conftest.err conftest.$ac_ext
33811 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33812 echo "${ECHO_T}$ac_header_preproc" >&6
33813
33814 # So?  What about this header?
33815 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33816   yes:no: )
33817     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33818 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33819     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33820 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33821     ac_header_preproc=yes
33822     ;;
33823   no:yes:* )
33824     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33825 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33826     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
33827 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
33828     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33829 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33830     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
33831 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
33832     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33833 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33834     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33835 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33836     (
33837       cat <<\_ASBOX
33838 ## ------------------------------------------ ##
33839 ## Report this to the AC_PACKAGE_NAME lists.  ##
33840 ## ------------------------------------------ ##
33841 _ASBOX
33842     ) |
33843       sed "s/^/$as_me: WARNING:     /" >&2
33844     ;;
33845 esac
33846 echo "$as_me:$LINENO: checking for $ac_header" >&5
33847 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33848 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33849   echo $ECHO_N "(cached) $ECHO_C" >&6
33850 else
33851   eval "$as_ac_Header=\$ac_header_preproc"
33852 fi
33853 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33854 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33855
33856 fi
33857 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33858   cat >>confdefs.h <<_ACEOF
33859 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33860 _ACEOF
33861
33862 fi
33863
33864 done
33865
33866  echo "$as_me:$LINENO: checking for db" >&5
33867 echo $ECHO_N "checking for db... $ECHO_C" >&6
33868 if test "${ol_cv_gdbm+set}" = set; then
33869   echo $ECHO_N "(cached) $ECHO_C" >&6
33870 else
33871
33872         if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
33873                 ol_cv_gdbm=no
33874         else
33875                 ol_cv_gdbm=yes
33876         fi
33877
33878 fi
33879 echo "$as_me:$LINENO: result: $ol_cv_gdbm" >&5
33880 echo "${ECHO_T}$ol_cv_gdbm" >&6
33881  if test $ol_cv_gdbm = yes ; then
33882
33883 cat >>confdefs.h <<\_ACEOF
33884 #define HAVE_GDBM 1
33885 _ACEOF
33886
33887  fi
33888
33889
33890         if test $ol_cv_gdbm = yes ; then
33891                 ol_link_ldbm=gdbm
33892                 ol_enable_ldbm_api=gdbm
33893
33894                 if test $ol_cv_lib_gdbm != yes ; then
33895                         LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
33896                 fi
33897         fi
33898 fi
33899
33900 if test $ol_enable_ldbm_api = ndbm ; then
33901         echo "$as_me:$LINENO: checking for NDBM library" >&5
33902 echo $ECHO_N "checking for NDBM library... $ECHO_C" >&6
33903 if test "${ol_cv_lib_ndbm+set}" = set; then
33904   echo $ECHO_N "(cached) $ECHO_C" >&6
33905 else
33906         ol_LIBS="$LIBS"
33907         echo "$as_me:$LINENO: checking for dbm_open" >&5
33908 echo $ECHO_N "checking for dbm_open... $ECHO_C" >&6
33909 if test "${ac_cv_func_dbm_open+set}" = set; then
33910   echo $ECHO_N "(cached) $ECHO_C" >&6
33911 else
33912   cat >conftest.$ac_ext <<_ACEOF
33913 /* confdefs.h.  */
33914 _ACEOF
33915 cat confdefs.h >>conftest.$ac_ext
33916 cat >>conftest.$ac_ext <<_ACEOF
33917 /* end confdefs.h.  */
33918 /* Define dbm_open to an innocuous variant, in case <limits.h> declares dbm_open.
33919    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33920 #define dbm_open innocuous_dbm_open
33921
33922 /* System header to define __stub macros and hopefully few prototypes,
33923     which can conflict with char dbm_open (); below.
33924     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33925     <limits.h> exists even on freestanding compilers.  */
33926
33927 #ifdef __STDC__
33928 # include <limits.h>
33929 #else
33930 # include <assert.h>
33931 #endif
33932
33933 #undef dbm_open
33934
33935 /* Override any gcc2 internal prototype to avoid an error.  */
33936 #ifdef __cplusplus
33937 extern "C"
33938 {
33939 #endif
33940 /* We use char because int might match the return type of a gcc2
33941    builtin and then its argument prototype would still apply.  */
33942 char dbm_open ();
33943 /* The GNU C library defines this for functions which it implements
33944     to always fail with ENOSYS.  Some functions are actually named
33945     something starting with __ and the normal name is an alias.  */
33946 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
33947 choke me
33948 #else
33949 char (*f) () = dbm_open;
33950 #endif
33951 #ifdef __cplusplus
33952 }
33953 #endif
33954
33955 int
33956 main ()
33957 {
33958 return f != dbm_open;
33959   ;
33960   return 0;
33961 }
33962 _ACEOF
33963 rm -f conftest.$ac_objext conftest$ac_exeext
33964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33965   (eval $ac_link) 2>conftest.er1
33966   ac_status=$?
33967   grep -v '^ *+' conftest.er1 >conftest.err
33968   rm -f conftest.er1
33969   cat conftest.err >&5
33970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33971   (exit $ac_status); } &&
33972          { ac_try='test -z "$ac_c_werror_flag"
33973                          || test ! -s conftest.err'
33974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33975   (eval $ac_try) 2>&5
33976   ac_status=$?
33977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33978   (exit $ac_status); }; } &&
33979          { ac_try='test -s conftest$ac_exeext'
33980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33981   (eval $ac_try) 2>&5
33982   ac_status=$?
33983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33984   (exit $ac_status); }; }; then
33985   ac_cv_func_dbm_open=yes
33986 else
33987   echo "$as_me: failed program was:" >&5
33988 sed 's/^/| /' conftest.$ac_ext >&5
33989
33990 ac_cv_func_dbm_open=no
33991 fi
33992 rm -f conftest.err conftest.$ac_objext \
33993       conftest$ac_exeext conftest.$ac_ext
33994 fi
33995 echo "$as_me:$LINENO: result: $ac_cv_func_dbm_open" >&5
33996 echo "${ECHO_T}$ac_cv_func_dbm_open" >&6
33997 if test $ac_cv_func_dbm_open = yes; then
33998   ol_cv_lib_ndbm=yes
33999 else
34000
34001                 echo "$as_me:$LINENO: checking for dbm_open in -lndbm" >&5
34002 echo $ECHO_N "checking for dbm_open in -lndbm... $ECHO_C" >&6
34003 if test "${ac_cv_lib_ndbm_dbm_open+set}" = set; then
34004   echo $ECHO_N "(cached) $ECHO_C" >&6
34005 else
34006   ac_check_lib_save_LIBS=$LIBS
34007 LIBS="-lndbm  $LIBS"
34008 cat >conftest.$ac_ext <<_ACEOF
34009 /* confdefs.h.  */
34010 _ACEOF
34011 cat confdefs.h >>conftest.$ac_ext
34012 cat >>conftest.$ac_ext <<_ACEOF
34013 /* end confdefs.h.  */
34014
34015 /* Override any gcc2 internal prototype to avoid an error.  */
34016 #ifdef __cplusplus
34017 extern "C"
34018 #endif
34019 /* We use char because int might match the return type of a gcc2
34020    builtin and then its argument prototype would still apply.  */
34021 char dbm_open ();
34022 int
34023 main ()
34024 {
34025 dbm_open ();
34026   ;
34027   return 0;
34028 }
34029 _ACEOF
34030 rm -f conftest.$ac_objext conftest$ac_exeext
34031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34032   (eval $ac_link) 2>conftest.er1
34033   ac_status=$?
34034   grep -v '^ *+' conftest.er1 >conftest.err
34035   rm -f conftest.er1
34036   cat conftest.err >&5
34037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34038   (exit $ac_status); } &&
34039          { ac_try='test -z "$ac_c_werror_flag"
34040                          || test ! -s conftest.err'
34041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34042   (eval $ac_try) 2>&5
34043   ac_status=$?
34044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34045   (exit $ac_status); }; } &&
34046          { ac_try='test -s conftest$ac_exeext'
34047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34048   (eval $ac_try) 2>&5
34049   ac_status=$?
34050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34051   (exit $ac_status); }; }; then
34052   ac_cv_lib_ndbm_dbm_open=yes
34053 else
34054   echo "$as_me: failed program was:" >&5
34055 sed 's/^/| /' conftest.$ac_ext >&5
34056
34057 ac_cv_lib_ndbm_dbm_open=no
34058 fi
34059 rm -f conftest.err conftest.$ac_objext \
34060       conftest$ac_exeext conftest.$ac_ext
34061 LIBS=$ac_check_lib_save_LIBS
34062 fi
34063 echo "$as_me:$LINENO: result: $ac_cv_lib_ndbm_dbm_open" >&5
34064 echo "${ECHO_T}$ac_cv_lib_ndbm_dbm_open" >&6
34065 if test $ac_cv_lib_ndbm_dbm_open = yes; then
34066   ol_cv_lib_ndbm=-lndbm
34067 else
34068
34069                         echo "$as_me:$LINENO: checking for dbm_open in -ldbm" >&5
34070 echo $ECHO_N "checking for dbm_open in -ldbm... $ECHO_C" >&6
34071 if test "${ac_cv_lib_dbm_dbm_open+set}" = set; then
34072   echo $ECHO_N "(cached) $ECHO_C" >&6
34073 else
34074   ac_check_lib_save_LIBS=$LIBS
34075 LIBS="-ldbm  $LIBS"
34076 cat >conftest.$ac_ext <<_ACEOF
34077 /* confdefs.h.  */
34078 _ACEOF
34079 cat confdefs.h >>conftest.$ac_ext
34080 cat >>conftest.$ac_ext <<_ACEOF
34081 /* end confdefs.h.  */
34082
34083 /* Override any gcc2 internal prototype to avoid an error.  */
34084 #ifdef __cplusplus
34085 extern "C"
34086 #endif
34087 /* We use char because int might match the return type of a gcc2
34088    builtin and then its argument prototype would still apply.  */
34089 char dbm_open ();
34090 int
34091 main ()
34092 {
34093 dbm_open ();
34094   ;
34095   return 0;
34096 }
34097 _ACEOF
34098 rm -f conftest.$ac_objext conftest$ac_exeext
34099 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34100   (eval $ac_link) 2>conftest.er1
34101   ac_status=$?
34102   grep -v '^ *+' conftest.er1 >conftest.err
34103   rm -f conftest.er1
34104   cat conftest.err >&5
34105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34106   (exit $ac_status); } &&
34107          { ac_try='test -z "$ac_c_werror_flag"
34108                          || test ! -s conftest.err'
34109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34110   (eval $ac_try) 2>&5
34111   ac_status=$?
34112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34113   (exit $ac_status); }; } &&
34114          { ac_try='test -s conftest$ac_exeext'
34115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34116   (eval $ac_try) 2>&5
34117   ac_status=$?
34118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34119   (exit $ac_status); }; }; then
34120   ac_cv_lib_dbm_dbm_open=yes
34121 else
34122   echo "$as_me: failed program was:" >&5
34123 sed 's/^/| /' conftest.$ac_ext >&5
34124
34125 ac_cv_lib_dbm_dbm_open=no
34126 fi
34127 rm -f conftest.err conftest.$ac_objext \
34128       conftest$ac_exeext conftest.$ac_ext
34129 LIBS=$ac_check_lib_save_LIBS
34130 fi
34131 echo "$as_me:$LINENO: result: $ac_cv_lib_dbm_dbm_open" >&5
34132 echo "${ECHO_T}$ac_cv_lib_dbm_dbm_open" >&6
34133 if test $ac_cv_lib_dbm_dbm_open = yes; then
34134   ol_cv_lib_ndbm=-ldbm
34135 else
34136   ol_cv_lib_ndbm=no
34137 fi
34138
34139 fi
34140
34141
34142 fi
34143
34144         LIBS="$ol_LIBS"
34145
34146 fi
34147 echo "$as_me:$LINENO: result: $ol_cv_lib_ndbm" >&5
34148 echo "${ECHO_T}$ol_cv_lib_ndbm" >&6
34149
34150
34151
34152 for ac_header in ndbm.h
34153 do
34154 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34155 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34156   echo "$as_me:$LINENO: checking for $ac_header" >&5
34157 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34158 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34159   echo $ECHO_N "(cached) $ECHO_C" >&6
34160 fi
34161 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34162 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34163 else
34164   # Is the header compilable?
34165 echo "$as_me:$LINENO: checking $ac_header usability" >&5
34166 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34167 cat >conftest.$ac_ext <<_ACEOF
34168 /* confdefs.h.  */
34169 _ACEOF
34170 cat confdefs.h >>conftest.$ac_ext
34171 cat >>conftest.$ac_ext <<_ACEOF
34172 /* end confdefs.h.  */
34173 $ac_includes_default
34174 #include <$ac_header>
34175 _ACEOF
34176 rm -f conftest.$ac_objext
34177 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34178   (eval $ac_compile) 2>conftest.er1
34179   ac_status=$?
34180   grep -v '^ *+' conftest.er1 >conftest.err
34181   rm -f conftest.er1
34182   cat conftest.err >&5
34183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34184   (exit $ac_status); } &&
34185          { ac_try='test -z "$ac_c_werror_flag"
34186                          || test ! -s conftest.err'
34187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34188   (eval $ac_try) 2>&5
34189   ac_status=$?
34190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34191   (exit $ac_status); }; } &&
34192          { ac_try='test -s conftest.$ac_objext'
34193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34194   (eval $ac_try) 2>&5
34195   ac_status=$?
34196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34197   (exit $ac_status); }; }; then
34198   ac_header_compiler=yes
34199 else
34200   echo "$as_me: failed program was:" >&5
34201 sed 's/^/| /' conftest.$ac_ext >&5
34202
34203 ac_header_compiler=no
34204 fi
34205 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34206 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34207 echo "${ECHO_T}$ac_header_compiler" >&6
34208
34209 # Is the header present?
34210 echo "$as_me:$LINENO: checking $ac_header presence" >&5
34211 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
34212 cat >conftest.$ac_ext <<_ACEOF
34213 /* confdefs.h.  */
34214 _ACEOF
34215 cat confdefs.h >>conftest.$ac_ext
34216 cat >>conftest.$ac_ext <<_ACEOF
34217 /* end confdefs.h.  */
34218 #include <$ac_header>
34219 _ACEOF
34220 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34221   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34222   ac_status=$?
34223   grep -v '^ *+' conftest.er1 >conftest.err
34224   rm -f conftest.er1
34225   cat conftest.err >&5
34226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34227   (exit $ac_status); } >/dev/null; then
34228   if test -s conftest.err; then
34229     ac_cpp_err=$ac_c_preproc_warn_flag
34230     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34231   else
34232     ac_cpp_err=
34233   fi
34234 else
34235   ac_cpp_err=yes
34236 fi
34237 if test -z "$ac_cpp_err"; then
34238   ac_header_preproc=yes
34239 else
34240   echo "$as_me: failed program was:" >&5
34241 sed 's/^/| /' conftest.$ac_ext >&5
34242
34243   ac_header_preproc=no
34244 fi
34245 rm -f conftest.err conftest.$ac_ext
34246 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34247 echo "${ECHO_T}$ac_header_preproc" >&6
34248
34249 # So?  What about this header?
34250 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34251   yes:no: )
34252     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34253 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
34254     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34255 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34256     ac_header_preproc=yes
34257     ;;
34258   no:yes:* )
34259     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34260 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
34261     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
34262 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
34263     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34264 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34265     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
34266 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
34267     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34268 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34269     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34270 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
34271     (
34272       cat <<\_ASBOX
34273 ## ------------------------------------------ ##
34274 ## Report this to the AC_PACKAGE_NAME lists.  ##
34275 ## ------------------------------------------ ##
34276 _ASBOX
34277     ) |
34278       sed "s/^/$as_me: WARNING:     /" >&2
34279     ;;
34280 esac
34281 echo "$as_me:$LINENO: checking for $ac_header" >&5
34282 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34283 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34284   echo $ECHO_N "(cached) $ECHO_C" >&6
34285 else
34286   eval "$as_ac_Header=\$ac_header_preproc"
34287 fi
34288 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34289 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34290
34291 fi
34292 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34293   cat >>confdefs.h <<_ACEOF
34294 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34295 _ACEOF
34296
34297 fi
34298
34299 done
34300
34301  echo "$as_me:$LINENO: checking for db" >&5
34302 echo $ECHO_N "checking for db... $ECHO_C" >&6
34303 if test "${ol_cv_ndbm+set}" = set; then
34304   echo $ECHO_N "(cached) $ECHO_C" >&6
34305 else
34306
34307         if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
34308                 ol_cv_ndbm=no
34309         else
34310                 ol_cv_ndbm=yes
34311         fi
34312
34313 fi
34314 echo "$as_me:$LINENO: result: $ol_cv_ndbm" >&5
34315 echo "${ECHO_T}$ol_cv_ndbm" >&6
34316  if test $ol_cv_ndbm = yes ; then
34317
34318 cat >>confdefs.h <<\_ACEOF
34319 #define HAVE_NDBM 1
34320 _ACEOF
34321
34322  fi
34323
34324
34325         if test $ol_cv_ndbm = yes ; then
34326                 ol_link_ldbm=ndbm
34327                 ol_enable_ldbm_api=ndbm
34328
34329                 if test $ol_cv_lib_ndbm != yes ; then
34330                         LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
34331                 fi
34332         fi
34333 fi
34334
34335 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
34336         { { echo "$as_me:$LINENO: error: could not find suitable LDBM backend" >&5
34337 echo "$as_me: error: could not find suitable LDBM backend" >&2;}
34338    { (exit 1); exit 1; }; }
34339 fi
34340
34341 if test $ol_enable_bdb = yes -o \
34342         $ol_enable_hdb = yes -o \
34343         $ol_enable_ldbm = yes ; then
34344         SLAPD_LIBS="$SLAPD_LIBS \$(LDBM_LIBS)"
34345 fi
34346
34347
34348 if test $ol_enable_dynamic = yes -a $enable_shared = yes ; then
34349         BUILD_LIBS_DYNAMIC=shared
34350
34351 cat >>confdefs.h <<\_ACEOF
34352 #define LDAP_LIBS_DYNAMIC 1
34353 _ACEOF
34354
34355         LTSTATIC=""
34356 else
34357         BUILD_LIBS_DYNAMIC=static
34358         LTSTATIC="-static"
34359 fi
34360
34361 if test $ol_enable_wrappers != no ; then
34362
34363 for ac_header in tcpd.h
34364 do
34365 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34366 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34367   echo "$as_me:$LINENO: checking for $ac_header" >&5
34368 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34369 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34370   echo $ECHO_N "(cached) $ECHO_C" >&6
34371 fi
34372 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34373 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34374 else
34375   # Is the header compilable?
34376 echo "$as_me:$LINENO: checking $ac_header usability" >&5
34377 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34378 cat >conftest.$ac_ext <<_ACEOF
34379 /* confdefs.h.  */
34380 _ACEOF
34381 cat confdefs.h >>conftest.$ac_ext
34382 cat >>conftest.$ac_ext <<_ACEOF
34383 /* end confdefs.h.  */
34384 $ac_includes_default
34385 #include <$ac_header>
34386 _ACEOF
34387 rm -f conftest.$ac_objext
34388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34389   (eval $ac_compile) 2>conftest.er1
34390   ac_status=$?
34391   grep -v '^ *+' conftest.er1 >conftest.err
34392   rm -f conftest.er1
34393   cat conftest.err >&5
34394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34395   (exit $ac_status); } &&
34396          { ac_try='test -z "$ac_c_werror_flag"
34397                          || test ! -s conftest.err'
34398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34399   (eval $ac_try) 2>&5
34400   ac_status=$?
34401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34402   (exit $ac_status); }; } &&
34403          { ac_try='test -s conftest.$ac_objext'
34404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34405   (eval $ac_try) 2>&5
34406   ac_status=$?
34407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34408   (exit $ac_status); }; }; then
34409   ac_header_compiler=yes
34410 else
34411   echo "$as_me: failed program was:" >&5
34412 sed 's/^/| /' conftest.$ac_ext >&5
34413
34414 ac_header_compiler=no
34415 fi
34416 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34417 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34418 echo "${ECHO_T}$ac_header_compiler" >&6
34419
34420 # Is the header present?
34421 echo "$as_me:$LINENO: checking $ac_header presence" >&5
34422 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
34423 cat >conftest.$ac_ext <<_ACEOF
34424 /* confdefs.h.  */
34425 _ACEOF
34426 cat confdefs.h >>conftest.$ac_ext
34427 cat >>conftest.$ac_ext <<_ACEOF
34428 /* end confdefs.h.  */
34429 #include <$ac_header>
34430 _ACEOF
34431 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34432   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34433   ac_status=$?
34434   grep -v '^ *+' conftest.er1 >conftest.err
34435   rm -f conftest.er1
34436   cat conftest.err >&5
34437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34438   (exit $ac_status); } >/dev/null; then
34439   if test -s conftest.err; then
34440     ac_cpp_err=$ac_c_preproc_warn_flag
34441     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34442   else
34443     ac_cpp_err=
34444   fi
34445 else
34446   ac_cpp_err=yes
34447 fi
34448 if test -z "$ac_cpp_err"; then
34449   ac_header_preproc=yes
34450 else
34451   echo "$as_me: failed program was:" >&5
34452 sed 's/^/| /' conftest.$ac_ext >&5
34453
34454   ac_header_preproc=no
34455 fi
34456 rm -f conftest.err conftest.$ac_ext
34457 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34458 echo "${ECHO_T}$ac_header_preproc" >&6
34459
34460 # So?  What about this header?
34461 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34462   yes:no: )
34463     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34464 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
34465     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34466 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34467     ac_header_preproc=yes
34468     ;;
34469   no:yes:* )
34470     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34471 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
34472     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
34473 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
34474     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34475 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34476     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
34477 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
34478     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34479 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34480     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34481 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
34482     (
34483       cat <<\_ASBOX
34484 ## ------------------------------------------ ##
34485 ## Report this to the AC_PACKAGE_NAME lists.  ##
34486 ## ------------------------------------------ ##
34487 _ASBOX
34488     ) |
34489       sed "s/^/$as_me: WARNING:     /" >&2
34490     ;;
34491 esac
34492 echo "$as_me:$LINENO: checking for $ac_header" >&5
34493 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34494 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34495   echo $ECHO_N "(cached) $ECHO_C" >&6
34496 else
34497   eval "$as_ac_Header=\$ac_header_preproc"
34498 fi
34499 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34500 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34501
34502 fi
34503 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34504   cat >>confdefs.h <<_ACEOF
34505 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34506 _ACEOF
34507
34508                 echo "$as_me:$LINENO: checking for TCP wrappers library" >&5
34509 echo $ECHO_N "checking for TCP wrappers library... $ECHO_C" >&6
34510                 save_LIBS="$LIBS"
34511                 LIBS="$LIBS -lwrap"
34512                 cat >conftest.$ac_ext <<_ACEOF
34513 /* confdefs.h.  */
34514 _ACEOF
34515 cat confdefs.h >>conftest.$ac_ext
34516 cat >>conftest.$ac_ext <<_ACEOF
34517 /* end confdefs.h.  */
34518
34519 #include <tcpd.h>
34520 int allow_severity = 0;
34521 int deny_severity  = 0;
34522
34523 struct request_info *req;
34524
34525 int
34526 main ()
34527 {
34528
34529 hosts_access(req)
34530
34531   ;
34532   return 0;
34533 }
34534 _ACEOF
34535 rm -f conftest.$ac_objext conftest$ac_exeext
34536 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34537   (eval $ac_link) 2>conftest.er1
34538   ac_status=$?
34539   grep -v '^ *+' conftest.er1 >conftest.err
34540   rm -f conftest.er1
34541   cat conftest.err >&5
34542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34543   (exit $ac_status); } &&
34544          { ac_try='test -z "$ac_c_werror_flag"
34545                          || test ! -s conftest.err'
34546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34547   (eval $ac_try) 2>&5
34548   ac_status=$?
34549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34550   (exit $ac_status); }; } &&
34551          { ac_try='test -s conftest$ac_exeext'
34552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34553   (eval $ac_try) 2>&5
34554   ac_status=$?
34555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34556   (exit $ac_status); }; }; then
34557   echo "$as_me:$LINENO: result: -lwrap" >&5
34558 echo "${ECHO_T}-lwrap" >&6
34559                 have_wrappers=yes
34560                 LIBS="$save_LIBS"
34561 else
34562   echo "$as_me: failed program was:" >&5
34563 sed 's/^/| /' conftest.$ac_ext >&5
34564
34565
34566                                 LIBS="$LIBS -lnsl"
34567                 cat >conftest.$ac_ext <<_ACEOF
34568 /* confdefs.h.  */
34569 _ACEOF
34570 cat confdefs.h >>conftest.$ac_ext
34571 cat >>conftest.$ac_ext <<_ACEOF
34572 /* end confdefs.h.  */
34573
34574 #include <tcpd.h>
34575 int allow_severity = 0;
34576 int deny_severity  = 0;
34577
34578 struct request_info *req;
34579
34580 int
34581 main ()
34582 {
34583
34584 hosts_access(req)
34585
34586   ;
34587   return 0;
34588 }
34589 _ACEOF
34590 rm -f conftest.$ac_objext conftest$ac_exeext
34591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34592   (eval $ac_link) 2>conftest.er1
34593   ac_status=$?
34594   grep -v '^ *+' conftest.er1 >conftest.err
34595   rm -f conftest.er1
34596   cat conftest.err >&5
34597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34598   (exit $ac_status); } &&
34599          { ac_try='test -z "$ac_c_werror_flag"
34600                          || test ! -s conftest.err'
34601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34602   (eval $ac_try) 2>&5
34603   ac_status=$?
34604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34605   (exit $ac_status); }; } &&
34606          { ac_try='test -s conftest$ac_exeext'
34607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34608   (eval $ac_try) 2>&5
34609   ac_status=$?
34610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34611   (exit $ac_status); }; }; then
34612   echo "$as_me:$LINENO: result: -lwrap -lnsl" >&5
34613 echo "${ECHO_T}-lwrap -lnsl" >&6
34614                 have_wrappers=yes
34615                 LIBS="$save_LIBS -lnsl"
34616 else
34617   echo "$as_me: failed program was:" >&5
34618 sed 's/^/| /' conftest.$ac_ext >&5
34619
34620
34621                 echo "$as_me:$LINENO: result: no" >&5
34622 echo "${ECHO_T}no" >&6
34623                 have_wrappers=no
34624                 LIBS=$save_LIBS
34625 fi
34626 rm -f conftest.err conftest.$ac_objext \
34627       conftest$ac_exeext conftest.$ac_ext
34628 fi
34629 rm -f conftest.err conftest.$ac_objext \
34630       conftest$ac_exeext conftest.$ac_ext
34631 else
34632   have_wrappers=no
34633 fi
34634
34635 done
34636
34637
34638         if test $have_wrappers = yes ; then
34639
34640 cat >>confdefs.h <<\_ACEOF
34641 #define HAVE_TCPD 1
34642 _ACEOF
34643
34644                 WRAP_LIBS="-lwrap"
34645         elif test $ol_enable_wrappers = yes ; then
34646                 { { echo "$as_me:$LINENO: error: could not find TCP wrappers, select apppropriate options or disable" >&5
34647 echo "$as_me: error: could not find TCP wrappers, select apppropriate options or disable" >&2;}
34648    { (exit 1); exit 1; }; }
34649         else
34650                 { echo "$as_me:$LINENO: WARNING: could not find TCP wrappers, support disabled" >&5
34651 echo "$as_me: WARNING: could not find TCP wrappers, support disabled" >&2;}
34652                 WRAP_LIBS=""
34653         fi
34654 fi
34655
34656 if test $ol_enable_syslog != no ; then
34657         echo "$as_me:$LINENO: checking for openlog" >&5
34658 echo $ECHO_N "checking for openlog... $ECHO_C" >&6
34659 if test "${ac_cv_func_openlog+set}" = set; then
34660   echo $ECHO_N "(cached) $ECHO_C" >&6
34661 else
34662   cat >conftest.$ac_ext <<_ACEOF
34663 /* confdefs.h.  */
34664 _ACEOF
34665 cat confdefs.h >>conftest.$ac_ext
34666 cat >>conftest.$ac_ext <<_ACEOF
34667 /* end confdefs.h.  */
34668 /* Define openlog to an innocuous variant, in case <limits.h> declares openlog.
34669    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34670 #define openlog innocuous_openlog
34671
34672 /* System header to define __stub macros and hopefully few prototypes,
34673     which can conflict with char openlog (); below.
34674     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34675     <limits.h> exists even on freestanding compilers.  */
34676
34677 #ifdef __STDC__
34678 # include <limits.h>
34679 #else
34680 # include <assert.h>
34681 #endif
34682
34683 #undef openlog
34684
34685 /* Override any gcc2 internal prototype to avoid an error.  */
34686 #ifdef __cplusplus
34687 extern "C"
34688 {
34689 #endif
34690 /* We use char because int might match the return type of a gcc2
34691    builtin and then its argument prototype would still apply.  */
34692 char openlog ();
34693 /* The GNU C library defines this for functions which it implements
34694     to always fail with ENOSYS.  Some functions are actually named
34695     something starting with __ and the normal name is an alias.  */
34696 #if defined (__stub_openlog) || defined (__stub___openlog)
34697 choke me
34698 #else
34699 char (*f) () = openlog;
34700 #endif
34701 #ifdef __cplusplus
34702 }
34703 #endif
34704
34705 int
34706 main ()
34707 {
34708 return f != openlog;
34709   ;
34710   return 0;
34711 }
34712 _ACEOF
34713 rm -f conftest.$ac_objext conftest$ac_exeext
34714 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34715   (eval $ac_link) 2>conftest.er1
34716   ac_status=$?
34717   grep -v '^ *+' conftest.er1 >conftest.err
34718   rm -f conftest.er1
34719   cat conftest.err >&5
34720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34721   (exit $ac_status); } &&
34722          { ac_try='test -z "$ac_c_werror_flag"
34723                          || test ! -s conftest.err'
34724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34725   (eval $ac_try) 2>&5
34726   ac_status=$?
34727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34728   (exit $ac_status); }; } &&
34729          { ac_try='test -s conftest$ac_exeext'
34730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34731   (eval $ac_try) 2>&5
34732   ac_status=$?
34733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34734   (exit $ac_status); }; }; then
34735   ac_cv_func_openlog=yes
34736 else
34737   echo "$as_me: failed program was:" >&5
34738 sed 's/^/| /' conftest.$ac_ext >&5
34739
34740 ac_cv_func_openlog=no
34741 fi
34742 rm -f conftest.err conftest.$ac_objext \
34743       conftest$ac_exeext conftest.$ac_ext
34744 fi
34745 echo "$as_me:$LINENO: result: $ac_cv_func_openlog" >&5
34746 echo "${ECHO_T}$ac_cv_func_openlog" >&6
34747
34748         if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
34749                 { { echo "$as_me:$LINENO: error: could not find syslog" >&5
34750 echo "$as_me: error: could not find syslog" >&2;}
34751    { (exit select appropriate options or disable); exit select appropriate options or disable; }; }
34752         fi
34753         ol_enable_syslog=$ac_cv_func_openlog
34754 fi
34755
34756 ol_link_sql=no
34757 if test $ol_enable_sql != no ; then
34758
34759
34760 for ac_header in sql.h sqlext.h
34761 do
34762 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34763 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34764   echo "$as_me:$LINENO: checking for $ac_header" >&5
34765 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34766 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34767   echo $ECHO_N "(cached) $ECHO_C" >&6
34768 fi
34769 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34770 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34771 else
34772   # Is the header compilable?
34773 echo "$as_me:$LINENO: checking $ac_header usability" >&5
34774 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34775 cat >conftest.$ac_ext <<_ACEOF
34776 /* confdefs.h.  */
34777 _ACEOF
34778 cat confdefs.h >>conftest.$ac_ext
34779 cat >>conftest.$ac_ext <<_ACEOF
34780 /* end confdefs.h.  */
34781 $ac_includes_default
34782 #include <$ac_header>
34783 _ACEOF
34784 rm -f conftest.$ac_objext
34785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34786   (eval $ac_compile) 2>conftest.er1
34787   ac_status=$?
34788   grep -v '^ *+' conftest.er1 >conftest.err
34789   rm -f conftest.er1
34790   cat conftest.err >&5
34791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34792   (exit $ac_status); } &&
34793          { ac_try='test -z "$ac_c_werror_flag"
34794                          || test ! -s conftest.err'
34795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34796   (eval $ac_try) 2>&5
34797   ac_status=$?
34798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34799   (exit $ac_status); }; } &&
34800          { ac_try='test -s conftest.$ac_objext'
34801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34802   (eval $ac_try) 2>&5
34803   ac_status=$?
34804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34805   (exit $ac_status); }; }; then
34806   ac_header_compiler=yes
34807 else
34808   echo "$as_me: failed program was:" >&5
34809 sed 's/^/| /' conftest.$ac_ext >&5
34810
34811 ac_header_compiler=no
34812 fi
34813 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34814 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34815 echo "${ECHO_T}$ac_header_compiler" >&6
34816
34817 # Is the header present?
34818 echo "$as_me:$LINENO: checking $ac_header presence" >&5
34819 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
34820 cat >conftest.$ac_ext <<_ACEOF
34821 /* confdefs.h.  */
34822 _ACEOF
34823 cat confdefs.h >>conftest.$ac_ext
34824 cat >>conftest.$ac_ext <<_ACEOF
34825 /* end confdefs.h.  */
34826 #include <$ac_header>
34827 _ACEOF
34828 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34829   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34830   ac_status=$?
34831   grep -v '^ *+' conftest.er1 >conftest.err
34832   rm -f conftest.er1
34833   cat conftest.err >&5
34834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34835   (exit $ac_status); } >/dev/null; then
34836   if test -s conftest.err; then
34837     ac_cpp_err=$ac_c_preproc_warn_flag
34838     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34839   else
34840     ac_cpp_err=
34841   fi
34842 else
34843   ac_cpp_err=yes
34844 fi
34845 if test -z "$ac_cpp_err"; then
34846   ac_header_preproc=yes
34847 else
34848   echo "$as_me: failed program was:" >&5
34849 sed 's/^/| /' conftest.$ac_ext >&5
34850
34851   ac_header_preproc=no
34852 fi
34853 rm -f conftest.err conftest.$ac_ext
34854 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34855 echo "${ECHO_T}$ac_header_preproc" >&6
34856
34857 # So?  What about this header?
34858 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34859   yes:no: )
34860     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34861 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
34862     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34863 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34864     ac_header_preproc=yes
34865     ;;
34866   no:yes:* )
34867     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34868 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
34869     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
34870 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
34871     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34872 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34873     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
34874 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
34875     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34876 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34877     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34878 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
34879     (
34880       cat <<\_ASBOX
34881 ## ------------------------------------------ ##
34882 ## Report this to the AC_PACKAGE_NAME lists.  ##
34883 ## ------------------------------------------ ##
34884 _ASBOX
34885     ) |
34886       sed "s/^/$as_me: WARNING:     /" >&2
34887     ;;
34888 esac
34889 echo "$as_me:$LINENO: checking for $ac_header" >&5
34890 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34891 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34892   echo $ECHO_N "(cached) $ECHO_C" >&6
34893 else
34894   eval "$as_ac_Header=\$ac_header_preproc"
34895 fi
34896 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34897 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34898
34899 fi
34900 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34901   cat >>confdefs.h <<_ACEOF
34902 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34903 _ACEOF
34904
34905 else
34906
34907                 { { echo "$as_me:$LINENO: error: could not locate SQL headers" >&5
34908 echo "$as_me: error: could not locate SQL headers" >&2;}
34909    { (exit 1); exit 1; }; }
34910
34911 fi
34912
34913 done
34914
34915
34916         sql_LIBS="$LIBS"
34917         LIBS="$LTHREAD_LIBS"
34918
34919         echo "$as_me:$LINENO: checking for SQLDriverConnect in -liodbc" >&5
34920 echo $ECHO_N "checking for SQLDriverConnect in -liodbc... $ECHO_C" >&6
34921 if test "${ac_cv_lib_iodbc_SQLDriverConnect+set}" = set; then
34922   echo $ECHO_N "(cached) $ECHO_C" >&6
34923 else
34924   ac_check_lib_save_LIBS=$LIBS
34925 LIBS="-liodbc  $LIBS"
34926 cat >conftest.$ac_ext <<_ACEOF
34927 /* confdefs.h.  */
34928 _ACEOF
34929 cat confdefs.h >>conftest.$ac_ext
34930 cat >>conftest.$ac_ext <<_ACEOF
34931 /* end confdefs.h.  */
34932
34933 /* Override any gcc2 internal prototype to avoid an error.  */
34934 #ifdef __cplusplus
34935 extern "C"
34936 #endif
34937 /* We use char because int might match the return type of a gcc2
34938    builtin and then its argument prototype would still apply.  */
34939 char SQLDriverConnect ();
34940 int
34941 main ()
34942 {
34943 SQLDriverConnect ();
34944   ;
34945   return 0;
34946 }
34947 _ACEOF
34948 rm -f conftest.$ac_objext conftest$ac_exeext
34949 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34950   (eval $ac_link) 2>conftest.er1
34951   ac_status=$?
34952   grep -v '^ *+' conftest.er1 >conftest.err
34953   rm -f conftest.er1
34954   cat conftest.err >&5
34955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34956   (exit $ac_status); } &&
34957          { ac_try='test -z "$ac_c_werror_flag"
34958                          || test ! -s conftest.err'
34959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34960   (eval $ac_try) 2>&5
34961   ac_status=$?
34962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34963   (exit $ac_status); }; } &&
34964          { ac_try='test -s conftest$ac_exeext'
34965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34966   (eval $ac_try) 2>&5
34967   ac_status=$?
34968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34969   (exit $ac_status); }; }; then
34970   ac_cv_lib_iodbc_SQLDriverConnect=yes
34971 else
34972   echo "$as_me: failed program was:" >&5
34973 sed 's/^/| /' conftest.$ac_ext >&5
34974
34975 ac_cv_lib_iodbc_SQLDriverConnect=no
34976 fi
34977 rm -f conftest.err conftest.$ac_objext \
34978       conftest$ac_exeext conftest.$ac_ext
34979 LIBS=$ac_check_lib_save_LIBS
34980 fi
34981 echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLDriverConnect" >&5
34982 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLDriverConnect" >&6
34983 if test $ac_cv_lib_iodbc_SQLDriverConnect = yes; then
34984   have_iodbc=yes
34985 else
34986   have_iodbc=no
34987 fi
34988
34989         if test $have_iodbc = yes ; then
34990                 ol_link_sql="-liodbc"
34991         else
34992                 echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc" >&5
34993 echo $ECHO_N "checking for SQLDriverConnect in -lodbc... $ECHO_C" >&6
34994 if test "${ac_cv_lib_odbc_SQLDriverConnect+set}" = set; then
34995   echo $ECHO_N "(cached) $ECHO_C" >&6
34996 else
34997   ac_check_lib_save_LIBS=$LIBS
34998 LIBS="-lodbc  $LIBS"
34999 cat >conftest.$ac_ext <<_ACEOF
35000 /* confdefs.h.  */
35001 _ACEOF
35002 cat confdefs.h >>conftest.$ac_ext
35003 cat >>conftest.$ac_ext <<_ACEOF
35004 /* end confdefs.h.  */
35005
35006 /* Override any gcc2 internal prototype to avoid an error.  */
35007 #ifdef __cplusplus
35008 extern "C"
35009 #endif
35010 /* We use char because int might match the return type of a gcc2
35011    builtin and then its argument prototype would still apply.  */
35012 char SQLDriverConnect ();
35013 int
35014 main ()
35015 {
35016 SQLDriverConnect ();
35017   ;
35018   return 0;
35019 }
35020 _ACEOF
35021 rm -f conftest.$ac_objext conftest$ac_exeext
35022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35023   (eval $ac_link) 2>conftest.er1
35024   ac_status=$?
35025   grep -v '^ *+' conftest.er1 >conftest.err
35026   rm -f conftest.er1
35027   cat conftest.err >&5
35028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35029   (exit $ac_status); } &&
35030          { ac_try='test -z "$ac_c_werror_flag"
35031                          || test ! -s conftest.err'
35032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35033   (eval $ac_try) 2>&5
35034   ac_status=$?
35035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35036   (exit $ac_status); }; } &&
35037          { ac_try='test -s conftest$ac_exeext'
35038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35039   (eval $ac_try) 2>&5
35040   ac_status=$?
35041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35042   (exit $ac_status); }; }; then
35043   ac_cv_lib_odbc_SQLDriverConnect=yes
35044 else
35045   echo "$as_me: failed program was:" >&5
35046 sed 's/^/| /' conftest.$ac_ext >&5
35047
35048 ac_cv_lib_odbc_SQLDriverConnect=no
35049 fi
35050 rm -f conftest.err conftest.$ac_objext \
35051       conftest$ac_exeext conftest.$ac_ext
35052 LIBS=$ac_check_lib_save_LIBS
35053 fi
35054 echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLDriverConnect" >&5
35055 echo "${ECHO_T}$ac_cv_lib_odbc_SQLDriverConnect" >&6
35056 if test $ac_cv_lib_odbc_SQLDriverConnect = yes; then
35057   have_odbc=yes
35058 else
35059   have_odbc=no
35060 fi
35061
35062                 if test $have_odbc = yes ; then
35063                         ol_link_sql="-lodbc"
35064                 fi
35065         fi
35066
35067         LIBS="$sql_LIBS"
35068
35069         if test $ol_link_sql != no ; then
35070                 SLAPD_SQL_LIBS="$ol_link_sql"
35071
35072         elif test $ol_enable_sql != auto ; then
35073                 { { echo "$as_me:$LINENO: error: could not locate suitable ODBC library" >&5
35074 echo "$as_me: error: could not locate suitable ODBC library" >&2;}
35075    { (exit 1); exit 1; }; }
35076         fi
35077 fi
35078
35079 WITH_SASL=no
35080 ol_link_sasl=no
35081 ol_link_spasswd=no
35082 if test $ol_with_cyrus_sasl != no ; then
35083
35084
35085 for ac_header in sasl/sasl.h sasl.h
35086 do
35087 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35088 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35089   echo "$as_me:$LINENO: checking for $ac_header" >&5
35090 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35091 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35092   echo $ECHO_N "(cached) $ECHO_C" >&6
35093 fi
35094 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35095 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35096 else
35097   # Is the header compilable?
35098 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35099 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35100 cat >conftest.$ac_ext <<_ACEOF
35101 /* confdefs.h.  */
35102 _ACEOF
35103 cat confdefs.h >>conftest.$ac_ext
35104 cat >>conftest.$ac_ext <<_ACEOF
35105 /* end confdefs.h.  */
35106 $ac_includes_default
35107 #include <$ac_header>
35108 _ACEOF
35109 rm -f conftest.$ac_objext
35110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35111   (eval $ac_compile) 2>conftest.er1
35112   ac_status=$?
35113   grep -v '^ *+' conftest.er1 >conftest.err
35114   rm -f conftest.er1
35115   cat conftest.err >&5
35116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35117   (exit $ac_status); } &&
35118          { ac_try='test -z "$ac_c_werror_flag"
35119                          || test ! -s conftest.err'
35120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35121   (eval $ac_try) 2>&5
35122   ac_status=$?
35123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35124   (exit $ac_status); }; } &&
35125          { ac_try='test -s conftest.$ac_objext'
35126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35127   (eval $ac_try) 2>&5
35128   ac_status=$?
35129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35130   (exit $ac_status); }; }; then
35131   ac_header_compiler=yes
35132 else
35133   echo "$as_me: failed program was:" >&5
35134 sed 's/^/| /' conftest.$ac_ext >&5
35135
35136 ac_header_compiler=no
35137 fi
35138 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35139 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35140 echo "${ECHO_T}$ac_header_compiler" >&6
35141
35142 # Is the header present?
35143 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35144 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35145 cat >conftest.$ac_ext <<_ACEOF
35146 /* confdefs.h.  */
35147 _ACEOF
35148 cat confdefs.h >>conftest.$ac_ext
35149 cat >>conftest.$ac_ext <<_ACEOF
35150 /* end confdefs.h.  */
35151 #include <$ac_header>
35152 _ACEOF
35153 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35154   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35155   ac_status=$?
35156   grep -v '^ *+' conftest.er1 >conftest.err
35157   rm -f conftest.er1
35158   cat conftest.err >&5
35159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35160   (exit $ac_status); } >/dev/null; then
35161   if test -s conftest.err; then
35162     ac_cpp_err=$ac_c_preproc_warn_flag
35163     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35164   else
35165     ac_cpp_err=
35166   fi
35167 else
35168   ac_cpp_err=yes
35169 fi
35170 if test -z "$ac_cpp_err"; then
35171   ac_header_preproc=yes
35172 else
35173   echo "$as_me: failed program was:" >&5
35174 sed 's/^/| /' conftest.$ac_ext >&5
35175
35176   ac_header_preproc=no
35177 fi
35178 rm -f conftest.err conftest.$ac_ext
35179 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35180 echo "${ECHO_T}$ac_header_preproc" >&6
35181
35182 # So?  What about this header?
35183 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35184   yes:no: )
35185     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35186 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35187     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35188 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35189     ac_header_preproc=yes
35190     ;;
35191   no:yes:* )
35192     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35193 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35194     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35195 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35196     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35197 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35198     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35199 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35200     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35201 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35202     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35203 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35204     (
35205       cat <<\_ASBOX
35206 ## ------------------------------------------ ##
35207 ## Report this to the AC_PACKAGE_NAME lists.  ##
35208 ## ------------------------------------------ ##
35209 _ASBOX
35210     ) |
35211       sed "s/^/$as_me: WARNING:     /" >&2
35212     ;;
35213 esac
35214 echo "$as_me:$LINENO: checking for $ac_header" >&5
35215 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35216 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35217   echo $ECHO_N "(cached) $ECHO_C" >&6
35218 else
35219   eval "$as_ac_Header=\$ac_header_preproc"
35220 fi
35221 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35222 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35223
35224 fi
35225 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35226   cat >>confdefs.h <<_ACEOF
35227 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35228 _ACEOF
35229
35230 fi
35231
35232 done
35233
35234
35235         if test $ac_cv_header_sasl_sasl_h = yes -o $ac_cv_header_sasl_h = yes; then
35236                 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl2" >&5
35237 echo $ECHO_N "checking for sasl_client_init in -lsasl2... $ECHO_C" >&6
35238 if test "${ac_cv_lib_sasl2_sasl_client_init+set}" = set; then
35239   echo $ECHO_N "(cached) $ECHO_C" >&6
35240 else
35241   ac_check_lib_save_LIBS=$LIBS
35242 LIBS="-lsasl2  $LIBS"
35243 cat >conftest.$ac_ext <<_ACEOF
35244 /* confdefs.h.  */
35245 _ACEOF
35246 cat confdefs.h >>conftest.$ac_ext
35247 cat >>conftest.$ac_ext <<_ACEOF
35248 /* end confdefs.h.  */
35249
35250 /* Override any gcc2 internal prototype to avoid an error.  */
35251 #ifdef __cplusplus
35252 extern "C"
35253 #endif
35254 /* We use char because int might match the return type of a gcc2
35255    builtin and then its argument prototype would still apply.  */
35256 char sasl_client_init ();
35257 int
35258 main ()
35259 {
35260 sasl_client_init ();
35261   ;
35262   return 0;
35263 }
35264 _ACEOF
35265 rm -f conftest.$ac_objext conftest$ac_exeext
35266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35267   (eval $ac_link) 2>conftest.er1
35268   ac_status=$?
35269   grep -v '^ *+' conftest.er1 >conftest.err
35270   rm -f conftest.er1
35271   cat conftest.err >&5
35272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35273   (exit $ac_status); } &&
35274          { ac_try='test -z "$ac_c_werror_flag"
35275                          || test ! -s conftest.err'
35276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35277   (eval $ac_try) 2>&5
35278   ac_status=$?
35279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35280   (exit $ac_status); }; } &&
35281          { ac_try='test -s conftest$ac_exeext'
35282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35283   (eval $ac_try) 2>&5
35284   ac_status=$?
35285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35286   (exit $ac_status); }; }; then
35287   ac_cv_lib_sasl2_sasl_client_init=yes
35288 else
35289   echo "$as_me: failed program was:" >&5
35290 sed 's/^/| /' conftest.$ac_ext >&5
35291
35292 ac_cv_lib_sasl2_sasl_client_init=no
35293 fi
35294 rm -f conftest.err conftest.$ac_objext \
35295       conftest$ac_exeext conftest.$ac_ext
35296 LIBS=$ac_check_lib_save_LIBS
35297 fi
35298 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
35299 echo "${ECHO_T}$ac_cv_lib_sasl2_sasl_client_init" >&6
35300 if test $ac_cv_lib_sasl2_sasl_client_init = yes; then
35301   ol_link_sasl="-lsasl2"
35302 else
35303   echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl" >&5
35304 echo $ECHO_N "checking for sasl_client_init in -lsasl... $ECHO_C" >&6
35305 if test "${ac_cv_lib_sasl_sasl_client_init+set}" = set; then
35306   echo $ECHO_N "(cached) $ECHO_C" >&6
35307 else
35308   ac_check_lib_save_LIBS=$LIBS
35309 LIBS="-lsasl  $LIBS"
35310 cat >conftest.$ac_ext <<_ACEOF
35311 /* confdefs.h.  */
35312 _ACEOF
35313 cat confdefs.h >>conftest.$ac_ext
35314 cat >>conftest.$ac_ext <<_ACEOF
35315 /* end confdefs.h.  */
35316
35317 /* Override any gcc2 internal prototype to avoid an error.  */
35318 #ifdef __cplusplus
35319 extern "C"
35320 #endif
35321 /* We use char because int might match the return type of a gcc2
35322    builtin and then its argument prototype would still apply.  */
35323 char sasl_client_init ();
35324 int
35325 main ()
35326 {
35327 sasl_client_init ();
35328   ;
35329   return 0;
35330 }
35331 _ACEOF
35332 rm -f conftest.$ac_objext conftest$ac_exeext
35333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35334   (eval $ac_link) 2>conftest.er1
35335   ac_status=$?
35336   grep -v '^ *+' conftest.er1 >conftest.err
35337   rm -f conftest.er1
35338   cat conftest.err >&5
35339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35340   (exit $ac_status); } &&
35341          { ac_try='test -z "$ac_c_werror_flag"
35342                          || test ! -s conftest.err'
35343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35344   (eval $ac_try) 2>&5
35345   ac_status=$?
35346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35347   (exit $ac_status); }; } &&
35348          { ac_try='test -s conftest$ac_exeext'
35349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35350   (eval $ac_try) 2>&5
35351   ac_status=$?
35352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35353   (exit $ac_status); }; }; then
35354   ac_cv_lib_sasl_sasl_client_init=yes
35355 else
35356   echo "$as_me: failed program was:" >&5
35357 sed 's/^/| /' conftest.$ac_ext >&5
35358
35359 ac_cv_lib_sasl_sasl_client_init=no
35360 fi
35361 rm -f conftest.err conftest.$ac_objext \
35362       conftest$ac_exeext conftest.$ac_ext
35363 LIBS=$ac_check_lib_save_LIBS
35364 fi
35365 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl_sasl_client_init" >&5
35366 echo "${ECHO_T}$ac_cv_lib_sasl_sasl_client_init" >&6
35367 if test $ac_cv_lib_sasl_sasl_client_init = yes; then
35368   ol_link_sasl="-lsasl"
35369 fi
35370
35371 fi
35372
35373         fi
35374
35375         if test $ol_link_sasl = no ; then
35376                 if test $ol_with_cyrus_sasl != auto ; then
35377                         { { echo "$as_me:$LINENO: error: Could not locate Cyrus SASL" >&5
35378 echo "$as_me: error: Could not locate Cyrus SASL" >&2;}
35379    { (exit 1); exit 1; }; }
35380                 else
35381                         { echo "$as_me:$LINENO: WARNING: Could not locate Cyrus SASL" >&5
35382 echo "$as_me: WARNING: Could not locate Cyrus SASL" >&2;}
35383                         { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
35384 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
35385                         if test $ol_link_tls = no ; then
35386                                 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
35387 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
35388                         fi
35389                 fi
35390         else
35391                 echo "$as_me:$LINENO: checking Cyrus SASL library version" >&5
35392 echo $ECHO_N "checking Cyrus SASL library version... $ECHO_C" >&6
35393 if test "${ol_cv_sasl_compat+set}" = set; then
35394   echo $ECHO_N "(cached) $ECHO_C" >&6
35395 else
35396
35397         cat >conftest.$ac_ext <<_ACEOF
35398 /* confdefs.h.  */
35399 _ACEOF
35400 cat confdefs.h >>conftest.$ac_ext
35401 cat >>conftest.$ac_ext <<_ACEOF
35402 /* end confdefs.h.  */
35403
35404 #ifdef HAVE_SASL_SASL_H
35405 #include <sasl/sasl.h>
35406 #else
35407 #include <sasl.h>
35408 #endif
35409
35410 /* Require 2.1.15+ */
35411 #if SASL_VERSION_MAJOR == 2  && SASL_VERSION_MINOR > 1
35412         char *__sasl_compat = "2.2+ or better okay (we guess)";
35413 #elif SASL_VERSION_MAJOR == 2  && SASL_VERSION_MINOR == 1 \
35414         && SASL_VERSION_STEP >=15
35415         char *__sasl_compat = "2.1.15+ or better okay";
35416 #endif
35417
35418 _ACEOF
35419 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35420   $EGREP "__sasl_compat" >/dev/null 2>&1; then
35421   ol_cv_sasl_compat=yes
35422 else
35423   ol_cv_sasl_compat=no
35424 fi
35425 rm -f conftest*
35426
35427 fi
35428 echo "$as_me:$LINENO: result: $ol_cv_sasl_compat" >&5
35429 echo "${ECHO_T}$ol_cv_sasl_compat" >&6
35430
35431                 if test $ol_cv_sasl_compat = no ; then
35432                         ol_link_sasl=no
35433                         { { echo "$as_me:$LINENO: error: Cyrus SASL library located but is incompatible" >&5
35434 echo "$as_me: error: Cyrus SASL library located but is incompatible" >&2;}
35435    { (exit 1); exit 1; }; }
35436                 fi
35437
35438
35439 cat >>confdefs.h <<\_ACEOF
35440 #define HAVE_CYRUS_SASL 1
35441 _ACEOF
35442
35443                 SASL_LIBS="$ol_link_sasl"
35444                 if test $ol_enable_spasswd != no ; then
35445                         ol_link_spasswd=yes
35446                 fi
35447
35448                 ac_save_LIBS="$LIBS"
35449                 LIBS="$LIBS $ol_link_sasl"
35450                 echo "$as_me:$LINENO: checking for sasl_version" >&5
35451 echo $ECHO_N "checking for sasl_version... $ECHO_C" >&6
35452 if test "${ac_cv_func_sasl_version+set}" = set; then
35453   echo $ECHO_N "(cached) $ECHO_C" >&6
35454 else
35455   cat >conftest.$ac_ext <<_ACEOF
35456 /* confdefs.h.  */
35457 _ACEOF
35458 cat confdefs.h >>conftest.$ac_ext
35459 cat >>conftest.$ac_ext <<_ACEOF
35460 /* end confdefs.h.  */
35461 /* Define sasl_version to an innocuous variant, in case <limits.h> declares sasl_version.
35462    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35463 #define sasl_version innocuous_sasl_version
35464
35465 /* System header to define __stub macros and hopefully few prototypes,
35466     which can conflict with char sasl_version (); below.
35467     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35468     <limits.h> exists even on freestanding compilers.  */
35469
35470 #ifdef __STDC__
35471 # include <limits.h>
35472 #else
35473 # include <assert.h>
35474 #endif
35475
35476 #undef sasl_version
35477
35478 /* Override any gcc2 internal prototype to avoid an error.  */
35479 #ifdef __cplusplus
35480 extern "C"
35481 {
35482 #endif
35483 /* We use char because int might match the return type of a gcc2
35484    builtin and then its argument prototype would still apply.  */
35485 char sasl_version ();
35486 /* The GNU C library defines this for functions which it implements
35487     to always fail with ENOSYS.  Some functions are actually named
35488     something starting with __ and the normal name is an alias.  */
35489 #if defined (__stub_sasl_version) || defined (__stub___sasl_version)
35490 choke me
35491 #else
35492 char (*f) () = sasl_version;
35493 #endif
35494 #ifdef __cplusplus
35495 }
35496 #endif
35497
35498 int
35499 main ()
35500 {
35501 return f != sasl_version;
35502   ;
35503   return 0;
35504 }
35505 _ACEOF
35506 rm -f conftest.$ac_objext conftest$ac_exeext
35507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35508   (eval $ac_link) 2>conftest.er1
35509   ac_status=$?
35510   grep -v '^ *+' conftest.er1 >conftest.err
35511   rm -f conftest.er1
35512   cat conftest.err >&5
35513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35514   (exit $ac_status); } &&
35515          { ac_try='test -z "$ac_c_werror_flag"
35516                          || test ! -s conftest.err'
35517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35518   (eval $ac_try) 2>&5
35519   ac_status=$?
35520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35521   (exit $ac_status); }; } &&
35522          { ac_try='test -s conftest$ac_exeext'
35523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35524   (eval $ac_try) 2>&5
35525   ac_status=$?
35526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35527   (exit $ac_status); }; }; then
35528   ac_cv_func_sasl_version=yes
35529 else
35530   echo "$as_me: failed program was:" >&5
35531 sed 's/^/| /' conftest.$ac_ext >&5
35532
35533 ac_cv_func_sasl_version=no
35534 fi
35535 rm -f conftest.err conftest.$ac_objext \
35536       conftest$ac_exeext conftest.$ac_ext
35537 fi
35538 echo "$as_me:$LINENO: result: $ac_cv_func_sasl_version" >&5
35539 echo "${ECHO_T}$ac_cv_func_sasl_version" >&6
35540 if test $ac_cv_func_sasl_version = yes; then
35541
35542 cat >>confdefs.h <<\_ACEOF
35543 #define HAVE_SASL_VERSION 1
35544 _ACEOF
35545
35546 fi
35547
35548                 LIBS="$ac_save_LIBS"
35549
35550                 WITH_SASL=yes
35551         fi
35552
35553 else
35554         { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
35555 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
35556         if test $ol_link_tls = no ; then
35557                 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
35558 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
35559         fi
35560 fi
35561
35562 if test $cross_compiling != yes -a "$ac_cv_mingw32" != yes ; then
35563         dev=no
35564         if test -r /dev/urandom ; then
35565                 dev="/dev/urandom";
35566         elif test -r /idev/urandom ; then
35567                 dev="/idev/urandom";
35568         elif test -r /dev/srandom ; then
35569                 dev="/dev/srandom";
35570         elif test -r /dev/random ; then
35571                 dev="/dev/random";
35572         elif test -r /idev/random ; then
35573                 dev="/idev/random";
35574         fi
35575
35576         if test $dev != no ; then
35577
35578 cat >>confdefs.h <<_ACEOF
35579 #define URANDOM_DEVICE "$dev"
35580 _ACEOF
35581
35582         fi
35583 fi
35584
35585 ol_link_fetch=no
35586 if test $ol_with_fetch != no ; then
35587         ol_LIBS=$LIBS
35588 LIBS="-lfetch -lcom_err $LIBS"
35589 echo "$as_me:$LINENO: checking fetch(3) library" >&5
35590 echo $ECHO_N "checking fetch(3) library... $ECHO_C" >&6
35591 if test "${ol_cv_lib_fetch+set}" = set; then
35592   echo $ECHO_N "(cached) $ECHO_C" >&6
35593 else
35594
35595         cat >conftest.$ac_ext <<_ACEOF
35596 /* confdefs.h.  */
35597 _ACEOF
35598 cat confdefs.h >>conftest.$ac_ext
35599 cat >>conftest.$ac_ext <<_ACEOF
35600 /* end confdefs.h.  */
35601
35602 #include <sys/param.h>
35603 #include <stdio.h>
35604 #include <fetch.h>
35605 int
35606 main ()
35607 {
35608 struct url *u = fetchParseURL("file:///");
35609   ;
35610   return 0;
35611 }
35612 _ACEOF
35613 rm -f conftest.$ac_objext conftest$ac_exeext
35614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35615   (eval $ac_link) 2>conftest.er1
35616   ac_status=$?
35617   grep -v '^ *+' conftest.er1 >conftest.err
35618   rm -f conftest.er1
35619   cat conftest.err >&5
35620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35621   (exit $ac_status); } &&
35622          { ac_try='test -z "$ac_c_werror_flag"
35623                          || test ! -s conftest.err'
35624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35625   (eval $ac_try) 2>&5
35626   ac_status=$?
35627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35628   (exit $ac_status); }; } &&
35629          { ac_try='test -s conftest$ac_exeext'
35630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35631   (eval $ac_try) 2>&5
35632   ac_status=$?
35633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35634   (exit $ac_status); }; }; then
35635   ol_cv_lib_fetch=yes
35636 else
35637   echo "$as_me: failed program was:" >&5
35638 sed 's/^/| /' conftest.$ac_ext >&5
35639
35640 ol_cv_lib_fetch=no
35641 fi
35642 rm -f conftest.err conftest.$ac_objext \
35643       conftest$ac_exeext conftest.$ac_ext
35644 fi
35645 echo "$as_me:$LINENO: result: $ol_cv_lib_fetch" >&5
35646 echo "${ECHO_T}$ol_cv_lib_fetch" >&6
35647 LIBS=$ol_LIBS
35648 if test $ol_cv_lib_fetch != no ; then
35649         ol_link_fetch="-lfetch -lcom_err"
35650
35651 cat >>confdefs.h <<\_ACEOF
35652 #define HAVE_FETCH 1
35653 _ACEOF
35654
35655 fi
35656
35657
35658         if test $ol_cv_lib_fetch != no ; then
35659                 LUTIL_LIBS="$LUTIL_LIBS $ol_link_fetch"
35660                 ol_link_fetch=freebsd
35661
35662         elif test $ol_with_fetch != auto ; then
35663                 { { echo "$as_me:$LINENO: error: no suitable API for --with-fetch=$ol_with_fetch" >&5
35664 echo "$as_me: error: no suitable API for --with-fetch=$ol_with_fetch" >&2;}
35665    { (exit 1); exit 1; }; }
35666         fi
35667 fi
35668
35669 if test $ol_enable_crypt != no ; then
35670         save_LIBS="$LIBS"
35671         LIBS="$TLS_LIBS $LIBS"
35672
35673         echo "$as_me:$LINENO: checking for crypt" >&5
35674 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
35675 if test "${ac_cv_func_crypt+set}" = set; then
35676   echo $ECHO_N "(cached) $ECHO_C" >&6
35677 else
35678   cat >conftest.$ac_ext <<_ACEOF
35679 /* confdefs.h.  */
35680 _ACEOF
35681 cat confdefs.h >>conftest.$ac_ext
35682 cat >>conftest.$ac_ext <<_ACEOF
35683 /* end confdefs.h.  */
35684 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
35685    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35686 #define crypt innocuous_crypt
35687
35688 /* System header to define __stub macros and hopefully few prototypes,
35689     which can conflict with char crypt (); below.
35690     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35691     <limits.h> exists even on freestanding compilers.  */
35692
35693 #ifdef __STDC__
35694 # include <limits.h>
35695 #else
35696 # include <assert.h>
35697 #endif
35698
35699 #undef crypt
35700
35701 /* Override any gcc2 internal prototype to avoid an error.  */
35702 #ifdef __cplusplus
35703 extern "C"
35704 {
35705 #endif
35706 /* We use char because int might match the return type of a gcc2
35707    builtin and then its argument prototype would still apply.  */
35708 char crypt ();
35709 /* The GNU C library defines this for functions which it implements
35710     to always fail with ENOSYS.  Some functions are actually named
35711     something starting with __ and the normal name is an alias.  */
35712 #if defined (__stub_crypt) || defined (__stub___crypt)
35713 choke me
35714 #else
35715 char (*f) () = crypt;
35716 #endif
35717 #ifdef __cplusplus
35718 }
35719 #endif
35720
35721 int
35722 main ()
35723 {
35724 return f != crypt;
35725   ;
35726   return 0;
35727 }
35728 _ACEOF
35729 rm -f conftest.$ac_objext conftest$ac_exeext
35730 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35731   (eval $ac_link) 2>conftest.er1
35732   ac_status=$?
35733   grep -v '^ *+' conftest.er1 >conftest.err
35734   rm -f conftest.er1
35735   cat conftest.err >&5
35736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35737   (exit $ac_status); } &&
35738          { ac_try='test -z "$ac_c_werror_flag"
35739                          || test ! -s conftest.err'
35740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35741   (eval $ac_try) 2>&5
35742   ac_status=$?
35743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35744   (exit $ac_status); }; } &&
35745          { ac_try='test -s conftest$ac_exeext'
35746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35747   (eval $ac_try) 2>&5
35748   ac_status=$?
35749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35750   (exit $ac_status); }; }; then
35751   ac_cv_func_crypt=yes
35752 else
35753   echo "$as_me: failed program was:" >&5
35754 sed 's/^/| /' conftest.$ac_ext >&5
35755
35756 ac_cv_func_crypt=no
35757 fi
35758 rm -f conftest.err conftest.$ac_objext \
35759       conftest$ac_exeext conftest.$ac_ext
35760 fi
35761 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
35762 echo "${ECHO_T}$ac_cv_func_crypt" >&6
35763 if test $ac_cv_func_crypt = yes; then
35764   have_crypt=yes
35765 else
35766
35767                 LIBS="$save_LIBS"
35768                 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
35769 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
35770 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
35771   echo $ECHO_N "(cached) $ECHO_C" >&6
35772 else
35773   ac_check_lib_save_LIBS=$LIBS
35774 LIBS="-lcrypt  $LIBS"
35775 cat >conftest.$ac_ext <<_ACEOF
35776 /* confdefs.h.  */
35777 _ACEOF
35778 cat confdefs.h >>conftest.$ac_ext
35779 cat >>conftest.$ac_ext <<_ACEOF
35780 /* end confdefs.h.  */
35781
35782 /* Override any gcc2 internal prototype to avoid an error.  */
35783 #ifdef __cplusplus
35784 extern "C"
35785 #endif
35786 /* We use char because int might match the return type of a gcc2
35787    builtin and then its argument prototype would still apply.  */
35788 char crypt ();
35789 int
35790 main ()
35791 {
35792 crypt ();
35793   ;
35794   return 0;
35795 }
35796 _ACEOF
35797 rm -f conftest.$ac_objext conftest$ac_exeext
35798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35799   (eval $ac_link) 2>conftest.er1
35800   ac_status=$?
35801   grep -v '^ *+' conftest.er1 >conftest.err
35802   rm -f conftest.er1
35803   cat conftest.err >&5
35804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35805   (exit $ac_status); } &&
35806          { ac_try='test -z "$ac_c_werror_flag"
35807                          || test ! -s conftest.err'
35808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35809   (eval $ac_try) 2>&5
35810   ac_status=$?
35811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35812   (exit $ac_status); }; } &&
35813          { ac_try='test -s conftest$ac_exeext'
35814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35815   (eval $ac_try) 2>&5
35816   ac_status=$?
35817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35818   (exit $ac_status); }; }; then
35819   ac_cv_lib_crypt_crypt=yes
35820 else
35821   echo "$as_me: failed program was:" >&5
35822 sed 's/^/| /' conftest.$ac_ext >&5
35823
35824 ac_cv_lib_crypt_crypt=no
35825 fi
35826 rm -f conftest.err conftest.$ac_objext \
35827       conftest$ac_exeext conftest.$ac_ext
35828 LIBS=$ac_check_lib_save_LIBS
35829 fi
35830 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
35831 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
35832 if test $ac_cv_lib_crypt_crypt = yes; then
35833   LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
35834                         have_crypt=yes
35835 else
35836   have_crypt=no
35837 fi
35838
35839 fi
35840
35841
35842         LIBS="$save_LIBS"
35843
35844         if test $have_crypt = yes ; then
35845
35846 cat >>confdefs.h <<\_ACEOF
35847 #define HAVE_CRYPT 1
35848 _ACEOF
35849
35850         else
35851                 { echo "$as_me:$LINENO: WARNING: could not find crypt" >&5
35852 echo "$as_me: WARNING: could not find crypt" >&2;}
35853                 if test $ol_enable_crypt = yes ; then
35854                         { { echo "$as_me:$LINENO: error: could not find crypt, select appropriate options or disable" >&5
35855 echo "$as_me: error: could not find crypt, select appropriate options or disable" >&2;}
35856    { (exit 1); exit 1; }; }
35857                 fi
35858
35859                 { echo "$as_me:$LINENO: WARNING: disabling crypt support" >&5
35860 echo "$as_me: WARNING: disabling crypt support" >&2;}
35861                 ol_enable_crypt=no
35862         fi
35863 fi
35864
35865 if test $ol_enable_proctitle != no ; then
35866         echo "$as_me:$LINENO: checking for setproctitle" >&5
35867 echo $ECHO_N "checking for setproctitle... $ECHO_C" >&6
35868 if test "${ac_cv_func_setproctitle+set}" = set; then
35869   echo $ECHO_N "(cached) $ECHO_C" >&6
35870 else
35871   cat >conftest.$ac_ext <<_ACEOF
35872 /* confdefs.h.  */
35873 _ACEOF
35874 cat confdefs.h >>conftest.$ac_ext
35875 cat >>conftest.$ac_ext <<_ACEOF
35876 /* end confdefs.h.  */
35877 /* Define setproctitle to an innocuous variant, in case <limits.h> declares setproctitle.
35878    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35879 #define setproctitle innocuous_setproctitle
35880
35881 /* System header to define __stub macros and hopefully few prototypes,
35882     which can conflict with char setproctitle (); below.
35883     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35884     <limits.h> exists even on freestanding compilers.  */
35885
35886 #ifdef __STDC__
35887 # include <limits.h>
35888 #else
35889 # include <assert.h>
35890 #endif
35891
35892 #undef setproctitle
35893
35894 /* Override any gcc2 internal prototype to avoid an error.  */
35895 #ifdef __cplusplus
35896 extern "C"
35897 {
35898 #endif
35899 /* We use char because int might match the return type of a gcc2
35900    builtin and then its argument prototype would still apply.  */
35901 char setproctitle ();
35902 /* The GNU C library defines this for functions which it implements
35903     to always fail with ENOSYS.  Some functions are actually named
35904     something starting with __ and the normal name is an alias.  */
35905 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
35906 choke me
35907 #else
35908 char (*f) () = setproctitle;
35909 #endif
35910 #ifdef __cplusplus
35911 }
35912 #endif
35913
35914 int
35915 main ()
35916 {
35917 return f != setproctitle;
35918   ;
35919   return 0;
35920 }
35921 _ACEOF
35922 rm -f conftest.$ac_objext conftest$ac_exeext
35923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35924   (eval $ac_link) 2>conftest.er1
35925   ac_status=$?
35926   grep -v '^ *+' conftest.er1 >conftest.err
35927   rm -f conftest.er1
35928   cat conftest.err >&5
35929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35930   (exit $ac_status); } &&
35931          { ac_try='test -z "$ac_c_werror_flag"
35932                          || test ! -s conftest.err'
35933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35934   (eval $ac_try) 2>&5
35935   ac_status=$?
35936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35937   (exit $ac_status); }; } &&
35938          { ac_try='test -s conftest$ac_exeext'
35939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35940   (eval $ac_try) 2>&5
35941   ac_status=$?
35942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35943   (exit $ac_status); }; }; then
35944   ac_cv_func_setproctitle=yes
35945 else
35946   echo "$as_me: failed program was:" >&5
35947 sed 's/^/| /' conftest.$ac_ext >&5
35948
35949 ac_cv_func_setproctitle=no
35950 fi
35951 rm -f conftest.err conftest.$ac_objext \
35952       conftest$ac_exeext conftest.$ac_ext
35953 fi
35954 echo "$as_me:$LINENO: result: $ac_cv_func_setproctitle" >&5
35955 echo "${ECHO_T}$ac_cv_func_setproctitle" >&6
35956 if test $ac_cv_func_setproctitle = yes; then
35957   have_setproctitle=yes
35958 else
35959
35960                 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
35961 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
35962 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
35963   echo $ECHO_N "(cached) $ECHO_C" >&6
35964 else
35965   ac_check_lib_save_LIBS=$LIBS
35966 LIBS="-lutil  $LIBS"
35967 cat >conftest.$ac_ext <<_ACEOF
35968 /* confdefs.h.  */
35969 _ACEOF
35970 cat confdefs.h >>conftest.$ac_ext
35971 cat >>conftest.$ac_ext <<_ACEOF
35972 /* end confdefs.h.  */
35973
35974 /* Override any gcc2 internal prototype to avoid an error.  */
35975 #ifdef __cplusplus
35976 extern "C"
35977 #endif
35978 /* We use char because int might match the return type of a gcc2
35979    builtin and then its argument prototype would still apply.  */
35980 char setproctitle ();
35981 int
35982 main ()
35983 {
35984 setproctitle ();
35985   ;
35986   return 0;
35987 }
35988 _ACEOF
35989 rm -f conftest.$ac_objext conftest$ac_exeext
35990 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35991   (eval $ac_link) 2>conftest.er1
35992   ac_status=$?
35993   grep -v '^ *+' conftest.er1 >conftest.err
35994   rm -f conftest.er1
35995   cat conftest.err >&5
35996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35997   (exit $ac_status); } &&
35998          { ac_try='test -z "$ac_c_werror_flag"
35999                          || test ! -s conftest.err'
36000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36001   (eval $ac_try) 2>&5
36002   ac_status=$?
36003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36004   (exit $ac_status); }; } &&
36005          { ac_try='test -s conftest$ac_exeext'
36006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36007   (eval $ac_try) 2>&5
36008   ac_status=$?
36009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36010   (exit $ac_status); }; }; then
36011   ac_cv_lib_util_setproctitle=yes
36012 else
36013   echo "$as_me: failed program was:" >&5
36014 sed 's/^/| /' conftest.$ac_ext >&5
36015
36016 ac_cv_lib_util_setproctitle=no
36017 fi
36018 rm -f conftest.err conftest.$ac_objext \
36019       conftest$ac_exeext conftest.$ac_ext
36020 LIBS=$ac_check_lib_save_LIBS
36021 fi
36022 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
36023 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
36024 if test $ac_cv_lib_util_setproctitle = yes; then
36025   have_setproctitle=yes
36026                         LUTIL_LIBS="$LUTIL_LIBS -lutil"
36027 else
36028   have_setproctitle=no
36029                         case $LIBOBJS in
36030     "setproctitle.$ac_objext"   | \
36031   *" setproctitle.$ac_objext"   | \
36032     "setproctitle.$ac_objext "* | \
36033   *" setproctitle.$ac_objext "* ) ;;
36034   *) LIBOBJS="$LIBOBJS setproctitle.$ac_objext" ;;
36035 esac
36036
36037                         LIBSRCS="$LIBSRCS setproctitle.c"
36038 fi
36039
36040 fi
36041
36042
36043         if test $have_setproctitle = yes ; then
36044
36045 cat >>confdefs.h <<\_ACEOF
36046 #define HAVE_SETPROCTITLE 1
36047 _ACEOF
36048
36049         fi
36050 fi
36051
36052 if test $ol_enable_slp != no ; then
36053
36054 for ac_header in slp.h
36055 do
36056 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36057 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36058   echo "$as_me:$LINENO: checking for $ac_header" >&5
36059 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36060 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36061   echo $ECHO_N "(cached) $ECHO_C" >&6
36062 fi
36063 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36064 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36065 else
36066   # Is the header compilable?
36067 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36068 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36069 cat >conftest.$ac_ext <<_ACEOF
36070 /* confdefs.h.  */
36071 _ACEOF
36072 cat confdefs.h >>conftest.$ac_ext
36073 cat >>conftest.$ac_ext <<_ACEOF
36074 /* end confdefs.h.  */
36075 $ac_includes_default
36076 #include <$ac_header>
36077 _ACEOF
36078 rm -f conftest.$ac_objext
36079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36080   (eval $ac_compile) 2>conftest.er1
36081   ac_status=$?
36082   grep -v '^ *+' conftest.er1 >conftest.err
36083   rm -f conftest.er1
36084   cat conftest.err >&5
36085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36086   (exit $ac_status); } &&
36087          { ac_try='test -z "$ac_c_werror_flag"
36088                          || test ! -s conftest.err'
36089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36090   (eval $ac_try) 2>&5
36091   ac_status=$?
36092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36093   (exit $ac_status); }; } &&
36094          { ac_try='test -s conftest.$ac_objext'
36095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36096   (eval $ac_try) 2>&5
36097   ac_status=$?
36098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36099   (exit $ac_status); }; }; then
36100   ac_header_compiler=yes
36101 else
36102   echo "$as_me: failed program was:" >&5
36103 sed 's/^/| /' conftest.$ac_ext >&5
36104
36105 ac_header_compiler=no
36106 fi
36107 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36108 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36109 echo "${ECHO_T}$ac_header_compiler" >&6
36110
36111 # Is the header present?
36112 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36113 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36114 cat >conftest.$ac_ext <<_ACEOF
36115 /* confdefs.h.  */
36116 _ACEOF
36117 cat confdefs.h >>conftest.$ac_ext
36118 cat >>conftest.$ac_ext <<_ACEOF
36119 /* end confdefs.h.  */
36120 #include <$ac_header>
36121 _ACEOF
36122 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36123   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36124   ac_status=$?
36125   grep -v '^ *+' conftest.er1 >conftest.err
36126   rm -f conftest.er1
36127   cat conftest.err >&5
36128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36129   (exit $ac_status); } >/dev/null; then
36130   if test -s conftest.err; then
36131     ac_cpp_err=$ac_c_preproc_warn_flag
36132     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36133   else
36134     ac_cpp_err=
36135   fi
36136 else
36137   ac_cpp_err=yes
36138 fi
36139 if test -z "$ac_cpp_err"; then
36140   ac_header_preproc=yes
36141 else
36142   echo "$as_me: failed program was:" >&5
36143 sed 's/^/| /' conftest.$ac_ext >&5
36144
36145   ac_header_preproc=no
36146 fi
36147 rm -f conftest.err conftest.$ac_ext
36148 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36149 echo "${ECHO_T}$ac_header_preproc" >&6
36150
36151 # So?  What about this header?
36152 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36153   yes:no: )
36154     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36155 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36156     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36157 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36158     ac_header_preproc=yes
36159     ;;
36160   no:yes:* )
36161     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36162 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36163     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
36164 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
36165     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36166 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36167     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
36168 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
36169     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36170 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36171     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36172 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36173     (
36174       cat <<\_ASBOX
36175 ## ------------------------------------------ ##
36176 ## Report this to the AC_PACKAGE_NAME lists.  ##
36177 ## ------------------------------------------ ##
36178 _ASBOX
36179     ) |
36180       sed "s/^/$as_me: WARNING:     /" >&2
36181     ;;
36182 esac
36183 echo "$as_me:$LINENO: checking for $ac_header" >&5
36184 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36185 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36186   echo $ECHO_N "(cached) $ECHO_C" >&6
36187 else
36188   eval "$as_ac_Header=\$ac_header_preproc"
36189 fi
36190 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36191 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36192
36193 fi
36194 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36195   cat >>confdefs.h <<_ACEOF
36196 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36197 _ACEOF
36198
36199 fi
36200
36201 done
36202
36203
36204         if test $ac_cv_header_slp_h = yes ; then
36205                 echo "$as_me:$LINENO: checking for SLPOpen in -lslp" >&5
36206 echo $ECHO_N "checking for SLPOpen in -lslp... $ECHO_C" >&6
36207 if test "${ac_cv_lib_slp_SLPOpen+set}" = set; then
36208   echo $ECHO_N "(cached) $ECHO_C" >&6
36209 else
36210   ac_check_lib_save_LIBS=$LIBS
36211 LIBS="-lslp  $LIBS"
36212 cat >conftest.$ac_ext <<_ACEOF
36213 /* confdefs.h.  */
36214 _ACEOF
36215 cat confdefs.h >>conftest.$ac_ext
36216 cat >>conftest.$ac_ext <<_ACEOF
36217 /* end confdefs.h.  */
36218
36219 /* Override any gcc2 internal prototype to avoid an error.  */
36220 #ifdef __cplusplus
36221 extern "C"
36222 #endif
36223 /* We use char because int might match the return type of a gcc2
36224    builtin and then its argument prototype would still apply.  */
36225 char SLPOpen ();
36226 int
36227 main ()
36228 {
36229 SLPOpen ();
36230   ;
36231   return 0;
36232 }
36233 _ACEOF
36234 rm -f conftest.$ac_objext conftest$ac_exeext
36235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36236   (eval $ac_link) 2>conftest.er1
36237   ac_status=$?
36238   grep -v '^ *+' conftest.er1 >conftest.err
36239   rm -f conftest.er1
36240   cat conftest.err >&5
36241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36242   (exit $ac_status); } &&
36243          { ac_try='test -z "$ac_c_werror_flag"
36244                          || test ! -s conftest.err'
36245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36246   (eval $ac_try) 2>&5
36247   ac_status=$?
36248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36249   (exit $ac_status); }; } &&
36250          { ac_try='test -s conftest$ac_exeext'
36251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36252   (eval $ac_try) 2>&5
36253   ac_status=$?
36254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36255   (exit $ac_status); }; }; then
36256   ac_cv_lib_slp_SLPOpen=yes
36257 else
36258   echo "$as_me: failed program was:" >&5
36259 sed 's/^/| /' conftest.$ac_ext >&5
36260
36261 ac_cv_lib_slp_SLPOpen=no
36262 fi
36263 rm -f conftest.err conftest.$ac_objext \
36264       conftest$ac_exeext conftest.$ac_ext
36265 LIBS=$ac_check_lib_save_LIBS
36266 fi
36267 echo "$as_me:$LINENO: result: $ac_cv_lib_slp_SLPOpen" >&5
36268 echo "${ECHO_T}$ac_cv_lib_slp_SLPOpen" >&6
36269 if test $ac_cv_lib_slp_SLPOpen = yes; then
36270   have_slp=yes
36271 else
36272   have_slp=no
36273 fi
36274
36275                 if test $have_slp = yes ; then
36276
36277 cat >>confdefs.h <<\_ACEOF
36278 #define HAVE_SLP 1
36279 _ACEOF
36280
36281                         SLAPD_SLP_LIBS=-lslp
36282                 fi
36283
36284         elif test $ol_enable_slp = yes ; then
36285                 { { echo "$as_me:$LINENO: error: SLP not found" >&5
36286 echo "$as_me: error: SLP not found" >&2;}
36287    { (exit 1); exit 1; }; }
36288         fi
36289 fi
36290
36291 if test "$ol_with_multiple_precision" != "no" ; then
36292         ol_have_bignum=no
36293         ol_have_gmp=no
36294
36295
36296
36297 for ac_header in openssl/bn.h bn.h
36298 do
36299 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36300 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36301   echo "$as_me:$LINENO: checking for $ac_header" >&5
36302 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36303 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36304   echo $ECHO_N "(cached) $ECHO_C" >&6
36305 fi
36306 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36307 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36308 else
36309   # Is the header compilable?
36310 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36311 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36312 cat >conftest.$ac_ext <<_ACEOF
36313 /* confdefs.h.  */
36314 _ACEOF
36315 cat confdefs.h >>conftest.$ac_ext
36316 cat >>conftest.$ac_ext <<_ACEOF
36317 /* end confdefs.h.  */
36318 $ac_includes_default
36319 #include <$ac_header>
36320 _ACEOF
36321 rm -f conftest.$ac_objext
36322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36323   (eval $ac_compile) 2>conftest.er1
36324   ac_status=$?
36325   grep -v '^ *+' conftest.er1 >conftest.err
36326   rm -f conftest.er1
36327   cat conftest.err >&5
36328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36329   (exit $ac_status); } &&
36330          { ac_try='test -z "$ac_c_werror_flag"
36331                          || test ! -s conftest.err'
36332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36333   (eval $ac_try) 2>&5
36334   ac_status=$?
36335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36336   (exit $ac_status); }; } &&
36337          { ac_try='test -s conftest.$ac_objext'
36338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36339   (eval $ac_try) 2>&5
36340   ac_status=$?
36341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36342   (exit $ac_status); }; }; then
36343   ac_header_compiler=yes
36344 else
36345   echo "$as_me: failed program was:" >&5
36346 sed 's/^/| /' conftest.$ac_ext >&5
36347
36348 ac_header_compiler=no
36349 fi
36350 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36351 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36352 echo "${ECHO_T}$ac_header_compiler" >&6
36353
36354 # Is the header present?
36355 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36356 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36357 cat >conftest.$ac_ext <<_ACEOF
36358 /* confdefs.h.  */
36359 _ACEOF
36360 cat confdefs.h >>conftest.$ac_ext
36361 cat >>conftest.$ac_ext <<_ACEOF
36362 /* end confdefs.h.  */
36363 #include <$ac_header>
36364 _ACEOF
36365 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36366   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36367   ac_status=$?
36368   grep -v '^ *+' conftest.er1 >conftest.err
36369   rm -f conftest.er1
36370   cat conftest.err >&5
36371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36372   (exit $ac_status); } >/dev/null; then
36373   if test -s conftest.err; then
36374     ac_cpp_err=$ac_c_preproc_warn_flag
36375     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36376   else
36377     ac_cpp_err=
36378   fi
36379 else
36380   ac_cpp_err=yes
36381 fi
36382 if test -z "$ac_cpp_err"; then
36383   ac_header_preproc=yes
36384 else
36385   echo "$as_me: failed program was:" >&5
36386 sed 's/^/| /' conftest.$ac_ext >&5
36387
36388   ac_header_preproc=no
36389 fi
36390 rm -f conftest.err conftest.$ac_ext
36391 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36392 echo "${ECHO_T}$ac_header_preproc" >&6
36393
36394 # So?  What about this header?
36395 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36396   yes:no: )
36397     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36398 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36399     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36400 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36401     ac_header_preproc=yes
36402     ;;
36403   no:yes:* )
36404     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36405 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36406     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
36407 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
36408     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36409 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36410     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
36411 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
36412     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36413 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36414     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36415 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36416     (
36417       cat <<\_ASBOX
36418 ## ------------------------------------------ ##
36419 ## Report this to the AC_PACKAGE_NAME lists.  ##
36420 ## ------------------------------------------ ##
36421 _ASBOX
36422     ) |
36423       sed "s/^/$as_me: WARNING:     /" >&2
36424     ;;
36425 esac
36426 echo "$as_me:$LINENO: checking for $ac_header" >&5
36427 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36428 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36429   echo $ECHO_N "(cached) $ECHO_C" >&6
36430 else
36431   eval "$as_ac_Header=\$ac_header_preproc"
36432 fi
36433 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36434 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36435
36436 fi
36437 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36438   cat >>confdefs.h <<_ACEOF
36439 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36440 _ACEOF
36441
36442 fi
36443
36444 done
36445
36446
36447
36448 for ac_header in openssl/crypto.h crypto.h
36449 do
36450 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36451 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36452   echo "$as_me:$LINENO: checking for $ac_header" >&5
36453 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36454 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36455   echo $ECHO_N "(cached) $ECHO_C" >&6
36456 fi
36457 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36458 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36459 else
36460   # Is the header compilable?
36461 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36462 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36463 cat >conftest.$ac_ext <<_ACEOF
36464 /* confdefs.h.  */
36465 _ACEOF
36466 cat confdefs.h >>conftest.$ac_ext
36467 cat >>conftest.$ac_ext <<_ACEOF
36468 /* end confdefs.h.  */
36469 $ac_includes_default
36470 #include <$ac_header>
36471 _ACEOF
36472 rm -f conftest.$ac_objext
36473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36474   (eval $ac_compile) 2>conftest.er1
36475   ac_status=$?
36476   grep -v '^ *+' conftest.er1 >conftest.err
36477   rm -f conftest.er1
36478   cat conftest.err >&5
36479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36480   (exit $ac_status); } &&
36481          { ac_try='test -z "$ac_c_werror_flag"
36482                          || test ! -s conftest.err'
36483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36484   (eval $ac_try) 2>&5
36485   ac_status=$?
36486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36487   (exit $ac_status); }; } &&
36488          { ac_try='test -s conftest.$ac_objext'
36489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36490   (eval $ac_try) 2>&5
36491   ac_status=$?
36492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36493   (exit $ac_status); }; }; then
36494   ac_header_compiler=yes
36495 else
36496   echo "$as_me: failed program was:" >&5
36497 sed 's/^/| /' conftest.$ac_ext >&5
36498
36499 ac_header_compiler=no
36500 fi
36501 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36502 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36503 echo "${ECHO_T}$ac_header_compiler" >&6
36504
36505 # Is the header present?
36506 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36507 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36508 cat >conftest.$ac_ext <<_ACEOF
36509 /* confdefs.h.  */
36510 _ACEOF
36511 cat confdefs.h >>conftest.$ac_ext
36512 cat >>conftest.$ac_ext <<_ACEOF
36513 /* end confdefs.h.  */
36514 #include <$ac_header>
36515 _ACEOF
36516 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36517   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36518   ac_status=$?
36519   grep -v '^ *+' conftest.er1 >conftest.err
36520   rm -f conftest.er1
36521   cat conftest.err >&5
36522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36523   (exit $ac_status); } >/dev/null; then
36524   if test -s conftest.err; then
36525     ac_cpp_err=$ac_c_preproc_warn_flag
36526     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36527   else
36528     ac_cpp_err=
36529   fi
36530 else
36531   ac_cpp_err=yes
36532 fi
36533 if test -z "$ac_cpp_err"; then
36534   ac_header_preproc=yes
36535 else
36536   echo "$as_me: failed program was:" >&5
36537 sed 's/^/| /' conftest.$ac_ext >&5
36538
36539   ac_header_preproc=no
36540 fi
36541 rm -f conftest.err conftest.$ac_ext
36542 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36543 echo "${ECHO_T}$ac_header_preproc" >&6
36544
36545 # So?  What about this header?
36546 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36547   yes:no: )
36548     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36549 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36550     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36551 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36552     ac_header_preproc=yes
36553     ;;
36554   no:yes:* )
36555     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36556 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36557     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
36558 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
36559     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36560 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36561     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
36562 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
36563     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36564 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36565     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36566 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36567     (
36568       cat <<\_ASBOX
36569 ## ------------------------------------------ ##
36570 ## Report this to the AC_PACKAGE_NAME lists.  ##
36571 ## ------------------------------------------ ##
36572 _ASBOX
36573     ) |
36574       sed "s/^/$as_me: WARNING:     /" >&2
36575     ;;
36576 esac
36577 echo "$as_me:$LINENO: checking for $ac_header" >&5
36578 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36579 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36580   echo $ECHO_N "(cached) $ECHO_C" >&6
36581 else
36582   eval "$as_ac_Header=\$ac_header_preproc"
36583 fi
36584 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36585 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36586
36587 fi
36588 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36589   cat >>confdefs.h <<_ACEOF
36590 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36591 _ACEOF
36592
36593 fi
36594
36595 done
36596
36597
36598 for ac_header in gmp.h
36599 do
36600 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36601 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36602   echo "$as_me:$LINENO: checking for $ac_header" >&5
36603 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36604 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36605   echo $ECHO_N "(cached) $ECHO_C" >&6
36606 fi
36607 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36608 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36609 else
36610   # Is the header compilable?
36611 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36612 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36613 cat >conftest.$ac_ext <<_ACEOF
36614 /* confdefs.h.  */
36615 _ACEOF
36616 cat confdefs.h >>conftest.$ac_ext
36617 cat >>conftest.$ac_ext <<_ACEOF
36618 /* end confdefs.h.  */
36619 $ac_includes_default
36620 #include <$ac_header>
36621 _ACEOF
36622 rm -f conftest.$ac_objext
36623 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36624   (eval $ac_compile) 2>conftest.er1
36625   ac_status=$?
36626   grep -v '^ *+' conftest.er1 >conftest.err
36627   rm -f conftest.er1
36628   cat conftest.err >&5
36629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36630   (exit $ac_status); } &&
36631          { ac_try='test -z "$ac_c_werror_flag"
36632                          || test ! -s conftest.err'
36633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36634   (eval $ac_try) 2>&5
36635   ac_status=$?
36636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36637   (exit $ac_status); }; } &&
36638          { ac_try='test -s conftest.$ac_objext'
36639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36640   (eval $ac_try) 2>&5
36641   ac_status=$?
36642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36643   (exit $ac_status); }; }; then
36644   ac_header_compiler=yes
36645 else
36646   echo "$as_me: failed program was:" >&5
36647 sed 's/^/| /' conftest.$ac_ext >&5
36648
36649 ac_header_compiler=no
36650 fi
36651 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36652 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36653 echo "${ECHO_T}$ac_header_compiler" >&6
36654
36655 # Is the header present?
36656 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36657 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36658 cat >conftest.$ac_ext <<_ACEOF
36659 /* confdefs.h.  */
36660 _ACEOF
36661 cat confdefs.h >>conftest.$ac_ext
36662 cat >>conftest.$ac_ext <<_ACEOF
36663 /* end confdefs.h.  */
36664 #include <$ac_header>
36665 _ACEOF
36666 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36667   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36668   ac_status=$?
36669   grep -v '^ *+' conftest.er1 >conftest.err
36670   rm -f conftest.er1
36671   cat conftest.err >&5
36672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36673   (exit $ac_status); } >/dev/null; then
36674   if test -s conftest.err; then
36675     ac_cpp_err=$ac_c_preproc_warn_flag
36676     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36677   else
36678     ac_cpp_err=
36679   fi
36680 else
36681   ac_cpp_err=yes
36682 fi
36683 if test -z "$ac_cpp_err"; then
36684   ac_header_preproc=yes
36685 else
36686   echo "$as_me: failed program was:" >&5
36687 sed 's/^/| /' conftest.$ac_ext >&5
36688
36689   ac_header_preproc=no
36690 fi
36691 rm -f conftest.err conftest.$ac_ext
36692 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36693 echo "${ECHO_T}$ac_header_preproc" >&6
36694
36695 # So?  What about this header?
36696 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36697   yes:no: )
36698     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36699 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36700     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36701 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36702     ac_header_preproc=yes
36703     ;;
36704   no:yes:* )
36705     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36706 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36707     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
36708 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
36709     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36710 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36711     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
36712 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
36713     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36714 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36715     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36716 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36717     (
36718       cat <<\_ASBOX
36719 ## ------------------------------------------ ##
36720 ## Report this to the AC_PACKAGE_NAME lists.  ##
36721 ## ------------------------------------------ ##
36722 _ASBOX
36723     ) |
36724       sed "s/^/$as_me: WARNING:     /" >&2
36725     ;;
36726 esac
36727 echo "$as_me:$LINENO: checking for $ac_header" >&5
36728 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36729 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36730   echo $ECHO_N "(cached) $ECHO_C" >&6
36731 else
36732   eval "$as_ac_Header=\$ac_header_preproc"
36733 fi
36734 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36735 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36736
36737 fi
36738 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36739   cat >>confdefs.h <<_ACEOF
36740 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36741 _ACEOF
36742
36743 fi
36744
36745 done
36746
36747
36748         if test "$ol_with_tls" = "found" ; then
36749                 ol_have_bn_h=no
36750                 ol_have_crypto_h=no
36751
36752                 if test "$ac_cv_header_openssl_bn_h" = "yes" \
36753                                 -o "$ac_cv_header_bn_h" = "yes" ; then
36754                         ol_have_bn_h=yes
36755                 fi
36756
36757                 if test "$ac_cv_header_openssl_crypto_h" = "yes" \
36758                                 -o "$ac_cv_header_crypto_h" = "yes" ; then
36759                         ol_have_crypto_h=yes
36760                 fi
36761
36762                 if test "$ol_have_bn_h" = "yes" \
36763                                 -a "$ol_have_crypto_h" = "yes" ; then
36764                         ol_have_bignum=yes
36765                 fi
36766         fi
36767
36768         if test $ac_cv_header_gmp_h = yes ; then
36769                 echo "$as_me:$LINENO: checking for __gmpz_add_ui in -lgmp" >&5
36770 echo $ECHO_N "checking for __gmpz_add_ui in -lgmp... $ECHO_C" >&6
36771 if test "${ac_cv_lib_gmp___gmpz_add_ui+set}" = set; then
36772   echo $ECHO_N "(cached) $ECHO_C" >&6
36773 else
36774   ac_check_lib_save_LIBS=$LIBS
36775 LIBS="-lgmp  $LIBS"
36776 cat >conftest.$ac_ext <<_ACEOF
36777 /* confdefs.h.  */
36778 _ACEOF
36779 cat confdefs.h >>conftest.$ac_ext
36780 cat >>conftest.$ac_ext <<_ACEOF
36781 /* end confdefs.h.  */
36782
36783 /* Override any gcc2 internal prototype to avoid an error.  */
36784 #ifdef __cplusplus
36785 extern "C"
36786 #endif
36787 /* We use char because int might match the return type of a gcc2
36788    builtin and then its argument prototype would still apply.  */
36789 char __gmpz_add_ui ();
36790 int
36791 main ()
36792 {
36793 __gmpz_add_ui ();
36794   ;
36795   return 0;
36796 }
36797 _ACEOF
36798 rm -f conftest.$ac_objext conftest$ac_exeext
36799 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36800   (eval $ac_link) 2>conftest.er1
36801   ac_status=$?
36802   grep -v '^ *+' conftest.er1 >conftest.err
36803   rm -f conftest.er1
36804   cat conftest.err >&5
36805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36806   (exit $ac_status); } &&
36807          { ac_try='test -z "$ac_c_werror_flag"
36808                          || test ! -s conftest.err'
36809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36810   (eval $ac_try) 2>&5
36811   ac_status=$?
36812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36813   (exit $ac_status); }; } &&
36814          { ac_try='test -s conftest$ac_exeext'
36815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36816   (eval $ac_try) 2>&5
36817   ac_status=$?
36818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36819   (exit $ac_status); }; }; then
36820   ac_cv_lib_gmp___gmpz_add_ui=yes
36821 else
36822   echo "$as_me: failed program was:" >&5
36823 sed 's/^/| /' conftest.$ac_ext >&5
36824
36825 ac_cv_lib_gmp___gmpz_add_ui=no
36826 fi
36827 rm -f conftest.err conftest.$ac_objext \
36828       conftest$ac_exeext conftest.$ac_ext
36829 LIBS=$ac_check_lib_save_LIBS
36830 fi
36831 echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmpz_add_ui" >&5
36832 echo "${ECHO_T}$ac_cv_lib_gmp___gmpz_add_ui" >&6
36833 if test $ac_cv_lib_gmp___gmpz_add_ui = yes; then
36834   have_gmp=yes
36835 else
36836   have_gmp=no
36837 fi
36838
36839                 if test $have_gmp = yes ; then
36840                         ol_have_gmp=yes
36841                 fi
36842         fi
36843
36844         echo "$as_me:$LINENO: checking for multiple precision support" >&5
36845 echo $ECHO_N "checking for multiple precision support... $ECHO_C" >&6
36846
36847         ol_mp_support="none"
36848         case "$ol_with_multiple_precision" in
36849         auto)
36850                                                                                 if test "$ol_have_bignum" = "yes" ; then
36851                         ol_mp_support="bignum"
36852                 else
36853                         if test "$ol_have_gmp" = "yes" ; then
36854                                 ol_mp_support="gmp"
36855                         fi
36856                 fi
36857                 ;;
36858         bignum)
36859                 if test "$ol_have_bignum" != "yes" ; then
36860                         { { echo "$as_me:$LINENO: error: OpenSSL's BIGNUM not available" >&5
36861 echo "$as_me: error: OpenSSL's BIGNUM not available" >&2;}
36862    { (exit 1); exit 1; }; }
36863                 fi
36864                 ol_mp_support="bignum"
36865                 ;;
36866         gmp)
36867                 if test "$ol_have_gmp" != "yes" ; then
36868                         { { echo "$as_me:$LINENO: error: GMP not available" >&5
36869 echo "$as_me: error: GMP not available" >&2;}
36870    { (exit 1); exit 1; }; }
36871                 fi
36872                 ol_mp_support="gmp"
36873                 ;;
36874         yes)
36875                 if test "$ol_have_bignum" = "yes" ; then
36876                         ol_mp_support="bignum"
36877                 elif test "$ol_have_gmp" = "yes" ; then
36878                         ol_mp_support="gmp"
36879                 else
36880                         { { echo "$as_me:$LINENO: error: not available" >&5
36881 echo "$as_me: error: not available" >&2;}
36882    { (exit 1); exit 1; }; }
36883                 fi
36884                 ;;
36885         esac
36886
36887         case "$ol_mp_support" in
36888         bignum)
36889
36890 cat >>confdefs.h <<\_ACEOF
36891 #define HAVE_BIGNUM 1
36892 _ACEOF
36893
36894                 ;;
36895         gmp)
36896
36897 cat >>confdefs.h <<\_ACEOF
36898 #define HAVE_GMP 1
36899 _ACEOF
36900
36901                 SLAPD_GMP_LIBS=-lgmp
36902                 ;;
36903         none)
36904                 ;;
36905         esac
36906
36907         echo "$as_me:$LINENO: result: $ol_mp_support" >&5
36908 echo "${ECHO_T}$ol_mp_support" >&6
36909 fi
36910
36911
36912 echo "$as_me:$LINENO: checking for mode_t" >&5
36913 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
36914 if test "${ac_cv_type_mode_t+set}" = set; then
36915   echo $ECHO_N "(cached) $ECHO_C" >&6
36916 else
36917   cat >conftest.$ac_ext <<_ACEOF
36918 /* confdefs.h.  */
36919 _ACEOF
36920 cat confdefs.h >>conftest.$ac_ext
36921 cat >>conftest.$ac_ext <<_ACEOF
36922 /* end confdefs.h.  */
36923 $ac_includes_default
36924 int
36925 main ()
36926 {
36927 if ((mode_t *) 0)
36928   return 0;
36929 if (sizeof (mode_t))
36930   return 0;
36931   ;
36932   return 0;
36933 }
36934 _ACEOF
36935 rm -f conftest.$ac_objext
36936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36937   (eval $ac_compile) 2>conftest.er1
36938   ac_status=$?
36939   grep -v '^ *+' conftest.er1 >conftest.err
36940   rm -f conftest.er1
36941   cat conftest.err >&5
36942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36943   (exit $ac_status); } &&
36944          { ac_try='test -z "$ac_c_werror_flag"
36945                          || test ! -s conftest.err'
36946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36947   (eval $ac_try) 2>&5
36948   ac_status=$?
36949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36950   (exit $ac_status); }; } &&
36951          { ac_try='test -s conftest.$ac_objext'
36952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36953   (eval $ac_try) 2>&5
36954   ac_status=$?
36955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36956   (exit $ac_status); }; }; then
36957   ac_cv_type_mode_t=yes
36958 else
36959   echo "$as_me: failed program was:" >&5
36960 sed 's/^/| /' conftest.$ac_ext >&5
36961
36962 ac_cv_type_mode_t=no
36963 fi
36964 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36965 fi
36966 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
36967 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
36968 if test $ac_cv_type_mode_t = yes; then
36969   :
36970 else
36971
36972 cat >>confdefs.h <<_ACEOF
36973 #define mode_t int
36974 _ACEOF
36975
36976 fi
36977
36978 echo "$as_me:$LINENO: checking for off_t" >&5
36979 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
36980 if test "${ac_cv_type_off_t+set}" = set; then
36981   echo $ECHO_N "(cached) $ECHO_C" >&6
36982 else
36983   cat >conftest.$ac_ext <<_ACEOF
36984 /* confdefs.h.  */
36985 _ACEOF
36986 cat confdefs.h >>conftest.$ac_ext
36987 cat >>conftest.$ac_ext <<_ACEOF
36988 /* end confdefs.h.  */
36989 $ac_includes_default
36990 int
36991 main ()
36992 {
36993 if ((off_t *) 0)
36994   return 0;
36995 if (sizeof (off_t))
36996   return 0;
36997   ;
36998   return 0;
36999 }
37000 _ACEOF
37001 rm -f conftest.$ac_objext
37002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37003   (eval $ac_compile) 2>conftest.er1
37004   ac_status=$?
37005   grep -v '^ *+' conftest.er1 >conftest.err
37006   rm -f conftest.er1
37007   cat conftest.err >&5
37008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37009   (exit $ac_status); } &&
37010          { ac_try='test -z "$ac_c_werror_flag"
37011                          || test ! -s conftest.err'
37012   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37013   (eval $ac_try) 2>&5
37014   ac_status=$?
37015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37016   (exit $ac_status); }; } &&
37017          { ac_try='test -s conftest.$ac_objext'
37018   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37019   (eval $ac_try) 2>&5
37020   ac_status=$?
37021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37022   (exit $ac_status); }; }; then
37023   ac_cv_type_off_t=yes
37024 else
37025   echo "$as_me: failed program was:" >&5
37026 sed 's/^/| /' conftest.$ac_ext >&5
37027
37028 ac_cv_type_off_t=no
37029 fi
37030 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37031 fi
37032 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
37033 echo "${ECHO_T}$ac_cv_type_off_t" >&6
37034 if test $ac_cv_type_off_t = yes; then
37035   :
37036 else
37037
37038 cat >>confdefs.h <<_ACEOF
37039 #define off_t long
37040 _ACEOF
37041
37042 fi
37043
37044 echo "$as_me:$LINENO: checking for pid_t" >&5
37045 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
37046 if test "${ac_cv_type_pid_t+set}" = set; then
37047   echo $ECHO_N "(cached) $ECHO_C" >&6
37048 else
37049   cat >conftest.$ac_ext <<_ACEOF
37050 /* confdefs.h.  */
37051 _ACEOF
37052 cat confdefs.h >>conftest.$ac_ext
37053 cat >>conftest.$ac_ext <<_ACEOF
37054 /* end confdefs.h.  */
37055 $ac_includes_default
37056 int
37057 main ()
37058 {
37059 if ((pid_t *) 0)
37060   return 0;
37061 if (sizeof (pid_t))
37062   return 0;
37063   ;
37064   return 0;
37065 }
37066 _ACEOF
37067 rm -f conftest.$ac_objext
37068 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37069   (eval $ac_compile) 2>conftest.er1
37070   ac_status=$?
37071   grep -v '^ *+' conftest.er1 >conftest.err
37072   rm -f conftest.er1
37073   cat conftest.err >&5
37074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37075   (exit $ac_status); } &&
37076          { ac_try='test -z "$ac_c_werror_flag"
37077                          || test ! -s conftest.err'
37078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37079   (eval $ac_try) 2>&5
37080   ac_status=$?
37081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37082   (exit $ac_status); }; } &&
37083          { ac_try='test -s conftest.$ac_objext'
37084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37085   (eval $ac_try) 2>&5
37086   ac_status=$?
37087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37088   (exit $ac_status); }; }; then
37089   ac_cv_type_pid_t=yes
37090 else
37091   echo "$as_me: failed program was:" >&5
37092 sed 's/^/| /' conftest.$ac_ext >&5
37093
37094 ac_cv_type_pid_t=no
37095 fi
37096 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37097 fi
37098 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
37099 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
37100 if test $ac_cv_type_pid_t = yes; then
37101   :
37102 else
37103
37104 cat >>confdefs.h <<_ACEOF
37105 #define pid_t int
37106 _ACEOF
37107
37108 fi
37109
37110 echo "$as_me:$LINENO: checking for ssize_t" >&5
37111 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
37112 if test "${ac_cv_type_ssize_t+set}" = set; then
37113   echo $ECHO_N "(cached) $ECHO_C" >&6
37114 else
37115   cat >conftest.$ac_ext <<_ACEOF
37116 /* confdefs.h.  */
37117 _ACEOF
37118 cat confdefs.h >>conftest.$ac_ext
37119 cat >>conftest.$ac_ext <<_ACEOF
37120 /* end confdefs.h.  */
37121 $ac_includes_default
37122 int
37123 main ()
37124 {
37125 if ((ssize_t *) 0)
37126   return 0;
37127 if (sizeof (ssize_t))
37128   return 0;
37129   ;
37130   return 0;
37131 }
37132 _ACEOF
37133 rm -f conftest.$ac_objext
37134 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37135   (eval $ac_compile) 2>conftest.er1
37136   ac_status=$?
37137   grep -v '^ *+' conftest.er1 >conftest.err
37138   rm -f conftest.er1
37139   cat conftest.err >&5
37140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37141   (exit $ac_status); } &&
37142          { ac_try='test -z "$ac_c_werror_flag"
37143                          || test ! -s conftest.err'
37144   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37145   (eval $ac_try) 2>&5
37146   ac_status=$?
37147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37148   (exit $ac_status); }; } &&
37149          { ac_try='test -s conftest.$ac_objext'
37150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37151   (eval $ac_try) 2>&5
37152   ac_status=$?
37153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37154   (exit $ac_status); }; }; then
37155   ac_cv_type_ssize_t=yes
37156 else
37157   echo "$as_me: failed program was:" >&5
37158 sed 's/^/| /' conftest.$ac_ext >&5
37159
37160 ac_cv_type_ssize_t=no
37161 fi
37162 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37163 fi
37164 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
37165 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
37166 if test $ac_cv_type_ssize_t = yes; then
37167   :
37168 else
37169
37170 cat >>confdefs.h <<_ACEOF
37171 #define ssize_t signed int
37172 _ACEOF
37173
37174 fi
37175
37176 echo "$as_me:$LINENO: checking for caddr_t" >&5
37177 echo $ECHO_N "checking for caddr_t... $ECHO_C" >&6
37178 if test "${ac_cv_type_caddr_t+set}" = set; then
37179   echo $ECHO_N "(cached) $ECHO_C" >&6
37180 else
37181   cat >conftest.$ac_ext <<_ACEOF
37182 /* confdefs.h.  */
37183 _ACEOF
37184 cat confdefs.h >>conftest.$ac_ext
37185 cat >>conftest.$ac_ext <<_ACEOF
37186 /* end confdefs.h.  */
37187 $ac_includes_default
37188 int
37189 main ()
37190 {
37191 if ((caddr_t *) 0)
37192   return 0;
37193 if (sizeof (caddr_t))
37194   return 0;
37195   ;
37196   return 0;
37197 }
37198 _ACEOF
37199 rm -f conftest.$ac_objext
37200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37201   (eval $ac_compile) 2>conftest.er1
37202   ac_status=$?
37203   grep -v '^ *+' conftest.er1 >conftest.err
37204   rm -f conftest.er1
37205   cat conftest.err >&5
37206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37207   (exit $ac_status); } &&
37208          { ac_try='test -z "$ac_c_werror_flag"
37209                          || test ! -s conftest.err'
37210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37211   (eval $ac_try) 2>&5
37212   ac_status=$?
37213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37214   (exit $ac_status); }; } &&
37215          { ac_try='test -s conftest.$ac_objext'
37216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37217   (eval $ac_try) 2>&5
37218   ac_status=$?
37219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37220   (exit $ac_status); }; }; then
37221   ac_cv_type_caddr_t=yes
37222 else
37223   echo "$as_me: failed program was:" >&5
37224 sed 's/^/| /' conftest.$ac_ext >&5
37225
37226 ac_cv_type_caddr_t=no
37227 fi
37228 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37229 fi
37230 echo "$as_me:$LINENO: result: $ac_cv_type_caddr_t" >&5
37231 echo "${ECHO_T}$ac_cv_type_caddr_t" >&6
37232 if test $ac_cv_type_caddr_t = yes; then
37233   :
37234 else
37235
37236 cat >>confdefs.h <<_ACEOF
37237 #define caddr_t char *
37238 _ACEOF
37239
37240 fi
37241
37242 echo "$as_me:$LINENO: checking for size_t" >&5
37243 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
37244 if test "${ac_cv_type_size_t+set}" = set; then
37245   echo $ECHO_N "(cached) $ECHO_C" >&6
37246 else
37247   cat >conftest.$ac_ext <<_ACEOF
37248 /* confdefs.h.  */
37249 _ACEOF
37250 cat confdefs.h >>conftest.$ac_ext
37251 cat >>conftest.$ac_ext <<_ACEOF
37252 /* end confdefs.h.  */
37253 $ac_includes_default
37254 int
37255 main ()
37256 {
37257 if ((size_t *) 0)
37258   return 0;
37259 if (sizeof (size_t))
37260   return 0;
37261   ;
37262   return 0;
37263 }
37264 _ACEOF
37265 rm -f conftest.$ac_objext
37266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37267   (eval $ac_compile) 2>conftest.er1
37268   ac_status=$?
37269   grep -v '^ *+' conftest.er1 >conftest.err
37270   rm -f conftest.er1
37271   cat conftest.err >&5
37272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37273   (exit $ac_status); } &&
37274          { ac_try='test -z "$ac_c_werror_flag"
37275                          || test ! -s conftest.err'
37276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37277   (eval $ac_try) 2>&5
37278   ac_status=$?
37279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37280   (exit $ac_status); }; } &&
37281          { ac_try='test -s conftest.$ac_objext'
37282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37283   (eval $ac_try) 2>&5
37284   ac_status=$?
37285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37286   (exit $ac_status); }; }; then
37287   ac_cv_type_size_t=yes
37288 else
37289   echo "$as_me: failed program was:" >&5
37290 sed 's/^/| /' conftest.$ac_ext >&5
37291
37292 ac_cv_type_size_t=no
37293 fi
37294 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37295 fi
37296 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
37297 echo "${ECHO_T}$ac_cv_type_size_t" >&6
37298 if test $ac_cv_type_size_t = yes; then
37299   :
37300 else
37301
37302 cat >>confdefs.h <<_ACEOF
37303 #define size_t unsigned
37304 _ACEOF
37305
37306 fi
37307
37308
37309 echo "$as_me:$LINENO: checking for long long" >&5
37310 echo $ECHO_N "checking for long long... $ECHO_C" >&6
37311 if test "${ac_cv_type_long_long+set}" = set; then
37312   echo $ECHO_N "(cached) $ECHO_C" >&6
37313 else
37314   cat >conftest.$ac_ext <<_ACEOF
37315 /* confdefs.h.  */
37316 _ACEOF
37317 cat confdefs.h >>conftest.$ac_ext
37318 cat >>conftest.$ac_ext <<_ACEOF
37319 /* end confdefs.h.  */
37320 $ac_includes_default
37321 int
37322 main ()
37323 {
37324 if ((long long *) 0)
37325   return 0;
37326 if (sizeof (long long))
37327   return 0;
37328   ;
37329   return 0;
37330 }
37331 _ACEOF
37332 rm -f conftest.$ac_objext
37333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37334   (eval $ac_compile) 2>conftest.er1
37335   ac_status=$?
37336   grep -v '^ *+' conftest.er1 >conftest.err
37337   rm -f conftest.er1
37338   cat conftest.err >&5
37339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37340   (exit $ac_status); } &&
37341          { ac_try='test -z "$ac_c_werror_flag"
37342                          || test ! -s conftest.err'
37343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37344   (eval $ac_try) 2>&5
37345   ac_status=$?
37346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37347   (exit $ac_status); }; } &&
37348          { ac_try='test -s conftest.$ac_objext'
37349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37350   (eval $ac_try) 2>&5
37351   ac_status=$?
37352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37353   (exit $ac_status); }; }; then
37354   ac_cv_type_long_long=yes
37355 else
37356   echo "$as_me: failed program was:" >&5
37357 sed 's/^/| /' conftest.$ac_ext >&5
37358
37359 ac_cv_type_long_long=no
37360 fi
37361 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37362 fi
37363 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
37364 echo "${ECHO_T}$ac_cv_type_long_long" >&6
37365 if test $ac_cv_type_long_long = yes; then
37366
37367 cat >>confdefs.h <<_ACEOF
37368 #define HAVE_LONG_LONG 1
37369 _ACEOF
37370
37371
37372 fi
37373
37374 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
37375 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
37376 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
37377   echo $ECHO_N "(cached) $ECHO_C" >&6
37378 else
37379   cat >conftest.$ac_ext <<_ACEOF
37380 /* confdefs.h.  */
37381 _ACEOF
37382 cat confdefs.h >>conftest.$ac_ext
37383 cat >>conftest.$ac_ext <<_ACEOF
37384 /* end confdefs.h.  */
37385 $ac_includes_default
37386 int
37387 main ()
37388 {
37389 if ((ptrdiff_t *) 0)
37390   return 0;
37391 if (sizeof (ptrdiff_t))
37392   return 0;
37393   ;
37394   return 0;
37395 }
37396 _ACEOF
37397 rm -f conftest.$ac_objext
37398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37399   (eval $ac_compile) 2>conftest.er1
37400   ac_status=$?
37401   grep -v '^ *+' conftest.er1 >conftest.err
37402   rm -f conftest.er1
37403   cat conftest.err >&5
37404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37405   (exit $ac_status); } &&
37406          { ac_try='test -z "$ac_c_werror_flag"
37407                          || test ! -s conftest.err'
37408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37409   (eval $ac_try) 2>&5
37410   ac_status=$?
37411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37412   (exit $ac_status); }; } &&
37413          { ac_try='test -s conftest.$ac_objext'
37414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37415   (eval $ac_try) 2>&5
37416   ac_status=$?
37417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37418   (exit $ac_status); }; }; then
37419   ac_cv_type_ptrdiff_t=yes
37420 else
37421   echo "$as_me: failed program was:" >&5
37422 sed 's/^/| /' conftest.$ac_ext >&5
37423
37424 ac_cv_type_ptrdiff_t=no
37425 fi
37426 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37427 fi
37428 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
37429 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
37430 if test $ac_cv_type_ptrdiff_t = yes; then
37431
37432 cat >>confdefs.h <<_ACEOF
37433 #define HAVE_PTRDIFF_T 1
37434 _ACEOF
37435
37436
37437 fi
37438
37439
37440 echo "$as_me:$LINENO: checking for socklen_t" >&5
37441 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
37442 if test "${ac_cv_type_socklen_t+set}" = set; then
37443   echo $ECHO_N "(cached) $ECHO_C" >&6
37444 else
37445   cat >conftest.$ac_ext <<_ACEOF
37446 /* confdefs.h.  */
37447 _ACEOF
37448 cat confdefs.h >>conftest.$ac_ext
37449 cat >>conftest.$ac_ext <<_ACEOF
37450 /* end confdefs.h.  */
37451 $ac_includes_default
37452 #ifdef HAVE_SYS_SOCKET_H
37453 #include <sys/socket.h>
37454 #endif
37455
37456
37457 int
37458 main ()
37459 {
37460 if ((socklen_t *) 0)
37461   return 0;
37462 if (sizeof (socklen_t))
37463   return 0;
37464   ;
37465   return 0;
37466 }
37467 _ACEOF
37468 rm -f conftest.$ac_objext
37469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37470   (eval $ac_compile) 2>conftest.er1
37471   ac_status=$?
37472   grep -v '^ *+' conftest.er1 >conftest.err
37473   rm -f conftest.er1
37474   cat conftest.err >&5
37475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37476   (exit $ac_status); } &&
37477          { ac_try='test -z "$ac_c_werror_flag"
37478                          || test ! -s conftest.err'
37479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37480   (eval $ac_try) 2>&5
37481   ac_status=$?
37482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37483   (exit $ac_status); }; } &&
37484          { ac_try='test -s conftest.$ac_objext'
37485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37486   (eval $ac_try) 2>&5
37487   ac_status=$?
37488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37489   (exit $ac_status); }; }; then
37490   ac_cv_type_socklen_t=yes
37491 else
37492   echo "$as_me: failed program was:" >&5
37493 sed 's/^/| /' conftest.$ac_ext >&5
37494
37495 ac_cv_type_socklen_t=no
37496 fi
37497 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37498 fi
37499 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
37500 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
37501 if test $ac_cv_type_socklen_t = yes; then
37502   :
37503 else
37504
37505 cat >>confdefs.h <<_ACEOF
37506 #define socklen_t int
37507 _ACEOF
37508
37509 fi
37510
37511
37512 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
37513 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
37514 if test "${ac_cv_type_signal+set}" = set; then
37515   echo $ECHO_N "(cached) $ECHO_C" >&6
37516 else
37517   cat >conftest.$ac_ext <<_ACEOF
37518 /* confdefs.h.  */
37519 _ACEOF
37520 cat confdefs.h >>conftest.$ac_ext
37521 cat >>conftest.$ac_ext <<_ACEOF
37522 /* end confdefs.h.  */
37523 #include <sys/types.h>
37524 #include <signal.h>
37525 #ifdef signal
37526 # undef signal
37527 #endif
37528 #ifdef __cplusplus
37529 extern "C" void (*signal (int, void (*)(int)))(int);
37530 #else
37531 void (*signal ()) ();
37532 #endif
37533
37534 int
37535 main ()
37536 {
37537 int i;
37538   ;
37539   return 0;
37540 }
37541 _ACEOF
37542 rm -f conftest.$ac_objext
37543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37544   (eval $ac_compile) 2>conftest.er1
37545   ac_status=$?
37546   grep -v '^ *+' conftest.er1 >conftest.err
37547   rm -f conftest.er1
37548   cat conftest.err >&5
37549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37550   (exit $ac_status); } &&
37551          { ac_try='test -z "$ac_c_werror_flag"
37552                          || test ! -s conftest.err'
37553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37554   (eval $ac_try) 2>&5
37555   ac_status=$?
37556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37557   (exit $ac_status); }; } &&
37558          { ac_try='test -s conftest.$ac_objext'
37559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37560   (eval $ac_try) 2>&5
37561   ac_status=$?
37562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37563   (exit $ac_status); }; }; then
37564   ac_cv_type_signal=void
37565 else
37566   echo "$as_me: failed program was:" >&5
37567 sed 's/^/| /' conftest.$ac_ext >&5
37568
37569 ac_cv_type_signal=int
37570 fi
37571 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37572 fi
37573 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
37574 echo "${ECHO_T}$ac_cv_type_signal" >&6
37575
37576 cat >>confdefs.h <<_ACEOF
37577 #define RETSIGTYPE $ac_cv_type_signal
37578 _ACEOF
37579
37580
37581
37582 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
37583 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
37584 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
37585   echo $ECHO_N "(cached) $ECHO_C" >&6
37586 else
37587   cat >conftest.$ac_ext <<_ACEOF
37588 /* confdefs.h.  */
37589 _ACEOF
37590 cat confdefs.h >>conftest.$ac_ext
37591 cat >>conftest.$ac_ext <<_ACEOF
37592 /* end confdefs.h.  */
37593 $ac_includes_default
37594 #include <signal.h>
37595
37596
37597 int
37598 main ()
37599 {
37600 if ((sig_atomic_t *) 0)
37601   return 0;
37602 if (sizeof (sig_atomic_t))
37603   return 0;
37604   ;
37605   return 0;
37606 }
37607 _ACEOF
37608 rm -f conftest.$ac_objext
37609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37610   (eval $ac_compile) 2>conftest.er1
37611   ac_status=$?
37612   grep -v '^ *+' conftest.er1 >conftest.err
37613   rm -f conftest.er1
37614   cat conftest.err >&5
37615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37616   (exit $ac_status); } &&
37617          { ac_try='test -z "$ac_c_werror_flag"
37618                          || test ! -s conftest.err'
37619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37620   (eval $ac_try) 2>&5
37621   ac_status=$?
37622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37623   (exit $ac_status); }; } &&
37624          { ac_try='test -s conftest.$ac_objext'
37625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37626   (eval $ac_try) 2>&5
37627   ac_status=$?
37628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37629   (exit $ac_status); }; }; then
37630   ac_cv_type_sig_atomic_t=yes
37631 else
37632   echo "$as_me: failed program was:" >&5
37633 sed 's/^/| /' conftest.$ac_ext >&5
37634
37635 ac_cv_type_sig_atomic_t=no
37636 fi
37637 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37638 fi
37639 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
37640 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
37641 if test $ac_cv_type_sig_atomic_t = yes; then
37642   :
37643 else
37644
37645 cat >>confdefs.h <<_ACEOF
37646 #define sig_atomic_t int
37647 _ACEOF
37648
37649 fi
37650
37651
37652 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
37653 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
37654 if test "${ac_cv_type_uid_t+set}" = set; then
37655   echo $ECHO_N "(cached) $ECHO_C" >&6
37656 else
37657   cat >conftest.$ac_ext <<_ACEOF
37658 /* confdefs.h.  */
37659 _ACEOF
37660 cat confdefs.h >>conftest.$ac_ext
37661 cat >>conftest.$ac_ext <<_ACEOF
37662 /* end confdefs.h.  */
37663 #include <sys/types.h>
37664
37665 _ACEOF
37666 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37667   $EGREP "uid_t" >/dev/null 2>&1; then
37668   ac_cv_type_uid_t=yes
37669 else
37670   ac_cv_type_uid_t=no
37671 fi
37672 rm -f conftest*
37673
37674 fi
37675 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
37676 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
37677 if test $ac_cv_type_uid_t = no; then
37678
37679 cat >>confdefs.h <<\_ACEOF
37680 #define uid_t int
37681 _ACEOF
37682
37683
37684 cat >>confdefs.h <<\_ACEOF
37685 #define gid_t int
37686 _ACEOF
37687
37688 fi
37689
37690
37691 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
37692 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
37693 if test "${ac_cv_header_time+set}" = set; then
37694   echo $ECHO_N "(cached) $ECHO_C" >&6
37695 else
37696   cat >conftest.$ac_ext <<_ACEOF
37697 /* confdefs.h.  */
37698 _ACEOF
37699 cat confdefs.h >>conftest.$ac_ext
37700 cat >>conftest.$ac_ext <<_ACEOF
37701 /* end confdefs.h.  */
37702 #include <sys/types.h>
37703 #include <sys/time.h>
37704 #include <time.h>
37705
37706 int
37707 main ()
37708 {
37709 if ((struct tm *) 0)
37710 return 0;
37711   ;
37712   return 0;
37713 }
37714 _ACEOF
37715 rm -f conftest.$ac_objext
37716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37717   (eval $ac_compile) 2>conftest.er1
37718   ac_status=$?
37719   grep -v '^ *+' conftest.er1 >conftest.err
37720   rm -f conftest.er1
37721   cat conftest.err >&5
37722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37723   (exit $ac_status); } &&
37724          { ac_try='test -z "$ac_c_werror_flag"
37725                          || test ! -s conftest.err'
37726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37727   (eval $ac_try) 2>&5
37728   ac_status=$?
37729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37730   (exit $ac_status); }; } &&
37731          { ac_try='test -s conftest.$ac_objext'
37732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37733   (eval $ac_try) 2>&5
37734   ac_status=$?
37735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37736   (exit $ac_status); }; }; then
37737   ac_cv_header_time=yes
37738 else
37739   echo "$as_me: failed program was:" >&5
37740 sed 's/^/| /' conftest.$ac_ext >&5
37741
37742 ac_cv_header_time=no
37743 fi
37744 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37745 fi
37746 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
37747 echo "${ECHO_T}$ac_cv_header_time" >&6
37748 if test $ac_cv_header_time = yes; then
37749
37750 cat >>confdefs.h <<\_ACEOF
37751 #define TIME_WITH_SYS_TIME 1
37752 _ACEOF
37753
37754 fi
37755
37756 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
37757 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
37758 if test "${ac_cv_struct_tm+set}" = set; then
37759   echo $ECHO_N "(cached) $ECHO_C" >&6
37760 else
37761   cat >conftest.$ac_ext <<_ACEOF
37762 /* confdefs.h.  */
37763 _ACEOF
37764 cat confdefs.h >>conftest.$ac_ext
37765 cat >>conftest.$ac_ext <<_ACEOF
37766 /* end confdefs.h.  */
37767 #include <sys/types.h>
37768 #include <time.h>
37769
37770 int
37771 main ()
37772 {
37773 struct tm *tp; tp->tm_sec;
37774   ;
37775   return 0;
37776 }
37777 _ACEOF
37778 rm -f conftest.$ac_objext
37779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37780   (eval $ac_compile) 2>conftest.er1
37781   ac_status=$?
37782   grep -v '^ *+' conftest.er1 >conftest.err
37783   rm -f conftest.er1
37784   cat conftest.err >&5
37785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37786   (exit $ac_status); } &&
37787          { ac_try='test -z "$ac_c_werror_flag"
37788                          || test ! -s conftest.err'
37789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37790   (eval $ac_try) 2>&5
37791   ac_status=$?
37792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37793   (exit $ac_status); }; } &&
37794          { ac_try='test -s conftest.$ac_objext'
37795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37796   (eval $ac_try) 2>&5
37797   ac_status=$?
37798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37799   (exit $ac_status); }; }; then
37800   ac_cv_struct_tm=time.h
37801 else
37802   echo "$as_me: failed program was:" >&5
37803 sed 's/^/| /' conftest.$ac_ext >&5
37804
37805 ac_cv_struct_tm=sys/time.h
37806 fi
37807 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37808 fi
37809 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
37810 echo "${ECHO_T}$ac_cv_struct_tm" >&6
37811 if test $ac_cv_struct_tm = sys/time.h; then
37812
37813 cat >>confdefs.h <<\_ACEOF
37814 #define TM_IN_SYS_TIME 1
37815 _ACEOF
37816
37817 fi
37818
37819 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
37820 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
37821 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
37822   echo $ECHO_N "(cached) $ECHO_C" >&6
37823 else
37824   cat >conftest.$ac_ext <<_ACEOF
37825 /* confdefs.h.  */
37826 _ACEOF
37827 cat confdefs.h >>conftest.$ac_ext
37828 cat >>conftest.$ac_ext <<_ACEOF
37829 /* end confdefs.h.  */
37830 $ac_includes_default
37831 int
37832 main ()
37833 {
37834 static struct stat ac_aggr;
37835 if (ac_aggr.st_blksize)
37836 return 0;
37837   ;
37838   return 0;
37839 }
37840 _ACEOF
37841 rm -f conftest.$ac_objext
37842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37843   (eval $ac_compile) 2>conftest.er1
37844   ac_status=$?
37845   grep -v '^ *+' conftest.er1 >conftest.err
37846   rm -f conftest.er1
37847   cat conftest.err >&5
37848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37849   (exit $ac_status); } &&
37850          { ac_try='test -z "$ac_c_werror_flag"
37851                          || test ! -s conftest.err'
37852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37853   (eval $ac_try) 2>&5
37854   ac_status=$?
37855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37856   (exit $ac_status); }; } &&
37857          { ac_try='test -s conftest.$ac_objext'
37858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37859   (eval $ac_try) 2>&5
37860   ac_status=$?
37861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37862   (exit $ac_status); }; }; then
37863   ac_cv_member_struct_stat_st_blksize=yes
37864 else
37865   echo "$as_me: failed program was:" >&5
37866 sed 's/^/| /' conftest.$ac_ext >&5
37867
37868 cat >conftest.$ac_ext <<_ACEOF
37869 /* confdefs.h.  */
37870 _ACEOF
37871 cat confdefs.h >>conftest.$ac_ext
37872 cat >>conftest.$ac_ext <<_ACEOF
37873 /* end confdefs.h.  */
37874 $ac_includes_default
37875 int
37876 main ()
37877 {
37878 static struct stat ac_aggr;
37879 if (sizeof ac_aggr.st_blksize)
37880 return 0;
37881   ;
37882   return 0;
37883 }
37884 _ACEOF
37885 rm -f conftest.$ac_objext
37886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37887   (eval $ac_compile) 2>conftest.er1
37888   ac_status=$?
37889   grep -v '^ *+' conftest.er1 >conftest.err
37890   rm -f conftest.er1
37891   cat conftest.err >&5
37892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37893   (exit $ac_status); } &&
37894          { ac_try='test -z "$ac_c_werror_flag"
37895                          || test ! -s conftest.err'
37896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37897   (eval $ac_try) 2>&5
37898   ac_status=$?
37899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37900   (exit $ac_status); }; } &&
37901          { ac_try='test -s conftest.$ac_objext'
37902   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37903   (eval $ac_try) 2>&5
37904   ac_status=$?
37905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37906   (exit $ac_status); }; }; then
37907   ac_cv_member_struct_stat_st_blksize=yes
37908 else
37909   echo "$as_me: failed program was:" >&5
37910 sed 's/^/| /' conftest.$ac_ext >&5
37911
37912 ac_cv_member_struct_stat_st_blksize=no
37913 fi
37914 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37915 fi
37916 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37917 fi
37918 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
37919 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
37920 if test $ac_cv_member_struct_stat_st_blksize = yes; then
37921
37922 cat >>confdefs.h <<_ACEOF
37923 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
37924 _ACEOF
37925
37926
37927 fi
37928
37929 echo "$as_me:$LINENO: checking for struct passwd.pw_gecos" >&5
37930 echo $ECHO_N "checking for struct passwd.pw_gecos... $ECHO_C" >&6
37931 if test "${ac_cv_member_struct_passwd_pw_gecos+set}" = set; then
37932   echo $ECHO_N "(cached) $ECHO_C" >&6
37933 else
37934   cat >conftest.$ac_ext <<_ACEOF
37935 /* confdefs.h.  */
37936 _ACEOF
37937 cat confdefs.h >>conftest.$ac_ext
37938 cat >>conftest.$ac_ext <<_ACEOF
37939 /* end confdefs.h.  */
37940 $ac_includes_default
37941 #include <pwd.h>
37942
37943 int
37944 main ()
37945 {
37946 static struct passwd ac_aggr;
37947 if (ac_aggr.pw_gecos)
37948 return 0;
37949   ;
37950   return 0;
37951 }
37952 _ACEOF
37953 rm -f conftest.$ac_objext
37954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37955   (eval $ac_compile) 2>conftest.er1
37956   ac_status=$?
37957   grep -v '^ *+' conftest.er1 >conftest.err
37958   rm -f conftest.er1
37959   cat conftest.err >&5
37960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37961   (exit $ac_status); } &&
37962          { ac_try='test -z "$ac_c_werror_flag"
37963                          || test ! -s conftest.err'
37964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37965   (eval $ac_try) 2>&5
37966   ac_status=$?
37967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37968   (exit $ac_status); }; } &&
37969          { ac_try='test -s conftest.$ac_objext'
37970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37971   (eval $ac_try) 2>&5
37972   ac_status=$?
37973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37974   (exit $ac_status); }; }; then
37975   ac_cv_member_struct_passwd_pw_gecos=yes
37976 else
37977   echo "$as_me: failed program was:" >&5
37978 sed 's/^/| /' conftest.$ac_ext >&5
37979
37980 cat >conftest.$ac_ext <<_ACEOF
37981 /* confdefs.h.  */
37982 _ACEOF
37983 cat confdefs.h >>conftest.$ac_ext
37984 cat >>conftest.$ac_ext <<_ACEOF
37985 /* end confdefs.h.  */
37986 $ac_includes_default
37987 #include <pwd.h>
37988
37989 int
37990 main ()
37991 {
37992 static struct passwd ac_aggr;
37993 if (sizeof ac_aggr.pw_gecos)
37994 return 0;
37995   ;
37996   return 0;
37997 }
37998 _ACEOF
37999 rm -f conftest.$ac_objext
38000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38001   (eval $ac_compile) 2>conftest.er1
38002   ac_status=$?
38003   grep -v '^ *+' conftest.er1 >conftest.err
38004   rm -f conftest.er1
38005   cat conftest.err >&5
38006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38007   (exit $ac_status); } &&
38008          { ac_try='test -z "$ac_c_werror_flag"
38009                          || test ! -s conftest.err'
38010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38011   (eval $ac_try) 2>&5
38012   ac_status=$?
38013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38014   (exit $ac_status); }; } &&
38015          { ac_try='test -s conftest.$ac_objext'
38016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38017   (eval $ac_try) 2>&5
38018   ac_status=$?
38019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38020   (exit $ac_status); }; }; then
38021   ac_cv_member_struct_passwd_pw_gecos=yes
38022 else
38023   echo "$as_me: failed program was:" >&5
38024 sed 's/^/| /' conftest.$ac_ext >&5
38025
38026 ac_cv_member_struct_passwd_pw_gecos=no
38027 fi
38028 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38029 fi
38030 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38031 fi
38032 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_gecos" >&5
38033 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_gecos" >&6
38034 if test $ac_cv_member_struct_passwd_pw_gecos = yes; then
38035
38036 cat >>confdefs.h <<_ACEOF
38037 #define HAVE_STRUCT_PASSWD_PW_GECOS 1
38038 _ACEOF
38039
38040
38041 fi
38042
38043 echo "$as_me:$LINENO: checking for struct passwd.pw_passwd" >&5
38044 echo $ECHO_N "checking for struct passwd.pw_passwd... $ECHO_C" >&6
38045 if test "${ac_cv_member_struct_passwd_pw_passwd+set}" = set; then
38046   echo $ECHO_N "(cached) $ECHO_C" >&6
38047 else
38048   cat >conftest.$ac_ext <<_ACEOF
38049 /* confdefs.h.  */
38050 _ACEOF
38051 cat confdefs.h >>conftest.$ac_ext
38052 cat >>conftest.$ac_ext <<_ACEOF
38053 /* end confdefs.h.  */
38054 $ac_includes_default
38055 #include <pwd.h>
38056
38057 int
38058 main ()
38059 {
38060 static struct passwd ac_aggr;
38061 if (ac_aggr.pw_passwd)
38062 return 0;
38063   ;
38064   return 0;
38065 }
38066 _ACEOF
38067 rm -f conftest.$ac_objext
38068 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38069   (eval $ac_compile) 2>conftest.er1
38070   ac_status=$?
38071   grep -v '^ *+' conftest.er1 >conftest.err
38072   rm -f conftest.er1
38073   cat conftest.err >&5
38074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38075   (exit $ac_status); } &&
38076          { ac_try='test -z "$ac_c_werror_flag"
38077                          || test ! -s conftest.err'
38078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38079   (eval $ac_try) 2>&5
38080   ac_status=$?
38081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38082   (exit $ac_status); }; } &&
38083          { ac_try='test -s conftest.$ac_objext'
38084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38085   (eval $ac_try) 2>&5
38086   ac_status=$?
38087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38088   (exit $ac_status); }; }; then
38089   ac_cv_member_struct_passwd_pw_passwd=yes
38090 else
38091   echo "$as_me: failed program was:" >&5
38092 sed 's/^/| /' conftest.$ac_ext >&5
38093
38094 cat >conftest.$ac_ext <<_ACEOF
38095 /* confdefs.h.  */
38096 _ACEOF
38097 cat confdefs.h >>conftest.$ac_ext
38098 cat >>conftest.$ac_ext <<_ACEOF
38099 /* end confdefs.h.  */
38100 $ac_includes_default
38101 #include <pwd.h>
38102
38103 int
38104 main ()
38105 {
38106 static struct passwd ac_aggr;
38107 if (sizeof ac_aggr.pw_passwd)
38108 return 0;
38109   ;
38110   return 0;
38111 }
38112 _ACEOF
38113 rm -f conftest.$ac_objext
38114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38115   (eval $ac_compile) 2>conftest.er1
38116   ac_status=$?
38117   grep -v '^ *+' conftest.er1 >conftest.err
38118   rm -f conftest.er1
38119   cat conftest.err >&5
38120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38121   (exit $ac_status); } &&
38122          { ac_try='test -z "$ac_c_werror_flag"
38123                          || test ! -s conftest.err'
38124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38125   (eval $ac_try) 2>&5
38126   ac_status=$?
38127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38128   (exit $ac_status); }; } &&
38129          { ac_try='test -s conftest.$ac_objext'
38130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38131   (eval $ac_try) 2>&5
38132   ac_status=$?
38133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38134   (exit $ac_status); }; }; then
38135   ac_cv_member_struct_passwd_pw_passwd=yes
38136 else
38137   echo "$as_me: failed program was:" >&5
38138 sed 's/^/| /' conftest.$ac_ext >&5
38139
38140 ac_cv_member_struct_passwd_pw_passwd=no
38141 fi
38142 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38143 fi
38144 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38145 fi
38146 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_passwd" >&5
38147 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_passwd" >&6
38148 if test $ac_cv_member_struct_passwd_pw_passwd = yes; then
38149
38150 cat >>confdefs.h <<_ACEOF
38151 #define HAVE_STRUCT_PASSWD_PW_PASSWD 1
38152 _ACEOF
38153
38154
38155 fi
38156
38157
38158 echo "$as_me:$LINENO: checking if toupper() requires islower()" >&5
38159 echo $ECHO_N "checking if toupper() requires islower()... $ECHO_C" >&6
38160 if test "${ol_cv_c_upper_lower+set}" = set; then
38161   echo $ECHO_N "(cached) $ECHO_C" >&6
38162 else
38163
38164         if test "$cross_compiling" = yes; then
38165   ol_cv_c_upper_lower=safe
38166 else
38167   cat >conftest.$ac_ext <<_ACEOF
38168 /* confdefs.h.  */
38169 _ACEOF
38170 cat confdefs.h >>conftest.$ac_ext
38171 cat >>conftest.$ac_ext <<_ACEOF
38172 /* end confdefs.h.  */
38173
38174 #include <ctype.h>
38175 main()
38176 {
38177         if ('C' == toupper('C'))
38178                 exit(0);
38179         else
38180                 exit(1);
38181 }
38182 _ACEOF
38183 rm -f conftest$ac_exeext
38184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38185   (eval $ac_link) 2>&5
38186   ac_status=$?
38187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38188   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
38189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38190   (eval $ac_try) 2>&5
38191   ac_status=$?
38192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38193   (exit $ac_status); }; }; then
38194   ol_cv_c_upper_lower=no
38195 else
38196   echo "$as_me: program exited with status $ac_status" >&5
38197 echo "$as_me: failed program was:" >&5
38198 sed 's/^/| /' conftest.$ac_ext >&5
38199
38200 ( exit $ac_status )
38201 ol_cv_c_upper_lower=yes
38202 fi
38203 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
38204 fi
38205 fi
38206 echo "$as_me:$LINENO: result: $ol_cv_c_upper_lower" >&5
38207 echo "${ECHO_T}$ol_cv_c_upper_lower" >&6
38208 if test $ol_cv_c_upper_lower != no ; then
38209
38210 cat >>confdefs.h <<\_ACEOF
38211 #define C_UPPER_LOWER 1
38212 _ACEOF
38213
38214 fi
38215
38216 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
38217 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
38218 if test "${ac_cv_c_const+set}" = set; then
38219   echo $ECHO_N "(cached) $ECHO_C" >&6
38220 else
38221   cat >conftest.$ac_ext <<_ACEOF
38222 /* confdefs.h.  */
38223 _ACEOF
38224 cat confdefs.h >>conftest.$ac_ext
38225 cat >>conftest.$ac_ext <<_ACEOF
38226 /* end confdefs.h.  */
38227
38228 int
38229 main ()
38230 {
38231 /* FIXME: Include the comments suggested by Paul. */
38232 #ifndef __cplusplus
38233   /* Ultrix mips cc rejects this.  */
38234   typedef int charset[2];
38235   const charset x;
38236   /* SunOS 4.1.1 cc rejects this.  */
38237   char const *const *ccp;
38238   char **p;
38239   /* NEC SVR4.0.2 mips cc rejects this.  */
38240   struct point {int x, y;};
38241   static struct point const zero = {0,0};
38242   /* AIX XL C 1.02.0.0 rejects this.
38243      It does not let you subtract one const X* pointer from another in
38244      an arm of an if-expression whose if-part is not a constant
38245      expression */
38246   const char *g = "string";
38247   ccp = &g + (g ? g-g : 0);
38248   /* HPUX 7.0 cc rejects these. */
38249   ++ccp;
38250   p = (char**) ccp;
38251   ccp = (char const *const *) p;
38252   { /* SCO 3.2v4 cc rejects this.  */
38253     char *t;
38254     char const *s = 0 ? (char *) 0 : (char const *) 0;
38255
38256     *t++ = 0;
38257   }
38258   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
38259     int x[] = {25, 17};
38260     const int *foo = &x[0];
38261     ++foo;
38262   }
38263   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
38264     typedef const int *iptr;
38265     iptr p = 0;
38266     ++p;
38267   }
38268   { /* AIX XL C 1.02.0.0 rejects this saying
38269        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
38270     struct s { int j; const int *ap[3]; };
38271     struct s *b; b->j = 5;
38272   }
38273   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
38274     const int foo = 10;
38275   }
38276 #endif
38277
38278   ;
38279   return 0;
38280 }
38281 _ACEOF
38282 rm -f conftest.$ac_objext
38283 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38284   (eval $ac_compile) 2>conftest.er1
38285   ac_status=$?
38286   grep -v '^ *+' conftest.er1 >conftest.err
38287   rm -f conftest.er1
38288   cat conftest.err >&5
38289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38290   (exit $ac_status); } &&
38291          { ac_try='test -z "$ac_c_werror_flag"
38292                          || test ! -s conftest.err'
38293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38294   (eval $ac_try) 2>&5
38295   ac_status=$?
38296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38297   (exit $ac_status); }; } &&
38298          { ac_try='test -s conftest.$ac_objext'
38299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38300   (eval $ac_try) 2>&5
38301   ac_status=$?
38302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38303   (exit $ac_status); }; }; then
38304   ac_cv_c_const=yes
38305 else
38306   echo "$as_me: failed program was:" >&5
38307 sed 's/^/| /' conftest.$ac_ext >&5
38308
38309 ac_cv_c_const=no
38310 fi
38311 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38312 fi
38313 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
38314 echo "${ECHO_T}$ac_cv_c_const" >&6
38315 if test $ac_cv_c_const = no; then
38316
38317 cat >>confdefs.h <<\_ACEOF
38318 #define const
38319 _ACEOF
38320
38321 fi
38322
38323 echo "$as_me:$LINENO: checking if compiler understands volatile" >&5
38324 echo $ECHO_N "checking if compiler understands volatile... $ECHO_C" >&6
38325 if test "${ol_cv_c_volatile+set}" = set; then
38326   echo $ECHO_N "(cached) $ECHO_C" >&6
38327 else
38328   cat >conftest.$ac_ext <<_ACEOF
38329 /* confdefs.h.  */
38330 _ACEOF
38331 cat confdefs.h >>conftest.$ac_ext
38332 cat >>conftest.$ac_ext <<_ACEOF
38333 /* end confdefs.h.  */
38334 int x, y, z;
38335 int
38336 main ()
38337 {
38338 volatile int a; int * volatile b = x ? &y : &z;
38339       /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
38340       *b = 0;
38341   ;
38342   return 0;
38343 }
38344 _ACEOF
38345 rm -f conftest.$ac_objext
38346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38347   (eval $ac_compile) 2>conftest.er1
38348   ac_status=$?
38349   grep -v '^ *+' conftest.er1 >conftest.err
38350   rm -f conftest.er1
38351   cat conftest.err >&5
38352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38353   (exit $ac_status); } &&
38354          { ac_try='test -z "$ac_c_werror_flag"
38355                          || test ! -s conftest.err'
38356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38357   (eval $ac_try) 2>&5
38358   ac_status=$?
38359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38360   (exit $ac_status); }; } &&
38361          { ac_try='test -s conftest.$ac_objext'
38362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38363   (eval $ac_try) 2>&5
38364   ac_status=$?
38365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38366   (exit $ac_status); }; }; then
38367   ol_cv_c_volatile=yes
38368 else
38369   echo "$as_me: failed program was:" >&5
38370 sed 's/^/| /' conftest.$ac_ext >&5
38371
38372 ol_cv_c_volatile=no
38373 fi
38374 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38375 fi
38376 echo "$as_me:$LINENO: result: $ol_cv_c_volatile" >&5
38377 echo "${ECHO_T}$ol_cv_c_volatile" >&6
38378   if test $ol_cv_c_volatile = yes; then
38379     :
38380   else
38381
38382 cat >>confdefs.h <<\_ACEOF
38383 #define volatile
38384 _ACEOF
38385
38386   fi
38387
38388
38389 if test $cross_compiling = yes ; then
38390         { echo "$as_me:$LINENO: WARNING: Crossing compiling... all bets are off!" >&5
38391 echo "$as_me: WARNING: Crossing compiling... all bets are off!" >&2;}
38392
38393 cat >>confdefs.h <<\_ACEOF
38394 #define CROSS_COMPILING 1
38395 _ACEOF
38396
38397 else
38398         echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
38399 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
38400 if test "${ac_cv_c_bigendian+set}" = set; then
38401   echo $ECHO_N "(cached) $ECHO_C" >&6
38402 else
38403   # See if sys/param.h defines the BYTE_ORDER macro.
38404 cat >conftest.$ac_ext <<_ACEOF
38405 /* confdefs.h.  */
38406 _ACEOF
38407 cat confdefs.h >>conftest.$ac_ext
38408 cat >>conftest.$ac_ext <<_ACEOF
38409 /* end confdefs.h.  */
38410 #include <sys/types.h>
38411 #include <sys/param.h>
38412
38413 int
38414 main ()
38415 {
38416 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
38417  bogus endian macros
38418 #endif
38419
38420   ;
38421   return 0;
38422 }
38423 _ACEOF
38424 rm -f conftest.$ac_objext
38425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38426   (eval $ac_compile) 2>conftest.er1
38427   ac_status=$?
38428   grep -v '^ *+' conftest.er1 >conftest.err
38429   rm -f conftest.er1
38430   cat conftest.err >&5
38431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38432   (exit $ac_status); } &&
38433          { ac_try='test -z "$ac_c_werror_flag"
38434                          || test ! -s conftest.err'
38435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38436   (eval $ac_try) 2>&5
38437   ac_status=$?
38438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38439   (exit $ac_status); }; } &&
38440          { ac_try='test -s conftest.$ac_objext'
38441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38442   (eval $ac_try) 2>&5
38443   ac_status=$?
38444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38445   (exit $ac_status); }; }; then
38446   # It does; now see whether it defined to BIG_ENDIAN or not.
38447 cat >conftest.$ac_ext <<_ACEOF
38448 /* confdefs.h.  */
38449 _ACEOF
38450 cat confdefs.h >>conftest.$ac_ext
38451 cat >>conftest.$ac_ext <<_ACEOF
38452 /* end confdefs.h.  */
38453 #include <sys/types.h>
38454 #include <sys/param.h>
38455
38456 int
38457 main ()
38458 {
38459 #if BYTE_ORDER != BIG_ENDIAN
38460  not big endian
38461 #endif
38462
38463   ;
38464   return 0;
38465 }
38466 _ACEOF
38467 rm -f conftest.$ac_objext
38468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38469   (eval $ac_compile) 2>conftest.er1
38470   ac_status=$?
38471   grep -v '^ *+' conftest.er1 >conftest.err
38472   rm -f conftest.er1
38473   cat conftest.err >&5
38474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38475   (exit $ac_status); } &&
38476          { ac_try='test -z "$ac_c_werror_flag"
38477                          || test ! -s conftest.err'
38478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38479   (eval $ac_try) 2>&5
38480   ac_status=$?
38481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38482   (exit $ac_status); }; } &&
38483          { ac_try='test -s conftest.$ac_objext'
38484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38485   (eval $ac_try) 2>&5
38486   ac_status=$?
38487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38488   (exit $ac_status); }; }; then
38489   ac_cv_c_bigendian=yes
38490 else
38491   echo "$as_me: failed program was:" >&5
38492 sed 's/^/| /' conftest.$ac_ext >&5
38493
38494 ac_cv_c_bigendian=no
38495 fi
38496 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38497 else
38498   echo "$as_me: failed program was:" >&5
38499 sed 's/^/| /' conftest.$ac_ext >&5
38500
38501 # It does not; compile a test program.
38502 if test "$cross_compiling" = yes; then
38503   # try to guess the endianness by grepping values into an object file
38504   ac_cv_c_bigendian=unknown
38505   cat >conftest.$ac_ext <<_ACEOF
38506 /* confdefs.h.  */
38507 _ACEOF
38508 cat confdefs.h >>conftest.$ac_ext
38509 cat >>conftest.$ac_ext <<_ACEOF
38510 /* end confdefs.h.  */
38511 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
38512 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
38513 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
38514 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
38515 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
38516 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
38517 int
38518 main ()
38519 {
38520  _ascii (); _ebcdic ();
38521   ;
38522   return 0;
38523 }
38524 _ACEOF
38525 rm -f conftest.$ac_objext
38526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38527   (eval $ac_compile) 2>conftest.er1
38528   ac_status=$?
38529   grep -v '^ *+' conftest.er1 >conftest.err
38530   rm -f conftest.er1
38531   cat conftest.err >&5
38532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38533   (exit $ac_status); } &&
38534          { ac_try='test -z "$ac_c_werror_flag"
38535                          || test ! -s conftest.err'
38536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38537   (eval $ac_try) 2>&5
38538   ac_status=$?
38539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38540   (exit $ac_status); }; } &&
38541          { ac_try='test -s conftest.$ac_objext'
38542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38543   (eval $ac_try) 2>&5
38544   ac_status=$?
38545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38546   (exit $ac_status); }; }; then
38547   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
38548   ac_cv_c_bigendian=yes
38549 fi
38550 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
38551   if test "$ac_cv_c_bigendian" = unknown; then
38552     ac_cv_c_bigendian=no
38553   else
38554     # finding both strings is unlikely to happen, but who knows?
38555     ac_cv_c_bigendian=unknown
38556   fi
38557 fi
38558 else
38559   echo "$as_me: failed program was:" >&5
38560 sed 's/^/| /' conftest.$ac_ext >&5
38561
38562 fi
38563 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38564 else
38565   cat >conftest.$ac_ext <<_ACEOF
38566 /* confdefs.h.  */
38567 _ACEOF
38568 cat confdefs.h >>conftest.$ac_ext
38569 cat >>conftest.$ac_ext <<_ACEOF
38570 /* end confdefs.h.  */
38571 int
38572 main ()
38573 {
38574   /* Are we little or big endian?  From Harbison&Steele.  */
38575   union
38576   {
38577     long l;
38578     char c[sizeof (long)];
38579   } u;
38580   u.l = 1;
38581   exit (u.c[sizeof (long) - 1] == 1);
38582 }
38583 _ACEOF
38584 rm -f conftest$ac_exeext
38585 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38586   (eval $ac_link) 2>&5
38587   ac_status=$?
38588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38589   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
38590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38591   (eval $ac_try) 2>&5
38592   ac_status=$?
38593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38594   (exit $ac_status); }; }; then
38595   ac_cv_c_bigendian=no
38596 else
38597   echo "$as_me: program exited with status $ac_status" >&5
38598 echo "$as_me: failed program was:" >&5
38599 sed 's/^/| /' conftest.$ac_ext >&5
38600
38601 ( exit $ac_status )
38602 ac_cv_c_bigendian=yes
38603 fi
38604 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
38605 fi
38606 fi
38607 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38608 fi
38609 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
38610 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
38611 case $ac_cv_c_bigendian in
38612   yes)
38613
38614 cat >>confdefs.h <<\_ACEOF
38615 #define WORDS_BIGENDIAN 1
38616 _ACEOF
38617  ;;
38618   no)
38619      ;;
38620   *)
38621     { { echo "$as_me:$LINENO: error: unknown endianness
38622 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
38623 echo "$as_me: error: unknown endianness
38624 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
38625    { (exit 1); exit 1; }; } ;;
38626 esac
38627
38628 fi
38629
38630 echo "$as_me:$LINENO: checking for short" >&5
38631 echo $ECHO_N "checking for short... $ECHO_C" >&6
38632 if test "${ac_cv_type_short+set}" = set; then
38633   echo $ECHO_N "(cached) $ECHO_C" >&6
38634 else
38635   cat >conftest.$ac_ext <<_ACEOF
38636 /* confdefs.h.  */
38637 _ACEOF
38638 cat confdefs.h >>conftest.$ac_ext
38639 cat >>conftest.$ac_ext <<_ACEOF
38640 /* end confdefs.h.  */
38641 $ac_includes_default
38642 int
38643 main ()
38644 {
38645 if ((short *) 0)
38646   return 0;
38647 if (sizeof (short))
38648   return 0;
38649   ;
38650   return 0;
38651 }
38652 _ACEOF
38653 rm -f conftest.$ac_objext
38654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38655   (eval $ac_compile) 2>conftest.er1
38656   ac_status=$?
38657   grep -v '^ *+' conftest.er1 >conftest.err
38658   rm -f conftest.er1
38659   cat conftest.err >&5
38660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38661   (exit $ac_status); } &&
38662          { ac_try='test -z "$ac_c_werror_flag"
38663                          || test ! -s conftest.err'
38664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38665   (eval $ac_try) 2>&5
38666   ac_status=$?
38667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38668   (exit $ac_status); }; } &&
38669          { ac_try='test -s conftest.$ac_objext'
38670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38671   (eval $ac_try) 2>&5
38672   ac_status=$?
38673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38674   (exit $ac_status); }; }; then
38675   ac_cv_type_short=yes
38676 else
38677   echo "$as_me: failed program was:" >&5
38678 sed 's/^/| /' conftest.$ac_ext >&5
38679
38680 ac_cv_type_short=no
38681 fi
38682 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38683 fi
38684 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
38685 echo "${ECHO_T}$ac_cv_type_short" >&6
38686
38687 echo "$as_me:$LINENO: checking size of short" >&5
38688 echo $ECHO_N "checking size of short... $ECHO_C" >&6
38689 if test "${ac_cv_sizeof_short+set}" = set; then
38690   echo $ECHO_N "(cached) $ECHO_C" >&6
38691 else
38692   if test "$ac_cv_type_short" = yes; then
38693   # The cast to unsigned long works around a bug in the HP C Compiler
38694   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
38695   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
38696   # This bug is HP SR number 8606223364.
38697   if test "$cross_compiling" = yes; then
38698   # Depending upon the size, compute the lo and hi bounds.
38699 cat >conftest.$ac_ext <<_ACEOF
38700 /* confdefs.h.  */
38701 _ACEOF
38702 cat confdefs.h >>conftest.$ac_ext
38703 cat >>conftest.$ac_ext <<_ACEOF
38704 /* end confdefs.h.  */
38705 $ac_includes_default
38706 int
38707 main ()
38708 {
38709 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
38710 test_array [0] = 0
38711
38712   ;
38713   return 0;
38714 }
38715 _ACEOF
38716 rm -f conftest.$ac_objext
38717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38718   (eval $ac_compile) 2>conftest.er1
38719   ac_status=$?
38720   grep -v '^ *+' conftest.er1 >conftest.err
38721   rm -f conftest.er1
38722   cat conftest.err >&5
38723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38724   (exit $ac_status); } &&
38725          { ac_try='test -z "$ac_c_werror_flag"
38726                          || test ! -s conftest.err'
38727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38728   (eval $ac_try) 2>&5
38729   ac_status=$?
38730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38731   (exit $ac_status); }; } &&
38732          { ac_try='test -s conftest.$ac_objext'
38733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38734   (eval $ac_try) 2>&5
38735   ac_status=$?
38736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38737   (exit $ac_status); }; }; then
38738   ac_lo=0 ac_mid=0
38739   while :; do
38740     cat >conftest.$ac_ext <<_ACEOF
38741 /* confdefs.h.  */
38742 _ACEOF
38743 cat confdefs.h >>conftest.$ac_ext
38744 cat >>conftest.$ac_ext <<_ACEOF
38745 /* end confdefs.h.  */
38746 $ac_includes_default
38747 int
38748 main ()
38749 {
38750 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
38751 test_array [0] = 0
38752
38753   ;
38754   return 0;
38755 }
38756 _ACEOF
38757 rm -f conftest.$ac_objext
38758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38759   (eval $ac_compile) 2>conftest.er1
38760   ac_status=$?
38761   grep -v '^ *+' conftest.er1 >conftest.err
38762   rm -f conftest.er1
38763   cat conftest.err >&5
38764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38765   (exit $ac_status); } &&
38766          { ac_try='test -z "$ac_c_werror_flag"
38767                          || test ! -s conftest.err'
38768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38769   (eval $ac_try) 2>&5
38770   ac_status=$?
38771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38772   (exit $ac_status); }; } &&
38773          { ac_try='test -s conftest.$ac_objext'
38774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38775   (eval $ac_try) 2>&5
38776   ac_status=$?
38777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38778   (exit $ac_status); }; }; then
38779   ac_hi=$ac_mid; break
38780 else
38781   echo "$as_me: failed program was:" >&5
38782 sed 's/^/| /' conftest.$ac_ext >&5
38783
38784 ac_lo=`expr $ac_mid + 1`
38785                     if test $ac_lo -le $ac_mid; then
38786                       ac_lo= ac_hi=
38787                       break
38788                     fi
38789                     ac_mid=`expr 2 '*' $ac_mid + 1`
38790 fi
38791 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38792   done
38793 else
38794   echo "$as_me: failed program was:" >&5
38795 sed 's/^/| /' conftest.$ac_ext >&5
38796
38797 cat >conftest.$ac_ext <<_ACEOF
38798 /* confdefs.h.  */
38799 _ACEOF
38800 cat confdefs.h >>conftest.$ac_ext
38801 cat >>conftest.$ac_ext <<_ACEOF
38802 /* end confdefs.h.  */
38803 $ac_includes_default
38804 int
38805 main ()
38806 {
38807 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
38808 test_array [0] = 0
38809
38810   ;
38811   return 0;
38812 }
38813 _ACEOF
38814 rm -f conftest.$ac_objext
38815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38816   (eval $ac_compile) 2>conftest.er1
38817   ac_status=$?
38818   grep -v '^ *+' conftest.er1 >conftest.err
38819   rm -f conftest.er1
38820   cat conftest.err >&5
38821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38822   (exit $ac_status); } &&
38823          { ac_try='test -z "$ac_c_werror_flag"
38824                          || test ! -s conftest.err'
38825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38826   (eval $ac_try) 2>&5
38827   ac_status=$?
38828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38829   (exit $ac_status); }; } &&
38830          { ac_try='test -s conftest.$ac_objext'
38831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38832   (eval $ac_try) 2>&5
38833   ac_status=$?
38834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38835   (exit $ac_status); }; }; then
38836   ac_hi=-1 ac_mid=-1
38837   while :; do
38838     cat >conftest.$ac_ext <<_ACEOF
38839 /* confdefs.h.  */
38840 _ACEOF
38841 cat confdefs.h >>conftest.$ac_ext
38842 cat >>conftest.$ac_ext <<_ACEOF
38843 /* end confdefs.h.  */
38844 $ac_includes_default
38845 int
38846 main ()
38847 {
38848 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
38849 test_array [0] = 0
38850
38851   ;
38852   return 0;
38853 }
38854 _ACEOF
38855 rm -f conftest.$ac_objext
38856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38857   (eval $ac_compile) 2>conftest.er1
38858   ac_status=$?
38859   grep -v '^ *+' conftest.er1 >conftest.err
38860   rm -f conftest.er1
38861   cat conftest.err >&5
38862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38863   (exit $ac_status); } &&
38864          { ac_try='test -z "$ac_c_werror_flag"
38865                          || test ! -s conftest.err'
38866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38867   (eval $ac_try) 2>&5
38868   ac_status=$?
38869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38870   (exit $ac_status); }; } &&
38871          { ac_try='test -s conftest.$ac_objext'
38872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38873   (eval $ac_try) 2>&5
38874   ac_status=$?
38875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38876   (exit $ac_status); }; }; then
38877   ac_lo=$ac_mid; break
38878 else
38879   echo "$as_me: failed program was:" >&5
38880 sed 's/^/| /' conftest.$ac_ext >&5
38881
38882 ac_hi=`expr '(' $ac_mid ')' - 1`
38883                        if test $ac_mid -le $ac_hi; then
38884                          ac_lo= ac_hi=
38885                          break
38886                        fi
38887                        ac_mid=`expr 2 '*' $ac_mid`
38888 fi
38889 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38890   done
38891 else
38892   echo "$as_me: failed program was:" >&5
38893 sed 's/^/| /' conftest.$ac_ext >&5
38894
38895 ac_lo= ac_hi=
38896 fi
38897 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38898 fi
38899 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38900 # Binary search between lo and hi bounds.
38901 while test "x$ac_lo" != "x$ac_hi"; do
38902   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
38903   cat >conftest.$ac_ext <<_ACEOF
38904 /* confdefs.h.  */
38905 _ACEOF
38906 cat confdefs.h >>conftest.$ac_ext
38907 cat >>conftest.$ac_ext <<_ACEOF
38908 /* end confdefs.h.  */
38909 $ac_includes_default
38910 int
38911 main ()
38912 {
38913 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
38914 test_array [0] = 0
38915
38916   ;
38917   return 0;
38918 }
38919 _ACEOF
38920 rm -f conftest.$ac_objext
38921 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38922   (eval $ac_compile) 2>conftest.er1
38923   ac_status=$?
38924   grep -v '^ *+' conftest.er1 >conftest.err
38925   rm -f conftest.er1
38926   cat conftest.err >&5
38927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38928   (exit $ac_status); } &&
38929          { ac_try='test -z "$ac_c_werror_flag"
38930                          || test ! -s conftest.err'
38931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38932   (eval $ac_try) 2>&5
38933   ac_status=$?
38934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38935   (exit $ac_status); }; } &&
38936          { ac_try='test -s conftest.$ac_objext'
38937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38938   (eval $ac_try) 2>&5
38939   ac_status=$?
38940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38941   (exit $ac_status); }; }; then
38942   ac_hi=$ac_mid
38943 else
38944   echo "$as_me: failed program was:" >&5
38945 sed 's/^/| /' conftest.$ac_ext >&5
38946
38947 ac_lo=`expr '(' $ac_mid ')' + 1`
38948 fi
38949 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38950 done
38951 case $ac_lo in
38952 ?*) ac_cv_sizeof_short=$ac_lo;;
38953 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
38954 See \`config.log' for more details." >&5
38955 echo "$as_me: error: cannot compute sizeof (short), 77
38956 See \`config.log' for more details." >&2;}
38957    { (exit 1); exit 1; }; } ;;
38958 esac
38959 else
38960   if test "$cross_compiling" = yes; then
38961   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
38962 See \`config.log' for more details." >&5
38963 echo "$as_me: error: cannot run test program while cross compiling
38964 See \`config.log' for more details." >&2;}
38965    { (exit 1); exit 1; }; }
38966 else
38967   cat >conftest.$ac_ext <<_ACEOF
38968 /* confdefs.h.  */
38969 _ACEOF
38970 cat confdefs.h >>conftest.$ac_ext
38971 cat >>conftest.$ac_ext <<_ACEOF
38972 /* end confdefs.h.  */
38973 $ac_includes_default
38974 long longval () { return (long) (sizeof (short)); }
38975 unsigned long ulongval () { return (long) (sizeof (short)); }
38976 #include <stdio.h>
38977 #include <stdlib.h>
38978 int
38979 main ()
38980 {
38981
38982   FILE *f = fopen ("conftest.val", "w");
38983   if (! f)
38984     exit (1);
38985   if (((long) (sizeof (short))) < 0)
38986     {
38987       long i = longval ();
38988       if (i != ((long) (sizeof (short))))
38989         exit (1);
38990       fprintf (f, "%ld\n", i);
38991     }
38992   else
38993     {
38994       unsigned long i = ulongval ();
38995       if (i != ((long) (sizeof (short))))
38996         exit (1);
38997       fprintf (f, "%lu\n", i);
38998     }
38999   exit (ferror (f) || fclose (f) != 0);
39000
39001   ;
39002   return 0;
39003 }
39004 _ACEOF
39005 rm -f conftest$ac_exeext
39006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39007   (eval $ac_link) 2>&5
39008   ac_status=$?
39009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39010   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39012   (eval $ac_try) 2>&5
39013   ac_status=$?
39014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39015   (exit $ac_status); }; }; then
39016   ac_cv_sizeof_short=`cat conftest.val`
39017 else
39018   echo "$as_me: program exited with status $ac_status" >&5
39019 echo "$as_me: failed program was:" >&5
39020 sed 's/^/| /' conftest.$ac_ext >&5
39021
39022 ( exit $ac_status )
39023 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
39024 See \`config.log' for more details." >&5
39025 echo "$as_me: error: cannot compute sizeof (short), 77
39026 See \`config.log' for more details." >&2;}
39027    { (exit 1); exit 1; }; }
39028 fi
39029 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39030 fi
39031 fi
39032 rm -f conftest.val
39033 else
39034   ac_cv_sizeof_short=0
39035 fi
39036 fi
39037 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
39038 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
39039 cat >>confdefs.h <<_ACEOF
39040 #define SIZEOF_SHORT $ac_cv_sizeof_short
39041 _ACEOF
39042
39043
39044 echo "$as_me:$LINENO: checking for int" >&5
39045 echo $ECHO_N "checking for int... $ECHO_C" >&6
39046 if test "${ac_cv_type_int+set}" = set; then
39047   echo $ECHO_N "(cached) $ECHO_C" >&6
39048 else
39049   cat >conftest.$ac_ext <<_ACEOF
39050 /* confdefs.h.  */
39051 _ACEOF
39052 cat confdefs.h >>conftest.$ac_ext
39053 cat >>conftest.$ac_ext <<_ACEOF
39054 /* end confdefs.h.  */
39055 $ac_includes_default
39056 int
39057 main ()
39058 {
39059 if ((int *) 0)
39060   return 0;
39061 if (sizeof (int))
39062   return 0;
39063   ;
39064   return 0;
39065 }
39066 _ACEOF
39067 rm -f conftest.$ac_objext
39068 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39069   (eval $ac_compile) 2>conftest.er1
39070   ac_status=$?
39071   grep -v '^ *+' conftest.er1 >conftest.err
39072   rm -f conftest.er1
39073   cat conftest.err >&5
39074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39075   (exit $ac_status); } &&
39076          { ac_try='test -z "$ac_c_werror_flag"
39077                          || test ! -s conftest.err'
39078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39079   (eval $ac_try) 2>&5
39080   ac_status=$?
39081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39082   (exit $ac_status); }; } &&
39083          { ac_try='test -s conftest.$ac_objext'
39084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39085   (eval $ac_try) 2>&5
39086   ac_status=$?
39087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39088   (exit $ac_status); }; }; then
39089   ac_cv_type_int=yes
39090 else
39091   echo "$as_me: failed program was:" >&5
39092 sed 's/^/| /' conftest.$ac_ext >&5
39093
39094 ac_cv_type_int=no
39095 fi
39096 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39097 fi
39098 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
39099 echo "${ECHO_T}$ac_cv_type_int" >&6
39100
39101 echo "$as_me:$LINENO: checking size of int" >&5
39102 echo $ECHO_N "checking size of int... $ECHO_C" >&6
39103 if test "${ac_cv_sizeof_int+set}" = set; then
39104   echo $ECHO_N "(cached) $ECHO_C" >&6
39105 else
39106   if test "$ac_cv_type_int" = yes; then
39107   # The cast to unsigned long works around a bug in the HP C Compiler
39108   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
39109   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
39110   # This bug is HP SR number 8606223364.
39111   if test "$cross_compiling" = yes; then
39112   # Depending upon the size, compute the lo and hi bounds.
39113 cat >conftest.$ac_ext <<_ACEOF
39114 /* confdefs.h.  */
39115 _ACEOF
39116 cat confdefs.h >>conftest.$ac_ext
39117 cat >>conftest.$ac_ext <<_ACEOF
39118 /* end confdefs.h.  */
39119 $ac_includes_default
39120 int
39121 main ()
39122 {
39123 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
39124 test_array [0] = 0
39125
39126   ;
39127   return 0;
39128 }
39129 _ACEOF
39130 rm -f conftest.$ac_objext
39131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39132   (eval $ac_compile) 2>conftest.er1
39133   ac_status=$?
39134   grep -v '^ *+' conftest.er1 >conftest.err
39135   rm -f conftest.er1
39136   cat conftest.err >&5
39137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39138   (exit $ac_status); } &&
39139          { ac_try='test -z "$ac_c_werror_flag"
39140                          || test ! -s conftest.err'
39141   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39142   (eval $ac_try) 2>&5
39143   ac_status=$?
39144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39145   (exit $ac_status); }; } &&
39146          { ac_try='test -s conftest.$ac_objext'
39147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39148   (eval $ac_try) 2>&5
39149   ac_status=$?
39150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39151   (exit $ac_status); }; }; then
39152   ac_lo=0 ac_mid=0
39153   while :; do
39154     cat >conftest.$ac_ext <<_ACEOF
39155 /* confdefs.h.  */
39156 _ACEOF
39157 cat confdefs.h >>conftest.$ac_ext
39158 cat >>conftest.$ac_ext <<_ACEOF
39159 /* end confdefs.h.  */
39160 $ac_includes_default
39161 int
39162 main ()
39163 {
39164 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
39165 test_array [0] = 0
39166
39167   ;
39168   return 0;
39169 }
39170 _ACEOF
39171 rm -f conftest.$ac_objext
39172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39173   (eval $ac_compile) 2>conftest.er1
39174   ac_status=$?
39175   grep -v '^ *+' conftest.er1 >conftest.err
39176   rm -f conftest.er1
39177   cat conftest.err >&5
39178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39179   (exit $ac_status); } &&
39180          { ac_try='test -z "$ac_c_werror_flag"
39181                          || test ! -s conftest.err'
39182   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39183   (eval $ac_try) 2>&5
39184   ac_status=$?
39185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39186   (exit $ac_status); }; } &&
39187          { ac_try='test -s conftest.$ac_objext'
39188   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39189   (eval $ac_try) 2>&5
39190   ac_status=$?
39191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39192   (exit $ac_status); }; }; then
39193   ac_hi=$ac_mid; break
39194 else
39195   echo "$as_me: failed program was:" >&5
39196 sed 's/^/| /' conftest.$ac_ext >&5
39197
39198 ac_lo=`expr $ac_mid + 1`
39199                     if test $ac_lo -le $ac_mid; then
39200                       ac_lo= ac_hi=
39201                       break
39202                     fi
39203                     ac_mid=`expr 2 '*' $ac_mid + 1`
39204 fi
39205 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39206   done
39207 else
39208   echo "$as_me: failed program was:" >&5
39209 sed 's/^/| /' conftest.$ac_ext >&5
39210
39211 cat >conftest.$ac_ext <<_ACEOF
39212 /* confdefs.h.  */
39213 _ACEOF
39214 cat confdefs.h >>conftest.$ac_ext
39215 cat >>conftest.$ac_ext <<_ACEOF
39216 /* end confdefs.h.  */
39217 $ac_includes_default
39218 int
39219 main ()
39220 {
39221 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
39222 test_array [0] = 0
39223
39224   ;
39225   return 0;
39226 }
39227 _ACEOF
39228 rm -f conftest.$ac_objext
39229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39230   (eval $ac_compile) 2>conftest.er1
39231   ac_status=$?
39232   grep -v '^ *+' conftest.er1 >conftest.err
39233   rm -f conftest.er1
39234   cat conftest.err >&5
39235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39236   (exit $ac_status); } &&
39237          { ac_try='test -z "$ac_c_werror_flag"
39238                          || test ! -s conftest.err'
39239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39240   (eval $ac_try) 2>&5
39241   ac_status=$?
39242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39243   (exit $ac_status); }; } &&
39244          { ac_try='test -s conftest.$ac_objext'
39245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39246   (eval $ac_try) 2>&5
39247   ac_status=$?
39248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39249   (exit $ac_status); }; }; then
39250   ac_hi=-1 ac_mid=-1
39251   while :; do
39252     cat >conftest.$ac_ext <<_ACEOF
39253 /* confdefs.h.  */
39254 _ACEOF
39255 cat confdefs.h >>conftest.$ac_ext
39256 cat >>conftest.$ac_ext <<_ACEOF
39257 /* end confdefs.h.  */
39258 $ac_includes_default
39259 int
39260 main ()
39261 {
39262 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
39263 test_array [0] = 0
39264
39265   ;
39266   return 0;
39267 }
39268 _ACEOF
39269 rm -f conftest.$ac_objext
39270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39271   (eval $ac_compile) 2>conftest.er1
39272   ac_status=$?
39273   grep -v '^ *+' conftest.er1 >conftest.err
39274   rm -f conftest.er1
39275   cat conftest.err >&5
39276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39277   (exit $ac_status); } &&
39278          { ac_try='test -z "$ac_c_werror_flag"
39279                          || test ! -s conftest.err'
39280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39281   (eval $ac_try) 2>&5
39282   ac_status=$?
39283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39284   (exit $ac_status); }; } &&
39285          { ac_try='test -s conftest.$ac_objext'
39286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39287   (eval $ac_try) 2>&5
39288   ac_status=$?
39289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39290   (exit $ac_status); }; }; then
39291   ac_lo=$ac_mid; break
39292 else
39293   echo "$as_me: failed program was:" >&5
39294 sed 's/^/| /' conftest.$ac_ext >&5
39295
39296 ac_hi=`expr '(' $ac_mid ')' - 1`
39297                        if test $ac_mid -le $ac_hi; then
39298                          ac_lo= ac_hi=
39299                          break
39300                        fi
39301                        ac_mid=`expr 2 '*' $ac_mid`
39302 fi
39303 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39304   done
39305 else
39306   echo "$as_me: failed program was:" >&5
39307 sed 's/^/| /' conftest.$ac_ext >&5
39308
39309 ac_lo= ac_hi=
39310 fi
39311 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39312 fi
39313 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39314 # Binary search between lo and hi bounds.
39315 while test "x$ac_lo" != "x$ac_hi"; do
39316   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
39317   cat >conftest.$ac_ext <<_ACEOF
39318 /* confdefs.h.  */
39319 _ACEOF
39320 cat confdefs.h >>conftest.$ac_ext
39321 cat >>conftest.$ac_ext <<_ACEOF
39322 /* end confdefs.h.  */
39323 $ac_includes_default
39324 int
39325 main ()
39326 {
39327 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
39328 test_array [0] = 0
39329
39330   ;
39331   return 0;
39332 }
39333 _ACEOF
39334 rm -f conftest.$ac_objext
39335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39336   (eval $ac_compile) 2>conftest.er1
39337   ac_status=$?
39338   grep -v '^ *+' conftest.er1 >conftest.err
39339   rm -f conftest.er1
39340   cat conftest.err >&5
39341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39342   (exit $ac_status); } &&
39343          { ac_try='test -z "$ac_c_werror_flag"
39344                          || test ! -s conftest.err'
39345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39346   (eval $ac_try) 2>&5
39347   ac_status=$?
39348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39349   (exit $ac_status); }; } &&
39350          { ac_try='test -s conftest.$ac_objext'
39351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39352   (eval $ac_try) 2>&5
39353   ac_status=$?
39354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39355   (exit $ac_status); }; }; then
39356   ac_hi=$ac_mid
39357 else
39358   echo "$as_me: failed program was:" >&5
39359 sed 's/^/| /' conftest.$ac_ext >&5
39360
39361 ac_lo=`expr '(' $ac_mid ')' + 1`
39362 fi
39363 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39364 done
39365 case $ac_lo in
39366 ?*) ac_cv_sizeof_int=$ac_lo;;
39367 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
39368 See \`config.log' for more details." >&5
39369 echo "$as_me: error: cannot compute sizeof (int), 77
39370 See \`config.log' for more details." >&2;}
39371    { (exit 1); exit 1; }; } ;;
39372 esac
39373 else
39374   if test "$cross_compiling" = yes; then
39375   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
39376 See \`config.log' for more details." >&5
39377 echo "$as_me: error: cannot run test program while cross compiling
39378 See \`config.log' for more details." >&2;}
39379    { (exit 1); exit 1; }; }
39380 else
39381   cat >conftest.$ac_ext <<_ACEOF
39382 /* confdefs.h.  */
39383 _ACEOF
39384 cat confdefs.h >>conftest.$ac_ext
39385 cat >>conftest.$ac_ext <<_ACEOF
39386 /* end confdefs.h.  */
39387 $ac_includes_default
39388 long longval () { return (long) (sizeof (int)); }
39389 unsigned long ulongval () { return (long) (sizeof (int)); }
39390 #include <stdio.h>
39391 #include <stdlib.h>
39392 int
39393 main ()
39394 {
39395
39396   FILE *f = fopen ("conftest.val", "w");
39397   if (! f)
39398     exit (1);
39399   if (((long) (sizeof (int))) < 0)
39400     {
39401       long i = longval ();
39402       if (i != ((long) (sizeof (int))))
39403         exit (1);
39404       fprintf (f, "%ld\n", i);
39405     }
39406   else
39407     {
39408       unsigned long i = ulongval ();
39409       if (i != ((long) (sizeof (int))))
39410         exit (1);
39411       fprintf (f, "%lu\n", i);
39412     }
39413   exit (ferror (f) || fclose (f) != 0);
39414
39415   ;
39416   return 0;
39417 }
39418 _ACEOF
39419 rm -f conftest$ac_exeext
39420 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39421   (eval $ac_link) 2>&5
39422   ac_status=$?
39423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39424   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39426   (eval $ac_try) 2>&5
39427   ac_status=$?
39428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39429   (exit $ac_status); }; }; then
39430   ac_cv_sizeof_int=`cat conftest.val`
39431 else
39432   echo "$as_me: program exited with status $ac_status" >&5
39433 echo "$as_me: failed program was:" >&5
39434 sed 's/^/| /' conftest.$ac_ext >&5
39435
39436 ( exit $ac_status )
39437 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
39438 See \`config.log' for more details." >&5
39439 echo "$as_me: error: cannot compute sizeof (int), 77
39440 See \`config.log' for more details." >&2;}
39441    { (exit 1); exit 1; }; }
39442 fi
39443 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39444 fi
39445 fi
39446 rm -f conftest.val
39447 else
39448   ac_cv_sizeof_int=0
39449 fi
39450 fi
39451 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
39452 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
39453 cat >>confdefs.h <<_ACEOF
39454 #define SIZEOF_INT $ac_cv_sizeof_int
39455 _ACEOF
39456
39457
39458 echo "$as_me:$LINENO: checking for long" >&5
39459 echo $ECHO_N "checking for long... $ECHO_C" >&6
39460 if test "${ac_cv_type_long+set}" = set; then
39461   echo $ECHO_N "(cached) $ECHO_C" >&6
39462 else
39463   cat >conftest.$ac_ext <<_ACEOF
39464 /* confdefs.h.  */
39465 _ACEOF
39466 cat confdefs.h >>conftest.$ac_ext
39467 cat >>conftest.$ac_ext <<_ACEOF
39468 /* end confdefs.h.  */
39469 $ac_includes_default
39470 int
39471 main ()
39472 {
39473 if ((long *) 0)
39474   return 0;
39475 if (sizeof (long))
39476   return 0;
39477   ;
39478   return 0;
39479 }
39480 _ACEOF
39481 rm -f conftest.$ac_objext
39482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39483   (eval $ac_compile) 2>conftest.er1
39484   ac_status=$?
39485   grep -v '^ *+' conftest.er1 >conftest.err
39486   rm -f conftest.er1
39487   cat conftest.err >&5
39488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39489   (exit $ac_status); } &&
39490          { ac_try='test -z "$ac_c_werror_flag"
39491                          || test ! -s conftest.err'
39492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39493   (eval $ac_try) 2>&5
39494   ac_status=$?
39495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39496   (exit $ac_status); }; } &&
39497          { ac_try='test -s conftest.$ac_objext'
39498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39499   (eval $ac_try) 2>&5
39500   ac_status=$?
39501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39502   (exit $ac_status); }; }; then
39503   ac_cv_type_long=yes
39504 else
39505   echo "$as_me: failed program was:" >&5
39506 sed 's/^/| /' conftest.$ac_ext >&5
39507
39508 ac_cv_type_long=no
39509 fi
39510 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39511 fi
39512 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
39513 echo "${ECHO_T}$ac_cv_type_long" >&6
39514
39515 echo "$as_me:$LINENO: checking size of long" >&5
39516 echo $ECHO_N "checking size of long... $ECHO_C" >&6
39517 if test "${ac_cv_sizeof_long+set}" = set; then
39518   echo $ECHO_N "(cached) $ECHO_C" >&6
39519 else
39520   if test "$ac_cv_type_long" = yes; then
39521   # The cast to unsigned long works around a bug in the HP C Compiler
39522   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
39523   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
39524   # This bug is HP SR number 8606223364.
39525   if test "$cross_compiling" = yes; then
39526   # Depending upon the size, compute the lo and hi bounds.
39527 cat >conftest.$ac_ext <<_ACEOF
39528 /* confdefs.h.  */
39529 _ACEOF
39530 cat confdefs.h >>conftest.$ac_ext
39531 cat >>conftest.$ac_ext <<_ACEOF
39532 /* end confdefs.h.  */
39533 $ac_includes_default
39534 int
39535 main ()
39536 {
39537 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
39538 test_array [0] = 0
39539
39540   ;
39541   return 0;
39542 }
39543 _ACEOF
39544 rm -f conftest.$ac_objext
39545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39546   (eval $ac_compile) 2>conftest.er1
39547   ac_status=$?
39548   grep -v '^ *+' conftest.er1 >conftest.err
39549   rm -f conftest.er1
39550   cat conftest.err >&5
39551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39552   (exit $ac_status); } &&
39553          { ac_try='test -z "$ac_c_werror_flag"
39554                          || test ! -s conftest.err'
39555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39556   (eval $ac_try) 2>&5
39557   ac_status=$?
39558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39559   (exit $ac_status); }; } &&
39560          { ac_try='test -s conftest.$ac_objext'
39561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39562   (eval $ac_try) 2>&5
39563   ac_status=$?
39564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39565   (exit $ac_status); }; }; then
39566   ac_lo=0 ac_mid=0
39567   while :; do
39568     cat >conftest.$ac_ext <<_ACEOF
39569 /* confdefs.h.  */
39570 _ACEOF
39571 cat confdefs.h >>conftest.$ac_ext
39572 cat >>conftest.$ac_ext <<_ACEOF
39573 /* end confdefs.h.  */
39574 $ac_includes_default
39575 int
39576 main ()
39577 {
39578 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
39579 test_array [0] = 0
39580
39581   ;
39582   return 0;
39583 }
39584 _ACEOF
39585 rm -f conftest.$ac_objext
39586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39587   (eval $ac_compile) 2>conftest.er1
39588   ac_status=$?
39589   grep -v '^ *+' conftest.er1 >conftest.err
39590   rm -f conftest.er1
39591   cat conftest.err >&5
39592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39593   (exit $ac_status); } &&
39594          { ac_try='test -z "$ac_c_werror_flag"
39595                          || test ! -s conftest.err'
39596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39597   (eval $ac_try) 2>&5
39598   ac_status=$?
39599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39600   (exit $ac_status); }; } &&
39601          { ac_try='test -s conftest.$ac_objext'
39602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39603   (eval $ac_try) 2>&5
39604   ac_status=$?
39605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39606   (exit $ac_status); }; }; then
39607   ac_hi=$ac_mid; break
39608 else
39609   echo "$as_me: failed program was:" >&5
39610 sed 's/^/| /' conftest.$ac_ext >&5
39611
39612 ac_lo=`expr $ac_mid + 1`
39613                     if test $ac_lo -le $ac_mid; then
39614                       ac_lo= ac_hi=
39615                       break
39616                     fi
39617                     ac_mid=`expr 2 '*' $ac_mid + 1`
39618 fi
39619 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39620   done
39621 else
39622   echo "$as_me: failed program was:" >&5
39623 sed 's/^/| /' conftest.$ac_ext >&5
39624
39625 cat >conftest.$ac_ext <<_ACEOF
39626 /* confdefs.h.  */
39627 _ACEOF
39628 cat confdefs.h >>conftest.$ac_ext
39629 cat >>conftest.$ac_ext <<_ACEOF
39630 /* end confdefs.h.  */
39631 $ac_includes_default
39632 int
39633 main ()
39634 {
39635 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
39636 test_array [0] = 0
39637
39638   ;
39639   return 0;
39640 }
39641 _ACEOF
39642 rm -f conftest.$ac_objext
39643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39644   (eval $ac_compile) 2>conftest.er1
39645   ac_status=$?
39646   grep -v '^ *+' conftest.er1 >conftest.err
39647   rm -f conftest.er1
39648   cat conftest.err >&5
39649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39650   (exit $ac_status); } &&
39651          { ac_try='test -z "$ac_c_werror_flag"
39652                          || test ! -s conftest.err'
39653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39654   (eval $ac_try) 2>&5
39655   ac_status=$?
39656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39657   (exit $ac_status); }; } &&
39658          { ac_try='test -s conftest.$ac_objext'
39659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39660   (eval $ac_try) 2>&5
39661   ac_status=$?
39662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39663   (exit $ac_status); }; }; then
39664   ac_hi=-1 ac_mid=-1
39665   while :; do
39666     cat >conftest.$ac_ext <<_ACEOF
39667 /* confdefs.h.  */
39668 _ACEOF
39669 cat confdefs.h >>conftest.$ac_ext
39670 cat >>conftest.$ac_ext <<_ACEOF
39671 /* end confdefs.h.  */
39672 $ac_includes_default
39673 int
39674 main ()
39675 {
39676 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
39677 test_array [0] = 0
39678
39679   ;
39680   return 0;
39681 }
39682 _ACEOF
39683 rm -f conftest.$ac_objext
39684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39685   (eval $ac_compile) 2>conftest.er1
39686   ac_status=$?
39687   grep -v '^ *+' conftest.er1 >conftest.err
39688   rm -f conftest.er1
39689   cat conftest.err >&5
39690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39691   (exit $ac_status); } &&
39692          { ac_try='test -z "$ac_c_werror_flag"
39693                          || test ! -s conftest.err'
39694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39695   (eval $ac_try) 2>&5
39696   ac_status=$?
39697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39698   (exit $ac_status); }; } &&
39699          { ac_try='test -s conftest.$ac_objext'
39700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39701   (eval $ac_try) 2>&5
39702   ac_status=$?
39703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39704   (exit $ac_status); }; }; then
39705   ac_lo=$ac_mid; break
39706 else
39707   echo "$as_me: failed program was:" >&5
39708 sed 's/^/| /' conftest.$ac_ext >&5
39709
39710 ac_hi=`expr '(' $ac_mid ')' - 1`
39711                        if test $ac_mid -le $ac_hi; then
39712                          ac_lo= ac_hi=
39713                          break
39714                        fi
39715                        ac_mid=`expr 2 '*' $ac_mid`
39716 fi
39717 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39718   done
39719 else
39720   echo "$as_me: failed program was:" >&5
39721 sed 's/^/| /' conftest.$ac_ext >&5
39722
39723 ac_lo= ac_hi=
39724 fi
39725 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39726 fi
39727 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39728 # Binary search between lo and hi bounds.
39729 while test "x$ac_lo" != "x$ac_hi"; do
39730   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
39731   cat >conftest.$ac_ext <<_ACEOF
39732 /* confdefs.h.  */
39733 _ACEOF
39734 cat confdefs.h >>conftest.$ac_ext
39735 cat >>conftest.$ac_ext <<_ACEOF
39736 /* end confdefs.h.  */
39737 $ac_includes_default
39738 int
39739 main ()
39740 {
39741 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
39742 test_array [0] = 0
39743
39744   ;
39745   return 0;
39746 }
39747 _ACEOF
39748 rm -f conftest.$ac_objext
39749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39750   (eval $ac_compile) 2>conftest.er1
39751   ac_status=$?
39752   grep -v '^ *+' conftest.er1 >conftest.err
39753   rm -f conftest.er1
39754   cat conftest.err >&5
39755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39756   (exit $ac_status); } &&
39757          { ac_try='test -z "$ac_c_werror_flag"
39758                          || test ! -s conftest.err'
39759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39760   (eval $ac_try) 2>&5
39761   ac_status=$?
39762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39763   (exit $ac_status); }; } &&
39764          { ac_try='test -s conftest.$ac_objext'
39765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39766   (eval $ac_try) 2>&5
39767   ac_status=$?
39768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39769   (exit $ac_status); }; }; then
39770   ac_hi=$ac_mid
39771 else
39772   echo "$as_me: failed program was:" >&5
39773 sed 's/^/| /' conftest.$ac_ext >&5
39774
39775 ac_lo=`expr '(' $ac_mid ')' + 1`
39776 fi
39777 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39778 done
39779 case $ac_lo in
39780 ?*) ac_cv_sizeof_long=$ac_lo;;
39781 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
39782 See \`config.log' for more details." >&5
39783 echo "$as_me: error: cannot compute sizeof (long), 77
39784 See \`config.log' for more details." >&2;}
39785    { (exit 1); exit 1; }; } ;;
39786 esac
39787 else
39788   if test "$cross_compiling" = yes; then
39789   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
39790 See \`config.log' for more details." >&5
39791 echo "$as_me: error: cannot run test program while cross compiling
39792 See \`config.log' for more details." >&2;}
39793    { (exit 1); exit 1; }; }
39794 else
39795   cat >conftest.$ac_ext <<_ACEOF
39796 /* confdefs.h.  */
39797 _ACEOF
39798 cat confdefs.h >>conftest.$ac_ext
39799 cat >>conftest.$ac_ext <<_ACEOF
39800 /* end confdefs.h.  */
39801 $ac_includes_default
39802 long longval () { return (long) (sizeof (long)); }
39803 unsigned long ulongval () { return (long) (sizeof (long)); }
39804 #include <stdio.h>
39805 #include <stdlib.h>
39806 int
39807 main ()
39808 {
39809
39810   FILE *f = fopen ("conftest.val", "w");
39811   if (! f)
39812     exit (1);
39813   if (((long) (sizeof (long))) < 0)
39814     {
39815       long i = longval ();
39816       if (i != ((long) (sizeof (long))))
39817         exit (1);
39818       fprintf (f, "%ld\n", i);
39819     }
39820   else
39821     {
39822       unsigned long i = ulongval ();
39823       if (i != ((long) (sizeof (long))))
39824         exit (1);
39825       fprintf (f, "%lu\n", i);
39826     }
39827   exit (ferror (f) || fclose (f) != 0);
39828
39829   ;
39830   return 0;
39831 }
39832 _ACEOF
39833 rm -f conftest$ac_exeext
39834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39835   (eval $ac_link) 2>&5
39836   ac_status=$?
39837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39838   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39840   (eval $ac_try) 2>&5
39841   ac_status=$?
39842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39843   (exit $ac_status); }; }; then
39844   ac_cv_sizeof_long=`cat conftest.val`
39845 else
39846   echo "$as_me: program exited with status $ac_status" >&5
39847 echo "$as_me: failed program was:" >&5
39848 sed 's/^/| /' conftest.$ac_ext >&5
39849
39850 ( exit $ac_status )
39851 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
39852 See \`config.log' for more details." >&5
39853 echo "$as_me: error: cannot compute sizeof (long), 77
39854 See \`config.log' for more details." >&2;}
39855    { (exit 1); exit 1; }; }
39856 fi
39857 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39858 fi
39859 fi
39860 rm -f conftest.val
39861 else
39862   ac_cv_sizeof_long=0
39863 fi
39864 fi
39865 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
39866 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
39867 cat >>confdefs.h <<_ACEOF
39868 #define SIZEOF_LONG $ac_cv_sizeof_long
39869 _ACEOF
39870
39871
39872 echo "$as_me:$LINENO: checking for wchar_t" >&5
39873 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
39874 if test "${ac_cv_type_wchar_t+set}" = set; then
39875   echo $ECHO_N "(cached) $ECHO_C" >&6
39876 else
39877   cat >conftest.$ac_ext <<_ACEOF
39878 /* confdefs.h.  */
39879 _ACEOF
39880 cat confdefs.h >>conftest.$ac_ext
39881 cat >>conftest.$ac_ext <<_ACEOF
39882 /* end confdefs.h.  */
39883 $ac_includes_default
39884 int
39885 main ()
39886 {
39887 if ((wchar_t *) 0)
39888   return 0;
39889 if (sizeof (wchar_t))
39890   return 0;
39891   ;
39892   return 0;
39893 }
39894 _ACEOF
39895 rm -f conftest.$ac_objext
39896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39897   (eval $ac_compile) 2>conftest.er1
39898   ac_status=$?
39899   grep -v '^ *+' conftest.er1 >conftest.err
39900   rm -f conftest.er1
39901   cat conftest.err >&5
39902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39903   (exit $ac_status); } &&
39904          { ac_try='test -z "$ac_c_werror_flag"
39905                          || test ! -s conftest.err'
39906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39907   (eval $ac_try) 2>&5
39908   ac_status=$?
39909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39910   (exit $ac_status); }; } &&
39911          { ac_try='test -s conftest.$ac_objext'
39912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39913   (eval $ac_try) 2>&5
39914   ac_status=$?
39915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39916   (exit $ac_status); }; }; then
39917   ac_cv_type_wchar_t=yes
39918 else
39919   echo "$as_me: failed program was:" >&5
39920 sed 's/^/| /' conftest.$ac_ext >&5
39921
39922 ac_cv_type_wchar_t=no
39923 fi
39924 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39925 fi
39926 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
39927 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
39928
39929 echo "$as_me:$LINENO: checking size of wchar_t" >&5
39930 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
39931 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
39932   echo $ECHO_N "(cached) $ECHO_C" >&6
39933 else
39934   if test "$ac_cv_type_wchar_t" = yes; then
39935   # The cast to unsigned long works around a bug in the HP C Compiler
39936   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
39937   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
39938   # This bug is HP SR number 8606223364.
39939   if test "$cross_compiling" = yes; then
39940   # Depending upon the size, compute the lo and hi bounds.
39941 cat >conftest.$ac_ext <<_ACEOF
39942 /* confdefs.h.  */
39943 _ACEOF
39944 cat confdefs.h >>conftest.$ac_ext
39945 cat >>conftest.$ac_ext <<_ACEOF
39946 /* end confdefs.h.  */
39947 $ac_includes_default
39948 int
39949 main ()
39950 {
39951 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
39952 test_array [0] = 0
39953
39954   ;
39955   return 0;
39956 }
39957 _ACEOF
39958 rm -f conftest.$ac_objext
39959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39960   (eval $ac_compile) 2>conftest.er1
39961   ac_status=$?
39962   grep -v '^ *+' conftest.er1 >conftest.err
39963   rm -f conftest.er1
39964   cat conftest.err >&5
39965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39966   (exit $ac_status); } &&
39967          { ac_try='test -z "$ac_c_werror_flag"
39968                          || test ! -s conftest.err'
39969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39970   (eval $ac_try) 2>&5
39971   ac_status=$?
39972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39973   (exit $ac_status); }; } &&
39974          { ac_try='test -s conftest.$ac_objext'
39975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39976   (eval $ac_try) 2>&5
39977   ac_status=$?
39978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39979   (exit $ac_status); }; }; then
39980   ac_lo=0 ac_mid=0
39981   while :; do
39982     cat >conftest.$ac_ext <<_ACEOF
39983 /* confdefs.h.  */
39984 _ACEOF
39985 cat confdefs.h >>conftest.$ac_ext
39986 cat >>conftest.$ac_ext <<_ACEOF
39987 /* end confdefs.h.  */
39988 $ac_includes_default
39989 int
39990 main ()
39991 {
39992 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
39993 test_array [0] = 0
39994
39995   ;
39996   return 0;
39997 }
39998 _ACEOF
39999 rm -f conftest.$ac_objext
40000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40001   (eval $ac_compile) 2>conftest.er1
40002   ac_status=$?
40003   grep -v '^ *+' conftest.er1 >conftest.err
40004   rm -f conftest.er1
40005   cat conftest.err >&5
40006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40007   (exit $ac_status); } &&
40008          { ac_try='test -z "$ac_c_werror_flag"
40009                          || test ! -s conftest.err'
40010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40011   (eval $ac_try) 2>&5
40012   ac_status=$?
40013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40014   (exit $ac_status); }; } &&
40015          { ac_try='test -s conftest.$ac_objext'
40016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40017   (eval $ac_try) 2>&5
40018   ac_status=$?
40019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40020   (exit $ac_status); }; }; then
40021   ac_hi=$ac_mid; break
40022 else
40023   echo "$as_me: failed program was:" >&5
40024 sed 's/^/| /' conftest.$ac_ext >&5
40025
40026 ac_lo=`expr $ac_mid + 1`
40027                     if test $ac_lo -le $ac_mid; then
40028                       ac_lo= ac_hi=
40029                       break
40030                     fi
40031                     ac_mid=`expr 2 '*' $ac_mid + 1`
40032 fi
40033 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40034   done
40035 else
40036   echo "$as_me: failed program was:" >&5
40037 sed 's/^/| /' conftest.$ac_ext >&5
40038
40039 cat >conftest.$ac_ext <<_ACEOF
40040 /* confdefs.h.  */
40041 _ACEOF
40042 cat confdefs.h >>conftest.$ac_ext
40043 cat >>conftest.$ac_ext <<_ACEOF
40044 /* end confdefs.h.  */
40045 $ac_includes_default
40046 int
40047 main ()
40048 {
40049 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
40050 test_array [0] = 0
40051
40052   ;
40053   return 0;
40054 }
40055 _ACEOF
40056 rm -f conftest.$ac_objext
40057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40058   (eval $ac_compile) 2>conftest.er1
40059   ac_status=$?
40060   grep -v '^ *+' conftest.er1 >conftest.err
40061   rm -f conftest.er1
40062   cat conftest.err >&5
40063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40064   (exit $ac_status); } &&
40065          { ac_try='test -z "$ac_c_werror_flag"
40066                          || test ! -s conftest.err'
40067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40068   (eval $ac_try) 2>&5
40069   ac_status=$?
40070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40071   (exit $ac_status); }; } &&
40072          { ac_try='test -s conftest.$ac_objext'
40073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40074   (eval $ac_try) 2>&5
40075   ac_status=$?
40076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40077   (exit $ac_status); }; }; then
40078   ac_hi=-1 ac_mid=-1
40079   while :; do
40080     cat >conftest.$ac_ext <<_ACEOF
40081 /* confdefs.h.  */
40082 _ACEOF
40083 cat confdefs.h >>conftest.$ac_ext
40084 cat >>conftest.$ac_ext <<_ACEOF
40085 /* end confdefs.h.  */
40086 $ac_includes_default
40087 int
40088 main ()
40089 {
40090 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
40091 test_array [0] = 0
40092
40093   ;
40094   return 0;
40095 }
40096 _ACEOF
40097 rm -f conftest.$ac_objext
40098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40099   (eval $ac_compile) 2>conftest.er1
40100   ac_status=$?
40101   grep -v '^ *+' conftest.er1 >conftest.err
40102   rm -f conftest.er1
40103   cat conftest.err >&5
40104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40105   (exit $ac_status); } &&
40106          { ac_try='test -z "$ac_c_werror_flag"
40107                          || test ! -s conftest.err'
40108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40109   (eval $ac_try) 2>&5
40110   ac_status=$?
40111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40112   (exit $ac_status); }; } &&
40113          { ac_try='test -s conftest.$ac_objext'
40114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40115   (eval $ac_try) 2>&5
40116   ac_status=$?
40117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40118   (exit $ac_status); }; }; then
40119   ac_lo=$ac_mid; break
40120 else
40121   echo "$as_me: failed program was:" >&5
40122 sed 's/^/| /' conftest.$ac_ext >&5
40123
40124 ac_hi=`expr '(' $ac_mid ')' - 1`
40125                        if test $ac_mid -le $ac_hi; then
40126                          ac_lo= ac_hi=
40127                          break
40128                        fi
40129                        ac_mid=`expr 2 '*' $ac_mid`
40130 fi
40131 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40132   done
40133 else
40134   echo "$as_me: failed program was:" >&5
40135 sed 's/^/| /' conftest.$ac_ext >&5
40136
40137 ac_lo= ac_hi=
40138 fi
40139 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40140 fi
40141 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40142 # Binary search between lo and hi bounds.
40143 while test "x$ac_lo" != "x$ac_hi"; do
40144   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
40145   cat >conftest.$ac_ext <<_ACEOF
40146 /* confdefs.h.  */
40147 _ACEOF
40148 cat confdefs.h >>conftest.$ac_ext
40149 cat >>conftest.$ac_ext <<_ACEOF
40150 /* end confdefs.h.  */
40151 $ac_includes_default
40152 int
40153 main ()
40154 {
40155 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
40156 test_array [0] = 0
40157
40158   ;
40159   return 0;
40160 }
40161 _ACEOF
40162 rm -f conftest.$ac_objext
40163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40164   (eval $ac_compile) 2>conftest.er1
40165   ac_status=$?
40166   grep -v '^ *+' conftest.er1 >conftest.err
40167   rm -f conftest.er1
40168   cat conftest.err >&5
40169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40170   (exit $ac_status); } &&
40171          { ac_try='test -z "$ac_c_werror_flag"
40172                          || test ! -s conftest.err'
40173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40174   (eval $ac_try) 2>&5
40175   ac_status=$?
40176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40177   (exit $ac_status); }; } &&
40178          { ac_try='test -s conftest.$ac_objext'
40179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40180   (eval $ac_try) 2>&5
40181   ac_status=$?
40182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40183   (exit $ac_status); }; }; then
40184   ac_hi=$ac_mid
40185 else
40186   echo "$as_me: failed program was:" >&5
40187 sed 's/^/| /' conftest.$ac_ext >&5
40188
40189 ac_lo=`expr '(' $ac_mid ')' + 1`
40190 fi
40191 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40192 done
40193 case $ac_lo in
40194 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
40195 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
40196 See \`config.log' for more details." >&5
40197 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
40198 See \`config.log' for more details." >&2;}
40199    { (exit 1); exit 1; }; } ;;
40200 esac
40201 else
40202   if test "$cross_compiling" = yes; then
40203   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
40204 See \`config.log' for more details." >&5
40205 echo "$as_me: error: cannot run test program while cross compiling
40206 See \`config.log' for more details." >&2;}
40207    { (exit 1); exit 1; }; }
40208 else
40209   cat >conftest.$ac_ext <<_ACEOF
40210 /* confdefs.h.  */
40211 _ACEOF
40212 cat confdefs.h >>conftest.$ac_ext
40213 cat >>conftest.$ac_ext <<_ACEOF
40214 /* end confdefs.h.  */
40215 $ac_includes_default
40216 long longval () { return (long) (sizeof (wchar_t)); }
40217 unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
40218 #include <stdio.h>
40219 #include <stdlib.h>
40220 int
40221 main ()
40222 {
40223
40224   FILE *f = fopen ("conftest.val", "w");
40225   if (! f)
40226     exit (1);
40227   if (((long) (sizeof (wchar_t))) < 0)
40228     {
40229       long i = longval ();
40230       if (i != ((long) (sizeof (wchar_t))))
40231         exit (1);
40232       fprintf (f, "%ld\n", i);
40233     }
40234   else
40235     {
40236       unsigned long i = ulongval ();
40237       if (i != ((long) (sizeof (wchar_t))))
40238         exit (1);
40239       fprintf (f, "%lu\n", i);
40240     }
40241   exit (ferror (f) || fclose (f) != 0);
40242
40243   ;
40244   return 0;
40245 }
40246 _ACEOF
40247 rm -f conftest$ac_exeext
40248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40249   (eval $ac_link) 2>&5
40250   ac_status=$?
40251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40252   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40254   (eval $ac_try) 2>&5
40255   ac_status=$?
40256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40257   (exit $ac_status); }; }; then
40258   ac_cv_sizeof_wchar_t=`cat conftest.val`
40259 else
40260   echo "$as_me: program exited with status $ac_status" >&5
40261 echo "$as_me: failed program was:" >&5
40262 sed 's/^/| /' conftest.$ac_ext >&5
40263
40264 ( exit $ac_status )
40265 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
40266 See \`config.log' for more details." >&5
40267 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
40268 See \`config.log' for more details." >&2;}
40269    { (exit 1); exit 1; }; }
40270 fi
40271 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40272 fi
40273 fi
40274 rm -f conftest.val
40275 else
40276   ac_cv_sizeof_wchar_t=0
40277 fi
40278 fi
40279 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
40280 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
40281 cat >>confdefs.h <<_ACEOF
40282 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
40283 _ACEOF
40284
40285
40286
40287 if test "$ac_cv_sizeof_int" -lt 4 ; then
40288         { echo "$as_me:$LINENO: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&5
40289 echo "$as_me: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&2;}
40290
40291
40292 cat >>confdefs.h <<\_ACEOF
40293 #define LBER_INT_T long
40294 _ACEOF
40295
40296 else
40297
40298 cat >>confdefs.h <<\_ACEOF
40299 #define LBER_INT_T int
40300 _ACEOF
40301
40302 fi
40303
40304
40305 cat >>confdefs.h <<\_ACEOF
40306 #define LBER_LEN_T long
40307 _ACEOF
40308
40309
40310 cat >>confdefs.h <<\_ACEOF
40311 #define LBER_SOCKET_T int
40312 _ACEOF
40313
40314
40315 cat >>confdefs.h <<\_ACEOF
40316 #define LBER_TAG_T long
40317 _ACEOF
40318
40319
40320 echo "$as_me:$LINENO: checking for working memcmp" >&5
40321 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
40322 if test "${ac_cv_func_memcmp_working+set}" = set; then
40323   echo $ECHO_N "(cached) $ECHO_C" >&6
40324 else
40325   if test "$cross_compiling" = yes; then
40326   ac_cv_func_memcmp_working=no
40327 else
40328   cat >conftest.$ac_ext <<_ACEOF
40329 /* confdefs.h.  */
40330 _ACEOF
40331 cat confdefs.h >>conftest.$ac_ext
40332 cat >>conftest.$ac_ext <<_ACEOF
40333 /* end confdefs.h.  */
40334 $ac_includes_default
40335 int
40336 main ()
40337 {
40338
40339   /* Some versions of memcmp are not 8-bit clean.  */
40340   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
40341   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
40342     exit (1);
40343
40344   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
40345      or more and with at least one buffer not starting on a 4-byte boundary.
40346      William Lewis provided this test program.   */
40347   {
40348     char foo[21];
40349     char bar[21];
40350     int i;
40351     for (i = 0; i < 4; i++)
40352       {
40353         char *a = foo + i;
40354         char *b = bar + i;
40355         strcpy (a, "--------01111111");
40356         strcpy (b, "--------10000000");
40357         if (memcmp (a, b, 16) >= 0)
40358           exit (1);
40359       }
40360     exit (0);
40361   }
40362
40363   ;
40364   return 0;
40365 }
40366 _ACEOF
40367 rm -f conftest$ac_exeext
40368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40369   (eval $ac_link) 2>&5
40370   ac_status=$?
40371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40372   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40374   (eval $ac_try) 2>&5
40375   ac_status=$?
40376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40377   (exit $ac_status); }; }; then
40378   ac_cv_func_memcmp_working=yes
40379 else
40380   echo "$as_me: program exited with status $ac_status" >&5
40381 echo "$as_me: failed program was:" >&5
40382 sed 's/^/| /' conftest.$ac_ext >&5
40383
40384 ( exit $ac_status )
40385 ac_cv_func_memcmp_working=no
40386 fi
40387 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40388 fi
40389 fi
40390 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
40391 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
40392 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
40393     "memcmp.$ac_objext"   | \
40394   *" memcmp.$ac_objext"   | \
40395     "memcmp.$ac_objext "* | \
40396   *" memcmp.$ac_objext "* ) ;;
40397   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
40398 esac
40399
40400
40401
40402 if test $ac_cv_func_memcmp_working = no ; then
40403
40404 cat >>confdefs.h <<\_ACEOF
40405 #define NEED_MEMCMP_REPLACEMENT 1
40406 _ACEOF
40407
40408 fi
40409
40410
40411 for ac_func in strftime
40412 do
40413 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40414 echo "$as_me:$LINENO: checking for $ac_func" >&5
40415 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40416 if eval "test \"\${$as_ac_var+set}\" = set"; then
40417   echo $ECHO_N "(cached) $ECHO_C" >&6
40418 else
40419   cat >conftest.$ac_ext <<_ACEOF
40420 /* confdefs.h.  */
40421 _ACEOF
40422 cat confdefs.h >>conftest.$ac_ext
40423 cat >>conftest.$ac_ext <<_ACEOF
40424 /* end confdefs.h.  */
40425 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40426    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40427 #define $ac_func innocuous_$ac_func
40428
40429 /* System header to define __stub macros and hopefully few prototypes,
40430     which can conflict with char $ac_func (); below.
40431     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40432     <limits.h> exists even on freestanding compilers.  */
40433
40434 #ifdef __STDC__
40435 # include <limits.h>
40436 #else
40437 # include <assert.h>
40438 #endif
40439
40440 #undef $ac_func
40441
40442 /* Override any gcc2 internal prototype to avoid an error.  */
40443 #ifdef __cplusplus
40444 extern "C"
40445 {
40446 #endif
40447 /* We use char because int might match the return type of a gcc2
40448    builtin and then its argument prototype would still apply.  */
40449 char $ac_func ();
40450 /* The GNU C library defines this for functions which it implements
40451     to always fail with ENOSYS.  Some functions are actually named
40452     something starting with __ and the normal name is an alias.  */
40453 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40454 choke me
40455 #else
40456 char (*f) () = $ac_func;
40457 #endif
40458 #ifdef __cplusplus
40459 }
40460 #endif
40461
40462 int
40463 main ()
40464 {
40465 return f != $ac_func;
40466   ;
40467   return 0;
40468 }
40469 _ACEOF
40470 rm -f conftest.$ac_objext conftest$ac_exeext
40471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40472   (eval $ac_link) 2>conftest.er1
40473   ac_status=$?
40474   grep -v '^ *+' conftest.er1 >conftest.err
40475   rm -f conftest.er1
40476   cat conftest.err >&5
40477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40478   (exit $ac_status); } &&
40479          { ac_try='test -z "$ac_c_werror_flag"
40480                          || test ! -s conftest.err'
40481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40482   (eval $ac_try) 2>&5
40483   ac_status=$?
40484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40485   (exit $ac_status); }; } &&
40486          { ac_try='test -s conftest$ac_exeext'
40487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40488   (eval $ac_try) 2>&5
40489   ac_status=$?
40490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40491   (exit $ac_status); }; }; then
40492   eval "$as_ac_var=yes"
40493 else
40494   echo "$as_me: failed program was:" >&5
40495 sed 's/^/| /' conftest.$ac_ext >&5
40496
40497 eval "$as_ac_var=no"
40498 fi
40499 rm -f conftest.err conftest.$ac_objext \
40500       conftest$ac_exeext conftest.$ac_ext
40501 fi
40502 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40503 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40504 if test `eval echo '${'$as_ac_var'}'` = yes; then
40505   cat >>confdefs.h <<_ACEOF
40506 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40507 _ACEOF
40508
40509 else
40510   # strftime is in -lintl on SCO UNIX.
40511 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
40512 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
40513 if test "${ac_cv_lib_intl_strftime+set}" = set; then
40514   echo $ECHO_N "(cached) $ECHO_C" >&6
40515 else
40516   ac_check_lib_save_LIBS=$LIBS
40517 LIBS="-lintl  $LIBS"
40518 cat >conftest.$ac_ext <<_ACEOF
40519 /* confdefs.h.  */
40520 _ACEOF
40521 cat confdefs.h >>conftest.$ac_ext
40522 cat >>conftest.$ac_ext <<_ACEOF
40523 /* end confdefs.h.  */
40524
40525 /* Override any gcc2 internal prototype to avoid an error.  */
40526 #ifdef __cplusplus
40527 extern "C"
40528 #endif
40529 /* We use char because int might match the return type of a gcc2
40530    builtin and then its argument prototype would still apply.  */
40531 char strftime ();
40532 int
40533 main ()
40534 {
40535 strftime ();
40536   ;
40537   return 0;
40538 }
40539 _ACEOF
40540 rm -f conftest.$ac_objext conftest$ac_exeext
40541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40542   (eval $ac_link) 2>conftest.er1
40543   ac_status=$?
40544   grep -v '^ *+' conftest.er1 >conftest.err
40545   rm -f conftest.er1
40546   cat conftest.err >&5
40547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40548   (exit $ac_status); } &&
40549          { ac_try='test -z "$ac_c_werror_flag"
40550                          || test ! -s conftest.err'
40551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40552   (eval $ac_try) 2>&5
40553   ac_status=$?
40554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40555   (exit $ac_status); }; } &&
40556          { ac_try='test -s conftest$ac_exeext'
40557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40558   (eval $ac_try) 2>&5
40559   ac_status=$?
40560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40561   (exit $ac_status); }; }; then
40562   ac_cv_lib_intl_strftime=yes
40563 else
40564   echo "$as_me: failed program was:" >&5
40565 sed 's/^/| /' conftest.$ac_ext >&5
40566
40567 ac_cv_lib_intl_strftime=no
40568 fi
40569 rm -f conftest.err conftest.$ac_objext \
40570       conftest$ac_exeext conftest.$ac_ext
40571 LIBS=$ac_check_lib_save_LIBS
40572 fi
40573 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
40574 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
40575 if test $ac_cv_lib_intl_strftime = yes; then
40576   cat >>confdefs.h <<\_ACEOF
40577 #define HAVE_STRFTIME 1
40578 _ACEOF
40579
40580 LIBS="-lintl $LIBS"
40581 fi
40582
40583 fi
40584 done
40585
40586
40587 echo "$as_me:$LINENO: checking for inet_aton()" >&5
40588 echo $ECHO_N "checking for inet_aton()... $ECHO_C" >&6
40589 if test "${ol_cv_func_inet_aton+set}" = set; then
40590   echo $ECHO_N "(cached) $ECHO_C" >&6
40591 else
40592   cat >conftest.$ac_ext <<_ACEOF
40593 /* confdefs.h.  */
40594 _ACEOF
40595 cat confdefs.h >>conftest.$ac_ext
40596 cat >>conftest.$ac_ext <<_ACEOF
40597 /* end confdefs.h.  */
40598
40599 #ifdef HAVE_SYS_TYPES_H
40600 #       include <sys/types.h>
40601 #endif
40602 #ifdef HAVE_SYS_SOCKET_H
40603 #       include <sys/socket.h>
40604 #       ifdef HAVE_SYS_SELECT_H
40605 #               include <sys/select.h>
40606 #       endif
40607 #       include <netinet/in.h>
40608 #       ifdef HAVE_ARPA_INET_H
40609 #               include <arpa/inet.h>
40610 #       endif
40611 #endif
40612
40613 int
40614 main ()
40615 {
40616 struct in_addr in;
40617 int rc = inet_aton( "255.255.255.255", &in );
40618   ;
40619   return 0;
40620 }
40621 _ACEOF
40622 rm -f conftest.$ac_objext conftest$ac_exeext
40623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40624   (eval $ac_link) 2>conftest.er1
40625   ac_status=$?
40626   grep -v '^ *+' conftest.er1 >conftest.err
40627   rm -f conftest.er1
40628   cat conftest.err >&5
40629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40630   (exit $ac_status); } &&
40631          { ac_try='test -z "$ac_c_werror_flag"
40632                          || test ! -s conftest.err'
40633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40634   (eval $ac_try) 2>&5
40635   ac_status=$?
40636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40637   (exit $ac_status); }; } &&
40638          { ac_try='test -s conftest$ac_exeext'
40639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40640   (eval $ac_try) 2>&5
40641   ac_status=$?
40642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40643   (exit $ac_status); }; }; then
40644   ol_cv_func_inet_aton=yes
40645 else
40646   echo "$as_me: failed program was:" >&5
40647 sed 's/^/| /' conftest.$ac_ext >&5
40648
40649 ol_cv_func_inet_aton=no
40650 fi
40651 rm -f conftest.err conftest.$ac_objext \
40652       conftest$ac_exeext conftest.$ac_ext
40653 fi
40654 echo "$as_me:$LINENO: result: $ol_cv_func_inet_aton" >&5
40655 echo "${ECHO_T}$ol_cv_func_inet_aton" >&6
40656   if test $ol_cv_func_inet_aton != no; then
40657
40658 cat >>confdefs.h <<\_ACEOF
40659 #define HAVE_INET_ATON 1
40660 _ACEOF
40661
40662   fi
40663
40664
40665 echo "$as_me:$LINENO: checking for _spawnlp" >&5
40666 echo $ECHO_N "checking for _spawnlp... $ECHO_C" >&6
40667 if test "${ac_cv_func__spawnlp+set}" = set; then
40668   echo $ECHO_N "(cached) $ECHO_C" >&6
40669 else
40670   cat >conftest.$ac_ext <<_ACEOF
40671 /* confdefs.h.  */
40672 _ACEOF
40673 cat confdefs.h >>conftest.$ac_ext
40674 cat >>conftest.$ac_ext <<_ACEOF
40675 /* end confdefs.h.  */
40676 /* Define _spawnlp to an innocuous variant, in case <limits.h> declares _spawnlp.
40677    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40678 #define _spawnlp innocuous__spawnlp
40679
40680 /* System header to define __stub macros and hopefully few prototypes,
40681     which can conflict with char _spawnlp (); below.
40682     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40683     <limits.h> exists even on freestanding compilers.  */
40684
40685 #ifdef __STDC__
40686 # include <limits.h>
40687 #else
40688 # include <assert.h>
40689 #endif
40690
40691 #undef _spawnlp
40692
40693 /* Override any gcc2 internal prototype to avoid an error.  */
40694 #ifdef __cplusplus
40695 extern "C"
40696 {
40697 #endif
40698 /* We use char because int might match the return type of a gcc2
40699    builtin and then its argument prototype would still apply.  */
40700 char _spawnlp ();
40701 /* The GNU C library defines this for functions which it implements
40702     to always fail with ENOSYS.  Some functions are actually named
40703     something starting with __ and the normal name is an alias.  */
40704 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
40705 choke me
40706 #else
40707 char (*f) () = _spawnlp;
40708 #endif
40709 #ifdef __cplusplus
40710 }
40711 #endif
40712
40713 int
40714 main ()
40715 {
40716 return f != _spawnlp;
40717   ;
40718   return 0;
40719 }
40720 _ACEOF
40721 rm -f conftest.$ac_objext conftest$ac_exeext
40722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40723   (eval $ac_link) 2>conftest.er1
40724   ac_status=$?
40725   grep -v '^ *+' conftest.er1 >conftest.err
40726   rm -f conftest.er1
40727   cat conftest.err >&5
40728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40729   (exit $ac_status); } &&
40730          { ac_try='test -z "$ac_c_werror_flag"
40731                          || test ! -s conftest.err'
40732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40733   (eval $ac_try) 2>&5
40734   ac_status=$?
40735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40736   (exit $ac_status); }; } &&
40737          { ac_try='test -s conftest$ac_exeext'
40738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40739   (eval $ac_try) 2>&5
40740   ac_status=$?
40741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40742   (exit $ac_status); }; }; then
40743   ac_cv_func__spawnlp=yes
40744 else
40745   echo "$as_me: failed program was:" >&5
40746 sed 's/^/| /' conftest.$ac_ext >&5
40747
40748 ac_cv_func__spawnlp=no
40749 fi
40750 rm -f conftest.err conftest.$ac_objext \
40751       conftest$ac_exeext conftest.$ac_ext
40752 fi
40753 echo "$as_me:$LINENO: result: $ac_cv_func__spawnlp" >&5
40754 echo "${ECHO_T}$ac_cv_func__spawnlp" >&6
40755 if test $ac_cv_func__spawnlp = yes; then
40756
40757 cat >>confdefs.h <<\_ACEOF
40758 #define HAVE_SPAWNLP 1
40759 _ACEOF
40760
40761 fi
40762
40763
40764 echo "$as_me:$LINENO: checking for _snprintf" >&5
40765 echo $ECHO_N "checking for _snprintf... $ECHO_C" >&6
40766 if test "${ac_cv_func__snprintf+set}" = set; then
40767   echo $ECHO_N "(cached) $ECHO_C" >&6
40768 else
40769   cat >conftest.$ac_ext <<_ACEOF
40770 /* confdefs.h.  */
40771 _ACEOF
40772 cat confdefs.h >>conftest.$ac_ext
40773 cat >>conftest.$ac_ext <<_ACEOF
40774 /* end confdefs.h.  */
40775 /* Define _snprintf to an innocuous variant, in case <limits.h> declares _snprintf.
40776    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40777 #define _snprintf innocuous__snprintf
40778
40779 /* System header to define __stub macros and hopefully few prototypes,
40780     which can conflict with char _snprintf (); below.
40781     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40782     <limits.h> exists even on freestanding compilers.  */
40783
40784 #ifdef __STDC__
40785 # include <limits.h>
40786 #else
40787 # include <assert.h>
40788 #endif
40789
40790 #undef _snprintf
40791
40792 /* Override any gcc2 internal prototype to avoid an error.  */
40793 #ifdef __cplusplus
40794 extern "C"
40795 {
40796 #endif
40797 /* We use char because int might match the return type of a gcc2
40798    builtin and then its argument prototype would still apply.  */
40799 char _snprintf ();
40800 /* The GNU C library defines this for functions which it implements
40801     to always fail with ENOSYS.  Some functions are actually named
40802     something starting with __ and the normal name is an alias.  */
40803 #if defined (__stub__snprintf) || defined (__stub____snprintf)
40804 choke me
40805 #else
40806 char (*f) () = _snprintf;
40807 #endif
40808 #ifdef __cplusplus
40809 }
40810 #endif
40811
40812 int
40813 main ()
40814 {
40815 return f != _snprintf;
40816   ;
40817   return 0;
40818 }
40819 _ACEOF
40820 rm -f conftest.$ac_objext conftest$ac_exeext
40821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40822   (eval $ac_link) 2>conftest.er1
40823   ac_status=$?
40824   grep -v '^ *+' conftest.er1 >conftest.err
40825   rm -f conftest.er1
40826   cat conftest.err >&5
40827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40828   (exit $ac_status); } &&
40829          { ac_try='test -z "$ac_c_werror_flag"
40830                          || test ! -s conftest.err'
40831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40832   (eval $ac_try) 2>&5
40833   ac_status=$?
40834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40835   (exit $ac_status); }; } &&
40836          { ac_try='test -s conftest$ac_exeext'
40837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40838   (eval $ac_try) 2>&5
40839   ac_status=$?
40840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40841   (exit $ac_status); }; }; then
40842   ac_cv_func__snprintf=yes
40843 else
40844   echo "$as_me: failed program was:" >&5
40845 sed 's/^/| /' conftest.$ac_ext >&5
40846
40847 ac_cv_func__snprintf=no
40848 fi
40849 rm -f conftest.err conftest.$ac_objext \
40850       conftest$ac_exeext conftest.$ac_ext
40851 fi
40852 echo "$as_me:$LINENO: result: $ac_cv_func__snprintf" >&5
40853 echo "${ECHO_T}$ac_cv_func__snprintf" >&6
40854 if test $ac_cv_func__snprintf = yes; then
40855   ac_cv_func_snprintf=yes
40856
40857 cat >>confdefs.h <<\_ACEOF
40858 #define snprintf _snprintf
40859 _ACEOF
40860
40861
40862 fi
40863
40864
40865 echo "$as_me:$LINENO: checking for _vsnprintf" >&5
40866 echo $ECHO_N "checking for _vsnprintf... $ECHO_C" >&6
40867 if test "${ac_cv_func__vsnprintf+set}" = set; then
40868   echo $ECHO_N "(cached) $ECHO_C" >&6
40869 else
40870   cat >conftest.$ac_ext <<_ACEOF
40871 /* confdefs.h.  */
40872 _ACEOF
40873 cat confdefs.h >>conftest.$ac_ext
40874 cat >>conftest.$ac_ext <<_ACEOF
40875 /* end confdefs.h.  */
40876 /* Define _vsnprintf to an innocuous variant, in case <limits.h> declares _vsnprintf.
40877    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40878 #define _vsnprintf innocuous__vsnprintf
40879
40880 /* System header to define __stub macros and hopefully few prototypes,
40881     which can conflict with char _vsnprintf (); below.
40882     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40883     <limits.h> exists even on freestanding compilers.  */
40884
40885 #ifdef __STDC__
40886 # include <limits.h>
40887 #else
40888 # include <assert.h>
40889 #endif
40890
40891 #undef _vsnprintf
40892
40893 /* Override any gcc2 internal prototype to avoid an error.  */
40894 #ifdef __cplusplus
40895 extern "C"
40896 {
40897 #endif
40898 /* We use char because int might match the return type of a gcc2
40899    builtin and then its argument prototype would still apply.  */
40900 char _vsnprintf ();
40901 /* The GNU C library defines this for functions which it implements
40902     to always fail with ENOSYS.  Some functions are actually named
40903     something starting with __ and the normal name is an alias.  */
40904 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
40905 choke me
40906 #else
40907 char (*f) () = _vsnprintf;
40908 #endif
40909 #ifdef __cplusplus
40910 }
40911 #endif
40912
40913 int
40914 main ()
40915 {
40916 return f != _vsnprintf;
40917   ;
40918   return 0;
40919 }
40920 _ACEOF
40921 rm -f conftest.$ac_objext conftest$ac_exeext
40922 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40923   (eval $ac_link) 2>conftest.er1
40924   ac_status=$?
40925   grep -v '^ *+' conftest.er1 >conftest.err
40926   rm -f conftest.er1
40927   cat conftest.err >&5
40928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40929   (exit $ac_status); } &&
40930          { ac_try='test -z "$ac_c_werror_flag"
40931                          || test ! -s conftest.err'
40932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40933   (eval $ac_try) 2>&5
40934   ac_status=$?
40935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40936   (exit $ac_status); }; } &&
40937          { ac_try='test -s conftest$ac_exeext'
40938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40939   (eval $ac_try) 2>&5
40940   ac_status=$?
40941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40942   (exit $ac_status); }; }; then
40943   ac_cv_func__vsnprintf=yes
40944 else
40945   echo "$as_me: failed program was:" >&5
40946 sed 's/^/| /' conftest.$ac_ext >&5
40947
40948 ac_cv_func__vsnprintf=no
40949 fi
40950 rm -f conftest.err conftest.$ac_objext \
40951       conftest$ac_exeext conftest.$ac_ext
40952 fi
40953 echo "$as_me:$LINENO: result: $ac_cv_func__vsnprintf" >&5
40954 echo "${ECHO_T}$ac_cv_func__vsnprintf" >&6
40955 if test $ac_cv_func__vsnprintf = yes; then
40956   ac_cv_func_vsnprintf=yes
40957
40958 cat >>confdefs.h <<\_ACEOF
40959 #define vsnprintf _vsnprintf
40960 _ACEOF
40961
40962
40963 fi
40964
40965
40966
40967 for ac_func in vprintf
40968 do
40969 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40970 echo "$as_me:$LINENO: checking for $ac_func" >&5
40971 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40972 if eval "test \"\${$as_ac_var+set}\" = set"; then
40973   echo $ECHO_N "(cached) $ECHO_C" >&6
40974 else
40975   cat >conftest.$ac_ext <<_ACEOF
40976 /* confdefs.h.  */
40977 _ACEOF
40978 cat confdefs.h >>conftest.$ac_ext
40979 cat >>conftest.$ac_ext <<_ACEOF
40980 /* end confdefs.h.  */
40981 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40982    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40983 #define $ac_func innocuous_$ac_func
40984
40985 /* System header to define __stub macros and hopefully few prototypes,
40986     which can conflict with char $ac_func (); below.
40987     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40988     <limits.h> exists even on freestanding compilers.  */
40989
40990 #ifdef __STDC__
40991 # include <limits.h>
40992 #else
40993 # include <assert.h>
40994 #endif
40995
40996 #undef $ac_func
40997
40998 /* Override any gcc2 internal prototype to avoid an error.  */
40999 #ifdef __cplusplus
41000 extern "C"
41001 {
41002 #endif
41003 /* We use char because int might match the return type of a gcc2
41004    builtin and then its argument prototype would still apply.  */
41005 char $ac_func ();
41006 /* The GNU C library defines this for functions which it implements
41007     to always fail with ENOSYS.  Some functions are actually named
41008     something starting with __ and the normal name is an alias.  */
41009 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41010 choke me
41011 #else
41012 char (*f) () = $ac_func;
41013 #endif
41014 #ifdef __cplusplus
41015 }
41016 #endif
41017
41018 int
41019 main ()
41020 {
41021 return f != $ac_func;
41022   ;
41023   return 0;
41024 }
41025 _ACEOF
41026 rm -f conftest.$ac_objext conftest$ac_exeext
41027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41028   (eval $ac_link) 2>conftest.er1
41029   ac_status=$?
41030   grep -v '^ *+' conftest.er1 >conftest.err
41031   rm -f conftest.er1
41032   cat conftest.err >&5
41033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41034   (exit $ac_status); } &&
41035          { ac_try='test -z "$ac_c_werror_flag"
41036                          || test ! -s conftest.err'
41037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41038   (eval $ac_try) 2>&5
41039   ac_status=$?
41040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41041   (exit $ac_status); }; } &&
41042          { ac_try='test -s conftest$ac_exeext'
41043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41044   (eval $ac_try) 2>&5
41045   ac_status=$?
41046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41047   (exit $ac_status); }; }; then
41048   eval "$as_ac_var=yes"
41049 else
41050   echo "$as_me: failed program was:" >&5
41051 sed 's/^/| /' conftest.$ac_ext >&5
41052
41053 eval "$as_ac_var=no"
41054 fi
41055 rm -f conftest.err conftest.$ac_objext \
41056       conftest$ac_exeext conftest.$ac_ext
41057 fi
41058 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41059 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41060 if test `eval echo '${'$as_ac_var'}'` = yes; then
41061   cat >>confdefs.h <<_ACEOF
41062 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41063 _ACEOF
41064
41065 echo "$as_me:$LINENO: checking for _doprnt" >&5
41066 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
41067 if test "${ac_cv_func__doprnt+set}" = set; then
41068   echo $ECHO_N "(cached) $ECHO_C" >&6
41069 else
41070   cat >conftest.$ac_ext <<_ACEOF
41071 /* confdefs.h.  */
41072 _ACEOF
41073 cat confdefs.h >>conftest.$ac_ext
41074 cat >>conftest.$ac_ext <<_ACEOF
41075 /* end confdefs.h.  */
41076 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
41077    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41078 #define _doprnt innocuous__doprnt
41079
41080 /* System header to define __stub macros and hopefully few prototypes,
41081     which can conflict with char _doprnt (); below.
41082     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41083     <limits.h> exists even on freestanding compilers.  */
41084
41085 #ifdef __STDC__
41086 # include <limits.h>
41087 #else
41088 # include <assert.h>
41089 #endif
41090
41091 #undef _doprnt
41092
41093 /* Override any gcc2 internal prototype to avoid an error.  */
41094 #ifdef __cplusplus
41095 extern "C"
41096 {
41097 #endif
41098 /* We use char because int might match the return type of a gcc2
41099    builtin and then its argument prototype would still apply.  */
41100 char _doprnt ();
41101 /* The GNU C library defines this for functions which it implements
41102     to always fail with ENOSYS.  Some functions are actually named
41103     something starting with __ and the normal name is an alias.  */
41104 #if defined (__stub__doprnt) || defined (__stub____doprnt)
41105 choke me
41106 #else
41107 char (*f) () = _doprnt;
41108 #endif
41109 #ifdef __cplusplus
41110 }
41111 #endif
41112
41113 int
41114 main ()
41115 {
41116 return f != _doprnt;
41117   ;
41118   return 0;
41119 }
41120 _ACEOF
41121 rm -f conftest.$ac_objext conftest$ac_exeext
41122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41123   (eval $ac_link) 2>conftest.er1
41124   ac_status=$?
41125   grep -v '^ *+' conftest.er1 >conftest.err
41126   rm -f conftest.er1
41127   cat conftest.err >&5
41128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41129   (exit $ac_status); } &&
41130          { ac_try='test -z "$ac_c_werror_flag"
41131                          || test ! -s conftest.err'
41132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41133   (eval $ac_try) 2>&5
41134   ac_status=$?
41135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41136   (exit $ac_status); }; } &&
41137          { ac_try='test -s conftest$ac_exeext'
41138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41139   (eval $ac_try) 2>&5
41140   ac_status=$?
41141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41142   (exit $ac_status); }; }; then
41143   ac_cv_func__doprnt=yes
41144 else
41145   echo "$as_me: failed program was:" >&5
41146 sed 's/^/| /' conftest.$ac_ext >&5
41147
41148 ac_cv_func__doprnt=no
41149 fi
41150 rm -f conftest.err conftest.$ac_objext \
41151       conftest$ac_exeext conftest.$ac_ext
41152 fi
41153 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
41154 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
41155 if test $ac_cv_func__doprnt = yes; then
41156
41157 cat >>confdefs.h <<\_ACEOF
41158 #define HAVE_DOPRNT 1
41159 _ACEOF
41160
41161 fi
41162
41163 fi
41164 done
41165
41166
41167
41168 if test $ac_cv_func_vprintf = yes ; then
41169
41170
41171 for ac_func in snprintf vsnprintf
41172 do
41173 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41174 echo "$as_me:$LINENO: checking for $ac_func" >&5
41175 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41176 if eval "test \"\${$as_ac_var+set}\" = set"; then
41177   echo $ECHO_N "(cached) $ECHO_C" >&6
41178 else
41179   cat >conftest.$ac_ext <<_ACEOF
41180 /* confdefs.h.  */
41181 _ACEOF
41182 cat confdefs.h >>conftest.$ac_ext
41183 cat >>conftest.$ac_ext <<_ACEOF
41184 /* end confdefs.h.  */
41185 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41186    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41187 #define $ac_func innocuous_$ac_func
41188
41189 /* System header to define __stub macros and hopefully few prototypes,
41190     which can conflict with char $ac_func (); below.
41191     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41192     <limits.h> exists even on freestanding compilers.  */
41193
41194 #ifdef __STDC__
41195 # include <limits.h>
41196 #else
41197 # include <assert.h>
41198 #endif
41199
41200 #undef $ac_func
41201
41202 /* Override any gcc2 internal prototype to avoid an error.  */
41203 #ifdef __cplusplus
41204 extern "C"
41205 {
41206 #endif
41207 /* We use char because int might match the return type of a gcc2
41208    builtin and then its argument prototype would still apply.  */
41209 char $ac_func ();
41210 /* The GNU C library defines this for functions which it implements
41211     to always fail with ENOSYS.  Some functions are actually named
41212     something starting with __ and the normal name is an alias.  */
41213 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41214 choke me
41215 #else
41216 char (*f) () = $ac_func;
41217 #endif
41218 #ifdef __cplusplus
41219 }
41220 #endif
41221
41222 int
41223 main ()
41224 {
41225 return f != $ac_func;
41226   ;
41227   return 0;
41228 }
41229 _ACEOF
41230 rm -f conftest.$ac_objext conftest$ac_exeext
41231 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41232   (eval $ac_link) 2>conftest.er1
41233   ac_status=$?
41234   grep -v '^ *+' conftest.er1 >conftest.err
41235   rm -f conftest.er1
41236   cat conftest.err >&5
41237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41238   (exit $ac_status); } &&
41239          { ac_try='test -z "$ac_c_werror_flag"
41240                          || test ! -s conftest.err'
41241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41242   (eval $ac_try) 2>&5
41243   ac_status=$?
41244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41245   (exit $ac_status); }; } &&
41246          { ac_try='test -s conftest$ac_exeext'
41247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41248   (eval $ac_try) 2>&5
41249   ac_status=$?
41250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41251   (exit $ac_status); }; }; then
41252   eval "$as_ac_var=yes"
41253 else
41254   echo "$as_me: failed program was:" >&5
41255 sed 's/^/| /' conftest.$ac_ext >&5
41256
41257 eval "$as_ac_var=no"
41258 fi
41259 rm -f conftest.err conftest.$ac_objext \
41260       conftest$ac_exeext conftest.$ac_ext
41261 fi
41262 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41263 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41264 if test `eval echo '${'$as_ac_var'}'` = yes; then
41265   cat >>confdefs.h <<_ACEOF
41266 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41267 _ACEOF
41268
41269 fi
41270 done
41271
41272 fi
41273
41274
41275
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 for ac_func in \
41328         bcopy                   \
41329         closesocket             \
41330         chroot                  \
41331         endgrent                \
41332         endpwent                \
41333         fcntl                   \
41334         flock                   \
41335         fstat                   \
41336         getdtablesize   \
41337         getgrgid                \
41338         gethostname             \
41339         getpass                 \
41340         getpassphrase   \
41341         getpwuid                \
41342         getpwnam                \
41343         getspnam                \
41344         gettimeofday    \
41345         initgroups              \
41346         lockf                   \
41347         memcpy                  \
41348         memmove                 \
41349         mkstemp                 \
41350         mktemp                  \
41351         pipe                    \
41352         read                    \
41353         recv                    \
41354         recvfrom                \
41355         setpwfile               \
41356         setgid                  \
41357         setegid                 \
41358         setsid                  \
41359         setuid                  \
41360         seteuid                 \
41361         signal                  \
41362         strdup                  \
41363         strpbrk                 \
41364         strrchr                 \
41365         strsep                  \
41366         strstr                  \
41367         strtol                  \
41368         strtoul                 \
41369         strtoq                  \
41370         strtouq                 \
41371         strtoll                 \
41372         strspn                  \
41373         sysconf                 \
41374         usleep                  \
41375         waitpid                 \
41376         wait4                   \
41377         write                   \
41378         send                    \
41379         sendmsg                 \
41380         sendto                  \
41381
41382 do
41383 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41384 echo "$as_me:$LINENO: checking for $ac_func" >&5
41385 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41386 if eval "test \"\${$as_ac_var+set}\" = set"; then
41387   echo $ECHO_N "(cached) $ECHO_C" >&6
41388 else
41389   cat >conftest.$ac_ext <<_ACEOF
41390 /* confdefs.h.  */
41391 _ACEOF
41392 cat confdefs.h >>conftest.$ac_ext
41393 cat >>conftest.$ac_ext <<_ACEOF
41394 /* end confdefs.h.  */
41395 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41396    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41397 #define $ac_func innocuous_$ac_func
41398
41399 /* System header to define __stub macros and hopefully few prototypes,
41400     which can conflict with char $ac_func (); below.
41401     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41402     <limits.h> exists even on freestanding compilers.  */
41403
41404 #ifdef __STDC__
41405 # include <limits.h>
41406 #else
41407 # include <assert.h>
41408 #endif
41409
41410 #undef $ac_func
41411
41412 /* Override any gcc2 internal prototype to avoid an error.  */
41413 #ifdef __cplusplus
41414 extern "C"
41415 {
41416 #endif
41417 /* We use char because int might match the return type of a gcc2
41418    builtin and then its argument prototype would still apply.  */
41419 char $ac_func ();
41420 /* The GNU C library defines this for functions which it implements
41421     to always fail with ENOSYS.  Some functions are actually named
41422     something starting with __ and the normal name is an alias.  */
41423 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41424 choke me
41425 #else
41426 char (*f) () = $ac_func;
41427 #endif
41428 #ifdef __cplusplus
41429 }
41430 #endif
41431
41432 int
41433 main ()
41434 {
41435 return f != $ac_func;
41436   ;
41437   return 0;
41438 }
41439 _ACEOF
41440 rm -f conftest.$ac_objext conftest$ac_exeext
41441 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41442   (eval $ac_link) 2>conftest.er1
41443   ac_status=$?
41444   grep -v '^ *+' conftest.er1 >conftest.err
41445   rm -f conftest.er1
41446   cat conftest.err >&5
41447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41448   (exit $ac_status); } &&
41449          { ac_try='test -z "$ac_c_werror_flag"
41450                          || test ! -s conftest.err'
41451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41452   (eval $ac_try) 2>&5
41453   ac_status=$?
41454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41455   (exit $ac_status); }; } &&
41456          { ac_try='test -s conftest$ac_exeext'
41457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41458   (eval $ac_try) 2>&5
41459   ac_status=$?
41460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41461   (exit $ac_status); }; }; then
41462   eval "$as_ac_var=yes"
41463 else
41464   echo "$as_me: failed program was:" >&5
41465 sed 's/^/| /' conftest.$ac_ext >&5
41466
41467 eval "$as_ac_var=no"
41468 fi
41469 rm -f conftest.err conftest.$ac_objext \
41470       conftest$ac_exeext conftest.$ac_ext
41471 fi
41472 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41473 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41474 if test `eval echo '${'$as_ac_var'}'` = yes; then
41475   cat >>confdefs.h <<_ACEOF
41476 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41477 _ACEOF
41478
41479 fi
41480 done
41481
41482
41483
41484
41485 for ac_func in getopt getpeereid
41486 do
41487 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41488 echo "$as_me:$LINENO: checking for $ac_func" >&5
41489 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41490 if eval "test \"\${$as_ac_var+set}\" = set"; then
41491   echo $ECHO_N "(cached) $ECHO_C" >&6
41492 else
41493   cat >conftest.$ac_ext <<_ACEOF
41494 /* confdefs.h.  */
41495 _ACEOF
41496 cat confdefs.h >>conftest.$ac_ext
41497 cat >>conftest.$ac_ext <<_ACEOF
41498 /* end confdefs.h.  */
41499 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41500    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41501 #define $ac_func innocuous_$ac_func
41502
41503 /* System header to define __stub macros and hopefully few prototypes,
41504     which can conflict with char $ac_func (); below.
41505     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41506     <limits.h> exists even on freestanding compilers.  */
41507
41508 #ifdef __STDC__
41509 # include <limits.h>
41510 #else
41511 # include <assert.h>
41512 #endif
41513
41514 #undef $ac_func
41515
41516 /* Override any gcc2 internal prototype to avoid an error.  */
41517 #ifdef __cplusplus
41518 extern "C"
41519 {
41520 #endif
41521 /* We use char because int might match the return type of a gcc2
41522    builtin and then its argument prototype would still apply.  */
41523 char $ac_func ();
41524 /* The GNU C library defines this for functions which it implements
41525     to always fail with ENOSYS.  Some functions are actually named
41526     something starting with __ and the normal name is an alias.  */
41527 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41528 choke me
41529 #else
41530 char (*f) () = $ac_func;
41531 #endif
41532 #ifdef __cplusplus
41533 }
41534 #endif
41535
41536 int
41537 main ()
41538 {
41539 return f != $ac_func;
41540   ;
41541   return 0;
41542 }
41543 _ACEOF
41544 rm -f conftest.$ac_objext conftest$ac_exeext
41545 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41546   (eval $ac_link) 2>conftest.er1
41547   ac_status=$?
41548   grep -v '^ *+' conftest.er1 >conftest.err
41549   rm -f conftest.er1
41550   cat conftest.err >&5
41551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41552   (exit $ac_status); } &&
41553          { ac_try='test -z "$ac_c_werror_flag"
41554                          || test ! -s conftest.err'
41555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41556   (eval $ac_try) 2>&5
41557   ac_status=$?
41558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41559   (exit $ac_status); }; } &&
41560          { ac_try='test -s conftest$ac_exeext'
41561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41562   (eval $ac_try) 2>&5
41563   ac_status=$?
41564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41565   (exit $ac_status); }; }; then
41566   eval "$as_ac_var=yes"
41567 else
41568   echo "$as_me: failed program was:" >&5
41569 sed 's/^/| /' conftest.$ac_ext >&5
41570
41571 eval "$as_ac_var=no"
41572 fi
41573 rm -f conftest.err conftest.$ac_objext \
41574       conftest$ac_exeext conftest.$ac_ext
41575 fi
41576 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41577 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41578 if test `eval echo '${'$as_ac_var'}'` = yes; then
41579   cat >>confdefs.h <<_ACEOF
41580 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41581 _ACEOF
41582
41583 else
41584   case $LIBOBJS in
41585     "$ac_func.$ac_objext"   | \
41586   *" $ac_func.$ac_objext"   | \
41587     "$ac_func.$ac_objext "* | \
41588   *" $ac_func.$ac_objext "* ) ;;
41589   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
41590 esac
41591
41592 fi
41593 done
41594
41595
41596
41597 if test "$ac_cv_func_getopt" != yes; then
41598         LIBSRCS="$LIBSRCS getopt.c"
41599 fi
41600 if test "$ac_cv_func_getpeereid" != yes; then
41601         echo "$as_me:$LINENO: checking for struct msghdr.msg_accrightslen" >&5
41602 echo $ECHO_N "checking for struct msghdr.msg_accrightslen... $ECHO_C" >&6
41603 if test "${ac_cv_member_struct_msghdr_msg_accrightslen+set}" = set; then
41604   echo $ECHO_N "(cached) $ECHO_C" >&6
41605 else
41606   cat >conftest.$ac_ext <<_ACEOF
41607 /* confdefs.h.  */
41608 _ACEOF
41609 cat confdefs.h >>conftest.$ac_ext
41610 cat >>conftest.$ac_ext <<_ACEOF
41611 /* end confdefs.h.  */
41612 $ac_includes_default
41613 #ifdef HAVE_SYS_SOCKET_H
41614 #include <sys/socket.h>
41615 #endif
41616
41617 int
41618 main ()
41619 {
41620 static struct msghdr ac_aggr;
41621 if (ac_aggr.msg_accrightslen)
41622 return 0;
41623   ;
41624   return 0;
41625 }
41626 _ACEOF
41627 rm -f conftest.$ac_objext
41628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41629   (eval $ac_compile) 2>conftest.er1
41630   ac_status=$?
41631   grep -v '^ *+' conftest.er1 >conftest.err
41632   rm -f conftest.er1
41633   cat conftest.err >&5
41634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41635   (exit $ac_status); } &&
41636          { ac_try='test -z "$ac_c_werror_flag"
41637                          || test ! -s conftest.err'
41638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41639   (eval $ac_try) 2>&5
41640   ac_status=$?
41641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41642   (exit $ac_status); }; } &&
41643          { ac_try='test -s conftest.$ac_objext'
41644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41645   (eval $ac_try) 2>&5
41646   ac_status=$?
41647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41648   (exit $ac_status); }; }; then
41649   ac_cv_member_struct_msghdr_msg_accrightslen=yes
41650 else
41651   echo "$as_me: failed program was:" >&5
41652 sed 's/^/| /' conftest.$ac_ext >&5
41653
41654 cat >conftest.$ac_ext <<_ACEOF
41655 /* confdefs.h.  */
41656 _ACEOF
41657 cat confdefs.h >>conftest.$ac_ext
41658 cat >>conftest.$ac_ext <<_ACEOF
41659 /* end confdefs.h.  */
41660 $ac_includes_default
41661 #ifdef HAVE_SYS_SOCKET_H
41662 #include <sys/socket.h>
41663 #endif
41664
41665 int
41666 main ()
41667 {
41668 static struct msghdr ac_aggr;
41669 if (sizeof ac_aggr.msg_accrightslen)
41670 return 0;
41671   ;
41672   return 0;
41673 }
41674 _ACEOF
41675 rm -f conftest.$ac_objext
41676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41677   (eval $ac_compile) 2>conftest.er1
41678   ac_status=$?
41679   grep -v '^ *+' conftest.er1 >conftest.err
41680   rm -f conftest.er1
41681   cat conftest.err >&5
41682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41683   (exit $ac_status); } &&
41684          { ac_try='test -z "$ac_c_werror_flag"
41685                          || test ! -s conftest.err'
41686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41687   (eval $ac_try) 2>&5
41688   ac_status=$?
41689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41690   (exit $ac_status); }; } &&
41691          { ac_try='test -s conftest.$ac_objext'
41692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41693   (eval $ac_try) 2>&5
41694   ac_status=$?
41695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41696   (exit $ac_status); }; }; then
41697   ac_cv_member_struct_msghdr_msg_accrightslen=yes
41698 else
41699   echo "$as_me: failed program was:" >&5
41700 sed 's/^/| /' conftest.$ac_ext >&5
41701
41702 ac_cv_member_struct_msghdr_msg_accrightslen=no
41703 fi
41704 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41705 fi
41706 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41707 fi
41708 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrightslen" >&5
41709 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrightslen" >&6
41710 if test $ac_cv_member_struct_msghdr_msg_accrightslen = yes; then
41711
41712 cat >>confdefs.h <<_ACEOF
41713 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTSLEN 1
41714 _ACEOF
41715
41716
41717 fi
41718
41719         if test "$ac_cv_member_struct_msghdr_msg_accrightslen" != yes; then
41720                 echo "$as_me:$LINENO: checking for struct msghdr.msg_control" >&5
41721 echo $ECHO_N "checking for struct msghdr.msg_control... $ECHO_C" >&6
41722 if test "${ac_cv_member_struct_msghdr_msg_control+set}" = set; then
41723   echo $ECHO_N "(cached) $ECHO_C" >&6
41724 else
41725   cat >conftest.$ac_ext <<_ACEOF
41726 /* confdefs.h.  */
41727 _ACEOF
41728 cat confdefs.h >>conftest.$ac_ext
41729 cat >>conftest.$ac_ext <<_ACEOF
41730 /* end confdefs.h.  */
41731 $ac_includes_default
41732 #ifdef HAVE_SYS_SOCKET_H
41733 #include <sys/socket.h>
41734 #endif
41735
41736 int
41737 main ()
41738 {
41739 static struct msghdr ac_aggr;
41740 if (ac_aggr.msg_control)
41741 return 0;
41742   ;
41743   return 0;
41744 }
41745 _ACEOF
41746 rm -f conftest.$ac_objext
41747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41748   (eval $ac_compile) 2>conftest.er1
41749   ac_status=$?
41750   grep -v '^ *+' conftest.er1 >conftest.err
41751   rm -f conftest.er1
41752   cat conftest.err >&5
41753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41754   (exit $ac_status); } &&
41755          { ac_try='test -z "$ac_c_werror_flag"
41756                          || test ! -s conftest.err'
41757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41758   (eval $ac_try) 2>&5
41759   ac_status=$?
41760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41761   (exit $ac_status); }; } &&
41762          { ac_try='test -s conftest.$ac_objext'
41763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41764   (eval $ac_try) 2>&5
41765   ac_status=$?
41766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41767   (exit $ac_status); }; }; then
41768   ac_cv_member_struct_msghdr_msg_control=yes
41769 else
41770   echo "$as_me: failed program was:" >&5
41771 sed 's/^/| /' conftest.$ac_ext >&5
41772
41773 cat >conftest.$ac_ext <<_ACEOF
41774 /* confdefs.h.  */
41775 _ACEOF
41776 cat confdefs.h >>conftest.$ac_ext
41777 cat >>conftest.$ac_ext <<_ACEOF
41778 /* end confdefs.h.  */
41779 $ac_includes_default
41780 #ifdef HAVE_SYS_SOCKET_H
41781 #include <sys/socket.h>
41782 #endif
41783
41784 int
41785 main ()
41786 {
41787 static struct msghdr ac_aggr;
41788 if (sizeof ac_aggr.msg_control)
41789 return 0;
41790   ;
41791   return 0;
41792 }
41793 _ACEOF
41794 rm -f conftest.$ac_objext
41795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41796   (eval $ac_compile) 2>conftest.er1
41797   ac_status=$?
41798   grep -v '^ *+' conftest.er1 >conftest.err
41799   rm -f conftest.er1
41800   cat conftest.err >&5
41801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41802   (exit $ac_status); } &&
41803          { ac_try='test -z "$ac_c_werror_flag"
41804                          || test ! -s conftest.err'
41805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41806   (eval $ac_try) 2>&5
41807   ac_status=$?
41808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41809   (exit $ac_status); }; } &&
41810          { ac_try='test -s conftest.$ac_objext'
41811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41812   (eval $ac_try) 2>&5
41813   ac_status=$?
41814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41815   (exit $ac_status); }; }; then
41816   ac_cv_member_struct_msghdr_msg_control=yes
41817 else
41818   echo "$as_me: failed program was:" >&5
41819 sed 's/^/| /' conftest.$ac_ext >&5
41820
41821 ac_cv_member_struct_msghdr_msg_control=no
41822 fi
41823 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41824 fi
41825 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41826 fi
41827 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_control" >&5
41828 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_control" >&6
41829 if test $ac_cv_member_struct_msghdr_msg_control = yes; then
41830
41831 cat >>confdefs.h <<_ACEOF
41832 #define HAVE_STRUCT_MSGHDR_MSG_CONTROL 1
41833 _ACEOF
41834
41835
41836 fi
41837
41838         fi
41839         LIBSRCS="$LIBSRCS getpeereid.c"
41840 fi
41841 if test "$ac_cv_func_snprintf" != yes -o "$ac_cv_func_vsnprintf" != yes; then
41842         if test "$ac_cv_func_snprintf" != yes; then
41843
41844 cat >>confdefs.h <<\_ACEOF
41845 #define snprintf ber_pvt_snprintf
41846 _ACEOF
41847
41848         fi
41849         if test "$ac_cv_func_vsnprintf" != yes; then
41850
41851 cat >>confdefs.h <<\_ACEOF
41852 #define vsnprintf ber_pvt_vsnprintf
41853 _ACEOF
41854
41855         fi
41856 fi
41857
41858
41859 if test "$ol_enable_slapi" != no ; then
41860
41861 for ac_header in ltdl.h
41862 do
41863 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
41864 if eval "test \"\${$as_ac_Header+set}\" = set"; then
41865   echo "$as_me:$LINENO: checking for $ac_header" >&5
41866 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
41867 if eval "test \"\${$as_ac_Header+set}\" = set"; then
41868   echo $ECHO_N "(cached) $ECHO_C" >&6
41869 fi
41870 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
41871 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
41872 else
41873   # Is the header compilable?
41874 echo "$as_me:$LINENO: checking $ac_header usability" >&5
41875 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
41876 cat >conftest.$ac_ext <<_ACEOF
41877 /* confdefs.h.  */
41878 _ACEOF
41879 cat confdefs.h >>conftest.$ac_ext
41880 cat >>conftest.$ac_ext <<_ACEOF
41881 /* end confdefs.h.  */
41882 $ac_includes_default
41883 #include <$ac_header>
41884 _ACEOF
41885 rm -f conftest.$ac_objext
41886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41887   (eval $ac_compile) 2>conftest.er1
41888   ac_status=$?
41889   grep -v '^ *+' conftest.er1 >conftest.err
41890   rm -f conftest.er1
41891   cat conftest.err >&5
41892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41893   (exit $ac_status); } &&
41894          { ac_try='test -z "$ac_c_werror_flag"
41895                          || test ! -s conftest.err'
41896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41897   (eval $ac_try) 2>&5
41898   ac_status=$?
41899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41900   (exit $ac_status); }; } &&
41901          { ac_try='test -s conftest.$ac_objext'
41902   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41903   (eval $ac_try) 2>&5
41904   ac_status=$?
41905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41906   (exit $ac_status); }; }; then
41907   ac_header_compiler=yes
41908 else
41909   echo "$as_me: failed program was:" >&5
41910 sed 's/^/| /' conftest.$ac_ext >&5
41911
41912 ac_header_compiler=no
41913 fi
41914 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41915 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41916 echo "${ECHO_T}$ac_header_compiler" >&6
41917
41918 # Is the header present?
41919 echo "$as_me:$LINENO: checking $ac_header presence" >&5
41920 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
41921 cat >conftest.$ac_ext <<_ACEOF
41922 /* confdefs.h.  */
41923 _ACEOF
41924 cat confdefs.h >>conftest.$ac_ext
41925 cat >>conftest.$ac_ext <<_ACEOF
41926 /* end confdefs.h.  */
41927 #include <$ac_header>
41928 _ACEOF
41929 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
41930   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
41931   ac_status=$?
41932   grep -v '^ *+' conftest.er1 >conftest.err
41933   rm -f conftest.er1
41934   cat conftest.err >&5
41935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41936   (exit $ac_status); } >/dev/null; then
41937   if test -s conftest.err; then
41938     ac_cpp_err=$ac_c_preproc_warn_flag
41939     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
41940   else
41941     ac_cpp_err=
41942   fi
41943 else
41944   ac_cpp_err=yes
41945 fi
41946 if test -z "$ac_cpp_err"; then
41947   ac_header_preproc=yes
41948 else
41949   echo "$as_me: failed program was:" >&5
41950 sed 's/^/| /' conftest.$ac_ext >&5
41951
41952   ac_header_preproc=no
41953 fi
41954 rm -f conftest.err conftest.$ac_ext
41955 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41956 echo "${ECHO_T}$ac_header_preproc" >&6
41957
41958 # So?  What about this header?
41959 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41960   yes:no: )
41961     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
41962 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
41963     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
41964 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
41965     ac_header_preproc=yes
41966     ;;
41967   no:yes:* )
41968     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
41969 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
41970     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
41971 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
41972     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
41973 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
41974     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
41975 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
41976     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
41977 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
41978     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
41979 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
41980     (
41981       cat <<\_ASBOX
41982 ## ------------------------------------------ ##
41983 ## Report this to the AC_PACKAGE_NAME lists.  ##
41984 ## ------------------------------------------ ##
41985 _ASBOX
41986     ) |
41987       sed "s/^/$as_me: WARNING:     /" >&2
41988     ;;
41989 esac
41990 echo "$as_me:$LINENO: checking for $ac_header" >&5
41991 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
41992 if eval "test \"\${$as_ac_Header+set}\" = set"; then
41993   echo $ECHO_N "(cached) $ECHO_C" >&6
41994 else
41995   eval "$as_ac_Header=\$ac_header_preproc"
41996 fi
41997 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
41998 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
41999
42000 fi
42001 if test `eval echo '${'$as_ac_Header'}'` = yes; then
42002   cat >>confdefs.h <<_ACEOF
42003 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
42004 _ACEOF
42005
42006 fi
42007
42008 done
42009
42010
42011         if test $ac_cv_header_ltdl_h != yes ; then
42012                 { { echo "$as_me:$LINENO: error: could not locate <ltdl.h>" >&5
42013 echo "$as_me: error: could not locate <ltdl.h>" >&2;}
42014    { (exit 1); exit 1; }; }
42015         fi
42016         echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
42017 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
42018 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
42019   echo $ECHO_N "(cached) $ECHO_C" >&6
42020 else
42021   ac_check_lib_save_LIBS=$LIBS
42022 LIBS="-lltdl  $LIBS"
42023 cat >conftest.$ac_ext <<_ACEOF
42024 /* confdefs.h.  */
42025 _ACEOF
42026 cat confdefs.h >>conftest.$ac_ext
42027 cat >>conftest.$ac_ext <<_ACEOF
42028 /* end confdefs.h.  */
42029
42030 /* Override any gcc2 internal prototype to avoid an error.  */
42031 #ifdef __cplusplus
42032 extern "C"
42033 #endif
42034 /* We use char because int might match the return type of a gcc2
42035    builtin and then its argument prototype would still apply.  */
42036 char lt_dlinit ();
42037 int
42038 main ()
42039 {
42040 lt_dlinit ();
42041   ;
42042   return 0;
42043 }
42044 _ACEOF
42045 rm -f conftest.$ac_objext conftest$ac_exeext
42046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42047   (eval $ac_link) 2>conftest.er1
42048   ac_status=$?
42049   grep -v '^ *+' conftest.er1 >conftest.err
42050   rm -f conftest.er1
42051   cat conftest.err >&5
42052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42053   (exit $ac_status); } &&
42054          { ac_try='test -z "$ac_c_werror_flag"
42055                          || test ! -s conftest.err'
42056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42057   (eval $ac_try) 2>&5
42058   ac_status=$?
42059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42060   (exit $ac_status); }; } &&
42061          { ac_try='test -s conftest$ac_exeext'
42062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42063   (eval $ac_try) 2>&5
42064   ac_status=$?
42065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42066   (exit $ac_status); }; }; then
42067   ac_cv_lib_ltdl_lt_dlinit=yes
42068 else
42069   echo "$as_me: failed program was:" >&5
42070 sed 's/^/| /' conftest.$ac_ext >&5
42071
42072 ac_cv_lib_ltdl_lt_dlinit=no
42073 fi
42074 rm -f conftest.err conftest.$ac_objext \
42075       conftest$ac_exeext conftest.$ac_ext
42076 LIBS=$ac_check_lib_save_LIBS
42077 fi
42078 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
42079 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
42080 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
42081
42082                 SLAPI_LIBS=-lltdl
42083                 LIBSLAPI=libslapi.a
42084                 LIBSLAPITOOLS=../libslapi.a
42085
42086 cat >>confdefs.h <<\_ACEOF
42087 #define HAVE_LIBLTDL 1
42088 _ACEOF
42089
42090
42091 else
42092   { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
42093 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
42094    { (exit 1); exit 1; }; }
42095 fi
42096
42097
42098
42099 cat >>confdefs.h <<\_ACEOF
42100 #define LDAP_SLAPI 1
42101 _ACEOF
42102
42103 fi
42104
42105 if test "$ol_enable_debug" != no ; then
42106
42107 cat >>confdefs.h <<\_ACEOF
42108 #define LDAP_DEBUG 1
42109 _ACEOF
42110
42111 fi
42112 if test "$ol_enable_syslog" = yes ; then
42113
42114 cat >>confdefs.h <<\_ACEOF
42115 #define LDAP_SYSLOG 1
42116 _ACEOF
42117
42118 fi
42119 if test "$ol_link_kbind" != no ; then
42120
42121 cat >>confdefs.h <<\_ACEOF
42122 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
42123 _ACEOF
42124
42125 fi
42126 if test "$ol_enable_proctitle" != no ; then
42127
42128 cat >>confdefs.h <<\_ACEOF
42129 #define LDAP_PROCTITLE 1
42130 _ACEOF
42131
42132 fi
42133 if test "$ol_enable_referrals" != no ; then
42134
42135 cat >>confdefs.h <<\_ACEOF
42136 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
42137 _ACEOF
42138
42139 fi
42140 if test "$ol_enable_local" != no; then
42141
42142 cat >>confdefs.h <<\_ACEOF
42143 #define LDAP_PF_LOCAL 1
42144 _ACEOF
42145
42146 fi
42147 if test "$ol_link_ipv6" != no; then
42148
42149 cat >>confdefs.h <<\_ACEOF
42150 #define LDAP_PF_INET6 1
42151 _ACEOF
42152
42153 fi
42154 if test "$ol_enable_cleartext" != no ; then
42155
42156 cat >>confdefs.h <<\_ACEOF
42157 #define SLAPD_CLEARTEXT 1
42158 _ACEOF
42159
42160 fi
42161 if test "$ol_enable_crypt" != no ; then
42162
42163 cat >>confdefs.h <<\_ACEOF
42164 #define SLAPD_CRYPT 1
42165 _ACEOF
42166
42167 fi
42168 if test "$ol_link_spasswd" != no ; then
42169
42170 cat >>confdefs.h <<\_ACEOF
42171 #define SLAPD_SPASSWD 1
42172 _ACEOF
42173
42174 fi
42175 if test "$ol_enable_multimaster" != no ; then
42176
42177 cat >>confdefs.h <<\_ACEOF
42178 #define SLAPD_MULTIMASTER 1
42179 _ACEOF
42180
42181 fi
42182 if test "$ol_enable_rlookups" != no ; then
42183
42184 cat >>confdefs.h <<\_ACEOF
42185 #define SLAPD_RLOOKUPS 1
42186 _ACEOF
42187
42188 fi
42189 if test "$ol_enable_aci" != no ; then
42190
42191 cat >>confdefs.h <<\_ACEOF
42192 #define SLAPD_ACI_ENABLED 1
42193 _ACEOF
42194
42195         WITH_ACI_ENABLED=yes
42196 else
42197         WITH_ACI_ENABLED=no
42198 fi
42199
42200 if test "$ol_link_modules" != no ; then
42201
42202 cat >>confdefs.h <<\_ACEOF
42203 #define SLAPD_MODULES 1
42204 _ACEOF
42205
42206         BUILD_SLAPD=yes
42207         SLAPD_MODULES_LDFLAGS="-dlopen self"
42208 fi
42209
42210
42211 cat >>confdefs.h <<\_ACEOF
42212 #define SLAPD_MOD_STATIC 1
42213 _ACEOF
42214
42215
42216 cat >>confdefs.h <<\_ACEOF
42217 #define SLAPD_MOD_DYNAMIC 2
42218 _ACEOF
42219
42220
42221 if test "$ol_enable_bdb" != no ; then
42222         BUILD_SLAPD=yes
42223         BUILD_BDB=$ol_enable_bdb
42224         if test "$ol_enable_bdb" = mod ; then
42225                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
42226                 MFLAG=SLAPD_MOD_DYNAMIC
42227         else
42228                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
42229                 MFLAG=SLAPD_MOD_STATIC
42230         fi
42231
42232 cat >>confdefs.h <<_ACEOF
42233 #define SLAPD_BDB $MFLAG
42234 _ACEOF
42235
42236 fi
42237
42238 if test "$ol_enable_dnssrv" != no ; then
42239         BUILD_SLAPD=yes
42240         BUILD_DNSSRV=$ol_enable_dnssrv
42241         if test "$ol_enable_dnssrv" = mod ; then
42242                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
42243                 MFLAG=SLAPD_MOD_DYNAMIC
42244         else
42245                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
42246                 MFLAG=SLAPD_MOD_STATIC
42247         fi
42248
42249 cat >>confdefs.h <<_ACEOF
42250 #define SLAPD_DNSSRV $MFLAG
42251 _ACEOF
42252
42253 fi
42254
42255 if test "$ol_enable_hdb" != no ; then
42256         BUILD_SLAPD=yes
42257         BUILD_HDB=$ol_enable_hdb
42258         if test "$ol_enable_hdb" = mod ; then
42259                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-hdb"
42260                 MFLAG=SLAPD_MOD_DYNAMIC
42261         else
42262                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-hdb"
42263                 MFLAG=SLAPD_MOD_STATIC
42264         fi
42265
42266 cat >>confdefs.h <<_ACEOF
42267 #define SLAPD_HDB $MFLAG
42268 _ACEOF
42269
42270 fi
42271
42272 if test "$ol_enable_ldap" != no ; then
42273         BUILD_SLAPD=yes
42274         BUILD_LDAP=$ol_enable_ldap
42275         if test "$ol_enable_ldap" = mod ; then
42276                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
42277                 MFLAG=SLAPD_MOD_DYNAMIC
42278         else
42279                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
42280                 MFLAG=SLAPD_MOD_STATIC
42281         fi
42282
42283 cat >>confdefs.h <<_ACEOF
42284 #define SLAPD_LDAP $MFLAG
42285 _ACEOF
42286
42287 fi
42288
42289 if test "$ol_link_ldbm" != no -a $ol_enable_ldbm != no; then
42290         BUILD_SLAPD=yes
42291         BUILD_LDBM=$ol_enable_ldbm
42292         if test "$ol_enable_ldbm" = mod ; then
42293                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldbm"
42294                 MFLAG=SLAPD_MOD_DYNAMIC
42295         else
42296                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldbm"
42297                 MFLAG=SLAPD_MOD_STATIC
42298         fi
42299
42300 cat >>confdefs.h <<_ACEOF
42301 #define SLAPD_LDBM $MFLAG
42302 _ACEOF
42303
42304 fi
42305
42306 if test "$ol_enable_meta" != no ; then
42307         BUILD_SLAPD=yes
42308         BUILD_META=$ol_enable_meta
42309         BUILD_REWRITE=yes
42310         if test "$ol_enable_meta" = mod ; then
42311                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
42312                 MFLAG=SLAPD_MOD_DYNAMIC
42313         else
42314                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
42315                 MFLAG=SLAPD_MOD_STATIC
42316         fi
42317
42318 cat >>confdefs.h <<_ACEOF
42319 #define SLAPD_META $MFLAG
42320 _ACEOF
42321
42322 fi
42323
42324 if test "$ol_enable_monitor" != no ; then
42325         BUILD_SLAPD=yes
42326         BUILD_MONITOR=$ol_enable_monitor
42327         if test "$ol_enable_monitor" = mod ; then
42328                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
42329                 MFLAG=SLAPD_MOD_DYNAMIC
42330         else
42331                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
42332                 MFLAG=SLAPD_MOD_STATIC
42333         fi
42334
42335 cat >>confdefs.h <<_ACEOF
42336 #define SLAPD_MONITOR $MFLAG
42337 _ACEOF
42338
42339 fi
42340
42341 if test "$ol_enable_null" != no ; then
42342         BUILD_SLAPD=yes
42343         BUILD_NULL=$ol_enable_null
42344         if test "$ol_enable_null" = mod ; then
42345                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
42346                 MFLAG=SLAPD_MOD_DYNAMIC
42347         else
42348                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
42349                 MFLAG=SLAPD_MOD_STATIC
42350         fi
42351
42352 cat >>confdefs.h <<_ACEOF
42353 #define SLAPD_NULL $MFLAG
42354 _ACEOF
42355
42356 fi
42357
42358 if test "$ol_enable_passwd" != no ; then
42359         BUILD_SLAPD=yes
42360         BUILD_PASSWD=$ol_enable_passwd
42361         if test "$ol_enable_passwd" = mod ; then
42362                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
42363                 MFLAG=SLAPD_MOD_DYNAMIC
42364         else
42365                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
42366                 MFLAG=SLAPD_MOD_STATIC
42367         fi
42368
42369 cat >>confdefs.h <<_ACEOF
42370 #define SLAPD_PASSWD $MFLAG
42371 _ACEOF
42372
42373 fi
42374
42375 if test "$ol_link_perl" != no ; then
42376         BUILD_SLAPD=yes
42377         BUILD_PERL=$ol_enable_perl
42378         if test "$ol_enable_perl" = mod ; then
42379                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
42380                 MFLAG=SLAPD_MOD_DYNAMIC
42381         else
42382                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
42383                 MFLAG=SLAPD_MOD_STATIC
42384         fi
42385
42386 cat >>confdefs.h <<_ACEOF
42387 #define SLAPD_PERL $MFLAG
42388 _ACEOF
42389
42390 fi
42391
42392 if test "$ol_enable_relay" != no ; then
42393         BUILD_SLAPD=yes
42394         BUILD_RELAY=$ol_enable_relay
42395         if test "$ol_enable_relay" = mod ; then
42396                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-relay"
42397                 MFLAG=SLAPD_MOD_DYNAMIC
42398         else
42399                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-relay"
42400                 MFLAG=SLAPD_MOD_STATIC
42401         fi
42402
42403 cat >>confdefs.h <<_ACEOF
42404 #define SLAPD_RELAY $MFLAG
42405 _ACEOF
42406
42407 fi
42408
42409 if test "$ol_enable_shell" != no ; then
42410         if test "$ol_link_threads" != no ; then
42411                 { echo "$as_me:$LINENO: WARNING: Use of --without-threads is recommended with back-shell" >&5
42412 echo "$as_me: WARNING: Use of --without-threads is recommended with back-shell" >&2;}
42413         fi
42414         BUILD_SLAPD=yes
42415         BUILD_SHELL=$ol_enable_shell
42416         if test "$ol_enable_shell" = mod ; then
42417                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
42418                 MFLAG=SLAPD_MOD_DYNAMIC
42419         else
42420                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
42421                 MFLAG=SLAPD_MOD_STATIC
42422         fi
42423
42424 cat >>confdefs.h <<_ACEOF
42425 #define SLAPD_SHELL $MFLAG
42426 _ACEOF
42427
42428 fi
42429
42430 if test "$ol_link_sql" != no ; then
42431         BUILD_SLAPD=yes
42432         BUILD_SQL=$ol_enable_sql
42433         if test "$ol_enable_sql" = mod; then
42434                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
42435                 MFLAG=SLAPD_MOD_DYNAMIC
42436         else
42437                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
42438                 MFLAG=SLAPD_MOD_STATIC
42439         fi
42440
42441 cat >>confdefs.h <<_ACEOF
42442 #define SLAPD_SQL $MFLAG
42443 _ACEOF
42444
42445 fi
42446
42447 if test "$ol_enable_accesslog" != no ; then
42448         BUILD_ACCESSLOG=$ol_enable_accesslog
42449         if test "$ol_enable_accesslog" = mod ; then
42450                 MFLAG=SLAPD_MOD_DYNAMIC
42451                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS accesslog.la"
42452         else
42453                 MFLAG=SLAPD_MOD_STATIC
42454                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS accesslog.o"
42455         fi
42456
42457 cat >>confdefs.h <<_ACEOF
42458 #define SLAPD_OVER_ACCESSLOG $MFLAG
42459 _ACEOF
42460
42461 fi
42462
42463 if test "$ol_enable_denyop" != no ; then
42464         BUILD_DENYOP=$ol_enable_denyop
42465         if test "$ol_enable_denyop" = mod ; then
42466                 MFLAG=SLAPD_MOD_DYNAMIC
42467                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS denyop.la"
42468         else
42469                 MFLAG=SLAPD_MOD_STATIC
42470                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS denyop.o"
42471         fi
42472
42473 cat >>confdefs.h <<_ACEOF
42474 #define SLAPD_OVER_DENYOP $MFLAG
42475 _ACEOF
42476
42477 fi
42478
42479 if test "$ol_enable_dyngroup" != no ; then
42480         BUILD_DYNGROUP=$ol_enable_dyngroup
42481         if test "$ol_enable_dyngroup" = mod ; then
42482                 MFLAG=SLAPD_MOD_DYNAMIC
42483                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dyngroup.la"
42484         else
42485                 MFLAG=SLAPD_MOD_STATIC
42486                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dyngroup.o"
42487         fi
42488
42489 cat >>confdefs.h <<_ACEOF
42490 #define SLAPD_OVER_DYNGROUP $MFLAG
42491 _ACEOF
42492
42493 fi
42494
42495 if test "$ol_enable_dynlist" != no ; then
42496         BUILD_DYNLIST=$ol_enable_dynlist
42497         if test "$ol_enable_dynlist" = mod ; then
42498                 MFLAG=SLAPD_MOD_DYNAMIC
42499                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dynlist.la"
42500         else
42501                 MFLAG=SLAPD_MOD_STATIC
42502                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dynlist.o"
42503         fi
42504
42505 cat >>confdefs.h <<_ACEOF
42506 #define SLAPD_OVER_DYNLIST $MFLAG
42507 _ACEOF
42508
42509 fi
42510
42511 if test "$ol_enable_lastmod" != no ; then
42512         BUILD_LASTMOD=$ol_enable_lastmod
42513         if test "$ol_enable_lastmod" = mod ; then
42514                 MFLAG=SLAPD_MOD_DYNAMIC
42515                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS lastmod.la"
42516         else
42517                 MFLAG=SLAPD_MOD_STATIC
42518                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS lastmod.o"
42519         fi
42520
42521 cat >>confdefs.h <<_ACEOF
42522 #define SLAPD_OVER_LASTMOD $MFLAG
42523 _ACEOF
42524
42525 fi
42526
42527 if test "$ol_enable_ppolicy" != no ; then
42528         BUILD_PPOLICY=$ol_enable_ppolicy
42529         if test "$ol_enable_ppolicy" = mod ; then
42530                 MFLAG=SLAPD_MOD_DYNAMIC
42531                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS ppolicy.la"
42532         else
42533                 MFLAG=SLAPD_MOD_STATIC
42534                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS ppolicy.o"
42535         fi
42536
42537 cat >>confdefs.h <<_ACEOF
42538 #define SLAPD_OVER_PPOLICY $MFLAG
42539 _ACEOF
42540
42541 fi
42542
42543 if test "$ol_enable_proxycache" != no ; then
42544         BUILD_PROXYCACHE=$ol_enable_proxycache
42545         if test "$ol_enable_proxycache" = mod ; then
42546                 MFLAG=SLAPD_MOD_DYNAMIC
42547                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS pcache.la"
42548         else
42549                 MFLAG=SLAPD_MOD_STATIC
42550                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS pcache.o"
42551         fi
42552
42553 cat >>confdefs.h <<_ACEOF
42554 #define SLAPD_OVER_PROXYCACHE $MFLAG
42555 _ACEOF
42556
42557 fi
42558
42559 if test "$ol_enable_refint" != no ; then
42560         BUILD_REFINT=$ol_enable_refint
42561         if test "$ol_enable_refint" = mod ; then
42562                 MFLAG=SLAPD_MOD_DYNAMIC
42563                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS refint.la"
42564         else
42565                 MFLAG=SLAPD_MOD_STATIC
42566                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS refint.o"
42567         fi
42568
42569 cat >>confdefs.h <<_ACEOF
42570 #define SLAPD_OVER_REFINT $MFLAG
42571 _ACEOF
42572
42573 fi
42574
42575 if test "$ol_enable_retcode" != no ; then
42576         BUILD_RETCODE=$ol_enable_retcode
42577         if test "$ol_enable_retcode" = mod ; then
42578                 MFLAG=SLAPD_MOD_DYNAMIC
42579                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS retcode.la"
42580         else
42581                 MFLAG=SLAPD_MOD_STATIC
42582                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS retcode.o"
42583         fi
42584
42585 cat >>confdefs.h <<_ACEOF
42586 #define SLAPD_OVER_RETCODE $MFLAG
42587 _ACEOF
42588
42589 fi
42590
42591 if test "$ol_enable_rwm" != no ; then
42592         BUILD_REWRITE=yes
42593         BUILD_RWM=$ol_enable_rwm
42594         if test "$ol_enable_rwm" = mod ; then
42595                 MFLAG=SLAPD_MOD_DYNAMIC
42596                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS rwm.la"
42597         else
42598                 MFLAG=SLAPD_MOD_STATIC
42599                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS rwm_x.o"
42600         fi
42601
42602 cat >>confdefs.h <<_ACEOF
42603 #define SLAPD_OVER_RWM $MFLAG
42604 _ACEOF
42605
42606 fi
42607
42608 if test "$ol_enable_syncprov" != no ; then
42609         BUILD_SYNCPROV=$ol_enable_syncprov
42610         if test "$ol_enable_syncprov" = mod ; then
42611                 MFLAG=SLAPD_MOD_DYNAMIC
42612                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS syncprov.la"
42613         else
42614                 MFLAG=SLAPD_MOD_STATIC
42615                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS syncprov.o"
42616         fi
42617
42618 cat >>confdefs.h <<_ACEOF
42619 #define SLAPD_OVER_SYNCPROV $MFLAG
42620 _ACEOF
42621
42622 fi
42623
42624 if test "$ol_enable_translucent" != no ; then
42625         BUILD_TRANSLUCENT=$ol_enable_translucent
42626         if test "$ol_enable_translucent" = mod ; then
42627                 MFLAG=SLAPD_MOD_DYNAMIC
42628                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS translucent.la"
42629         else
42630                 MFLAG=SLAPD_MOD_STATIC
42631                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS translucent.o"
42632         fi
42633
42634 cat >>confdefs.h <<_ACEOF
42635 #define SLAPD_OVER_TRANSLUCENT $MFLAG
42636 _ACEOF
42637
42638 fi
42639
42640 if test "$ol_enable_unique" != no ; then
42641         BUILD_UNIQUE=$ol_enable_unique
42642         if test "$ol_enable_unique" = mod ; then
42643                 MFLAG=SLAPD_MOD_DYNAMIC
42644                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS unique.la"
42645         else
42646                 MFLAG=SLAPD_MOD_STATIC
42647                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS unique.o"
42648         fi
42649
42650 cat >>confdefs.h <<_ACEOF
42651 #define SLAPD_OVER_UNIQUE $MFLAG
42652 _ACEOF
42653
42654 fi
42655
42656 if test "$ol_enable_valsort" != no ; then
42657         BUILD_VALSORT=$ol_enable_valsort
42658         if test "$ol_enable_valsort" = mod ; then
42659                 MFLAG=SLAPD_MOD_DYNAMIC
42660                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS valsort.la"
42661         else
42662                 MFLAG=SLAPD_MOD_STATIC
42663                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS valsort.o"
42664         fi
42665
42666 cat >>confdefs.h <<_ACEOF
42667 #define SLAPD_OVER_VALSORT $MFLAG
42668 _ACEOF
42669
42670 fi
42671
42672 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
42673         $BUILD_SLAPD = yes ; then
42674         BUILD_SLURPD=yes
42675 fi
42676
42677 if test "$ol_enable_rewrite" != no ; then
42678
42679 cat >>confdefs.h <<\_ACEOF
42680 #define ENABLE_REWRITE 1
42681 _ACEOF
42682
42683         BUILD_REWRITE=yes
42684 fi
42685
42686 if test "$ol_enable_slapi" != no ; then
42687
42688 cat >>confdefs.h <<\_ACEOF
42689 #define ENABLE_SLAPI 1
42690 _ACEOF
42691
42692         BUILD_SLAPI=yes
42693         SLAPD_SLAPI_DEPEND=libslapi.a
42694 fi
42695
42696
42697
42698 if test "$ac_cv_mingw32" = yes ; then
42699         PLAT=NT
42700         SLAPD_MODULES_LDFLAGS=
42701 else
42702         PLAT=UNIX
42703 fi
42704
42705
42706
42707
42708
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 # Check whether --with-xxinstall or --without-xxinstall was given.
42785 if test "${with_xxinstall+set}" = set; then
42786   withval="$with_xxinstall"
42787
42788 fi;
42789
42790
42791                                                                                                                                                                                                                                                                                                                                                                                                                 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"
42792
42793
42794           ac_config_commands="$ac_config_commands default"
42795
42796
42797
42798 test "x$prefix" = xNONE && prefix=$ac_default_prefix
42799 # Let make expand exec_prefix.
42800 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
42801
42802 # VPATH may cause trouble with some makes, so we remove $(srcdir),
42803 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
42804 # trailing colons and then remove the whole line if VPATH becomes empty
42805 # (actually we leave an empty line to preserve line numbers).
42806 if test "x$srcdir" = x.; then
42807   ac_vpsub='/^[  ]*VPATH[        ]*=/{
42808 s/:*\$(srcdir):*/:/;
42809 s/:*\${srcdir}:*/:/;
42810 s/:*@srcdir@:*/:/;
42811 s/^\([^=]*=[     ]*\):*/\1/;
42812 s/:*$//;
42813 s/^[^=]*=[       ]*$//;
42814 }'
42815 fi
42816
42817 DEFS=-DHAVE_CONFIG_H
42818
42819 ac_libobjs=
42820 ac_ltlibobjs=
42821 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
42822   # 1. Remove the extension, and $U if already installed.
42823   ac_i=`echo "$ac_i" |
42824          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
42825   # 2. Add them.
42826   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
42827   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
42828 done
42829 LIBOBJS=$ac_libobjs
42830
42831 LTLIBOBJS=$ac_ltlibobjs
42832
42833
42834 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
42835   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
42836 Usually this means the macro was only invoked conditionally." >&5
42837 echo "$as_me: error: conditional \"AMDEP\" was never defined.
42838 Usually this means the macro was only invoked conditionally." >&2;}
42839    { (exit 1); exit 1; }; }
42840 fi
42841 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
42842   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
42843 Usually this means the macro was only invoked conditionally." >&5
42844 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
42845 Usually this means the macro was only invoked conditionally." >&2;}
42846    { (exit 1); exit 1; }; }
42847 fi
42848 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
42849   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
42850 Usually this means the macro was only invoked conditionally." >&5
42851 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
42852 Usually this means the macro was only invoked conditionally." >&2;}
42853    { (exit 1); exit 1; }; }
42854 fi
42855
42856 : ${CONFIG_STATUS=./config.status}
42857 ac_clean_files_save=$ac_clean_files
42858 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
42859 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
42860 echo "$as_me: creating $CONFIG_STATUS" >&6;}
42861 cat >$CONFIG_STATUS <<_ACEOF
42862 #! $SHELL
42863 # Generated by $as_me.
42864 # Run this file to recreate the current configuration.
42865 # Compiler output produced by configure, useful for debugging
42866 # configure, is in config.log if it exists.
42867
42868 debug=false
42869 ac_cs_recheck=false
42870 ac_cs_silent=false
42871 SHELL=\${CONFIG_SHELL-$SHELL}
42872 _ACEOF
42873
42874 cat >>$CONFIG_STATUS <<\_ACEOF
42875 ## --------------------- ##
42876 ## M4sh Initialization.  ##
42877 ## --------------------- ##
42878
42879 # Be Bourne compatible
42880 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
42881   emulate sh
42882   NULLCMD=:
42883   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
42884   # is contrary to our usage.  Disable this feature.
42885   alias -g '${1+"$@"}'='"$@"'
42886 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
42887   set -o posix
42888 fi
42889 DUALCASE=1; export DUALCASE # for MKS sh
42890
42891 # Support unset when possible.
42892 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
42893   as_unset=unset
42894 else
42895   as_unset=false
42896 fi
42897
42898
42899 # Work around bugs in pre-3.0 UWIN ksh.
42900 $as_unset ENV MAIL MAILPATH
42901 PS1='$ '
42902 PS2='> '
42903 PS4='+ '
42904
42905 # NLS nuisances.
42906 for as_var in \
42907   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
42908   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42909   LC_TELEPHONE LC_TIME
42910 do
42911   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
42912     eval $as_var=C; export $as_var
42913   else
42914     $as_unset $as_var
42915   fi
42916 done
42917
42918 # Required to use basename.
42919 if expr a : '\(a\)' >/dev/null 2>&1; then
42920   as_expr=expr
42921 else
42922   as_expr=false
42923 fi
42924
42925 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
42926   as_basename=basename
42927 else
42928   as_basename=false
42929 fi
42930
42931
42932 # Name of the executable.
42933 as_me=`$as_basename "$0" ||
42934 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
42935          X"$0" : 'X\(//\)$' \| \
42936          X"$0" : 'X\(/\)$' \| \
42937          .     : '\(.\)' 2>/dev/null ||
42938 echo X/"$0" |
42939     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
42940           /^X\/\(\/\/\)$/{ s//\1/; q; }
42941           /^X\/\(\/\).*/{ s//\1/; q; }
42942           s/.*/./; q'`
42943
42944
42945 # PATH needs CR, and LINENO needs CR and PATH.
42946 # Avoid depending upon Character Ranges.
42947 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
42948 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
42949 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
42950 as_cr_digits='0123456789'
42951 as_cr_alnum=$as_cr_Letters$as_cr_digits
42952
42953 # The user is always right.
42954 if test "${PATH_SEPARATOR+set}" != set; then
42955   echo "#! /bin/sh" >conf$$.sh
42956   echo  "exit 0"   >>conf$$.sh
42957   chmod +x conf$$.sh
42958   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
42959     PATH_SEPARATOR=';'
42960   else
42961     PATH_SEPARATOR=:
42962   fi
42963   rm -f conf$$.sh
42964 fi
42965
42966
42967   as_lineno_1=$LINENO
42968   as_lineno_2=$LINENO
42969   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
42970   test "x$as_lineno_1" != "x$as_lineno_2" &&
42971   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
42972   # Find who we are.  Look in the path if we contain no path at all
42973   # relative or not.
42974   case $0 in
42975     *[\\/]* ) as_myself=$0 ;;
42976     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42977 for as_dir in $PATH
42978 do
42979   IFS=$as_save_IFS
42980   test -z "$as_dir" && as_dir=.
42981   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
42982 done
42983
42984        ;;
42985   esac
42986   # We did not find ourselves, most probably we were run as `sh COMMAND'
42987   # in which case we are not to be found in the path.
42988   if test "x$as_myself" = x; then
42989     as_myself=$0
42990   fi
42991   if test ! -f "$as_myself"; then
42992     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
42993 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
42994    { (exit 1); exit 1; }; }
42995   fi
42996   case $CONFIG_SHELL in
42997   '')
42998     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42999 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
43000 do
43001   IFS=$as_save_IFS
43002   test -z "$as_dir" && as_dir=.
43003   for as_base in sh bash ksh sh5; do
43004          case $as_dir in
43005          /*)
43006            if ("$as_dir/$as_base" -c '
43007   as_lineno_1=$LINENO
43008   as_lineno_2=$LINENO
43009   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
43010   test "x$as_lineno_1" != "x$as_lineno_2" &&
43011   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
43012              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
43013              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
43014              CONFIG_SHELL=$as_dir/$as_base
43015              export CONFIG_SHELL
43016              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
43017            fi;;
43018          esac
43019        done
43020 done
43021 ;;
43022   esac
43023
43024   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
43025   # uniformly replaced by the line number.  The first 'sed' inserts a
43026   # line-number line before each line; the second 'sed' does the real
43027   # work.  The second script uses 'N' to pair each line-number line
43028   # with the numbered line, and appends trailing '-' during
43029   # substitution so that $LINENO is not a special case at line end.
43030   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
43031   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
43032   sed '=' <$as_myself |
43033     sed '
43034       N
43035       s,$,-,
43036       : loop
43037       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
43038       t loop
43039       s,-$,,
43040       s,^['$as_cr_digits']*\n,,
43041     ' >$as_me.lineno &&
43042   chmod +x $as_me.lineno ||
43043     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
43044 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
43045    { (exit 1); exit 1; }; }
43046
43047   # Don't try to exec as it changes $[0], causing all sort of problems
43048   # (the dirname of $[0] is not the place where we might find the
43049   # original and so on.  Autoconf is especially sensible to this).
43050   . ./$as_me.lineno
43051   # Exit status is that of the last command.
43052   exit
43053 }
43054
43055
43056 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
43057   *c*,-n*) ECHO_N= ECHO_C='
43058 ' ECHO_T='      ' ;;
43059   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
43060   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
43061 esac
43062
43063 if expr a : '\(a\)' >/dev/null 2>&1; then
43064   as_expr=expr
43065 else
43066   as_expr=false
43067 fi
43068
43069 rm -f conf$$ conf$$.exe conf$$.file
43070 echo >conf$$.file
43071 if ln -s conf$$.file conf$$ 2>/dev/null; then
43072   # We could just check for DJGPP; but this test a) works b) is more generic
43073   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
43074   if test -f conf$$.exe; then
43075     # Don't use ln at all; we don't have any links
43076     as_ln_s='cp -p'
43077   else
43078     as_ln_s='ln -s'
43079   fi
43080 elif ln conf$$.file conf$$ 2>/dev/null; then
43081   as_ln_s=ln
43082 else
43083   as_ln_s='cp -p'
43084 fi
43085 rm -f conf$$ conf$$.exe conf$$.file
43086
43087 if mkdir -p . 2>/dev/null; then
43088   as_mkdir_p=:
43089 else
43090   test -d ./-p && rmdir ./-p
43091   as_mkdir_p=false
43092 fi
43093
43094 as_executable_p="test -f"
43095
43096 # Sed expression to map a string onto a valid CPP name.
43097 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
43098
43099 # Sed expression to map a string onto a valid variable name.
43100 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
43101
43102
43103 # IFS
43104 # We need space, tab and new line, in precisely that order.
43105 as_nl='
43106 '
43107 IFS="   $as_nl"
43108
43109 # CDPATH.
43110 $as_unset CDPATH
43111
43112 exec 6>&1
43113
43114 # Open the log real soon, to keep \$[0] and so on meaningful, and to
43115 # report actual input values of CONFIG_FILES etc. instead of their
43116 # values after options handling.  Logging --version etc. is OK.
43117 exec 5>>config.log
43118 {
43119   echo
43120   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
43121 ## Running $as_me. ##
43122 _ASBOX
43123 } >&5
43124 cat >&5 <<_CSEOF
43125
43126 This file was extended by $as_me, which was
43127 generated by GNU Autoconf 2.59.  Invocation command line was
43128
43129   CONFIG_FILES    = $CONFIG_FILES
43130   CONFIG_HEADERS  = $CONFIG_HEADERS
43131   CONFIG_LINKS    = $CONFIG_LINKS
43132   CONFIG_COMMANDS = $CONFIG_COMMANDS
43133   $ $0 $@
43134
43135 _CSEOF
43136 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
43137 echo >&5
43138 _ACEOF
43139
43140 # Files that config.status was made for.
43141 if test -n "$ac_config_files"; then
43142   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
43143 fi
43144
43145 if test -n "$ac_config_headers"; then
43146   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
43147 fi
43148
43149 if test -n "$ac_config_links"; then
43150   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
43151 fi
43152
43153 if test -n "$ac_config_commands"; then
43154   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
43155 fi
43156
43157 cat >>$CONFIG_STATUS <<\_ACEOF
43158
43159 ac_cs_usage="\
43160 \`$as_me' instantiates files from templates according to the
43161 current configuration.
43162
43163 Usage: $0 [OPTIONS] [FILE]...
43164
43165   -h, --help       print this help, then exit
43166   -V, --version    print version number, then exit
43167   -q, --quiet      do not print progress messages
43168   -d, --debug      don't remove temporary files
43169       --recheck    update $as_me by reconfiguring in the same conditions
43170   --file=FILE[:TEMPLATE]
43171                    instantiate the configuration file FILE
43172   --header=FILE[:TEMPLATE]
43173                    instantiate the configuration header FILE
43174
43175 Configuration files:
43176 $config_files
43177
43178 Configuration headers:
43179 $config_headers
43180
43181 Configuration commands:
43182 $config_commands
43183
43184 Report bugs to <bug-autoconf@gnu.org>."
43185 _ACEOF
43186
43187 cat >>$CONFIG_STATUS <<_ACEOF
43188 ac_cs_version="\\
43189 config.status
43190 configured by $0, generated by GNU Autoconf 2.59,
43191   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
43192
43193 Copyright (C) 2003 Free Software Foundation, Inc.
43194 This config.status script is free software; the Free Software Foundation
43195 gives unlimited permission to copy, distribute and modify it."
43196 srcdir=$srcdir
43197 INSTALL="$INSTALL"
43198 _ACEOF
43199
43200 cat >>$CONFIG_STATUS <<\_ACEOF
43201 # If no file are specified by the user, then we need to provide default
43202 # value.  By we need to know if files were specified by the user.
43203 ac_need_defaults=:
43204 while test $# != 0
43205 do
43206   case $1 in
43207   --*=*)
43208     ac_option=`expr "x$1" : 'x\([^=]*\)='`
43209     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
43210     ac_shift=:
43211     ;;
43212   -*)
43213     ac_option=$1
43214     ac_optarg=$2
43215     ac_shift=shift
43216     ;;
43217   *) # This is not an option, so the user has probably given explicit
43218      # arguments.
43219      ac_option=$1
43220      ac_need_defaults=false;;
43221   esac
43222
43223   case $ac_option in
43224   # Handling of the options.
43225 _ACEOF
43226 cat >>$CONFIG_STATUS <<\_ACEOF
43227   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
43228     ac_cs_recheck=: ;;
43229   --version | --vers* | -V )
43230     echo "$ac_cs_version"; exit 0 ;;
43231   --he | --h)
43232     # Conflict between --help and --header
43233     { { echo "$as_me:$LINENO: error: ambiguous option: $1
43234 Try \`$0 --help' for more information." >&5
43235 echo "$as_me: error: ambiguous option: $1
43236 Try \`$0 --help' for more information." >&2;}
43237    { (exit 1); exit 1; }; };;
43238   --help | --hel | -h )
43239     echo "$ac_cs_usage"; exit 0 ;;
43240   --debug | --d* | -d )
43241     debug=: ;;
43242   --file | --fil | --fi | --f )
43243     $ac_shift
43244     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
43245     ac_need_defaults=false;;
43246   --header | --heade | --head | --hea )
43247     $ac_shift
43248     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
43249     ac_need_defaults=false;;
43250   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
43251   | -silent | --silent | --silen | --sile | --sil | --si | --s)
43252     ac_cs_silent=: ;;
43253
43254   # This is an error.
43255   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
43256 Try \`$0 --help' for more information." >&5
43257 echo "$as_me: error: unrecognized option: $1
43258 Try \`$0 --help' for more information." >&2;}
43259    { (exit 1); exit 1; }; } ;;
43260
43261   *) ac_config_targets="$ac_config_targets $1" ;;
43262
43263   esac
43264   shift
43265 done
43266
43267 ac_configure_extra_args=
43268
43269 if $ac_cs_silent; then
43270   exec 6>/dev/null
43271   ac_configure_extra_args="$ac_configure_extra_args --silent"
43272 fi
43273
43274 _ACEOF
43275 cat >>$CONFIG_STATUS <<_ACEOF
43276 if \$ac_cs_recheck; then
43277   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
43278   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
43279 fi
43280
43281 _ACEOF
43282
43283 cat >>$CONFIG_STATUS <<_ACEOF
43284 #
43285 # INIT-COMMANDS section.
43286 #
43287
43288 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
43289 STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS"
43290
43291 _ACEOF
43292
43293
43294
43295 cat >>$CONFIG_STATUS <<\_ACEOF
43296 for ac_config_target in $ac_config_targets
43297 do
43298   case "$ac_config_target" in
43299   # Handling of arguments.
43300   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile:build/top.mk:Makefile.in:build/dir.mk" ;;
43301   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk" ;;
43302   "doc/man/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk" ;;
43303   "doc/man/man1/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk" ;;
43304   "doc/man/man3/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk" ;;
43305   "doc/man/man5/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk" ;;
43306   "doc/man/man8/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk" ;;
43307   "clients/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk" ;;
43308   "clients/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk" ;;
43309   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile:build/top.mk:include/Makefile.in" ;;
43310   "libraries/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk" ;;
43311   "libraries/liblber/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
43312   "libraries/libldap/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
43313   "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" ;;
43314   "libraries/liblunicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
43315   "libraries/liblutil/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
43316   "libraries/librewrite/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
43317   "servers/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk" ;;
43318   "servers/slapd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk" ;;
43319   "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" ;;
43320   "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" ;;
43321   "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" ;;
43322   "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" ;;
43323   "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" ;;
43324   "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" ;;
43325   "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" ;;
43326   "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" ;;
43327   "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" ;;
43328   "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" ;;
43329   "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" ;;
43330   "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" ;;
43331   "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" ;;
43332   "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" ;;
43333   "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" ;;
43334   "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" ;;
43335   "servers/slapd/overlays/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk" ;;
43336   "servers/slurpd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk" ;;
43337   "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk" ;;
43338   "tests/run" ) CONFIG_FILES="$CONFIG_FILES tests/run" ;;
43339   "tests/progs/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk" ;;
43340   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
43341   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
43342   "include/portable.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/portable.h:include/portable.hin" ;;
43343   "include/ldap_features.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ldap_features.h:include/ldap_features.hin" ;;
43344   "include/lber_types.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/lber_types.h:include/lber_types.hin" ;;
43345   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
43346 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
43347    { (exit 1); exit 1; }; };;
43348   esac
43349 done
43350
43351 # If the user did not use the arguments to specify the items to instantiate,
43352 # then the envvar interface is used.  Set only those that are not.
43353 # We use the long form for the default assignment because of an extremely
43354 # bizarre bug on SunOS 4.1.3.
43355 if $ac_need_defaults; then
43356   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
43357   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
43358   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
43359 fi
43360
43361 # Have a temporary directory for convenience.  Make it in the build tree
43362 # simply because there is no reason to put it here, and in addition,
43363 # creating and moving files from /tmp can sometimes cause problems.
43364 # Create a temporary directory, and hook for its removal unless debugging.
43365 $debug ||
43366 {
43367   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
43368   trap '{ (exit 1); exit 1; }' 1 2 13 15
43369 }
43370
43371 # Create a (secure) tmp directory for tmp files.
43372
43373 {
43374   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
43375   test -n "$tmp" && test -d "$tmp"
43376 }  ||
43377 {
43378   tmp=./confstat$$-$RANDOM
43379   (umask 077 && mkdir $tmp)
43380 } ||
43381 {
43382    echo "$me: cannot create a temporary directory in ." >&2
43383    { (exit 1); exit 1; }
43384 }
43385
43386 _ACEOF
43387
43388 cat >>$CONFIG_STATUS <<_ACEOF
43389
43390 #
43391 # CONFIG_FILES section.
43392 #
43393
43394 # No need to generate the scripts if there are no CONFIG_FILES.
43395 # This happens for instance when ./config.status config.h
43396 if test -n "\$CONFIG_FILES"; then
43397   # Protect against being on the right side of a sed subst in config.status.
43398   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
43399    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
43400 s,@SHELL@,$SHELL,;t t
43401 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
43402 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
43403 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
43404 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
43405 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
43406 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
43407 s,@exec_prefix@,$exec_prefix,;t t
43408 s,@prefix@,$prefix,;t t
43409 s,@program_transform_name@,$program_transform_name,;t t
43410 s,@bindir@,$bindir,;t t
43411 s,@sbindir@,$sbindir,;t t
43412 s,@libexecdir@,$libexecdir,;t t
43413 s,@datadir@,$datadir,;t t
43414 s,@sysconfdir@,$sysconfdir,;t t
43415 s,@sharedstatedir@,$sharedstatedir,;t t
43416 s,@localstatedir@,$localstatedir,;t t
43417 s,@libdir@,$libdir,;t t
43418 s,@includedir@,$includedir,;t t
43419 s,@oldincludedir@,$oldincludedir,;t t
43420 s,@infodir@,$infodir,;t t
43421 s,@mandir@,$mandir,;t t
43422 s,@build_alias@,$build_alias,;t t
43423 s,@host_alias@,$host_alias,;t t
43424 s,@target_alias@,$target_alias,;t t
43425 s,@DEFS@,$DEFS,;t t
43426 s,@ECHO_C@,$ECHO_C,;t t
43427 s,@ECHO_N@,$ECHO_N,;t t
43428 s,@ECHO_T@,$ECHO_T,;t t
43429 s,@LIBS@,$LIBS,;t t
43430 s,@build@,$build,;t t
43431 s,@build_cpu@,$build_cpu,;t t
43432 s,@build_vendor@,$build_vendor,;t t
43433 s,@build_os@,$build_os,;t t
43434 s,@host@,$host,;t t
43435 s,@host_cpu@,$host_cpu,;t t
43436 s,@host_vendor@,$host_vendor,;t t
43437 s,@host_os@,$host_os,;t t
43438 s,@target@,$target,;t t
43439 s,@target_cpu@,$target_cpu,;t t
43440 s,@target_vendor@,$target_vendor,;t t
43441 s,@target_os@,$target_os,;t t
43442 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
43443 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
43444 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
43445 s,@CYGPATH_W@,$CYGPATH_W,;t t
43446 s,@PACKAGE@,$PACKAGE,;t t
43447 s,@VERSION@,$VERSION,;t t
43448 s,@ACLOCAL@,$ACLOCAL,;t t
43449 s,@AUTOCONF@,$AUTOCONF,;t t
43450 s,@AUTOMAKE@,$AUTOMAKE,;t t
43451 s,@AUTOHEADER@,$AUTOHEADER,;t t
43452 s,@MAKEINFO@,$MAKEINFO,;t t
43453 s,@install_sh@,$install_sh,;t t
43454 s,@STRIP@,$STRIP,;t t
43455 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
43456 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
43457 s,@mkdir_p@,$mkdir_p,;t t
43458 s,@AWK@,$AWK,;t t
43459 s,@SET_MAKE@,$SET_MAKE,;t t
43460 s,@am__leading_dot@,$am__leading_dot,;t t
43461 s,@AMTAR@,$AMTAR,;t t
43462 s,@am__tar@,$am__tar,;t t
43463 s,@am__untar@,$am__untar,;t t
43464 s,@OPENLDAP_LIBRELEASE@,$OPENLDAP_LIBRELEASE,;t t
43465 s,@OPENLDAP_LIBVERSION@,$OPENLDAP_LIBVERSION,;t t
43466 s,@OPENLDAP_RELEASE_DATE@,$OPENLDAP_RELEASE_DATE,;t t
43467 s,@top_builddir@,$top_builddir,;t t
43468 s,@ldap_subdir@,$ldap_subdir,;t t
43469 s,@CC@,$CC,;t t
43470 s,@AR@,$AR,;t t
43471 s,@CFLAGS@,$CFLAGS,;t t
43472 s,@LDFLAGS@,$LDFLAGS,;t t
43473 s,@CPPFLAGS@,$CPPFLAGS,;t t
43474 s,@ac_ct_CC@,$ac_ct_CC,;t t
43475 s,@EXEEXT@,$EXEEXT,;t t
43476 s,@OBJEXT@,$OBJEXT,;t t
43477 s,@DEPDIR@,$DEPDIR,;t t
43478 s,@am__include@,$am__include,;t t
43479 s,@am__quote@,$am__quote,;t t
43480 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
43481 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
43482 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
43483 s,@CCDEPMODE@,$CCDEPMODE,;t t
43484 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
43485 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
43486 s,@EGREP@,$EGREP,;t t
43487 s,@LN_S@,$LN_S,;t t
43488 s,@ECHO@,$ECHO,;t t
43489 s,@ac_ct_AR@,$ac_ct_AR,;t t
43490 s,@RANLIB@,$RANLIB,;t t
43491 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
43492 s,@DLLTOOL@,$DLLTOOL,;t t
43493 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
43494 s,@AS@,$AS,;t t
43495 s,@ac_ct_AS@,$ac_ct_AS,;t t
43496 s,@OBJDUMP@,$OBJDUMP,;t t
43497 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
43498 s,@CPP@,$CPP,;t t
43499 s,@LIBTOOL@,$LIBTOOL,;t t
43500 s,@PERLBIN@,$PERLBIN,;t t
43501 s,@OL_MKDEP@,$OL_MKDEP,;t t
43502 s,@OL_MKDEP_FLAGS@,$OL_MKDEP_FLAGS,;t t
43503 s,@LTSTATIC@,$LTSTATIC,;t t
43504 s,@LIBOBJS@,$LIBOBJS,;t t
43505 s,@LIBSRCS@,$LIBSRCS,;t t
43506 s,@PLAT@,$PLAT,;t t
43507 s,@WITH_SASL@,$WITH_SASL,;t t
43508 s,@WITH_TLS@,$WITH_TLS,;t t
43509 s,@WITH_MODULES_ENABLED@,$WITH_MODULES_ENABLED,;t t
43510 s,@WITH_ACI_ENABLED@,$WITH_ACI_ENABLED,;t t
43511 s,@BUILD_LIBS_DYNAMIC@,$BUILD_LIBS_DYNAMIC,;t t
43512 s,@BUILD_SLAPD@,$BUILD_SLAPD,;t t
43513 s,@BUILD_SLAPI@,$BUILD_SLAPI,;t t
43514 s,@SLAPD_SLAPI_DEPEND@,$SLAPD_SLAPI_DEPEND,;t t
43515 s,@BUILD_BDB@,$BUILD_BDB,;t t
43516 s,@BUILD_DNSSRV@,$BUILD_DNSSRV,;t t
43517 s,@BUILD_HDB@,$BUILD_HDB,;t t
43518 s,@BUILD_LDAP@,$BUILD_LDAP,;t t
43519 s,@BUILD_LDBM@,$BUILD_LDBM,;t t
43520 s,@BUILD_META@,$BUILD_META,;t t
43521 s,@BUILD_MONITOR@,$BUILD_MONITOR,;t t
43522 s,@BUILD_NULL@,$BUILD_NULL,;t t
43523 s,@BUILD_PASSWD@,$BUILD_PASSWD,;t t
43524 s,@BUILD_RELAY@,$BUILD_RELAY,;t t
43525 s,@BUILD_PERL@,$BUILD_PERL,;t t
43526 s,@BUILD_SHELL@,$BUILD_SHELL,;t t
43527 s,@BUILD_SQL@,$BUILD_SQL,;t t
43528 s,@BUILD_ACCESSLOG@,$BUILD_ACCESSLOG,;t t
43529 s,@BUILD_DENYOP@,$BUILD_DENYOP,;t t
43530 s,@BUILD_DYNGROUP@,$BUILD_DYNGROUP,;t t
43531 s,@BUILD_DYNLIST@,$BUILD_DYNLIST,;t t
43532 s,@BUILD_LASTMOD@,$BUILD_LASTMOD,;t t
43533 s,@BUILD_PPOLICY@,$BUILD_PPOLICY,;t t
43534 s,@BUILD_PROXYCACHE@,$BUILD_PROXYCACHE,;t t
43535 s,@BUILD_REFINT@,$BUILD_REFINT,;t t
43536 s,@BUILD_RETCODE@,$BUILD_RETCODE,;t t
43537 s,@BUILD_RWM@,$BUILD_RWM,;t t
43538 s,@BUILD_SYNCPROV@,$BUILD_SYNCPROV,;t t
43539 s,@BUILD_TRANSLUCENT@,$BUILD_TRANSLUCENT,;t t
43540 s,@BUILD_UNIQUE@,$BUILD_UNIQUE,;t t
43541 s,@BUILD_VALSORT@,$BUILD_VALSORT,;t t
43542 s,@BUILD_SLURPD@,$BUILD_SLURPD,;t t
43543 s,@LDAP_LIBS@,$LDAP_LIBS,;t t
43544 s,@SLAPD_LIBS@,$SLAPD_LIBS,;t t
43545 s,@SLURPD_LIBS@,$SLURPD_LIBS,;t t
43546 s,@LDBM_LIBS@,$LDBM_LIBS,;t t
43547 s,@LTHREAD_LIBS@,$LTHREAD_LIBS,;t t
43548 s,@LUTIL_LIBS@,$LUTIL_LIBS,;t t
43549 s,@WRAP_LIBS@,$WRAP_LIBS,;t t
43550 s,@SLAPD_MODULES_CPPFLAGS@,$SLAPD_MODULES_CPPFLAGS,;t t
43551 s,@SLAPD_MODULES_LDFLAGS@,$SLAPD_MODULES_LDFLAGS,;t t
43552 s,@SLAPD_NO_STATIC@,$SLAPD_NO_STATIC,;t t
43553 s,@SLAPD_STATIC_BACKENDS@,$SLAPD_STATIC_BACKENDS,;t t
43554 s,@SLAPD_DYNAMIC_BACKENDS@,$SLAPD_DYNAMIC_BACKENDS,;t t
43555 s,@SLAPD_STATIC_OVERLAYS@,$SLAPD_STATIC_OVERLAYS,;t t
43556 s,@SLAPD_DYNAMIC_OVERLAYS@,$SLAPD_DYNAMIC_OVERLAYS,;t t
43557 s,@PERL_CPPFLAGS@,$PERL_CPPFLAGS,;t t
43558 s,@SLAPD_PERL_LDFLAGS@,$SLAPD_PERL_LDFLAGS,;t t
43559 s,@MOD_PERL_LDFLAGS@,$MOD_PERL_LDFLAGS,;t t
43560 s,@KRB4_LIBS@,$KRB4_LIBS,;t t
43561 s,@KRB5_LIBS@,$KRB5_LIBS,;t t
43562 s,@SASL_LIBS@,$SASL_LIBS,;t t
43563 s,@TLS_LIBS@,$TLS_LIBS,;t t
43564 s,@MODULES_LIBS@,$MODULES_LIBS,;t t
43565 s,@SLAPI_LIBS@,$SLAPI_LIBS,;t t
43566 s,@LIBSLAPI@,$LIBSLAPI,;t t
43567 s,@LIBSLAPITOOLS@,$LIBSLAPITOOLS,;t t
43568 s,@AUTH_LIBS@,$AUTH_LIBS,;t t
43569 s,@SLAPD_SLP_LIBS@,$SLAPD_SLP_LIBS,;t t
43570 s,@SLAPD_GMP_LIBS@,$SLAPD_GMP_LIBS,;t t
43571 s,@SLAPD_SQL_LDFLAGS@,$SLAPD_SQL_LDFLAGS,;t t
43572 s,@SLAPD_SQL_LIBS@,$SLAPD_SQL_LIBS,;t t
43573 s,@SLAPD_SQL_INCLUDES@,$SLAPD_SQL_INCLUDES,;t t
43574 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
43575 CEOF
43576
43577 _ACEOF
43578
43579   cat >>$CONFIG_STATUS <<\_ACEOF
43580   # Split the substitutions into bite-sized pieces for seds with
43581   # small command number limits, like on Digital OSF/1 and HP-UX.
43582   ac_max_sed_lines=48
43583   ac_sed_frag=1 # Number of current file.
43584   ac_beg=1 # First line for current file.
43585   ac_end=$ac_max_sed_lines # Line after last line for current file.
43586   ac_more_lines=:
43587   ac_sed_cmds=
43588   while $ac_more_lines; do
43589     if test $ac_beg -gt 1; then
43590       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
43591     else
43592       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
43593     fi
43594     if test ! -s $tmp/subs.frag; then
43595       ac_more_lines=false
43596     else
43597       # The purpose of the label and of the branching condition is to
43598       # speed up the sed processing (if there are no `@' at all, there
43599       # is no need to browse any of the substitutions).
43600       # These are the two extra sed commands mentioned above.
43601       (echo ':t
43602   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
43603       if test -z "$ac_sed_cmds"; then
43604         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
43605       else
43606         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
43607       fi
43608       ac_sed_frag=`expr $ac_sed_frag + 1`
43609       ac_beg=$ac_end
43610       ac_end=`expr $ac_end + $ac_max_sed_lines`
43611     fi
43612   done
43613   if test -z "$ac_sed_cmds"; then
43614     ac_sed_cmds=cat
43615   fi
43616 fi # test -n "$CONFIG_FILES"
43617
43618 _ACEOF
43619 cat >>$CONFIG_STATUS <<\_ACEOF
43620 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
43621   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
43622   case $ac_file in
43623   - | *:- | *:-:* ) # input from stdin
43624         cat >$tmp/stdin
43625         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
43626         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
43627   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
43628         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
43629   * )   ac_file_in=$ac_file.in ;;
43630   esac
43631
43632   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
43633   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
43634 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43635          X"$ac_file" : 'X\(//\)[^/]' \| \
43636          X"$ac_file" : 'X\(//\)$' \| \
43637          X"$ac_file" : 'X\(/\)' \| \
43638          .     : '\(.\)' 2>/dev/null ||
43639 echo X"$ac_file" |
43640     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43641           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43642           /^X\(\/\/\)$/{ s//\1/; q; }
43643           /^X\(\/\).*/{ s//\1/; q; }
43644           s/.*/./; q'`
43645   { if $as_mkdir_p; then
43646     mkdir -p "$ac_dir"
43647   else
43648     as_dir="$ac_dir"
43649     as_dirs=
43650     while test ! -d "$as_dir"; do
43651       as_dirs="$as_dir $as_dirs"
43652       as_dir=`(dirname "$as_dir") 2>/dev/null ||
43653 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43654          X"$as_dir" : 'X\(//\)[^/]' \| \
43655          X"$as_dir" : 'X\(//\)$' \| \
43656          X"$as_dir" : 'X\(/\)' \| \
43657          .     : '\(.\)' 2>/dev/null ||
43658 echo X"$as_dir" |
43659     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43660           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43661           /^X\(\/\/\)$/{ s//\1/; q; }
43662           /^X\(\/\).*/{ s//\1/; q; }
43663           s/.*/./; q'`
43664     done
43665     test ! -n "$as_dirs" || mkdir $as_dirs
43666   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
43667 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
43668    { (exit 1); exit 1; }; }; }
43669
43670   ac_builddir=.
43671
43672 if test "$ac_dir" != .; then
43673   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
43674   # A "../" for each directory in $ac_dir_suffix.
43675   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
43676 else
43677   ac_dir_suffix= ac_top_builddir=
43678 fi
43679
43680 case $srcdir in
43681   .)  # No --srcdir option.  We are building in place.
43682     ac_srcdir=.
43683     if test -z "$ac_top_builddir"; then
43684        ac_top_srcdir=.
43685     else
43686        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
43687     fi ;;
43688   [\\/]* | ?:[\\/]* )  # Absolute path.
43689     ac_srcdir=$srcdir$ac_dir_suffix;
43690     ac_top_srcdir=$srcdir ;;
43691   *) # Relative path.
43692     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
43693     ac_top_srcdir=$ac_top_builddir$srcdir ;;
43694 esac
43695
43696 # Do not use `cd foo && pwd` to compute absolute paths, because
43697 # the directories may not exist.
43698 case `pwd` in
43699 .) ac_abs_builddir="$ac_dir";;
43700 *)
43701   case "$ac_dir" in
43702   .) ac_abs_builddir=`pwd`;;
43703   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
43704   *) ac_abs_builddir=`pwd`/"$ac_dir";;
43705   esac;;
43706 esac
43707 case $ac_abs_builddir in
43708 .) ac_abs_top_builddir=${ac_top_builddir}.;;
43709 *)
43710   case ${ac_top_builddir}. in
43711   .) ac_abs_top_builddir=$ac_abs_builddir;;
43712   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
43713   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
43714   esac;;
43715 esac
43716 case $ac_abs_builddir in
43717 .) ac_abs_srcdir=$ac_srcdir;;
43718 *)
43719   case $ac_srcdir in
43720   .) ac_abs_srcdir=$ac_abs_builddir;;
43721   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
43722   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
43723   esac;;
43724 esac
43725 case $ac_abs_builddir in
43726 .) ac_abs_top_srcdir=$ac_top_srcdir;;
43727 *)
43728   case $ac_top_srcdir in
43729   .) ac_abs_top_srcdir=$ac_abs_builddir;;
43730   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
43731   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
43732   esac;;
43733 esac
43734
43735
43736   case $INSTALL in
43737   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
43738   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
43739   esac
43740
43741   if test x"$ac_file" != x-; then
43742     { echo "$as_me:$LINENO: creating $ac_file" >&5
43743 echo "$as_me: creating $ac_file" >&6;}
43744     rm -f "$ac_file"
43745   fi
43746   # Let's still pretend it is `configure' which instantiates (i.e., don't
43747   # use $as_me), people would be surprised to read:
43748   #    /* config.h.  Generated by config.status.  */
43749   if test x"$ac_file" = x-; then
43750     configure_input=
43751   else
43752     configure_input="$ac_file.  "
43753   fi
43754   configure_input=$configure_input"Generated from `echo $ac_file_in |
43755                                      sed 's,.*/,,'` by configure."
43756
43757   # First look for the input files in the build tree, otherwise in the
43758   # src tree.
43759   ac_file_inputs=`IFS=:
43760     for f in $ac_file_in; do
43761       case $f in
43762       -) echo $tmp/stdin ;;
43763       [\\/$]*)
43764          # Absolute (can't be DOS-style, as IFS=:)
43765          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
43766 echo "$as_me: error: cannot find input file: $f" >&2;}
43767    { (exit 1); exit 1; }; }
43768          echo "$f";;
43769       *) # Relative
43770          if test -f "$f"; then
43771            # Build tree
43772            echo "$f"
43773          elif test -f "$srcdir/$f"; then
43774            # Source tree
43775            echo "$srcdir/$f"
43776          else
43777            # /dev/null tree
43778            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
43779 echo "$as_me: error: cannot find input file: $f" >&2;}
43780    { (exit 1); exit 1; }; }
43781          fi;;
43782       esac
43783     done` || { (exit 1); exit 1; }
43784 _ACEOF
43785 cat >>$CONFIG_STATUS <<_ACEOF
43786   sed "$ac_vpsub
43787 $extrasub
43788 _ACEOF
43789 cat >>$CONFIG_STATUS <<\_ACEOF
43790 :t
43791 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
43792 s,@configure_input@,$configure_input,;t t
43793 s,@srcdir@,$ac_srcdir,;t t
43794 s,@abs_srcdir@,$ac_abs_srcdir,;t t
43795 s,@top_srcdir@,$ac_top_srcdir,;t t
43796 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
43797 s,@builddir@,$ac_builddir,;t t
43798 s,@abs_builddir@,$ac_abs_builddir,;t t
43799 s,@top_builddir@,$ac_top_builddir,;t t
43800 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
43801 s,@INSTALL@,$ac_INSTALL,;t t
43802 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
43803   rm -f $tmp/stdin
43804   if test x"$ac_file" != x-; then
43805     mv $tmp/out $ac_file
43806   else
43807     cat $tmp/out
43808     rm -f $tmp/out
43809   fi
43810
43811 done
43812 _ACEOF
43813 cat >>$CONFIG_STATUS <<\_ACEOF
43814
43815 #
43816 # CONFIG_HEADER section.
43817 #
43818
43819 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
43820 # NAME is the cpp macro being defined and VALUE is the value it is being given.
43821 #
43822 # ac_d sets the value in "#define NAME VALUE" lines.
43823 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
43824 ac_dB='[         ].*$,\1#\2'
43825 ac_dC=' '
43826 ac_dD=',;t'
43827 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
43828 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
43829 ac_uB='$,\1#\2define\3'
43830 ac_uC=' '
43831 ac_uD=',;t'
43832
43833 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
43834   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
43835   case $ac_file in
43836   - | *:- | *:-:* ) # input from stdin
43837         cat >$tmp/stdin
43838         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
43839         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
43840   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
43841         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
43842   * )   ac_file_in=$ac_file.in ;;
43843   esac
43844
43845   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
43846 echo "$as_me: creating $ac_file" >&6;}
43847
43848   # First look for the input files in the build tree, otherwise in the
43849   # src tree.
43850   ac_file_inputs=`IFS=:
43851     for f in $ac_file_in; do
43852       case $f in
43853       -) echo $tmp/stdin ;;
43854       [\\/$]*)
43855          # Absolute (can't be DOS-style, as IFS=:)
43856          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
43857 echo "$as_me: error: cannot find input file: $f" >&2;}
43858    { (exit 1); exit 1; }; }
43859          # Do quote $f, to prevent DOS paths from being IFS'd.
43860          echo "$f";;
43861       *) # Relative
43862          if test -f "$f"; then
43863            # Build tree
43864            echo "$f"
43865          elif test -f "$srcdir/$f"; then
43866            # Source tree
43867            echo "$srcdir/$f"
43868          else
43869            # /dev/null tree
43870            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
43871 echo "$as_me: error: cannot find input file: $f" >&2;}
43872    { (exit 1); exit 1; }; }
43873          fi;;
43874       esac
43875     done` || { (exit 1); exit 1; }
43876   # Remove the trailing spaces.
43877   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
43878
43879 _ACEOF
43880
43881 # Transform confdefs.h into two sed scripts, `conftest.defines' and
43882 # `conftest.undefs', that substitutes the proper values into
43883 # config.h.in to produce config.h.  The first handles `#define'
43884 # templates, and the second `#undef' templates.
43885 # And first: Protect against being on the right side of a sed subst in
43886 # config.status.  Protect against being in an unquoted here document
43887 # in config.status.
43888 rm -f conftest.defines conftest.undefs
43889 # Using a here document instead of a string reduces the quoting nightmare.
43890 # Putting comments in sed scripts is not portable.
43891 #
43892 # `end' is used to avoid that the second main sed command (meant for
43893 # 0-ary CPP macros) applies to n-ary macro definitions.
43894 # See the Autoconf documentation for `clear'.
43895 cat >confdef2sed.sed <<\_ACEOF
43896 s/[\\&,]/\\&/g
43897 s,[\\$`],\\&,g
43898 t clear
43899 : clear
43900 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
43901 t end
43902 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
43903 : end
43904 _ACEOF
43905 # If some macros were called several times there might be several times
43906 # the same #defines, which is useless.  Nevertheless, we may not want to
43907 # sort them, since we want the *last* AC-DEFINE to be honored.
43908 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
43909 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
43910 rm -f confdef2sed.sed
43911
43912 # This sed command replaces #undef with comments.  This is necessary, for
43913 # example, in the case of _POSIX_SOURCE, which is predefined and required
43914 # on some systems where configure will not decide to define it.
43915 cat >>conftest.undefs <<\_ACEOF
43916 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
43917 _ACEOF
43918
43919 # Break up conftest.defines because some shells have a limit on the size
43920 # of here documents, and old seds have small limits too (100 cmds).
43921 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
43922 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
43923 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
43924 echo '  :' >>$CONFIG_STATUS
43925 rm -f conftest.tail
43926 while grep . conftest.defines >/dev/null
43927 do
43928   # Write a limited-size here document to $tmp/defines.sed.
43929   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
43930   # Speed up: don't consider the non `#define' lines.
43931   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
43932   # Work around the forget-to-reset-the-flag bug.
43933   echo 't clr' >>$CONFIG_STATUS
43934   echo ': clr' >>$CONFIG_STATUS
43935   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
43936   echo 'CEOF
43937   sed -f $tmp/defines.sed $tmp/in >$tmp/out
43938   rm -f $tmp/in
43939   mv $tmp/out $tmp/in
43940 ' >>$CONFIG_STATUS
43941   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
43942   rm -f conftest.defines
43943   mv conftest.tail conftest.defines
43944 done
43945 rm -f conftest.defines
43946 echo '  fi # grep' >>$CONFIG_STATUS
43947 echo >>$CONFIG_STATUS
43948
43949 # Break up conftest.undefs because some shells have a limit on the size
43950 # of here documents, and old seds have small limits too (100 cmds).
43951 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
43952 rm -f conftest.tail
43953 while grep . conftest.undefs >/dev/null
43954 do
43955   # Write a limited-size here document to $tmp/undefs.sed.
43956   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
43957   # Speed up: don't consider the non `#undef'
43958   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
43959   # Work around the forget-to-reset-the-flag bug.
43960   echo 't clr' >>$CONFIG_STATUS
43961   echo ': clr' >>$CONFIG_STATUS
43962   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
43963   echo 'CEOF
43964   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
43965   rm -f $tmp/in
43966   mv $tmp/out $tmp/in
43967 ' >>$CONFIG_STATUS
43968   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
43969   rm -f conftest.undefs
43970   mv conftest.tail conftest.undefs
43971 done
43972 rm -f conftest.undefs
43973
43974 cat >>$CONFIG_STATUS <<\_ACEOF
43975   # Let's still pretend it is `configure' which instantiates (i.e., don't
43976   # use $as_me), people would be surprised to read:
43977   #    /* config.h.  Generated by config.status.  */
43978   if test x"$ac_file" = x-; then
43979     echo "/* Generated by configure.  */" >$tmp/config.h
43980   else
43981     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
43982   fi
43983   cat $tmp/in >>$tmp/config.h
43984   rm -f $tmp/in
43985   if test x"$ac_file" != x-; then
43986     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
43987       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
43988 echo "$as_me: $ac_file is unchanged" >&6;}
43989     else
43990       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
43991 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43992          X"$ac_file" : 'X\(//\)[^/]' \| \
43993          X"$ac_file" : 'X\(//\)$' \| \
43994          X"$ac_file" : 'X\(/\)' \| \
43995          .     : '\(.\)' 2>/dev/null ||
43996 echo X"$ac_file" |
43997     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43998           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43999           /^X\(\/\/\)$/{ s//\1/; q; }
44000           /^X\(\/\).*/{ s//\1/; q; }
44001           s/.*/./; q'`
44002       { if $as_mkdir_p; then
44003     mkdir -p "$ac_dir"
44004   else
44005     as_dir="$ac_dir"
44006     as_dirs=
44007     while test ! -d "$as_dir"; do
44008       as_dirs="$as_dir $as_dirs"
44009       as_dir=`(dirname "$as_dir") 2>/dev/null ||
44010 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
44011          X"$as_dir" : 'X\(//\)[^/]' \| \
44012          X"$as_dir" : 'X\(//\)$' \| \
44013          X"$as_dir" : 'X\(/\)' \| \
44014          .     : '\(.\)' 2>/dev/null ||
44015 echo X"$as_dir" |
44016     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44017           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44018           /^X\(\/\/\)$/{ s//\1/; q; }
44019           /^X\(\/\).*/{ s//\1/; q; }
44020           s/.*/./; q'`
44021     done
44022     test ! -n "$as_dirs" || mkdir $as_dirs
44023   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
44024 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
44025    { (exit 1); exit 1; }; }; }
44026
44027       rm -f $ac_file
44028       mv $tmp/config.h $ac_file
44029     fi
44030   else
44031     cat $tmp/config.h
44032     rm -f $tmp/config.h
44033   fi
44034 # Compute $ac_file's index in $config_headers.
44035 _am_stamp_count=1
44036 for _am_header in $config_headers :; do
44037   case $_am_header in
44038     $ac_file | $ac_file:* )
44039       break ;;
44040     * )
44041       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
44042   esac
44043 done
44044 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
44045 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
44046          X$ac_file : 'X\(//\)[^/]' \| \
44047          X$ac_file : 'X\(//\)$' \| \
44048          X$ac_file : 'X\(/\)' \| \
44049          .     : '\(.\)' 2>/dev/null ||
44050 echo X$ac_file |
44051     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44052           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44053           /^X\(\/\/\)$/{ s//\1/; q; }
44054           /^X\(\/\).*/{ s//\1/; q; }
44055           s/.*/./; q'`/stamp-h$_am_stamp_count
44056 done
44057 _ACEOF
44058 cat >>$CONFIG_STATUS <<\_ACEOF
44059
44060 #
44061 # CONFIG_COMMANDS section.
44062 #
44063 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
44064   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
44065   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
44066   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
44067 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
44068          X"$ac_dest" : 'X\(//\)[^/]' \| \
44069          X"$ac_dest" : 'X\(//\)$' \| \
44070          X"$ac_dest" : 'X\(/\)' \| \
44071          .     : '\(.\)' 2>/dev/null ||
44072 echo X"$ac_dest" |
44073     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44074           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44075           /^X\(\/\/\)$/{ s//\1/; q; }
44076           /^X\(\/\).*/{ s//\1/; q; }
44077           s/.*/./; q'`
44078   { if $as_mkdir_p; then
44079     mkdir -p "$ac_dir"
44080   else
44081     as_dir="$ac_dir"
44082     as_dirs=
44083     while test ! -d "$as_dir"; do
44084       as_dirs="$as_dir $as_dirs"
44085       as_dir=`(dirname "$as_dir") 2>/dev/null ||
44086 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
44087          X"$as_dir" : 'X\(//\)[^/]' \| \
44088          X"$as_dir" : 'X\(//\)$' \| \
44089          X"$as_dir" : 'X\(/\)' \| \
44090          .     : '\(.\)' 2>/dev/null ||
44091 echo X"$as_dir" |
44092     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44093           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44094           /^X\(\/\/\)$/{ s//\1/; q; }
44095           /^X\(\/\).*/{ s//\1/; q; }
44096           s/.*/./; q'`
44097     done
44098     test ! -n "$as_dirs" || mkdir $as_dirs
44099   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
44100 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
44101    { (exit 1); exit 1; }; }; }
44102
44103   ac_builddir=.
44104
44105 if test "$ac_dir" != .; then
44106   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
44107   # A "../" for each directory in $ac_dir_suffix.
44108   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
44109 else
44110   ac_dir_suffix= ac_top_builddir=
44111 fi
44112
44113 case $srcdir in
44114   .)  # No --srcdir option.  We are building in place.
44115     ac_srcdir=.
44116     if test -z "$ac_top_builddir"; then
44117        ac_top_srcdir=.
44118     else
44119        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
44120     fi ;;
44121   [\\/]* | ?:[\\/]* )  # Absolute path.
44122     ac_srcdir=$srcdir$ac_dir_suffix;
44123     ac_top_srcdir=$srcdir ;;
44124   *) # Relative path.
44125     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
44126     ac_top_srcdir=$ac_top_builddir$srcdir ;;
44127 esac
44128
44129 # Do not use `cd foo && pwd` to compute absolute paths, because
44130 # the directories may not exist.
44131 case `pwd` in
44132 .) ac_abs_builddir="$ac_dir";;
44133 *)
44134   case "$ac_dir" in
44135   .) ac_abs_builddir=`pwd`;;
44136   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
44137   *) ac_abs_builddir=`pwd`/"$ac_dir";;
44138   esac;;
44139 esac
44140 case $ac_abs_builddir in
44141 .) ac_abs_top_builddir=${ac_top_builddir}.;;
44142 *)
44143   case ${ac_top_builddir}. in
44144   .) ac_abs_top_builddir=$ac_abs_builddir;;
44145   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
44146   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
44147   esac;;
44148 esac
44149 case $ac_abs_builddir in
44150 .) ac_abs_srcdir=$ac_srcdir;;
44151 *)
44152   case $ac_srcdir in
44153   .) ac_abs_srcdir=$ac_abs_builddir;;
44154   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
44155   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
44156   esac;;
44157 esac
44158 case $ac_abs_builddir in
44159 .) ac_abs_top_srcdir=$ac_top_srcdir;;
44160 *)
44161   case $ac_top_srcdir in
44162   .) ac_abs_top_srcdir=$ac_abs_builddir;;
44163   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
44164   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
44165   esac;;
44166 esac
44167
44168
44169   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
44170 echo "$as_me: executing $ac_dest commands" >&6;}
44171   case $ac_dest in
44172     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
44173   # Strip MF so we end up with the name of the file.
44174   mf=`echo "$mf" | sed -e 's/:.*$//'`
44175   # Check whether this is an Automake generated Makefile or not.
44176   # We used to match only the files named `Makefile.in', but
44177   # some people rename them; so instead we look at the file content.
44178   # Grep'ing the first line is not enough: some people post-process
44179   # each Makefile.in and add a new line on top of each file to say so.
44180   # So let's grep whole file.
44181   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
44182     dirpart=`(dirname "$mf") 2>/dev/null ||
44183 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
44184          X"$mf" : 'X\(//\)[^/]' \| \
44185          X"$mf" : 'X\(//\)$' \| \
44186          X"$mf" : 'X\(/\)' \| \
44187          .     : '\(.\)' 2>/dev/null ||
44188 echo X"$mf" |
44189     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44190           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44191           /^X\(\/\/\)$/{ s//\1/; q; }
44192           /^X\(\/\).*/{ s//\1/; q; }
44193           s/.*/./; q'`
44194   else
44195     continue
44196   fi
44197   # Extract the definition of DEPDIR, am__include, and am__quote
44198   # from the Makefile without running `make'.
44199   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
44200   test -z "$DEPDIR" && continue
44201   am__include=`sed -n 's/^am__include = //p' < "$mf"`
44202   test -z "am__include" && continue
44203   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
44204   # When using ansi2knr, U may be empty or an underscore; expand it
44205   U=`sed -n 's/^U = //p' < "$mf"`
44206   # Find all dependency output files, they are included files with
44207   # $(DEPDIR) in their names.  We invoke sed twice because it is the
44208   # simplest approach to changing $(DEPDIR) to its actual value in the
44209   # expansion.
44210   for file in `sed -n "
44211     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
44212        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
44213     # Make sure the directory exists.
44214     test -f "$dirpart/$file" && continue
44215     fdir=`(dirname "$file") 2>/dev/null ||
44216 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
44217          X"$file" : 'X\(//\)[^/]' \| \
44218          X"$file" : 'X\(//\)$' \| \
44219          X"$file" : 'X\(/\)' \| \
44220          .     : '\(.\)' 2>/dev/null ||
44221 echo X"$file" |
44222     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44223           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44224           /^X\(\/\/\)$/{ s//\1/; q; }
44225           /^X\(\/\).*/{ s//\1/; q; }
44226           s/.*/./; q'`
44227     { if $as_mkdir_p; then
44228     mkdir -p $dirpart/$fdir
44229   else
44230     as_dir=$dirpart/$fdir
44231     as_dirs=
44232     while test ! -d "$as_dir"; do
44233       as_dirs="$as_dir $as_dirs"
44234       as_dir=`(dirname "$as_dir") 2>/dev/null ||
44235 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
44236          X"$as_dir" : 'X\(//\)[^/]' \| \
44237          X"$as_dir" : 'X\(//\)$' \| \
44238          X"$as_dir" : 'X\(/\)' \| \
44239          .     : '\(.\)' 2>/dev/null ||
44240 echo X"$as_dir" |
44241     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44242           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44243           /^X\(\/\/\)$/{ s//\1/; q; }
44244           /^X\(\/\).*/{ s//\1/; q; }
44245           s/.*/./; q'`
44246     done
44247     test ! -n "$as_dirs" || mkdir $as_dirs
44248   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
44249 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
44250    { (exit 1); exit 1; }; }; }
44251
44252     # echo "creating $dirpart/$file"
44253     echo '# dummy' > "$dirpart/$file"
44254   done
44255 done
44256  ;;
44257     default )
44258 chmod +x tests/run
44259 date > stamp-h
44260 BACKENDSC="servers/slapd/backends.c"
44261 echo "Making $BACKENDSC"
44262 rm -f $BACKENDSC
44263 cat > $BACKENDSC << ENDX
44264 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
44265  *
44266  * Copyright 1998-2005 The OpenLDAP Foundation.
44267  * All rights reserved.
44268  *
44269  * Redistribution and use in source and binary forms, with or without
44270  * modification, are permitted only as authorized by the OpenLDAP
44271  * Public License.
44272  *
44273  * A copy of this license is available in the file LICENSE in the
44274  * top-level directory of the distribution or, alternatively, at
44275  * <http://www.OpenLDAP.org/license.html>.
44276  */
44277 /* This file is automatically generated by configure; please do not edit. */
44278
44279 #include "portable.h"
44280 #include "slap.h"
44281
44282 ENDX
44283 if test "${STATIC_BACKENDS}"; then
44284         for b in config ${STATIC_BACKENDS}; do
44285                 bb=`echo "${b}" | sed -e 's/back-//'`
44286                 cat >> $BACKENDSC << ENDX
44287 extern BI_init ${bb}_back_initialize;
44288 ENDX
44289         done
44290
44291         cat >> $BACKENDSC << ENDX
44292
44293 BackendInfo slap_binfo[] = {
44294 ENDX
44295
44296         for b in config ${STATIC_BACKENDS}; do
44297                 bb=`echo "${b}" | sed -e 's/back-//'`
44298                 echo "    Add ${bb} ..."
44299                 cat >> $BACKENDSC << ENDX
44300         { "${bb}", ${bb}_back_initialize },
44301 ENDX
44302         done
44303
44304         cat >> $BACKENDSC << ENDX
44305         { NULL, NULL },
44306 };
44307
44308 /* end of generated file */
44309 ENDX
44310 fi
44311
44312 echo Please run \"make depend\" to build dependencies
44313  ;;
44314   esac
44315 done
44316 _ACEOF
44317
44318 cat >>$CONFIG_STATUS <<\_ACEOF
44319
44320 { (exit 0); exit 0; }
44321 _ACEOF
44322 chmod +x $CONFIG_STATUS
44323 ac_clean_files=$ac_clean_files_save
44324
44325
44326 # configure is writing to config.log, and then calls config.status.
44327 # config.status does its own redirection, appending to config.log.
44328 # Unfortunately, on DOS this fails, as config.log is still kept open
44329 # by configure, so config.status won't be able to write to it; its
44330 # output is simply discarded.  So we exec the FD to /dev/null,
44331 # effectively closing config.log, so it can be properly (re)opened and
44332 # appended to by config.status.  When coming back to configure, we
44333 # need to make the FD available again.
44334 if test "$no_create" != yes; then
44335   ac_cs_success=:
44336   ac_config_status_args=
44337   test "$silent" = yes &&
44338     ac_config_status_args="$ac_config_status_args --quiet"
44339   exec 5>/dev/null
44340   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
44341   exec 5>>config.log
44342   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
44343   # would make configure fail if this is the last instruction.
44344   $ac_cs_success || { (exit 1); exit 1; }
44345 fi
44346