]> git.sur5r.net Git - openldap/blob - configure
4e469987bf4a6cd916e0991500e78d0b283b9635
[openldap] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization.  ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14   emulate sh
15   NULLCMD=:
16   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17   # is contrary to our usage.  Disable this feature.
18   alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20   set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   test -d ./-p && rmdir ./-p
222   as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS="   $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244
245 # Check that we are running under the correct shell.
246 SHELL=${CONFIG_SHELL-/bin/sh}
247
248 case X$ECHO in
249 X*--fallback-echo)
250   # Remove one level of quotation (which was required for Make).
251   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
252   ;;
253 esac
254
255 echo=${ECHO-echo}
256 if test "X$1" = X--no-reexec; then
257   # Discard the --no-reexec flag, and continue.
258   shift
259 elif test "X$1" = X--fallback-echo; then
260   # Avoid inline document here, it may be left over
261   :
262 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
263   # Yippee, $echo works!
264   :
265 else
266   # Restart under the correct shell.
267   exec $SHELL "$0" --no-reexec ${1+"$@"}
268 fi
269
270 if test "X$1" = X--fallback-echo; then
271   # used as fallback echo
272   shift
273   cat <<EOF
274 $*
275 EOF
276   exit 0
277 fi
278
279 # The HP-UX ksh and POSIX shell print the target directory to stdout
280 # if CDPATH is set.
281 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
282
283 if test -z "$ECHO"; then
284 if test "X${echo_test_string+set}" != Xset; then
285 # find a string as large as possible, as long as the shell can cope with it
286   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
289        echo_test_string="`eval $cmd`" &&
290        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
291     then
292       break
293     fi
294   done
295 fi
296
297 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
298    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
299    test "X$echo_testing_string" = "X$echo_test_string"; then
300   :
301 else
302   # The Solaris, AIX, and Digital Unix default echo programs unquote
303   # backslashes.  This makes it impossible to quote backslashes using
304   #   echo "$something" | sed 's/\\/\\\\/g'
305   #
306   # So, first we look for a working echo in the user's PATH.
307
308   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
309   for dir in $PATH /usr/ucb; do
310     IFS="$lt_save_ifs"
311     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
312        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
313        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
314        test "X$echo_testing_string" = "X$echo_test_string"; then
315       echo="$dir/echo"
316       break
317     fi
318   done
319   IFS="$lt_save_ifs"
320
321   if test "X$echo" = Xecho; then
322     # We didn't find a better echo, so look for alternatives.
323     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
324        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
325        test "X$echo_testing_string" = "X$echo_test_string"; then
326       # This shell has a builtin print -r that does the trick.
327       echo='print -r'
328     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
329          test "X$CONFIG_SHELL" != X/bin/ksh; then
330       # If we have ksh, try running configure again with it.
331       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
332       export ORIGINAL_CONFIG_SHELL
333       CONFIG_SHELL=/bin/ksh
334       export CONFIG_SHELL
335       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
336     else
337       # Try using printf.
338       echo='printf %s\n'
339       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
340          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
341          test "X$echo_testing_string" = "X$echo_test_string"; then
342         # Cool, printf works
343         :
344       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
345            test "X$echo_testing_string" = 'X\t' &&
346            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
347            test "X$echo_testing_string" = "X$echo_test_string"; then
348         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
349         export CONFIG_SHELL
350         SHELL="$CONFIG_SHELL"
351         export SHELL
352         echo="$CONFIG_SHELL $0 --fallback-echo"
353       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354            test "X$echo_testing_string" = 'X\t' &&
355            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356            test "X$echo_testing_string" = "X$echo_test_string"; then
357         echo="$CONFIG_SHELL $0 --fallback-echo"
358       else
359         # maybe with a smaller string...
360         prev=:
361
362         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
363           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
364           then
365             break
366           fi
367           prev="$cmd"
368         done
369
370         if test "$prev" != 'sed 50q "$0"'; then
371           echo_test_string=`eval $prev`
372           export echo_test_string
373           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
374         else
375           # Oops.  We lost completely, so just stick with echo.
376           echo=echo
377         fi
378       fi
379     fi
380   fi
381 fi
382 fi
383
384 # Copy echo and quote the copy suitably for passing to libtool from
385 # the Makefile, instead of quoting the original, which is used later.
386 ECHO=$echo
387 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
388    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
389 fi
390
391
392
393
394 tagnames=${tagnames+${tagnames},}CXX
395
396 tagnames=${tagnames+${tagnames},}F77
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="build/version.sh"
429 ac_default_prefix=/usr/local
430 # Factoring default headers for most tests.
431 ac_includes_default="\
432 #include <stdio.h>
433 #if HAVE_SYS_TYPES_H
434 # include <sys/types.h>
435 #endif
436 #if HAVE_SYS_STAT_H
437 # include <sys/stat.h>
438 #endif
439 #if STDC_HEADERS
440 # include <stdlib.h>
441 # include <stddef.h>
442 #else
443 # if HAVE_STDLIB_H
444 #  include <stdlib.h>
445 # endif
446 #endif
447 #if HAVE_STRING_H
448 # if !STDC_HEADERS && HAVE_MEMORY_H
449 #  include <memory.h>
450 # endif
451 # include <string.h>
452 #endif
453 #if HAVE_STRINGS_H
454 # include <strings.h>
455 #endif
456 #if HAVE_INTTYPES_H
457 # include <inttypes.h>
458 #else
459 # if HAVE_STDINT_H
460 #  include <stdint.h>
461 # endif
462 #endif
463 #if HAVE_UNISTD_H
464 # include <unistd.h>
465 #endif"
466
467 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 CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL PERLBIN OL_MKDEP OL_MKDEP_FLAGS LTSTATIC LIBOBJS LIBSRCS PLAT WITH_SASL WITH_TLS WITH_MODULES_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_GLUE BUILD_LASTMOD BUILD_PPOLICY BUILD_PROXYCACHE BUILD_REFINT BUILD_RETCODE BUILD_RWM BUILD_SYNCPROV BUILD_TRANSLUCENT BUILD_UNIQUE 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'
468 ac_subst_files=''
469
470 # Initialize some variables set by options.
471 ac_init_help=
472 ac_init_version=false
473 # The variables have the same names as the options, with
474 # dashes changed to underlines.
475 cache_file=/dev/null
476 exec_prefix=NONE
477 no_create=
478 no_recursion=
479 prefix=NONE
480 program_prefix=NONE
481 program_suffix=NONE
482 program_transform_name=s,x,x,
483 silent=
484 site=
485 srcdir=
486 verbose=
487 x_includes=NONE
488 x_libraries=NONE
489
490 # Installation directory options.
491 # These are left unexpanded so users can "make install exec_prefix=/foo"
492 # and all the variables that are supposed to be based on exec_prefix
493 # by default will actually change.
494 # Use braces instead of parens because sh, perl, etc. also accept them.
495 bindir='${exec_prefix}/bin'
496 sbindir='${exec_prefix}/sbin'
497 libexecdir='${exec_prefix}/libexec'
498 datadir='${prefix}/share'
499 sysconfdir='${prefix}/etc'
500 sharedstatedir='${prefix}/com'
501 localstatedir='${prefix}/var'
502 libdir='${exec_prefix}/lib'
503 includedir='${prefix}/include'
504 oldincludedir='/usr/include'
505 infodir='${prefix}/info'
506 mandir='${prefix}/man'
507
508 ac_prev=
509 for ac_option
510 do
511   # If the previous option needs an argument, assign it.
512   if test -n "$ac_prev"; then
513     eval "$ac_prev=\$ac_option"
514     ac_prev=
515     continue
516   fi
517
518   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
519
520   # Accept the important Cygnus configure options, so we can diagnose typos.
521
522   case $ac_option in
523
524   -bindir | --bindir | --bindi | --bind | --bin | --bi)
525     ac_prev=bindir ;;
526   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
527     bindir=$ac_optarg ;;
528
529   -build | --build | --buil | --bui | --bu)
530     ac_prev=build_alias ;;
531   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
532     build_alias=$ac_optarg ;;
533
534   -cache-file | --cache-file | --cache-fil | --cache-fi \
535   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
536     ac_prev=cache_file ;;
537   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
538   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
539     cache_file=$ac_optarg ;;
540
541   --config-cache | -C)
542     cache_file=config.cache ;;
543
544   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
545     ac_prev=datadir ;;
546   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
547   | --da=*)
548     datadir=$ac_optarg ;;
549
550   -disable-* | --disable-*)
551     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
552     # Reject names that are not valid shell variable names.
553     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
554       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
555    { (exit 1); exit 1; }; }
556     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
557     eval "enable_$ac_feature=no" ;;
558
559   -enable-* | --enable-*)
560     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
561     # Reject names that are not valid shell variable names.
562     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
563       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
564    { (exit 1); exit 1; }; }
565     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
566     case $ac_option in
567       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
568       *) ac_optarg=yes ;;
569     esac
570     eval "enable_$ac_feature='$ac_optarg'" ;;
571
572   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
573   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
574   | --exec | --exe | --ex)
575     ac_prev=exec_prefix ;;
576   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
577   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
578   | --exec=* | --exe=* | --ex=*)
579     exec_prefix=$ac_optarg ;;
580
581   -gas | --gas | --ga | --g)
582     # Obsolete; use --with-gas.
583     with_gas=yes ;;
584
585   -help | --help | --hel | --he | -h)
586     ac_init_help=long ;;
587   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
588     ac_init_help=recursive ;;
589   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
590     ac_init_help=short ;;
591
592   -host | --host | --hos | --ho)
593     ac_prev=host_alias ;;
594   -host=* | --host=* | --hos=* | --ho=*)
595     host_alias=$ac_optarg ;;
596
597   -includedir | --includedir | --includedi | --included | --include \
598   | --includ | --inclu | --incl | --inc)
599     ac_prev=includedir ;;
600   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
601   | --includ=* | --inclu=* | --incl=* | --inc=*)
602     includedir=$ac_optarg ;;
603
604   -infodir | --infodir | --infodi | --infod | --info | --inf)
605     ac_prev=infodir ;;
606   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
607     infodir=$ac_optarg ;;
608
609   -libdir | --libdir | --libdi | --libd)
610     ac_prev=libdir ;;
611   -libdir=* | --libdir=* | --libdi=* | --libd=*)
612     libdir=$ac_optarg ;;
613
614   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
615   | --libexe | --libex | --libe)
616     ac_prev=libexecdir ;;
617   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
618   | --libexe=* | --libex=* | --libe=*)
619     libexecdir=$ac_optarg ;;
620
621   -localstatedir | --localstatedir | --localstatedi | --localstated \
622   | --localstate | --localstat | --localsta | --localst \
623   | --locals | --local | --loca | --loc | --lo)
624     ac_prev=localstatedir ;;
625   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
626   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
627   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
628     localstatedir=$ac_optarg ;;
629
630   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
631     ac_prev=mandir ;;
632   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
633     mandir=$ac_optarg ;;
634
635   -nfp | --nfp | --nf)
636     # Obsolete; use --without-fp.
637     with_fp=no ;;
638
639   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
640   | --no-cr | --no-c | -n)
641     no_create=yes ;;
642
643   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
644   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
645     no_recursion=yes ;;
646
647   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
648   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
649   | --oldin | --oldi | --old | --ol | --o)
650     ac_prev=oldincludedir ;;
651   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
652   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
653   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
654     oldincludedir=$ac_optarg ;;
655
656   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
657     ac_prev=prefix ;;
658   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
659     prefix=$ac_optarg ;;
660
661   -program-prefix | --program-prefix | --program-prefi | --program-pref \
662   | --program-pre | --program-pr | --program-p)
663     ac_prev=program_prefix ;;
664   -program-prefix=* | --program-prefix=* | --program-prefi=* \
665   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
666     program_prefix=$ac_optarg ;;
667
668   -program-suffix | --program-suffix | --program-suffi | --program-suff \
669   | --program-suf | --program-su | --program-s)
670     ac_prev=program_suffix ;;
671   -program-suffix=* | --program-suffix=* | --program-suffi=* \
672   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
673     program_suffix=$ac_optarg ;;
674
675   -program-transform-name | --program-transform-name \
676   | --program-transform-nam | --program-transform-na \
677   | --program-transform-n | --program-transform- \
678   | --program-transform | --program-transfor \
679   | --program-transfo | --program-transf \
680   | --program-trans | --program-tran \
681   | --progr-tra | --program-tr | --program-t)
682     ac_prev=program_transform_name ;;
683   -program-transform-name=* | --program-transform-name=* \
684   | --program-transform-nam=* | --program-transform-na=* \
685   | --program-transform-n=* | --program-transform-=* \
686   | --program-transform=* | --program-transfor=* \
687   | --program-transfo=* | --program-transf=* \
688   | --program-trans=* | --program-tran=* \
689   | --progr-tra=* | --program-tr=* | --program-t=*)
690     program_transform_name=$ac_optarg ;;
691
692   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
693   | -silent | --silent | --silen | --sile | --sil)
694     silent=yes ;;
695
696   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
697     ac_prev=sbindir ;;
698   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
699   | --sbi=* | --sb=*)
700     sbindir=$ac_optarg ;;
701
702   -sharedstatedir | --sharedstatedir | --sharedstatedi \
703   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
704   | --sharedst | --shareds | --shared | --share | --shar \
705   | --sha | --sh)
706     ac_prev=sharedstatedir ;;
707   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
708   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
709   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
710   | --sha=* | --sh=*)
711     sharedstatedir=$ac_optarg ;;
712
713   -site | --site | --sit)
714     ac_prev=site ;;
715   -site=* | --site=* | --sit=*)
716     site=$ac_optarg ;;
717
718   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
719     ac_prev=srcdir ;;
720   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
721     srcdir=$ac_optarg ;;
722
723   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
724   | --syscon | --sysco | --sysc | --sys | --sy)
725     ac_prev=sysconfdir ;;
726   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
727   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
728     sysconfdir=$ac_optarg ;;
729
730   -target | --target | --targe | --targ | --tar | --ta | --t)
731     ac_prev=target_alias ;;
732   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
733     target_alias=$ac_optarg ;;
734
735   -v | -verbose | --verbose | --verbos | --verbo | --verb)
736     verbose=yes ;;
737
738   -version | --version | --versio | --versi | --vers | -V)
739     ac_init_version=: ;;
740
741   -with-* | --with-*)
742     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
743     # Reject names that are not valid shell variable names.
744     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
745       { echo "$as_me: error: invalid package name: $ac_package" >&2
746    { (exit 1); exit 1; }; }
747     ac_package=`echo $ac_package| sed 's/-/_/g'`
748     case $ac_option in
749       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
750       *) ac_optarg=yes ;;
751     esac
752     eval "with_$ac_package='$ac_optarg'" ;;
753
754   -without-* | --without-*)
755     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
756     # Reject names that are not valid shell variable names.
757     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
758       { echo "$as_me: error: invalid package name: $ac_package" >&2
759    { (exit 1); exit 1; }; }
760     ac_package=`echo $ac_package | sed 's/-/_/g'`
761     eval "with_$ac_package=no" ;;
762
763   --x)
764     # Obsolete; use --with-x.
765     with_x=yes ;;
766
767   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
768   | --x-incl | --x-inc | --x-in | --x-i)
769     ac_prev=x_includes ;;
770   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
771   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
772     x_includes=$ac_optarg ;;
773
774   -x-libraries | --x-libraries | --x-librarie | --x-librari \
775   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
776     ac_prev=x_libraries ;;
777   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
778   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
779     x_libraries=$ac_optarg ;;
780
781   -*) { echo "$as_me: error: unrecognized option: $ac_option
782 Try \`$0 --help' for more information." >&2
783    { (exit 1); exit 1; }; }
784     ;;
785
786   *=*)
787     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
788     # Reject names that are not valid shell variable names.
789     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
790       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
791    { (exit 1); exit 1; }; }
792     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
793     eval "$ac_envvar='$ac_optarg'"
794     export $ac_envvar ;;
795
796   *)
797     # FIXME: should be removed in autoconf 3.0.
798     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
799     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
800       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
801     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
802     ;;
803
804   esac
805 done
806
807 if test -n "$ac_prev"; then
808   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
809   { echo "$as_me: error: missing argument to $ac_option" >&2
810    { (exit 1); exit 1; }; }
811 fi
812
813 # Be sure to have absolute paths.
814 for ac_var in exec_prefix prefix
815 do
816   eval ac_val=$`echo $ac_var`
817   case $ac_val in
818     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
819     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
820    { (exit 1); exit 1; }; };;
821   esac
822 done
823
824 # Be sure to have absolute paths.
825 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
826               localstatedir libdir includedir oldincludedir infodir mandir
827 do
828   eval ac_val=$`echo $ac_var`
829   case $ac_val in
830     [\\/$]* | ?:[\\/]* ) ;;
831     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
832    { (exit 1); exit 1; }; };;
833   esac
834 done
835
836 # There might be people who depend on the old broken behavior: `$host'
837 # used to hold the argument of --host etc.
838 # FIXME: To remove some day.
839 build=$build_alias
840 host=$host_alias
841 target=$target_alias
842
843 # FIXME: To remove some day.
844 if test "x$host_alias" != x; then
845   if test "x$build_alias" = x; then
846     cross_compiling=maybe
847     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
848     If a cross compiler is detected then cross compile mode will be used." >&2
849   elif test "x$build_alias" != "x$host_alias"; then
850     cross_compiling=yes
851   fi
852 fi
853
854 ac_tool_prefix=
855 test -n "$host_alias" && ac_tool_prefix=$host_alias-
856
857 test "$silent" = yes && exec 6>/dev/null
858
859
860 # Find the source files, if location was not specified.
861 if test -z "$srcdir"; then
862   ac_srcdir_defaulted=yes
863   # Try the directory containing this script, then its parent.
864   ac_confdir=`(dirname "$0") 2>/dev/null ||
865 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
866          X"$0" : 'X\(//\)[^/]' \| \
867          X"$0" : 'X\(//\)$' \| \
868          X"$0" : 'X\(/\)' \| \
869          .     : '\(.\)' 2>/dev/null ||
870 echo X"$0" |
871     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
872           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
873           /^X\(\/\/\)$/{ s//\1/; q; }
874           /^X\(\/\).*/{ s//\1/; q; }
875           s/.*/./; q'`
876   srcdir=$ac_confdir
877   if test ! -r $srcdir/$ac_unique_file; then
878     srcdir=..
879   fi
880 else
881   ac_srcdir_defaulted=no
882 fi
883 if test ! -r $srcdir/$ac_unique_file; then
884   if test "$ac_srcdir_defaulted" = yes; then
885     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
886    { (exit 1); exit 1; }; }
887   else
888     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
889    { (exit 1); exit 1; }; }
890   fi
891 fi
892 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
893   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
894    { (exit 1); exit 1; }; }
895 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
896 ac_env_build_alias_set=${build_alias+set}
897 ac_env_build_alias_value=$build_alias
898 ac_cv_env_build_alias_set=${build_alias+set}
899 ac_cv_env_build_alias_value=$build_alias
900 ac_env_host_alias_set=${host_alias+set}
901 ac_env_host_alias_value=$host_alias
902 ac_cv_env_host_alias_set=${host_alias+set}
903 ac_cv_env_host_alias_value=$host_alias
904 ac_env_target_alias_set=${target_alias+set}
905 ac_env_target_alias_value=$target_alias
906 ac_cv_env_target_alias_set=${target_alias+set}
907 ac_cv_env_target_alias_value=$target_alias
908 ac_env_CC_set=${CC+set}
909 ac_env_CC_value=$CC
910 ac_cv_env_CC_set=${CC+set}
911 ac_cv_env_CC_value=$CC
912 ac_env_CFLAGS_set=${CFLAGS+set}
913 ac_env_CFLAGS_value=$CFLAGS
914 ac_cv_env_CFLAGS_set=${CFLAGS+set}
915 ac_cv_env_CFLAGS_value=$CFLAGS
916 ac_env_LDFLAGS_set=${LDFLAGS+set}
917 ac_env_LDFLAGS_value=$LDFLAGS
918 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
919 ac_cv_env_LDFLAGS_value=$LDFLAGS
920 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
921 ac_env_CPPFLAGS_value=$CPPFLAGS
922 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
923 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
924 ac_env_CPP_set=${CPP+set}
925 ac_env_CPP_value=$CPP
926 ac_cv_env_CPP_set=${CPP+set}
927 ac_cv_env_CPP_value=$CPP
928 ac_env_CXX_set=${CXX+set}
929 ac_env_CXX_value=$CXX
930 ac_cv_env_CXX_set=${CXX+set}
931 ac_cv_env_CXX_value=$CXX
932 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
933 ac_env_CXXFLAGS_value=$CXXFLAGS
934 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
935 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
936 ac_env_CXXCPP_set=${CXXCPP+set}
937 ac_env_CXXCPP_value=$CXXCPP
938 ac_cv_env_CXXCPP_set=${CXXCPP+set}
939 ac_cv_env_CXXCPP_value=$CXXCPP
940 ac_env_F77_set=${F77+set}
941 ac_env_F77_value=$F77
942 ac_cv_env_F77_set=${F77+set}
943 ac_cv_env_F77_value=$F77
944 ac_env_FFLAGS_set=${FFLAGS+set}
945 ac_env_FFLAGS_value=$FFLAGS
946 ac_cv_env_FFLAGS_set=${FFLAGS+set}
947 ac_cv_env_FFLAGS_value=$FFLAGS
948
949 #
950 # Report the --help message.
951 #
952 if test "$ac_init_help" = "long"; then
953   # Omit some internal or obsolete options to make the list less imposing.
954   # This message is too long to be a string in the A/UX 3.1 sh.
955   cat <<_ACEOF
956 \`configure' configures this package to adapt to many kinds of systems.
957
958 Usage: $0 [OPTION]... [VAR=VALUE]...
959
960 To assign environment variables (e.g., CC, CFLAGS...), specify them as
961 VAR=VALUE.  See below for descriptions of some of the useful variables.
962
963 Defaults for the options are specified in brackets.
964
965 Configuration:
966   -h, --help              display this help and exit
967       --help=short        display options specific to this package
968       --help=recursive    display the short help of all the included packages
969   -V, --version           display version information and exit
970   -q, --quiet, --silent   do not print \`checking...' messages
971       --cache-file=FILE   cache test results in FILE [disabled]
972   -C, --config-cache      alias for \`--cache-file=config.cache'
973   -n, --no-create         do not create output files
974       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
975
976 _ACEOF
977
978   cat <<_ACEOF
979 Installation directories:
980   --prefix=PREFIX         install architecture-independent files in PREFIX
981                           [$ac_default_prefix]
982   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
983                           [PREFIX]
984
985 By default, \`make install' will install all the files in
986 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
987 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
988 for instance \`--prefix=\$HOME'.
989
990 For better control, use the options below.
991
992 Fine tuning of the installation directories:
993   --bindir=DIR           user executables [EPREFIX/bin]
994   --sbindir=DIR          system admin executables [EPREFIX/sbin]
995   --libexecdir=DIR       program executables [EPREFIX/libexec]
996   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
997   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
998   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
999   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1000   --libdir=DIR           object code libraries [EPREFIX/lib]
1001   --includedir=DIR       C header files [PREFIX/include]
1002   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1003   --infodir=DIR          info documentation [PREFIX/info]
1004   --mandir=DIR           man documentation [PREFIX/man]
1005 _ACEOF
1006
1007   cat <<\_ACEOF
1008
1009 Program names:
1010   --program-prefix=PREFIX            prepend PREFIX to installed program names
1011   --program-suffix=SUFFIX            append SUFFIX to installed program names
1012   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1013
1014 System types:
1015   --build=BUILD     configure for building on BUILD [guessed]
1016   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1017   --target=TARGET   configure for building compilers for TARGET [HOST]
1018 _ACEOF
1019 fi
1020
1021 if test -n "$ac_init_help"; then
1022
1023   cat <<\_ACEOF
1024
1025 Optional Features:
1026   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1027   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1028   --enable-debug          enable debugging yes
1029   --enable-dynamic        enable linking built binaries with dynamic libs no
1030   --enable-syslog         enable syslog support auto
1031   --enable-proctitle      enable proctitle support yes
1032   --enable-ipv6           enable IPv6 support auto
1033   --enable-local          enable AF_LOCAL (AF_UNIX) socket support auto
1034   --enable-slapd          enable building slapd yes
1035     --enable-aci          enable per-object ACIs (experimental) no
1036     --enable-cleartext    enable cleartext passwords yes
1037     --enable-crypt        enable crypt(3) passwords no
1038     --enable-lmpasswd     enable LAN Manager passwords no
1039     --enable-spasswd      enable (Cyrus) SASL password verification no
1040     --enable-modules      enable dynamic module support no
1041     --enable-rewrite      enable DN rewriting in back-ldap and rwm overlay auto
1042     --enable-rlookups     enable reverse lookups of client hostnames no
1043     --enable-slapi        enable SLAPI support (experimental) no
1044     --enable-slp          enable SLPv2 support no
1045     --enable-wrappers     enable tcp wrapper support no
1046     --enable-backends     enable all available backends no|yes|mod
1047     --enable-bdb          enable Berkeley DB backend no|yes|mod ${ol_dflt_backends-yes}
1048     --enable-dnssrv       enable dnssrv backend no|yes|mod ${ol_dflt_backends-no}
1049     --enable-hdb          enable Hierarchical DB backend no|yes|mod ${ol_dflt_backends-yes}
1050     --enable-ldap         enable ldap backend no|yes|mod ${ol_dflt_backends-no}
1051     --enable-ldbm         enable ldbm backend no|yes|mod ${ol_dflt_backends-no}
1052     --enable-meta         enable metadirectory backend no|yes|mod ${ol_dflt_backends-no}
1053     --enable-monitor      enable monitor backend no|yes|mod ${ol_dflt_backends-yes}
1054     --enable-null         enable null backend no|yes|mod ${ol_dflt_backends-no}
1055     --enable-passwd       enable passwd backend no|yes|mod ${ol_dflt_backends-no}
1056     --enable-perl         enable perl backend no|yes|mod ${ol_dflt_backends-no}
1057     --enable-relay        enable relay backend no|yes|mod ${ol_dflt_backends-yes}
1058     --enable-shell        enable shell backend no|yes|mod ${ol_dflt_backends-no}
1059     --enable-sql          enable sql backend no|yes|mod ${ol_dflt_backends-no}
1060     --enable-overlays     enable all available overlays no|yes|mod
1061     --enable-accesslog    In-Directory Access Logging overlay no|yes|mod ${ol_dflt_overlays-no}
1062     --enable-denyop       Deny Operation overlay no|yes|mod ${ol_dflt_overlays-no}
1063     --enable-dyngroup     Dynamic Group overlay no|yes|mod ${ol_dflt_overlays-no}
1064     --enable-dynlist      Dynamic List overlay no|yes|mod ${ol_dflt_overlays-no}
1065     --enable-glue         Backend Glue overlay no|yes|mod ${ol_dflt_overlays-yes}
1066     --enable-lastmod      Last Modification overlay no|yes|mod ${ol_dflt_overlays-no}
1067     --enable-ppolicy      Password Policy overlay no|yes|mod ${ol_dflt_overlays-no}
1068     --enable-proxycache   Proxy Cache overlay no|yes|mod ${ol_dflt_overlays-no}
1069     --enable-refint       Referential Integrity overlay no|yes|mod ${ol_dflt_overlays-no}
1070     --enable-retcode      Return Code testing overlay no|yes|mod ${ol_dflt_overlays-no}
1071     --enable-rwm          Rewrite/Remap overlay no|yes|mod ${ol_dflt_overlays-no}
1072     --enable-syncprov     Syncrepl Provider overlay no|yes|mod ${ol_dflt_overlays-yes}
1073     --enable-translucent  Translucent Proxy overlay no|yes|mod ${ol_dflt_overlays-no}
1074     --enable-unique       Attribute Uniqueness overlay no|yes|mod ${ol_dflt_overlays-no}
1075   --enable-slurpd         enable building slurpd auto
1076   --enable-static[=PKGS]
1077                           build static libraries [default=yes]
1078   --enable-shared[=PKGS]
1079                           build shared libraries [default=yes]
1080   --enable-fast-install[=PKGS]
1081                           optimize for fast installation [default=yes]
1082   --disable-dependency-tracking  speeds up one-time build
1083   --enable-dependency-tracking   do not reject slow dependency extractors
1084   --disable-libtool-lock  avoid locking (might break parallel builds)
1085
1086 Optional Packages:
1087   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1088   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1089   --with-subdir=DIR       change default subdirectory used for installs
1090   --with-cyrus-sasl       with Cyrus SASL support auto
1091   --with-fetch            with fetch(3) URL support auto
1092   --with-threads          with threads auto
1093   --with-tls              with TLS/SSL support auto
1094   --with-yielding-select  with implicitly yielding select auto
1095   --with-multiple-precision
1096                           multiple precision support for statistics
1097                           auto|bignum|gmp auto
1098
1099 SLAPD (Standalone LDAP Daemon) Options:
1100
1101 SLAPD Backend Options:
1102       --with-ldbm-api     with LDBM API auto|berkeley|bcompat|mdbm|gdbm auto
1103       --with-ldbm-type    use LDBM type auto|btree|hash auto
1104
1105 SLAPD Overlay Options:
1106
1107 SLURPD (Replication Daemon) Options:
1108
1109 Library Generation & Linking Options
1110   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1111   --with-pic              try to use only PIC/non-PIC objects [default=use
1112                           both]
1113   --with-tags[=TAGS]
1114                           include additional configurations [automatic]
1115
1116 See INSTALL file for further details.
1117
1118 Some influential environment variables:
1119   CC          C compiler command
1120   CFLAGS      C compiler flags
1121   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1122               nonstandard directory <lib dir>
1123   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1124               headers in a nonstandard directory <include dir>
1125   CPP         C preprocessor
1126   CXX         C++ compiler command
1127   CXXFLAGS    C++ compiler flags
1128   CXXCPP      C++ preprocessor
1129   F77         Fortran 77 compiler command
1130   FFLAGS      Fortran 77 compiler flags
1131
1132 Use these variables to override the choices made by `configure' or to help
1133 it to find libraries and programs with nonstandard names/locations.
1134
1135 _ACEOF
1136 fi
1137
1138 if test "$ac_init_help" = "recursive"; then
1139   # If there are subdirs, report their specific --help.
1140   ac_popdir=`pwd`
1141   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1142     test -d $ac_dir || continue
1143     ac_builddir=.
1144
1145 if test "$ac_dir" != .; then
1146   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1147   # A "../" for each directory in $ac_dir_suffix.
1148   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1149 else
1150   ac_dir_suffix= ac_top_builddir=
1151 fi
1152
1153 case $srcdir in
1154   .)  # No --srcdir option.  We are building in place.
1155     ac_srcdir=.
1156     if test -z "$ac_top_builddir"; then
1157        ac_top_srcdir=.
1158     else
1159        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1160     fi ;;
1161   [\\/]* | ?:[\\/]* )  # Absolute path.
1162     ac_srcdir=$srcdir$ac_dir_suffix;
1163     ac_top_srcdir=$srcdir ;;
1164   *) # Relative path.
1165     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1166     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1167 esac
1168
1169 # Do not use `cd foo && pwd` to compute absolute paths, because
1170 # the directories may not exist.
1171 case `pwd` in
1172 .) ac_abs_builddir="$ac_dir";;
1173 *)
1174   case "$ac_dir" in
1175   .) ac_abs_builddir=`pwd`;;
1176   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1177   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1178   esac;;
1179 esac
1180 case $ac_abs_builddir in
1181 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1182 *)
1183   case ${ac_top_builddir}. in
1184   .) ac_abs_top_builddir=$ac_abs_builddir;;
1185   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1186   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1187   esac;;
1188 esac
1189 case $ac_abs_builddir in
1190 .) ac_abs_srcdir=$ac_srcdir;;
1191 *)
1192   case $ac_srcdir in
1193   .) ac_abs_srcdir=$ac_abs_builddir;;
1194   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1195   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1196   esac;;
1197 esac
1198 case $ac_abs_builddir in
1199 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1200 *)
1201   case $ac_top_srcdir in
1202   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1203   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1204   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1205   esac;;
1206 esac
1207
1208     cd $ac_dir
1209     # Check for guested configure; otherwise get Cygnus style configure.
1210     if test -f $ac_srcdir/configure.gnu; then
1211       echo
1212       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1213     elif test -f $ac_srcdir/configure; then
1214       echo
1215       $SHELL $ac_srcdir/configure  --help=recursive
1216     elif test -f $ac_srcdir/configure.ac ||
1217            test -f $ac_srcdir/configure.in; then
1218       echo
1219       $ac_configure --help
1220     else
1221       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1222     fi
1223     cd $ac_popdir
1224   done
1225 fi
1226
1227 test -n "$ac_init_help" && exit 0
1228 if $ac_init_version; then
1229   cat <<\_ACEOF
1230
1231 Copyright (C) 2003 Free Software Foundation, Inc.
1232 This configure script is free software; the Free Software Foundation
1233 gives unlimited permission to copy, distribute and modify it.
1234 _ACEOF
1235   exit 0
1236 fi
1237 exec 5>config.log
1238 cat >&5 <<_ACEOF
1239 This file contains any messages produced by compilers while
1240 running configure, to aid debugging if configure makes a mistake.
1241
1242 It was created by $as_me, which was
1243 generated by GNU Autoconf 2.59.  Invocation command line was
1244
1245   $ $0 $@
1246
1247 _ACEOF
1248 {
1249 cat <<_ASUNAME
1250 ## --------- ##
1251 ## Platform. ##
1252 ## --------- ##
1253
1254 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1255 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1256 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1257 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1258 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1259
1260 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1261 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1262
1263 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1264 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1265 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1266 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1267 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1268 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1269 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1270
1271 _ASUNAME
1272
1273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1274 for as_dir in $PATH
1275 do
1276   IFS=$as_save_IFS
1277   test -z "$as_dir" && as_dir=.
1278   echo "PATH: $as_dir"
1279 done
1280
1281 } >&5
1282
1283 cat >&5 <<_ACEOF
1284
1285
1286 ## ----------- ##
1287 ## Core tests. ##
1288 ## ----------- ##
1289
1290 _ACEOF
1291
1292
1293 # Keep a trace of the command line.
1294 # Strip out --no-create and --no-recursion so they do not pile up.
1295 # Strip out --silent because we don't want to record it for future runs.
1296 # Also quote any args containing shell meta-characters.
1297 # Make two passes to allow for proper duplicate-argument suppression.
1298 ac_configure_args=
1299 ac_configure_args0=
1300 ac_configure_args1=
1301 ac_sep=
1302 ac_must_keep_next=false
1303 for ac_pass in 1 2
1304 do
1305   for ac_arg
1306   do
1307     case $ac_arg in
1308     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1309     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1310     | -silent | --silent | --silen | --sile | --sil)
1311       continue ;;
1312     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1313       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1314     esac
1315     case $ac_pass in
1316     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1317     2)
1318       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1319       if test $ac_must_keep_next = true; then
1320         ac_must_keep_next=false # Got value, back to normal.
1321       else
1322         case $ac_arg in
1323           *=* | --config-cache | -C | -disable-* | --disable-* \
1324           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1325           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1326           | -with-* | --with-* | -without-* | --without-* | --x)
1327             case "$ac_configure_args0 " in
1328               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1329             esac
1330             ;;
1331           -* ) ac_must_keep_next=true ;;
1332         esac
1333       fi
1334       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1335       # Get rid of the leading space.
1336       ac_sep=" "
1337       ;;
1338     esac
1339   done
1340 done
1341 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1342 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1343
1344 # When interrupted or exit'd, cleanup temporary files, and complete
1345 # config.log.  We remove comments because anyway the quotes in there
1346 # would cause problems or look ugly.
1347 # WARNING: Be sure not to use single quotes in there, as some shells,
1348 # such as our DU 5.0 friend, will then `close' the trap.
1349 trap 'exit_status=$?
1350   # Save into config.log some information that might help in debugging.
1351   {
1352     echo
1353
1354     cat <<\_ASBOX
1355 ## ---------------- ##
1356 ## Cache variables. ##
1357 ## ---------------- ##
1358 _ASBOX
1359     echo
1360     # The following way of writing the cache mishandles newlines in values,
1361 {
1362   (set) 2>&1 |
1363     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1364     *ac_space=\ *)
1365       sed -n \
1366         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1367           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1368       ;;
1369     *)
1370       sed -n \
1371         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1372       ;;
1373     esac;
1374 }
1375     echo
1376
1377     cat <<\_ASBOX
1378 ## ----------------- ##
1379 ## Output variables. ##
1380 ## ----------------- ##
1381 _ASBOX
1382     echo
1383     for ac_var in $ac_subst_vars
1384     do
1385       eval ac_val=$`echo $ac_var`
1386       echo "$ac_var='"'"'$ac_val'"'"'"
1387     done | sort
1388     echo
1389
1390     if test -n "$ac_subst_files"; then
1391       cat <<\_ASBOX
1392 ## ------------- ##
1393 ## Output files. ##
1394 ## ------------- ##
1395 _ASBOX
1396       echo
1397       for ac_var in $ac_subst_files
1398       do
1399         eval ac_val=$`echo $ac_var`
1400         echo "$ac_var='"'"'$ac_val'"'"'"
1401       done | sort
1402       echo
1403     fi
1404
1405     if test -s confdefs.h; then
1406       cat <<\_ASBOX
1407 ## ----------- ##
1408 ## confdefs.h. ##
1409 ## ----------- ##
1410 _ASBOX
1411       echo
1412       sed "/^$/d" confdefs.h | sort
1413       echo
1414     fi
1415     test "$ac_signal" != 0 &&
1416       echo "$as_me: caught signal $ac_signal"
1417     echo "$as_me: exit $exit_status"
1418   } >&5
1419   rm -f core *.core &&
1420   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1421     exit $exit_status
1422      ' 0
1423 for ac_signal in 1 2 13 15; do
1424   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1425 done
1426 ac_signal=0
1427
1428 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1429 rm -rf conftest* confdefs.h
1430 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1431 echo >confdefs.h
1432
1433 # Predefined preprocessor variables.
1434
1435 cat >>confdefs.h <<_ACEOF
1436 #define PACKAGE_NAME "$PACKAGE_NAME"
1437 _ACEOF
1438
1439
1440 cat >>confdefs.h <<_ACEOF
1441 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1442 _ACEOF
1443
1444
1445 cat >>confdefs.h <<_ACEOF
1446 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1447 _ACEOF
1448
1449
1450 cat >>confdefs.h <<_ACEOF
1451 #define PACKAGE_STRING "$PACKAGE_STRING"
1452 _ACEOF
1453
1454
1455 cat >>confdefs.h <<_ACEOF
1456 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1457 _ACEOF
1458
1459
1460 # Let the site file select an alternate cache file if it wants to.
1461 # Prefer explicitly selected file to automatically selected ones.
1462 if test -z "$CONFIG_SITE"; then
1463   if test "x$prefix" != xNONE; then
1464     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1465   else
1466     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1467   fi
1468 fi
1469 for ac_site_file in $CONFIG_SITE; do
1470   if test -r "$ac_site_file"; then
1471     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1472 echo "$as_me: loading site script $ac_site_file" >&6;}
1473     sed 's/^/| /' "$ac_site_file" >&5
1474     . "$ac_site_file"
1475   fi
1476 done
1477
1478
1479 # Check that the precious variables saved in the cache have kept the same
1480 # value.
1481 ac_cache_corrupted=false
1482 for ac_var in `(set) 2>&1 |
1483                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1484   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1485   eval ac_new_set=\$ac_env_${ac_var}_set
1486   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1487   eval ac_new_val="\$ac_env_${ac_var}_value"
1488   case $ac_old_set,$ac_new_set in
1489     set,)
1490       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1491 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1492       ac_cache_corrupted=: ;;
1493     ,set)
1494       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1495 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1496       ac_cache_corrupted=: ;;
1497     ,);;
1498     *)
1499       if test "x$ac_old_val" != "x$ac_new_val"; then
1500         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1501 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1502         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1503 echo "$as_me:   former value:  $ac_old_val" >&2;}
1504         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1505 echo "$as_me:   current value: $ac_new_val" >&2;}
1506         ac_cache_corrupted=:
1507       fi;;
1508   esac
1509   # Pass precious variables to config.status.
1510   if test "$ac_new_set" = set; then
1511     case $ac_new_val in
1512     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1513       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1514     *) ac_arg=$ac_var=$ac_new_val ;;
1515     esac
1516     case " $ac_configure_args " in
1517       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1518       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1519     esac
1520   fi
1521 done
1522 if $ac_cache_corrupted; then
1523   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1524 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1525   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1526 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1527    { (exit 1); exit 1; }; }
1528 fi
1529
1530 ac_ext=c
1531 ac_cpp='$CPP $CPPFLAGS'
1532 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1533 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1534 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554 # set unset (borrowed from autoconf 2.49c)
1555 if (OL_FOO=OL_FOO; unset OL_FOO) >/dev/null 2>&1; then
1556   ol_unset=unset
1557 else
1558   ol_unset=false
1559 fi
1560 # unset CDPATH
1561 $ol_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
1562
1563 ac_aux_dir=
1564 for ac_dir in build $srcdir/build; do
1565   if test -f $ac_dir/install-sh; then
1566     ac_aux_dir=$ac_dir
1567     ac_install_sh="$ac_aux_dir/install-sh -c"
1568     break
1569   elif test -f $ac_dir/install.sh; then
1570     ac_aux_dir=$ac_dir
1571     ac_install_sh="$ac_aux_dir/install.sh -c"
1572     break
1573   elif test -f $ac_dir/shtool; then
1574     ac_aux_dir=$ac_dir
1575     ac_install_sh="$ac_aux_dir/shtool install -c"
1576     break
1577   fi
1578 done
1579 if test -z "$ac_aux_dir"; then
1580   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build $srcdir/build" >&5
1581 echo "$as_me: error: cannot find install-sh or install.sh in build $srcdir/build" >&2;}
1582    { (exit 1); exit 1; }; }
1583 fi
1584 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1585 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1586 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1587
1588 eval `$ac_aux_dir/version.sh`
1589 if test -z "$OL_STRING"; then
1590         { { echo "$as_me:$LINENO: error: could not determine version" >&5
1591 echo "$as_me: error: could not determine version" >&2;}
1592    { (exit 1); exit 1; }; }
1593 fi
1594
1595 if test -f "$ac_aux_dir/shtool" -a ! -d $ac_aux_dir/shtool; then
1596         ac_cv_shtool="$ac_aux_dir/shtool"
1597 else
1598         { { echo "$as_me:$LINENO: error: no shtool found in $ac_aux_dir" >&5
1599 echo "$as_me: error: no shtool found in $ac_aux_dir" >&2;}
1600    { (exit 1); exit 1; }; }
1601 fi
1602
1603 SHTOOL="$ac_cv_shtool"
1604
1605 TB="`$SHTOOL echo -e '%B' 2>/dev/null`"
1606 TN="`$SHTOOL echo -e '%b' 2>/dev/null`"
1607
1608 OPENLDAP_CVS=""
1609 if test -d $ac_aux_dir/CVS; then
1610         OPENLDAP_CVS="(from CVS sources) "
1611 fi
1612
1613 echo "Configuring ${TB}${OL_STRING}${TN} ${OPENLDAP_CVS}..."
1614
1615 # Make sure we can run config.sub.
1616 $ac_config_sub sun4 >/dev/null 2>&1 ||
1617   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1618 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1619    { (exit 1); exit 1; }; }
1620
1621 echo "$as_me:$LINENO: checking build system type" >&5
1622 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1623 if test "${ac_cv_build+set}" = set; then
1624   echo $ECHO_N "(cached) $ECHO_C" >&6
1625 else
1626   ac_cv_build_alias=$build_alias
1627 test -z "$ac_cv_build_alias" &&
1628   ac_cv_build_alias=`$ac_config_guess`
1629 test -z "$ac_cv_build_alias" &&
1630   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1631 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1632    { (exit 1); exit 1; }; }
1633 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1634   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1635 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1636    { (exit 1); exit 1; }; }
1637
1638 fi
1639 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1640 echo "${ECHO_T}$ac_cv_build" >&6
1641 build=$ac_cv_build
1642 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1643 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1644 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1645
1646
1647 echo "$as_me:$LINENO: checking host system type" >&5
1648 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1649 if test "${ac_cv_host+set}" = set; then
1650   echo $ECHO_N "(cached) $ECHO_C" >&6
1651 else
1652   ac_cv_host_alias=$host_alias
1653 test -z "$ac_cv_host_alias" &&
1654   ac_cv_host_alias=$ac_cv_build_alias
1655 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1656   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1657 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1658    { (exit 1); exit 1; }; }
1659
1660 fi
1661 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1662 echo "${ECHO_T}$ac_cv_host" >&6
1663 host=$ac_cv_host
1664 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1665 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1666 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1667
1668
1669 echo "$as_me:$LINENO: checking target system type" >&5
1670 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1671 if test "${ac_cv_target+set}" = set; then
1672   echo $ECHO_N "(cached) $ECHO_C" >&6
1673 else
1674   ac_cv_target_alias=$target_alias
1675 test "x$ac_cv_target_alias" = "x" &&
1676   ac_cv_target_alias=$ac_cv_host_alias
1677 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1678   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1679 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1680    { (exit 1); exit 1; }; }
1681
1682 fi
1683 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1684 echo "${ECHO_T}$ac_cv_target" >&6
1685 target=$ac_cv_target
1686 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1687 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1688 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1689
1690
1691 # The aliases save the names the user supplied, while $host etc.
1692 # will get canonicalized.
1693 test -n "$target_alias" &&
1694   test "$program_prefix$program_suffix$program_transform_name" = \
1695     NONENONEs,x,x, &&
1696   program_prefix=${target_alias}-
1697
1698 am__api_version="1.9"
1699 # Find a good install program.  We prefer a C program (faster),
1700 # so one script is as good as another.  But avoid the broken or
1701 # incompatible versions:
1702 # SysV /etc/install, /usr/sbin/install
1703 # SunOS /usr/etc/install
1704 # IRIX /sbin/install
1705 # AIX /bin/install
1706 # AmigaOS /C/install, which installs bootblocks on floppy discs
1707 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1708 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1709 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1710 # OS/2's system install, which has a completely different semantic
1711 # ./install, which can be erroneously created by make from ./install.sh.
1712 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1713 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1714 if test -z "$INSTALL"; then
1715 if test "${ac_cv_path_install+set}" = set; then
1716   echo $ECHO_N "(cached) $ECHO_C" >&6
1717 else
1718   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1719 for as_dir in $PATH
1720 do
1721   IFS=$as_save_IFS
1722   test -z "$as_dir" && as_dir=.
1723   # Account for people who put trailing slashes in PATH elements.
1724 case $as_dir/ in
1725   ./ | .// | /cC/* | \
1726   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1727   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1728   /usr/ucb/* ) ;;
1729   *)
1730     # OSF1 and SCO ODT 3.0 have their own names for install.
1731     # Don't use installbsd from OSF since it installs stuff as root
1732     # by default.
1733     for ac_prog in ginstall scoinst install; do
1734       for ac_exec_ext in '' $ac_executable_extensions; do
1735         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1736           if test $ac_prog = install &&
1737             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1738             # AIX install.  It has an incompatible calling convention.
1739             :
1740           elif test $ac_prog = install &&
1741             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1742             # program-specific install script used by HP pwplus--don't use.
1743             :
1744           else
1745             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1746             break 3
1747           fi
1748         fi
1749       done
1750     done
1751     ;;
1752 esac
1753 done
1754
1755
1756 fi
1757   if test "${ac_cv_path_install+set}" = set; then
1758     INSTALL=$ac_cv_path_install
1759   else
1760     # As a last resort, use the slow shell script.  We don't cache a
1761     # path for INSTALL within a source directory, because that will
1762     # break other packages using the cache if that directory is
1763     # removed, or if the path is relative.
1764     INSTALL=$ac_install_sh
1765   fi
1766 fi
1767 echo "$as_me:$LINENO: result: $INSTALL" >&5
1768 echo "${ECHO_T}$INSTALL" >&6
1769
1770 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1771 # It thinks the first close brace ends the variable substitution.
1772 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1773
1774 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1775
1776 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1777
1778 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1779 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1780 # Just in case
1781 sleep 1
1782 echo timestamp > conftest.file
1783 # Do `set' in a subshell so we don't clobber the current shell's
1784 # arguments.  Must try -L first in case configure is actually a
1785 # symlink; some systems play weird games with the mod time of symlinks
1786 # (eg FreeBSD returns the mod time of the symlink's containing
1787 # directory).
1788 if (
1789    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1790    if test "$*" = "X"; then
1791       # -L didn't work.
1792       set X `ls -t $srcdir/configure conftest.file`
1793    fi
1794    rm -f conftest.file
1795    if test "$*" != "X $srcdir/configure conftest.file" \
1796       && test "$*" != "X conftest.file $srcdir/configure"; then
1797
1798       # If neither matched, then we have a broken ls.  This can happen
1799       # if, for instance, CONFIG_SHELL is bash and it inherits a
1800       # broken ls alias from the environment.  This has actually
1801       # happened.  Such a system could not be considered "sane".
1802       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1803 alias in your environment" >&5
1804 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1805 alias in your environment" >&2;}
1806    { (exit 1); exit 1; }; }
1807    fi
1808
1809    test "$2" = conftest.file
1810    )
1811 then
1812    # Ok.
1813    :
1814 else
1815    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1816 Check your system clock" >&5
1817 echo "$as_me: error: newly created file is older than distributed files!
1818 Check your system clock" >&2;}
1819    { (exit 1); exit 1; }; }
1820 fi
1821 echo "$as_me:$LINENO: result: yes" >&5
1822 echo "${ECHO_T}yes" >&6
1823 test "$program_prefix" != NONE &&
1824   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1825 # Use a double $ so make ignores it.
1826 test "$program_suffix" != NONE &&
1827   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1828 # Double any \ or $.  echo might interpret backslashes.
1829 # By default was `s,x,x', remove it if useless.
1830 cat <<\_ACEOF >conftest.sed
1831 s/[\\$]/&&/g;s/;s,x,x,$//
1832 _ACEOF
1833 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1834 rm conftest.sed
1835
1836 # expand $ac_aux_dir to an absolute path
1837 am_aux_dir=`cd $ac_aux_dir && pwd`
1838
1839 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1840 # Use eval to expand $SHELL
1841 if eval "$MISSING --run true"; then
1842   am_missing_run="$MISSING --run "
1843 else
1844   am_missing_run=
1845   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1846 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1847 fi
1848
1849 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1850   # We used to keeping the `.' as first argument, in order to
1851   # allow $(mkdir_p) to be used without argument.  As in
1852   #   $(mkdir_p) $(somedir)
1853   # where $(somedir) is conditionally defined.  However this is wrong
1854   # for two reasons:
1855   #  1. if the package is installed by a user who cannot write `.'
1856   #     make install will fail,
1857   #  2. the above comment should most certainly read
1858   #     $(mkdir_p) $(DESTDIR)$(somedir)
1859   #     so it does not work when $(somedir) is undefined and
1860   #     $(DESTDIR) is not.
1861   #  To support the latter case, we have to write
1862   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1863   #  so the `.' trick is pointless.
1864   mkdir_p='mkdir -p --'
1865 else
1866   # On NextStep and OpenStep, the `mkdir' command does not
1867   # recognize any option.  It will interpret all options as
1868   # directories to create, and then abort because `.' already
1869   # exists.
1870   for d in ./-p ./--version;
1871   do
1872     test -d $d && rmdir $d
1873   done
1874   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1875   if test -f "$ac_aux_dir/mkinstalldirs"; then
1876     mkdir_p='$(mkinstalldirs)'
1877   else
1878     mkdir_p='$(install_sh) -d'
1879   fi
1880 fi
1881
1882 for ac_prog in gawk mawk nawk awk
1883 do
1884   # Extract the first word of "$ac_prog", so it can be a program name with args.
1885 set dummy $ac_prog; ac_word=$2
1886 echo "$as_me:$LINENO: checking for $ac_word" >&5
1887 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1888 if test "${ac_cv_prog_AWK+set}" = set; then
1889   echo $ECHO_N "(cached) $ECHO_C" >&6
1890 else
1891   if test -n "$AWK"; then
1892   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1893 else
1894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1895 for as_dir in $PATH
1896 do
1897   IFS=$as_save_IFS
1898   test -z "$as_dir" && as_dir=.
1899   for ac_exec_ext in '' $ac_executable_extensions; do
1900   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1901     ac_cv_prog_AWK="$ac_prog"
1902     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1903     break 2
1904   fi
1905 done
1906 done
1907
1908 fi
1909 fi
1910 AWK=$ac_cv_prog_AWK
1911 if test -n "$AWK"; then
1912   echo "$as_me:$LINENO: result: $AWK" >&5
1913 echo "${ECHO_T}$AWK" >&6
1914 else
1915   echo "$as_me:$LINENO: result: no" >&5
1916 echo "${ECHO_T}no" >&6
1917 fi
1918
1919   test -n "$AWK" && break
1920 done
1921
1922 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1923 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1924 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1925 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1926   echo $ECHO_N "(cached) $ECHO_C" >&6
1927 else
1928   cat >conftest.make <<\_ACEOF
1929 all:
1930         @echo 'ac_maketemp="$(MAKE)"'
1931 _ACEOF
1932 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1933 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1934 if test -n "$ac_maketemp"; then
1935   eval ac_cv_prog_make_${ac_make}_set=yes
1936 else
1937   eval ac_cv_prog_make_${ac_make}_set=no
1938 fi
1939 rm -f conftest.make
1940 fi
1941 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1942   echo "$as_me:$LINENO: result: yes" >&5
1943 echo "${ECHO_T}yes" >&6
1944   SET_MAKE=
1945 else
1946   echo "$as_me:$LINENO: result: no" >&5
1947 echo "${ECHO_T}no" >&6
1948   SET_MAKE="MAKE=${MAKE-make}"
1949 fi
1950
1951 rm -rf .tst 2>/dev/null
1952 mkdir .tst 2>/dev/null
1953 if test -d .tst; then
1954   am__leading_dot=.
1955 else
1956   am__leading_dot=_
1957 fi
1958 rmdir .tst 2>/dev/null
1959
1960 # test to see if srcdir already configured
1961 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1962    test -f $srcdir/config.status; then
1963   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1964 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1965    { (exit 1); exit 1; }; }
1966 fi
1967
1968 # test whether we have cygpath
1969 if test -z "$CYGPATH_W"; then
1970   if (cygpath --version) >/dev/null 2>/dev/null; then
1971     CYGPATH_W='cygpath -w'
1972   else
1973     CYGPATH_W=echo
1974   fi
1975 fi
1976
1977
1978 # Define the identity of the package.
1979  PACKAGE=$OL_PACKAGE
1980  VERSION=$OL_VERSION
1981
1982
1983 # Some tools Automake needs.
1984
1985 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1986
1987
1988 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1989
1990
1991 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1992
1993
1994 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1995
1996
1997 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1998
1999 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2000
2001 # Installed binaries are usually stripped using `strip' when the user
2002 # run `make install-strip'.  However `strip' might not be the right
2003 # tool to use in cross-compilation environments, therefore Automake
2004 # will honor the `STRIP' environment variable to overrule this program.
2005 if test "$cross_compiling" != no; then
2006   if test -n "$ac_tool_prefix"; then
2007   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2008 set dummy ${ac_tool_prefix}strip; ac_word=$2
2009 echo "$as_me:$LINENO: checking for $ac_word" >&5
2010 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2011 if test "${ac_cv_prog_STRIP+set}" = set; then
2012   echo $ECHO_N "(cached) $ECHO_C" >&6
2013 else
2014   if test -n "$STRIP"; then
2015   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2016 else
2017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2018 for as_dir in $PATH
2019 do
2020   IFS=$as_save_IFS
2021   test -z "$as_dir" && as_dir=.
2022   for ac_exec_ext in '' $ac_executable_extensions; do
2023   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2024     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2025     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2026     break 2
2027   fi
2028 done
2029 done
2030
2031 fi
2032 fi
2033 STRIP=$ac_cv_prog_STRIP
2034 if test -n "$STRIP"; then
2035   echo "$as_me:$LINENO: result: $STRIP" >&5
2036 echo "${ECHO_T}$STRIP" >&6
2037 else
2038   echo "$as_me:$LINENO: result: no" >&5
2039 echo "${ECHO_T}no" >&6
2040 fi
2041
2042 fi
2043 if test -z "$ac_cv_prog_STRIP"; then
2044   ac_ct_STRIP=$STRIP
2045   # Extract the first word of "strip", so it can be a program name with args.
2046 set dummy strip; ac_word=$2
2047 echo "$as_me:$LINENO: checking for $ac_word" >&5
2048 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2049 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2050   echo $ECHO_N "(cached) $ECHO_C" >&6
2051 else
2052   if test -n "$ac_ct_STRIP"; then
2053   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2054 else
2055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2056 for as_dir in $PATH
2057 do
2058   IFS=$as_save_IFS
2059   test -z "$as_dir" && as_dir=.
2060   for ac_exec_ext in '' $ac_executable_extensions; do
2061   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2062     ac_cv_prog_ac_ct_STRIP="strip"
2063     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2064     break 2
2065   fi
2066 done
2067 done
2068
2069   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2070 fi
2071 fi
2072 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2073 if test -n "$ac_ct_STRIP"; then
2074   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2075 echo "${ECHO_T}$ac_ct_STRIP" >&6
2076 else
2077   echo "$as_me:$LINENO: result: no" >&5
2078 echo "${ECHO_T}no" >&6
2079 fi
2080
2081   STRIP=$ac_ct_STRIP
2082 else
2083   STRIP="$ac_cv_prog_STRIP"
2084 fi
2085
2086 fi
2087 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2088
2089 # We need awk for the "check" target.  The system "awk" is bad on
2090 # some platforms.
2091 # Always define AMTAR for backward compatibility.
2092
2093 AMTAR=${AMTAR-"${am_missing_run}tar"}
2094
2095 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2096
2097
2098
2099
2100
2101 cat >>confdefs.h <<_ACEOF
2102 #define OPENLDAP_PACKAGE "$PACKAGE"
2103 _ACEOF
2104
2105
2106 cat >>confdefs.h <<_ACEOF
2107 #define OPENLDAP_VERSION "$VERSION"
2108 _ACEOF
2109
2110
2111
2112 cat >>confdefs.h <<_ACEOF
2113 #define LDAP_VENDOR_VERSION $OL_API_INC
2114 _ACEOF
2115
2116
2117 cat >>confdefs.h <<_ACEOF
2118 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
2119 _ACEOF
2120
2121
2122 cat >>confdefs.h <<_ACEOF
2123 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
2124 _ACEOF
2125
2126
2127 cat >>confdefs.h <<_ACEOF
2128 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
2129 _ACEOF
2130
2131
2132 OPENLDAP_LIBRELEASE=$OL_API_LIB_RELEASE
2133
2134 OPENLDAP_LIBVERSION=$OL_API_LIB_VERSION
2135
2136 OPENLDAP_RELEASE_DATE="$OL_RELEASE_DATE"
2137
2138
2139                               ac_config_headers="$ac_config_headers include/portable.h include/ldap_features.h include/lber_types.h"
2140
2141 echo "$as_me:$LINENO: checking configure arguments" >&5
2142 echo $ECHO_N "checking configure arguments... $ECHO_C" >&6
2143
2144
2145 top_builddir=`pwd`
2146
2147 ldap_subdir="/openldap"
2148
2149
2150 # Check whether --with-subdir or --without-subdir was given.
2151 if test "${with_subdir+set}" = set; then
2152   withval="$with_subdir"
2153   case "$withval" in
2154         no) ldap_subdir=""
2155                 ;;
2156         yes)
2157                 ;;
2158         /*|\\*)
2159                 ldap_subdir="$withval"
2160                 ;;
2161         *)
2162                 ldap_subdir="/$withval"
2163                 ;;
2164 esac
2165
2166 fi;
2167
2168 # OpenLDAP --enable-debug
2169         # Check whether --enable-debug or --disable-debug was given.
2170 if test "${enable_debug+set}" = set; then
2171   enableval="$enable_debug"
2172
2173         ol_arg=invalid
2174         for ol_val in auto yes no ; do
2175                 if test "$enableval" = "$ol_val" ; then
2176                         ol_arg="$ol_val"
2177                 fi
2178         done
2179         if test "$ol_arg" = "invalid" ; then
2180                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-debug" >&5
2181 echo "$as_me: error: bad value $enableval for --enable-debug" >&2;}
2182    { (exit 1); exit 1; }; }
2183         fi
2184         ol_enable_debug="$ol_arg"
2185
2186 else
2187         ol_enable_debug="yes"
2188 fi; # end --enable-debug
2189 # OpenLDAP --enable-dynamic
2190         # Check whether --enable-dynamic or --disable-dynamic was given.
2191 if test "${enable_dynamic+set}" = set; then
2192   enableval="$enable_dynamic"
2193
2194         ol_arg=invalid
2195         for ol_val in auto yes no ; do
2196                 if test "$enableval" = "$ol_val" ; then
2197                         ol_arg="$ol_val"
2198                 fi
2199         done
2200         if test "$ol_arg" = "invalid" ; then
2201                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynamic" >&5
2202 echo "$as_me: error: bad value $enableval for --enable-dynamic" >&2;}
2203    { (exit 1); exit 1; }; }
2204         fi
2205         ol_enable_dynamic="$ol_arg"
2206
2207 else
2208         ol_enable_dynamic="no"
2209 fi; # end --enable-dynamic
2210 # OpenLDAP --enable-syslog
2211         # Check whether --enable-syslog or --disable-syslog was given.
2212 if test "${enable_syslog+set}" = set; then
2213   enableval="$enable_syslog"
2214
2215         ol_arg=invalid
2216         for ol_val in auto yes no ; do
2217                 if test "$enableval" = "$ol_val" ; then
2218                         ol_arg="$ol_val"
2219                 fi
2220         done
2221         if test "$ol_arg" = "invalid" ; then
2222                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syslog" >&5
2223 echo "$as_me: error: bad value $enableval for --enable-syslog" >&2;}
2224    { (exit 1); exit 1; }; }
2225         fi
2226         ol_enable_syslog="$ol_arg"
2227
2228 else
2229         ol_enable_syslog="auto"
2230 fi; # end --enable-syslog
2231 # OpenLDAP --enable-proctitle
2232         # Check whether --enable-proctitle or --disable-proctitle was given.
2233 if test "${enable_proctitle+set}" = set; then
2234   enableval="$enable_proctitle"
2235
2236         ol_arg=invalid
2237         for ol_val in auto yes no ; do
2238                 if test "$enableval" = "$ol_val" ; then
2239                         ol_arg="$ol_val"
2240                 fi
2241         done
2242         if test "$ol_arg" = "invalid" ; then
2243                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proctitle" >&5
2244 echo "$as_me: error: bad value $enableval for --enable-proctitle" >&2;}
2245    { (exit 1); exit 1; }; }
2246         fi
2247         ol_enable_proctitle="$ol_arg"
2248
2249 else
2250         ol_enable_proctitle="yes"
2251 fi; # end --enable-proctitle
2252 ol_enable_referrals=${ol_enable_referrals-no}
2253 ol_enable_kbind=${ol_enable_kbind-no}
2254 # OpenLDAP --enable-ipv6
2255         # Check whether --enable-ipv6 or --disable-ipv6 was given.
2256 if test "${enable_ipv6+set}" = set; then
2257   enableval="$enable_ipv6"
2258
2259         ol_arg=invalid
2260         for ol_val in auto yes no ; do
2261                 if test "$enableval" = "$ol_val" ; then
2262                         ol_arg="$ol_val"
2263                 fi
2264         done
2265         if test "$ol_arg" = "invalid" ; then
2266                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ipv6" >&5
2267 echo "$as_me: error: bad value $enableval for --enable-ipv6" >&2;}
2268    { (exit 1); exit 1; }; }
2269         fi
2270         ol_enable_ipv6="$ol_arg"
2271
2272 else
2273         ol_enable_ipv6="auto"
2274 fi; # end --enable-ipv6
2275 # OpenLDAP --enable-local
2276         # Check whether --enable-local or --disable-local was given.
2277 if test "${enable_local+set}" = set; then
2278   enableval="$enable_local"
2279
2280         ol_arg=invalid
2281         for ol_val in auto yes no ; do
2282                 if test "$enableval" = "$ol_val" ; then
2283                         ol_arg="$ol_val"
2284                 fi
2285         done
2286         if test "$ol_arg" = "invalid" ; then
2287                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-local" >&5
2288 echo "$as_me: error: bad value $enableval for --enable-local" >&2;}
2289    { (exit 1); exit 1; }; }
2290         fi
2291         ol_enable_local="$ol_arg"
2292
2293 else
2294         ol_enable_local="auto"
2295 fi; # end --enable-local
2296
2297
2298 # OpenLDAP --with-cyrus_sasl
2299
2300 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
2301 if test "${with_cyrus_sasl+set}" = set; then
2302   withval="$with_cyrus_sasl"
2303
2304         ol_arg=invalid
2305         for ol_val in auto yes no  ; do
2306                 if test "$withval" = "$ol_val" ; then
2307                         ol_arg="$ol_val"
2308                 fi
2309         done
2310         if test "$ol_arg" = "invalid" ; then
2311                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-cyrus_sasl" >&5
2312 echo "$as_me: error: bad value $withval for --with-cyrus_sasl" >&2;}
2313    { (exit 1); exit 1; }; }
2314         fi
2315         ol_with_cyrus_sasl="$ol_arg"
2316
2317 else
2318         ol_with_cyrus_sasl="auto"
2319 fi; # end --with-cyrus_sasl
2320
2321 # OpenLDAP --with-fetch
2322
2323 # Check whether --with-fetch or --without-fetch was given.
2324 if test "${with_fetch+set}" = set; then
2325   withval="$with_fetch"
2326
2327         ol_arg=invalid
2328         for ol_val in auto yes no  ; do
2329                 if test "$withval" = "$ol_val" ; then
2330                         ol_arg="$ol_val"
2331                 fi
2332         done
2333         if test "$ol_arg" = "invalid" ; then
2334                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-fetch" >&5
2335 echo "$as_me: error: bad value $withval for --with-fetch" >&2;}
2336    { (exit 1); exit 1; }; }
2337         fi
2338         ol_with_fetch="$ol_arg"
2339
2340 else
2341         ol_with_fetch="auto"
2342 fi; # end --with-fetch
2343
2344 ol_with_kerberos=${ol_with_kerberos-auto}
2345 # OpenLDAP --with-threads
2346
2347 # Check whether --with-threads or --without-threads was given.
2348 if test "${with_threads+set}" = set; then
2349   withval="$with_threads"
2350
2351         ol_arg=invalid
2352         for ol_val in auto nt posix mach pth lwp yes no manual  ; do
2353                 if test "$withval" = "$ol_val" ; then
2354                         ol_arg="$ol_val"
2355                 fi
2356         done
2357         if test "$ol_arg" = "invalid" ; then
2358                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-threads" >&5
2359 echo "$as_me: error: bad value $withval for --with-threads" >&2;}
2360    { (exit 1); exit 1; }; }
2361         fi
2362         ol_with_threads="$ol_arg"
2363
2364 else
2365         ol_with_threads="auto"
2366 fi; # end --with-threads
2367
2368 # OpenLDAP --with-tls
2369
2370 # Check whether --with-tls or --without-tls was given.
2371 if test "${with_tls+set}" = set; then
2372   withval="$with_tls"
2373
2374         ol_arg=invalid
2375         for ol_val in auto ssleay openssl yes no  ; do
2376                 if test "$withval" = "$ol_val" ; then
2377                         ol_arg="$ol_val"
2378                 fi
2379         done
2380         if test "$ol_arg" = "invalid" ; then
2381                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-tls" >&5
2382 echo "$as_me: error: bad value $withval for --with-tls" >&2;}
2383    { (exit 1); exit 1; }; }
2384         fi
2385         ol_with_tls="$ol_arg"
2386
2387 else
2388         ol_with_tls="auto"
2389 fi; # end --with-tls
2390
2391 # OpenLDAP --with-yielding_select
2392
2393 # Check whether --with-yielding_select or --without-yielding_select was given.
2394 if test "${with_yielding_select+set}" = set; then
2395   withval="$with_yielding_select"
2396
2397         ol_arg=invalid
2398         for ol_val in auto yes no manual  ; do
2399                 if test "$withval" = "$ol_val" ; then
2400                         ol_arg="$ol_val"
2401                 fi
2402         done
2403         if test "$ol_arg" = "invalid" ; then
2404                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-yielding_select" >&5
2405 echo "$as_me: error: bad value $withval for --with-yielding_select" >&2;}
2406    { (exit 1); exit 1; }; }
2407         fi
2408         ol_with_yielding_select="$ol_arg"
2409
2410 else
2411         ol_with_yielding_select="auto"
2412 fi; # end --with-yielding_select
2413
2414 # OpenLDAP --with-multiple_precision
2415
2416 # Check whether --with-multiple_precision or --without-multiple_precision was given.
2417 if test "${with_multiple_precision+set}" = set; then
2418   withval="$with_multiple_precision"
2419
2420         ol_arg=invalid
2421         for ol_val in auto bignum gmp yes no  ; do
2422                 if test "$withval" = "$ol_val" ; then
2423                         ol_arg="$ol_val"
2424                 fi
2425         done
2426         if test "$ol_arg" = "invalid" ; then
2427                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-multiple_precision" >&5
2428 echo "$as_me: error: bad value $withval for --with-multiple_precision" >&2;}
2429    { (exit 1); exit 1; }; }
2430         fi
2431         ol_with_multiple_precision="$ol_arg"
2432
2433 else
2434         ol_with_multiple_precision="auto"
2435 fi; # end --with-multiple_precision
2436
2437
2438
2439
2440 # Check whether --with-xxslapdoptions or --without-xxslapdoptions was given.
2441 if test "${with_xxslapdoptions+set}" = set; then
2442   withval="$with_xxslapdoptions"
2443
2444 fi;
2445 # OpenLDAP --enable-slapd
2446         # Check whether --enable-slapd or --disable-slapd was given.
2447 if test "${enable_slapd+set}" = set; then
2448   enableval="$enable_slapd"
2449
2450         ol_arg=invalid
2451         for ol_val in auto yes no ; do
2452                 if test "$enableval" = "$ol_val" ; then
2453                         ol_arg="$ol_val"
2454                 fi
2455         done
2456         if test "$ol_arg" = "invalid" ; then
2457                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapd" >&5
2458 echo "$as_me: error: bad value $enableval for --enable-slapd" >&2;}
2459    { (exit 1); exit 1; }; }
2460         fi
2461         ol_enable_slapd="$ol_arg"
2462
2463 else
2464         ol_enable_slapd="yes"
2465 fi; # end --enable-slapd
2466 # OpenLDAP --enable-aci
2467         # Check whether --enable-aci or --disable-aci was given.
2468 if test "${enable_aci+set}" = set; then
2469   enableval="$enable_aci"
2470
2471         ol_arg=invalid
2472         for ol_val in auto yes no ; do
2473                 if test "$enableval" = "$ol_val" ; then
2474                         ol_arg="$ol_val"
2475                 fi
2476         done
2477         if test "$ol_arg" = "invalid" ; then
2478                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-aci" >&5
2479 echo "$as_me: error: bad value $enableval for --enable-aci" >&2;}
2480    { (exit 1); exit 1; }; }
2481         fi
2482         ol_enable_aci="$ol_arg"
2483
2484 else
2485         ol_enable_aci="no"
2486 fi; # end --enable-aci
2487 # OpenLDAP --enable-cleartext
2488         # Check whether --enable-cleartext or --disable-cleartext was given.
2489 if test "${enable_cleartext+set}" = set; then
2490   enableval="$enable_cleartext"
2491
2492         ol_arg=invalid
2493         for ol_val in auto yes no ; do
2494                 if test "$enableval" = "$ol_val" ; then
2495                         ol_arg="$ol_val"
2496                 fi
2497         done
2498         if test "$ol_arg" = "invalid" ; then
2499                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-cleartext" >&5
2500 echo "$as_me: error: bad value $enableval for --enable-cleartext" >&2;}
2501    { (exit 1); exit 1; }; }
2502         fi
2503         ol_enable_cleartext="$ol_arg"
2504
2505 else
2506         ol_enable_cleartext="yes"
2507 fi; # end --enable-cleartext
2508 # OpenLDAP --enable-crypt
2509         # Check whether --enable-crypt or --disable-crypt was given.
2510 if test "${enable_crypt+set}" = set; then
2511   enableval="$enable_crypt"
2512
2513         ol_arg=invalid
2514         for ol_val in auto yes no ; do
2515                 if test "$enableval" = "$ol_val" ; then
2516                         ol_arg="$ol_val"
2517                 fi
2518         done
2519         if test "$ol_arg" = "invalid" ; then
2520                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-crypt" >&5
2521 echo "$as_me: error: bad value $enableval for --enable-crypt" >&2;}
2522    { (exit 1); exit 1; }; }
2523         fi
2524         ol_enable_crypt="$ol_arg"
2525
2526 else
2527         ol_enable_crypt="no"
2528 fi; # end --enable-crypt
2529 # OpenLDAP --enable-lmpasswd
2530         # Check whether --enable-lmpasswd or --disable-lmpasswd was given.
2531 if test "${enable_lmpasswd+set}" = set; then
2532   enableval="$enable_lmpasswd"
2533
2534         ol_arg=invalid
2535         for ol_val in auto yes no ; do
2536                 if test "$enableval" = "$ol_val" ; then
2537                         ol_arg="$ol_val"
2538                 fi
2539         done
2540         if test "$ol_arg" = "invalid" ; then
2541                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-lmpasswd" >&5
2542 echo "$as_me: error: bad value $enableval for --enable-lmpasswd" >&2;}
2543    { (exit 1); exit 1; }; }
2544         fi
2545         ol_enable_lmpasswd="$ol_arg"
2546
2547 else
2548         ol_enable_lmpasswd="no"
2549 fi; # end --enable-lmpasswd
2550 # OpenLDAP --enable-spasswd
2551         # Check whether --enable-spasswd or --disable-spasswd was given.
2552 if test "${enable_spasswd+set}" = set; then
2553   enableval="$enable_spasswd"
2554
2555         ol_arg=invalid
2556         for ol_val in auto yes no ; do
2557                 if test "$enableval" = "$ol_val" ; then
2558                         ol_arg="$ol_val"
2559                 fi
2560         done
2561         if test "$ol_arg" = "invalid" ; then
2562                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-spasswd" >&5
2563 echo "$as_me: error: bad value $enableval for --enable-spasswd" >&2;}
2564    { (exit 1); exit 1; }; }
2565         fi
2566         ol_enable_spasswd="$ol_arg"
2567
2568 else
2569         ol_enable_spasswd="no"
2570 fi; # end --enable-spasswd
2571 # OpenLDAP --enable-modules
2572         # Check whether --enable-modules or --disable-modules was given.
2573 if test "${enable_modules+set}" = set; then
2574   enableval="$enable_modules"
2575
2576         ol_arg=invalid
2577         for ol_val in auto yes no ; do
2578                 if test "$enableval" = "$ol_val" ; then
2579                         ol_arg="$ol_val"
2580                 fi
2581         done
2582         if test "$ol_arg" = "invalid" ; then
2583                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-modules" >&5
2584 echo "$as_me: error: bad value $enableval for --enable-modules" >&2;}
2585    { (exit 1); exit 1; }; }
2586         fi
2587         ol_enable_modules="$ol_arg"
2588
2589 else
2590         ol_enable_modules="no"
2591 fi; # end --enable-modules
2592 ol_enable_multimaster=${ol_enable_multimaster-no}
2593 # OpenLDAP --enable-rewrite
2594         # Check whether --enable-rewrite or --disable-rewrite was given.
2595 if test "${enable_rewrite+set}" = set; then
2596   enableval="$enable_rewrite"
2597
2598         ol_arg=invalid
2599         for ol_val in auto yes no ; do
2600                 if test "$enableval" = "$ol_val" ; then
2601                         ol_arg="$ol_val"
2602                 fi
2603         done
2604         if test "$ol_arg" = "invalid" ; then
2605                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rewrite" >&5
2606 echo "$as_me: error: bad value $enableval for --enable-rewrite" >&2;}
2607    { (exit 1); exit 1; }; }
2608         fi
2609         ol_enable_rewrite="$ol_arg"
2610
2611 else
2612         ol_enable_rewrite="auto"
2613 fi; # end --enable-rewrite
2614 # OpenLDAP --enable-rlookups
2615         # Check whether --enable-rlookups or --disable-rlookups was given.
2616 if test "${enable_rlookups+set}" = set; then
2617   enableval="$enable_rlookups"
2618
2619         ol_arg=invalid
2620         for ol_val in auto yes no ; do
2621                 if test "$enableval" = "$ol_val" ; then
2622                         ol_arg="$ol_val"
2623                 fi
2624         done
2625         if test "$ol_arg" = "invalid" ; then
2626                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rlookups" >&5
2627 echo "$as_me: error: bad value $enableval for --enable-rlookups" >&2;}
2628    { (exit 1); exit 1; }; }
2629         fi
2630         ol_enable_rlookups="$ol_arg"
2631
2632 else
2633         ol_enable_rlookups="no"
2634 fi; # end --enable-rlookups
2635 # OpenLDAP --enable-slapi
2636         # Check whether --enable-slapi or --disable-slapi was given.
2637 if test "${enable_slapi+set}" = set; then
2638   enableval="$enable_slapi"
2639
2640         ol_arg=invalid
2641         for ol_val in auto yes no ; do
2642                 if test "$enableval" = "$ol_val" ; then
2643                         ol_arg="$ol_val"
2644                 fi
2645         done
2646         if test "$ol_arg" = "invalid" ; then
2647                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapi" >&5
2648 echo "$as_me: error: bad value $enableval for --enable-slapi" >&2;}
2649    { (exit 1); exit 1; }; }
2650         fi
2651         ol_enable_slapi="$ol_arg"
2652
2653 else
2654         ol_enable_slapi="no"
2655 fi; # end --enable-slapi
2656 # OpenLDAP --enable-slp
2657         # Check whether --enable-slp or --disable-slp was given.
2658 if test "${enable_slp+set}" = set; then
2659   enableval="$enable_slp"
2660
2661         ol_arg=invalid
2662         for ol_val in auto yes no ; do
2663                 if test "$enableval" = "$ol_val" ; then
2664                         ol_arg="$ol_val"
2665                 fi
2666         done
2667         if test "$ol_arg" = "invalid" ; then
2668                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slp" >&5
2669 echo "$as_me: error: bad value $enableval for --enable-slp" >&2;}
2670    { (exit 1); exit 1; }; }
2671         fi
2672         ol_enable_slp="$ol_arg"
2673
2674 else
2675         ol_enable_slp="no"
2676 fi; # end --enable-slp
2677 # OpenLDAP --enable-wrappers
2678         # Check whether --enable-wrappers or --disable-wrappers was given.
2679 if test "${enable_wrappers+set}" = set; then
2680   enableval="$enable_wrappers"
2681
2682         ol_arg=invalid
2683         for ol_val in auto yes no ; do
2684                 if test "$enableval" = "$ol_val" ; then
2685                         ol_arg="$ol_val"
2686                 fi
2687         done
2688         if test "$ol_arg" = "invalid" ; then
2689                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-wrappers" >&5
2690 echo "$as_me: error: bad value $enableval for --enable-wrappers" >&2;}
2691    { (exit 1); exit 1; }; }
2692         fi
2693         ol_enable_wrappers="$ol_arg"
2694
2695 else
2696         ol_enable_wrappers="no"
2697 fi; # end --enable-wrappers
2698
2699 Backends="bdb dnssrv hdb ldap ldbm meta monitor null \
2700         passwd perl relay shell sql"
2701
2702
2703 # Check whether --with-xxslapbackends or --without-xxslapbackends was given.
2704 if test "${with_xxslapbackends+set}" = set; then
2705   withval="$with_xxslapbackends"
2706
2707 fi;
2708
2709 # OpenLDAP --enable-backends
2710         # Check whether --enable-backends or --disable-backends was given.
2711 if test "${enable_backends+set}" = set; then
2712   enableval="$enable_backends"
2713
2714         ol_arg=invalid
2715         for ol_val in no yes mod ; do
2716                 if test "$enableval" = "$ol_val" ; then
2717                         ol_arg="$ol_val"
2718                 fi
2719         done
2720         if test "$ol_arg" = "invalid" ; then
2721                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-backends" >&5
2722 echo "$as_me: error: bad value $enableval for --enable-backends" >&2;}
2723    { (exit 1); exit 1; }; }
2724         fi
2725         ol_enable_backends="$ol_arg"
2726
2727 fi; # end --enable-backends
2728 test -n "$ol_enable_backends" && ol_dflt_backends="$ol_enable_backends"
2729 # OpenLDAP --enable-bdb
2730         # Check whether --enable-bdb or --disable-bdb was given.
2731 if test "${enable_bdb+set}" = set; then
2732   enableval="$enable_bdb"
2733
2734         ol_arg=invalid
2735         for ol_val in no yes mod ; do
2736                 if test "$enableval" = "$ol_val" ; then
2737                         ol_arg="$ol_val"
2738                 fi
2739         done
2740         if test "$ol_arg" = "invalid" ; then
2741                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-bdb" >&5
2742 echo "$as_me: error: bad value $enableval for --enable-bdb" >&2;}
2743    { (exit 1); exit 1; }; }
2744         fi
2745         ol_enable_bdb="$ol_arg"
2746
2747 else
2748         ol_enable_bdb="${ol_dflt_backends-yes}"
2749 fi; # end --enable-bdb
2750 # OpenLDAP --enable-dnssrv
2751         # Check whether --enable-dnssrv or --disable-dnssrv was given.
2752 if test "${enable_dnssrv+set}" = set; then
2753   enableval="$enable_dnssrv"
2754
2755         ol_arg=invalid
2756         for ol_val in no yes mod ; do
2757                 if test "$enableval" = "$ol_val" ; then
2758                         ol_arg="$ol_val"
2759                 fi
2760         done
2761         if test "$ol_arg" = "invalid" ; then
2762                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dnssrv" >&5
2763 echo "$as_me: error: bad value $enableval for --enable-dnssrv" >&2;}
2764    { (exit 1); exit 1; }; }
2765         fi
2766         ol_enable_dnssrv="$ol_arg"
2767
2768 else
2769         ol_enable_dnssrv="${ol_dflt_backends-no}"
2770 fi; # end --enable-dnssrv
2771 # OpenLDAP --enable-hdb
2772         # Check whether --enable-hdb or --disable-hdb was given.
2773 if test "${enable_hdb+set}" = set; then
2774   enableval="$enable_hdb"
2775
2776         ol_arg=invalid
2777         for ol_val in no yes mod ; do
2778                 if test "$enableval" = "$ol_val" ; then
2779                         ol_arg="$ol_val"
2780                 fi
2781         done
2782         if test "$ol_arg" = "invalid" ; then
2783                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-hdb" >&5
2784 echo "$as_me: error: bad value $enableval for --enable-hdb" >&2;}
2785    { (exit 1); exit 1; }; }
2786         fi
2787         ol_enable_hdb="$ol_arg"
2788
2789 else
2790         ol_enable_hdb="${ol_dflt_backends-yes}"
2791 fi; # end --enable-hdb
2792 # OpenLDAP --enable-ldap
2793         # Check whether --enable-ldap or --disable-ldap was given.
2794 if test "${enable_ldap+set}" = set; then
2795   enableval="$enable_ldap"
2796
2797         ol_arg=invalid
2798         for ol_val in no yes mod ; do
2799                 if test "$enableval" = "$ol_val" ; then
2800                         ol_arg="$ol_val"
2801                 fi
2802         done
2803         if test "$ol_arg" = "invalid" ; then
2804                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldap" >&5
2805 echo "$as_me: error: bad value $enableval for --enable-ldap" >&2;}
2806    { (exit 1); exit 1; }; }
2807         fi
2808         ol_enable_ldap="$ol_arg"
2809
2810 else
2811         ol_enable_ldap="${ol_dflt_backends-no}"
2812 fi; # end --enable-ldap
2813 # OpenLDAP --enable-ldbm
2814         # Check whether --enable-ldbm or --disable-ldbm was given.
2815 if test "${enable_ldbm+set}" = set; then
2816   enableval="$enable_ldbm"
2817
2818         ol_arg=invalid
2819         for ol_val in no yes mod ; do
2820                 if test "$enableval" = "$ol_val" ; then
2821                         ol_arg="$ol_val"
2822                 fi
2823         done
2824         if test "$ol_arg" = "invalid" ; then
2825                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldbm" >&5
2826 echo "$as_me: error: bad value $enableval for --enable-ldbm" >&2;}
2827    { (exit 1); exit 1; }; }
2828         fi
2829         ol_enable_ldbm="$ol_arg"
2830
2831 else
2832         ol_enable_ldbm="${ol_dflt_backends-no}"
2833 fi; # end --enable-ldbm
2834 # OpenLDAP --with-ldbm_api
2835
2836 # Check whether --with-ldbm_api or --without-ldbm_api was given.
2837 if test "${with_ldbm_api+set}" = set; then
2838   withval="$with_ldbm_api"
2839
2840         ol_arg=invalid
2841         for ol_val in auto berkeley bcompat mdbm gdbm ; do
2842                 if test "$withval" = "$ol_val" ; then
2843                         ol_arg="$ol_val"
2844                 fi
2845         done
2846         if test "$ol_arg" = "invalid" ; then
2847                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-ldbm_api" >&5
2848 echo "$as_me: error: bad value $withval for --with-ldbm_api" >&2;}
2849    { (exit 1); exit 1; }; }
2850         fi
2851         ol_with_ldbm_api="$ol_arg"
2852
2853 else
2854         ol_with_ldbm_api="auto"
2855 fi; # end --with-ldbm_api
2856
2857 # OpenLDAP --with-ldbm_type
2858
2859 # Check whether --with-ldbm_type or --without-ldbm_type was given.
2860 if test "${with_ldbm_type+set}" = set; then
2861   withval="$with_ldbm_type"
2862
2863         ol_arg=invalid
2864         for ol_val in auto btree hash ; do
2865                 if test "$withval" = "$ol_val" ; then
2866                         ol_arg="$ol_val"
2867                 fi
2868         done
2869         if test "$ol_arg" = "invalid" ; then
2870                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-ldbm_type" >&5
2871 echo "$as_me: error: bad value $withval for --with-ldbm_type" >&2;}
2872    { (exit 1); exit 1; }; }
2873         fi
2874         ol_with_ldbm_type="$ol_arg"
2875
2876 else
2877         ol_with_ldbm_type="auto"
2878 fi; # end --with-ldbm_type
2879
2880 # OpenLDAP --enable-meta
2881         # Check whether --enable-meta or --disable-meta was given.
2882 if test "${enable_meta+set}" = set; then
2883   enableval="$enable_meta"
2884
2885         ol_arg=invalid
2886         for ol_val in no yes mod ; do
2887                 if test "$enableval" = "$ol_val" ; then
2888                         ol_arg="$ol_val"
2889                 fi
2890         done
2891         if test "$ol_arg" = "invalid" ; then
2892                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-meta" >&5
2893 echo "$as_me: error: bad value $enableval for --enable-meta" >&2;}
2894    { (exit 1); exit 1; }; }
2895         fi
2896         ol_enable_meta="$ol_arg"
2897
2898 else
2899         ol_enable_meta="${ol_dflt_backends-no}"
2900 fi; # end --enable-meta
2901 # OpenLDAP --enable-monitor
2902         # Check whether --enable-monitor or --disable-monitor was given.
2903 if test "${enable_monitor+set}" = set; then
2904   enableval="$enable_monitor"
2905
2906         ol_arg=invalid
2907         for ol_val in no yes mod ; do
2908                 if test "$enableval" = "$ol_val" ; then
2909                         ol_arg="$ol_val"
2910                 fi
2911         done
2912         if test "$ol_arg" = "invalid" ; then
2913                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-monitor" >&5
2914 echo "$as_me: error: bad value $enableval for --enable-monitor" >&2;}
2915    { (exit 1); exit 1; }; }
2916         fi
2917         ol_enable_monitor="$ol_arg"
2918
2919 else
2920         ol_enable_monitor="${ol_dflt_backends-yes}"
2921 fi; # end --enable-monitor
2922 # OpenLDAP --enable-null
2923         # Check whether --enable-null or --disable-null was given.
2924 if test "${enable_null+set}" = set; then
2925   enableval="$enable_null"
2926
2927         ol_arg=invalid
2928         for ol_val in no yes mod ; do
2929                 if test "$enableval" = "$ol_val" ; then
2930                         ol_arg="$ol_val"
2931                 fi
2932         done
2933         if test "$ol_arg" = "invalid" ; then
2934                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-null" >&5
2935 echo "$as_me: error: bad value $enableval for --enable-null" >&2;}
2936    { (exit 1); exit 1; }; }
2937         fi
2938         ol_enable_null="$ol_arg"
2939
2940 else
2941         ol_enable_null="${ol_dflt_backends-no}"
2942 fi; # end --enable-null
2943 # OpenLDAP --enable-passwd
2944         # Check whether --enable-passwd or --disable-passwd was given.
2945 if test "${enable_passwd+set}" = set; then
2946   enableval="$enable_passwd"
2947
2948         ol_arg=invalid
2949         for ol_val in no yes mod ; do
2950                 if test "$enableval" = "$ol_val" ; then
2951                         ol_arg="$ol_val"
2952                 fi
2953         done
2954         if test "$ol_arg" = "invalid" ; then
2955                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-passwd" >&5
2956 echo "$as_me: error: bad value $enableval for --enable-passwd" >&2;}
2957    { (exit 1); exit 1; }; }
2958         fi
2959         ol_enable_passwd="$ol_arg"
2960
2961 else
2962         ol_enable_passwd="${ol_dflt_backends-no}"
2963 fi; # end --enable-passwd
2964 # OpenLDAP --enable-perl
2965         # Check whether --enable-perl or --disable-perl was given.
2966 if test "${enable_perl+set}" = set; then
2967   enableval="$enable_perl"
2968
2969         ol_arg=invalid
2970         for ol_val in no yes mod ; do
2971                 if test "$enableval" = "$ol_val" ; then
2972                         ol_arg="$ol_val"
2973                 fi
2974         done
2975         if test "$ol_arg" = "invalid" ; then
2976                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-perl" >&5
2977 echo "$as_me: error: bad value $enableval for --enable-perl" >&2;}
2978    { (exit 1); exit 1; }; }
2979         fi
2980         ol_enable_perl="$ol_arg"
2981
2982 else
2983         ol_enable_perl="${ol_dflt_backends-no}"
2984 fi; # end --enable-perl
2985 # OpenLDAP --enable-relay
2986         # Check whether --enable-relay or --disable-relay was given.
2987 if test "${enable_relay+set}" = set; then
2988   enableval="$enable_relay"
2989
2990         ol_arg=invalid
2991         for ol_val in no yes mod ; do
2992                 if test "$enableval" = "$ol_val" ; then
2993                         ol_arg="$ol_val"
2994                 fi
2995         done
2996         if test "$ol_arg" = "invalid" ; then
2997                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-relay" >&5
2998 echo "$as_me: error: bad value $enableval for --enable-relay" >&2;}
2999    { (exit 1); exit 1; }; }
3000         fi
3001         ol_enable_relay="$ol_arg"
3002
3003 else
3004         ol_enable_relay="${ol_dflt_backends-yes}"
3005 fi; # end --enable-relay
3006 # OpenLDAP --enable-shell
3007         # Check whether --enable-shell or --disable-shell was given.
3008 if test "${enable_shell+set}" = set; then
3009   enableval="$enable_shell"
3010
3011         ol_arg=invalid
3012         for ol_val in no yes mod ; do
3013                 if test "$enableval" = "$ol_val" ; then
3014                         ol_arg="$ol_val"
3015                 fi
3016         done
3017         if test "$ol_arg" = "invalid" ; then
3018                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-shell" >&5
3019 echo "$as_me: error: bad value $enableval for --enable-shell" >&2;}
3020    { (exit 1); exit 1; }; }
3021         fi
3022         ol_enable_shell="$ol_arg"
3023
3024 else
3025         ol_enable_shell="${ol_dflt_backends-no}"
3026 fi; # end --enable-shell
3027 # OpenLDAP --enable-sql
3028         # Check whether --enable-sql or --disable-sql was given.
3029 if test "${enable_sql+set}" = set; then
3030   enableval="$enable_sql"
3031
3032         ol_arg=invalid
3033         for ol_val in no yes mod ; do
3034                 if test "$enableval" = "$ol_val" ; then
3035                         ol_arg="$ol_val"
3036                 fi
3037         done
3038         if test "$ol_arg" = "invalid" ; then
3039                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-sql" >&5
3040 echo "$as_me: error: bad value $enableval for --enable-sql" >&2;}
3041    { (exit 1); exit 1; }; }
3042         fi
3043         ol_enable_sql="$ol_arg"
3044
3045 else
3046         ol_enable_sql="${ol_dflt_backends-no}"
3047 fi; # end --enable-sql
3048
3049 Overlays="accesslog denyop dyngroup dynlist glue lastmod ppolicy proxycache \
3050         refint retcode rwm syncprov translucent unique"
3051
3052
3053 # Check whether --with-xxslapoverlays or --without-xxslapoverlays was given.
3054 if test "${with_xxslapoverlays+set}" = set; then
3055   withval="$with_xxslapoverlays"
3056
3057 fi;
3058
3059 # OpenLDAP --enable-overlays
3060         # Check whether --enable-overlays or --disable-overlays was given.
3061 if test "${enable_overlays+set}" = set; then
3062   enableval="$enable_overlays"
3063
3064         ol_arg=invalid
3065         for ol_val in no yes mod ; do
3066                 if test "$enableval" = "$ol_val" ; then
3067                         ol_arg="$ol_val"
3068                 fi
3069         done
3070         if test "$ol_arg" = "invalid" ; then
3071                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-overlays" >&5
3072 echo "$as_me: error: bad value $enableval for --enable-overlays" >&2;}
3073    { (exit 1); exit 1; }; }
3074         fi
3075         ol_enable_overlays="$ol_arg"
3076
3077 fi; # end --enable-overlays
3078 test -n "$ol_enable_overlays" && ol_dflt_overlays="$ol_enable_overlays"
3079 # OpenLDAP --enable-accesslog
3080         # Check whether --enable-accesslog or --disable-accesslog was given.
3081 if test "${enable_accesslog+set}" = set; then
3082   enableval="$enable_accesslog"
3083
3084         ol_arg=invalid
3085         for ol_val in no yes mod ; do
3086                 if test "$enableval" = "$ol_val" ; then
3087                         ol_arg="$ol_val"
3088                 fi
3089         done
3090         if test "$ol_arg" = "invalid" ; then
3091                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-accesslog" >&5
3092 echo "$as_me: error: bad value $enableval for --enable-accesslog" >&2;}
3093    { (exit 1); exit 1; }; }
3094         fi
3095         ol_enable_accesslog="$ol_arg"
3096
3097 else
3098         ol_enable_accesslog="${ol_dflt_overlays-no}"
3099 fi; # end --enable-accesslog
3100
3101 # OpenLDAP --enable-denyop
3102         # Check whether --enable-denyop or --disable-denyop was given.
3103 if test "${enable_denyop+set}" = set; then
3104   enableval="$enable_denyop"
3105
3106         ol_arg=invalid
3107         for ol_val in no yes mod ; do
3108                 if test "$enableval" = "$ol_val" ; then
3109                         ol_arg="$ol_val"
3110                 fi
3111         done
3112         if test "$ol_arg" = "invalid" ; then
3113                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-denyop" >&5
3114 echo "$as_me: error: bad value $enableval for --enable-denyop" >&2;}
3115    { (exit 1); exit 1; }; }
3116         fi
3117         ol_enable_denyop="$ol_arg"
3118
3119 else
3120         ol_enable_denyop="${ol_dflt_overlays-no}"
3121 fi; # end --enable-denyop
3122
3123 # OpenLDAP --enable-dyngroup
3124         # Check whether --enable-dyngroup or --disable-dyngroup was given.
3125 if test "${enable_dyngroup+set}" = set; then
3126   enableval="$enable_dyngroup"
3127
3128         ol_arg=invalid
3129         for ol_val in no yes mod ; do
3130                 if test "$enableval" = "$ol_val" ; then
3131                         ol_arg="$ol_val"
3132                 fi
3133         done
3134         if test "$ol_arg" = "invalid" ; then
3135                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dyngroup" >&5
3136 echo "$as_me: error: bad value $enableval for --enable-dyngroup" >&2;}
3137    { (exit 1); exit 1; }; }
3138         fi
3139         ol_enable_dyngroup="$ol_arg"
3140
3141 else
3142         ol_enable_dyngroup="${ol_dflt_overlays-no}"
3143 fi; # end --enable-dyngroup
3144
3145 # OpenLDAP --enable-dynlist
3146         # Check whether --enable-dynlist or --disable-dynlist was given.
3147 if test "${enable_dynlist+set}" = set; then
3148   enableval="$enable_dynlist"
3149
3150         ol_arg=invalid
3151         for ol_val in no yes mod ; do
3152                 if test "$enableval" = "$ol_val" ; then
3153                         ol_arg="$ol_val"
3154                 fi
3155         done
3156         if test "$ol_arg" = "invalid" ; then
3157                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynlist" >&5
3158 echo "$as_me: error: bad value $enableval for --enable-dynlist" >&2;}
3159    { (exit 1); exit 1; }; }
3160         fi
3161         ol_enable_dynlist="$ol_arg"
3162
3163 else
3164         ol_enable_dynlist="${ol_dflt_overlays-no}"
3165 fi; # end --enable-dynlist
3166
3167 # OpenLDAP --enable-glue
3168         # Check whether --enable-glue or --disable-glue was given.
3169 if test "${enable_glue+set}" = set; then
3170   enableval="$enable_glue"
3171
3172         ol_arg=invalid
3173         for ol_val in no yes mod ; do
3174                 if test "$enableval" = "$ol_val" ; then
3175                         ol_arg="$ol_val"
3176                 fi
3177         done
3178         if test "$ol_arg" = "invalid" ; then
3179                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-glue" >&5
3180 echo "$as_me: error: bad value $enableval for --enable-glue" >&2;}
3181    { (exit 1); exit 1; }; }
3182         fi
3183         ol_enable_glue="$ol_arg"
3184
3185 else
3186         ol_enable_glue="${ol_dflt_overlays-yes}"
3187 fi; # end --enable-glue
3188
3189 # OpenLDAP --enable-lastmod
3190         # Check whether --enable-lastmod or --disable-lastmod was given.
3191 if test "${enable_lastmod+set}" = set; then
3192   enableval="$enable_lastmod"
3193
3194         ol_arg=invalid
3195         for ol_val in no yes mod ; do
3196                 if test "$enableval" = "$ol_val" ; then
3197                         ol_arg="$ol_val"
3198                 fi
3199         done
3200         if test "$ol_arg" = "invalid" ; then
3201                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-lastmod" >&5
3202 echo "$as_me: error: bad value $enableval for --enable-lastmod" >&2;}
3203    { (exit 1); exit 1; }; }
3204         fi
3205         ol_enable_lastmod="$ol_arg"
3206
3207 else
3208         ol_enable_lastmod="${ol_dflt_overlays-no}"
3209 fi; # end --enable-lastmod
3210
3211 # OpenLDAP --enable-ppolicy
3212         # Check whether --enable-ppolicy or --disable-ppolicy was given.
3213 if test "${enable_ppolicy+set}" = set; then
3214   enableval="$enable_ppolicy"
3215
3216         ol_arg=invalid
3217         for ol_val in no yes mod ; do
3218                 if test "$enableval" = "$ol_val" ; then
3219                         ol_arg="$ol_val"
3220                 fi
3221         done
3222         if test "$ol_arg" = "invalid" ; then
3223                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ppolicy" >&5
3224 echo "$as_me: error: bad value $enableval for --enable-ppolicy" >&2;}
3225    { (exit 1); exit 1; }; }
3226         fi
3227         ol_enable_ppolicy="$ol_arg"
3228
3229 else
3230         ol_enable_ppolicy="${ol_dflt_overlays-no}"
3231 fi; # end --enable-ppolicy
3232
3233 # OpenLDAP --enable-proxycache
3234         # Check whether --enable-proxycache or --disable-proxycache was given.
3235 if test "${enable_proxycache+set}" = set; then
3236   enableval="$enable_proxycache"
3237
3238         ol_arg=invalid
3239         for ol_val in no yes mod ; do
3240                 if test "$enableval" = "$ol_val" ; then
3241                         ol_arg="$ol_val"
3242                 fi
3243         done
3244         if test "$ol_arg" = "invalid" ; then
3245                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proxycache" >&5
3246 echo "$as_me: error: bad value $enableval for --enable-proxycache" >&2;}
3247    { (exit 1); exit 1; }; }
3248         fi
3249         ol_enable_proxycache="$ol_arg"
3250
3251 else
3252         ol_enable_proxycache="${ol_dflt_overlays-no}"
3253 fi; # end --enable-proxycache
3254
3255 # OpenLDAP --enable-refint
3256         # Check whether --enable-refint or --disable-refint was given.
3257 if test "${enable_refint+set}" = set; then
3258   enableval="$enable_refint"
3259
3260         ol_arg=invalid
3261         for ol_val in no yes mod ; do
3262                 if test "$enableval" = "$ol_val" ; then
3263                         ol_arg="$ol_val"
3264                 fi
3265         done
3266         if test "$ol_arg" = "invalid" ; then
3267                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-refint" >&5
3268 echo "$as_me: error: bad value $enableval for --enable-refint" >&2;}
3269    { (exit 1); exit 1; }; }
3270         fi
3271         ol_enable_refint="$ol_arg"
3272
3273 else
3274         ol_enable_refint="${ol_dflt_overlays-no}"
3275 fi; # end --enable-refint
3276
3277 # OpenLDAP --enable-retcode
3278         # Check whether --enable-retcode or --disable-retcode was given.
3279 if test "${enable_retcode+set}" = set; then
3280   enableval="$enable_retcode"
3281
3282         ol_arg=invalid
3283         for ol_val in no yes mod ; do
3284                 if test "$enableval" = "$ol_val" ; then
3285                         ol_arg="$ol_val"
3286                 fi
3287         done
3288         if test "$ol_arg" = "invalid" ; then
3289                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-retcode" >&5
3290 echo "$as_me: error: bad value $enableval for --enable-retcode" >&2;}
3291    { (exit 1); exit 1; }; }
3292         fi
3293         ol_enable_retcode="$ol_arg"
3294
3295 else
3296         ol_enable_retcode="${ol_dflt_overlays-no}"
3297 fi; # end --enable-retcode
3298
3299 # OpenLDAP --enable-rwm
3300         # Check whether --enable-rwm or --disable-rwm was given.
3301 if test "${enable_rwm+set}" = set; then
3302   enableval="$enable_rwm"
3303
3304         ol_arg=invalid
3305         for ol_val in no yes mod ; do
3306                 if test "$enableval" = "$ol_val" ; then
3307                         ol_arg="$ol_val"
3308                 fi
3309         done
3310         if test "$ol_arg" = "invalid" ; then
3311                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rwm" >&5
3312 echo "$as_me: error: bad value $enableval for --enable-rwm" >&2;}
3313    { (exit 1); exit 1; }; }
3314         fi
3315         ol_enable_rwm="$ol_arg"
3316
3317 else
3318         ol_enable_rwm="${ol_dflt_overlays-no}"
3319 fi; # end --enable-rwm
3320
3321 # OpenLDAP --enable-syncprov
3322         # Check whether --enable-syncprov or --disable-syncprov was given.
3323 if test "${enable_syncprov+set}" = set; then
3324   enableval="$enable_syncprov"
3325
3326         ol_arg=invalid
3327         for ol_val in no yes mod ; do
3328                 if test "$enableval" = "$ol_val" ; then
3329                         ol_arg="$ol_val"
3330                 fi
3331         done
3332         if test "$ol_arg" = "invalid" ; then
3333                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syncprov" >&5
3334 echo "$as_me: error: bad value $enableval for --enable-syncprov" >&2;}
3335    { (exit 1); exit 1; }; }
3336         fi
3337         ol_enable_syncprov="$ol_arg"
3338
3339 else
3340         ol_enable_syncprov="${ol_dflt_overlays-yes}"
3341 fi; # end --enable-syncprov
3342
3343 # OpenLDAP --enable-translucent
3344         # Check whether --enable-translucent or --disable-translucent was given.
3345 if test "${enable_translucent+set}" = set; then
3346   enableval="$enable_translucent"
3347
3348         ol_arg=invalid
3349         for ol_val in no yes mod ; do
3350                 if test "$enableval" = "$ol_val" ; then
3351                         ol_arg="$ol_val"
3352                 fi
3353         done
3354         if test "$ol_arg" = "invalid" ; then
3355                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-translucent" >&5
3356 echo "$as_me: error: bad value $enableval for --enable-translucent" >&2;}
3357    { (exit 1); exit 1; }; }
3358         fi
3359         ol_enable_translucent="$ol_arg"
3360
3361 else
3362         ol_enable_translucent="${ol_dflt_overlays-no}"
3363 fi; # end --enable-translucent
3364
3365 # OpenLDAP --enable-unique
3366         # Check whether --enable-unique or --disable-unique was given.
3367 if test "${enable_unique+set}" = set; then
3368   enableval="$enable_unique"
3369
3370         ol_arg=invalid
3371         for ol_val in no yes mod ; do
3372                 if test "$enableval" = "$ol_val" ; then
3373                         ol_arg="$ol_val"
3374                 fi
3375         done
3376         if test "$ol_arg" = "invalid" ; then
3377                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-unique" >&5
3378 echo "$as_me: error: bad value $enableval for --enable-unique" >&2;}
3379    { (exit 1); exit 1; }; }
3380         fi
3381         ol_enable_unique="$ol_arg"
3382
3383 else
3384         ol_enable_unique="${ol_dflt_overlays-no}"
3385 fi; # end --enable-unique
3386
3387
3388
3389
3390 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
3391 if test "${with_xxslurpdoptions+set}" = set; then
3392   withval="$with_xxslurpdoptions"
3393
3394 fi;
3395 # OpenLDAP --enable-slurpd
3396         # Check whether --enable-slurpd or --disable-slurpd was given.
3397 if test "${enable_slurpd+set}" = set; then
3398   enableval="$enable_slurpd"
3399
3400         ol_arg=invalid
3401         for ol_val in auto yes no ; do
3402                 if test "$enableval" = "$ol_val" ; then
3403                         ol_arg="$ol_val"
3404                 fi
3405         done
3406         if test "$ol_arg" = "invalid" ; then
3407                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slurpd" >&5
3408 echo "$as_me: error: bad value $enableval for --enable-slurpd" >&2;}
3409    { (exit 1); exit 1; }; }
3410         fi
3411         ol_enable_slurpd="$ol_arg"
3412
3413 else
3414         ol_enable_slurpd="auto"
3415 fi; # end --enable-slurpd
3416
3417
3418 # Check whether --with-xxliboptions or --without-xxliboptions was given.
3419 if test "${with_xxliboptions+set}" = set; then
3420   withval="$with_xxliboptions"
3421
3422 fi;
3423 # Check whether --enable-static or --disable-static was given.
3424 if test "${enable_static+set}" = set; then
3425   enableval="$enable_static"
3426   p=${PACKAGE-default}
3427     case $enableval in
3428     yes) enable_static=yes ;;
3429     no) enable_static=no ;;
3430     *)
3431      enable_static=no
3432       # Look at the argument we got.  We use all the common list separators.
3433       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3434       for pkg in $enableval; do
3435         IFS="$lt_save_ifs"
3436         if test "X$pkg" = "X$p"; then
3437           enable_static=yes
3438         fi
3439       done
3440       IFS="$lt_save_ifs"
3441       ;;
3442     esac
3443 else
3444   enable_static=yes
3445 fi;
3446
3447 # Check whether --enable-shared or --disable-shared was given.
3448 if test "${enable_shared+set}" = set; then
3449   enableval="$enable_shared"
3450   p=${PACKAGE-default}
3451     case $enableval in
3452     yes) enable_shared=yes ;;
3453     no) enable_shared=no ;;
3454     *)
3455       enable_shared=no
3456       # Look at the argument we got.  We use all the common list separators.
3457       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3458       for pkg in $enableval; do
3459         IFS="$lt_save_ifs"
3460         if test "X$pkg" = "X$p"; then
3461           enable_shared=yes
3462         fi
3463       done
3464       IFS="$lt_save_ifs"
3465       ;;
3466     esac
3467 else
3468   enable_shared=yes
3469 fi;
3470
3471
3472
3473 # validate options
3474 if test $ol_enable_slapd = no ; then
3475                 if test $ol_enable_slapi = yes ; then
3476                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-slapi argument" >&5
3477 echo "$as_me: WARNING: slapd disabled, ignoring --enable-slapi argument" >&2;}
3478         fi
3479         case "$ol_enable_backends" in yes | mod)
3480                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-backends argument" >&5
3481 echo "$as_me: WARNING: slapd disabled, ignoring --enable-backends argument" >&2;}
3482         esac
3483         for i in $Backends; do
3484                 eval "ol_tmp=\$ol_enable_$i"
3485                 if test $ol_tmp != no ; then
3486                         { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3487 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3488                         eval "ol_enable_$i=no"
3489                 fi
3490         done
3491         if test $ol_enable_modules = yes ; then
3492                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-modules argument" >&5
3493 echo "$as_me: WARNING: slapd disabled, ignoring --enable-modules argument" >&2;}
3494         fi
3495         if test $ol_enable_multimaster = yes ; then
3496                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-multimaster argument" >&5
3497 echo "$as_me: WARNING: slapd disabled, ignoring --enable-multimaster argument" >&2;}
3498         fi
3499         if test $ol_enable_wrappers = yes ; then
3500                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&5
3501 echo "$as_me: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&2;}
3502         fi
3503         if test $ol_enable_rlookups = yes ; then
3504                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&5
3505 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&2;}
3506         fi
3507         if test $ol_enable_aci = yes ; then
3508                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-aci argument" >&5
3509 echo "$as_me: WARNING: slapd disabled, ignoring --enable-aci argument" >&2;}
3510         fi
3511         if test $ol_with_ldbm_api != auto ; then
3512                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --with-ldbm-api argument" >&5
3513 echo "$as_me: WARNING: slapd disabled, ignoring --with-ldbm-api argument" >&2;}
3514         fi
3515         if test $ol_with_ldbm_type != auto ; then
3516                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --with-ldbm-type argument" >&5
3517 echo "$as_me: WARNING: slapd disabled, ignoring --with-ldbm-type argument" >&2;}
3518         fi
3519         if test $ol_enable_slurpd = yes ; then
3520                 { { echo "$as_me:$LINENO: error: slurpd requires slapd" >&5
3521 echo "$as_me: error: slurpd requires slapd" >&2;}
3522    { (exit 1); exit 1; }; }
3523         fi
3524         if test $ol_enable_rewrite = yes ; then
3525                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&5
3526 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&2;}
3527         fi
3528                 case "$ol_enable_overlays" in yes | mod)
3529                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-overlays argument" >&5
3530 echo "$as_me: WARNING: slapd disabled, ignoring --enable-overlays argument" >&2;}
3531         esac
3532         for i in $Overlays; do
3533                 eval "ol_tmp=\$ol_enable_$i"
3534                 if test $ol_tmp != no ; then
3535                         { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3536 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3537                         eval "ol_enable_$i=no"
3538                 fi
3539         done
3540
3541         # force settings to no
3542         ol_enable_slapi=no
3543
3544         ol_enable_backends=
3545         ol_enable_overlays=
3546         ol_enable_modules=no
3547         ol_enable_multimaster=no
3548         ol_enable_rlookups=no
3549         ol_enable_aci=no
3550         ol_enable_wrappers=no
3551
3552         ol_with_ldbm_api=no
3553         ol_with_ldbm_type=no
3554
3555         ol_enable_slurpd=no
3556
3557         ol_enable_rewrite=no
3558
3559 elif test $ol_enable_ldbm = no ; then
3560
3561         if test $ol_with_ldbm_api != auto ; then
3562                 { echo "$as_me:$LINENO: WARNING: LDBM disabled, ignoring --with-ldbm-api argument" >&5
3563 echo "$as_me: WARNING: LDBM disabled, ignoring --with-ldbm-api argument" >&2;}
3564         fi
3565
3566         if test $ol_with_ldbm_type != auto ; then
3567                 { echo "$as_me:$LINENO: WARNING: LDBM disabled, ignoring --with-ldbm-type argument" >&5
3568 echo "$as_me: WARNING: LDBM disabled, ignoring --with-ldbm-type argument" >&2;}
3569         fi
3570
3571         if test $ol_enable_modules != yes -a \
3572                 $ol_enable_bdb = no -a \
3573                 $ol_enable_dnssrv = no -a \
3574                 $ol_enable_hdb = no -a \
3575                 $ol_enable_ldap = no -a \
3576                 $ol_enable_meta = no -a \
3577                 $ol_enable_monitor = no -a \
3578                 $ol_enable_null = no -a \
3579                 $ol_enable_passwd = no -a \
3580                 $ol_enable_perl = no -a \
3581                 $ol_enable_relay = no -a \
3582                 $ol_enable_shell = no -a \
3583                 $ol_enable_sql = no ; then
3584
3585                 if test $ol_enable_slapd = yes ; then
3586                         { { echo "$as_me:$LINENO: error: slapd requires a backend" >&5
3587 echo "$as_me: error: slapd requires a backend" >&2;}
3588    { (exit 1); exit 1; }; }
3589                 else
3590                         { echo "$as_me:$LINENO: WARNING: skipping slapd, no backend specified" >&5
3591 echo "$as_me: WARNING: skipping slapd, no backend specified" >&2;}
3592                         ol_enable_slapd=no
3593                 fi
3594         fi
3595
3596         ol_with_ldbm_api=no
3597         ol_with_ldbm_type=no
3598
3599         if test $ol_enable_bdb != no -o $ol_enable_hdb != no; then
3600                 ol_with_ldbm_api=berkeley
3601         fi
3602
3603 else
3604                 if test $ol_with_ldbm_api = gdbm -a \
3605                 $ol_with_ldbm_type = btree ; then
3606                 { { echo "$as_me:$LINENO: error: GDBM only supports LDBM type hash" >&5
3607 echo "$as_me: error: GDBM only supports LDBM type hash" >&2;}
3608    { (exit 1); exit 1; }; }
3609         fi
3610         if test $ol_with_ldbm_api = mdbm -a \
3611                 $ol_with_ldbm_type = btree ; then
3612                 { { echo "$as_me:$LINENO: error: MDBM only supports LDBM type hash" >&5
3613 echo "$as_me: error: MDBM only supports LDBM type hash" >&2;}
3614    { (exit 1); exit 1; }; }
3615         fi
3616         if test $ol_with_ldbm_api = ndbm -a \
3617                 $ol_with_ldbm_type = btree ; then
3618                 { { echo "$as_me:$LINENO: error: NDBM only supports LDBM type hash" >&5
3619 echo "$as_me: error: NDBM only supports LDBM type hash" >&2;}
3620    { (exit 1); exit 1; }; }
3621         fi
3622
3623         if test $ol_enable_bdb != no -o $ol_enable_hdb != no ; then
3624                 if test $ol_with_ldbm_api = auto ; then
3625                         ol_with_ldbm_api=berkeley
3626                 elif test $ol_with_ldbm_api != berkeley ; then
3627                         { { echo "$as_me:$LINENO: error: LDBM API not compatible with BDB/HDB" >&5
3628 echo "$as_me: error: LDBM API not compatible with BDB/HDB" >&2;}
3629    { (exit 1); exit 1; }; }
3630                 fi
3631         fi
3632 fi
3633
3634 if test $ol_enable_meta = yes -a $ol_enable_ldap = no ; then
3635         { { echo "$as_me:$LINENO: error: --enable-meta requires --enable-ldap" >&5
3636 echo "$as_me: error: --enable-meta requires --enable-ldap" >&2;}
3637    { (exit 1); exit 1; }; }
3638 fi
3639
3640 if test $ol_enable_slurpd = yes ; then
3641                 if test $ol_with_threads = no ; then
3642                 { { echo "$as_me:$LINENO: error: slurpd requires threads" >&5
3643 echo "$as_me: error: slurpd requires threads" >&2;}
3644    { (exit 1); exit 1; }; }
3645         fi
3646 fi
3647
3648 if test $ol_enable_lmpasswd = yes ; then
3649         if test $ol_with_tls = no ; then
3650                 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
3651 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
3652    { (exit 1); exit 1; }; }
3653         fi
3654 fi
3655
3656 if test $ol_enable_kbind = yes ; then
3657         if test $ol_with_kerberos = no ; then
3658                 { { echo "$as_me:$LINENO: error: options require --with-kerberos" >&5
3659 echo "$as_me: error: options require --with-kerberos" >&2;}
3660    { (exit 1); exit 1; }; }
3661         elif test $ol_with_kerberos = auto ; then
3662                 ol_with_kerberos=yes
3663         fi
3664
3665 elif test $ol_enable_kbind = no ; then
3666         if test $ol_with_kerberos = auto ; then
3667                 ol_with_kerberos=no
3668         elif test $ol_with_kerberos != no ; then
3669                 { echo "$as_me:$LINENO: WARNING: Kerberos detection enabled unnecessarily" >&5
3670 echo "$as_me: WARNING: Kerberos detection enabled unnecessarily" >&2;};
3671                 ol_with_kerberos=no
3672         fi
3673 fi
3674
3675 if test $ol_enable_spasswd = yes ; then
3676         if test $ol_with_cyrus_sasl = no ; then
3677                 { { echo "$as_me:$LINENO: error: options require --with-cyrus-sasl" >&5
3678 echo "$as_me: error: options require --with-cyrus-sasl" >&2;}
3679    { (exit 1); exit 1; }; }
3680         fi
3681         ol_with_cyrus_sasl=yes
3682 fi
3683
3684 echo "$as_me:$LINENO: result: done" >&5
3685 echo "${ECHO_T}done" >&6
3686
3687 LDAP_LIBS=
3688 LDBM_LIBS=
3689 LTHREAD_LIBS=
3690 LUTIL_LIBS=
3691
3692 SLAPD_LIBS=
3693 SLURPD_LIBS=
3694
3695 BUILD_SLAPD=no
3696 BUILD_SLURPD=no
3697
3698 BUILD_THREAD=no
3699
3700 BUILD_SLAPI=no
3701 SLAPD_SLAPI_DEPEND=
3702
3703 BUILD_BDB=no
3704 BUILD_DNSSRV=no
3705 BUILD_HDB=no
3706 BUILD_LDAP=no
3707 BUILD_LDBM=no
3708 BUILD_META=no
3709 BUILD_MONITOR=no
3710 BUILD_NULL=no
3711 BUILD_PASSWD=no
3712 BUILD_PERL=no
3713 BUILD_RELAY=no
3714 BUILD_SHELL=no
3715 BUILD_SQL=no
3716
3717 BUILD_ACCESSLOG=no
3718 BUILD_DENYOP=no
3719 BUILD_DYNGROUP=no
3720 BUILD_DYNLIST=no
3721 BUILD_GLUE=no
3722 BUILD_LASTMOD=no
3723 BUILD_PPOLICY=no
3724 BUILD_PROXYCACHE=no
3725 BUILD_REFINT=no
3726 BUILD_RETCODE=no
3727 BUILD_RWM=no
3728 BUILD_SYNCPROV=no
3729 BUILD_TRANSLUCENT=no
3730 BUILD_UNIQUE=no
3731
3732 SLAPD_STATIC_OVERLAYS=
3733 SLAPD_DYNAMIC_OVERLAYS=
3734
3735 SLAPD_MODULES_LDFLAGS=
3736 SLAPD_MODULES_CPPFLAGS=
3737
3738 SLAPD_STATIC_BACKENDS=back-ldif
3739 SLAPD_DYNAMIC_BACKENDS=
3740
3741 SLAPD_PERL_LDFLAGS=
3742 MOD_PERL_LDFLAGS=
3743 PERL_CPPFLAGS=
3744
3745 SLAPD_SQL_LDFLAGS=
3746 SLAPD_SQL_LIBS=
3747 SLAPD_SQL_INCLUDES=
3748
3749 KRB4_LIBS=
3750 KRB5_LIBS=
3751 SASL_LIBS=
3752 TLS_LIBS=
3753 MODULES_LIBS=
3754 SLAPI_LIBS=
3755 LIBSLAPI=
3756 LIBSLAPITOOLS=
3757 AUTH_LIBS=
3758
3759 SLAPD_SLP_LIBS=
3760 SLAPD_GMP_LIBS=
3761
3762
3763
3764 cat >>confdefs.h <<\_ACEOF
3765 #define HAVE_MKVERSION 1
3766 _ACEOF
3767
3768
3769
3770
3771 ol_aix_threads=no
3772 case "$target" in
3773 *-*-aix*)       if test -z "$CC" ; then
3774                 case "$ol_with_threads" in
3775                 auto | yes |  posix) ol_aix_threads=yes ;;
3776                 esac
3777         fi
3778 ;;
3779 esac
3780
3781 if test $ol_aix_threads = yes ; then
3782         if test -z "${CC}" ; then
3783                 for ac_prog in cc_r xlc_r cc
3784 do
3785   # Extract the first word of "$ac_prog", so it can be a program name with args.
3786 set dummy $ac_prog; ac_word=$2
3787 echo "$as_me:$LINENO: checking for $ac_word" >&5
3788 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3789 if test "${ac_cv_prog_CC+set}" = set; then
3790   echo $ECHO_N "(cached) $ECHO_C" >&6
3791 else
3792   if test -n "$CC"; then
3793   ac_cv_prog_CC="$CC" # Let the user override the test.
3794 else
3795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3796 for as_dir in $PATH
3797 do
3798   IFS=$as_save_IFS
3799   test -z "$as_dir" && as_dir=.
3800   for ac_exec_ext in '' $ac_executable_extensions; do
3801   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3802     ac_cv_prog_CC="$ac_prog"
3803     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3804     break 2
3805   fi
3806 done
3807 done
3808
3809 fi
3810 fi
3811 CC=$ac_cv_prog_CC
3812 if test -n "$CC"; then
3813   echo "$as_me:$LINENO: result: $CC" >&5
3814 echo "${ECHO_T}$CC" >&6
3815 else
3816   echo "$as_me:$LINENO: result: no" >&5
3817 echo "${ECHO_T}no" >&6
3818 fi
3819
3820   test -n "$CC" && break
3821 done
3822
3823
3824                 if test "$CC" = cc ; then
3825                                                 if test $ol_with_threads != auto ; then
3826                                 { { echo "$as_me:$LINENO: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&5
3827 echo "$as_me: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&2;}
3828    { (exit 1); exit 1; }; }
3829                         else
3830                                 { echo "$as_me:$LINENO: WARNING: disabling threads, no cc_r on AIX" >&5
3831 echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
3832                         fi
3833                         ol_with_threads=no
3834                 fi
3835         fi
3836
3837         if test "${CC}" = "cc_r" -o "${CC}" = "xlc_r" ; then
3838                 ol_with_threads=posix
3839                 ol_cv_pthread_create=yes
3840         fi
3841 fi
3842
3843 if test -z "${CC}"; then
3844         for ac_prog in cc gcc
3845 do
3846   # Extract the first word of "$ac_prog", so it can be a program name with args.
3847 set dummy $ac_prog; ac_word=$2
3848 echo "$as_me:$LINENO: checking for $ac_word" >&5
3849 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3850 if test "${ac_cv_prog_CC+set}" = set; then
3851   echo $ECHO_N "(cached) $ECHO_C" >&6
3852 else
3853   if test -n "$CC"; then
3854   ac_cv_prog_CC="$CC" # Let the user override the test.
3855 else
3856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3857 for as_dir in $PATH
3858 do
3859   IFS=$as_save_IFS
3860   test -z "$as_dir" && as_dir=.
3861   for ac_exec_ext in '' $ac_executable_extensions; do
3862   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3863     ac_cv_prog_CC="$ac_prog"
3864     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3865     break 2
3866   fi
3867 done
3868 done
3869
3870 fi
3871 fi
3872 CC=$ac_cv_prog_CC
3873 if test -n "$CC"; then
3874   echo "$as_me:$LINENO: result: $CC" >&5
3875 echo "${ECHO_T}$CC" >&6
3876 else
3877   echo "$as_me:$LINENO: result: no" >&5
3878 echo "${ECHO_T}no" >&6
3879 fi
3880
3881   test -n "$CC" && break
3882 done
3883 test -n "$CC" || CC="missing"
3884
3885
3886         if test "${CC}" = "missing" ; then
3887                 { { echo "$as_me:$LINENO: error: Unable to locate cc(1) or suitable replacement.  Check PATH or set CC." >&5
3888 echo "$as_me: error: Unable to locate cc(1) or suitable replacement.  Check PATH or set CC." >&2;}
3889    { (exit 1); exit 1; }; }
3890         fi
3891 fi
3892
3893 if test -z "${AR}"; then
3894         for ac_prog in ar gar
3895 do
3896   # Extract the first word of "$ac_prog", so it can be a program name with args.
3897 set dummy $ac_prog; ac_word=$2
3898 echo "$as_me:$LINENO: checking for $ac_word" >&5
3899 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3900 if test "${ac_cv_prog_AR+set}" = set; then
3901   echo $ECHO_N "(cached) $ECHO_C" >&6
3902 else
3903   if test -n "$AR"; then
3904   ac_cv_prog_AR="$AR" # Let the user override the test.
3905 else
3906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3907 for as_dir in $PATH
3908 do
3909   IFS=$as_save_IFS
3910   test -z "$as_dir" && as_dir=.
3911   for ac_exec_ext in '' $ac_executable_extensions; do
3912   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3913     ac_cv_prog_AR="$ac_prog"
3914     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3915     break 2
3916   fi
3917 done
3918 done
3919
3920 fi
3921 fi
3922 AR=$ac_cv_prog_AR
3923 if test -n "$AR"; then
3924   echo "$as_me:$LINENO: result: $AR" >&5
3925 echo "${ECHO_T}$AR" >&6
3926 else
3927   echo "$as_me:$LINENO: result: no" >&5
3928 echo "${ECHO_T}no" >&6
3929 fi
3930
3931   test -n "$AR" && break
3932 done
3933 test -n "$AR" || AR="missing"
3934
3935
3936         if test "${AR}" = "missing" ; then
3937                 { { echo "$as_me:$LINENO: error: Unable to locate ar(1) or suitable replacement.  Check PATH or set AR." >&5
3938 echo "$as_me: error: Unable to locate ar(1) or suitable replacement.  Check PATH or set AR." >&2;}
3939    { (exit 1); exit 1; }; }
3940         fi
3941 fi
3942
3943
3944
3945
3946
3947 # Check whether --enable-fast-install or --disable-fast-install was given.
3948 if test "${enable_fast_install+set}" = set; then
3949   enableval="$enable_fast_install"
3950   p=${PACKAGE-default}
3951     case $enableval in
3952     yes) enable_fast_install=yes ;;
3953     no) enable_fast_install=no ;;
3954     *)
3955       enable_fast_install=no
3956       # Look at the argument we got.  We use all the common list separators.
3957       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3958       for pkg in $enableval; do
3959         IFS="$lt_save_ifs"
3960         if test "X$pkg" = "X$p"; then
3961           enable_fast_install=yes
3962         fi
3963       done
3964       IFS="$lt_save_ifs"
3965       ;;
3966     esac
3967 else
3968   enable_fast_install=yes
3969 fi;
3970
3971 DEPDIR="${am__leading_dot}deps"
3972
3973           ac_config_commands="$ac_config_commands depfiles"
3974
3975
3976 am_make=${MAKE-make}
3977 cat > confinc << 'END'
3978 am__doit:
3979         @echo done
3980 .PHONY: am__doit
3981 END
3982 # If we don't find an include directive, just comment out the code.
3983 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3984 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3985 am__include="#"
3986 am__quote=
3987 _am_result=none
3988 # First try GNU make style include.
3989 echo "include confinc" > confmf
3990 # We grep out `Entering directory' and `Leaving directory'
3991 # messages which can occur if `w' ends up in MAKEFLAGS.
3992 # In particular we don't look at `^make:' because GNU make might
3993 # be invoked under some other name (usually "gmake"), in which
3994 # case it prints its new name instead of `make'.
3995 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3996    am__include=include
3997    am__quote=
3998    _am_result=GNU
3999 fi
4000 # Now try BSD make style include.
4001 if test "$am__include" = "#"; then
4002    echo '.include "confinc"' > confmf
4003    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4004       am__include=.include
4005       am__quote="\""
4006       _am_result=BSD
4007    fi
4008 fi
4009
4010
4011 echo "$as_me:$LINENO: result: $_am_result" >&5
4012 echo "${ECHO_T}$_am_result" >&6
4013 rm -f confinc confmf
4014
4015 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4016 if test "${enable_dependency_tracking+set}" = set; then
4017   enableval="$enable_dependency_tracking"
4018
4019 fi;
4020 if test "x$enable_dependency_tracking" != xno; then
4021   am_depcomp="$ac_aux_dir/depcomp"
4022   AMDEPBACKSLASH='\'
4023 fi
4024
4025
4026 if test "x$enable_dependency_tracking" != xno; then
4027   AMDEP_TRUE=
4028   AMDEP_FALSE='#'
4029 else
4030   AMDEP_TRUE='#'
4031   AMDEP_FALSE=
4032 fi
4033
4034
4035
4036 ac_ext=c
4037 ac_cpp='$CPP $CPPFLAGS'
4038 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4039 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4040 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4041 if test -n "$ac_tool_prefix"; then
4042   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4043 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4044 echo "$as_me:$LINENO: checking for $ac_word" >&5
4045 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4046 if test "${ac_cv_prog_CC+set}" = set; then
4047   echo $ECHO_N "(cached) $ECHO_C" >&6
4048 else
4049   if test -n "$CC"; then
4050   ac_cv_prog_CC="$CC" # Let the user override the test.
4051 else
4052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4053 for as_dir in $PATH
4054 do
4055   IFS=$as_save_IFS
4056   test -z "$as_dir" && as_dir=.
4057   for ac_exec_ext in '' $ac_executable_extensions; do
4058   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4059     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4060     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4061     break 2
4062   fi
4063 done
4064 done
4065
4066 fi
4067 fi
4068 CC=$ac_cv_prog_CC
4069 if test -n "$CC"; then
4070   echo "$as_me:$LINENO: result: $CC" >&5
4071 echo "${ECHO_T}$CC" >&6
4072 else
4073   echo "$as_me:$LINENO: result: no" >&5
4074 echo "${ECHO_T}no" >&6
4075 fi
4076
4077 fi
4078 if test -z "$ac_cv_prog_CC"; then
4079   ac_ct_CC=$CC
4080   # Extract the first word of "gcc", so it can be a program name with args.
4081 set dummy gcc; ac_word=$2
4082 echo "$as_me:$LINENO: checking for $ac_word" >&5
4083 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4084 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4085   echo $ECHO_N "(cached) $ECHO_C" >&6
4086 else
4087   if test -n "$ac_ct_CC"; then
4088   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4089 else
4090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4091 for as_dir in $PATH
4092 do
4093   IFS=$as_save_IFS
4094   test -z "$as_dir" && as_dir=.
4095   for ac_exec_ext in '' $ac_executable_extensions; do
4096   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4097     ac_cv_prog_ac_ct_CC="gcc"
4098     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4099     break 2
4100   fi
4101 done
4102 done
4103
4104 fi
4105 fi
4106 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4107 if test -n "$ac_ct_CC"; then
4108   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4109 echo "${ECHO_T}$ac_ct_CC" >&6
4110 else
4111   echo "$as_me:$LINENO: result: no" >&5
4112 echo "${ECHO_T}no" >&6
4113 fi
4114
4115   CC=$ac_ct_CC
4116 else
4117   CC="$ac_cv_prog_CC"
4118 fi
4119
4120 if test -z "$CC"; then
4121   if test -n "$ac_tool_prefix"; then
4122   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4123 set dummy ${ac_tool_prefix}cc; ac_word=$2
4124 echo "$as_me:$LINENO: checking for $ac_word" >&5
4125 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4126 if test "${ac_cv_prog_CC+set}" = set; then
4127   echo $ECHO_N "(cached) $ECHO_C" >&6
4128 else
4129   if test -n "$CC"; then
4130   ac_cv_prog_CC="$CC" # Let the user override the test.
4131 else
4132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4133 for as_dir in $PATH
4134 do
4135   IFS=$as_save_IFS
4136   test -z "$as_dir" && as_dir=.
4137   for ac_exec_ext in '' $ac_executable_extensions; do
4138   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4139     ac_cv_prog_CC="${ac_tool_prefix}cc"
4140     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4141     break 2
4142   fi
4143 done
4144 done
4145
4146 fi
4147 fi
4148 CC=$ac_cv_prog_CC
4149 if test -n "$CC"; then
4150   echo "$as_me:$LINENO: result: $CC" >&5
4151 echo "${ECHO_T}$CC" >&6
4152 else
4153   echo "$as_me:$LINENO: result: no" >&5
4154 echo "${ECHO_T}no" >&6
4155 fi
4156
4157 fi
4158 if test -z "$ac_cv_prog_CC"; then
4159   ac_ct_CC=$CC
4160   # Extract the first word of "cc", so it can be a program name with args.
4161 set dummy cc; ac_word=$2
4162 echo "$as_me:$LINENO: checking for $ac_word" >&5
4163 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4164 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4165   echo $ECHO_N "(cached) $ECHO_C" >&6
4166 else
4167   if test -n "$ac_ct_CC"; then
4168   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4169 else
4170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4171 for as_dir in $PATH
4172 do
4173   IFS=$as_save_IFS
4174   test -z "$as_dir" && as_dir=.
4175   for ac_exec_ext in '' $ac_executable_extensions; do
4176   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4177     ac_cv_prog_ac_ct_CC="cc"
4178     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4179     break 2
4180   fi
4181 done
4182 done
4183
4184 fi
4185 fi
4186 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4187 if test -n "$ac_ct_CC"; then
4188   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4189 echo "${ECHO_T}$ac_ct_CC" >&6
4190 else
4191   echo "$as_me:$LINENO: result: no" >&5
4192 echo "${ECHO_T}no" >&6
4193 fi
4194
4195   CC=$ac_ct_CC
4196 else
4197   CC="$ac_cv_prog_CC"
4198 fi
4199
4200 fi
4201 if test -z "$CC"; then
4202   # Extract the first word of "cc", so it can be a program name with args.
4203 set dummy cc; ac_word=$2
4204 echo "$as_me:$LINENO: checking for $ac_word" >&5
4205 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4206 if test "${ac_cv_prog_CC+set}" = set; then
4207   echo $ECHO_N "(cached) $ECHO_C" >&6
4208 else
4209   if test -n "$CC"; then
4210   ac_cv_prog_CC="$CC" # Let the user override the test.
4211 else
4212   ac_prog_rejected=no
4213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4214 for as_dir in $PATH
4215 do
4216   IFS=$as_save_IFS
4217   test -z "$as_dir" && as_dir=.
4218   for ac_exec_ext in '' $ac_executable_extensions; do
4219   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4220     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4221        ac_prog_rejected=yes
4222        continue
4223      fi
4224     ac_cv_prog_CC="cc"
4225     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4226     break 2
4227   fi
4228 done
4229 done
4230
4231 if test $ac_prog_rejected = yes; then
4232   # We found a bogon in the path, so make sure we never use it.
4233   set dummy $ac_cv_prog_CC
4234   shift
4235   if test $# != 0; then
4236     # We chose a different compiler from the bogus one.
4237     # However, it has the same basename, so the bogon will be chosen
4238     # first if we set CC to just the basename; use the full file name.
4239     shift
4240     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4241   fi
4242 fi
4243 fi
4244 fi
4245 CC=$ac_cv_prog_CC
4246 if test -n "$CC"; then
4247   echo "$as_me:$LINENO: result: $CC" >&5
4248 echo "${ECHO_T}$CC" >&6
4249 else
4250   echo "$as_me:$LINENO: result: no" >&5
4251 echo "${ECHO_T}no" >&6
4252 fi
4253
4254 fi
4255 if test -z "$CC"; then
4256   if test -n "$ac_tool_prefix"; then
4257   for ac_prog in cl
4258   do
4259     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4260 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4261 echo "$as_me:$LINENO: checking for $ac_word" >&5
4262 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4263 if test "${ac_cv_prog_CC+set}" = set; then
4264   echo $ECHO_N "(cached) $ECHO_C" >&6
4265 else
4266   if test -n "$CC"; then
4267   ac_cv_prog_CC="$CC" # Let the user override the test.
4268 else
4269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4270 for as_dir in $PATH
4271 do
4272   IFS=$as_save_IFS
4273   test -z "$as_dir" && as_dir=.
4274   for ac_exec_ext in '' $ac_executable_extensions; do
4275   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4276     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4277     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4278     break 2
4279   fi
4280 done
4281 done
4282
4283 fi
4284 fi
4285 CC=$ac_cv_prog_CC
4286 if test -n "$CC"; then
4287   echo "$as_me:$LINENO: result: $CC" >&5
4288 echo "${ECHO_T}$CC" >&6
4289 else
4290   echo "$as_me:$LINENO: result: no" >&5
4291 echo "${ECHO_T}no" >&6
4292 fi
4293
4294     test -n "$CC" && break
4295   done
4296 fi
4297 if test -z "$CC"; then
4298   ac_ct_CC=$CC
4299   for ac_prog in cl
4300 do
4301   # Extract the first word of "$ac_prog", so it can be a program name with args.
4302 set dummy $ac_prog; ac_word=$2
4303 echo "$as_me:$LINENO: checking for $ac_word" >&5
4304 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4305 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4306   echo $ECHO_N "(cached) $ECHO_C" >&6
4307 else
4308   if test -n "$ac_ct_CC"; then
4309   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4310 else
4311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4312 for as_dir in $PATH
4313 do
4314   IFS=$as_save_IFS
4315   test -z "$as_dir" && as_dir=.
4316   for ac_exec_ext in '' $ac_executable_extensions; do
4317   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4318     ac_cv_prog_ac_ct_CC="$ac_prog"
4319     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4320     break 2
4321   fi
4322 done
4323 done
4324
4325 fi
4326 fi
4327 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4328 if test -n "$ac_ct_CC"; then
4329   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4330 echo "${ECHO_T}$ac_ct_CC" >&6
4331 else
4332   echo "$as_me:$LINENO: result: no" >&5
4333 echo "${ECHO_T}no" >&6
4334 fi
4335
4336   test -n "$ac_ct_CC" && break
4337 done
4338
4339   CC=$ac_ct_CC
4340 fi
4341
4342 fi
4343
4344
4345 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4346 See \`config.log' for more details." >&5
4347 echo "$as_me: error: no acceptable C compiler found in \$PATH
4348 See \`config.log' for more details." >&2;}
4349    { (exit 1); exit 1; }; }
4350
4351 # Provide some information about the compiler.
4352 echo "$as_me:$LINENO:" \
4353      "checking for C compiler version" >&5
4354 ac_compiler=`set X $ac_compile; echo $2`
4355 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4356   (eval $ac_compiler --version </dev/null >&5) 2>&5
4357   ac_status=$?
4358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4359   (exit $ac_status); }
4360 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4361   (eval $ac_compiler -v </dev/null >&5) 2>&5
4362   ac_status=$?
4363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4364   (exit $ac_status); }
4365 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4366   (eval $ac_compiler -V </dev/null >&5) 2>&5
4367   ac_status=$?
4368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4369   (exit $ac_status); }
4370
4371 cat >conftest.$ac_ext <<_ACEOF
4372 /* confdefs.h.  */
4373 _ACEOF
4374 cat confdefs.h >>conftest.$ac_ext
4375 cat >>conftest.$ac_ext <<_ACEOF
4376 /* end confdefs.h.  */
4377
4378 int
4379 main ()
4380 {
4381
4382   ;
4383   return 0;
4384 }
4385 _ACEOF
4386 ac_clean_files_save=$ac_clean_files
4387 ac_clean_files="$ac_clean_files a.out a.exe b.out"
4388 # Try to create an executable without -o first, disregard a.out.
4389 # It will help us diagnose broken compilers, and finding out an intuition
4390 # of exeext.
4391 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4392 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
4393 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4394 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
4395   (eval $ac_link_default) 2>&5
4396   ac_status=$?
4397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4398   (exit $ac_status); }; then
4399   # Find the output, starting from the most likely.  This scheme is
4400 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
4401 # resort.
4402
4403 # Be careful to initialize this variable, since it used to be cached.
4404 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
4405 ac_cv_exeext=
4406 # b.out is created by i960 compilers.
4407 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
4408 do
4409   test -f "$ac_file" || continue
4410   case $ac_file in
4411     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
4412         ;;
4413     conftest.$ac_ext )
4414         # This is the source file.
4415         ;;
4416     [ab].out )
4417         # We found the default executable, but exeext='' is most
4418         # certainly right.
4419         break;;
4420     *.* )
4421         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4422         # FIXME: I believe we export ac_cv_exeext for Libtool,
4423         # but it would be cool to find out if it's true.  Does anybody
4424         # maintain Libtool? --akim.
4425         export ac_cv_exeext
4426         break;;
4427     * )
4428         break;;
4429   esac
4430 done
4431 else
4432   echo "$as_me: failed program was:" >&5
4433 sed 's/^/| /' conftest.$ac_ext >&5
4434
4435 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
4436 See \`config.log' for more details." >&5
4437 echo "$as_me: error: C compiler cannot create executables
4438 See \`config.log' for more details." >&2;}
4439    { (exit 77); exit 77; }; }
4440 fi
4441
4442 ac_exeext=$ac_cv_exeext
4443 echo "$as_me:$LINENO: result: $ac_file" >&5
4444 echo "${ECHO_T}$ac_file" >&6
4445
4446 # Check the compiler produces executables we can run.  If not, either
4447 # the compiler is broken, or we cross compile.
4448 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4449 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
4450 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4451 # If not cross compiling, check that we can run a simple program.
4452 if test "$cross_compiling" != yes; then
4453   if { ac_try='./$ac_file'
4454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4455   (eval $ac_try) 2>&5
4456   ac_status=$?
4457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4458   (exit $ac_status); }; }; then
4459     cross_compiling=no
4460   else
4461     if test "$cross_compiling" = maybe; then
4462         cross_compiling=yes
4463     else
4464         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
4465 If you meant to cross compile, use \`--host'.
4466 See \`config.log' for more details." >&5
4467 echo "$as_me: error: cannot run C compiled programs.
4468 If you meant to cross compile, use \`--host'.
4469 See \`config.log' for more details." >&2;}
4470    { (exit 1); exit 1; }; }
4471     fi
4472   fi
4473 fi
4474 echo "$as_me:$LINENO: result: yes" >&5
4475 echo "${ECHO_T}yes" >&6
4476
4477 rm -f a.out a.exe conftest$ac_cv_exeext b.out
4478 ac_clean_files=$ac_clean_files_save
4479 # Check the compiler produces executables we can run.  If not, either
4480 # the compiler is broken, or we cross compile.
4481 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4482 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
4483 echo "$as_me:$LINENO: result: $cross_compiling" >&5
4484 echo "${ECHO_T}$cross_compiling" >&6
4485
4486 echo "$as_me:$LINENO: checking for suffix of executables" >&5
4487 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
4488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4489   (eval $ac_link) 2>&5
4490   ac_status=$?
4491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4492   (exit $ac_status); }; then
4493   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4494 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4495 # work properly (i.e., refer to `conftest.exe'), while it won't with
4496 # `rm'.
4497 for ac_file in conftest.exe conftest conftest.*; do
4498   test -f "$ac_file" || continue
4499   case $ac_file in
4500     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
4501     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4502           export ac_cv_exeext
4503           break;;
4504     * ) break;;
4505   esac
4506 done
4507 else
4508   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4509 See \`config.log' for more details." >&5
4510 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4511 See \`config.log' for more details." >&2;}
4512    { (exit 1); exit 1; }; }
4513 fi
4514
4515 rm -f conftest$ac_cv_exeext
4516 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
4517 echo "${ECHO_T}$ac_cv_exeext" >&6
4518
4519 rm -f conftest.$ac_ext
4520 EXEEXT=$ac_cv_exeext
4521 ac_exeext=$EXEEXT
4522 echo "$as_me:$LINENO: checking for suffix of object files" >&5
4523 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
4524 if test "${ac_cv_objext+set}" = set; then
4525   echo $ECHO_N "(cached) $ECHO_C" >&6
4526 else
4527   cat >conftest.$ac_ext <<_ACEOF
4528 /* confdefs.h.  */
4529 _ACEOF
4530 cat confdefs.h >>conftest.$ac_ext
4531 cat >>conftest.$ac_ext <<_ACEOF
4532 /* end confdefs.h.  */
4533
4534 int
4535 main ()
4536 {
4537
4538   ;
4539   return 0;
4540 }
4541 _ACEOF
4542 rm -f conftest.o conftest.obj
4543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4544   (eval $ac_compile) 2>&5
4545   ac_status=$?
4546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4547   (exit $ac_status); }; then
4548   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
4549   case $ac_file in
4550     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
4551     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4552        break;;
4553   esac
4554 done
4555 else
4556   echo "$as_me: failed program was:" >&5
4557 sed 's/^/| /' conftest.$ac_ext >&5
4558
4559 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
4560 See \`config.log' for more details." >&5
4561 echo "$as_me: error: cannot compute suffix of object files: cannot compile
4562 See \`config.log' for more details." >&2;}
4563    { (exit 1); exit 1; }; }
4564 fi
4565
4566 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4567 fi
4568 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
4569 echo "${ECHO_T}$ac_cv_objext" >&6
4570 OBJEXT=$ac_cv_objext
4571 ac_objext=$OBJEXT
4572 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4573 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4574 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4575   echo $ECHO_N "(cached) $ECHO_C" >&6
4576 else
4577   cat >conftest.$ac_ext <<_ACEOF
4578 /* confdefs.h.  */
4579 _ACEOF
4580 cat confdefs.h >>conftest.$ac_ext
4581 cat >>conftest.$ac_ext <<_ACEOF
4582 /* end confdefs.h.  */
4583
4584 int
4585 main ()
4586 {
4587 #ifndef __GNUC__
4588        choke me
4589 #endif
4590
4591   ;
4592   return 0;
4593 }
4594 _ACEOF
4595 rm -f conftest.$ac_objext
4596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4597   (eval $ac_compile) 2>conftest.er1
4598   ac_status=$?
4599   grep -v '^ *+' conftest.er1 >conftest.err
4600   rm -f conftest.er1
4601   cat conftest.err >&5
4602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4603   (exit $ac_status); } &&
4604          { ac_try='test -z "$ac_c_werror_flag"
4605                          || test ! -s conftest.err'
4606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4607   (eval $ac_try) 2>&5
4608   ac_status=$?
4609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4610   (exit $ac_status); }; } &&
4611          { ac_try='test -s conftest.$ac_objext'
4612   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4613   (eval $ac_try) 2>&5
4614   ac_status=$?
4615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4616   (exit $ac_status); }; }; then
4617   ac_compiler_gnu=yes
4618 else
4619   echo "$as_me: failed program was:" >&5
4620 sed 's/^/| /' conftest.$ac_ext >&5
4621
4622 ac_compiler_gnu=no
4623 fi
4624 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4625 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4626
4627 fi
4628 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4629 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4630 GCC=`test $ac_compiler_gnu = yes && echo yes`
4631 ac_test_CFLAGS=${CFLAGS+set}
4632 ac_save_CFLAGS=$CFLAGS
4633 CFLAGS="-g"
4634 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4635 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4636 if test "${ac_cv_prog_cc_g+set}" = set; then
4637   echo $ECHO_N "(cached) $ECHO_C" >&6
4638 else
4639   cat >conftest.$ac_ext <<_ACEOF
4640 /* confdefs.h.  */
4641 _ACEOF
4642 cat confdefs.h >>conftest.$ac_ext
4643 cat >>conftest.$ac_ext <<_ACEOF
4644 /* end confdefs.h.  */
4645
4646 int
4647 main ()
4648 {
4649
4650   ;
4651   return 0;
4652 }
4653 _ACEOF
4654 rm -f conftest.$ac_objext
4655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4656   (eval $ac_compile) 2>conftest.er1
4657   ac_status=$?
4658   grep -v '^ *+' conftest.er1 >conftest.err
4659   rm -f conftest.er1
4660   cat conftest.err >&5
4661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4662   (exit $ac_status); } &&
4663          { ac_try='test -z "$ac_c_werror_flag"
4664                          || test ! -s conftest.err'
4665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4666   (eval $ac_try) 2>&5
4667   ac_status=$?
4668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4669   (exit $ac_status); }; } &&
4670          { ac_try='test -s conftest.$ac_objext'
4671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4672   (eval $ac_try) 2>&5
4673   ac_status=$?
4674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4675   (exit $ac_status); }; }; then
4676   ac_cv_prog_cc_g=yes
4677 else
4678   echo "$as_me: failed program was:" >&5
4679 sed 's/^/| /' conftest.$ac_ext >&5
4680
4681 ac_cv_prog_cc_g=no
4682 fi
4683 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4684 fi
4685 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4686 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4687 if test "$ac_test_CFLAGS" = set; then
4688   CFLAGS=$ac_save_CFLAGS
4689 elif test $ac_cv_prog_cc_g = yes; then
4690   if test "$GCC" = yes; then
4691     CFLAGS="-g -O2"
4692   else
4693     CFLAGS="-g"
4694   fi
4695 else
4696   if test "$GCC" = yes; then
4697     CFLAGS="-O2"
4698   else
4699     CFLAGS=
4700   fi
4701 fi
4702 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4703 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4704 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4705   echo $ECHO_N "(cached) $ECHO_C" >&6
4706 else
4707   ac_cv_prog_cc_stdc=no
4708 ac_save_CC=$CC
4709 cat >conftest.$ac_ext <<_ACEOF
4710 /* confdefs.h.  */
4711 _ACEOF
4712 cat confdefs.h >>conftest.$ac_ext
4713 cat >>conftest.$ac_ext <<_ACEOF
4714 /* end confdefs.h.  */
4715 #include <stdarg.h>
4716 #include <stdio.h>
4717 #include <sys/types.h>
4718 #include <sys/stat.h>
4719 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4720 struct buf { int x; };
4721 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4722 static char *e (p, i)
4723      char **p;
4724      int i;
4725 {
4726   return p[i];
4727 }
4728 static char *f (char * (*g) (char **, int), char **p, ...)
4729 {
4730   char *s;
4731   va_list v;
4732   va_start (v,p);
4733   s = g (p, va_arg (v,int));
4734   va_end (v);
4735   return s;
4736 }
4737
4738 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4739    function prototypes and stuff, but not '\xHH' hex character constants.
4740    These don't provoke an error unfortunately, instead are silently treated
4741    as 'x'.  The following induces an error, until -std1 is added to get
4742    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4743    array size at least.  It's necessary to write '\x00'==0 to get something
4744    that's true only with -std1.  */
4745 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4746
4747 int test (int i, double x);
4748 struct s1 {int (*f) (int a);};
4749 struct s2 {int (*f) (double a);};
4750 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4751 int argc;
4752 char **argv;
4753 int
4754 main ()
4755 {
4756 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4757   ;
4758   return 0;
4759 }
4760 _ACEOF
4761 # Don't try gcc -ansi; that turns off useful extensions and
4762 # breaks some systems' header files.
4763 # AIX                   -qlanglvl=ansi
4764 # Ultrix and OSF/1      -std1
4765 # HP-UX 10.20 and later -Ae
4766 # HP-UX older versions  -Aa -D_HPUX_SOURCE
4767 # SVR4                  -Xc -D__EXTENSIONS__
4768 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4769 do
4770   CC="$ac_save_CC $ac_arg"
4771   rm -f conftest.$ac_objext
4772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4773   (eval $ac_compile) 2>conftest.er1
4774   ac_status=$?
4775   grep -v '^ *+' conftest.er1 >conftest.err
4776   rm -f conftest.er1
4777   cat conftest.err >&5
4778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4779   (exit $ac_status); } &&
4780          { ac_try='test -z "$ac_c_werror_flag"
4781                          || test ! -s conftest.err'
4782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4783   (eval $ac_try) 2>&5
4784   ac_status=$?
4785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4786   (exit $ac_status); }; } &&
4787          { ac_try='test -s conftest.$ac_objext'
4788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4789   (eval $ac_try) 2>&5
4790   ac_status=$?
4791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4792   (exit $ac_status); }; }; then
4793   ac_cv_prog_cc_stdc=$ac_arg
4794 break
4795 else
4796   echo "$as_me: failed program was:" >&5
4797 sed 's/^/| /' conftest.$ac_ext >&5
4798
4799 fi
4800 rm -f conftest.err conftest.$ac_objext
4801 done
4802 rm -f conftest.$ac_ext conftest.$ac_objext
4803 CC=$ac_save_CC
4804
4805 fi
4806
4807 case "x$ac_cv_prog_cc_stdc" in
4808   x|xno)
4809     echo "$as_me:$LINENO: result: none needed" >&5
4810 echo "${ECHO_T}none needed" >&6 ;;
4811   *)
4812     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4813 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4814     CC="$CC $ac_cv_prog_cc_stdc" ;;
4815 esac
4816
4817 # Some people use a C++ compiler to compile C.  Since we use `exit',
4818 # in C++ we need to declare it.  In case someone uses the same compiler
4819 # for both compiling C and C++ we need to have the C++ compiler decide
4820 # the declaration of exit, since it's the most demanding environment.
4821 cat >conftest.$ac_ext <<_ACEOF
4822 #ifndef __cplusplus
4823   choke me
4824 #endif
4825 _ACEOF
4826 rm -f conftest.$ac_objext
4827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4828   (eval $ac_compile) 2>conftest.er1
4829   ac_status=$?
4830   grep -v '^ *+' conftest.er1 >conftest.err
4831   rm -f conftest.er1
4832   cat conftest.err >&5
4833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4834   (exit $ac_status); } &&
4835          { ac_try='test -z "$ac_c_werror_flag"
4836                          || test ! -s conftest.err'
4837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4838   (eval $ac_try) 2>&5
4839   ac_status=$?
4840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4841   (exit $ac_status); }; } &&
4842          { ac_try='test -s conftest.$ac_objext'
4843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4844   (eval $ac_try) 2>&5
4845   ac_status=$?
4846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4847   (exit $ac_status); }; }; then
4848   for ac_declaration in \
4849    '' \
4850    'extern "C" void std::exit (int) throw (); using std::exit;' \
4851    'extern "C" void std::exit (int); using std::exit;' \
4852    'extern "C" void exit (int) throw ();' \
4853    'extern "C" void exit (int);' \
4854    'void exit (int);'
4855 do
4856   cat >conftest.$ac_ext <<_ACEOF
4857 /* confdefs.h.  */
4858 _ACEOF
4859 cat confdefs.h >>conftest.$ac_ext
4860 cat >>conftest.$ac_ext <<_ACEOF
4861 /* end confdefs.h.  */
4862 $ac_declaration
4863 #include <stdlib.h>
4864 int
4865 main ()
4866 {
4867 exit (42);
4868   ;
4869   return 0;
4870 }
4871 _ACEOF
4872 rm -f conftest.$ac_objext
4873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4874   (eval $ac_compile) 2>conftest.er1
4875   ac_status=$?
4876   grep -v '^ *+' conftest.er1 >conftest.err
4877   rm -f conftest.er1
4878   cat conftest.err >&5
4879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4880   (exit $ac_status); } &&
4881          { ac_try='test -z "$ac_c_werror_flag"
4882                          || test ! -s conftest.err'
4883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4884   (eval $ac_try) 2>&5
4885   ac_status=$?
4886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4887   (exit $ac_status); }; } &&
4888          { ac_try='test -s conftest.$ac_objext'
4889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4890   (eval $ac_try) 2>&5
4891   ac_status=$?
4892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4893   (exit $ac_status); }; }; then
4894   :
4895 else
4896   echo "$as_me: failed program was:" >&5
4897 sed 's/^/| /' conftest.$ac_ext >&5
4898
4899 continue
4900 fi
4901 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4902   cat >conftest.$ac_ext <<_ACEOF
4903 /* confdefs.h.  */
4904 _ACEOF
4905 cat confdefs.h >>conftest.$ac_ext
4906 cat >>conftest.$ac_ext <<_ACEOF
4907 /* end confdefs.h.  */
4908 $ac_declaration
4909 int
4910 main ()
4911 {
4912 exit (42);
4913   ;
4914   return 0;
4915 }
4916 _ACEOF
4917 rm -f conftest.$ac_objext
4918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4919   (eval $ac_compile) 2>conftest.er1
4920   ac_status=$?
4921   grep -v '^ *+' conftest.er1 >conftest.err
4922   rm -f conftest.er1
4923   cat conftest.err >&5
4924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4925   (exit $ac_status); } &&
4926          { ac_try='test -z "$ac_c_werror_flag"
4927                          || test ! -s conftest.err'
4928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4929   (eval $ac_try) 2>&5
4930   ac_status=$?
4931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4932   (exit $ac_status); }; } &&
4933          { ac_try='test -s conftest.$ac_objext'
4934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4935   (eval $ac_try) 2>&5
4936   ac_status=$?
4937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4938   (exit $ac_status); }; }; then
4939   break
4940 else
4941   echo "$as_me: failed program was:" >&5
4942 sed 's/^/| /' conftest.$ac_ext >&5
4943
4944 fi
4945 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4946 done
4947 rm -f conftest*
4948 if test -n "$ac_declaration"; then
4949   echo '#ifdef __cplusplus' >>confdefs.h
4950   echo $ac_declaration      >>confdefs.h
4951   echo '#endif'             >>confdefs.h
4952 fi
4953
4954 else
4955   echo "$as_me: failed program was:" >&5
4956 sed 's/^/| /' conftest.$ac_ext >&5
4957
4958 fi
4959 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4960 ac_ext=c
4961 ac_cpp='$CPP $CPPFLAGS'
4962 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4963 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4964 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4965
4966 depcc="$CC"   am_compiler_list=
4967
4968 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4969 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4970 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4971   echo $ECHO_N "(cached) $ECHO_C" >&6
4972 else
4973   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4974   # We make a subdir and do the tests there.  Otherwise we can end up
4975   # making bogus files that we don't know about and never remove.  For
4976   # instance it was reported that on HP-UX the gcc test will end up
4977   # making a dummy file named `D' -- because `-MD' means `put the output
4978   # in D'.
4979   mkdir conftest.dir
4980   # Copy depcomp to subdir because otherwise we won't find it if we're
4981   # using a relative directory.
4982   cp "$am_depcomp" conftest.dir
4983   cd conftest.dir
4984   # We will build objects and dependencies in a subdirectory because
4985   # it helps to detect inapplicable dependency modes.  For instance
4986   # both Tru64's cc and ICC support -MD to output dependencies as a
4987   # side effect of compilation, but ICC will put the dependencies in
4988   # the current directory while Tru64 will put them in the object
4989   # directory.
4990   mkdir sub
4991
4992   am_cv_CC_dependencies_compiler_type=none
4993   if test "$am_compiler_list" = ""; then
4994      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4995   fi
4996   for depmode in $am_compiler_list; do
4997     # Setup a source with many dependencies, because some compilers
4998     # like to wrap large dependency lists on column 80 (with \), and
4999     # we should not choose a depcomp mode which is confused by this.
5000     #
5001     # We need to recreate these files for each test, as the compiler may
5002     # overwrite some of them when testing with obscure command lines.
5003     # This happens at least with the AIX C compiler.
5004     : > sub/conftest.c
5005     for i in 1 2 3 4 5 6; do
5006       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5007       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5008       # Solaris 8's {/usr,}/bin/sh.
5009       touch sub/conftst$i.h
5010     done
5011     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5012
5013     case $depmode in
5014     nosideeffect)
5015       # after this tag, mechanisms are not by side-effect, so they'll
5016       # only be used when explicitly requested
5017       if test "x$enable_dependency_tracking" = xyes; then
5018         continue
5019       else
5020         break
5021       fi
5022       ;;
5023     none) break ;;
5024     esac
5025     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5026     # mode.  It turns out that the SunPro C++ compiler does not properly
5027     # handle `-M -o', and we need to detect this.
5028     if depmode=$depmode \
5029        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5030        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5031        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5032          >/dev/null 2>conftest.err &&
5033        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5034        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5035        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5036       # icc doesn't choke on unknown options, it will just issue warnings
5037       # or remarks (even with -Werror).  So we grep stderr for any message
5038       # that says an option was ignored or not supported.
5039       # When given -MP, icc 7.0 and 7.1 complain thusly:
5040       #   icc: Command line warning: ignoring option '-M'; no argument required
5041       # The diagnosis changed in icc 8.0:
5042       #   icc: Command line remark: option '-MP' not supported
5043       if (grep 'ignoring option' conftest.err ||
5044           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5045         am_cv_CC_dependencies_compiler_type=$depmode
5046         break
5047       fi
5048     fi
5049   done
5050
5051   cd ..
5052   rm -rf conftest.dir
5053 else
5054   am_cv_CC_dependencies_compiler_type=none
5055 fi
5056
5057 fi
5058 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5059 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5060 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5061
5062
5063
5064 if
5065   test "x$enable_dependency_tracking" != xno \
5066   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5067   am__fastdepCC_TRUE=
5068   am__fastdepCC_FALSE='#'
5069 else
5070   am__fastdepCC_TRUE='#'
5071   am__fastdepCC_FALSE=
5072 fi
5073
5074
5075 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5076 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5077 if test "${lt_cv_path_SED+set}" = set; then
5078   echo $ECHO_N "(cached) $ECHO_C" >&6
5079 else
5080   # Loop through the user's path and test for sed and gsed.
5081 # Then use that list of sed's as ones to test for truncation.
5082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5083 for as_dir in $PATH
5084 do
5085   IFS=$as_save_IFS
5086   test -z "$as_dir" && as_dir=.
5087   for lt_ac_prog in sed gsed; do
5088     for ac_exec_ext in '' $ac_executable_extensions; do
5089       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5090         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5091       fi
5092     done
5093   done
5094 done
5095 lt_ac_max=0
5096 lt_ac_count=0
5097 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5098 # along with /bin/sed that truncates output.
5099 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5100   test ! -f $lt_ac_sed && continue
5101   cat /dev/null > conftest.in
5102   lt_ac_count=0
5103   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5104   # Check for GNU sed and select it if it is found.
5105   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5106     lt_cv_path_SED=$lt_ac_sed
5107     break
5108   fi
5109   while true; do
5110     cat conftest.in conftest.in >conftest.tmp
5111     mv conftest.tmp conftest.in
5112     cp conftest.in conftest.nl
5113     echo >>conftest.nl
5114     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5115     cmp -s conftest.out conftest.nl || break
5116     # 10000 chars as input seems more than enough
5117     test $lt_ac_count -gt 10 && break
5118     lt_ac_count=`expr $lt_ac_count + 1`
5119     if test $lt_ac_count -gt $lt_ac_max; then
5120       lt_ac_max=$lt_ac_count
5121       lt_cv_path_SED=$lt_ac_sed
5122     fi
5123   done
5124 done
5125
5126 fi
5127
5128 SED=$lt_cv_path_SED
5129 echo "$as_me:$LINENO: result: $SED" >&5
5130 echo "${ECHO_T}$SED" >&6
5131
5132 echo "$as_me:$LINENO: checking for egrep" >&5
5133 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5134 if test "${ac_cv_prog_egrep+set}" = set; then
5135   echo $ECHO_N "(cached) $ECHO_C" >&6
5136 else
5137   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5138     then ac_cv_prog_egrep='grep -E'
5139     else ac_cv_prog_egrep='egrep'
5140     fi
5141 fi
5142 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5143 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5144  EGREP=$ac_cv_prog_egrep
5145
5146
5147
5148 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5149 if test "${with_gnu_ld+set}" = set; then
5150   withval="$with_gnu_ld"
5151   test "$withval" = no || with_gnu_ld=yes
5152 else
5153   with_gnu_ld=no
5154 fi;
5155 ac_prog=ld
5156 if test "$GCC" = yes; then
5157   # Check if gcc -print-prog-name=ld gives a path.
5158   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5159 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5160   case $host in
5161   *-*-mingw*)
5162     # gcc leaves a trailing carriage return which upsets mingw
5163     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5164   *)
5165     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5166   esac
5167   case $ac_prog in
5168     # Accept absolute paths.
5169     [\\/]* | ?:[\\/]*)
5170       re_direlt='/[^/][^/]*/\.\./'
5171       # Canonicalize the pathname of ld
5172       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5173       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5174         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5175       done
5176       test -z "$LD" && LD="$ac_prog"
5177       ;;
5178   "")
5179     # If it fails, then pretend we aren't using GCC.
5180     ac_prog=ld
5181     ;;
5182   *)
5183     # If it is relative, then search for the first ld in PATH.
5184     with_gnu_ld=unknown
5185     ;;
5186   esac
5187 elif test "$with_gnu_ld" = yes; then
5188   echo "$as_me:$LINENO: checking for GNU ld" >&5
5189 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5190 else
5191   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5192 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5193 fi
5194 if test "${lt_cv_path_LD+set}" = set; then
5195   echo $ECHO_N "(cached) $ECHO_C" >&6
5196 else
5197   if test -z "$LD"; then
5198   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5199   for ac_dir in $PATH; do
5200     IFS="$lt_save_ifs"
5201     test -z "$ac_dir" && ac_dir=.
5202     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5203       lt_cv_path_LD="$ac_dir/$ac_prog"
5204       # Check to see if the program is GNU ld.  I'd rather use --version,
5205       # but apparently some GNU ld's only accept -v.
5206       # Break only if it was the GNU/non-GNU ld that we prefer.
5207       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5208       *GNU* | *'with BFD'*)
5209         test "$with_gnu_ld" != no && break
5210         ;;
5211       *)
5212         test "$with_gnu_ld" != yes && break
5213         ;;
5214       esac
5215     fi
5216   done
5217   IFS="$lt_save_ifs"
5218 else
5219   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5220 fi
5221 fi
5222
5223 LD="$lt_cv_path_LD"
5224 if test -n "$LD"; then
5225   echo "$as_me:$LINENO: result: $LD" >&5
5226 echo "${ECHO_T}$LD" >&6
5227 else
5228   echo "$as_me:$LINENO: result: no" >&5
5229 echo "${ECHO_T}no" >&6
5230 fi
5231 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5232 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5233    { (exit 1); exit 1; }; }
5234 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5235 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5236 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5237   echo $ECHO_N "(cached) $ECHO_C" >&6
5238 else
5239   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5240 case `$LD -v 2>&1 </dev/null` in
5241 *GNU* | *'with BFD'*)
5242   lt_cv_prog_gnu_ld=yes
5243   ;;
5244 *)
5245   lt_cv_prog_gnu_ld=no
5246   ;;
5247 esac
5248 fi
5249 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5250 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5251 with_gnu_ld=$lt_cv_prog_gnu_ld
5252
5253
5254 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5255 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5256 if test "${lt_cv_ld_reload_flag+set}" = set; then
5257   echo $ECHO_N "(cached) $ECHO_C" >&6
5258 else
5259   lt_cv_ld_reload_flag='-r'
5260 fi
5261 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5262 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5263 reload_flag=$lt_cv_ld_reload_flag
5264 case $reload_flag in
5265 "" | " "*) ;;
5266 *) reload_flag=" $reload_flag" ;;
5267 esac
5268 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5269 case $host_os in
5270   darwin*)
5271     if test "$GCC" = yes; then
5272       reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
5273     else
5274       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5275     fi
5276     ;;
5277 esac
5278
5279 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5280 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5281 if test "${lt_cv_path_NM+set}" = set; then
5282   echo $ECHO_N "(cached) $ECHO_C" >&6
5283 else
5284   if test -n "$NM"; then
5285   # Let the user override the test.
5286   lt_cv_path_NM="$NM"
5287 else
5288   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5289   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5290     IFS="$lt_save_ifs"
5291     test -z "$ac_dir" && ac_dir=.
5292     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
5293     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5294       # Check to see if the nm accepts a BSD-compat flag.
5295       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5296       #   nm: unknown option "B" ignored
5297       # Tru64's nm complains that /dev/null is an invalid object file
5298       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5299       */dev/null* | *'Invalid file or object type'*)
5300         lt_cv_path_NM="$tmp_nm -B"
5301         break
5302         ;;
5303       *)
5304         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5305         */dev/null*)
5306           lt_cv_path_NM="$tmp_nm -p"
5307           break
5308           ;;
5309         *)
5310           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5311           continue # so that we can try to find one that supports BSD flags
5312           ;;
5313         esac
5314       esac
5315     fi
5316   done
5317   IFS="$lt_save_ifs"
5318   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5319 fi
5320 fi
5321 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5322 echo "${ECHO_T}$lt_cv_path_NM" >&6
5323 NM="$lt_cv_path_NM"
5324
5325 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5326 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5327 LN_S=$as_ln_s
5328 if test "$LN_S" = "ln -s"; then
5329   echo "$as_me:$LINENO: result: yes" >&5
5330 echo "${ECHO_T}yes" >&6
5331 else
5332   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5333 echo "${ECHO_T}no, using $LN_S" >&6
5334 fi
5335
5336 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5337 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5338 if test "${lt_cv_deplibs_check_method+set}" = set; then
5339   echo $ECHO_N "(cached) $ECHO_C" >&6
5340 else
5341   lt_cv_file_magic_cmd='$MAGIC_CMD'
5342 lt_cv_file_magic_test_file=
5343 lt_cv_deplibs_check_method='unknown'
5344 # Need to set the preceding variable on all platforms that support
5345 # interlibrary dependencies.
5346 # 'none' -- dependencies not supported.
5347 # `unknown' -- same as none, but documents that we really don't know.
5348 # 'pass_all' -- all dependencies passed with no checks.
5349 # 'test_compile' -- check by making test program.
5350 # 'file_magic [[regex]]' -- check by looking for files in library path
5351 # which responds to the $file_magic_cmd with a given extended regex.
5352 # If you have `file' or equivalent on your system and you're not sure
5353 # whether `pass_all' will *always* work, you probably want this one.
5354
5355 case $host_os in
5356 aix4* | aix5*)
5357   lt_cv_deplibs_check_method=pass_all
5358   ;;
5359
5360 beos*)
5361   lt_cv_deplibs_check_method=pass_all
5362   ;;
5363
5364 bsdi[45]*)
5365   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5366   lt_cv_file_magic_cmd='/usr/bin/file -L'
5367   lt_cv_file_magic_test_file=/shlib/libc.so
5368   ;;
5369
5370 cygwin*)
5371   # func_win32_libid is a shell function defined in ltmain.sh
5372   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5373   lt_cv_file_magic_cmd='func_win32_libid'
5374   ;;
5375
5376 mingw* | pw32*)
5377   # Base MSYS/MinGW do not provide the 'file' command needed by
5378   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5379   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5380   lt_cv_file_magic_cmd='$OBJDUMP -f'
5381   ;;
5382
5383 darwin* | rhapsody*)
5384   lt_cv_deplibs_check_method=pass_all
5385   ;;
5386
5387 freebsd* | kfreebsd*-gnu | dragonfly*)
5388   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5389     case $host_cpu in
5390     i*86 )
5391       # Not sure whether the presence of OpenBSD here was a mistake.
5392       # Let's accept both of them until this is cleared up.
5393       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5394       lt_cv_file_magic_cmd=/usr/bin/file
5395       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5396       ;;
5397     esac
5398   else
5399     lt_cv_deplibs_check_method=pass_all
5400   fi
5401   ;;
5402
5403 gnu*)
5404   lt_cv_deplibs_check_method=pass_all
5405   ;;
5406
5407 hpux10.20* | hpux11*)
5408   lt_cv_file_magic_cmd=/usr/bin/file
5409   case "$host_cpu" in
5410   ia64*)
5411     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5412     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5413     ;;
5414   hppa*64*)
5415     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]'
5416     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5417     ;;
5418   *)
5419     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5420     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5421     ;;
5422   esac
5423   ;;
5424
5425 irix5* | irix6* | nonstopux*)
5426   case $LD in
5427   *-32|*"-32 ") libmagic=32-bit;;
5428   *-n32|*"-n32 ") libmagic=N32;;
5429   *-64|*"-64 ") libmagic=64-bit;;
5430   *) libmagic=never-match;;
5431   esac
5432   lt_cv_deplibs_check_method=pass_all
5433   ;;
5434
5435 # This must be Linux ELF.
5436 linux*)
5437   lt_cv_deplibs_check_method=pass_all
5438   ;;
5439
5440 netbsd*)
5441   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5442     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5443   else
5444     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5445   fi
5446   ;;
5447
5448 newos6*)
5449   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5450   lt_cv_file_magic_cmd=/usr/bin/file
5451   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5452   ;;
5453
5454 nto-qnx*)
5455   lt_cv_deplibs_check_method=unknown
5456   ;;
5457
5458 openbsd*)
5459   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5460     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5461   else
5462     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5463   fi
5464   ;;
5465
5466 osf3* | osf4* | osf5*)
5467   lt_cv_deplibs_check_method=pass_all
5468   ;;
5469
5470 sco3.2v5*)
5471   lt_cv_deplibs_check_method=pass_all
5472   ;;
5473
5474 solaris*)
5475   lt_cv_deplibs_check_method=pass_all
5476   ;;
5477
5478 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5479   case $host_vendor in
5480   motorola)
5481     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]'
5482     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5483     ;;
5484   ncr)
5485     lt_cv_deplibs_check_method=pass_all
5486     ;;
5487   sequent)
5488     lt_cv_file_magic_cmd='/bin/file'
5489     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5490     ;;
5491   sni)
5492     lt_cv_file_magic_cmd='/bin/file'
5493     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5494     lt_cv_file_magic_test_file=/lib/libc.so
5495     ;;
5496   siemens)
5497     lt_cv_deplibs_check_method=pass_all
5498     ;;
5499   esac
5500   ;;
5501
5502 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
5503   lt_cv_deplibs_check_method=pass_all
5504   ;;
5505 esac
5506
5507 fi
5508 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5509 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5510 file_magic_cmd=$lt_cv_file_magic_cmd
5511 deplibs_check_method=$lt_cv_deplibs_check_method
5512 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5513
5514
5515
5516
5517 # If no C compiler was specified, use CC.
5518 LTCC=${LTCC-"$CC"}
5519
5520 # Allow CC to be a program name with arguments.
5521 compiler=$CC
5522
5523
5524 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5525 if test "${enable_libtool_lock+set}" = set; then
5526   enableval="$enable_libtool_lock"
5527
5528 fi;
5529 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5530
5531 # Some flags need to be propagated to the compiler or linker for good
5532 # libtool support.
5533 case $host in
5534 ia64-*-hpux*)
5535   # Find out which ABI we are using.
5536   echo 'int i;' > conftest.$ac_ext
5537   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5538   (eval $ac_compile) 2>&5
5539   ac_status=$?
5540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5541   (exit $ac_status); }; then
5542     case `/usr/bin/file conftest.$ac_objext` in
5543     *ELF-32*)
5544       HPUX_IA64_MODE="32"
5545       ;;
5546     *ELF-64*)
5547       HPUX_IA64_MODE="64"
5548       ;;
5549     esac
5550   fi
5551   rm -rf conftest*
5552   ;;
5553 *-*-irix6*)
5554   # Find out which ABI we are using.
5555   echo '#line 5555 "configure"' > conftest.$ac_ext
5556   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5557   (eval $ac_compile) 2>&5
5558   ac_status=$?
5559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5560   (exit $ac_status); }; then
5561    if test "$lt_cv_prog_gnu_ld" = yes; then
5562     case `/usr/bin/file conftest.$ac_objext` in
5563     *32-bit*)
5564       LD="${LD-ld} -melf32bsmip"
5565       ;;
5566     *N32*)
5567       LD="${LD-ld} -melf32bmipn32"
5568       ;;
5569     *64-bit*)
5570       LD="${LD-ld} -melf64bmip"
5571       ;;
5572     esac
5573    else
5574     case `/usr/bin/file conftest.$ac_objext` in
5575     *32-bit*)
5576       LD="${LD-ld} -32"
5577       ;;
5578     *N32*)
5579       LD="${LD-ld} -n32"
5580       ;;
5581     *64-bit*)
5582       LD="${LD-ld} -64"
5583       ;;
5584     esac
5585    fi
5586   fi
5587   rm -rf conftest*
5588   ;;
5589
5590 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5591   # Find out which ABI we are using.
5592   echo 'int i;' > conftest.$ac_ext
5593   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5594   (eval $ac_compile) 2>&5
5595   ac_status=$?
5596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5597   (exit $ac_status); }; then
5598     case "`/usr/bin/file conftest.o`" in
5599     *32-bit*)
5600       case $host in
5601         x86_64-*linux*)
5602           LD="${LD-ld} -m elf_i386"
5603           ;;
5604         ppc64-*linux*|powerpc64-*linux*)
5605           LD="${LD-ld} -m elf32ppclinux"
5606           ;;
5607         s390x-*linux*)
5608           LD="${LD-ld} -m elf_s390"
5609           ;;
5610         sparc64-*linux*)
5611           LD="${LD-ld} -m elf32_sparc"
5612           ;;
5613       esac
5614       ;;
5615     *64-bit*)
5616       case $host in
5617         x86_64-*linux*)
5618           LD="${LD-ld} -m elf_x86_64"
5619           ;;
5620         ppc*-*linux*|powerpc*-*linux*)
5621           LD="${LD-ld} -m elf64ppc"
5622           ;;
5623         s390*-*linux*)
5624           LD="${LD-ld} -m elf64_s390"
5625           ;;
5626         sparc*-*linux*)
5627           LD="${LD-ld} -m elf64_sparc"
5628           ;;
5629       esac
5630       ;;
5631     esac
5632   fi
5633   rm -rf conftest*
5634   ;;
5635
5636 *-*-sco3.2v5*)
5637   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5638   SAVE_CFLAGS="$CFLAGS"
5639   CFLAGS="$CFLAGS -belf"
5640   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5641 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5642 if test "${lt_cv_cc_needs_belf+set}" = set; then
5643   echo $ECHO_N "(cached) $ECHO_C" >&6
5644 else
5645   ac_ext=c
5646 ac_cpp='$CPP $CPPFLAGS'
5647 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5648 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5649 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5650
5651      cat >conftest.$ac_ext <<_ACEOF
5652 /* confdefs.h.  */
5653 _ACEOF
5654 cat confdefs.h >>conftest.$ac_ext
5655 cat >>conftest.$ac_ext <<_ACEOF
5656 /* end confdefs.h.  */
5657
5658 int
5659 main ()
5660 {
5661
5662   ;
5663   return 0;
5664 }
5665 _ACEOF
5666 rm -f conftest.$ac_objext conftest$ac_exeext
5667 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5668   (eval $ac_link) 2>conftest.er1
5669   ac_status=$?
5670   grep -v '^ *+' conftest.er1 >conftest.err
5671   rm -f conftest.er1
5672   cat conftest.err >&5
5673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5674   (exit $ac_status); } &&
5675          { ac_try='test -z "$ac_c_werror_flag"
5676                          || test ! -s conftest.err'
5677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5678   (eval $ac_try) 2>&5
5679   ac_status=$?
5680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5681   (exit $ac_status); }; } &&
5682          { ac_try='test -s conftest$ac_exeext'
5683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5684   (eval $ac_try) 2>&5
5685   ac_status=$?
5686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5687   (exit $ac_status); }; }; then
5688   lt_cv_cc_needs_belf=yes
5689 else
5690   echo "$as_me: failed program was:" >&5
5691 sed 's/^/| /' conftest.$ac_ext >&5
5692
5693 lt_cv_cc_needs_belf=no
5694 fi
5695 rm -f conftest.err conftest.$ac_objext \
5696       conftest$ac_exeext conftest.$ac_ext
5697      ac_ext=c
5698 ac_cpp='$CPP $CPPFLAGS'
5699 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5700 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5701 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5702
5703 fi
5704 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5705 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5706   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5707     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5708     CFLAGS="$SAVE_CFLAGS"
5709   fi
5710   ;;
5711 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
5712   if test -n "$ac_tool_prefix"; then
5713   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5714 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5715 echo "$as_me:$LINENO: checking for $ac_word" >&5
5716 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5717 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
5718   echo $ECHO_N "(cached) $ECHO_C" >&6
5719 else
5720   if test -n "$DLLTOOL"; then
5721   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5722 else
5723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5724 for as_dir in $PATH
5725 do
5726   IFS=$as_save_IFS
5727   test -z "$as_dir" && as_dir=.
5728   for ac_exec_ext in '' $ac_executable_extensions; do
5729   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5730     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5731     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5732     break 2
5733   fi
5734 done
5735 done
5736
5737 fi
5738 fi
5739 DLLTOOL=$ac_cv_prog_DLLTOOL
5740 if test -n "$DLLTOOL"; then
5741   echo "$as_me:$LINENO: result: $DLLTOOL" >&5
5742 echo "${ECHO_T}$DLLTOOL" >&6
5743 else
5744   echo "$as_me:$LINENO: result: no" >&5
5745 echo "${ECHO_T}no" >&6
5746 fi
5747
5748 fi
5749 if test -z "$ac_cv_prog_DLLTOOL"; then
5750   ac_ct_DLLTOOL=$DLLTOOL
5751   # Extract the first word of "dlltool", so it can be a program name with args.
5752 set dummy dlltool; ac_word=$2
5753 echo "$as_me:$LINENO: checking for $ac_word" >&5
5754 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5755 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
5756   echo $ECHO_N "(cached) $ECHO_C" >&6
5757 else
5758   if test -n "$ac_ct_DLLTOOL"; then
5759   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5760 else
5761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5762 for as_dir in $PATH
5763 do
5764   IFS=$as_save_IFS
5765   test -z "$as_dir" && as_dir=.
5766   for ac_exec_ext in '' $ac_executable_extensions; do
5767   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5768     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5769     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5770     break 2
5771   fi
5772 done
5773 done
5774
5775   test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
5776 fi
5777 fi
5778 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5779 if test -n "$ac_ct_DLLTOOL"; then
5780   echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
5781 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
5782 else
5783   echo "$as_me:$LINENO: result: no" >&5
5784 echo "${ECHO_T}no" >&6
5785 fi
5786
5787   DLLTOOL=$ac_ct_DLLTOOL
5788 else
5789   DLLTOOL="$ac_cv_prog_DLLTOOL"
5790 fi
5791
5792   if test -n "$ac_tool_prefix"; then
5793   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5794 set dummy ${ac_tool_prefix}as; ac_word=$2
5795 echo "$as_me:$LINENO: checking for $ac_word" >&5
5796 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5797 if test "${ac_cv_prog_AS+set}" = set; then
5798   echo $ECHO_N "(cached) $ECHO_C" >&6
5799 else
5800   if test -n "$AS"; then
5801   ac_cv_prog_AS="$AS" # Let the user override the test.
5802 else
5803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5804 for as_dir in $PATH
5805 do
5806   IFS=$as_save_IFS
5807   test -z "$as_dir" && as_dir=.
5808   for ac_exec_ext in '' $ac_executable_extensions; do
5809   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5810     ac_cv_prog_AS="${ac_tool_prefix}as"
5811     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5812     break 2
5813   fi
5814 done
5815 done
5816
5817 fi
5818 fi
5819 AS=$ac_cv_prog_AS
5820 if test -n "$AS"; then
5821   echo "$as_me:$LINENO: result: $AS" >&5
5822 echo "${ECHO_T}$AS" >&6
5823 else
5824   echo "$as_me:$LINENO: result: no" >&5
5825 echo "${ECHO_T}no" >&6
5826 fi
5827
5828 fi
5829 if test -z "$ac_cv_prog_AS"; then
5830   ac_ct_AS=$AS
5831   # Extract the first word of "as", so it can be a program name with args.
5832 set dummy as; ac_word=$2
5833 echo "$as_me:$LINENO: checking for $ac_word" >&5
5834 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5835 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
5836   echo $ECHO_N "(cached) $ECHO_C" >&6
5837 else
5838   if test -n "$ac_ct_AS"; then
5839   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5840 else
5841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5842 for as_dir in $PATH
5843 do
5844   IFS=$as_save_IFS
5845   test -z "$as_dir" && as_dir=.
5846   for ac_exec_ext in '' $ac_executable_extensions; do
5847   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5848     ac_cv_prog_ac_ct_AS="as"
5849     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5850     break 2
5851   fi
5852 done
5853 done
5854
5855   test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
5856 fi
5857 fi
5858 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5859 if test -n "$ac_ct_AS"; then
5860   echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
5861 echo "${ECHO_T}$ac_ct_AS" >&6
5862 else
5863   echo "$as_me:$LINENO: result: no" >&5
5864 echo "${ECHO_T}no" >&6
5865 fi
5866
5867   AS=$ac_ct_AS
5868 else
5869   AS="$ac_cv_prog_AS"
5870 fi
5871
5872   if test -n "$ac_tool_prefix"; then
5873   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5874 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5875 echo "$as_me:$LINENO: checking for $ac_word" >&5
5876 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5877 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5878   echo $ECHO_N "(cached) $ECHO_C" >&6
5879 else
5880   if test -n "$OBJDUMP"; then
5881   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5882 else
5883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5884 for as_dir in $PATH
5885 do
5886   IFS=$as_save_IFS
5887   test -z "$as_dir" && as_dir=.
5888   for ac_exec_ext in '' $ac_executable_extensions; do
5889   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5890     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5891     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5892     break 2
5893   fi
5894 done
5895 done
5896
5897 fi
5898 fi
5899 OBJDUMP=$ac_cv_prog_OBJDUMP
5900 if test -n "$OBJDUMP"; then
5901   echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5902 echo "${ECHO_T}$OBJDUMP" >&6
5903 else
5904   echo "$as_me:$LINENO: result: no" >&5
5905 echo "${ECHO_T}no" >&6
5906 fi
5907
5908 fi
5909 if test -z "$ac_cv_prog_OBJDUMP"; then
5910   ac_ct_OBJDUMP=$OBJDUMP
5911   # Extract the first word of "objdump", so it can be a program name with args.
5912 set dummy objdump; ac_word=$2
5913 echo "$as_me:$LINENO: checking for $ac_word" >&5
5914 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5915 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5916   echo $ECHO_N "(cached) $ECHO_C" >&6
5917 else
5918   if test -n "$ac_ct_OBJDUMP"; then
5919   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5920 else
5921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5922 for as_dir in $PATH
5923 do
5924   IFS=$as_save_IFS
5925   test -z "$as_dir" && as_dir=.
5926   for ac_exec_ext in '' $ac_executable_extensions; do
5927   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5928     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5929     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5930     break 2
5931   fi
5932 done
5933 done
5934
5935   test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
5936 fi
5937 fi
5938 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5939 if test -n "$ac_ct_OBJDUMP"; then
5940   echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5941 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
5942 else
5943   echo "$as_me:$LINENO: result: no" >&5
5944 echo "${ECHO_T}no" >&6
5945 fi
5946
5947   OBJDUMP=$ac_ct_OBJDUMP
5948 else
5949   OBJDUMP="$ac_cv_prog_OBJDUMP"
5950 fi
5951
5952   ;;
5953
5954 esac
5955
5956 need_locks="$enable_libtool_lock"
5957
5958
5959 ac_ext=c
5960 ac_cpp='$CPP $CPPFLAGS'
5961 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5962 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5963 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5964 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5965 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5966 # On Suns, sometimes $CPP names a directory.
5967 if test -n "$CPP" && test -d "$CPP"; then
5968   CPP=
5969 fi
5970 if test -z "$CPP"; then
5971   if test "${ac_cv_prog_CPP+set}" = set; then
5972   echo $ECHO_N "(cached) $ECHO_C" >&6
5973 else
5974       # Double quotes because CPP needs to be expanded
5975     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5976     do
5977       ac_preproc_ok=false
5978 for ac_c_preproc_warn_flag in '' yes
5979 do
5980   # Use a header file that comes with gcc, so configuring glibc
5981   # with a fresh cross-compiler works.
5982   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5983   # <limits.h> exists even on freestanding compilers.
5984   # On the NeXT, cc -E runs the code through the compiler's parser,
5985   # not just through cpp. "Syntax error" is here to catch this case.
5986   cat >conftest.$ac_ext <<_ACEOF
5987 /* confdefs.h.  */
5988 _ACEOF
5989 cat confdefs.h >>conftest.$ac_ext
5990 cat >>conftest.$ac_ext <<_ACEOF
5991 /* end confdefs.h.  */
5992 #ifdef __STDC__
5993 # include <limits.h>
5994 #else
5995 # include <assert.h>
5996 #endif
5997                      Syntax error
5998 _ACEOF
5999 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6000   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6001   ac_status=$?
6002   grep -v '^ *+' conftest.er1 >conftest.err
6003   rm -f conftest.er1
6004   cat conftest.err >&5
6005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6006   (exit $ac_status); } >/dev/null; then
6007   if test -s conftest.err; then
6008     ac_cpp_err=$ac_c_preproc_warn_flag
6009     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6010   else
6011     ac_cpp_err=
6012   fi
6013 else
6014   ac_cpp_err=yes
6015 fi
6016 if test -z "$ac_cpp_err"; then
6017   :
6018 else
6019   echo "$as_me: failed program was:" >&5
6020 sed 's/^/| /' conftest.$ac_ext >&5
6021
6022   # Broken: fails on valid input.
6023 continue
6024 fi
6025 rm -f conftest.err conftest.$ac_ext
6026
6027   # OK, works on sane cases.  Now check whether non-existent headers
6028   # can be detected and how.
6029   cat >conftest.$ac_ext <<_ACEOF
6030 /* confdefs.h.  */
6031 _ACEOF
6032 cat confdefs.h >>conftest.$ac_ext
6033 cat >>conftest.$ac_ext <<_ACEOF
6034 /* end confdefs.h.  */
6035 #include <ac_nonexistent.h>
6036 _ACEOF
6037 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6038   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6039   ac_status=$?
6040   grep -v '^ *+' conftest.er1 >conftest.err
6041   rm -f conftest.er1
6042   cat conftest.err >&5
6043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6044   (exit $ac_status); } >/dev/null; then
6045   if test -s conftest.err; then
6046     ac_cpp_err=$ac_c_preproc_warn_flag
6047     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6048   else
6049     ac_cpp_err=
6050   fi
6051 else
6052   ac_cpp_err=yes
6053 fi
6054 if test -z "$ac_cpp_err"; then
6055   # Broken: success on invalid input.
6056 continue
6057 else
6058   echo "$as_me: failed program was:" >&5
6059 sed 's/^/| /' conftest.$ac_ext >&5
6060
6061   # Passes both tests.
6062 ac_preproc_ok=:
6063 break
6064 fi
6065 rm -f conftest.err conftest.$ac_ext
6066
6067 done
6068 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6069 rm -f conftest.err conftest.$ac_ext
6070 if $ac_preproc_ok; then
6071   break
6072 fi
6073
6074     done
6075     ac_cv_prog_CPP=$CPP
6076
6077 fi
6078   CPP=$ac_cv_prog_CPP
6079 else
6080   ac_cv_prog_CPP=$CPP
6081 fi
6082 echo "$as_me:$LINENO: result: $CPP" >&5
6083 echo "${ECHO_T}$CPP" >&6
6084 ac_preproc_ok=false
6085 for ac_c_preproc_warn_flag in '' yes
6086 do
6087   # Use a header file that comes with gcc, so configuring glibc
6088   # with a fresh cross-compiler works.
6089   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6090   # <limits.h> exists even on freestanding compilers.
6091   # On the NeXT, cc -E runs the code through the compiler's parser,
6092   # not just through cpp. "Syntax error" is here to catch this case.
6093   cat >conftest.$ac_ext <<_ACEOF
6094 /* confdefs.h.  */
6095 _ACEOF
6096 cat confdefs.h >>conftest.$ac_ext
6097 cat >>conftest.$ac_ext <<_ACEOF
6098 /* end confdefs.h.  */
6099 #ifdef __STDC__
6100 # include <limits.h>
6101 #else
6102 # include <assert.h>
6103 #endif
6104                      Syntax error
6105 _ACEOF
6106 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6107   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6108   ac_status=$?
6109   grep -v '^ *+' conftest.er1 >conftest.err
6110   rm -f conftest.er1
6111   cat conftest.err >&5
6112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6113   (exit $ac_status); } >/dev/null; then
6114   if test -s conftest.err; then
6115     ac_cpp_err=$ac_c_preproc_warn_flag
6116     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6117   else
6118     ac_cpp_err=
6119   fi
6120 else
6121   ac_cpp_err=yes
6122 fi
6123 if test -z "$ac_cpp_err"; then
6124   :
6125 else
6126   echo "$as_me: failed program was:" >&5
6127 sed 's/^/| /' conftest.$ac_ext >&5
6128
6129   # Broken: fails on valid input.
6130 continue
6131 fi
6132 rm -f conftest.err conftest.$ac_ext
6133
6134   # OK, works on sane cases.  Now check whether non-existent headers
6135   # can be detected and how.
6136   cat >conftest.$ac_ext <<_ACEOF
6137 /* confdefs.h.  */
6138 _ACEOF
6139 cat confdefs.h >>conftest.$ac_ext
6140 cat >>conftest.$ac_ext <<_ACEOF
6141 /* end confdefs.h.  */
6142 #include <ac_nonexistent.h>
6143 _ACEOF
6144 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6145   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6146   ac_status=$?
6147   grep -v '^ *+' conftest.er1 >conftest.err
6148   rm -f conftest.er1
6149   cat conftest.err >&5
6150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6151   (exit $ac_status); } >/dev/null; then
6152   if test -s conftest.err; then
6153     ac_cpp_err=$ac_c_preproc_warn_flag
6154     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6155   else
6156     ac_cpp_err=
6157   fi
6158 else
6159   ac_cpp_err=yes
6160 fi
6161 if test -z "$ac_cpp_err"; then
6162   # Broken: success on invalid input.
6163 continue
6164 else
6165   echo "$as_me: failed program was:" >&5
6166 sed 's/^/| /' conftest.$ac_ext >&5
6167
6168   # Passes both tests.
6169 ac_preproc_ok=:
6170 break
6171 fi
6172 rm -f conftest.err conftest.$ac_ext
6173
6174 done
6175 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6176 rm -f conftest.err conftest.$ac_ext
6177 if $ac_preproc_ok; then
6178   :
6179 else
6180   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6181 See \`config.log' for more details." >&5
6182 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6183 See \`config.log' for more details." >&2;}
6184    { (exit 1); exit 1; }; }
6185 fi
6186
6187 ac_ext=c
6188 ac_cpp='$CPP $CPPFLAGS'
6189 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6190 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6191 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6192
6193
6194 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6195 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6196 if test "${ac_cv_header_stdc+set}" = set; then
6197   echo $ECHO_N "(cached) $ECHO_C" >&6
6198 else
6199   cat >conftest.$ac_ext <<_ACEOF
6200 /* confdefs.h.  */
6201 _ACEOF
6202 cat confdefs.h >>conftest.$ac_ext
6203 cat >>conftest.$ac_ext <<_ACEOF
6204 /* end confdefs.h.  */
6205 #include <stdlib.h>
6206 #include <stdarg.h>
6207 #include <string.h>
6208 #include <float.h>
6209
6210 int
6211 main ()
6212 {
6213
6214   ;
6215   return 0;
6216 }
6217 _ACEOF
6218 rm -f conftest.$ac_objext
6219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6220   (eval $ac_compile) 2>conftest.er1
6221   ac_status=$?
6222   grep -v '^ *+' conftest.er1 >conftest.err
6223   rm -f conftest.er1
6224   cat conftest.err >&5
6225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6226   (exit $ac_status); } &&
6227          { ac_try='test -z "$ac_c_werror_flag"
6228                          || test ! -s conftest.err'
6229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6230   (eval $ac_try) 2>&5
6231   ac_status=$?
6232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6233   (exit $ac_status); }; } &&
6234          { ac_try='test -s conftest.$ac_objext'
6235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6236   (eval $ac_try) 2>&5
6237   ac_status=$?
6238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6239   (exit $ac_status); }; }; then
6240   ac_cv_header_stdc=yes
6241 else
6242   echo "$as_me: failed program was:" >&5
6243 sed 's/^/| /' conftest.$ac_ext >&5
6244
6245 ac_cv_header_stdc=no
6246 fi
6247 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6248
6249 if test $ac_cv_header_stdc = yes; then
6250   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6251   cat >conftest.$ac_ext <<_ACEOF
6252 /* confdefs.h.  */
6253 _ACEOF
6254 cat confdefs.h >>conftest.$ac_ext
6255 cat >>conftest.$ac_ext <<_ACEOF
6256 /* end confdefs.h.  */
6257 #include <string.h>
6258
6259 _ACEOF
6260 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6261   $EGREP "memchr" >/dev/null 2>&1; then
6262   :
6263 else
6264   ac_cv_header_stdc=no
6265 fi
6266 rm -f conftest*
6267
6268 fi
6269
6270 if test $ac_cv_header_stdc = yes; then
6271   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6272   cat >conftest.$ac_ext <<_ACEOF
6273 /* confdefs.h.  */
6274 _ACEOF
6275 cat confdefs.h >>conftest.$ac_ext
6276 cat >>conftest.$ac_ext <<_ACEOF
6277 /* end confdefs.h.  */
6278 #include <stdlib.h>
6279
6280 _ACEOF
6281 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6282   $EGREP "free" >/dev/null 2>&1; then
6283   :
6284 else
6285   ac_cv_header_stdc=no
6286 fi
6287 rm -f conftest*
6288
6289 fi
6290
6291 if test $ac_cv_header_stdc = yes; then
6292   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6293   if test "$cross_compiling" = yes; then
6294   :
6295 else
6296   cat >conftest.$ac_ext <<_ACEOF
6297 /* confdefs.h.  */
6298 _ACEOF
6299 cat confdefs.h >>conftest.$ac_ext
6300 cat >>conftest.$ac_ext <<_ACEOF
6301 /* end confdefs.h.  */
6302 #include <ctype.h>
6303 #if ((' ' & 0x0FF) == 0x020)
6304 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6305 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6306 #else
6307 # define ISLOWER(c) \
6308                    (('a' <= (c) && (c) <= 'i') \
6309                      || ('j' <= (c) && (c) <= 'r') \
6310                      || ('s' <= (c) && (c) <= 'z'))
6311 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6312 #endif
6313
6314 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6315 int
6316 main ()
6317 {
6318   int i;
6319   for (i = 0; i < 256; i++)
6320     if (XOR (islower (i), ISLOWER (i))
6321         || toupper (i) != TOUPPER (i))
6322       exit(2);
6323   exit (0);
6324 }
6325 _ACEOF
6326 rm -f conftest$ac_exeext
6327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6328   (eval $ac_link) 2>&5
6329   ac_status=$?
6330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6331   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6333   (eval $ac_try) 2>&5
6334   ac_status=$?
6335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6336   (exit $ac_status); }; }; then
6337   :
6338 else
6339   echo "$as_me: program exited with status $ac_status" >&5
6340 echo "$as_me: failed program was:" >&5
6341 sed 's/^/| /' conftest.$ac_ext >&5
6342
6343 ( exit $ac_status )
6344 ac_cv_header_stdc=no
6345 fi
6346 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6347 fi
6348 fi
6349 fi
6350 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6351 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6352 if test $ac_cv_header_stdc = yes; then
6353
6354 cat >>confdefs.h <<\_ACEOF
6355 #define STDC_HEADERS 1
6356 _ACEOF
6357
6358 fi
6359
6360 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6371                   inttypes.h stdint.h unistd.h
6372 do
6373 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6374 echo "$as_me:$LINENO: checking for $ac_header" >&5
6375 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6376 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6377   echo $ECHO_N "(cached) $ECHO_C" >&6
6378 else
6379   cat >conftest.$ac_ext <<_ACEOF
6380 /* confdefs.h.  */
6381 _ACEOF
6382 cat confdefs.h >>conftest.$ac_ext
6383 cat >>conftest.$ac_ext <<_ACEOF
6384 /* end confdefs.h.  */
6385 $ac_includes_default
6386
6387 #include <$ac_header>
6388 _ACEOF
6389 rm -f conftest.$ac_objext
6390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6391   (eval $ac_compile) 2>conftest.er1
6392   ac_status=$?
6393   grep -v '^ *+' conftest.er1 >conftest.err
6394   rm -f conftest.er1
6395   cat conftest.err >&5
6396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6397   (exit $ac_status); } &&
6398          { ac_try='test -z "$ac_c_werror_flag"
6399                          || test ! -s conftest.err'
6400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6401   (eval $ac_try) 2>&5
6402   ac_status=$?
6403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6404   (exit $ac_status); }; } &&
6405          { ac_try='test -s conftest.$ac_objext'
6406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6407   (eval $ac_try) 2>&5
6408   ac_status=$?
6409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6410   (exit $ac_status); }; }; then
6411   eval "$as_ac_Header=yes"
6412 else
6413   echo "$as_me: failed program was:" >&5
6414 sed 's/^/| /' conftest.$ac_ext >&5
6415
6416 eval "$as_ac_Header=no"
6417 fi
6418 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6419 fi
6420 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6421 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6422 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6423   cat >>confdefs.h <<_ACEOF
6424 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6425 _ACEOF
6426
6427 fi
6428
6429 done
6430
6431
6432
6433 for ac_header in dlfcn.h
6434 do
6435 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6436 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6437   echo "$as_me:$LINENO: checking for $ac_header" >&5
6438 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6439 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6440   echo $ECHO_N "(cached) $ECHO_C" >&6
6441 fi
6442 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6443 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6444 else
6445   # Is the header compilable?
6446 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6447 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6448 cat >conftest.$ac_ext <<_ACEOF
6449 /* confdefs.h.  */
6450 _ACEOF
6451 cat confdefs.h >>conftest.$ac_ext
6452 cat >>conftest.$ac_ext <<_ACEOF
6453 /* end confdefs.h.  */
6454 $ac_includes_default
6455 #include <$ac_header>
6456 _ACEOF
6457 rm -f conftest.$ac_objext
6458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6459   (eval $ac_compile) 2>conftest.er1
6460   ac_status=$?
6461   grep -v '^ *+' conftest.er1 >conftest.err
6462   rm -f conftest.er1
6463   cat conftest.err >&5
6464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6465   (exit $ac_status); } &&
6466          { ac_try='test -z "$ac_c_werror_flag"
6467                          || test ! -s conftest.err'
6468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6469   (eval $ac_try) 2>&5
6470   ac_status=$?
6471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6472   (exit $ac_status); }; } &&
6473          { ac_try='test -s conftest.$ac_objext'
6474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6475   (eval $ac_try) 2>&5
6476   ac_status=$?
6477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6478   (exit $ac_status); }; }; then
6479   ac_header_compiler=yes
6480 else
6481   echo "$as_me: failed program was:" >&5
6482 sed 's/^/| /' conftest.$ac_ext >&5
6483
6484 ac_header_compiler=no
6485 fi
6486 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6487 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6488 echo "${ECHO_T}$ac_header_compiler" >&6
6489
6490 # Is the header present?
6491 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6492 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6493 cat >conftest.$ac_ext <<_ACEOF
6494 /* confdefs.h.  */
6495 _ACEOF
6496 cat confdefs.h >>conftest.$ac_ext
6497 cat >>conftest.$ac_ext <<_ACEOF
6498 /* end confdefs.h.  */
6499 #include <$ac_header>
6500 _ACEOF
6501 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6502   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6503   ac_status=$?
6504   grep -v '^ *+' conftest.er1 >conftest.err
6505   rm -f conftest.er1
6506   cat conftest.err >&5
6507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6508   (exit $ac_status); } >/dev/null; then
6509   if test -s conftest.err; then
6510     ac_cpp_err=$ac_c_preproc_warn_flag
6511     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6512   else
6513     ac_cpp_err=
6514   fi
6515 else
6516   ac_cpp_err=yes
6517 fi
6518 if test -z "$ac_cpp_err"; then
6519   ac_header_preproc=yes
6520 else
6521   echo "$as_me: failed program was:" >&5
6522 sed 's/^/| /' conftest.$ac_ext >&5
6523
6524   ac_header_preproc=no
6525 fi
6526 rm -f conftest.err conftest.$ac_ext
6527 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6528 echo "${ECHO_T}$ac_header_preproc" >&6
6529
6530 # So?  What about this header?
6531 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6532   yes:no: )
6533     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6534 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6535     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6536 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6537     ac_header_preproc=yes
6538     ;;
6539   no:yes:* )
6540     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6541 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6542     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6543 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6544     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6545 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6546     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6547 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6548     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6549 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6550     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6551 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6552     (
6553       cat <<\_ASBOX
6554 ## ------------------------------------------ ##
6555 ## Report this to the AC_PACKAGE_NAME lists.  ##
6556 ## ------------------------------------------ ##
6557 _ASBOX
6558     ) |
6559       sed "s/^/$as_me: WARNING:     /" >&2
6560     ;;
6561 esac
6562 echo "$as_me:$LINENO: checking for $ac_header" >&5
6563 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6564 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6565   echo $ECHO_N "(cached) $ECHO_C" >&6
6566 else
6567   eval "$as_ac_Header=\$ac_header_preproc"
6568 fi
6569 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6570 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6571
6572 fi
6573 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6574   cat >>confdefs.h <<_ACEOF
6575 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6576 _ACEOF
6577
6578 fi
6579
6580 done
6581
6582 ac_ext=cc
6583 ac_cpp='$CXXCPP $CPPFLAGS'
6584 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6585 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6586 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6587 if test -n "$ac_tool_prefix"; then
6588   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
6589   do
6590     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6591 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6592 echo "$as_me:$LINENO: checking for $ac_word" >&5
6593 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6594 if test "${ac_cv_prog_CXX+set}" = set; then
6595   echo $ECHO_N "(cached) $ECHO_C" >&6
6596 else
6597   if test -n "$CXX"; then
6598   ac_cv_prog_CXX="$CXX" # Let the user override the test.
6599 else
6600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6601 for as_dir in $PATH
6602 do
6603   IFS=$as_save_IFS
6604   test -z "$as_dir" && as_dir=.
6605   for ac_exec_ext in '' $ac_executable_extensions; do
6606   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6607     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6608     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6609     break 2
6610   fi
6611 done
6612 done
6613
6614 fi
6615 fi
6616 CXX=$ac_cv_prog_CXX
6617 if test -n "$CXX"; then
6618   echo "$as_me:$LINENO: result: $CXX" >&5
6619 echo "${ECHO_T}$CXX" >&6
6620 else
6621   echo "$as_me:$LINENO: result: no" >&5
6622 echo "${ECHO_T}no" >&6
6623 fi
6624
6625     test -n "$CXX" && break
6626   done
6627 fi
6628 if test -z "$CXX"; then
6629   ac_ct_CXX=$CXX
6630   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
6631 do
6632   # Extract the first word of "$ac_prog", so it can be a program name with args.
6633 set dummy $ac_prog; ac_word=$2
6634 echo "$as_me:$LINENO: checking for $ac_word" >&5
6635 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6636 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6637   echo $ECHO_N "(cached) $ECHO_C" >&6
6638 else
6639   if test -n "$ac_ct_CXX"; then
6640   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6641 else
6642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6643 for as_dir in $PATH
6644 do
6645   IFS=$as_save_IFS
6646   test -z "$as_dir" && as_dir=.
6647   for ac_exec_ext in '' $ac_executable_extensions; do
6648   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6649     ac_cv_prog_ac_ct_CXX="$ac_prog"
6650     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6651     break 2
6652   fi
6653 done
6654 done
6655
6656 fi
6657 fi
6658 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6659 if test -n "$ac_ct_CXX"; then
6660   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6661 echo "${ECHO_T}$ac_ct_CXX" >&6
6662 else
6663   echo "$as_me:$LINENO: result: no" >&5
6664 echo "${ECHO_T}no" >&6
6665 fi
6666
6667   test -n "$ac_ct_CXX" && break
6668 done
6669 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
6670
6671   CXX=$ac_ct_CXX
6672 fi
6673
6674
6675 # Provide some information about the compiler.
6676 echo "$as_me:$LINENO:" \
6677      "checking for C++ compiler version" >&5
6678 ac_compiler=`set X $ac_compile; echo $2`
6679 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6680   (eval $ac_compiler --version </dev/null >&5) 2>&5
6681   ac_status=$?
6682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6683   (exit $ac_status); }
6684 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6685   (eval $ac_compiler -v </dev/null >&5) 2>&5
6686   ac_status=$?
6687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6688   (exit $ac_status); }
6689 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6690   (eval $ac_compiler -V </dev/null >&5) 2>&5
6691   ac_status=$?
6692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6693   (exit $ac_status); }
6694
6695 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6696 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
6697 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6698   echo $ECHO_N "(cached) $ECHO_C" >&6
6699 else
6700   cat >conftest.$ac_ext <<_ACEOF
6701 /* confdefs.h.  */
6702 _ACEOF
6703 cat confdefs.h >>conftest.$ac_ext
6704 cat >>conftest.$ac_ext <<_ACEOF
6705 /* end confdefs.h.  */
6706
6707 int
6708 main ()
6709 {
6710 #ifndef __GNUC__
6711        choke me
6712 #endif
6713
6714   ;
6715   return 0;
6716 }
6717 _ACEOF
6718 rm -f conftest.$ac_objext
6719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6720   (eval $ac_compile) 2>conftest.er1
6721   ac_status=$?
6722   grep -v '^ *+' conftest.er1 >conftest.err
6723   rm -f conftest.er1
6724   cat conftest.err >&5
6725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6726   (exit $ac_status); } &&
6727          { ac_try='test -z "$ac_cxx_werror_flag"
6728                          || test ! -s conftest.err'
6729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6730   (eval $ac_try) 2>&5
6731   ac_status=$?
6732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6733   (exit $ac_status); }; } &&
6734          { ac_try='test -s conftest.$ac_objext'
6735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6736   (eval $ac_try) 2>&5
6737   ac_status=$?
6738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6739   (exit $ac_status); }; }; then
6740   ac_compiler_gnu=yes
6741 else
6742   echo "$as_me: failed program was:" >&5
6743 sed 's/^/| /' conftest.$ac_ext >&5
6744
6745 ac_compiler_gnu=no
6746 fi
6747 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6748 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6749
6750 fi
6751 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6752 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
6753 GXX=`test $ac_compiler_gnu = yes && echo yes`
6754 ac_test_CXXFLAGS=${CXXFLAGS+set}
6755 ac_save_CXXFLAGS=$CXXFLAGS
6756 CXXFLAGS="-g"
6757 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6758 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
6759 if test "${ac_cv_prog_cxx_g+set}" = set; then
6760   echo $ECHO_N "(cached) $ECHO_C" >&6
6761 else
6762   cat >conftest.$ac_ext <<_ACEOF
6763 /* confdefs.h.  */
6764 _ACEOF
6765 cat confdefs.h >>conftest.$ac_ext
6766 cat >>conftest.$ac_ext <<_ACEOF
6767 /* end confdefs.h.  */
6768
6769 int
6770 main ()
6771 {
6772
6773   ;
6774   return 0;
6775 }
6776 _ACEOF
6777 rm -f conftest.$ac_objext
6778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6779   (eval $ac_compile) 2>conftest.er1
6780   ac_status=$?
6781   grep -v '^ *+' conftest.er1 >conftest.err
6782   rm -f conftest.er1
6783   cat conftest.err >&5
6784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6785   (exit $ac_status); } &&
6786          { ac_try='test -z "$ac_cxx_werror_flag"
6787                          || test ! -s conftest.err'
6788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6789   (eval $ac_try) 2>&5
6790   ac_status=$?
6791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6792   (exit $ac_status); }; } &&
6793          { ac_try='test -s conftest.$ac_objext'
6794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6795   (eval $ac_try) 2>&5
6796   ac_status=$?
6797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6798   (exit $ac_status); }; }; then
6799   ac_cv_prog_cxx_g=yes
6800 else
6801   echo "$as_me: failed program was:" >&5
6802 sed 's/^/| /' conftest.$ac_ext >&5
6803
6804 ac_cv_prog_cxx_g=no
6805 fi
6806 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6807 fi
6808 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6809 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
6810 if test "$ac_test_CXXFLAGS" = set; then
6811   CXXFLAGS=$ac_save_CXXFLAGS
6812 elif test $ac_cv_prog_cxx_g = yes; then
6813   if test "$GXX" = yes; then
6814     CXXFLAGS="-g -O2"
6815   else
6816     CXXFLAGS="-g"
6817   fi
6818 else
6819   if test "$GXX" = yes; then
6820     CXXFLAGS="-O2"
6821   else
6822     CXXFLAGS=
6823   fi
6824 fi
6825 for ac_declaration in \
6826    '' \
6827    'extern "C" void std::exit (int) throw (); using std::exit;' \
6828    'extern "C" void std::exit (int); using std::exit;' \
6829    'extern "C" void exit (int) throw ();' \
6830    'extern "C" void exit (int);' \
6831    'void exit (int);'
6832 do
6833   cat >conftest.$ac_ext <<_ACEOF
6834 /* confdefs.h.  */
6835 _ACEOF
6836 cat confdefs.h >>conftest.$ac_ext
6837 cat >>conftest.$ac_ext <<_ACEOF
6838 /* end confdefs.h.  */
6839 $ac_declaration
6840 #include <stdlib.h>
6841 int
6842 main ()
6843 {
6844 exit (42);
6845   ;
6846   return 0;
6847 }
6848 _ACEOF
6849 rm -f conftest.$ac_objext
6850 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6851   (eval $ac_compile) 2>conftest.er1
6852   ac_status=$?
6853   grep -v '^ *+' conftest.er1 >conftest.err
6854   rm -f conftest.er1
6855   cat conftest.err >&5
6856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6857   (exit $ac_status); } &&
6858          { ac_try='test -z "$ac_cxx_werror_flag"
6859                          || test ! -s conftest.err'
6860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6861   (eval $ac_try) 2>&5
6862   ac_status=$?
6863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6864   (exit $ac_status); }; } &&
6865          { ac_try='test -s conftest.$ac_objext'
6866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6867   (eval $ac_try) 2>&5
6868   ac_status=$?
6869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6870   (exit $ac_status); }; }; then
6871   :
6872 else
6873   echo "$as_me: failed program was:" >&5
6874 sed 's/^/| /' conftest.$ac_ext >&5
6875
6876 continue
6877 fi
6878 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6879   cat >conftest.$ac_ext <<_ACEOF
6880 /* confdefs.h.  */
6881 _ACEOF
6882 cat confdefs.h >>conftest.$ac_ext
6883 cat >>conftest.$ac_ext <<_ACEOF
6884 /* end confdefs.h.  */
6885 $ac_declaration
6886 int
6887 main ()
6888 {
6889 exit (42);
6890   ;
6891   return 0;
6892 }
6893 _ACEOF
6894 rm -f conftest.$ac_objext
6895 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6896   (eval $ac_compile) 2>conftest.er1
6897   ac_status=$?
6898   grep -v '^ *+' conftest.er1 >conftest.err
6899   rm -f conftest.er1
6900   cat conftest.err >&5
6901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6902   (exit $ac_status); } &&
6903          { ac_try='test -z "$ac_cxx_werror_flag"
6904                          || test ! -s conftest.err'
6905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6906   (eval $ac_try) 2>&5
6907   ac_status=$?
6908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6909   (exit $ac_status); }; } &&
6910          { ac_try='test -s conftest.$ac_objext'
6911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6912   (eval $ac_try) 2>&5
6913   ac_status=$?
6914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6915   (exit $ac_status); }; }; then
6916   break
6917 else
6918   echo "$as_me: failed program was:" >&5
6919 sed 's/^/| /' conftest.$ac_ext >&5
6920
6921 fi
6922 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6923 done
6924 rm -f conftest*
6925 if test -n "$ac_declaration"; then
6926   echo '#ifdef __cplusplus' >>confdefs.h
6927   echo $ac_declaration      >>confdefs.h
6928   echo '#endif'             >>confdefs.h
6929 fi
6930
6931 ac_ext=cc
6932 ac_cpp='$CXXCPP $CPPFLAGS'
6933 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6934 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6935 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6936
6937 depcc="$CXX"  am_compiler_list=
6938
6939 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6940 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6941 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6942   echo $ECHO_N "(cached) $ECHO_C" >&6
6943 else
6944   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6945   # We make a subdir and do the tests there.  Otherwise we can end up
6946   # making bogus files that we don't know about and never remove.  For
6947   # instance it was reported that on HP-UX the gcc test will end up
6948   # making a dummy file named `D' -- because `-MD' means `put the output
6949   # in D'.
6950   mkdir conftest.dir
6951   # Copy depcomp to subdir because otherwise we won't find it if we're
6952   # using a relative directory.
6953   cp "$am_depcomp" conftest.dir
6954   cd conftest.dir
6955   # We will build objects and dependencies in a subdirectory because
6956   # it helps to detect inapplicable dependency modes.  For instance
6957   # both Tru64's cc and ICC support -MD to output dependencies as a
6958   # side effect of compilation, but ICC will put the dependencies in
6959   # the current directory while Tru64 will put them in the object
6960   # directory.
6961   mkdir sub
6962
6963   am_cv_CXX_dependencies_compiler_type=none
6964   if test "$am_compiler_list" = ""; then
6965      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6966   fi
6967   for depmode in $am_compiler_list; do
6968     # Setup a source with many dependencies, because some compilers
6969     # like to wrap large dependency lists on column 80 (with \), and
6970     # we should not choose a depcomp mode which is confused by this.
6971     #
6972     # We need to recreate these files for each test, as the compiler may
6973     # overwrite some of them when testing with obscure command lines.
6974     # This happens at least with the AIX C compiler.
6975     : > sub/conftest.c
6976     for i in 1 2 3 4 5 6; do
6977       echo '#include "conftst'$i'.h"' >> sub/conftest.c
6978       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6979       # Solaris 8's {/usr,}/bin/sh.
6980       touch sub/conftst$i.h
6981     done
6982     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6983
6984     case $depmode in
6985     nosideeffect)
6986       # after this tag, mechanisms are not by side-effect, so they'll
6987       # only be used when explicitly requested
6988       if test "x$enable_dependency_tracking" = xyes; then
6989         continue
6990       else
6991         break
6992       fi
6993       ;;
6994     none) break ;;
6995     esac
6996     # We check with `-c' and `-o' for the sake of the "dashmstdout"
6997     # mode.  It turns out that the SunPro C++ compiler does not properly
6998     # handle `-M -o', and we need to detect this.
6999     if depmode=$depmode \
7000        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
7001        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7002        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
7003          >/dev/null 2>conftest.err &&
7004        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7005        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
7006        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7007       # icc doesn't choke on unknown options, it will just issue warnings
7008       # or remarks (even with -Werror).  So we grep stderr for any message
7009       # that says an option was ignored or not supported.
7010       # When given -MP, icc 7.0 and 7.1 complain thusly:
7011       #   icc: Command line warning: ignoring option '-M'; no argument required
7012       # The diagnosis changed in icc 8.0:
7013       #   icc: Command line remark: option '-MP' not supported
7014       if (grep 'ignoring option' conftest.err ||
7015           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7016         am_cv_CXX_dependencies_compiler_type=$depmode
7017         break
7018       fi
7019     fi
7020   done
7021
7022   cd ..
7023   rm -rf conftest.dir
7024 else
7025   am_cv_CXX_dependencies_compiler_type=none
7026 fi
7027
7028 fi
7029 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
7030 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
7031 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7032
7033
7034
7035 if
7036   test "x$enable_dependency_tracking" != xno \
7037   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7038   am__fastdepCXX_TRUE=
7039   am__fastdepCXX_FALSE='#'
7040 else
7041   am__fastdepCXX_TRUE='#'
7042   am__fastdepCXX_FALSE=
7043 fi
7044
7045
7046
7047
7048 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7049     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7050     (test "X$CXX" != "Xg++"))) ; then
7051   ac_ext=cc
7052 ac_cpp='$CXXCPP $CPPFLAGS'
7053 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7054 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7055 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7056 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7057 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
7058 if test -z "$CXXCPP"; then
7059   if test "${ac_cv_prog_CXXCPP+set}" = set; then
7060   echo $ECHO_N "(cached) $ECHO_C" >&6
7061 else
7062       # Double quotes because CXXCPP needs to be expanded
7063     for CXXCPP in "$CXX -E" "/lib/cpp"
7064     do
7065       ac_preproc_ok=false
7066 for ac_cxx_preproc_warn_flag in '' yes
7067 do
7068   # Use a header file that comes with gcc, so configuring glibc
7069   # with a fresh cross-compiler works.
7070   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7071   # <limits.h> exists even on freestanding compilers.
7072   # On the NeXT, cc -E runs the code through the compiler's parser,
7073   # not just through cpp. "Syntax error" is here to catch this case.
7074   cat >conftest.$ac_ext <<_ACEOF
7075 /* confdefs.h.  */
7076 _ACEOF
7077 cat confdefs.h >>conftest.$ac_ext
7078 cat >>conftest.$ac_ext <<_ACEOF
7079 /* end confdefs.h.  */
7080 #ifdef __STDC__
7081 # include <limits.h>
7082 #else
7083 # include <assert.h>
7084 #endif
7085                      Syntax error
7086 _ACEOF
7087 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7088   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7089   ac_status=$?
7090   grep -v '^ *+' conftest.er1 >conftest.err
7091   rm -f conftest.er1
7092   cat conftest.err >&5
7093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7094   (exit $ac_status); } >/dev/null; then
7095   if test -s conftest.err; then
7096     ac_cpp_err=$ac_cxx_preproc_warn_flag
7097     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7098   else
7099     ac_cpp_err=
7100   fi
7101 else
7102   ac_cpp_err=yes
7103 fi
7104 if test -z "$ac_cpp_err"; then
7105   :
7106 else
7107   echo "$as_me: failed program was:" >&5
7108 sed 's/^/| /' conftest.$ac_ext >&5
7109
7110   # Broken: fails on valid input.
7111 continue
7112 fi
7113 rm -f conftest.err conftest.$ac_ext
7114
7115   # OK, works on sane cases.  Now check whether non-existent headers
7116   # can be detected and how.
7117   cat >conftest.$ac_ext <<_ACEOF
7118 /* confdefs.h.  */
7119 _ACEOF
7120 cat confdefs.h >>conftest.$ac_ext
7121 cat >>conftest.$ac_ext <<_ACEOF
7122 /* end confdefs.h.  */
7123 #include <ac_nonexistent.h>
7124 _ACEOF
7125 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7126   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7127   ac_status=$?
7128   grep -v '^ *+' conftest.er1 >conftest.err
7129   rm -f conftest.er1
7130   cat conftest.err >&5
7131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7132   (exit $ac_status); } >/dev/null; then
7133   if test -s conftest.err; then
7134     ac_cpp_err=$ac_cxx_preproc_warn_flag
7135     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7136   else
7137     ac_cpp_err=
7138   fi
7139 else
7140   ac_cpp_err=yes
7141 fi
7142 if test -z "$ac_cpp_err"; then
7143   # Broken: success on invalid input.
7144 continue
7145 else
7146   echo "$as_me: failed program was:" >&5
7147 sed 's/^/| /' conftest.$ac_ext >&5
7148
7149   # Passes both tests.
7150 ac_preproc_ok=:
7151 break
7152 fi
7153 rm -f conftest.err conftest.$ac_ext
7154
7155 done
7156 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7157 rm -f conftest.err conftest.$ac_ext
7158 if $ac_preproc_ok; then
7159   break
7160 fi
7161
7162     done
7163     ac_cv_prog_CXXCPP=$CXXCPP
7164
7165 fi
7166   CXXCPP=$ac_cv_prog_CXXCPP
7167 else
7168   ac_cv_prog_CXXCPP=$CXXCPP
7169 fi
7170 echo "$as_me:$LINENO: result: $CXXCPP" >&5
7171 echo "${ECHO_T}$CXXCPP" >&6
7172 ac_preproc_ok=false
7173 for ac_cxx_preproc_warn_flag in '' yes
7174 do
7175   # Use a header file that comes with gcc, so configuring glibc
7176   # with a fresh cross-compiler works.
7177   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7178   # <limits.h> exists even on freestanding compilers.
7179   # On the NeXT, cc -E runs the code through the compiler's parser,
7180   # not just through cpp. "Syntax error" is here to catch this case.
7181   cat >conftest.$ac_ext <<_ACEOF
7182 /* confdefs.h.  */
7183 _ACEOF
7184 cat confdefs.h >>conftest.$ac_ext
7185 cat >>conftest.$ac_ext <<_ACEOF
7186 /* end confdefs.h.  */
7187 #ifdef __STDC__
7188 # include <limits.h>
7189 #else
7190 # include <assert.h>
7191 #endif
7192                      Syntax error
7193 _ACEOF
7194 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7195   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7196   ac_status=$?
7197   grep -v '^ *+' conftest.er1 >conftest.err
7198   rm -f conftest.er1
7199   cat conftest.err >&5
7200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7201   (exit $ac_status); } >/dev/null; then
7202   if test -s conftest.err; then
7203     ac_cpp_err=$ac_cxx_preproc_warn_flag
7204     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7205   else
7206     ac_cpp_err=
7207   fi
7208 else
7209   ac_cpp_err=yes
7210 fi
7211 if test -z "$ac_cpp_err"; then
7212   :
7213 else
7214   echo "$as_me: failed program was:" >&5
7215 sed 's/^/| /' conftest.$ac_ext >&5
7216
7217   # Broken: fails on valid input.
7218 continue
7219 fi
7220 rm -f conftest.err conftest.$ac_ext
7221
7222   # OK, works on sane cases.  Now check whether non-existent headers
7223   # can be detected and how.
7224   cat >conftest.$ac_ext <<_ACEOF
7225 /* confdefs.h.  */
7226 _ACEOF
7227 cat confdefs.h >>conftest.$ac_ext
7228 cat >>conftest.$ac_ext <<_ACEOF
7229 /* end confdefs.h.  */
7230 #include <ac_nonexistent.h>
7231 _ACEOF
7232 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7233   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7234   ac_status=$?
7235   grep -v '^ *+' conftest.er1 >conftest.err
7236   rm -f conftest.er1
7237   cat conftest.err >&5
7238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7239   (exit $ac_status); } >/dev/null; then
7240   if test -s conftest.err; then
7241     ac_cpp_err=$ac_cxx_preproc_warn_flag
7242     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7243   else
7244     ac_cpp_err=
7245   fi
7246 else
7247   ac_cpp_err=yes
7248 fi
7249 if test -z "$ac_cpp_err"; then
7250   # Broken: success on invalid input.
7251 continue
7252 else
7253   echo "$as_me: failed program was:" >&5
7254 sed 's/^/| /' conftest.$ac_ext >&5
7255
7256   # Passes both tests.
7257 ac_preproc_ok=:
7258 break
7259 fi
7260 rm -f conftest.err conftest.$ac_ext
7261
7262 done
7263 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7264 rm -f conftest.err conftest.$ac_ext
7265 if $ac_preproc_ok; then
7266   :
7267 else
7268   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7269 See \`config.log' for more details." >&5
7270 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7271 See \`config.log' for more details." >&2;}
7272    { (exit 1); exit 1; }; }
7273 fi
7274
7275 ac_ext=cc
7276 ac_cpp='$CXXCPP $CPPFLAGS'
7277 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7278 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7279 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7280
7281 fi
7282
7283
7284 ac_ext=f
7285 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7286 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7287 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7288 if test -n "$ac_tool_prefix"; then
7289   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
7290   do
7291     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7292 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7293 echo "$as_me:$LINENO: checking for $ac_word" >&5
7294 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7295 if test "${ac_cv_prog_F77+set}" = set; then
7296   echo $ECHO_N "(cached) $ECHO_C" >&6
7297 else
7298   if test -n "$F77"; then
7299   ac_cv_prog_F77="$F77" # Let the user override the test.
7300 else
7301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7302 for as_dir in $PATH
7303 do
7304   IFS=$as_save_IFS
7305   test -z "$as_dir" && as_dir=.
7306   for ac_exec_ext in '' $ac_executable_extensions; do
7307   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7308     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7309     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7310     break 2
7311   fi
7312 done
7313 done
7314
7315 fi
7316 fi
7317 F77=$ac_cv_prog_F77
7318 if test -n "$F77"; then
7319   echo "$as_me:$LINENO: result: $F77" >&5
7320 echo "${ECHO_T}$F77" >&6
7321 else
7322   echo "$as_me:$LINENO: result: no" >&5
7323 echo "${ECHO_T}no" >&6
7324 fi
7325
7326     test -n "$F77" && break
7327   done
7328 fi
7329 if test -z "$F77"; then
7330   ac_ct_F77=$F77
7331   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
7332 do
7333   # Extract the first word of "$ac_prog", so it can be a program name with args.
7334 set dummy $ac_prog; ac_word=$2
7335 echo "$as_me:$LINENO: checking for $ac_word" >&5
7336 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7337 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7338   echo $ECHO_N "(cached) $ECHO_C" >&6
7339 else
7340   if test -n "$ac_ct_F77"; then
7341   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7342 else
7343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7344 for as_dir in $PATH
7345 do
7346   IFS=$as_save_IFS
7347   test -z "$as_dir" && as_dir=.
7348   for ac_exec_ext in '' $ac_executable_extensions; do
7349   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7350     ac_cv_prog_ac_ct_F77="$ac_prog"
7351     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7352     break 2
7353   fi
7354 done
7355 done
7356
7357 fi
7358 fi
7359 ac_ct_F77=$ac_cv_prog_ac_ct_F77
7360 if test -n "$ac_ct_F77"; then
7361   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7362 echo "${ECHO_T}$ac_ct_F77" >&6
7363 else
7364   echo "$as_me:$LINENO: result: no" >&5
7365 echo "${ECHO_T}no" >&6
7366 fi
7367
7368   test -n "$ac_ct_F77" && break
7369 done
7370
7371   F77=$ac_ct_F77
7372 fi
7373
7374
7375 # Provide some information about the compiler.
7376 echo "$as_me:7376:" \
7377      "checking for Fortran 77 compiler version" >&5
7378 ac_compiler=`set X $ac_compile; echo $2`
7379 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
7380   (eval $ac_compiler --version </dev/null >&5) 2>&5
7381   ac_status=$?
7382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7383   (exit $ac_status); }
7384 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
7385   (eval $ac_compiler -v </dev/null >&5) 2>&5
7386   ac_status=$?
7387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7388   (exit $ac_status); }
7389 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
7390   (eval $ac_compiler -V </dev/null >&5) 2>&5
7391   ac_status=$?
7392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7393   (exit $ac_status); }
7394 rm -f a.out
7395
7396 # If we don't use `.F' as extension, the preprocessor is not run on the
7397 # input file.  (Note that this only needs to work for GNU compilers.)
7398 ac_save_ext=$ac_ext
7399 ac_ext=F
7400 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7401 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
7402 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7403   echo $ECHO_N "(cached) $ECHO_C" >&6
7404 else
7405   cat >conftest.$ac_ext <<_ACEOF
7406       program main
7407 #ifndef __GNUC__
7408        choke me
7409 #endif
7410
7411       end
7412 _ACEOF
7413 rm -f conftest.$ac_objext
7414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7415   (eval $ac_compile) 2>conftest.er1
7416   ac_status=$?
7417   grep -v '^ *+' conftest.er1 >conftest.err
7418   rm -f conftest.er1
7419   cat conftest.err >&5
7420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7421   (exit $ac_status); } &&
7422          { ac_try='test -z "$ac_f77_werror_flag"
7423                          || test ! -s conftest.err'
7424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7425   (eval $ac_try) 2>&5
7426   ac_status=$?
7427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7428   (exit $ac_status); }; } &&
7429          { ac_try='test -s conftest.$ac_objext'
7430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7431   (eval $ac_try) 2>&5
7432   ac_status=$?
7433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7434   (exit $ac_status); }; }; then
7435   ac_compiler_gnu=yes
7436 else
7437   echo "$as_me: failed program was:" >&5
7438 sed 's/^/| /' conftest.$ac_ext >&5
7439
7440 ac_compiler_gnu=no
7441 fi
7442 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7443 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7444
7445 fi
7446 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7447 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
7448 ac_ext=$ac_save_ext
7449 ac_test_FFLAGS=${FFLAGS+set}
7450 ac_save_FFLAGS=$FFLAGS
7451 FFLAGS=
7452 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7453 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
7454 if test "${ac_cv_prog_f77_g+set}" = set; then
7455   echo $ECHO_N "(cached) $ECHO_C" >&6
7456 else
7457   FFLAGS=-g
7458 cat >conftest.$ac_ext <<_ACEOF
7459       program main
7460
7461       end
7462 _ACEOF
7463 rm -f conftest.$ac_objext
7464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7465   (eval $ac_compile) 2>conftest.er1
7466   ac_status=$?
7467   grep -v '^ *+' conftest.er1 >conftest.err
7468   rm -f conftest.er1
7469   cat conftest.err >&5
7470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7471   (exit $ac_status); } &&
7472          { ac_try='test -z "$ac_f77_werror_flag"
7473                          || test ! -s conftest.err'
7474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7475   (eval $ac_try) 2>&5
7476   ac_status=$?
7477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7478   (exit $ac_status); }; } &&
7479          { ac_try='test -s conftest.$ac_objext'
7480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7481   (eval $ac_try) 2>&5
7482   ac_status=$?
7483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7484   (exit $ac_status); }; }; then
7485   ac_cv_prog_f77_g=yes
7486 else
7487   echo "$as_me: failed program was:" >&5
7488 sed 's/^/| /' conftest.$ac_ext >&5
7489
7490 ac_cv_prog_f77_g=no
7491 fi
7492 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7493
7494 fi
7495 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7496 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
7497 if test "$ac_test_FFLAGS" = set; then
7498   FFLAGS=$ac_save_FFLAGS
7499 elif test $ac_cv_prog_f77_g = yes; then
7500   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7501     FFLAGS="-g -O2"
7502   else
7503     FFLAGS="-g"
7504   fi
7505 else
7506   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7507     FFLAGS="-O2"
7508   else
7509     FFLAGS=
7510   fi
7511 fi
7512
7513 G77=`test $ac_compiler_gnu = yes && echo yes`
7514 ac_ext=c
7515 ac_cpp='$CPP $CPPFLAGS'
7516 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7517 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7518 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7519
7520
7521
7522 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7523
7524 # find the maximum length of command line arguments
7525 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7526 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
7527 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7528   echo $ECHO_N "(cached) $ECHO_C" >&6
7529 else
7530     i=0
7531   teststring="ABCD"
7532
7533   case $build_os in
7534   msdosdjgpp*)
7535     # On DJGPP, this test can blow up pretty badly due to problems in libc
7536     # (any single argument exceeding 2000 bytes causes a buffer overrun
7537     # during glob expansion).  Even if it were fixed, the result of this
7538     # check would be larger than it should be.
7539     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7540     ;;
7541
7542   gnu*)
7543     # Under GNU Hurd, this test is not required because there is
7544     # no limit to the length of command line arguments.
7545     # Libtool will interpret -1 as no limit whatsoever
7546     lt_cv_sys_max_cmd_len=-1;
7547     ;;
7548
7549   cygwin* | mingw*)
7550     # On Win9x/ME, this test blows up -- it succeeds, but takes
7551     # about 5 minutes as the teststring grows exponentially.
7552     # Worse, since 9x/ME are not pre-emptively multitasking,
7553     # you end up with a "frozen" computer, even though with patience
7554     # the test eventually succeeds (with a max line length of 256k).
7555     # Instead, let's just punt: use the minimum linelength reported by
7556     # all of the supported platforms: 8192 (on NT/2K/XP).
7557     lt_cv_sys_max_cmd_len=8192;
7558     ;;
7559
7560   amigaos*)
7561     # On AmigaOS with pdksh, this test takes hours, literally.
7562     # So we just punt and use a minimum line length of 8192.
7563     lt_cv_sys_max_cmd_len=8192;
7564     ;;
7565
7566   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7567     # This has been around since 386BSD, at least.  Likely further.
7568     if test -x /sbin/sysctl; then
7569       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7570     elif test -x /usr/sbin/sysctl; then
7571       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7572     else
7573       lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
7574     fi
7575     # And add a safety zone
7576     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7577     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7578     ;;
7579   osf*)
7580     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7581     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7582     # nice to cause kernel panics so lets avoid the loop below.
7583     # First set a reasonable default.
7584     lt_cv_sys_max_cmd_len=16384
7585     #
7586     if test -x /sbin/sysconfig; then
7587       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7588         *1*) lt_cv_sys_max_cmd_len=-1 ;;
7589       esac
7590     fi
7591     ;;
7592   *)
7593     # If test is not a shell built-in, we'll probably end up computing a
7594     # maximum length that is only half of the actual maximum length, but
7595     # we can't tell.
7596     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7597     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7598                = "XX$teststring") >/dev/null 2>&1 &&
7599             new_result=`expr "X$teststring" : ".*" 2>&1` &&
7600             lt_cv_sys_max_cmd_len=$new_result &&
7601             test $i != 17 # 1/2 MB should be enough
7602     do
7603       i=`expr $i + 1`
7604       teststring=$teststring$teststring
7605     done
7606     teststring=
7607     # Add a significant safety factor because C++ compilers can tack on massive
7608     # amounts of additional arguments before passing them to the linker.
7609     # It appears as though 1/2 is a usable value.
7610     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7611     ;;
7612   esac
7613
7614 fi
7615
7616 if test -n $lt_cv_sys_max_cmd_len ; then
7617   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7618 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7619 else
7620   echo "$as_me:$LINENO: result: none" >&5
7621 echo "${ECHO_T}none" >&6
7622 fi
7623
7624
7625
7626
7627 # Check for command to grab the raw symbol name followed by C symbol from nm.
7628 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7629 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7630 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7631   echo $ECHO_N "(cached) $ECHO_C" >&6
7632 else
7633
7634 # These are sane defaults that work on at least a few old systems.
7635 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7636
7637 # Character class describing NM global symbol codes.
7638 symcode='[BCDEGRST]'
7639
7640 # Regexp to match symbols that can be accessed directly from C.
7641 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7642
7643 # Transform an extracted symbol line into a proper C declaration
7644 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7645
7646 # Transform an extracted symbol line into symbol name and symbol address
7647 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'"
7648
7649 # Define system-specific variables.
7650 case $host_os in
7651 aix*)
7652   symcode='[BCDT]'
7653   ;;
7654 cygwin* | mingw* | pw32*)
7655   symcode='[ABCDGISTW]'
7656   ;;
7657 hpux*) # Its linker distinguishes data from code symbols
7658   if test "$host_cpu" = ia64; then
7659     symcode='[ABCDEGRST]'
7660   fi
7661   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7662   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'"
7663   ;;
7664 linux*)
7665   if test "$host_cpu" = ia64; then
7666     symcode='[ABCDGIRSTW]'
7667     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7668     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'"
7669   fi
7670   ;;
7671 irix* | nonstopux*)
7672   symcode='[BCDEGRST]'
7673   ;;
7674 osf*)
7675   symcode='[BCDEGQRST]'
7676   ;;
7677 solaris* | sysv5*)
7678   symcode='[BDRT]'
7679   ;;
7680 sysv4)
7681   symcode='[DFNSTU]'
7682   ;;
7683 esac
7684
7685 # Handle CRLF in mingw tool chain
7686 opt_cr=
7687 case $build_os in
7688 mingw*)
7689   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7690   ;;
7691 esac
7692
7693 # If we're using GNU nm, then use its standard symbol codes.
7694 case `$NM -V 2>&1` in
7695 *GNU* | *'with BFD'*)
7696   symcode='[ABCDGIRSTW]' ;;
7697 esac
7698
7699 # Try without a prefix undercore, then with it.
7700 for ac_symprfx in "" "_"; do
7701
7702   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7703   symxfrm="\\1 $ac_symprfx\\2 \\2"
7704
7705   # Write the raw and C identifiers.
7706   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7707
7708   # Check to see that the pipe works correctly.
7709   pipe_works=no
7710
7711   rm -f conftest*
7712   cat > conftest.$ac_ext <<EOF
7713 #ifdef __cplusplus
7714 extern "C" {
7715 #endif
7716 char nm_test_var;
7717 void nm_test_func(){}
7718 #ifdef __cplusplus
7719 }
7720 #endif
7721 int main(){nm_test_var='a';nm_test_func();return(0);}
7722 EOF
7723
7724   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7725   (eval $ac_compile) 2>&5
7726   ac_status=$?
7727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7728   (exit $ac_status); }; then
7729     # Now try to grab the symbols.
7730     nlist=conftest.nm
7731     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7732   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7733   ac_status=$?
7734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7735   (exit $ac_status); } && test -s "$nlist"; then
7736       # Try sorting and uniquifying the output.
7737       if sort "$nlist" | uniq > "$nlist"T; then
7738         mv -f "$nlist"T "$nlist"
7739       else
7740         rm -f "$nlist"T
7741       fi
7742
7743       # Make sure that we snagged all the symbols we need.
7744       if grep ' nm_test_var$' "$nlist" >/dev/null; then
7745         if grep ' nm_test_func$' "$nlist" >/dev/null; then
7746           cat <<EOF > conftest.$ac_ext
7747 #ifdef __cplusplus
7748 extern "C" {
7749 #endif
7750
7751 EOF
7752           # Now generate the symbol file.
7753           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7754
7755           cat <<EOF >> conftest.$ac_ext
7756 #if defined (__STDC__) && __STDC__
7757 # define lt_ptr_t void *
7758 #else
7759 # define lt_ptr_t char *
7760 # define const
7761 #endif
7762
7763 /* The mapping between symbol names and symbols. */
7764 const struct {
7765   const char *name;
7766   lt_ptr_t address;
7767 }
7768 lt_preloaded_symbols[] =
7769 {
7770 EOF
7771           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7772           cat <<\EOF >> conftest.$ac_ext
7773   {0, (lt_ptr_t) 0}
7774 };
7775
7776 #ifdef __cplusplus
7777 }
7778 #endif
7779 EOF
7780           # Now try linking the two files.
7781           mv conftest.$ac_objext conftstm.$ac_objext
7782           lt_save_LIBS="$LIBS"
7783           lt_save_CFLAGS="$CFLAGS"
7784           LIBS="conftstm.$ac_objext"
7785           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7786           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7787   (eval $ac_link) 2>&5
7788   ac_status=$?
7789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7790   (exit $ac_status); } && test -s conftest${ac_exeext}; then
7791             pipe_works=yes
7792           fi
7793           LIBS="$lt_save_LIBS"
7794           CFLAGS="$lt_save_CFLAGS"
7795         else
7796           echo "cannot find nm_test_func in $nlist" >&5
7797         fi
7798       else
7799         echo "cannot find nm_test_var in $nlist" >&5
7800       fi
7801     else
7802       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7803     fi
7804   else
7805     echo "$progname: failed program was:" >&5
7806     cat conftest.$ac_ext >&5
7807   fi
7808   rm -f conftest* conftst*
7809
7810   # Do not use the global_symbol_pipe unless it works.
7811   if test "$pipe_works" = yes; then
7812     break
7813   else
7814     lt_cv_sys_global_symbol_pipe=
7815   fi
7816 done
7817
7818 fi
7819
7820 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7821   lt_cv_sys_global_symbol_to_cdecl=
7822 fi
7823 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7824   echo "$as_me:$LINENO: result: failed" >&5
7825 echo "${ECHO_T}failed" >&6
7826 else
7827   echo "$as_me:$LINENO: result: ok" >&5
7828 echo "${ECHO_T}ok" >&6
7829 fi
7830
7831 echo "$as_me:$LINENO: checking for objdir" >&5
7832 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7833 if test "${lt_cv_objdir+set}" = set; then
7834   echo $ECHO_N "(cached) $ECHO_C" >&6
7835 else
7836   rm -f .libs 2>/dev/null
7837 mkdir .libs 2>/dev/null
7838 if test -d .libs; then
7839   lt_cv_objdir=.libs
7840 else
7841   # MS-DOS does not allow filenames that begin with a dot.
7842   lt_cv_objdir=_libs
7843 fi
7844 rmdir .libs 2>/dev/null
7845 fi
7846 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7847 echo "${ECHO_T}$lt_cv_objdir" >&6
7848 objdir=$lt_cv_objdir
7849
7850
7851
7852
7853
7854 case $host_os in
7855 aix3*)
7856   # AIX sometimes has problems with the GCC collect2 program.  For some
7857   # reason, if we set the COLLECT_NAMES environment variable, the problems
7858   # vanish in a puff of smoke.
7859   if test "X${COLLECT_NAMES+set}" != Xset; then
7860     COLLECT_NAMES=
7861     export COLLECT_NAMES
7862   fi
7863   ;;
7864 esac
7865
7866 # Sed substitution that helps us do robust quoting.  It backslashifies
7867 # metacharacters that are still active within double-quoted strings.
7868 Xsed='sed -e 1s/^X//'
7869 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7870
7871 # Same as above, but do not quote variable references.
7872 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7873
7874 # Sed substitution to delay expansion of an escaped shell variable in a
7875 # double_quote_subst'ed string.
7876 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7877
7878 # Sed substitution to avoid accidental globbing in evaled expressions
7879 no_glob_subst='s/\*/\\\*/g'
7880
7881 # Constants:
7882 rm="rm -f"
7883
7884 # Global variables:
7885 default_ofile=libtool
7886 can_build_shared=yes
7887
7888 # All known linkers require a `.a' archive for static linking (except M$VC,
7889 # which needs '.lib').
7890 libext=a
7891 ltmain="$ac_aux_dir/ltmain.sh"
7892 ofile="$default_ofile"
7893 with_gnu_ld="$lt_cv_prog_gnu_ld"
7894
7895 if test -n "$ac_tool_prefix"; then
7896   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7897 set dummy ${ac_tool_prefix}ar; ac_word=$2
7898 echo "$as_me:$LINENO: checking for $ac_word" >&5
7899 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7900 if test "${ac_cv_prog_AR+set}" = set; then
7901   echo $ECHO_N "(cached) $ECHO_C" >&6
7902 else
7903   if test -n "$AR"; then
7904   ac_cv_prog_AR="$AR" # Let the user override the test.
7905 else
7906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7907 for as_dir in $PATH
7908 do
7909   IFS=$as_save_IFS
7910   test -z "$as_dir" && as_dir=.
7911   for ac_exec_ext in '' $ac_executable_extensions; do
7912   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7913     ac_cv_prog_AR="${ac_tool_prefix}ar"
7914     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7915     break 2
7916   fi
7917 done
7918 done
7919
7920 fi
7921 fi
7922 AR=$ac_cv_prog_AR
7923 if test -n "$AR"; then
7924   echo "$as_me:$LINENO: result: $AR" >&5
7925 echo "${ECHO_T}$AR" >&6
7926 else
7927   echo "$as_me:$LINENO: result: no" >&5
7928 echo "${ECHO_T}no" >&6
7929 fi
7930
7931 fi
7932 if test -z "$ac_cv_prog_AR"; then
7933   ac_ct_AR=$AR
7934   # Extract the first word of "ar", so it can be a program name with args.
7935 set dummy ar; ac_word=$2
7936 echo "$as_me:$LINENO: checking for $ac_word" >&5
7937 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7938 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7939   echo $ECHO_N "(cached) $ECHO_C" >&6
7940 else
7941   if test -n "$ac_ct_AR"; then
7942   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7943 else
7944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7945 for as_dir in $PATH
7946 do
7947   IFS=$as_save_IFS
7948   test -z "$as_dir" && as_dir=.
7949   for ac_exec_ext in '' $ac_executable_extensions; do
7950   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7951     ac_cv_prog_ac_ct_AR="ar"
7952     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7953     break 2
7954   fi
7955 done
7956 done
7957
7958   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7959 fi
7960 fi
7961 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7962 if test -n "$ac_ct_AR"; then
7963   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7964 echo "${ECHO_T}$ac_ct_AR" >&6
7965 else
7966   echo "$as_me:$LINENO: result: no" >&5
7967 echo "${ECHO_T}no" >&6
7968 fi
7969
7970   AR=$ac_ct_AR
7971 else
7972   AR="$ac_cv_prog_AR"
7973 fi
7974
7975 if test -n "$ac_tool_prefix"; then
7976   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7977 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7978 echo "$as_me:$LINENO: checking for $ac_word" >&5
7979 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7980 if test "${ac_cv_prog_RANLIB+set}" = set; then
7981   echo $ECHO_N "(cached) $ECHO_C" >&6
7982 else
7983   if test -n "$RANLIB"; then
7984   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7985 else
7986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7987 for as_dir in $PATH
7988 do
7989   IFS=$as_save_IFS
7990   test -z "$as_dir" && as_dir=.
7991   for ac_exec_ext in '' $ac_executable_extensions; do
7992   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7993     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7994     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7995     break 2
7996   fi
7997 done
7998 done
7999
8000 fi
8001 fi
8002 RANLIB=$ac_cv_prog_RANLIB
8003 if test -n "$RANLIB"; then
8004   echo "$as_me:$LINENO: result: $RANLIB" >&5
8005 echo "${ECHO_T}$RANLIB" >&6
8006 else
8007   echo "$as_me:$LINENO: result: no" >&5
8008 echo "${ECHO_T}no" >&6
8009 fi
8010
8011 fi
8012 if test -z "$ac_cv_prog_RANLIB"; then
8013   ac_ct_RANLIB=$RANLIB
8014   # Extract the first word of "ranlib", so it can be a program name with args.
8015 set dummy ranlib; ac_word=$2
8016 echo "$as_me:$LINENO: checking for $ac_word" >&5
8017 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8018 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8019   echo $ECHO_N "(cached) $ECHO_C" >&6
8020 else
8021   if test -n "$ac_ct_RANLIB"; then
8022   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8023 else
8024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8025 for as_dir in $PATH
8026 do
8027   IFS=$as_save_IFS
8028   test -z "$as_dir" && as_dir=.
8029   for ac_exec_ext in '' $ac_executable_extensions; do
8030   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8031     ac_cv_prog_ac_ct_RANLIB="ranlib"
8032     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8033     break 2
8034   fi
8035 done
8036 done
8037
8038   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
8039 fi
8040 fi
8041 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8042 if test -n "$ac_ct_RANLIB"; then
8043   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8044 echo "${ECHO_T}$ac_ct_RANLIB" >&6
8045 else
8046   echo "$as_me:$LINENO: result: no" >&5
8047 echo "${ECHO_T}no" >&6
8048 fi
8049
8050   RANLIB=$ac_ct_RANLIB
8051 else
8052   RANLIB="$ac_cv_prog_RANLIB"
8053 fi
8054
8055 if test -n "$ac_tool_prefix"; then
8056   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8057 set dummy ${ac_tool_prefix}strip; ac_word=$2
8058 echo "$as_me:$LINENO: checking for $ac_word" >&5
8059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8060 if test "${ac_cv_prog_STRIP+set}" = set; then
8061   echo $ECHO_N "(cached) $ECHO_C" >&6
8062 else
8063   if test -n "$STRIP"; then
8064   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8065 else
8066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8067 for as_dir in $PATH
8068 do
8069   IFS=$as_save_IFS
8070   test -z "$as_dir" && as_dir=.
8071   for ac_exec_ext in '' $ac_executable_extensions; do
8072   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8073     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8074     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8075     break 2
8076   fi
8077 done
8078 done
8079
8080 fi
8081 fi
8082 STRIP=$ac_cv_prog_STRIP
8083 if test -n "$STRIP"; then
8084   echo "$as_me:$LINENO: result: $STRIP" >&5
8085 echo "${ECHO_T}$STRIP" >&6
8086 else
8087   echo "$as_me:$LINENO: result: no" >&5
8088 echo "${ECHO_T}no" >&6
8089 fi
8090
8091 fi
8092 if test -z "$ac_cv_prog_STRIP"; then
8093   ac_ct_STRIP=$STRIP
8094   # Extract the first word of "strip", so it can be a program name with args.
8095 set dummy strip; ac_word=$2
8096 echo "$as_me:$LINENO: checking for $ac_word" >&5
8097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8098 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8099   echo $ECHO_N "(cached) $ECHO_C" >&6
8100 else
8101   if test -n "$ac_ct_STRIP"; then
8102   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8103 else
8104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8105 for as_dir in $PATH
8106 do
8107   IFS=$as_save_IFS
8108   test -z "$as_dir" && as_dir=.
8109   for ac_exec_ext in '' $ac_executable_extensions; do
8110   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8111     ac_cv_prog_ac_ct_STRIP="strip"
8112     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8113     break 2
8114   fi
8115 done
8116 done
8117
8118   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
8119 fi
8120 fi
8121 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8122 if test -n "$ac_ct_STRIP"; then
8123   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8124 echo "${ECHO_T}$ac_ct_STRIP" >&6
8125 else
8126   echo "$as_me:$LINENO: result: no" >&5
8127 echo "${ECHO_T}no" >&6
8128 fi
8129
8130   STRIP=$ac_ct_STRIP
8131 else
8132   STRIP="$ac_cv_prog_STRIP"
8133 fi
8134
8135
8136 old_CC="$CC"
8137 old_CFLAGS="$CFLAGS"
8138
8139 # Set sane defaults for various variables
8140 test -z "$AR" && AR=ar
8141 test -z "$AR_FLAGS" && AR_FLAGS=cru
8142 test -z "$AS" && AS=as
8143 test -z "$CC" && CC=cc
8144 test -z "$LTCC" && LTCC=$CC
8145 test -z "$DLLTOOL" && DLLTOOL=dlltool
8146 test -z "$LD" && LD=ld
8147 test -z "$LN_S" && LN_S="ln -s"
8148 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8149 test -z "$NM" && NM=nm
8150 test -z "$SED" && SED=sed
8151 test -z "$OBJDUMP" && OBJDUMP=objdump
8152 test -z "$RANLIB" && RANLIB=:
8153 test -z "$STRIP" && STRIP=:
8154 test -z "$ac_objext" && ac_objext=o
8155
8156 # Determine commands to create old-style static archives.
8157 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8158 old_postinstall_cmds='chmod 644 $oldlib'
8159 old_postuninstall_cmds=
8160
8161 if test -n "$RANLIB"; then
8162   case $host_os in
8163   openbsd*)
8164     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
8165     ;;
8166   *)
8167     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
8168     ;;
8169   esac
8170   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8171 fi
8172
8173 for cc_temp in $compiler""; do
8174   case $cc_temp in
8175     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8176     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8177     \-*) ;;
8178     *) break;;
8179   esac
8180 done
8181 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8182
8183
8184 # Only perform the check for file, if the check method requires it
8185 case $deplibs_check_method in
8186 file_magic*)
8187   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8188     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8189 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
8190 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8191   echo $ECHO_N "(cached) $ECHO_C" >&6
8192 else
8193   case $MAGIC_CMD in
8194 [\\/*] |  ?:[\\/]*)
8195   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8196   ;;
8197 *)
8198   lt_save_MAGIC_CMD="$MAGIC_CMD"
8199   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8200   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8201   for ac_dir in $ac_dummy; do
8202     IFS="$lt_save_ifs"
8203     test -z "$ac_dir" && ac_dir=.
8204     if test -f $ac_dir/${ac_tool_prefix}file; then
8205       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8206       if test -n "$file_magic_test_file"; then
8207         case $deplibs_check_method in
8208         "file_magic "*)
8209           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
8210           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8211           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8212             $EGREP "$file_magic_regex" > /dev/null; then
8213             :
8214           else
8215             cat <<EOF 1>&2
8216
8217 *** Warning: the command libtool uses to detect shared libraries,
8218 *** $file_magic_cmd, produces output that libtool cannot recognize.
8219 *** The result is that libtool may fail to recognize shared libraries
8220 *** as such.  This will affect the creation of libtool libraries that
8221 *** depend on shared libraries, but programs linked with such libtool
8222 *** libraries will work regardless of this problem.  Nevertheless, you
8223 *** may want to report the problem to your system manager and/or to
8224 *** bug-libtool@gnu.org
8225
8226 EOF
8227           fi ;;
8228         esac
8229       fi
8230       break
8231     fi
8232   done
8233   IFS="$lt_save_ifs"
8234   MAGIC_CMD="$lt_save_MAGIC_CMD"
8235   ;;
8236 esac
8237 fi
8238
8239 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8240 if test -n "$MAGIC_CMD"; then
8241   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8242 echo "${ECHO_T}$MAGIC_CMD" >&6
8243 else
8244   echo "$as_me:$LINENO: result: no" >&5
8245 echo "${ECHO_T}no" >&6
8246 fi
8247
8248 if test -z "$lt_cv_path_MAGIC_CMD"; then
8249   if test -n "$ac_tool_prefix"; then
8250     echo "$as_me:$LINENO: checking for file" >&5
8251 echo $ECHO_N "checking for file... $ECHO_C" >&6
8252 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8253   echo $ECHO_N "(cached) $ECHO_C" >&6
8254 else
8255   case $MAGIC_CMD in
8256 [\\/*] |  ?:[\\/]*)
8257   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8258   ;;
8259 *)
8260   lt_save_MAGIC_CMD="$MAGIC_CMD"
8261   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8262   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8263   for ac_dir in $ac_dummy; do
8264     IFS="$lt_save_ifs"
8265     test -z "$ac_dir" && ac_dir=.
8266     if test -f $ac_dir/file; then
8267       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8268       if test -n "$file_magic_test_file"; then
8269         case $deplibs_check_method in
8270         "file_magic "*)
8271           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
8272           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8273           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8274             $EGREP "$file_magic_regex" > /dev/null; then
8275             :
8276           else
8277             cat <<EOF 1>&2
8278
8279 *** Warning: the command libtool uses to detect shared libraries,
8280 *** $file_magic_cmd, produces output that libtool cannot recognize.
8281 *** The result is that libtool may fail to recognize shared libraries
8282 *** as such.  This will affect the creation of libtool libraries that
8283 *** depend on shared libraries, but programs linked with such libtool
8284 *** libraries will work regardless of this problem.  Nevertheless, you
8285 *** may want to report the problem to your system manager and/or to
8286 *** bug-libtool@gnu.org
8287
8288 EOF
8289           fi ;;
8290         esac
8291       fi
8292       break
8293     fi
8294   done
8295   IFS="$lt_save_ifs"
8296   MAGIC_CMD="$lt_save_MAGIC_CMD"
8297   ;;
8298 esac
8299 fi
8300
8301 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8302 if test -n "$MAGIC_CMD"; then
8303   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8304 echo "${ECHO_T}$MAGIC_CMD" >&6
8305 else
8306   echo "$as_me:$LINENO: result: no" >&5
8307 echo "${ECHO_T}no" >&6
8308 fi
8309
8310   else
8311     MAGIC_CMD=:
8312   fi
8313 fi
8314
8315   fi
8316   ;;
8317 esac
8318
8319 enable_dlopen=yes
8320 enable_win32_dll=yes
8321
8322 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
8323 if test "${enable_libtool_lock+set}" = set; then
8324   enableval="$enable_libtool_lock"
8325
8326 fi;
8327 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8328
8329
8330 # Check whether --with-pic or --without-pic was given.
8331 if test "${with_pic+set}" = set; then
8332   withval="$with_pic"
8333   pic_mode="$withval"
8334 else
8335   pic_mode=default
8336 fi;
8337 test -z "$pic_mode" && pic_mode=default
8338
8339 # Use C for the default configuration in the libtool script
8340 tagname=
8341 lt_save_CC="$CC"
8342 ac_ext=c
8343 ac_cpp='$CPP $CPPFLAGS'
8344 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8345 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8346 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8347
8348
8349 # Source file extension for C test sources.
8350 ac_ext=c
8351
8352 # Object file extension for compiled C test sources.
8353 objext=o
8354 objext=$objext
8355
8356 # Code to be used in simple compile tests
8357 lt_simple_compile_test_code="int some_variable = 0;\n"
8358
8359 # Code to be used in simple link tests
8360 lt_simple_link_test_code='int main(){return(0);}\n'
8361
8362
8363 # If no C compiler was specified, use CC.
8364 LTCC=${LTCC-"$CC"}
8365
8366 # Allow CC to be a program name with arguments.
8367 compiler=$CC
8368
8369
8370 # save warnings/boilerplate of simple test code
8371 ac_outfile=conftest.$ac_objext
8372 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8373 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
8374 _lt_compiler_boilerplate=`cat conftest.err`
8375 $rm conftest*
8376
8377 ac_outfile=conftest.$ac_objext
8378 printf "$lt_simple_link_test_code" >conftest.$ac_ext
8379 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
8380 _lt_linker_boilerplate=`cat conftest.err`
8381 $rm conftest*
8382
8383
8384 #
8385 # Check for any special shared library compilation flags.
8386 #
8387 lt_prog_cc_shlib=
8388 if test "$GCC" = no; then
8389   case $host_os in
8390   sco3.2v5*)
8391     lt_prog_cc_shlib='-belf'
8392     ;;
8393   esac
8394 fi
8395 if test -n "$lt_prog_cc_shlib"; then
8396   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
8397 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
8398   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
8399   else
8400     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
8401 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
8402     lt_cv_prog_cc_can_build_shared=no
8403   fi
8404 fi
8405
8406
8407 #
8408 # Check to make sure the static flag actually works.
8409 #
8410 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
8411 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
8412 if test "${lt_prog_compiler_static_works+set}" = set; then
8413   echo $ECHO_N "(cached) $ECHO_C" >&6
8414 else
8415   lt_prog_compiler_static_works=no
8416    save_LDFLAGS="$LDFLAGS"
8417    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
8418    printf "$lt_simple_link_test_code" > conftest.$ac_ext
8419    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8420      # The compiler can only warn and ignore the option if not recognized
8421      # So say no if there are warnings
8422      if test -s conftest.err; then
8423        # Append any errors to the config.log.
8424        cat conftest.err 1>&5
8425        $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
8426        $SED '/^$/d' conftest.err >conftest.er2
8427        if diff conftest.exp conftest.er2 >/dev/null; then
8428          lt_prog_compiler_static_works=yes
8429        fi
8430      else
8431        lt_prog_compiler_static_works=yes
8432      fi
8433    fi
8434    $rm conftest*
8435    LDFLAGS="$save_LDFLAGS"
8436
8437 fi
8438 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8439 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8440
8441 if test x"$lt_prog_compiler_static_works" = xyes; then
8442     :
8443 else
8444     lt_prog_compiler_static=
8445 fi
8446
8447
8448
8449
8450 lt_prog_compiler_no_builtin_flag=
8451
8452 if test "$GCC" = yes; then
8453   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8454
8455
8456 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8457 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8458 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8459   echo $ECHO_N "(cached) $ECHO_C" >&6
8460 else
8461   lt_cv_prog_compiler_rtti_exceptions=no
8462   ac_outfile=conftest.$ac_objext
8463    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8464    lt_compiler_flag="-fno-rtti -fno-exceptions"
8465    # Insert the option either (1) after the last *FLAGS variable, or
8466    # (2) before a word containing "conftest.", or (3) at the end.
8467    # Note that $ac_compile itself does not contain backslashes and begins
8468    # with a dollar sign (not a hyphen), so the echo should work correctly.
8469    # The option is referenced via a variable to avoid confusing sed.
8470    lt_compile=`echo "$ac_compile" | $SED \
8471    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8472    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8473    -e 's:$: $lt_compiler_flag:'`
8474    (eval echo "\"\$as_me:8474: $lt_compile\"" >&5)
8475    (eval "$lt_compile" 2>conftest.err)
8476    ac_status=$?
8477    cat conftest.err >&5
8478    echo "$as_me:8478: \$? = $ac_status" >&5
8479    if (exit $ac_status) && test -s "$ac_outfile"; then
8480      # The compiler can only warn and ignore the option if not recognized
8481      # So say no if there are warnings other than the usual output.
8482      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
8483      $SED '/^$/d' conftest.err >conftest.er2
8484      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
8485        lt_cv_prog_compiler_rtti_exceptions=yes
8486      fi
8487    fi
8488    $rm conftest*
8489
8490 fi
8491 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8492 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8493
8494 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8495     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8496 else
8497     :
8498 fi
8499
8500 fi
8501
8502 lt_prog_compiler_wl=
8503 lt_prog_compiler_pic=
8504 lt_prog_compiler_static=
8505
8506 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8507 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8508
8509   if test "$GCC" = yes; then
8510     lt_prog_compiler_wl='-Wl,'
8511     lt_prog_compiler_static='-static'
8512
8513     case $host_os in
8514       aix*)
8515       # All AIX code is PIC.
8516       if test "$host_cpu" = ia64; then
8517         # AIX 5 now supports IA64 processor
8518         lt_prog_compiler_static='-Bstatic'
8519       fi
8520       ;;
8521
8522     amigaos*)
8523       # FIXME: we need at least 68020 code to build shared libraries, but
8524       # adding the `-m68020' flag to GCC prevents building anything better,
8525       # like `-m68040'.
8526       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8527       ;;
8528
8529     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8530       # PIC is the default for these OSes.
8531       ;;
8532
8533     mingw* | pw32* | os2*)
8534       # This hack is so that the source file can tell whether it is being
8535       # built for inclusion in a dll (and should export symbols for example).
8536       lt_prog_compiler_pic='-DDLL_EXPORT'
8537       ;;
8538
8539     darwin* | rhapsody*)
8540       # PIC is the default on this platform
8541       # Common symbols not allowed in MH_DYLIB files
8542       lt_prog_compiler_pic='-fno-common'
8543       ;;
8544
8545     msdosdjgpp*)
8546       # Just because we use GCC doesn't mean we suddenly get shared libraries
8547       # on systems that don't support them.
8548       lt_prog_compiler_can_build_shared=no
8549       enable_shared=no
8550       ;;
8551
8552     sysv4*MP*)
8553       if test -d /usr/nec; then
8554         lt_prog_compiler_pic=-Kconform_pic
8555       fi
8556       ;;
8557
8558     hpux*)
8559       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8560       # not for PA HP-UX.
8561       case "$host_cpu" in
8562       hppa*64*|ia64*)
8563         # +Z the default
8564         ;;
8565       *)
8566         lt_prog_compiler_pic='-fPIC'
8567         ;;
8568       esac
8569       ;;
8570
8571     *)
8572       lt_prog_compiler_pic='-fPIC'
8573       ;;
8574     esac
8575   else
8576     # PORTME Check for flag to pass linker flags through the system compiler.
8577     case $host_os in
8578     aix*)
8579       lt_prog_compiler_wl='-Wl,'
8580       if test "$host_cpu" = ia64; then
8581         # AIX 5 now supports IA64 processor
8582         lt_prog_compiler_static='-Bstatic'
8583       else
8584         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8585       fi
8586       ;;
8587       darwin*)
8588         # PIC is the default on this platform
8589         # Common symbols not allowed in MH_DYLIB files
8590        case $cc_basename in
8591          xlc*)
8592          lt_prog_compiler_pic='-qnocommon'
8593          lt_prog_compiler_wl='-Wl,'
8594          ;;
8595        esac
8596        ;;
8597
8598     mingw* | pw32* | os2*)
8599       # This hack is so that the source file can tell whether it is being
8600       # built for inclusion in a dll (and should export symbols for example).
8601       lt_prog_compiler_pic='-DDLL_EXPORT'
8602       ;;
8603
8604     hpux9* | hpux10* | hpux11*)
8605       lt_prog_compiler_wl='-Wl,'
8606       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8607       # not for PA HP-UX.
8608       case "$host_cpu" in
8609       hppa*64*|ia64*)
8610         # +Z the default
8611         ;;
8612       *)
8613         lt_prog_compiler_pic='+Z'
8614         ;;
8615       esac
8616       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8617       lt_prog_compiler_static='${wl}-a ${wl}archive'
8618       ;;
8619
8620     irix5* | irix6* | nonstopux*)
8621       lt_prog_compiler_wl='-Wl,'
8622       # PIC (with -KPIC) is the default.
8623       lt_prog_compiler_static='-non_shared'
8624       ;;
8625
8626     newsos6)
8627       lt_prog_compiler_pic='-KPIC'
8628       lt_prog_compiler_static='-Bstatic'
8629       ;;
8630
8631     linux*)
8632       case $cc_basename in
8633       icc* | ecc*)
8634         lt_prog_compiler_wl='-Wl,'
8635         lt_prog_compiler_pic='-KPIC'
8636         lt_prog_compiler_static='-static'
8637         ;;
8638       pgcc* | pgf77* | pgf90*)
8639         # Portland Group compilers (*not* the Pentium gcc compiler,
8640         # which looks to be a dead project)
8641         lt_prog_compiler_wl='-Wl,'
8642         lt_prog_compiler_pic='-fpic'
8643         lt_prog_compiler_static='-static'
8644         ;;
8645       ccc*)
8646         lt_prog_compiler_wl='-Wl,'
8647         # All Alpha code is PIC.
8648         lt_prog_compiler_static='-non_shared'
8649         ;;
8650       esac
8651       ;;
8652
8653     osf3* | osf4* | osf5*)
8654       lt_prog_compiler_wl='-Wl,'
8655       # All OSF/1 code is PIC.
8656       lt_prog_compiler_static='-non_shared'
8657       ;;
8658
8659     sco3.2v5*)
8660       lt_prog_compiler_pic='-Kpic'
8661       lt_prog_compiler_static='-dn'
8662       ;;
8663
8664     solaris*)
8665       lt_prog_compiler_pic='-KPIC'
8666       lt_prog_compiler_static='-Bstatic'
8667       case $cc_basename in
8668       f77* | f90* | f95*)
8669         lt_prog_compiler_wl='-Qoption ld ';;
8670       *)
8671         lt_prog_compiler_wl='-Wl,';;
8672       esac
8673       ;;
8674
8675     sunos4*)
8676       lt_prog_compiler_wl='-Qoption ld '
8677       lt_prog_compiler_pic='-PIC'
8678       lt_prog_compiler_static='-Bstatic'
8679       ;;
8680
8681     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8682       lt_prog_compiler_wl='-Wl,'
8683       lt_prog_compiler_pic='-KPIC'
8684       lt_prog_compiler_static='-Bstatic'
8685       ;;
8686
8687     sysv4*MP*)
8688       if test -d /usr/nec ;then
8689         lt_prog_compiler_pic='-Kconform_pic'
8690         lt_prog_compiler_static='-Bstatic'
8691       fi
8692       ;;
8693
8694     unicos*)
8695       lt_prog_compiler_wl='-Wl,'
8696       lt_prog_compiler_can_build_shared=no
8697       ;;
8698
8699     uts4*)
8700       lt_prog_compiler_pic='-pic'
8701       lt_prog_compiler_static='-Bstatic'
8702       ;;
8703
8704     *)
8705       lt_prog_compiler_can_build_shared=no
8706       ;;
8707     esac
8708   fi
8709
8710 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8711 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8712
8713 #
8714 # Check to make sure the PIC flag actually works.
8715 #
8716 if test -n "$lt_prog_compiler_pic"; then
8717
8718 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8719 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8720 if test "${lt_prog_compiler_pic_works+set}" = set; then
8721   echo $ECHO_N "(cached) $ECHO_C" >&6
8722 else
8723   lt_prog_compiler_pic_works=no
8724   ac_outfile=conftest.$ac_objext
8725    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8726    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8727    # Insert the option either (1) after the last *FLAGS variable, or
8728    # (2) before a word containing "conftest.", or (3) at the end.
8729    # Note that $ac_compile itself does not contain backslashes and begins
8730    # with a dollar sign (not a hyphen), so the echo should work correctly.
8731    # The option is referenced via a variable to avoid confusing sed.
8732    lt_compile=`echo "$ac_compile" | $SED \
8733    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8734    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8735    -e 's:$: $lt_compiler_flag:'`
8736    (eval echo "\"\$as_me:8736: $lt_compile\"" >&5)
8737    (eval "$lt_compile" 2>conftest.err)
8738    ac_status=$?
8739    cat conftest.err >&5
8740    echo "$as_me:8740: \$? = $ac_status" >&5
8741    if (exit $ac_status) && test -s "$ac_outfile"; then
8742      # The compiler can only warn and ignore the option if not recognized
8743      # So say no if there are warnings other than the usual output.
8744      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
8745      $SED '/^$/d' conftest.err >conftest.er2
8746      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
8747        lt_prog_compiler_pic_works=yes
8748      fi
8749    fi
8750    $rm conftest*
8751
8752 fi
8753 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8754 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8755
8756 if test x"$lt_prog_compiler_pic_works" = xyes; then
8757     case $lt_prog_compiler_pic in
8758      "" | " "*) ;;
8759      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8760      esac
8761 else
8762     lt_prog_compiler_pic=
8763      lt_prog_compiler_can_build_shared=no
8764 fi
8765
8766 fi
8767 case "$host_os" in
8768   # For platforms which do not support PIC, -DPIC is meaningless:
8769   *djgpp*)
8770     lt_prog_compiler_pic=
8771     ;;
8772   *)
8773     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8774     ;;
8775 esac
8776
8777 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8778 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8779 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8780   echo $ECHO_N "(cached) $ECHO_C" >&6
8781 else
8782   lt_cv_prog_compiler_c_o=no
8783    $rm -r conftest 2>/dev/null
8784    mkdir conftest
8785    cd conftest
8786    mkdir out
8787    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8788
8789    lt_compiler_flag="-o out/conftest2.$ac_objext"
8790    # Insert the option either (1) after the last *FLAGS variable, or
8791    # (2) before a word containing "conftest.", or (3) at the end.
8792    # Note that $ac_compile itself does not contain backslashes and begins
8793    # with a dollar sign (not a hyphen), so the echo should work correctly.
8794    lt_compile=`echo "$ac_compile" | $SED \
8795    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8796    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8797    -e 's:$: $lt_compiler_flag:'`
8798    (eval echo "\"\$as_me:8798: $lt_compile\"" >&5)
8799    (eval "$lt_compile" 2>out/conftest.err)
8800    ac_status=$?
8801    cat out/conftest.err >&5
8802    echo "$as_me:8802: \$? = $ac_status" >&5
8803    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8804    then
8805      # The compiler can only warn and ignore the option if not recognized
8806      # So say no if there are warnings
8807      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
8808      $SED '/^$/d' out/conftest.err >out/conftest.er2
8809      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8810        lt_cv_prog_compiler_c_o=yes
8811      fi
8812    fi
8813    chmod u+w .
8814    $rm conftest*
8815    # SGI C++ compiler will create directory out/ii_files/ for
8816    # template instantiation
8817    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8818    $rm out/* && rmdir out
8819    cd ..
8820    rmdir conftest
8821    $rm conftest*
8822
8823 fi
8824 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8825 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8826
8827
8828 hard_links="nottested"
8829 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8830   # do not overwrite the value of need_locks provided by the user
8831   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8832 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8833   hard_links=yes
8834   $rm conftest*
8835   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8836   touch conftest.a
8837   ln conftest.a conftest.b 2>&5 || hard_links=no
8838   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8839   echo "$as_me:$LINENO: result: $hard_links" >&5
8840 echo "${ECHO_T}$hard_links" >&6
8841   if test "$hard_links" = no; then
8842     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8843 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8844     need_locks=warn
8845   fi
8846 else
8847   need_locks=no
8848 fi
8849
8850 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8851 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8852
8853   runpath_var=
8854   allow_undefined_flag=
8855   enable_shared_with_static_runtimes=no
8856   archive_cmds=
8857   archive_expsym_cmds=
8858   old_archive_From_new_cmds=
8859   old_archive_from_expsyms_cmds=
8860   export_dynamic_flag_spec=
8861   whole_archive_flag_spec=
8862   thread_safe_flag_spec=
8863   hardcode_libdir_flag_spec=
8864   hardcode_libdir_flag_spec_ld=
8865   hardcode_libdir_separator=
8866   hardcode_direct=no
8867   hardcode_minus_L=no
8868   hardcode_shlibpath_var=unsupported
8869   link_all_deplibs=unknown
8870   hardcode_automatic=no
8871   module_cmds=
8872   module_expsym_cmds=
8873   always_export_symbols=no
8874   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8875   # include_expsyms should be a list of space-separated symbols to be *always*
8876   # included in the symbol list
8877   include_expsyms=
8878   # exclude_expsyms can be an extended regexp of symbols to exclude
8879   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8880   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8881   # as well as any symbol that contains `d'.
8882   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8883   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8884   # platforms (ab)use it in PIC code, but their linkers get confused if
8885   # the symbol is explicitly referenced.  Since portable code cannot
8886   # rely on this symbol name, it's probably fine to never include it in
8887   # preloaded symbol tables.
8888   extract_expsyms_cmds=
8889   # Just being paranoid about ensuring that cc_basename is set.
8890   for cc_temp in $compiler""; do
8891   case $cc_temp in
8892     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8893     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8894     \-*) ;;
8895     *) break;;
8896   esac
8897 done
8898 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8899
8900   case $host_os in
8901   cygwin* | mingw* | pw32*)
8902     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8903     # When not using gcc, we currently assume that we are using
8904     # Microsoft Visual C++.
8905     if test "$GCC" != yes; then
8906       with_gnu_ld=no
8907     fi
8908     ;;
8909   openbsd*)
8910     with_gnu_ld=no
8911     ;;
8912   esac
8913
8914   ld_shlibs=yes
8915   if test "$with_gnu_ld" = yes; then
8916     # If archive_cmds runs LD, not CC, wlarc should be empty
8917     wlarc='${wl}'
8918
8919     # Set some defaults for GNU ld with shared library support. These
8920     # are reset later if shared libraries are not supported. Putting them
8921     # here allows them to be overridden if necessary.
8922     runpath_var=LD_RUN_PATH
8923     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8924     export_dynamic_flag_spec='${wl}--export-dynamic'
8925     # ancient GNU ld didn't support --whole-archive et. al.
8926     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8927         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8928       else
8929         whole_archive_flag_spec=
8930     fi
8931     supports_anon_versioning=no
8932     case `$LD -v 2>/dev/null` in
8933       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8934       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8935       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8936       *\ 2.11.*) ;; # other 2.11 versions
8937       *) supports_anon_versioning=yes ;;
8938     esac
8939
8940     # See if GNU ld supports shared libraries.
8941     case $host_os in
8942     aix3* | aix4* | aix5*)
8943       # On AIX/PPC, the GNU linker is very broken
8944       if test "$host_cpu" != ia64; then
8945         ld_shlibs=no
8946         cat <<EOF 1>&2
8947
8948 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8949 *** to be unable to reliably create shared libraries on AIX.
8950 *** Therefore, libtool is disabling shared libraries support.  If you
8951 *** really care for shared libraries, you may want to modify your PATH
8952 *** so that a non-GNU linker is found, and then restart.
8953
8954 EOF
8955       fi
8956       ;;
8957
8958     amigaos*)
8959       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)'
8960       hardcode_libdir_flag_spec='-L$libdir'
8961       hardcode_minus_L=yes
8962
8963       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8964       # that the semantics of dynamic libraries on AmigaOS, at least up
8965       # to version 4, is to share data among multiple programs linked
8966       # with the same dynamic library.  Since this doesn't match the
8967       # behavior of shared libraries on other platforms, we can't use
8968       # them.
8969       ld_shlibs=no
8970       ;;
8971
8972     beos*)
8973       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8974         allow_undefined_flag=unsupported
8975         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8976         # support --undefined.  This deserves some investigation.  FIXME
8977         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8978       else
8979         ld_shlibs=no
8980       fi
8981       ;;
8982
8983     cygwin* | mingw* | pw32*)
8984       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8985       # as there is no search path for DLLs.
8986       hardcode_libdir_flag_spec='-L$libdir'
8987       allow_undefined_flag=unsupported
8988       always_export_symbols=no
8989       enable_shared_with_static_runtimes=yes
8990       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8991
8992       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8993         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8994         # If the export-symbols file already is a .def file (1st line
8995         # is EXPORTS), use it as is; otherwise, prepend...
8996         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8997           cp $export_symbols $output_objdir/$soname.def;
8998         else
8999           echo EXPORTS > $output_objdir/$soname.def;
9000           cat $export_symbols >> $output_objdir/$soname.def;
9001         fi~
9002         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
9003       else
9004         ld_shlibs=no
9005       fi
9006       ;;
9007
9008     linux*)
9009       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9010         tmp_addflag=
9011         case $cc_basename,$host_cpu in
9012         pgcc*)                          # Portland Group C compiler
9013           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'
9014           tmp_addflag=' $pic_flag'
9015           ;;
9016         pgf77* | pgf90* )                       # Portland Group f77 and f90 compilers
9017           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'
9018           tmp_addflag=' $pic_flag -Mnomain' ;;
9019         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
9020           tmp_addflag=' -i_dynamic' ;;
9021         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9022           tmp_addflag=' -i_dynamic -nofor_main' ;;
9023         ifc* | ifort*)                  # Intel Fortran compiler
9024           tmp_addflag=' -nofor_main' ;;
9025         esac
9026         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9027
9028         if test $supports_anon_versioning = yes; then
9029           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9030   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9031   $echo "local: *; };" >> $output_objdir/$libname.ver~
9032           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9033         fi
9034       else
9035         ld_shlibs=no
9036       fi
9037       ;;
9038
9039     netbsd*)
9040       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9041         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9042         wlarc=
9043       else
9044         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9045         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9046       fi
9047       ;;
9048
9049     solaris* | sysv5*)
9050       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9051         ld_shlibs=no
9052         cat <<EOF 1>&2
9053
9054 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9055 *** create shared libraries on Solaris systems.  Therefore, libtool
9056 *** is disabling shared libraries support.  We urge you to upgrade GNU
9057 *** binutils to release 2.9.1 or newer.  Another option is to modify
9058 *** your PATH or compiler configuration so that the native linker is
9059 *** used, and then restart.
9060
9061 EOF
9062       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9063         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9064         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9065       else
9066         ld_shlibs=no
9067       fi
9068       ;;
9069
9070     sunos4*)
9071       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9072       wlarc=
9073       hardcode_direct=yes
9074       hardcode_shlibpath_var=no
9075       ;;
9076
9077     *)
9078       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9079         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9080         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9081       else
9082         ld_shlibs=no
9083       fi
9084       ;;
9085     esac
9086
9087     if test "$ld_shlibs" = no; then
9088       runpath_var=
9089       hardcode_libdir_flag_spec=
9090       export_dynamic_flag_spec=
9091       whole_archive_flag_spec=
9092     fi
9093   else
9094     # PORTME fill in a description of your system's linker (not GNU ld)
9095     case $host_os in
9096     aix3*)
9097       allow_undefined_flag=unsupported
9098       always_export_symbols=yes
9099       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'
9100       # Note: this linker hardcodes the directories in LIBPATH if there
9101       # are no directories specified by -L.
9102       hardcode_minus_L=yes
9103       if test "$GCC" = yes && test -z "$link_static_flag"; then
9104         # Neither direct hardcoding nor static linking is supported with a
9105         # broken collect2.
9106         hardcode_direct=unsupported
9107       fi
9108       ;;
9109
9110     aix4* | aix5*)
9111       if test "$host_cpu" = ia64; then
9112         # On IA64, the linker does run time linking by default, so we don't
9113         # have to do anything special.
9114         aix_use_runtimelinking=no
9115         exp_sym_flag='-Bexport'
9116         no_entry_flag=""
9117       else
9118         # If we're using GNU nm, then we don't want the "-C" option.
9119         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9120         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9121           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'
9122         else
9123           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'
9124         fi
9125         aix_use_runtimelinking=no
9126
9127         # Test if we are trying to use run time linking or normal
9128         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9129         # need to do runtime linking.
9130         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9131           for ld_flag in $LDFLAGS; do
9132           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9133             aix_use_runtimelinking=yes
9134             break
9135           fi
9136           done
9137         esac
9138
9139         exp_sym_flag='-bexport'
9140         no_entry_flag='-bnoentry'
9141       fi
9142
9143       # When large executables or shared objects are built, AIX ld can
9144       # have problems creating the table of contents.  If linking a library
9145       # or program results in "error TOC overflow" add -mminimal-toc to
9146       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9147       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9148
9149       archive_cmds=''
9150       hardcode_direct=yes
9151       hardcode_libdir_separator=':'
9152       link_all_deplibs=yes
9153
9154       if test "$GCC" = yes; then
9155         case $host_os in aix4.[012]|aix4.[012].*)
9156         # We only want to do this on AIX 4.2 and lower, the check
9157         # below for broken collect2 doesn't work under 4.3+
9158           collect2name=`${CC} -print-prog-name=collect2`
9159           if test -f "$collect2name" && \
9160            strings "$collect2name" | grep resolve_lib_name >/dev/null
9161           then
9162           # We have reworked collect2
9163           hardcode_direct=yes
9164           else
9165           # We have old collect2
9166           hardcode_direct=unsupported
9167           # It fails to find uninstalled libraries when the uninstalled
9168           # path is not listed in the libpath.  Setting hardcode_minus_L
9169           # to unsupported forces relinking
9170           hardcode_minus_L=yes
9171           hardcode_libdir_flag_spec='-L$libdir'
9172           hardcode_libdir_separator=
9173           fi
9174         esac
9175         shared_flag='-shared'
9176         if test "$aix_use_runtimelinking" = yes; then
9177           shared_flag="$shared_flag "'${wl}-G'
9178         fi
9179       else
9180         # not using gcc
9181         if test "$host_cpu" = ia64; then
9182         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9183         # chokes on -Wl,-G. The following line is correct:
9184           shared_flag='-G'
9185         else
9186         if test "$aix_use_runtimelinking" = yes; then
9187             shared_flag='${wl}-G'
9188           else
9189             shared_flag='${wl}-bM:SRE'
9190         fi
9191         fi
9192       fi
9193
9194       # It seems that -bexpall does not export symbols beginning with
9195       # underscore (_), so it is better to generate a list of symbols to export.
9196       always_export_symbols=yes
9197       if test "$aix_use_runtimelinking" = yes; then
9198         # Warning - without using the other runtime loading flags (-brtl),
9199         # -berok will link without error, but may produce a broken library.
9200         allow_undefined_flag='-berok'
9201        # Determine the default libpath from the value encoded in an empty executable.
9202        cat >conftest.$ac_ext <<_ACEOF
9203 /* confdefs.h.  */
9204 _ACEOF
9205 cat confdefs.h >>conftest.$ac_ext
9206 cat >>conftest.$ac_ext <<_ACEOF
9207 /* end confdefs.h.  */
9208
9209 int
9210 main ()
9211 {
9212
9213   ;
9214   return 0;
9215 }
9216 _ACEOF
9217 rm -f conftest.$ac_objext conftest$ac_exeext
9218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9219   (eval $ac_link) 2>conftest.er1
9220   ac_status=$?
9221   grep -v '^ *+' conftest.er1 >conftest.err
9222   rm -f conftest.er1
9223   cat conftest.err >&5
9224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9225   (exit $ac_status); } &&
9226          { ac_try='test -z "$ac_c_werror_flag"
9227                          || test ! -s conftest.err'
9228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9229   (eval $ac_try) 2>&5
9230   ac_status=$?
9231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9232   (exit $ac_status); }; } &&
9233          { ac_try='test -s conftest$ac_exeext'
9234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9235   (eval $ac_try) 2>&5
9236   ac_status=$?
9237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9238   (exit $ac_status); }; }; then
9239
9240 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9241 }'`
9242 # Check for a 64-bit object if we didn't find anything.
9243 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; }
9244 }'`; fi
9245 else
9246   echo "$as_me: failed program was:" >&5
9247 sed 's/^/| /' conftest.$ac_ext >&5
9248
9249 fi
9250 rm -f conftest.err conftest.$ac_objext \
9251       conftest$ac_exeext conftest.$ac_ext
9252 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9253
9254        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9255         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"
9256        else
9257         if test "$host_cpu" = ia64; then
9258           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9259           allow_undefined_flag="-z nodefs"
9260           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"
9261         else
9262          # Determine the default libpath from the value encoded in an empty executable.
9263          cat >conftest.$ac_ext <<_ACEOF
9264 /* confdefs.h.  */
9265 _ACEOF
9266 cat confdefs.h >>conftest.$ac_ext
9267 cat >>conftest.$ac_ext <<_ACEOF
9268 /* end confdefs.h.  */
9269
9270 int
9271 main ()
9272 {
9273
9274   ;
9275   return 0;
9276 }
9277 _ACEOF
9278 rm -f conftest.$ac_objext conftest$ac_exeext
9279 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9280   (eval $ac_link) 2>conftest.er1
9281   ac_status=$?
9282   grep -v '^ *+' conftest.er1 >conftest.err
9283   rm -f conftest.er1
9284   cat conftest.err >&5
9285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9286   (exit $ac_status); } &&
9287          { ac_try='test -z "$ac_c_werror_flag"
9288                          || test ! -s conftest.err'
9289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9290   (eval $ac_try) 2>&5
9291   ac_status=$?
9292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9293   (exit $ac_status); }; } &&
9294          { ac_try='test -s conftest$ac_exeext'
9295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9296   (eval $ac_try) 2>&5
9297   ac_status=$?
9298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9299   (exit $ac_status); }; }; then
9300
9301 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9302 }'`
9303 # Check for a 64-bit object if we didn't find anything.
9304 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; }
9305 }'`; fi
9306 else
9307   echo "$as_me: failed program was:" >&5
9308 sed 's/^/| /' conftest.$ac_ext >&5
9309
9310 fi
9311 rm -f conftest.err conftest.$ac_objext \
9312       conftest$ac_exeext conftest.$ac_ext
9313 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9314
9315          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9316           # Warning - without using the other run time loading flags,
9317           # -berok will link without error, but may produce a broken library.
9318           no_undefined_flag=' ${wl}-bernotok'
9319           allow_undefined_flag=' ${wl}-berok'
9320           # -bexpall does not export symbols beginning with underscore (_)
9321           always_export_symbols=yes
9322           # Exported symbols can be pulled into shared objects from archives
9323           whole_archive_flag_spec=' '
9324           archive_cmds_need_lc=yes
9325           # This is similar to how AIX traditionally builds it's shared libraries.
9326           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'
9327         fi
9328       fi
9329       ;;
9330
9331     amigaos*)
9332       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)'
9333       hardcode_libdir_flag_spec='-L$libdir'
9334       hardcode_minus_L=yes
9335       # see comment about different semantics on the GNU ld section
9336       ld_shlibs=no
9337       ;;
9338
9339     bsdi[45]*)
9340       export_dynamic_flag_spec=-rdynamic
9341       ;;
9342
9343     cygwin* | mingw* | pw32*)
9344       # When not using gcc, we currently assume that we are using
9345       # Microsoft Visual C++.
9346       # hardcode_libdir_flag_spec is actually meaningless, as there is
9347       # no search path for DLLs.
9348       hardcode_libdir_flag_spec=' '
9349       allow_undefined_flag=unsupported
9350       # Tell ltmain to make .lib files, not .a files.
9351       libext=lib
9352       # Tell ltmain to make .dll files, not .so files.
9353       shrext_cmds=".dll"
9354       # FIXME: Setting linknames here is a bad hack.
9355       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9356       # The linker will automatically build a .lib file if we build a DLL.
9357       old_archive_From_new_cmds='true'
9358       # FIXME: Should let the user specify the lib program.
9359       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9360       fix_srcfile_path='`cygpath -w "$srcfile"`'
9361       enable_shared_with_static_runtimes=yes
9362       ;;
9363
9364     darwin* | rhapsody*)
9365       case "$host_os" in
9366         rhapsody* | darwin1.[012])
9367          allow_undefined_flag='${wl}-undefined ${wl}suppress'
9368          ;;
9369        *) # Darwin 1.3 on
9370          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9371            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9372          else
9373            case ${MACOSX_DEPLOYMENT_TARGET} in
9374              10.[012])
9375                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9376                ;;
9377              10.*)
9378                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9379                ;;
9380            esac
9381          fi
9382          ;;
9383       esac
9384       archive_cmds_need_lc=no
9385       hardcode_direct=no
9386       hardcode_automatic=yes
9387       hardcode_shlibpath_var=unsupported
9388       whole_archive_flag_spec=''
9389       link_all_deplibs=yes
9390     if test "$GCC" = yes ; then
9391         output_verbose_link_cmd='echo'
9392         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9393       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9394       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9395       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}'
9396       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}'
9397     else
9398       case $cc_basename in
9399         xlc*)
9400          output_verbose_link_cmd='echo'
9401          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9402          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9403           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9404          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}'
9405           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}'
9406           ;;
9407        *)
9408          ld_shlibs=no
9409           ;;
9410       esac
9411     fi
9412       ;;
9413
9414     dgux*)
9415       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9416       hardcode_libdir_flag_spec='-L$libdir'
9417       hardcode_shlibpath_var=no
9418       ;;
9419
9420     freebsd1*)
9421       ld_shlibs=no
9422       ;;
9423
9424     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9425     # support.  Future versions do this automatically, but an explicit c++rt0.o
9426     # does not break anything, and helps significantly (at the cost of a little
9427     # extra space).
9428     freebsd2.2*)
9429       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9430       hardcode_libdir_flag_spec='-R$libdir'
9431       hardcode_direct=yes
9432       hardcode_shlibpath_var=no
9433       ;;
9434
9435     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9436     freebsd2*)
9437       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9438       hardcode_direct=yes
9439       hardcode_minus_L=yes
9440       hardcode_shlibpath_var=no
9441       ;;
9442
9443     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9444     freebsd* | kfreebsd*-gnu | dragonfly*)
9445       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9446       hardcode_libdir_flag_spec='-R$libdir'
9447       hardcode_direct=yes
9448       hardcode_shlibpath_var=no
9449       ;;
9450
9451     hpux9*)
9452       if test "$GCC" = yes; then
9453         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'
9454       else
9455         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'
9456       fi
9457       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9458       hardcode_libdir_separator=:
9459       hardcode_direct=yes
9460
9461       # hardcode_minus_L: Not really in the search PATH,
9462       # but as the default location of the library.
9463       hardcode_minus_L=yes
9464       export_dynamic_flag_spec='${wl}-E'
9465       ;;
9466
9467     hpux10* | hpux11*)
9468       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9469         case "$host_cpu" in
9470         hppa*64*|ia64*)
9471           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9472           ;;
9473         *)
9474           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9475           ;;
9476         esac
9477       else
9478         case "$host_cpu" in
9479         hppa*64*|ia64*)
9480           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
9481           ;;
9482         *)
9483           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9484           ;;
9485         esac
9486       fi
9487       if test "$with_gnu_ld" = no; then
9488         case "$host_cpu" in
9489         hppa*64*)
9490           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9491           hardcode_libdir_flag_spec_ld='+b $libdir'
9492           hardcode_libdir_separator=:
9493           hardcode_direct=no
9494           hardcode_shlibpath_var=no
9495           ;;
9496         ia64*)
9497           hardcode_libdir_flag_spec='-L$libdir'
9498           hardcode_direct=no
9499           hardcode_shlibpath_var=no
9500
9501           # hardcode_minus_L: Not really in the search PATH,
9502           # but as the default location of the library.
9503           hardcode_minus_L=yes
9504           ;;
9505         *)
9506           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9507           hardcode_libdir_separator=:
9508           hardcode_direct=yes
9509           export_dynamic_flag_spec='${wl}-E'
9510
9511           # hardcode_minus_L: Not really in the search PATH,
9512           # but as the default location of the library.
9513           hardcode_minus_L=yes
9514           ;;
9515         esac
9516       fi
9517       ;;
9518
9519     irix5* | irix6* | nonstopux*)
9520       if test "$GCC" = yes; then
9521         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'
9522       else
9523         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'
9524         hardcode_libdir_flag_spec_ld='-rpath $libdir'
9525       fi
9526       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9527       hardcode_libdir_separator=:
9528       link_all_deplibs=yes
9529       ;;
9530
9531     netbsd*)
9532       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9533         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9534       else
9535         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9536       fi
9537       hardcode_libdir_flag_spec='-R$libdir'
9538       hardcode_direct=yes
9539       hardcode_shlibpath_var=no
9540       ;;
9541
9542     newsos6)
9543       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9544       hardcode_direct=yes
9545       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9546       hardcode_libdir_separator=:
9547       hardcode_shlibpath_var=no
9548       ;;
9549
9550     openbsd*)
9551       hardcode_direct=yes
9552       hardcode_shlibpath_var=no
9553       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9554         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9555         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9556         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9557         export_dynamic_flag_spec='${wl}-E'
9558       else
9559        case $host_os in
9560          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9561            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9562            hardcode_libdir_flag_spec='-R$libdir'
9563            ;;
9564          *)
9565            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9566            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9567            ;;
9568        esac
9569       fi
9570       ;;
9571
9572     os2*)
9573       hardcode_libdir_flag_spec='-L$libdir'
9574       hardcode_minus_L=yes
9575       allow_undefined_flag=unsupported
9576       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'
9577       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9578       ;;
9579
9580     osf3*)
9581       if test "$GCC" = yes; then
9582         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9583         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'
9584       else
9585         allow_undefined_flag=' -expect_unresolved \*'
9586         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'
9587       fi
9588       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9589       hardcode_libdir_separator=:
9590       ;;
9591
9592     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9593       if test "$GCC" = yes; then
9594         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9595         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'
9596         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9597       else
9598         allow_undefined_flag=' -expect_unresolved \*'
9599         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'
9600         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9601         $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'
9602
9603         # Both c and cxx compiler support -rpath directly
9604         hardcode_libdir_flag_spec='-rpath $libdir'
9605       fi
9606       hardcode_libdir_separator=:
9607       ;;
9608
9609     sco3.2v5*)
9610       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9611       hardcode_shlibpath_var=no
9612       export_dynamic_flag_spec='${wl}-Bexport'
9613       runpath_var=LD_RUN_PATH
9614       hardcode_runpath_var=yes
9615       ;;
9616
9617     solaris*)
9618       no_undefined_flag=' -z text'
9619       if test "$GCC" = yes; then
9620         wlarc='${wl}'
9621         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9622         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9623           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9624       else
9625         wlarc=''
9626         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9627         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9628         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9629       fi
9630       hardcode_libdir_flag_spec='-R$libdir'
9631       hardcode_shlibpath_var=no
9632       case $host_os in
9633       solaris2.[0-5] | solaris2.[0-5].*) ;;
9634       *)
9635         # The compiler driver will combine linker options so we
9636         # cannot just pass the convience library names through
9637         # without $wl, iff we do not link with $LD.
9638         # Luckily, gcc supports the same syntax we need for Sun Studio.
9639         # Supported since Solaris 2.6 (maybe 2.5.1?)
9640         case $wlarc in
9641         '')
9642           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9643         *)
9644           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' ;;
9645         esac ;;
9646       esac
9647       link_all_deplibs=yes
9648       ;;
9649
9650     sunos4*)
9651       if test "x$host_vendor" = xsequent; then
9652         # Use $CC to link under sequent, because it throws in some extra .o
9653         # files that make .init and .fini sections work.
9654         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9655       else
9656         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9657       fi
9658       hardcode_libdir_flag_spec='-L$libdir'
9659       hardcode_direct=yes
9660       hardcode_minus_L=yes
9661       hardcode_shlibpath_var=no
9662       ;;
9663
9664     sysv4)
9665       case $host_vendor in
9666         sni)
9667           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9668           hardcode_direct=yes # is this really true???
9669         ;;
9670         siemens)
9671           ## LD is ld it makes a PLAMLIB
9672           ## CC just makes a GrossModule.
9673           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9674           reload_cmds='$CC -r -o $output$reload_objs'
9675           hardcode_direct=no
9676         ;;
9677         motorola)
9678           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9679           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9680         ;;
9681       esac
9682       runpath_var='LD_RUN_PATH'
9683       hardcode_shlibpath_var=no
9684       ;;
9685
9686     sysv4.3*)
9687       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9688       hardcode_shlibpath_var=no
9689       export_dynamic_flag_spec='-Bexport'
9690       ;;
9691
9692     sysv4*MP*)
9693       if test -d /usr/nec; then
9694         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9695         hardcode_shlibpath_var=no
9696         runpath_var=LD_RUN_PATH
9697         hardcode_runpath_var=yes
9698         ld_shlibs=yes
9699       fi
9700       ;;
9701
9702     sysv4.2uw2*)
9703       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9704       hardcode_direct=yes
9705       hardcode_minus_L=no
9706       hardcode_shlibpath_var=no
9707       hardcode_runpath_var=yes
9708       runpath_var=LD_RUN_PATH
9709       ;;
9710
9711    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
9712       no_undefined_flag='${wl}-z ${wl}text'
9713       if test "$GCC" = yes; then
9714         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9715       else
9716         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9717       fi
9718       runpath_var='LD_RUN_PATH'
9719       hardcode_shlibpath_var=no
9720       ;;
9721
9722     sysv5*)
9723       no_undefined_flag=' -z text'
9724       # $CC -shared without GNU ld will not create a library from C++
9725       # object files and a static libstdc++, better avoid it by now
9726       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9727       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9728                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9729       hardcode_libdir_flag_spec=
9730       hardcode_shlibpath_var=no
9731       runpath_var='LD_RUN_PATH'
9732       ;;
9733
9734     uts4*)
9735       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9736       hardcode_libdir_flag_spec='-L$libdir'
9737       hardcode_shlibpath_var=no
9738       ;;
9739
9740     *)
9741       ld_shlibs=no
9742       ;;
9743     esac
9744   fi
9745
9746 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9747 echo "${ECHO_T}$ld_shlibs" >&6
9748 test "$ld_shlibs" = no && can_build_shared=no
9749
9750 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9751 if test "$GCC" = yes; then
9752   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9753 fi
9754
9755 #
9756 # Do we need to explicitly link libc?
9757 #
9758 case "x$archive_cmds_need_lc" in
9759 x|xyes)
9760   # Assume -lc should be added
9761   archive_cmds_need_lc=yes
9762
9763   if test "$enable_shared" = yes && test "$GCC" = yes; then
9764     case $archive_cmds in
9765     *'~'*)
9766       # FIXME: we may have to deal with multi-command sequences.
9767       ;;
9768     '$CC '*)
9769       # Test whether the compiler implicitly links with -lc since on some
9770       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9771       # to ld, don't add -lc before -lgcc.
9772       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9773 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9774       $rm conftest*
9775       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9776
9777       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9778   (eval $ac_compile) 2>&5
9779   ac_status=$?
9780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9781   (exit $ac_status); } 2>conftest.err; then
9782         soname=conftest
9783         lib=conftest
9784         libobjs=conftest.$ac_objext
9785         deplibs=
9786         wl=$lt_prog_compiler_wl
9787         compiler_flags=-v
9788         linker_flags=-v
9789         verstring=
9790         output_objdir=.
9791         libname=conftest
9792         lt_save_allow_undefined_flag=$allow_undefined_flag
9793         allow_undefined_flag=
9794         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9795   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9796   ac_status=$?
9797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9798   (exit $ac_status); }
9799         then
9800           archive_cmds_need_lc=no
9801         else
9802           archive_cmds_need_lc=yes
9803         fi
9804         allow_undefined_flag=$lt_save_allow_undefined_flag
9805       else
9806         cat conftest.err 1>&5
9807       fi
9808       $rm conftest*
9809       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9810 echo "${ECHO_T}$archive_cmds_need_lc" >&6
9811       ;;
9812     esac
9813   fi
9814   ;;
9815 esac
9816
9817 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9818 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9819 library_names_spec=
9820 libname_spec='lib$name'
9821 soname_spec=
9822 shrext_cmds=".so"
9823 postinstall_cmds=
9824 postuninstall_cmds=
9825 finish_cmds=
9826 finish_eval=
9827 shlibpath_var=
9828 shlibpath_overrides_runpath=unknown
9829 version_type=none
9830 dynamic_linker="$host_os ld.so"
9831 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9832 if test "$GCC" = yes; then
9833   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9834   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9835     # if the path contains ";" then we assume it to be the separator
9836     # otherwise default to the standard path separator (i.e. ":") - it is
9837     # assumed that no part of a normal pathname contains ";" but that should
9838     # okay in the real world where ";" in dirpaths is itself problematic.
9839     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9840   else
9841     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9842   fi
9843 else
9844   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9845 fi
9846 need_lib_prefix=unknown
9847 hardcode_into_libs=no
9848
9849 # when you set need_version to no, make sure it does not cause -set_version
9850 # flags to be left without arguments
9851 need_version=unknown
9852
9853 case $host_os in
9854 aix3*)
9855   version_type=linux
9856   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9857   shlibpath_var=LIBPATH
9858
9859   # AIX 3 has no versioning support, so we append a major version to the name.
9860   soname_spec='${libname}${release}${shared_ext}$major'
9861   ;;
9862
9863 aix4* | aix5*)
9864   version_type=linux
9865   need_lib_prefix=no
9866   need_version=no
9867   hardcode_into_libs=yes
9868   if test "$host_cpu" = ia64; then
9869     # AIX 5 supports IA64
9870     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9871     shlibpath_var=LD_LIBRARY_PATH
9872   else
9873     # With GCC up to 2.95.x, collect2 would create an import file
9874     # for dependence libraries.  The import file would start with
9875     # the line `#! .'.  This would cause the generated library to
9876     # depend on `.', always an invalid library.  This was fixed in
9877     # development snapshots of GCC prior to 3.0.
9878     case $host_os in
9879       aix4 | aix4.[01] | aix4.[01].*)
9880       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9881            echo ' yes '
9882            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9883         :
9884       else
9885         can_build_shared=no
9886       fi
9887       ;;
9888     esac
9889     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9890     # soname into executable. Probably we can add versioning support to
9891     # collect2, so additional links can be useful in future.
9892     if test "$aix_use_runtimelinking" = yes; then
9893       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9894       # instead of lib<name>.a to let people know that these are not
9895       # typical AIX shared libraries.
9896       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9897     else
9898       # We preserve .a as extension for shared libraries through AIX4.2
9899       # and later when we are not doing run time linking.
9900       library_names_spec='${libname}${release}.a $libname.a'
9901       soname_spec='${libname}${release}${shared_ext}$major'
9902     fi
9903     shlibpath_var=LIBPATH
9904   fi
9905   ;;
9906
9907 amigaos*)
9908   library_names_spec='$libname.ixlibrary $libname.a'
9909   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9910   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'
9911   ;;
9912
9913 beos*)
9914   library_names_spec='${libname}${shared_ext}'
9915   dynamic_linker="$host_os ld.so"
9916   shlibpath_var=LIBRARY_PATH
9917   ;;
9918
9919 bsdi[45]*)
9920   version_type=linux
9921   need_version=no
9922   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9923   soname_spec='${libname}${release}${shared_ext}$major'
9924   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9925   shlibpath_var=LD_LIBRARY_PATH
9926   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9927   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9928   # the default ld.so.conf also contains /usr/contrib/lib and
9929   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9930   # libtool to hard-code these into programs
9931   ;;
9932
9933 cygwin* | mingw* | pw32*)
9934   version_type=windows
9935   shrext_cmds=".dll"
9936   need_version=no
9937   need_lib_prefix=no
9938
9939   case $GCC,$host_os in
9940   yes,cygwin* | yes,mingw* | yes,pw32*)
9941     library_names_spec='$libname.dll.a'
9942     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9943     postinstall_cmds='base_file=`basename \${file}`~
9944       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9945       dldir=$destdir/`dirname \$dlpath`~
9946       test -d \$dldir || mkdir -p \$dldir~
9947       $install_prog $dir/$dlname \$dldir/$dlname'
9948     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9949       dlpath=$dir/\$dldll~
9950        $rm \$dlpath'
9951     shlibpath_overrides_runpath=yes
9952
9953     case $host_os in
9954     cygwin*)
9955       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9956       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9957       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9958       ;;
9959     mingw*)
9960       # MinGW DLLs use traditional 'lib' prefix
9961       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9962       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9963       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9964         # It is most probably a Windows format PATH printed by
9965         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9966         # path with ; separators, and with drive letters. We can handle the
9967         # drive letters (cygwin fileutils understands them), so leave them,
9968         # especially as we might pass files found there to a mingw objdump,
9969         # which wouldn't understand a cygwinified path. Ahh.
9970         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9971       else
9972         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9973       fi
9974       ;;
9975     pw32*)
9976       # pw32 DLLs use 'pw' prefix rather than 'lib'
9977       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9978       ;;
9979     esac
9980     ;;
9981
9982   *)
9983     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9984     ;;
9985   esac
9986   dynamic_linker='Win32 ld.exe'
9987   # FIXME: first we should search . and the directory the executable is in
9988   shlibpath_var=PATH
9989   ;;
9990
9991 darwin* | rhapsody*)
9992   dynamic_linker="$host_os dyld"
9993   version_type=darwin
9994   need_lib_prefix=no
9995   need_version=no
9996   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9997   soname_spec='${libname}${release}${major}$shared_ext'
9998   shlibpath_overrides_runpath=yes
9999   shlibpath_var=DYLD_LIBRARY_PATH
10000   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
10001   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10002   if test "$GCC" = yes; then
10003     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"`
10004   else
10005     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10006   fi
10007   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10008   ;;
10009
10010 dgux*)
10011   version_type=linux
10012   need_lib_prefix=no
10013   need_version=no
10014   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10015   soname_spec='${libname}${release}${shared_ext}$major'
10016   shlibpath_var=LD_LIBRARY_PATH
10017   ;;
10018
10019 freebsd1*)
10020   dynamic_linker=no
10021   ;;
10022
10023 kfreebsd*-gnu)
10024   version_type=linux
10025   need_lib_prefix=no
10026   need_version=no
10027   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10028   soname_spec='${libname}${release}${shared_ext}$major'
10029   shlibpath_var=LD_LIBRARY_PATH
10030   shlibpath_overrides_runpath=no
10031   hardcode_into_libs=yes
10032   dynamic_linker='GNU ld.so'
10033   ;;
10034
10035 freebsd* | dragonfly*)
10036   # DragonFly does not have aout.  When/if they implement a new
10037   # versioning mechanism, adjust this.
10038   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
10039   version_type=freebsd-$objformat
10040   case $version_type in
10041     freebsd-elf*)
10042       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10043       need_version=no
10044       need_lib_prefix=no
10045       ;;
10046     freebsd-*)
10047       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10048       need_version=yes
10049       ;;
10050   esac
10051   shlibpath_var=LD_LIBRARY_PATH
10052   case $host_os in
10053   freebsd2*)
10054     shlibpath_overrides_runpath=yes
10055     ;;
10056   freebsd3.[01]* | freebsdelf3.[01]*)
10057     shlibpath_overrides_runpath=yes
10058     hardcode_into_libs=yes
10059     ;;
10060   *) # from 3.2 on
10061     shlibpath_overrides_runpath=no
10062     hardcode_into_libs=yes
10063     ;;
10064   esac
10065   ;;
10066
10067 gnu*)
10068   version_type=linux
10069   need_lib_prefix=no
10070   need_version=no
10071   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10072   soname_spec='${libname}${release}${shared_ext}$major'
10073   shlibpath_var=LD_LIBRARY_PATH
10074   hardcode_into_libs=yes
10075   ;;
10076
10077 hpux9* | hpux10* | hpux11*)
10078   # Give a soname corresponding to the major version so that dld.sl refuses to
10079   # link against other versions.
10080   version_type=sunos
10081   need_lib_prefix=no
10082   need_version=no
10083   case "$host_cpu" in
10084   ia64*)
10085     shrext_cmds='.so'
10086     hardcode_into_libs=yes
10087     dynamic_linker="$host_os dld.so"
10088     shlibpath_var=LD_LIBRARY_PATH
10089     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10090     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10091     soname_spec='${libname}${release}${shared_ext}$major'
10092     if test "X$HPUX_IA64_MODE" = X32; then
10093       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10094     else
10095       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10096     fi
10097     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10098     ;;
10099    hppa*64*)
10100      shrext_cmds='.sl'
10101      hardcode_into_libs=yes
10102      dynamic_linker="$host_os dld.sl"
10103      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10104      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10105      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10106      soname_spec='${libname}${release}${shared_ext}$major'
10107      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10108      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10109      ;;
10110    *)
10111     shrext_cmds='.sl'
10112     dynamic_linker="$host_os dld.sl"
10113     shlibpath_var=SHLIB_PATH
10114     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10115     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10116     soname_spec='${libname}${release}${shared_ext}$major'
10117     ;;
10118   esac
10119   # HP-UX runs *really* slowly unless shared libraries are mode 555.
10120   postinstall_cmds='chmod 555 $lib'
10121   ;;
10122
10123 irix5* | irix6* | nonstopux*)
10124   case $host_os in
10125     nonstopux*) version_type=nonstopux ;;
10126     *)
10127         if test "$lt_cv_prog_gnu_ld" = yes; then
10128                 version_type=linux
10129         else
10130                 version_type=irix
10131         fi ;;
10132   esac
10133   need_lib_prefix=no
10134   need_version=no
10135   soname_spec='${libname}${release}${shared_ext}$major'
10136   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10137   case $host_os in
10138   irix5* | nonstopux*)
10139     libsuff= shlibsuff=
10140     ;;
10141   *)
10142     case $LD in # libtool.m4 will add one of these switches to LD
10143     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10144       libsuff= shlibsuff= libmagic=32-bit;;
10145     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10146       libsuff=32 shlibsuff=N32 libmagic=N32;;
10147     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10148       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10149     *) libsuff= shlibsuff= libmagic=never-match;;
10150     esac
10151     ;;
10152   esac
10153   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10154   shlibpath_overrides_runpath=no
10155   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10156   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10157   hardcode_into_libs=yes
10158   ;;
10159
10160 # No shared lib support for Linux oldld, aout, or coff.
10161 linux*oldld* | linux*aout* | linux*coff*)
10162   dynamic_linker=no
10163   ;;
10164
10165 # This must be Linux ELF.
10166 linux*)
10167   version_type=linux
10168   need_lib_prefix=no
10169   need_version=no
10170   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10171   soname_spec='${libname}${release}${shared_ext}$major'
10172   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10173   shlibpath_var=LD_LIBRARY_PATH
10174   shlibpath_overrides_runpath=no
10175   # This implies no fast_install, which is unacceptable.
10176   # Some rework will be needed to allow for fast_install
10177   # before this can be enabled.
10178   hardcode_into_libs=yes
10179
10180   # Append ld.so.conf contents to the search path
10181   if test -f /etc/ld.so.conf; then
10182     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' ' '`
10183     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10184   fi
10185
10186   # We used to test for /lib/ld.so.1 and disable shared libraries on
10187   # powerpc, because MkLinux only supported shared libraries with the
10188   # GNU dynamic linker.  Since this was broken with cross compilers,
10189   # most powerpc-linux boxes support dynamic linking these days and
10190   # people can always --disable-shared, the test was removed, and we
10191   # assume the GNU/Linux dynamic linker is in use.
10192   dynamic_linker='GNU/Linux ld.so'
10193   ;;
10194
10195 knetbsd*-gnu)
10196   version_type=linux
10197   need_lib_prefix=no
10198   need_version=no
10199   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10200   soname_spec='${libname}${release}${shared_ext}$major'
10201   shlibpath_var=LD_LIBRARY_PATH
10202   shlibpath_overrides_runpath=no
10203   hardcode_into_libs=yes
10204   dynamic_linker='GNU ld.so'
10205   ;;
10206
10207 netbsd*)
10208   version_type=sunos
10209   need_lib_prefix=no
10210   need_version=no
10211   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10212     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10213     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10214     dynamic_linker='NetBSD (a.out) ld.so'
10215   else
10216     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10217     soname_spec='${libname}${release}${shared_ext}$major'
10218     dynamic_linker='NetBSD ld.elf_so'
10219   fi
10220   shlibpath_var=LD_LIBRARY_PATH
10221   shlibpath_overrides_runpath=yes
10222   hardcode_into_libs=yes
10223   ;;
10224
10225 newsos6)
10226   version_type=linux
10227   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10228   shlibpath_var=LD_LIBRARY_PATH
10229   shlibpath_overrides_runpath=yes
10230   ;;
10231
10232 nto-qnx*)
10233   version_type=linux
10234   need_lib_prefix=no
10235   need_version=no
10236   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10237   soname_spec='${libname}${release}${shared_ext}$major'
10238   shlibpath_var=LD_LIBRARY_PATH
10239   shlibpath_overrides_runpath=yes
10240   ;;
10241
10242 openbsd*)
10243   version_type=sunos
10244   need_lib_prefix=no
10245   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10246   case $host_os in
10247     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10248     *)                         need_version=no  ;;
10249   esac
10250   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10251   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10252   shlibpath_var=LD_LIBRARY_PATH
10253   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10254     case $host_os in
10255       openbsd2.[89] | openbsd2.[89].*)
10256         shlibpath_overrides_runpath=no
10257         ;;
10258       *)
10259         shlibpath_overrides_runpath=yes
10260         ;;
10261       esac
10262   else
10263     shlibpath_overrides_runpath=yes
10264   fi
10265   ;;
10266
10267 os2*)
10268   libname_spec='$name'
10269   shrext_cmds=".dll"
10270   need_lib_prefix=no
10271   library_names_spec='$libname${shared_ext} $libname.a'
10272   dynamic_linker='OS/2 ld.exe'
10273   shlibpath_var=LIBPATH
10274   ;;
10275
10276 osf3* | osf4* | osf5*)
10277   version_type=osf
10278   need_lib_prefix=no
10279   need_version=no
10280   soname_spec='${libname}${release}${shared_ext}$major'
10281   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10282   shlibpath_var=LD_LIBRARY_PATH
10283   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10284   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10285   ;;
10286
10287 sco3.2v5*)
10288   version_type=osf
10289   soname_spec='${libname}${release}${shared_ext}$major'
10290   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10291   shlibpath_var=LD_LIBRARY_PATH
10292   ;;
10293
10294 solaris*)
10295   version_type=linux
10296   need_lib_prefix=no
10297   need_version=no
10298   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10299   soname_spec='${libname}${release}${shared_ext}$major'
10300   shlibpath_var=LD_LIBRARY_PATH
10301   shlibpath_overrides_runpath=yes
10302   hardcode_into_libs=yes
10303   # ldd complains unless libraries are executable
10304   postinstall_cmds='chmod +x $lib'
10305   ;;
10306
10307 sunos4*)
10308   version_type=sunos
10309   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10310   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10311   shlibpath_var=LD_LIBRARY_PATH
10312   shlibpath_overrides_runpath=yes
10313   if test "$with_gnu_ld" = yes; then
10314     need_lib_prefix=no
10315   fi
10316   need_version=yes
10317   ;;
10318
10319 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10320   version_type=linux
10321   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10322   soname_spec='${libname}${release}${shared_ext}$major'
10323   shlibpath_var=LD_LIBRARY_PATH
10324   case $host_vendor in
10325     sni)
10326       shlibpath_overrides_runpath=no
10327       need_lib_prefix=no
10328       export_dynamic_flag_spec='${wl}-Blargedynsym'
10329       runpath_var=LD_RUN_PATH
10330       ;;
10331     siemens)
10332       need_lib_prefix=no
10333       ;;
10334     motorola)
10335       need_lib_prefix=no
10336       need_version=no
10337       shlibpath_overrides_runpath=no
10338       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10339       ;;
10340   esac
10341   ;;
10342
10343 sysv4*MP*)
10344   if test -d /usr/nec ;then
10345     version_type=linux
10346     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10347     soname_spec='$libname${shared_ext}.$major'
10348     shlibpath_var=LD_LIBRARY_PATH
10349   fi
10350   ;;
10351
10352 uts4*)
10353   version_type=linux
10354   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10355   soname_spec='${libname}${release}${shared_ext}$major'
10356   shlibpath_var=LD_LIBRARY_PATH
10357   ;;
10358
10359 *)
10360   dynamic_linker=no
10361   ;;
10362 esac
10363 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10364 echo "${ECHO_T}$dynamic_linker" >&6
10365 test "$dynamic_linker" = no && can_build_shared=no
10366
10367 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10368 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10369 hardcode_action=
10370 if test -n "$hardcode_libdir_flag_spec" || \
10371    test -n "$runpath_var" || \
10372    test "X$hardcode_automatic" = "Xyes" ; then
10373
10374   # We can hardcode non-existant directories.
10375   if test "$hardcode_direct" != no &&
10376      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10377      # have to relink, otherwise we might link with an installed library
10378      # when we should be linking with a yet-to-be-installed one
10379      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10380      test "$hardcode_minus_L" != no; then
10381     # Linking always hardcodes the temporary library directory.
10382     hardcode_action=relink
10383   else
10384     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10385     hardcode_action=immediate
10386   fi
10387 else
10388   # We cannot hardcode anything, or else we can only hardcode existing
10389   # directories.
10390   hardcode_action=unsupported
10391 fi
10392 echo "$as_me:$LINENO: result: $hardcode_action" >&5
10393 echo "${ECHO_T}$hardcode_action" >&6
10394
10395 if test "$hardcode_action" = relink; then
10396   # Fast installation is not supported
10397   enable_fast_install=no
10398 elif test "$shlibpath_overrides_runpath" = yes ||
10399      test "$enable_shared" = no; then
10400   # Fast installation is not necessary
10401   enable_fast_install=needless
10402 fi
10403
10404 striplib=
10405 old_striplib=
10406 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10407 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10408 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10409   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10410   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10411   echo "$as_me:$LINENO: result: yes" >&5
10412 echo "${ECHO_T}yes" >&6
10413 else
10414 # FIXME - insert some real tests, host_os isn't really good enough
10415   case $host_os in
10416    darwin*)
10417        if test -n "$STRIP" ; then
10418          striplib="$STRIP -x"
10419          echo "$as_me:$LINENO: result: yes" >&5
10420 echo "${ECHO_T}yes" >&6
10421        else
10422   echo "$as_me:$LINENO: result: no" >&5
10423 echo "${ECHO_T}no" >&6
10424 fi
10425        ;;
10426    *)
10427   echo "$as_me:$LINENO: result: no" >&5
10428 echo "${ECHO_T}no" >&6
10429     ;;
10430   esac
10431 fi
10432
10433 if test "x$enable_dlopen" != xyes; then
10434   enable_dlopen=unknown
10435   enable_dlopen_self=unknown
10436   enable_dlopen_self_static=unknown
10437 else
10438   lt_cv_dlopen=no
10439   lt_cv_dlopen_libs=
10440
10441   case $host_os in
10442   beos*)
10443     lt_cv_dlopen="load_add_on"
10444     lt_cv_dlopen_libs=
10445     lt_cv_dlopen_self=yes
10446     ;;
10447
10448   mingw* | pw32*)
10449     lt_cv_dlopen="LoadLibrary"
10450     lt_cv_dlopen_libs=
10451    ;;
10452
10453   cygwin*)
10454     lt_cv_dlopen="dlopen"
10455     lt_cv_dlopen_libs=
10456    ;;
10457
10458   darwin*)
10459   # if libdl is installed we need to link against it
10460     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10461 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10462 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10463   echo $ECHO_N "(cached) $ECHO_C" >&6
10464 else
10465   ac_check_lib_save_LIBS=$LIBS
10466 LIBS="-ldl  $LIBS"
10467 cat >conftest.$ac_ext <<_ACEOF
10468 /* confdefs.h.  */
10469 _ACEOF
10470 cat confdefs.h >>conftest.$ac_ext
10471 cat >>conftest.$ac_ext <<_ACEOF
10472 /* end confdefs.h.  */
10473
10474 /* Override any gcc2 internal prototype to avoid an error.  */
10475 #ifdef __cplusplus
10476 extern "C"
10477 #endif
10478 /* We use char because int might match the return type of a gcc2
10479    builtin and then its argument prototype would still apply.  */
10480 char dlopen ();
10481 int
10482 main ()
10483 {
10484 dlopen ();
10485   ;
10486   return 0;
10487 }
10488 _ACEOF
10489 rm -f conftest.$ac_objext conftest$ac_exeext
10490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10491   (eval $ac_link) 2>conftest.er1
10492   ac_status=$?
10493   grep -v '^ *+' conftest.er1 >conftest.err
10494   rm -f conftest.er1
10495   cat conftest.err >&5
10496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10497   (exit $ac_status); } &&
10498          { ac_try='test -z "$ac_c_werror_flag"
10499                          || test ! -s conftest.err'
10500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10501   (eval $ac_try) 2>&5
10502   ac_status=$?
10503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10504   (exit $ac_status); }; } &&
10505          { ac_try='test -s conftest$ac_exeext'
10506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10507   (eval $ac_try) 2>&5
10508   ac_status=$?
10509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10510   (exit $ac_status); }; }; then
10511   ac_cv_lib_dl_dlopen=yes
10512 else
10513   echo "$as_me: failed program was:" >&5
10514 sed 's/^/| /' conftest.$ac_ext >&5
10515
10516 ac_cv_lib_dl_dlopen=no
10517 fi
10518 rm -f conftest.err conftest.$ac_objext \
10519       conftest$ac_exeext conftest.$ac_ext
10520 LIBS=$ac_check_lib_save_LIBS
10521 fi
10522 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10523 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10524 if test $ac_cv_lib_dl_dlopen = yes; then
10525   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10526 else
10527
10528     lt_cv_dlopen="dyld"
10529     lt_cv_dlopen_libs=
10530     lt_cv_dlopen_self=yes
10531
10532 fi
10533
10534    ;;
10535
10536   *)
10537     echo "$as_me:$LINENO: checking for shl_load" >&5
10538 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10539 if test "${ac_cv_func_shl_load+set}" = set; then
10540   echo $ECHO_N "(cached) $ECHO_C" >&6
10541 else
10542   cat >conftest.$ac_ext <<_ACEOF
10543 /* confdefs.h.  */
10544 _ACEOF
10545 cat confdefs.h >>conftest.$ac_ext
10546 cat >>conftest.$ac_ext <<_ACEOF
10547 /* end confdefs.h.  */
10548 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10549    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10550 #define shl_load innocuous_shl_load
10551
10552 /* System header to define __stub macros and hopefully few prototypes,
10553     which can conflict with char shl_load (); below.
10554     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10555     <limits.h> exists even on freestanding compilers.  */
10556
10557 #ifdef __STDC__
10558 # include <limits.h>
10559 #else
10560 # include <assert.h>
10561 #endif
10562
10563 #undef shl_load
10564
10565 /* Override any gcc2 internal prototype to avoid an error.  */
10566 #ifdef __cplusplus
10567 extern "C"
10568 {
10569 #endif
10570 /* We use char because int might match the return type of a gcc2
10571    builtin and then its argument prototype would still apply.  */
10572 char shl_load ();
10573 /* The GNU C library defines this for functions which it implements
10574     to always fail with ENOSYS.  Some functions are actually named
10575     something starting with __ and the normal name is an alias.  */
10576 #if defined (__stub_shl_load) || defined (__stub___shl_load)
10577 choke me
10578 #else
10579 char (*f) () = shl_load;
10580 #endif
10581 #ifdef __cplusplus
10582 }
10583 #endif
10584
10585 int
10586 main ()
10587 {
10588 return f != shl_load;
10589   ;
10590   return 0;
10591 }
10592 _ACEOF
10593 rm -f conftest.$ac_objext conftest$ac_exeext
10594 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10595   (eval $ac_link) 2>conftest.er1
10596   ac_status=$?
10597   grep -v '^ *+' conftest.er1 >conftest.err
10598   rm -f conftest.er1
10599   cat conftest.err >&5
10600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10601   (exit $ac_status); } &&
10602          { ac_try='test -z "$ac_c_werror_flag"
10603                          || test ! -s conftest.err'
10604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10605   (eval $ac_try) 2>&5
10606   ac_status=$?
10607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10608   (exit $ac_status); }; } &&
10609          { ac_try='test -s conftest$ac_exeext'
10610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10611   (eval $ac_try) 2>&5
10612   ac_status=$?
10613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10614   (exit $ac_status); }; }; then
10615   ac_cv_func_shl_load=yes
10616 else
10617   echo "$as_me: failed program was:" >&5
10618 sed 's/^/| /' conftest.$ac_ext >&5
10619
10620 ac_cv_func_shl_load=no
10621 fi
10622 rm -f conftest.err conftest.$ac_objext \
10623       conftest$ac_exeext conftest.$ac_ext
10624 fi
10625 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10626 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10627 if test $ac_cv_func_shl_load = yes; then
10628   lt_cv_dlopen="shl_load"
10629 else
10630   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10631 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10632 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10633   echo $ECHO_N "(cached) $ECHO_C" >&6
10634 else
10635   ac_check_lib_save_LIBS=$LIBS
10636 LIBS="-ldld  $LIBS"
10637 cat >conftest.$ac_ext <<_ACEOF
10638 /* confdefs.h.  */
10639 _ACEOF
10640 cat confdefs.h >>conftest.$ac_ext
10641 cat >>conftest.$ac_ext <<_ACEOF
10642 /* end confdefs.h.  */
10643
10644 /* Override any gcc2 internal prototype to avoid an error.  */
10645 #ifdef __cplusplus
10646 extern "C"
10647 #endif
10648 /* We use char because int might match the return type of a gcc2
10649    builtin and then its argument prototype would still apply.  */
10650 char shl_load ();
10651 int
10652 main ()
10653 {
10654 shl_load ();
10655   ;
10656   return 0;
10657 }
10658 _ACEOF
10659 rm -f conftest.$ac_objext conftest$ac_exeext
10660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10661   (eval $ac_link) 2>conftest.er1
10662   ac_status=$?
10663   grep -v '^ *+' conftest.er1 >conftest.err
10664   rm -f conftest.er1
10665   cat conftest.err >&5
10666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10667   (exit $ac_status); } &&
10668          { ac_try='test -z "$ac_c_werror_flag"
10669                          || test ! -s conftest.err'
10670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10671   (eval $ac_try) 2>&5
10672   ac_status=$?
10673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10674   (exit $ac_status); }; } &&
10675          { ac_try='test -s conftest$ac_exeext'
10676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10677   (eval $ac_try) 2>&5
10678   ac_status=$?
10679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10680   (exit $ac_status); }; }; then
10681   ac_cv_lib_dld_shl_load=yes
10682 else
10683   echo "$as_me: failed program was:" >&5
10684 sed 's/^/| /' conftest.$ac_ext >&5
10685
10686 ac_cv_lib_dld_shl_load=no
10687 fi
10688 rm -f conftest.err conftest.$ac_objext \
10689       conftest$ac_exeext conftest.$ac_ext
10690 LIBS=$ac_check_lib_save_LIBS
10691 fi
10692 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10693 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10694 if test $ac_cv_lib_dld_shl_load = yes; then
10695   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10696 else
10697   echo "$as_me:$LINENO: checking for dlopen" >&5
10698 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10699 if test "${ac_cv_func_dlopen+set}" = set; then
10700   echo $ECHO_N "(cached) $ECHO_C" >&6
10701 else
10702   cat >conftest.$ac_ext <<_ACEOF
10703 /* confdefs.h.  */
10704 _ACEOF
10705 cat confdefs.h >>conftest.$ac_ext
10706 cat >>conftest.$ac_ext <<_ACEOF
10707 /* end confdefs.h.  */
10708 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10709    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10710 #define dlopen innocuous_dlopen
10711
10712 /* System header to define __stub macros and hopefully few prototypes,
10713     which can conflict with char dlopen (); below.
10714     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10715     <limits.h> exists even on freestanding compilers.  */
10716
10717 #ifdef __STDC__
10718 # include <limits.h>
10719 #else
10720 # include <assert.h>
10721 #endif
10722
10723 #undef dlopen
10724
10725 /* Override any gcc2 internal prototype to avoid an error.  */
10726 #ifdef __cplusplus
10727 extern "C"
10728 {
10729 #endif
10730 /* We use char because int might match the return type of a gcc2
10731    builtin and then its argument prototype would still apply.  */
10732 char dlopen ();
10733 /* The GNU C library defines this for functions which it implements
10734     to always fail with ENOSYS.  Some functions are actually named
10735     something starting with __ and the normal name is an alias.  */
10736 #if defined (__stub_dlopen) || defined (__stub___dlopen)
10737 choke me
10738 #else
10739 char (*f) () = dlopen;
10740 #endif
10741 #ifdef __cplusplus
10742 }
10743 #endif
10744
10745 int
10746 main ()
10747 {
10748 return f != dlopen;
10749   ;
10750   return 0;
10751 }
10752 _ACEOF
10753 rm -f conftest.$ac_objext conftest$ac_exeext
10754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10755   (eval $ac_link) 2>conftest.er1
10756   ac_status=$?
10757   grep -v '^ *+' conftest.er1 >conftest.err
10758   rm -f conftest.er1
10759   cat conftest.err >&5
10760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10761   (exit $ac_status); } &&
10762          { ac_try='test -z "$ac_c_werror_flag"
10763                          || test ! -s conftest.err'
10764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10765   (eval $ac_try) 2>&5
10766   ac_status=$?
10767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10768   (exit $ac_status); }; } &&
10769          { ac_try='test -s conftest$ac_exeext'
10770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10771   (eval $ac_try) 2>&5
10772   ac_status=$?
10773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10774   (exit $ac_status); }; }; then
10775   ac_cv_func_dlopen=yes
10776 else
10777   echo "$as_me: failed program was:" >&5
10778 sed 's/^/| /' conftest.$ac_ext >&5
10779
10780 ac_cv_func_dlopen=no
10781 fi
10782 rm -f conftest.err conftest.$ac_objext \
10783       conftest$ac_exeext conftest.$ac_ext
10784 fi
10785 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10786 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10787 if test $ac_cv_func_dlopen = yes; then
10788   lt_cv_dlopen="dlopen"
10789 else
10790   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10791 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10792 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10793   echo $ECHO_N "(cached) $ECHO_C" >&6
10794 else
10795   ac_check_lib_save_LIBS=$LIBS
10796 LIBS="-ldl  $LIBS"
10797 cat >conftest.$ac_ext <<_ACEOF
10798 /* confdefs.h.  */
10799 _ACEOF
10800 cat confdefs.h >>conftest.$ac_ext
10801 cat >>conftest.$ac_ext <<_ACEOF
10802 /* end confdefs.h.  */
10803
10804 /* Override any gcc2 internal prototype to avoid an error.  */
10805 #ifdef __cplusplus
10806 extern "C"
10807 #endif
10808 /* We use char because int might match the return type of a gcc2
10809    builtin and then its argument prototype would still apply.  */
10810 char dlopen ();
10811 int
10812 main ()
10813 {
10814 dlopen ();
10815   ;
10816   return 0;
10817 }
10818 _ACEOF
10819 rm -f conftest.$ac_objext conftest$ac_exeext
10820 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10821   (eval $ac_link) 2>conftest.er1
10822   ac_status=$?
10823   grep -v '^ *+' conftest.er1 >conftest.err
10824   rm -f conftest.er1
10825   cat conftest.err >&5
10826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10827   (exit $ac_status); } &&
10828          { ac_try='test -z "$ac_c_werror_flag"
10829                          || test ! -s conftest.err'
10830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10831   (eval $ac_try) 2>&5
10832   ac_status=$?
10833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10834   (exit $ac_status); }; } &&
10835          { ac_try='test -s conftest$ac_exeext'
10836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10837   (eval $ac_try) 2>&5
10838   ac_status=$?
10839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10840   (exit $ac_status); }; }; then
10841   ac_cv_lib_dl_dlopen=yes
10842 else
10843   echo "$as_me: failed program was:" >&5
10844 sed 's/^/| /' conftest.$ac_ext >&5
10845
10846 ac_cv_lib_dl_dlopen=no
10847 fi
10848 rm -f conftest.err conftest.$ac_objext \
10849       conftest$ac_exeext conftest.$ac_ext
10850 LIBS=$ac_check_lib_save_LIBS
10851 fi
10852 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10853 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10854 if test $ac_cv_lib_dl_dlopen = yes; then
10855   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10856 else
10857   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10858 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10859 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10860   echo $ECHO_N "(cached) $ECHO_C" >&6
10861 else
10862   ac_check_lib_save_LIBS=$LIBS
10863 LIBS="-lsvld  $LIBS"
10864 cat >conftest.$ac_ext <<_ACEOF
10865 /* confdefs.h.  */
10866 _ACEOF
10867 cat confdefs.h >>conftest.$ac_ext
10868 cat >>conftest.$ac_ext <<_ACEOF
10869 /* end confdefs.h.  */
10870
10871 /* Override any gcc2 internal prototype to avoid an error.  */
10872 #ifdef __cplusplus
10873 extern "C"
10874 #endif
10875 /* We use char because int might match the return type of a gcc2
10876    builtin and then its argument prototype would still apply.  */
10877 char dlopen ();
10878 int
10879 main ()
10880 {
10881 dlopen ();
10882   ;
10883   return 0;
10884 }
10885 _ACEOF
10886 rm -f conftest.$ac_objext conftest$ac_exeext
10887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10888   (eval $ac_link) 2>conftest.er1
10889   ac_status=$?
10890   grep -v '^ *+' conftest.er1 >conftest.err
10891   rm -f conftest.er1
10892   cat conftest.err >&5
10893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10894   (exit $ac_status); } &&
10895          { ac_try='test -z "$ac_c_werror_flag"
10896                          || test ! -s conftest.err'
10897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10898   (eval $ac_try) 2>&5
10899   ac_status=$?
10900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10901   (exit $ac_status); }; } &&
10902          { ac_try='test -s conftest$ac_exeext'
10903   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10904   (eval $ac_try) 2>&5
10905   ac_status=$?
10906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10907   (exit $ac_status); }; }; then
10908   ac_cv_lib_svld_dlopen=yes
10909 else
10910   echo "$as_me: failed program was:" >&5
10911 sed 's/^/| /' conftest.$ac_ext >&5
10912
10913 ac_cv_lib_svld_dlopen=no
10914 fi
10915 rm -f conftest.err conftest.$ac_objext \
10916       conftest$ac_exeext conftest.$ac_ext
10917 LIBS=$ac_check_lib_save_LIBS
10918 fi
10919 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10920 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10921 if test $ac_cv_lib_svld_dlopen = yes; then
10922   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10923 else
10924   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10925 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10926 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10927   echo $ECHO_N "(cached) $ECHO_C" >&6
10928 else
10929   ac_check_lib_save_LIBS=$LIBS
10930 LIBS="-ldld  $LIBS"
10931 cat >conftest.$ac_ext <<_ACEOF
10932 /* confdefs.h.  */
10933 _ACEOF
10934 cat confdefs.h >>conftest.$ac_ext
10935 cat >>conftest.$ac_ext <<_ACEOF
10936 /* end confdefs.h.  */
10937
10938 /* Override any gcc2 internal prototype to avoid an error.  */
10939 #ifdef __cplusplus
10940 extern "C"
10941 #endif
10942 /* We use char because int might match the return type of a gcc2
10943    builtin and then its argument prototype would still apply.  */
10944 char dld_link ();
10945 int
10946 main ()
10947 {
10948 dld_link ();
10949   ;
10950   return 0;
10951 }
10952 _ACEOF
10953 rm -f conftest.$ac_objext conftest$ac_exeext
10954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10955   (eval $ac_link) 2>conftest.er1
10956   ac_status=$?
10957   grep -v '^ *+' conftest.er1 >conftest.err
10958   rm -f conftest.er1
10959   cat conftest.err >&5
10960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10961   (exit $ac_status); } &&
10962          { ac_try='test -z "$ac_c_werror_flag"
10963                          || test ! -s conftest.err'
10964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10965   (eval $ac_try) 2>&5
10966   ac_status=$?
10967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10968   (exit $ac_status); }; } &&
10969          { ac_try='test -s conftest$ac_exeext'
10970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10971   (eval $ac_try) 2>&5
10972   ac_status=$?
10973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10974   (exit $ac_status); }; }; then
10975   ac_cv_lib_dld_dld_link=yes
10976 else
10977   echo "$as_me: failed program was:" >&5
10978 sed 's/^/| /' conftest.$ac_ext >&5
10979
10980 ac_cv_lib_dld_dld_link=no
10981 fi
10982 rm -f conftest.err conftest.$ac_objext \
10983       conftest$ac_exeext conftest.$ac_ext
10984 LIBS=$ac_check_lib_save_LIBS
10985 fi
10986 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10987 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10988 if test $ac_cv_lib_dld_dld_link = yes; then
10989   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10990 fi
10991
10992
10993 fi
10994
10995
10996 fi
10997
10998
10999 fi
11000
11001
11002 fi
11003
11004
11005 fi
11006
11007     ;;
11008   esac
11009
11010   if test "x$lt_cv_dlopen" != xno; then
11011     enable_dlopen=yes
11012   else
11013     enable_dlopen=no
11014   fi
11015
11016   case $lt_cv_dlopen in
11017   dlopen)
11018     save_CPPFLAGS="$CPPFLAGS"
11019     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11020
11021     save_LDFLAGS="$LDFLAGS"
11022     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11023
11024     save_LIBS="$LIBS"
11025     LIBS="$lt_cv_dlopen_libs $LIBS"
11026
11027     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11028 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11029 if test "${lt_cv_dlopen_self+set}" = set; then
11030   echo $ECHO_N "(cached) $ECHO_C" >&6
11031 else
11032           if test "$cross_compiling" = yes; then :
11033   lt_cv_dlopen_self=cross
11034 else
11035   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11036   lt_status=$lt_dlunknown
11037   cat > conftest.$ac_ext <<EOF
11038 #line 11038 "configure"
11039 #include "confdefs.h"
11040
11041 #if HAVE_DLFCN_H
11042 #include <dlfcn.h>
11043 #endif
11044
11045 #include <stdio.h>
11046
11047 #ifdef RTLD_GLOBAL
11048 #  define LT_DLGLOBAL           RTLD_GLOBAL
11049 #else
11050 #  ifdef DL_GLOBAL
11051 #    define LT_DLGLOBAL         DL_GLOBAL
11052 #  else
11053 #    define LT_DLGLOBAL         0
11054 #  endif
11055 #endif
11056
11057 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11058    find out it does not work in some platform. */
11059 #ifndef LT_DLLAZY_OR_NOW
11060 #  ifdef RTLD_LAZY
11061 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11062 #  else
11063 #    ifdef DL_LAZY
11064 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11065 #    else
11066 #      ifdef RTLD_NOW
11067 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11068 #      else
11069 #        ifdef DL_NOW
11070 #          define LT_DLLAZY_OR_NOW      DL_NOW
11071 #        else
11072 #          define LT_DLLAZY_OR_NOW      0
11073 #        endif
11074 #      endif
11075 #    endif
11076 #  endif
11077 #endif
11078
11079 #ifdef __cplusplus
11080 extern "C" void exit (int);
11081 #endif
11082
11083 void fnord() { int i=42;}
11084 int main ()
11085 {
11086   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11087   int status = $lt_dlunknown;
11088
11089   if (self)
11090     {
11091       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11092       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11093       /* dlclose (self); */
11094     }
11095
11096     exit (status);
11097 }
11098 EOF
11099   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11100   (eval $ac_link) 2>&5
11101   ac_status=$?
11102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11103   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11104     (./conftest; exit; ) 2>/dev/null
11105     lt_status=$?
11106     case x$lt_status in
11107       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11108       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11109       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
11110     esac
11111   else :
11112     # compilation failed
11113     lt_cv_dlopen_self=no
11114   fi
11115 fi
11116 rm -fr conftest*
11117
11118
11119 fi
11120 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11121 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11122
11123     if test "x$lt_cv_dlopen_self" = xyes; then
11124       LDFLAGS="$LDFLAGS $link_static_flag"
11125       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11126 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11127 if test "${lt_cv_dlopen_self_static+set}" = set; then
11128   echo $ECHO_N "(cached) $ECHO_C" >&6
11129 else
11130           if test "$cross_compiling" = yes; then :
11131   lt_cv_dlopen_self_static=cross
11132 else
11133   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11134   lt_status=$lt_dlunknown
11135   cat > conftest.$ac_ext <<EOF
11136 #line 11136 "configure"
11137 #include "confdefs.h"
11138
11139 #if HAVE_DLFCN_H
11140 #include <dlfcn.h>
11141 #endif
11142
11143 #include <stdio.h>
11144
11145 #ifdef RTLD_GLOBAL
11146 #  define LT_DLGLOBAL           RTLD_GLOBAL
11147 #else
11148 #  ifdef DL_GLOBAL
11149 #    define LT_DLGLOBAL         DL_GLOBAL
11150 #  else
11151 #    define LT_DLGLOBAL         0
11152 #  endif
11153 #endif
11154
11155 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11156    find out it does not work in some platform. */
11157 #ifndef LT_DLLAZY_OR_NOW
11158 #  ifdef RTLD_LAZY
11159 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11160 #  else
11161 #    ifdef DL_LAZY
11162 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11163 #    else
11164 #      ifdef RTLD_NOW
11165 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11166 #      else
11167 #        ifdef DL_NOW
11168 #          define LT_DLLAZY_OR_NOW      DL_NOW
11169 #        else
11170 #          define LT_DLLAZY_OR_NOW      0
11171 #        endif
11172 #      endif
11173 #    endif
11174 #  endif
11175 #endif
11176
11177 #ifdef __cplusplus
11178 extern "C" void exit (int);
11179 #endif
11180
11181 void fnord() { int i=42;}
11182 int main ()
11183 {
11184   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11185   int status = $lt_dlunknown;
11186
11187   if (self)
11188     {
11189       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11190       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11191       /* dlclose (self); */
11192     }
11193
11194     exit (status);
11195 }
11196 EOF
11197   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11198   (eval $ac_link) 2>&5
11199   ac_status=$?
11200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11201   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11202     (./conftest; exit; ) 2>/dev/null
11203     lt_status=$?
11204     case x$lt_status in
11205       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11206       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11207       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
11208     esac
11209   else :
11210     # compilation failed
11211     lt_cv_dlopen_self_static=no
11212   fi
11213 fi
11214 rm -fr conftest*
11215
11216
11217 fi
11218 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11219 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11220     fi
11221
11222     CPPFLAGS="$save_CPPFLAGS"
11223     LDFLAGS="$save_LDFLAGS"
11224     LIBS="$save_LIBS"
11225     ;;
11226   esac
11227
11228   case $lt_cv_dlopen_self in
11229   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11230   *) enable_dlopen_self=unknown ;;
11231   esac
11232
11233   case $lt_cv_dlopen_self_static in
11234   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11235   *) enable_dlopen_self_static=unknown ;;
11236   esac
11237 fi
11238
11239
11240 # Report which librarie types wil actually be built
11241 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11242 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
11243 echo "$as_me:$LINENO: result: $can_build_shared" >&5
11244 echo "${ECHO_T}$can_build_shared" >&6
11245
11246 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11247 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
11248 test "$can_build_shared" = "no" && enable_shared=no
11249
11250 # On AIX, shared libraries and static libraries use the same namespace, and
11251 # are all built from PIC.
11252 case "$host_os" in
11253 aix3*)
11254   test "$enable_shared" = yes && enable_static=no
11255   if test -n "$RANLIB"; then
11256     archive_cmds="$archive_cmds~\$RANLIB \$lib"
11257     postinstall_cmds='$RANLIB $lib'
11258   fi
11259   ;;
11260
11261 aix4* | aix5*)
11262   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11263     test "$enable_shared" = yes && enable_static=no
11264   fi
11265     ;;
11266 esac
11267 echo "$as_me:$LINENO: result: $enable_shared" >&5
11268 echo "${ECHO_T}$enable_shared" >&6
11269
11270 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11271 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
11272 # Make sure either enable_shared or enable_static is yes.
11273 test "$enable_shared" = yes || enable_static=yes
11274 echo "$as_me:$LINENO: result: $enable_static" >&5
11275 echo "${ECHO_T}$enable_static" >&6
11276
11277 # The else clause should only fire when bootstrapping the
11278 # libtool distribution, otherwise you forgot to ship ltmain.sh
11279 # with your package, and you will get complaints that there are
11280 # no rules to generate ltmain.sh.
11281 if test -f "$ltmain"; then
11282   # See if we are running on zsh, and set the options which allow our commands through
11283   # without removal of \ escapes.
11284   if test -n "${ZSH_VERSION+set}" ; then
11285     setopt NO_GLOB_SUBST
11286   fi
11287   # Now quote all the things that may contain metacharacters while being
11288   # careful not to overquote the AC_SUBSTed values.  We take copies of the
11289   # variables and quote the copies for generation of the libtool script.
11290   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11291     SED SHELL STRIP \
11292     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11293     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11294     deplibs_check_method reload_flag reload_cmds need_locks \
11295     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11296     lt_cv_sys_global_symbol_to_c_name_address \
11297     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11298     old_postinstall_cmds old_postuninstall_cmds \
11299     compiler \
11300     CC \
11301     LD \
11302     lt_prog_compiler_wl \
11303     lt_prog_compiler_pic \
11304     lt_prog_compiler_static \
11305     lt_prog_compiler_no_builtin_flag \
11306     export_dynamic_flag_spec \
11307     thread_safe_flag_spec \
11308     whole_archive_flag_spec \
11309     enable_shared_with_static_runtimes \
11310     old_archive_cmds \
11311     old_archive_from_new_cmds \
11312     predep_objects \
11313     postdep_objects \
11314     predeps \
11315     postdeps \
11316     compiler_lib_search_path \
11317     archive_cmds \
11318     archive_expsym_cmds \
11319     postinstall_cmds \
11320     postuninstall_cmds \
11321     old_archive_from_expsyms_cmds \
11322     allow_undefined_flag \
11323     no_undefined_flag \
11324     export_symbols_cmds \
11325     hardcode_libdir_flag_spec \
11326     hardcode_libdir_flag_spec_ld \
11327     hardcode_libdir_separator \
11328     hardcode_automatic \
11329     module_cmds \
11330     module_expsym_cmds \
11331     lt_cv_prog_compiler_c_o \
11332     exclude_expsyms \
11333     include_expsyms; do
11334
11335     case $var in
11336     old_archive_cmds | \
11337     old_archive_from_new_cmds | \
11338     archive_cmds | \
11339     archive_expsym_cmds | \
11340     module_cmds | \
11341     module_expsym_cmds | \
11342     old_archive_from_expsyms_cmds | \
11343     export_symbols_cmds | \
11344     extract_expsyms_cmds | reload_cmds | finish_cmds | \
11345     postinstall_cmds | postuninstall_cmds | \
11346     old_postinstall_cmds | old_postuninstall_cmds | \
11347     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11348       # Double-quote double-evaled strings.
11349       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11350       ;;
11351     *)
11352       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11353       ;;
11354     esac
11355   done
11356
11357   case $lt_echo in
11358   *'\$0 --fallback-echo"')
11359     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11360     ;;
11361   esac
11362
11363 cfgfile="${ofile}T"
11364   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11365   $rm -f "$cfgfile"
11366   { echo "$as_me:$LINENO: creating $ofile" >&5
11367 echo "$as_me: creating $ofile" >&6;}
11368
11369   cat <<__EOF__ >> "$cfgfile"
11370 #! $SHELL
11371
11372 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11373 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11374 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11375 #
11376 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
11377 # Free Software Foundation, Inc.
11378 #
11379 # This file is part of GNU Libtool:
11380 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11381 #
11382 # This program is free software; you can redistribute it and/or modify
11383 # it under the terms of the GNU General Public License as published by
11384 # the Free Software Foundation; either version 2 of the License, or
11385 # (at your option) any later version.
11386 #
11387 # This program is distributed in the hope that it will be useful, but
11388 # WITHOUT ANY WARRANTY; without even the implied warranty of
11389 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11390 # General Public License for more details.
11391 #
11392 # You should have received a copy of the GNU General Public License
11393 # along with this program; if not, write to the Free Software
11394 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11395 #
11396 # As a special exception to the GNU General Public License, if you
11397 # distribute this file as part of a program that contains a
11398 # configuration script generated by Autoconf, you may include it under
11399 # the same distribution terms that you use for the rest of that program.
11400
11401 # A sed program that does not truncate output.
11402 SED=$lt_SED
11403
11404 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11405 Xsed="$SED -e 1s/^X//"
11406
11407 # The HP-UX ksh and POSIX shell print the target directory to stdout
11408 # if CDPATH is set.
11409 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11410
11411 # The names of the tagged configurations supported by this script.
11412 available_tags=
11413
11414 # ### BEGIN LIBTOOL CONFIG
11415
11416 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11417
11418 # Shell to use when invoking shell scripts.
11419 SHELL=$lt_SHELL
11420
11421 # Whether or not to build shared libraries.
11422 build_libtool_libs=$enable_shared
11423
11424 # Whether or not to build static libraries.
11425 build_old_libs=$enable_static
11426
11427 # Whether or not to add -lc for building shared libraries.
11428 build_libtool_need_lc=$archive_cmds_need_lc
11429
11430 # Whether or not to disallow shared libs when runtime libs are static
11431 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11432
11433 # Whether or not to optimize for fast installation.
11434 fast_install=$enable_fast_install
11435
11436 # The host system.
11437 host_alias=$host_alias
11438 host=$host
11439 host_os=$host_os
11440
11441 # The build system.
11442 build_alias=$build_alias
11443 build=$build
11444 build_os=$build_os
11445
11446 # An echo program that does not interpret backslashes.
11447 echo=$lt_echo
11448
11449 # The archiver.
11450 AR=$lt_AR
11451 AR_FLAGS=$lt_AR_FLAGS
11452
11453 # A C compiler.
11454 LTCC=$lt_LTCC
11455
11456 # A language-specific compiler.
11457 CC=$lt_compiler
11458
11459 # Is the compiler the GNU C compiler?
11460 with_gcc=$GCC
11461
11462 # An ERE matcher.
11463 EGREP=$lt_EGREP
11464
11465 # The linker used to build libraries.
11466 LD=$lt_LD
11467
11468 # Whether we need hard or soft links.
11469 LN_S=$lt_LN_S
11470
11471 # A BSD-compatible nm program.
11472 NM=$lt_NM
11473
11474 # A symbol stripping program
11475 STRIP=$lt_STRIP
11476
11477 # Used to examine libraries when file_magic_cmd begins "file"
11478 MAGIC_CMD=$MAGIC_CMD
11479
11480 # Used on cygwin: DLL creation program.
11481 DLLTOOL="$DLLTOOL"
11482
11483 # Used on cygwin: object dumper.
11484 OBJDUMP="$OBJDUMP"
11485
11486 # Used on cygwin: assembler.
11487 AS="$AS"
11488
11489 # The name of the directory that contains temporary libtool files.
11490 objdir=$objdir
11491
11492 # How to create reloadable object files.
11493 reload_flag=$lt_reload_flag
11494 reload_cmds=$lt_reload_cmds
11495
11496 # How to pass a linker flag through the compiler.
11497 wl=$lt_lt_prog_compiler_wl
11498
11499 # Object file suffix (normally "o").
11500 objext="$ac_objext"
11501
11502 # Old archive suffix (normally "a").
11503 libext="$libext"
11504
11505 # Shared library suffix (normally ".so").
11506 shrext_cmds='$shrext_cmds'
11507
11508 # Executable file suffix (normally "").
11509 exeext="$exeext"
11510
11511 # Additional compiler flags for building library objects.
11512 pic_flag=$lt_lt_prog_compiler_pic
11513 pic_mode=$pic_mode
11514
11515 # What is the maximum length of a command?
11516 max_cmd_len=$lt_cv_sys_max_cmd_len
11517
11518 # Does compiler simultaneously support -c and -o options?
11519 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11520
11521 # Must we lock files when doing compilation?
11522 need_locks=$lt_need_locks
11523
11524 # Do we need the lib prefix for modules?
11525 need_lib_prefix=$need_lib_prefix
11526
11527 # Do we need a version for libraries?
11528 need_version=$need_version
11529
11530 # Whether dlopen is supported.
11531 dlopen_support=$enable_dlopen
11532
11533 # Whether dlopen of programs is supported.
11534 dlopen_self=$enable_dlopen_self
11535
11536 # Whether dlopen of statically linked programs is supported.
11537 dlopen_self_static=$enable_dlopen_self_static
11538
11539 # Compiler flag to prevent dynamic linking.
11540 link_static_flag=$lt_lt_prog_compiler_static
11541
11542 # Compiler flag to turn off builtin functions.
11543 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11544
11545 # Compiler flag to allow reflexive dlopens.
11546 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11547
11548 # Compiler flag to generate shared objects directly from archives.
11549 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11550
11551 # Compiler flag to generate thread-safe objects.
11552 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11553
11554 # Library versioning type.
11555 version_type=$version_type
11556
11557 # Format of library name prefix.
11558 libname_spec=$lt_libname_spec
11559
11560 # List of archive names.  First name is the real one, the rest are links.
11561 # The last name is the one that the linker finds with -lNAME.
11562 library_names_spec=$lt_library_names_spec
11563
11564 # The coded name of the library, if different from the real name.
11565 soname_spec=$lt_soname_spec
11566
11567 # Commands used to build and install an old-style archive.
11568 RANLIB=$lt_RANLIB
11569 old_archive_cmds=$lt_old_archive_cmds
11570 old_postinstall_cmds=$lt_old_postinstall_cmds
11571 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11572
11573 # Create an old-style archive from a shared archive.
11574 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11575
11576 # Create a temporary old-style archive to link instead of a shared archive.
11577 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11578
11579 # Commands used to build and install a shared archive.
11580 archive_cmds=$lt_archive_cmds
11581 archive_expsym_cmds=$lt_archive_expsym_cmds
11582 postinstall_cmds=$lt_postinstall_cmds
11583 postuninstall_cmds=$lt_postuninstall_cmds
11584
11585 # Commands used to build a loadable module (assumed same as above if empty)
11586 module_cmds=$lt_module_cmds
11587 module_expsym_cmds=$lt_module_expsym_cmds
11588
11589 # Commands to strip libraries.
11590 old_striplib=$lt_old_striplib
11591 striplib=$lt_striplib
11592
11593 # Dependencies to place before the objects being linked to create a
11594 # shared library.
11595 predep_objects=$lt_predep_objects
11596
11597 # Dependencies to place after the objects being linked to create a
11598 # shared library.
11599 postdep_objects=$lt_postdep_objects
11600
11601 # Dependencies to place before the objects being linked to create a
11602 # shared library.
11603 predeps=$lt_predeps
11604
11605 # Dependencies to place after the objects being linked to create a
11606 # shared library.
11607 postdeps=$lt_postdeps
11608
11609 # The library search path used internally by the compiler when linking
11610 # a shared library.
11611 compiler_lib_search_path=$lt_compiler_lib_search_path
11612
11613 # Method to check whether dependent libraries are shared objects.
11614 deplibs_check_method=$lt_deplibs_check_method
11615
11616 # Command to use when deplibs_check_method == file_magic.
11617 file_magic_cmd=$lt_file_magic_cmd
11618
11619 # Flag that allows shared libraries with undefined symbols to be built.
11620 allow_undefined_flag=$lt_allow_undefined_flag
11621
11622 # Flag that forces no undefined symbols.
11623 no_undefined_flag=$lt_no_undefined_flag
11624
11625 # Commands used to finish a libtool library installation in a directory.
11626 finish_cmds=$lt_finish_cmds
11627
11628 # Same as above, but a single script fragment to be evaled but not shown.
11629 finish_eval=$lt_finish_eval
11630
11631 # Take the output of nm and produce a listing of raw symbols and C names.
11632 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11633
11634 # Transform the output of nm in a proper C declaration
11635 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11636
11637 # Transform the output of nm in a C name address pair
11638 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11639
11640 # This is the shared library runtime path variable.
11641 runpath_var=$runpath_var
11642
11643 # This is the shared library path variable.
11644 shlibpath_var=$shlibpath_var
11645
11646 # Is shlibpath searched before the hard-coded library search path?
11647 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11648
11649 # How to hardcode a shared library path into an executable.
11650 hardcode_action=$hardcode_action
11651
11652 # Whether we should hardcode library paths into libraries.
11653 hardcode_into_libs=$hardcode_into_libs
11654
11655 # Flag to hardcode \$libdir into a binary during linking.
11656 # This must work even if \$libdir does not exist.
11657 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11658
11659 # If ld is used when linking, flag to hardcode \$libdir into
11660 # a binary during linking. This must work even if \$libdir does
11661 # not exist.
11662 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11663
11664 # Whether we need a single -rpath flag with a separated argument.
11665 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11666
11667 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11668 # resulting binary.
11669 hardcode_direct=$hardcode_direct
11670
11671 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11672 # resulting binary.
11673 hardcode_minus_L=$hardcode_minus_L
11674
11675 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11676 # the resulting binary.
11677 hardcode_shlibpath_var=$hardcode_shlibpath_var
11678
11679 # Set to yes if building a shared library automatically hardcodes DIR into the library
11680 # and all subsequent libraries and executables linked against it.
11681 hardcode_automatic=$hardcode_automatic
11682
11683 # Variables whose values should be saved in libtool wrapper scripts and
11684 # restored at relink time.
11685 variables_saved_for_relink="$variables_saved_for_relink"
11686
11687 # Whether libtool must link a program against all its dependency libraries.
11688 link_all_deplibs=$link_all_deplibs
11689
11690 # Compile-time system search path for libraries
11691 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11692
11693 # Run-time system search path for libraries
11694 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11695
11696 # Fix the shell variable \$srcfile for the compiler.
11697 fix_srcfile_path="$fix_srcfile_path"
11698
11699 # Set to yes if exported symbols are required.
11700 always_export_symbols=$always_export_symbols
11701
11702 # The commands to list exported symbols.
11703 export_symbols_cmds=$lt_export_symbols_cmds
11704
11705 # The commands to extract the exported symbol list from a shared archive.
11706 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11707
11708 # Symbols that should not be listed in the preloaded symbols.
11709 exclude_expsyms=$lt_exclude_expsyms
11710
11711 # Symbols that must always be exported.
11712 include_expsyms=$lt_include_expsyms
11713
11714 # ### END LIBTOOL CONFIG
11715
11716 __EOF__
11717
11718
11719   case $host_os in
11720   aix3*)
11721     cat <<\EOF >> "$cfgfile"
11722
11723 # AIX sometimes has problems with the GCC collect2 program.  For some
11724 # reason, if we set the COLLECT_NAMES environment variable, the problems
11725 # vanish in a puff of smoke.
11726 if test "X${COLLECT_NAMES+set}" != Xset; then
11727   COLLECT_NAMES=
11728   export COLLECT_NAMES
11729 fi
11730 EOF
11731     ;;
11732   esac
11733
11734   # We use sed instead of cat because bash on DJGPP gets confused if
11735   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
11736   # text mode, it properly converts lines to CR/LF.  This bash problem
11737   # is reportedly fixed, but why not run on old versions too?
11738   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11739
11740   mv -f "$cfgfile" "$ofile" || \
11741     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11742   chmod +x "$ofile"
11743
11744 else
11745   # If there is no Makefile yet, we rely on a make rule to execute
11746   # `config.status --recheck' to rerun these tests and create the
11747   # libtool script then.
11748   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11749   if test -f "$ltmain_in"; then
11750     test -f Makefile && make "$ltmain"
11751   fi
11752 fi
11753
11754
11755 ac_ext=c
11756 ac_cpp='$CPP $CPPFLAGS'
11757 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11758 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11759 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11760
11761 CC="$lt_save_CC"
11762
11763
11764 # Check whether --with-tags or --without-tags was given.
11765 if test "${with_tags+set}" = set; then
11766   withval="$with_tags"
11767   tagnames="$withval"
11768 fi;
11769
11770 if test -f "$ltmain" && test -n "$tagnames"; then
11771   if test ! -f "${ofile}"; then
11772     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11773 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11774   fi
11775
11776   if test -z "$LTCC"; then
11777     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11778     if test -z "$LTCC"; then
11779       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11780 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11781     else
11782       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11783 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11784     fi
11785   fi
11786
11787   # Extract list of available tagged configurations in $ofile.
11788   # Note that this assumes the entire list is on one line.
11789   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11790
11791   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11792   for tagname in $tagnames; do
11793     IFS="$lt_save_ifs"
11794     # Check whether tagname contains only valid characters
11795     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11796     "") ;;
11797     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11798 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11799    { (exit 1); exit 1; }; }
11800         ;;
11801     esac
11802
11803     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11804     then
11805       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11806 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11807    { (exit 1); exit 1; }; }
11808     fi
11809
11810     # Update the list of available tags.
11811     if test -n "$tagname"; then
11812       echo appending configuration tag \"$tagname\" to $ofile
11813
11814       case $tagname in
11815       CXX)
11816         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11817             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11818             (test "X$CXX" != "Xg++"))) ; then
11819           ac_ext=cc
11820 ac_cpp='$CXXCPP $CPPFLAGS'
11821 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11822 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11823 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11824
11825
11826
11827
11828 archive_cmds_need_lc_CXX=no
11829 allow_undefined_flag_CXX=
11830 always_export_symbols_CXX=no
11831 archive_expsym_cmds_CXX=
11832 export_dynamic_flag_spec_CXX=
11833 hardcode_direct_CXX=no
11834 hardcode_libdir_flag_spec_CXX=
11835 hardcode_libdir_flag_spec_ld_CXX=
11836 hardcode_libdir_separator_CXX=
11837 hardcode_minus_L_CXX=no
11838 hardcode_automatic_CXX=no
11839 module_cmds_CXX=
11840 module_expsym_cmds_CXX=
11841 link_all_deplibs_CXX=unknown
11842 old_archive_cmds_CXX=$old_archive_cmds
11843 no_undefined_flag_CXX=
11844 whole_archive_flag_spec_CXX=
11845 enable_shared_with_static_runtimes_CXX=no
11846
11847 # Dependencies to place before and after the object being linked:
11848 predep_objects_CXX=
11849 postdep_objects_CXX=
11850 predeps_CXX=
11851 postdeps_CXX=
11852 compiler_lib_search_path_CXX=
11853
11854 # Source file extension for C++ test sources.
11855 ac_ext=cc
11856
11857 # Object file extension for compiled C++ test sources.
11858 objext=o
11859 objext_CXX=$objext
11860
11861 # Code to be used in simple compile tests
11862 lt_simple_compile_test_code="int some_variable = 0;\n"
11863
11864 # Code to be used in simple link tests
11865 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
11866
11867 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11868
11869 # If no C compiler was specified, use CC.
11870 LTCC=${LTCC-"$CC"}
11871
11872 # Allow CC to be a program name with arguments.
11873 compiler=$CC
11874
11875
11876 # save warnings/boilerplate of simple test code
11877 ac_outfile=conftest.$ac_objext
11878 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11879 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11880 _lt_compiler_boilerplate=`cat conftest.err`
11881 $rm conftest*
11882
11883 ac_outfile=conftest.$ac_objext
11884 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11885 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11886 _lt_linker_boilerplate=`cat conftest.err`
11887 $rm conftest*
11888
11889
11890 # Allow CC to be a program name with arguments.
11891 lt_save_CC=$CC
11892 lt_save_LD=$LD
11893 lt_save_GCC=$GCC
11894 GCC=$GXX
11895 lt_save_with_gnu_ld=$with_gnu_ld
11896 lt_save_path_LD=$lt_cv_path_LD
11897 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11898   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11899 else
11900   unset lt_cv_prog_gnu_ld
11901 fi
11902 if test -n "${lt_cv_path_LDCXX+set}"; then
11903   lt_cv_path_LD=$lt_cv_path_LDCXX
11904 else
11905   unset lt_cv_path_LD
11906 fi
11907 test -z "${LDCXX+set}" || LD=$LDCXX
11908 CC=${CXX-"c++"}
11909 compiler=$CC
11910 compiler_CXX=$CC
11911 for cc_temp in $compiler""; do
11912   case $cc_temp in
11913     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11914     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11915     \-*) ;;
11916     *) break;;
11917   esac
11918 done
11919 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11920
11921
11922 # We don't want -fno-exception wen compiling C++ code, so set the
11923 # no_builtin_flag separately
11924 if test "$GXX" = yes; then
11925   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11926 else
11927   lt_prog_compiler_no_builtin_flag_CXX=
11928 fi
11929
11930 if test "$GXX" = yes; then
11931   # Set up default GNU C++ configuration
11932
11933
11934 # Check whether --with-gnu-ld or --without-gnu-ld was given.
11935 if test "${with_gnu_ld+set}" = set; then
11936   withval="$with_gnu_ld"
11937   test "$withval" = no || with_gnu_ld=yes
11938 else
11939   with_gnu_ld=no
11940 fi;
11941 ac_prog=ld
11942 if test "$GCC" = yes; then
11943   # Check if gcc -print-prog-name=ld gives a path.
11944   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11945 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
11946   case $host in
11947   *-*-mingw*)
11948     # gcc leaves a trailing carriage return which upsets mingw
11949     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11950   *)
11951     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11952   esac
11953   case $ac_prog in
11954     # Accept absolute paths.
11955     [\\/]* | ?:[\\/]*)
11956       re_direlt='/[^/][^/]*/\.\./'
11957       # Canonicalize the pathname of ld
11958       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11959       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11960         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11961       done
11962       test -z "$LD" && LD="$ac_prog"
11963       ;;
11964   "")
11965     # If it fails, then pretend we aren't using GCC.
11966     ac_prog=ld
11967     ;;
11968   *)
11969     # If it is relative, then search for the first ld in PATH.
11970     with_gnu_ld=unknown
11971     ;;
11972   esac
11973 elif test "$with_gnu_ld" = yes; then
11974   echo "$as_me:$LINENO: checking for GNU ld" >&5
11975 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
11976 else
11977   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11978 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
11979 fi
11980 if test "${lt_cv_path_LD+set}" = set; then
11981   echo $ECHO_N "(cached) $ECHO_C" >&6
11982 else
11983   if test -z "$LD"; then
11984   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11985   for ac_dir in $PATH; do
11986     IFS="$lt_save_ifs"
11987     test -z "$ac_dir" && ac_dir=.
11988     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11989       lt_cv_path_LD="$ac_dir/$ac_prog"
11990       # Check to see if the program is GNU ld.  I'd rather use --version,
11991       # but apparently some GNU ld's only accept -v.
11992       # Break only if it was the GNU/non-GNU ld that we prefer.
11993       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11994       *GNU* | *'with BFD'*)
11995         test "$with_gnu_ld" != no && break
11996         ;;
11997       *)
11998         test "$with_gnu_ld" != yes && break
11999         ;;
12000       esac
12001     fi
12002   done
12003   IFS="$lt_save_ifs"
12004 else
12005   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12006 fi
12007 fi
12008
12009 LD="$lt_cv_path_LD"
12010 if test -n "$LD"; then
12011   echo "$as_me:$LINENO: result: $LD" >&5
12012 echo "${ECHO_T}$LD" >&6
12013 else
12014   echo "$as_me:$LINENO: result: no" >&5
12015 echo "${ECHO_T}no" >&6
12016 fi
12017 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12018 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12019    { (exit 1); exit 1; }; }
12020 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12021 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
12022 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12023   echo $ECHO_N "(cached) $ECHO_C" >&6
12024 else
12025   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
12026 case `$LD -v 2>&1 </dev/null` in
12027 *GNU* | *'with BFD'*)
12028   lt_cv_prog_gnu_ld=yes
12029   ;;
12030 *)
12031   lt_cv_prog_gnu_ld=no
12032   ;;
12033 esac
12034 fi
12035 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12036 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
12037 with_gnu_ld=$lt_cv_prog_gnu_ld
12038
12039
12040
12041   # Check if GNU C++ uses GNU ld as the underlying linker, since the
12042   # archiving commands below assume that GNU ld is being used.
12043   if test "$with_gnu_ld" = yes; then
12044     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12045     archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12046
12047     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12048     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12049
12050     # If archive_cmds runs LD, not CC, wlarc should be empty
12051     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12052     #     investigate it a little bit more. (MM)
12053     wlarc='${wl}'
12054
12055     # ancient GNU ld didn't support --whole-archive et. al.
12056     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
12057         grep 'no-whole-archive' > /dev/null; then
12058       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12059     else
12060       whole_archive_flag_spec_CXX=
12061     fi
12062   else
12063     with_gnu_ld=no
12064     wlarc=
12065
12066     # A generic and very simple default shared library creation
12067     # command for GNU C++ for the case where it uses the native
12068     # linker, instead of GNU ld.  If possible, this setting should
12069     # overridden to take advantage of the native linker features on
12070     # the platform it is being used on.
12071     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12072   fi
12073
12074   # Commands to make compiler produce verbose output that lists
12075   # what "hidden" libraries, object files and flags are used when
12076   # linking a shared library.
12077   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12078
12079 else
12080   GXX=no
12081   with_gnu_ld=no
12082   wlarc=
12083 fi
12084
12085 # PORTME: fill in a description of your system's C++ link characteristics
12086 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12087 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12088 ld_shlibs_CXX=yes
12089 case $host_os in
12090   aix3*)
12091     # FIXME: insert proper C++ library support
12092     ld_shlibs_CXX=no
12093     ;;
12094   aix4* | aix5*)
12095     if test "$host_cpu" = ia64; then
12096       # On IA64, the linker does run time linking by default, so we don't
12097       # have to do anything special.
12098       aix_use_runtimelinking=no
12099       exp_sym_flag='-Bexport'
12100       no_entry_flag=""
12101     else
12102       aix_use_runtimelinking=no
12103
12104       # Test if we are trying to use run time linking or normal
12105       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12106       # need to do runtime linking.
12107       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12108         for ld_flag in $LDFLAGS; do
12109           case $ld_flag in
12110           *-brtl*)
12111             aix_use_runtimelinking=yes
12112             break
12113             ;;
12114           esac
12115         done
12116       esac
12117
12118       exp_sym_flag='-bexport'
12119       no_entry_flag='-bnoentry'
12120     fi
12121
12122     # When large executables or shared objects are built, AIX ld can
12123     # have problems creating the table of contents.  If linking a library
12124     # or program results in "error TOC overflow" add -mminimal-toc to
12125     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12126     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12127
12128     archive_cmds_CXX=''
12129     hardcode_direct_CXX=yes
12130     hardcode_libdir_separator_CXX=':'
12131     link_all_deplibs_CXX=yes
12132
12133     if test "$GXX" = yes; then
12134       case $host_os in aix4.[012]|aix4.[012].*)
12135       # We only want to do this on AIX 4.2 and lower, the check
12136       # below for broken collect2 doesn't work under 4.3+
12137         collect2name=`${CC} -print-prog-name=collect2`
12138         if test -f "$collect2name" && \
12139            strings "$collect2name" | grep resolve_lib_name >/dev/null
12140         then
12141           # We have reworked collect2
12142           hardcode_direct_CXX=yes
12143         else
12144           # We have old collect2
12145           hardcode_direct_CXX=unsupported
12146           # It fails to find uninstalled libraries when the uninstalled
12147           # path is not listed in the libpath.  Setting hardcode_minus_L
12148           # to unsupported forces relinking
12149           hardcode_minus_L_CXX=yes
12150           hardcode_libdir_flag_spec_CXX='-L$libdir'
12151           hardcode_libdir_separator_CXX=
12152         fi
12153       esac
12154       shared_flag='-shared'
12155       if test "$aix_use_runtimelinking" = yes; then
12156         shared_flag="$shared_flag "'${wl}-G'
12157       fi
12158     else
12159       # not using gcc
12160       if test "$host_cpu" = ia64; then
12161         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12162         # chokes on -Wl,-G. The following line is correct:
12163         shared_flag='-G'
12164       else
12165         if test "$aix_use_runtimelinking" = yes; then
12166           shared_flag='${wl}-G'
12167         else
12168           shared_flag='${wl}-bM:SRE'
12169         fi
12170       fi
12171     fi
12172
12173     # It seems that -bexpall does not export symbols beginning with
12174     # underscore (_), so it is better to generate a list of symbols to export.
12175     always_export_symbols_CXX=yes
12176     if test "$aix_use_runtimelinking" = yes; then
12177       # Warning - without using the other runtime loading flags (-brtl),
12178       # -berok will link without error, but may produce a broken library.
12179       allow_undefined_flag_CXX='-berok'
12180       # Determine the default libpath from the value encoded in an empty executable.
12181       cat >conftest.$ac_ext <<_ACEOF
12182 /* confdefs.h.  */
12183 _ACEOF
12184 cat confdefs.h >>conftest.$ac_ext
12185 cat >>conftest.$ac_ext <<_ACEOF
12186 /* end confdefs.h.  */
12187
12188 int
12189 main ()
12190 {
12191
12192   ;
12193   return 0;
12194 }
12195 _ACEOF
12196 rm -f conftest.$ac_objext conftest$ac_exeext
12197 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12198   (eval $ac_link) 2>conftest.er1
12199   ac_status=$?
12200   grep -v '^ *+' conftest.er1 >conftest.err
12201   rm -f conftest.er1
12202   cat conftest.err >&5
12203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12204   (exit $ac_status); } &&
12205          { ac_try='test -z "$ac_cxx_werror_flag"
12206                          || test ! -s conftest.err'
12207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12208   (eval $ac_try) 2>&5
12209   ac_status=$?
12210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12211   (exit $ac_status); }; } &&
12212          { ac_try='test -s conftest$ac_exeext'
12213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12214   (eval $ac_try) 2>&5
12215   ac_status=$?
12216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12217   (exit $ac_status); }; }; then
12218
12219 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12220 }'`
12221 # Check for a 64-bit object if we didn't find anything.
12222 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; }
12223 }'`; fi
12224 else
12225   echo "$as_me: failed program was:" >&5
12226 sed 's/^/| /' conftest.$ac_ext >&5
12227
12228 fi
12229 rm -f conftest.err conftest.$ac_objext \
12230       conftest$ac_exeext conftest.$ac_ext
12231 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12232
12233       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12234
12235       archive_expsym_cmds_CXX="\$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"
12236      else
12237       if test "$host_cpu" = ia64; then
12238         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12239         allow_undefined_flag_CXX="-z nodefs"
12240         archive_expsym_cmds_CXX="\$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"
12241       else
12242         # Determine the default libpath from the value encoded in an empty executable.
12243         cat >conftest.$ac_ext <<_ACEOF
12244 /* confdefs.h.  */
12245 _ACEOF
12246 cat confdefs.h >>conftest.$ac_ext
12247 cat >>conftest.$ac_ext <<_ACEOF
12248 /* end confdefs.h.  */
12249
12250 int
12251 main ()
12252 {
12253
12254   ;
12255   return 0;
12256 }
12257 _ACEOF
12258 rm -f conftest.$ac_objext conftest$ac_exeext
12259 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12260   (eval $ac_link) 2>conftest.er1
12261   ac_status=$?
12262   grep -v '^ *+' conftest.er1 >conftest.err
12263   rm -f conftest.er1
12264   cat conftest.err >&5
12265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12266   (exit $ac_status); } &&
12267          { ac_try='test -z "$ac_cxx_werror_flag"
12268                          || test ! -s conftest.err'
12269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12270   (eval $ac_try) 2>&5
12271   ac_status=$?
12272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12273   (exit $ac_status); }; } &&
12274          { ac_try='test -s conftest$ac_exeext'
12275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12276   (eval $ac_try) 2>&5
12277   ac_status=$?
12278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12279   (exit $ac_status); }; }; then
12280
12281 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12282 }'`
12283 # Check for a 64-bit object if we didn't find anything.
12284 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; }
12285 }'`; fi
12286 else
12287   echo "$as_me: failed program was:" >&5
12288 sed 's/^/| /' conftest.$ac_ext >&5
12289
12290 fi
12291 rm -f conftest.err conftest.$ac_objext \
12292       conftest$ac_exeext conftest.$ac_ext
12293 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12294
12295         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12296         # Warning - without using the other run time loading flags,
12297         # -berok will link without error, but may produce a broken library.
12298         no_undefined_flag_CXX=' ${wl}-bernotok'
12299         allow_undefined_flag_CXX=' ${wl}-berok'
12300         # -bexpall does not export symbols beginning with underscore (_)
12301         always_export_symbols_CXX=yes
12302         # Exported symbols can be pulled into shared objects from archives
12303         whole_archive_flag_spec_CXX=' '
12304         archive_cmds_need_lc_CXX=yes
12305         # This is similar to how AIX traditionally builds it's shared libraries.
12306         archive_expsym_cmds_CXX="\$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'
12307       fi
12308     fi
12309     ;;
12310   chorus*)
12311     case $cc_basename in
12312       *)
12313         # FIXME: insert proper C++ library support
12314         ld_shlibs_CXX=no
12315         ;;
12316     esac
12317     ;;
12318
12319
12320   cygwin* | mingw* | pw32*)
12321     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12322     # as there is no search path for DLLs.
12323     hardcode_libdir_flag_spec_CXX='-L$libdir'
12324     allow_undefined_flag_CXX=unsupported
12325     always_export_symbols_CXX=no
12326     enable_shared_with_static_runtimes_CXX=yes
12327
12328     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12329       archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12330       # If the export-symbols file already is a .def file (1st line
12331       # is EXPORTS), use it as is; otherwise, prepend...
12332       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12333         cp $export_symbols $output_objdir/$soname.def;
12334       else
12335         echo EXPORTS > $output_objdir/$soname.def;
12336         cat $export_symbols >> $output_objdir/$soname.def;
12337       fi~
12338       $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12339     else
12340       ld_shlibs_CXX=no
12341     fi
12342   ;;
12343       darwin* | rhapsody*)
12344         case "$host_os" in
12345         rhapsody* | darwin1.[012])
12346          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
12347          ;;
12348        *) # Darwin 1.3 on
12349          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12350            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12351          else
12352            case ${MACOSX_DEPLOYMENT_TARGET} in
12353              10.[012])
12354                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12355                ;;
12356              10.*)
12357                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
12358                ;;
12359            esac
12360          fi
12361          ;;
12362         esac
12363       archive_cmds_need_lc_CXX=no
12364       hardcode_direct_CXX=no
12365       hardcode_automatic_CXX=yes
12366       hardcode_shlibpath_var_CXX=unsupported
12367       whole_archive_flag_spec_CXX=''
12368       link_all_deplibs_CXX=yes
12369
12370     if test "$GXX" = yes ; then
12371       lt_int_apple_cc_single_mod=no
12372       output_verbose_link_cmd='echo'
12373       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
12374        lt_int_apple_cc_single_mod=yes
12375       fi
12376       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12377        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12378       else
12379           archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12380         fi
12381         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12382         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12383           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12384             archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12385           else
12386             archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12387           fi
12388             module_expsym_cmds_CXX='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}'
12389       else
12390       case $cc_basename in
12391         xlc*)
12392          output_verbose_link_cmd='echo'
12393           archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
12394           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12395           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12396           archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12397           module_expsym_cmds_CXX='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}'
12398           ;;
12399        *)
12400          ld_shlibs_CXX=no
12401           ;;
12402       esac
12403       fi
12404         ;;
12405
12406   dgux*)
12407     case $cc_basename in
12408       ec++*)
12409         # FIXME: insert proper C++ library support
12410         ld_shlibs_CXX=no
12411         ;;
12412       ghcx*)
12413         # Green Hills C++ Compiler
12414         # FIXME: insert proper C++ library support
12415         ld_shlibs_CXX=no
12416         ;;
12417       *)
12418         # FIXME: insert proper C++ library support
12419         ld_shlibs_CXX=no
12420         ;;
12421     esac
12422     ;;
12423   freebsd[12]*)
12424     # C++ shared libraries reported to be fairly broken before switch to ELF
12425     ld_shlibs_CXX=no
12426     ;;
12427   freebsd-elf*)
12428     archive_cmds_need_lc_CXX=no
12429     ;;
12430   freebsd* | kfreebsd*-gnu | dragonfly*)
12431     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12432     # conventions
12433     ld_shlibs_CXX=yes
12434     ;;
12435   gnu*)
12436     ;;
12437   hpux9*)
12438     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12439     hardcode_libdir_separator_CXX=:
12440     export_dynamic_flag_spec_CXX='${wl}-E'
12441     hardcode_direct_CXX=yes
12442     hardcode_minus_L_CXX=yes # Not in the search PATH,
12443                                 # but as the default
12444                                 # location of the library.
12445
12446     case $cc_basename in
12447     CC*)
12448       # FIXME: insert proper C++ library support
12449       ld_shlibs_CXX=no
12450       ;;
12451     aCC*)
12452       archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12453       # Commands to make compiler produce verbose output that lists
12454       # what "hidden" libraries, object files and flags are used when
12455       # linking a shared library.
12456       #
12457       # There doesn't appear to be a way to prevent this compiler from
12458       # explicitly linking system object files so we need to strip them
12459       # from the output so that they don't get included in the library
12460       # dependencies.
12461       output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12462       ;;
12463     *)
12464       if test "$GXX" = yes; then
12465         archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12466       else
12467         # FIXME: insert proper C++ library support
12468         ld_shlibs_CXX=no
12469       fi
12470       ;;
12471     esac
12472     ;;
12473   hpux10*|hpux11*)
12474     if test $with_gnu_ld = no; then
12475       case "$host_cpu" in
12476       hppa*64*)
12477         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12478         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
12479         hardcode_libdir_separator_CXX=:
12480         ;;
12481       ia64*)
12482         hardcode_libdir_flag_spec_CXX='-L$libdir'
12483         ;;
12484       *)
12485         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12486         hardcode_libdir_separator_CXX=:
12487         export_dynamic_flag_spec_CXX='${wl}-E'
12488         ;;
12489       esac
12490     fi
12491     case "$host_cpu" in
12492     hppa*64*)
12493       hardcode_direct_CXX=no
12494       hardcode_shlibpath_var_CXX=no
12495       ;;
12496     ia64*)
12497       hardcode_direct_CXX=no
12498       hardcode_shlibpath_var_CXX=no
12499       hardcode_minus_L_CXX=yes # Not in the search PATH,
12500                                               # but as the default
12501                                               # location of the library.
12502       ;;
12503     *)
12504       hardcode_direct_CXX=yes
12505       hardcode_minus_L_CXX=yes # Not in the search PATH,
12506                                               # but as the default
12507                                               # location of the library.
12508       ;;
12509     esac
12510
12511     case $cc_basename in
12512       CC*)
12513         # FIXME: insert proper C++ library support
12514         ld_shlibs_CXX=no
12515         ;;
12516       aCC*)
12517         case "$host_cpu" in
12518         hppa*64*|ia64*)
12519           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
12520           ;;
12521         *)
12522           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12523           ;;
12524         esac
12525         # Commands to make compiler produce verbose output that lists
12526         # what "hidden" libraries, object files and flags are used when
12527         # linking a shared library.
12528         #
12529         # There doesn't appear to be a way to prevent this compiler from
12530         # explicitly linking system object files so we need to strip them
12531         # from the output so that they don't get included in the library
12532         # dependencies.
12533         output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12534         ;;
12535       *)
12536         if test "$GXX" = yes; then
12537           if test $with_gnu_ld = no; then
12538             case "$host_cpu" in
12539             ia64*|hppa*64*)
12540               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
12541               ;;
12542             *)
12543               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12544               ;;
12545             esac
12546           fi
12547         else
12548           # FIXME: insert proper C++ library support
12549           ld_shlibs_CXX=no
12550         fi
12551         ;;
12552     esac
12553     ;;
12554   irix5* | irix6*)
12555     case $cc_basename in
12556       CC*)
12557         # SGI C++
12558         archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12559
12560         # Archives containing C++ object files must be created using
12561         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12562         # necessary to make sure instantiated templates are included
12563         # in the archive.
12564         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12565         ;;
12566       *)
12567         if test "$GXX" = yes; then
12568           if test "$with_gnu_ld" = no; then
12569             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
12570           else
12571             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
12572           fi
12573         fi
12574         link_all_deplibs_CXX=yes
12575         ;;
12576     esac
12577     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12578     hardcode_libdir_separator_CXX=:
12579     ;;
12580   linux*)
12581     case $cc_basename in
12582       KCC*)
12583         # Kuck and Associates, Inc. (KAI) C++ Compiler
12584
12585         # KCC will only create a shared library if the output file
12586         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12587         # to its proper name (with version) after linking.
12588         archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12589         archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
12590         # Commands to make compiler produce verbose output that lists
12591         # what "hidden" libraries, object files and flags are used when
12592         # linking a shared library.
12593         #
12594         # There doesn't appear to be a way to prevent this compiler from
12595         # explicitly linking system object files so we need to strip them
12596         # from the output so that they don't get included in the library
12597         # dependencies.
12598         output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12599
12600         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12601         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12602
12603         # Archives containing C++ object files must be created using
12604         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12605         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12606         ;;
12607       icpc*)
12608         # Intel C++
12609         with_gnu_ld=yes
12610         # version 8.0 and above of icpc choke on multiply defined symbols
12611         # if we add $predep_objects and $postdep_objects, however 7.1 and
12612         # earlier do not add the objects themselves.
12613         case `$CC -V 2>&1` in
12614         *"Version 7."*)
12615           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12616           archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12617           ;;
12618         *)  # Version 8.0 or newer
12619           tmp_idyn=
12620           case $host_cpu in
12621             ia64*) tmp_idyn=' -i_dynamic';;
12622           esac
12623           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12624           archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12625           ;;
12626         esac
12627         archive_cmds_need_lc_CXX=no
12628         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12629         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12630         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12631         ;;
12632       pgCC*)
12633         # Portland Group C++ compiler
12634         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12635         archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12636
12637         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12638         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12639         whole_archive_flag_spec_CXX='${wl}--whole-archive,`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
12640         ;;
12641       cxx*)
12642         # Compaq C++
12643         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12644         archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
12645
12646         runpath_var=LD_RUN_PATH
12647         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12648         hardcode_libdir_separator_CXX=:
12649
12650         # Commands to make compiler produce verbose output that lists
12651         # what "hidden" libraries, object files and flags are used when
12652         # linking a shared library.
12653         #
12654         # There doesn't appear to be a way to prevent this compiler from
12655         # explicitly linking system object files so we need to strip them
12656         # from the output so that they don't get included in the library
12657         # dependencies.
12658         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12659         ;;
12660     esac
12661     ;;
12662   lynxos*)
12663     # FIXME: insert proper C++ library support
12664     ld_shlibs_CXX=no
12665     ;;
12666   m88k*)
12667     # FIXME: insert proper C++ library support
12668     ld_shlibs_CXX=no
12669     ;;
12670   mvs*)
12671     case $cc_basename in
12672       cxx*)
12673         # FIXME: insert proper C++ library support
12674         ld_shlibs_CXX=no
12675         ;;
12676       *)
12677         # FIXME: insert proper C++ library support
12678         ld_shlibs_CXX=no
12679         ;;
12680     esac
12681     ;;
12682   netbsd*)
12683     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12684       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12685       wlarc=
12686       hardcode_libdir_flag_spec_CXX='-R$libdir'
12687       hardcode_direct_CXX=yes
12688       hardcode_shlibpath_var_CXX=no
12689     fi
12690     # Workaround some broken pre-1.5 toolchains
12691     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12692     ;;
12693   openbsd2*)
12694     # C++ shared libraries are fairly broken
12695     ld_shlibs_CXX=no
12696     ;;
12697   openbsd*)
12698     hardcode_direct_CXX=yes
12699     hardcode_shlibpath_var_CXX=no
12700     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12701     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12702     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12703       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12704       export_dynamic_flag_spec_CXX='${wl}-E'
12705       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12706     fi
12707     output_verbose_link_cmd='echo'
12708     ;;
12709   osf3*)
12710     case $cc_basename in
12711       KCC*)
12712         # Kuck and Associates, Inc. (KAI) C++ Compiler
12713
12714         # KCC will only create a shared library if the output file
12715         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12716         # to its proper name (with version) after linking.
12717         archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12718
12719         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12720         hardcode_libdir_separator_CXX=:
12721
12722         # Archives containing C++ object files must be created using
12723         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12724         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12725
12726         ;;
12727       RCC*)
12728         # Rational C++ 2.4.1
12729         # FIXME: insert proper C++ library support
12730         ld_shlibs_CXX=no
12731         ;;
12732       cxx*)
12733         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12734         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12735
12736         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12737         hardcode_libdir_separator_CXX=:
12738
12739         # Commands to make compiler produce verbose output that lists
12740         # what "hidden" libraries, object files and flags are used when
12741         # linking a shared library.
12742         #
12743         # There doesn't appear to be a way to prevent this compiler from
12744         # explicitly linking system object files so we need to strip them
12745         # from the output so that they don't get included in the library
12746         # dependencies.
12747         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12748         ;;
12749       *)
12750         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12751           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12752           archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
12753
12754           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12755           hardcode_libdir_separator_CXX=:
12756
12757           # Commands to make compiler produce verbose output that lists
12758           # what "hidden" libraries, object files and flags are used when
12759           # linking a shared library.
12760           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12761
12762         else
12763           # FIXME: insert proper C++ library support
12764           ld_shlibs_CXX=no
12765         fi
12766         ;;
12767     esac
12768     ;;
12769   osf4* | osf5*)
12770     case $cc_basename in
12771       KCC*)
12772         # Kuck and Associates, Inc. (KAI) C++ Compiler
12773
12774         # KCC will only create a shared library if the output file
12775         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12776         # to its proper name (with version) after linking.
12777         archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12778
12779         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12780         hardcode_libdir_separator_CXX=:
12781
12782         # Archives containing C++ object files must be created using
12783         # the KAI C++ compiler.
12784         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12785         ;;
12786       RCC*)
12787         # Rational C++ 2.4.1
12788         # FIXME: insert proper C++ library support
12789         ld_shlibs_CXX=no
12790         ;;
12791       cxx*)
12792         allow_undefined_flag_CXX=' -expect_unresolved \*'
12793         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12794         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12795           echo "-hidden">> $lib.exp~
12796           $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
12797           $rm $lib.exp'
12798
12799         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12800         hardcode_libdir_separator_CXX=:
12801
12802         # Commands to make compiler produce verbose output that lists
12803         # what "hidden" libraries, object files and flags are used when
12804         # linking a shared library.
12805         #
12806         # There doesn't appear to be a way to prevent this compiler from
12807         # explicitly linking system object files so we need to strip them
12808         # from the output so that they don't get included in the library
12809         # dependencies.
12810         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12811         ;;
12812       *)
12813         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12814           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12815          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
12816
12817           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12818           hardcode_libdir_separator_CXX=:
12819
12820           # Commands to make compiler produce verbose output that lists
12821           # what "hidden" libraries, object files and flags are used when
12822           # linking a shared library.
12823           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12824
12825         else
12826           # FIXME: insert proper C++ library support
12827           ld_shlibs_CXX=no
12828         fi
12829         ;;
12830     esac
12831     ;;
12832   psos*)
12833     # FIXME: insert proper C++ library support
12834     ld_shlibs_CXX=no
12835     ;;
12836   sco*)
12837     archive_cmds_need_lc_CXX=no
12838     case $cc_basename in
12839       CC*)
12840         # FIXME: insert proper C++ library support
12841         ld_shlibs_CXX=no
12842         ;;
12843       *)
12844         # FIXME: insert proper C++ library support
12845         ld_shlibs_CXX=no
12846         ;;
12847     esac
12848     ;;
12849   sunos4*)
12850     case $cc_basename in
12851       CC*)
12852         # Sun C++ 4.x
12853         # FIXME: insert proper C++ library support
12854         ld_shlibs_CXX=no
12855         ;;
12856       lcc*)
12857         # Lucid
12858         # FIXME: insert proper C++ library support
12859         ld_shlibs_CXX=no
12860         ;;
12861       *)
12862         # FIXME: insert proper C++ library support
12863         ld_shlibs_CXX=no
12864         ;;
12865     esac
12866     ;;
12867   solaris*)
12868     case $cc_basename in
12869       CC*)
12870         # Sun C++ 4.2, 5.x and Centerline C++
12871         no_undefined_flag_CXX=' -zdefs'
12872         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12873         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12874         $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12875
12876         hardcode_libdir_flag_spec_CXX='-R$libdir'
12877         hardcode_shlibpath_var_CXX=no
12878         case $host_os in
12879           solaris2.[0-5] | solaris2.[0-5].*) ;;
12880           *)
12881             # The C++ compiler is used as linker so we must use $wl
12882             # flag to pass the commands to the underlying system
12883             # linker. We must also pass each convience library through
12884             # to the system linker between allextract/defaultextract.
12885             # The C++ compiler will combine linker options so we
12886             # cannot just pass the convience library names through
12887             # without $wl.
12888             # Supported since Solaris 2.6 (maybe 2.5.1?)
12889             whole_archive_flag_spec_CXX='${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'
12890             ;;
12891         esac
12892         link_all_deplibs_CXX=yes
12893
12894         # Commands to make compiler produce verbose output that lists
12895         # what "hidden" libraries, object files and flags are used when
12896         # linking a shared library.
12897         #
12898         # There doesn't appear to be a way to prevent this compiler from
12899         # explicitly linking system object files so we need to strip them
12900         # from the output so that they don't get included in the library
12901         # dependencies.
12902         output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12903
12904         # Archives containing C++ object files must be created using
12905         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12906         # necessary to make sure instantiated templates are included
12907         # in the archive.
12908         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12909         ;;
12910       gcx*)
12911         # Green Hills C++ Compiler
12912         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12913
12914         # The C++ compiler must be used to create the archive.
12915         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12916         ;;
12917       *)
12918         # GNU C++ compiler with Solaris linker
12919         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12920           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12921           if $CC --version | grep -v '^2\.7' > /dev/null; then
12922             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12923             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12924                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12925
12926             # Commands to make compiler produce verbose output that lists
12927             # what "hidden" libraries, object files and flags are used when
12928             # linking a shared library.
12929             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12930           else
12931             # g++ 2.7 appears to require `-G' NOT `-shared' on this
12932             # platform.
12933             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12934             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12935                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12936
12937             # Commands to make compiler produce verbose output that lists
12938             # what "hidden" libraries, object files and flags are used when
12939             # linking a shared library.
12940             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12941           fi
12942
12943           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12944         fi
12945         ;;
12946     esac
12947     ;;
12948   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
12949     archive_cmds_need_lc_CXX=no
12950     ;;
12951   tandem*)
12952     case $cc_basename in
12953       NCC*)
12954         # NonStop-UX NCC 3.20
12955         # FIXME: insert proper C++ library support
12956         ld_shlibs_CXX=no
12957         ;;
12958       *)
12959         # FIXME: insert proper C++ library support
12960         ld_shlibs_CXX=no
12961         ;;
12962     esac
12963     ;;
12964   vxworks*)
12965     # FIXME: insert proper C++ library support
12966     ld_shlibs_CXX=no
12967     ;;
12968   *)
12969     # FIXME: insert proper C++ library support
12970     ld_shlibs_CXX=no
12971     ;;
12972 esac
12973 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12974 echo "${ECHO_T}$ld_shlibs_CXX" >&6
12975 test "$ld_shlibs_CXX" = no && can_build_shared=no
12976
12977 GCC_CXX="$GXX"
12978 LD_CXX="$LD"
12979
12980
12981 cat > conftest.$ac_ext <<EOF
12982 class Foo
12983 {
12984 public:
12985   Foo (void) { a = 0; }
12986 private:
12987   int a;
12988 };
12989 EOF
12990
12991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12992   (eval $ac_compile) 2>&5
12993   ac_status=$?
12994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12995   (exit $ac_status); }; then
12996   # Parse the compiler output and extract the necessary
12997   # objects, libraries and library flags.
12998
12999   # Sentinel used to keep track of whether or not we are before
13000   # the conftest object file.
13001   pre_test_object_deps_done=no
13002
13003   # The `*' in the case matches for architectures that use `case' in
13004   # $output_verbose_cmd can trigger glob expansion during the loop
13005   # eval without this substitution.
13006   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
13007
13008   for p in `eval $output_verbose_link_cmd`; do
13009     case $p in
13010
13011     -L* | -R* | -l*)
13012        # Some compilers place space between "-{L,R}" and the path.
13013        # Remove the space.
13014        if test $p = "-L" \
13015           || test $p = "-R"; then
13016          prev=$p
13017          continue
13018        else
13019          prev=
13020        fi
13021
13022        if test "$pre_test_object_deps_done" = no; then
13023          case $p in
13024          -L* | -R*)
13025            # Internal compiler library paths should come after those
13026            # provided the user.  The postdeps already come after the
13027            # user supplied libs so there is no need to process them.
13028            if test -z "$compiler_lib_search_path_CXX"; then
13029              compiler_lib_search_path_CXX="${prev}${p}"
13030            else
13031              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13032            fi
13033            ;;
13034          # The "-l" case would never come before the object being
13035          # linked, so don't bother handling this case.
13036          esac
13037        else
13038          if test -z "$postdeps_CXX"; then
13039            postdeps_CXX="${prev}${p}"
13040          else
13041            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13042          fi
13043        fi
13044        ;;
13045
13046     *.$objext)
13047        # This assumes that the test object file only shows up
13048        # once in the compiler output.
13049        if test "$p" = "conftest.$objext"; then
13050          pre_test_object_deps_done=yes
13051          continue
13052        fi
13053
13054        if test "$pre_test_object_deps_done" = no; then
13055          if test -z "$predep_objects_CXX"; then
13056            predep_objects_CXX="$p"
13057          else
13058            predep_objects_CXX="$predep_objects_CXX $p"
13059          fi
13060        else
13061          if test -z "$postdep_objects_CXX"; then
13062            postdep_objects_CXX="$p"
13063          else
13064            postdep_objects_CXX="$postdep_objects_CXX $p"
13065          fi
13066        fi
13067        ;;
13068
13069     *) ;; # Ignore the rest.
13070
13071     esac
13072   done
13073
13074   # Clean up.
13075   rm -f a.out a.exe
13076 else
13077   echo "libtool.m4: error: problem compiling CXX test program"
13078 fi
13079
13080 $rm -f confest.$objext
13081
13082 case " $postdeps_CXX " in
13083 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13084 esac
13085
13086 lt_prog_compiler_wl_CXX=
13087 lt_prog_compiler_pic_CXX=
13088 lt_prog_compiler_static_CXX=
13089
13090 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13091 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13092
13093   # C++ specific cases for pic, static, wl, etc.
13094   if test "$GXX" = yes; then
13095     lt_prog_compiler_wl_CXX='-Wl,'
13096     lt_prog_compiler_static_CXX='-static'
13097
13098     case $host_os in
13099     aix*)
13100       # All AIX code is PIC.
13101       if test "$host_cpu" = ia64; then
13102         # AIX 5 now supports IA64 processor
13103         lt_prog_compiler_static_CXX='-Bstatic'
13104       fi
13105       ;;
13106     amigaos*)
13107       # FIXME: we need at least 68020 code to build shared libraries, but
13108       # adding the `-m68020' flag to GCC prevents building anything better,
13109       # like `-m68040'.
13110       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13111       ;;
13112     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13113       # PIC is the default for these OSes.
13114       ;;
13115     mingw* | os2* | pw32*)
13116       # This hack is so that the source file can tell whether it is being
13117       # built for inclusion in a dll (and should export symbols for example).
13118       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13119       ;;
13120     darwin* | rhapsody*)
13121       # PIC is the default on this platform
13122       # Common symbols not allowed in MH_DYLIB files
13123       lt_prog_compiler_pic_CXX='-fno-common'
13124       ;;
13125     *djgpp*)
13126       # DJGPP does not support shared libraries at all
13127       lt_prog_compiler_pic_CXX=
13128       ;;
13129     sysv4*MP*)
13130       if test -d /usr/nec; then
13131         lt_prog_compiler_pic_CXX=-Kconform_pic
13132       fi
13133       ;;
13134     hpux*)
13135       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13136       # not for PA HP-UX.
13137       case "$host_cpu" in
13138       hppa*64*|ia64*)
13139         ;;
13140       *)
13141         lt_prog_compiler_pic_CXX='-fPIC'
13142         ;;
13143       esac
13144       ;;
13145     *)
13146       lt_prog_compiler_pic_CXX='-fPIC'
13147       ;;
13148     esac
13149   else
13150     case $host_os in
13151       aix4* | aix5*)
13152         # All AIX code is PIC.
13153         if test "$host_cpu" = ia64; then
13154           # AIX 5 now supports IA64 processor
13155           lt_prog_compiler_static_CXX='-Bstatic'
13156         else
13157           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13158         fi
13159         ;;
13160       chorus*)
13161         case $cc_basename in
13162         cxch68*)
13163           # Green Hills C++ Compiler
13164           # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
13165           ;;
13166         esac
13167         ;;
13168        darwin*)
13169          # PIC is the default on this platform
13170          # Common symbols not allowed in MH_DYLIB files
13171          case $cc_basename in
13172            xlc*)
13173            lt_prog_compiler_pic_CXX='-qnocommon'
13174            lt_prog_compiler_wl_CXX='-Wl,'
13175            ;;
13176          esac
13177        ;;
13178       dgux*)
13179         case $cc_basename in
13180           ec++*)
13181             lt_prog_compiler_pic_CXX='-KPIC'
13182             ;;
13183           ghcx*)
13184             # Green Hills C++ Compiler
13185             lt_prog_compiler_pic_CXX='-pic'
13186             ;;
13187           *)
13188             ;;
13189         esac
13190         ;;
13191       freebsd* | kfreebsd*-gnu | dragonfly*)
13192         # FreeBSD uses GNU C++
13193         ;;
13194       hpux9* | hpux10* | hpux11*)
13195         case $cc_basename in
13196           CC*)
13197             lt_prog_compiler_wl_CXX='-Wl,'
13198             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
13199             if test "$host_cpu" != ia64; then
13200               lt_prog_compiler_pic_CXX='+Z'
13201             fi
13202             ;;
13203           aCC*)
13204             lt_prog_compiler_wl_CXX='-Wl,'
13205             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
13206             case "$host_cpu" in
13207             hppa*64*|ia64*)
13208               # +Z the default
13209               ;;
13210             *)
13211               lt_prog_compiler_pic_CXX='+Z'
13212               ;;
13213             esac
13214             ;;
13215           *)
13216             ;;
13217         esac
13218         ;;
13219       irix5* | irix6* | nonstopux*)
13220         case $cc_basename in
13221           CC*)
13222             lt_prog_compiler_wl_CXX='-Wl,'
13223             lt_prog_compiler_static_CXX='-non_shared'
13224             # CC pic flag -KPIC is the default.
13225             ;;
13226           *)
13227             ;;
13228         esac
13229         ;;
13230       linux*)
13231         case $cc_basename in
13232           KCC*)
13233             # KAI C++ Compiler
13234             lt_prog_compiler_wl_CXX='--backend -Wl,'
13235             lt_prog_compiler_pic_CXX='-fPIC'
13236             ;;
13237           icpc* | ecpc*)
13238             # Intel C++
13239             lt_prog_compiler_wl_CXX='-Wl,'
13240             lt_prog_compiler_pic_CXX='-KPIC'
13241             lt_prog_compiler_static_CXX='-static'
13242             ;;
13243           pgCC*)
13244             # Portland Group C++ compiler.
13245             lt_prog_compiler_wl_CXX='-Wl,'
13246             lt_prog_compiler_pic_CXX='-fpic'
13247             lt_prog_compiler_static_CXX='-static'
13248             ;;
13249           cxx*)
13250             # Compaq C++
13251             # Make sure the PIC flag is empty.  It appears that all Alpha
13252             # Linux and Compaq Tru64 Unix objects are PIC.
13253             lt_prog_compiler_pic_CXX=
13254             lt_prog_compiler_static_CXX='-non_shared'
13255             ;;
13256           *)
13257             ;;
13258         esac
13259         ;;
13260       lynxos*)
13261         ;;
13262       m88k*)
13263         ;;
13264       mvs*)
13265         case $cc_basename in
13266           cxx*)
13267             lt_prog_compiler_pic_CXX='-W c,exportall'
13268             ;;
13269           *)
13270             ;;
13271         esac
13272         ;;
13273       netbsd*)
13274         ;;
13275       osf3* | osf4* | osf5*)
13276         case $cc_basename in
13277           KCC*)
13278             lt_prog_compiler_wl_CXX='--backend -Wl,'
13279             ;;
13280           RCC*)
13281             # Rational C++ 2.4.1
13282             lt_prog_compiler_pic_CXX='-pic'
13283             ;;
13284           cxx*)
13285             # Digital/Compaq C++
13286             lt_prog_compiler_wl_CXX='-Wl,'
13287             # Make sure the PIC flag is empty.  It appears that all Alpha
13288             # Linux and Compaq Tru64 Unix objects are PIC.
13289             lt_prog_compiler_pic_CXX=
13290             lt_prog_compiler_static_CXX='-non_shared'
13291             ;;
13292           *)
13293             ;;
13294         esac
13295         ;;
13296       psos*)
13297         ;;
13298       sco*)
13299         case $cc_basename in
13300           CC*)
13301             lt_prog_compiler_pic_CXX='-fPIC'
13302             ;;
13303           *)
13304             ;;
13305         esac
13306         ;;
13307       solaris*)
13308         case $cc_basename in
13309           CC*)
13310             # Sun C++ 4.2, 5.x and Centerline C++
13311             lt_prog_compiler_pic_CXX='-KPIC'
13312             lt_prog_compiler_static_CXX='-Bstatic'
13313             lt_prog_compiler_wl_CXX='-Qoption ld '
13314             ;;
13315           gcx*)
13316             # Green Hills C++ Compiler
13317             lt_prog_compiler_pic_CXX='-PIC'
13318             ;;
13319           *)
13320             ;;
13321         esac
13322         ;;
13323       sunos4*)
13324         case $cc_basename in
13325           CC*)
13326             # Sun C++ 4.x
13327             lt_prog_compiler_pic_CXX='-pic'
13328             lt_prog_compiler_static_CXX='-Bstatic'
13329             ;;
13330           lcc*)
13331             # Lucid
13332             lt_prog_compiler_pic_CXX='-pic'
13333             ;;
13334           *)
13335             ;;
13336         esac
13337         ;;
13338       tandem*)
13339         case $cc_basename in
13340           NCC*)
13341             # NonStop-UX NCC 3.20
13342             lt_prog_compiler_pic_CXX='-KPIC'
13343             ;;
13344           *)
13345             ;;
13346         esac
13347         ;;
13348       unixware*)
13349         ;;
13350       vxworks*)
13351         ;;
13352       *)
13353         lt_prog_compiler_can_build_shared_CXX=no
13354         ;;
13355     esac
13356   fi
13357
13358 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13359 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
13360
13361 #
13362 # Check to make sure the PIC flag actually works.
13363 #
13364 if test -n "$lt_prog_compiler_pic_CXX"; then
13365
13366 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13367 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
13368 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
13369   echo $ECHO_N "(cached) $ECHO_C" >&6
13370 else
13371   lt_prog_compiler_pic_works_CXX=no
13372   ac_outfile=conftest.$ac_objext
13373    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13374    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13375    # Insert the option either (1) after the last *FLAGS variable, or
13376    # (2) before a word containing "conftest.", or (3) at the end.
13377    # Note that $ac_compile itself does not contain backslashes and begins
13378    # with a dollar sign (not a hyphen), so the echo should work correctly.
13379    # The option is referenced via a variable to avoid confusing sed.
13380    lt_compile=`echo "$ac_compile" | $SED \
13381    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13382    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13383    -e 's:$: $lt_compiler_flag:'`
13384    (eval echo "\"\$as_me:13384: $lt_compile\"" >&5)
13385    (eval "$lt_compile" 2>conftest.err)
13386    ac_status=$?
13387    cat conftest.err >&5
13388    echo "$as_me:13388: \$? = $ac_status" >&5
13389    if (exit $ac_status) && test -s "$ac_outfile"; then
13390      # The compiler can only warn and ignore the option if not recognized
13391      # So say no if there are warnings other than the usual output.
13392      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
13393      $SED '/^$/d' conftest.err >conftest.er2
13394      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
13395        lt_prog_compiler_pic_works_CXX=yes
13396      fi
13397    fi
13398    $rm conftest*
13399
13400 fi
13401 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
13402 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
13403
13404 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
13405     case $lt_prog_compiler_pic_CXX in
13406      "" | " "*) ;;
13407      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13408      esac
13409 else
13410     lt_prog_compiler_pic_CXX=
13411      lt_prog_compiler_can_build_shared_CXX=no
13412 fi
13413
13414 fi
13415 case "$host_os" in
13416   # For platforms which do not support PIC, -DPIC is meaningless:
13417   *djgpp*)
13418     lt_prog_compiler_pic_CXX=
13419     ;;
13420   *)
13421     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13422     ;;
13423 esac
13424
13425 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13426 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13427 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13428   echo $ECHO_N "(cached) $ECHO_C" >&6
13429 else
13430   lt_cv_prog_compiler_c_o_CXX=no
13431    $rm -r conftest 2>/dev/null
13432    mkdir conftest
13433    cd conftest
13434    mkdir out
13435    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13436
13437    lt_compiler_flag="-o out/conftest2.$ac_objext"
13438    # Insert the option either (1) after the last *FLAGS variable, or
13439    # (2) before a word containing "conftest.", or (3) at the end.
13440    # Note that $ac_compile itself does not contain backslashes and begins
13441    # with a dollar sign (not a hyphen), so the echo should work correctly.
13442    lt_compile=`echo "$ac_compile" | $SED \
13443    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13444    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13445    -e 's:$: $lt_compiler_flag:'`
13446    (eval echo "\"\$as_me:13446: $lt_compile\"" >&5)
13447    (eval "$lt_compile" 2>out/conftest.err)
13448    ac_status=$?
13449    cat out/conftest.err >&5
13450    echo "$as_me:13450: \$? = $ac_status" >&5
13451    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13452    then
13453      # The compiler can only warn and ignore the option if not recognized
13454      # So say no if there are warnings
13455      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
13456      $SED '/^$/d' out/conftest.err >out/conftest.er2
13457      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13458        lt_cv_prog_compiler_c_o_CXX=yes
13459      fi
13460    fi
13461    chmod u+w .
13462    $rm conftest*
13463    # SGI C++ compiler will create directory out/ii_files/ for
13464    # template instantiation
13465    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13466    $rm out/* && rmdir out
13467    cd ..
13468    rmdir conftest
13469    $rm conftest*
13470
13471 fi
13472 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13473 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
13474
13475
13476 hard_links="nottested"
13477 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13478   # do not overwrite the value of need_locks provided by the user
13479   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13480 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13481   hard_links=yes
13482   $rm conftest*
13483   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13484   touch conftest.a
13485   ln conftest.a conftest.b 2>&5 || hard_links=no
13486   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13487   echo "$as_me:$LINENO: result: $hard_links" >&5
13488 echo "${ECHO_T}$hard_links" >&6
13489   if test "$hard_links" = no; then
13490     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13491 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13492     need_locks=warn
13493   fi
13494 else
13495   need_locks=no
13496 fi
13497
13498 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13499 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13500
13501   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13502   case $host_os in
13503   aix4* | aix5*)
13504     # If we're using GNU nm, then we don't want the "-C" option.
13505     # -C means demangle to AIX nm, but means don't demangle with GNU nm
13506     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13507       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13508     else
13509       export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13510     fi
13511     ;;
13512   pw32*)
13513     export_symbols_cmds_CXX="$ltdll_cmds"
13514   ;;
13515   cygwin* | mingw*)
13516     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13517   ;;
13518   *)
13519     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13520   ;;
13521   esac
13522
13523 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13524 echo "${ECHO_T}$ld_shlibs_CXX" >&6
13525 test "$ld_shlibs_CXX" = no && can_build_shared=no
13526
13527 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13528 if test "$GCC" = yes; then
13529   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13530 fi
13531
13532 #
13533 # Do we need to explicitly link libc?
13534 #
13535 case "x$archive_cmds_need_lc_CXX" in
13536 x|xyes)
13537   # Assume -lc should be added
13538   archive_cmds_need_lc_CXX=yes
13539
13540   if test "$enable_shared" = yes && test "$GCC" = yes; then
13541     case $archive_cmds_CXX in
13542     *'~'*)
13543       # FIXME: we may have to deal with multi-command sequences.
13544       ;;
13545     '$CC '*)
13546       # Test whether the compiler implicitly links with -lc since on some
13547       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13548       # to ld, don't add -lc before -lgcc.
13549       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13550 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13551       $rm conftest*
13552       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13553
13554       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13555   (eval $ac_compile) 2>&5
13556   ac_status=$?
13557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13558   (exit $ac_status); } 2>conftest.err; then
13559         soname=conftest
13560         lib=conftest
13561         libobjs=conftest.$ac_objext
13562         deplibs=
13563         wl=$lt_prog_compiler_wl_CXX
13564         compiler_flags=-v
13565         linker_flags=-v
13566         verstring=
13567         output_objdir=.
13568         libname=conftest
13569         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13570         allow_undefined_flag_CXX=
13571         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13572   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13573   ac_status=$?
13574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13575   (exit $ac_status); }
13576         then
13577           archive_cmds_need_lc_CXX=no
13578         else
13579           archive_cmds_need_lc_CXX=yes
13580         fi
13581         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13582       else
13583         cat conftest.err 1>&5
13584       fi
13585       $rm conftest*
13586       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13587 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
13588       ;;
13589     esac
13590   fi
13591   ;;
13592 esac
13593
13594 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13595 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13596 library_names_spec=
13597 libname_spec='lib$name'
13598 soname_spec=
13599 shrext_cmds=".so"
13600 postinstall_cmds=
13601 postuninstall_cmds=
13602 finish_cmds=
13603 finish_eval=
13604 shlibpath_var=
13605 shlibpath_overrides_runpath=unknown
13606 version_type=none
13607 dynamic_linker="$host_os ld.so"
13608 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13609 if test "$GCC" = yes; then
13610   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13611   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13612     # if the path contains ";" then we assume it to be the separator
13613     # otherwise default to the standard path separator (i.e. ":") - it is
13614     # assumed that no part of a normal pathname contains ";" but that should
13615     # okay in the real world where ";" in dirpaths is itself problematic.
13616     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13617   else
13618     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13619   fi
13620 else
13621   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13622 fi
13623 need_lib_prefix=unknown
13624 hardcode_into_libs=no
13625
13626 # when you set need_version to no, make sure it does not cause -set_version
13627 # flags to be left without arguments
13628 need_version=unknown
13629
13630 case $host_os in
13631 aix3*)
13632   version_type=linux
13633   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13634   shlibpath_var=LIBPATH
13635
13636   # AIX 3 has no versioning support, so we append a major version to the name.
13637   soname_spec='${libname}${release}${shared_ext}$major'
13638   ;;
13639
13640 aix4* | aix5*)
13641   version_type=linux
13642   need_lib_prefix=no
13643   need_version=no
13644   hardcode_into_libs=yes
13645   if test "$host_cpu" = ia64; then
13646     # AIX 5 supports IA64
13647     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13648     shlibpath_var=LD_LIBRARY_PATH
13649   else
13650     # With GCC up to 2.95.x, collect2 would create an import file
13651     # for dependence libraries.  The import file would start with
13652     # the line `#! .'.  This would cause the generated library to
13653     # depend on `.', always an invalid library.  This was fixed in
13654     # development snapshots of GCC prior to 3.0.
13655     case $host_os in
13656       aix4 | aix4.[01] | aix4.[01].*)
13657       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13658            echo ' yes '
13659            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13660         :
13661       else
13662         can_build_shared=no
13663       fi
13664       ;;
13665     esac
13666     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13667     # soname into executable. Probably we can add versioning support to
13668     # collect2, so additional links can be useful in future.
13669     if test "$aix_use_runtimelinking" = yes; then
13670       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13671       # instead of lib<name>.a to let people know that these are not
13672       # typical AIX shared libraries.
13673       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13674     else
13675       # We preserve .a as extension for shared libraries through AIX4.2
13676       # and later when we are not doing run time linking.
13677       library_names_spec='${libname}${release}.a $libname.a'
13678       soname_spec='${libname}${release}${shared_ext}$major'
13679     fi
13680     shlibpath_var=LIBPATH
13681   fi
13682   ;;
13683
13684 amigaos*)
13685   library_names_spec='$libname.ixlibrary $libname.a'
13686   # Create ${libname}_ixlibrary.a entries in /sys/libs.
13687   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'
13688   ;;
13689
13690 beos*)
13691   library_names_spec='${libname}${shared_ext}'
13692   dynamic_linker="$host_os ld.so"
13693   shlibpath_var=LIBRARY_PATH
13694   ;;
13695
13696 bsdi[45]*)
13697   version_type=linux
13698   need_version=no
13699   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13700   soname_spec='${libname}${release}${shared_ext}$major'
13701   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13702   shlibpath_var=LD_LIBRARY_PATH
13703   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13704   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13705   # the default ld.so.conf also contains /usr/contrib/lib and
13706   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13707   # libtool to hard-code these into programs
13708   ;;
13709
13710 cygwin* | mingw* | pw32*)
13711   version_type=windows
13712   shrext_cmds=".dll"
13713   need_version=no
13714   need_lib_prefix=no
13715
13716   case $GCC,$host_os in
13717   yes,cygwin* | yes,mingw* | yes,pw32*)
13718     library_names_spec='$libname.dll.a'
13719     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13720     postinstall_cmds='base_file=`basename \${file}`~
13721       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13722       dldir=$destdir/`dirname \$dlpath`~
13723       test -d \$dldir || mkdir -p \$dldir~
13724       $install_prog $dir/$dlname \$dldir/$dlname'
13725     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13726       dlpath=$dir/\$dldll~
13727        $rm \$dlpath'
13728     shlibpath_overrides_runpath=yes
13729
13730     case $host_os in
13731     cygwin*)
13732       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13733       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13734       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13735       ;;
13736     mingw*)
13737       # MinGW DLLs use traditional 'lib' prefix
13738       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13739       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13740       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13741         # It is most probably a Windows format PATH printed by
13742         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13743         # path with ; separators, and with drive letters. We can handle the
13744         # drive letters (cygwin fileutils understands them), so leave them,
13745         # especially as we might pass files found there to a mingw objdump,
13746         # which wouldn't understand a cygwinified path. Ahh.
13747         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13748       else
13749         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13750       fi
13751       ;;
13752     pw32*)
13753       # pw32 DLLs use 'pw' prefix rather than 'lib'
13754       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13755       ;;
13756     esac
13757     ;;
13758
13759   *)
13760     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13761     ;;
13762   esac
13763   dynamic_linker='Win32 ld.exe'
13764   # FIXME: first we should search . and the directory the executable is in
13765   shlibpath_var=PATH
13766   ;;
13767
13768 darwin* | rhapsody*)
13769   dynamic_linker="$host_os dyld"
13770   version_type=darwin
13771   need_lib_prefix=no
13772   need_version=no
13773   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13774   soname_spec='${libname}${release}${major}$shared_ext'
13775   shlibpath_overrides_runpath=yes
13776   shlibpath_var=DYLD_LIBRARY_PATH
13777   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
13778   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13779   if test "$GCC" = yes; then
13780     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"`
13781   else
13782     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13783   fi
13784   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13785   ;;
13786
13787 dgux*)
13788   version_type=linux
13789   need_lib_prefix=no
13790   need_version=no
13791   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13792   soname_spec='${libname}${release}${shared_ext}$major'
13793   shlibpath_var=LD_LIBRARY_PATH
13794   ;;
13795
13796 freebsd1*)
13797   dynamic_linker=no
13798   ;;
13799
13800 kfreebsd*-gnu)
13801   version_type=linux
13802   need_lib_prefix=no
13803   need_version=no
13804   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13805   soname_spec='${libname}${release}${shared_ext}$major'
13806   shlibpath_var=LD_LIBRARY_PATH
13807   shlibpath_overrides_runpath=no
13808   hardcode_into_libs=yes
13809   dynamic_linker='GNU ld.so'
13810   ;;
13811
13812 freebsd* | dragonfly*)
13813   # DragonFly does not have aout.  When/if they implement a new
13814   # versioning mechanism, adjust this.
13815   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13816   version_type=freebsd-$objformat
13817   case $version_type in
13818     freebsd-elf*)
13819       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13820       need_version=no
13821       need_lib_prefix=no
13822       ;;
13823     freebsd-*)
13824       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13825       need_version=yes
13826       ;;
13827   esac
13828   shlibpath_var=LD_LIBRARY_PATH
13829   case $host_os in
13830   freebsd2*)
13831     shlibpath_overrides_runpath=yes
13832     ;;
13833   freebsd3.[01]* | freebsdelf3.[01]*)
13834     shlibpath_overrides_runpath=yes
13835     hardcode_into_libs=yes
13836     ;;
13837   *) # from 3.2 on
13838     shlibpath_overrides_runpath=no
13839     hardcode_into_libs=yes
13840     ;;
13841   esac
13842   ;;
13843
13844 gnu*)
13845   version_type=linux
13846   need_lib_prefix=no
13847   need_version=no
13848   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13849   soname_spec='${libname}${release}${shared_ext}$major'
13850   shlibpath_var=LD_LIBRARY_PATH
13851   hardcode_into_libs=yes
13852   ;;
13853
13854 hpux9* | hpux10* | hpux11*)
13855   # Give a soname corresponding to the major version so that dld.sl refuses to
13856   # link against other versions.
13857   version_type=sunos
13858   need_lib_prefix=no
13859   need_version=no
13860   case "$host_cpu" in
13861   ia64*)
13862     shrext_cmds='.so'
13863     hardcode_into_libs=yes
13864     dynamic_linker="$host_os dld.so"
13865     shlibpath_var=LD_LIBRARY_PATH
13866     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13867     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13868     soname_spec='${libname}${release}${shared_ext}$major'
13869     if test "X$HPUX_IA64_MODE" = X32; then
13870       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13871     else
13872       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13873     fi
13874     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13875     ;;
13876    hppa*64*)
13877      shrext_cmds='.sl'
13878      hardcode_into_libs=yes
13879      dynamic_linker="$host_os dld.sl"
13880      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13881      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13882      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13883      soname_spec='${libname}${release}${shared_ext}$major'
13884      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13885      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13886      ;;
13887    *)
13888     shrext_cmds='.sl'
13889     dynamic_linker="$host_os dld.sl"
13890     shlibpath_var=SHLIB_PATH
13891     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13892     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13893     soname_spec='${libname}${release}${shared_ext}$major'
13894     ;;
13895   esac
13896   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13897   postinstall_cmds='chmod 555 $lib'
13898   ;;
13899
13900 irix5* | irix6* | nonstopux*)
13901   case $host_os in
13902     nonstopux*) version_type=nonstopux ;;
13903     *)
13904         if test "$lt_cv_prog_gnu_ld" = yes; then
13905                 version_type=linux
13906         else
13907                 version_type=irix
13908         fi ;;
13909   esac
13910   need_lib_prefix=no
13911   need_version=no
13912   soname_spec='${libname}${release}${shared_ext}$major'
13913   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13914   case $host_os in
13915   irix5* | nonstopux*)
13916     libsuff= shlibsuff=
13917     ;;
13918   *)
13919     case $LD in # libtool.m4 will add one of these switches to LD
13920     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13921       libsuff= shlibsuff= libmagic=32-bit;;
13922     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13923       libsuff=32 shlibsuff=N32 libmagic=N32;;
13924     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13925       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13926     *) libsuff= shlibsuff= libmagic=never-match;;
13927     esac
13928     ;;
13929   esac
13930   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13931   shlibpath_overrides_runpath=no
13932   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13933   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13934   hardcode_into_libs=yes
13935   ;;
13936
13937 # No shared lib support for Linux oldld, aout, or coff.
13938 linux*oldld* | linux*aout* | linux*coff*)
13939   dynamic_linker=no
13940   ;;
13941
13942 # This must be Linux ELF.
13943 linux*)
13944   version_type=linux
13945   need_lib_prefix=no
13946   need_version=no
13947   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13948   soname_spec='${libname}${release}${shared_ext}$major'
13949   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13950   shlibpath_var=LD_LIBRARY_PATH
13951   shlibpath_overrides_runpath=no
13952   # This implies no fast_install, which is unacceptable.
13953   # Some rework will be needed to allow for fast_install
13954   # before this can be enabled.
13955   hardcode_into_libs=yes
13956
13957   # Append ld.so.conf contents to the search path
13958   if test -f /etc/ld.so.conf; then
13959     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' ' '`
13960     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13961   fi
13962
13963   # We used to test for /lib/ld.so.1 and disable shared libraries on
13964   # powerpc, because MkLinux only supported shared libraries with the
13965   # GNU dynamic linker.  Since this was broken with cross compilers,
13966   # most powerpc-linux boxes support dynamic linking these days and
13967   # people can always --disable-shared, the test was removed, and we
13968   # assume the GNU/Linux dynamic linker is in use.
13969   dynamic_linker='GNU/Linux ld.so'
13970   ;;
13971
13972 knetbsd*-gnu)
13973   version_type=linux
13974   need_lib_prefix=no
13975   need_version=no
13976   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13977   soname_spec='${libname}${release}${shared_ext}$major'
13978   shlibpath_var=LD_LIBRARY_PATH
13979   shlibpath_overrides_runpath=no
13980   hardcode_into_libs=yes
13981   dynamic_linker='GNU ld.so'
13982   ;;
13983
13984 netbsd*)
13985   version_type=sunos
13986   need_lib_prefix=no
13987   need_version=no
13988   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13989     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13990     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13991     dynamic_linker='NetBSD (a.out) ld.so'
13992   else
13993     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13994     soname_spec='${libname}${release}${shared_ext}$major'
13995     dynamic_linker='NetBSD ld.elf_so'
13996   fi
13997   shlibpath_var=LD_LIBRARY_PATH
13998   shlibpath_overrides_runpath=yes
13999   hardcode_into_libs=yes
14000   ;;
14001
14002 newsos6)
14003   version_type=linux
14004   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14005   shlibpath_var=LD_LIBRARY_PATH
14006   shlibpath_overrides_runpath=yes
14007   ;;
14008
14009 nto-qnx*)
14010   version_type=linux
14011   need_lib_prefix=no
14012   need_version=no
14013   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14014   soname_spec='${libname}${release}${shared_ext}$major'
14015   shlibpath_var=LD_LIBRARY_PATH
14016   shlibpath_overrides_runpath=yes
14017   ;;
14018
14019 openbsd*)
14020   version_type=sunos
14021   need_lib_prefix=no
14022   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14023   case $host_os in
14024     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14025     *)                         need_version=no  ;;
14026   esac
14027   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14028   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14029   shlibpath_var=LD_LIBRARY_PATH
14030   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14031     case $host_os in
14032       openbsd2.[89] | openbsd2.[89].*)
14033         shlibpath_overrides_runpath=no
14034         ;;
14035       *)
14036         shlibpath_overrides_runpath=yes
14037         ;;
14038       esac
14039   else
14040     shlibpath_overrides_runpath=yes
14041   fi
14042   ;;
14043
14044 os2*)
14045   libname_spec='$name'
14046   shrext_cmds=".dll"
14047   need_lib_prefix=no
14048   library_names_spec='$libname${shared_ext} $libname.a'
14049   dynamic_linker='OS/2 ld.exe'
14050   shlibpath_var=LIBPATH
14051   ;;
14052
14053 osf3* | osf4* | osf5*)
14054   version_type=osf
14055   need_lib_prefix=no
14056   need_version=no
14057   soname_spec='${libname}${release}${shared_ext}$major'
14058   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14059   shlibpath_var=LD_LIBRARY_PATH
14060   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14061   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14062   ;;
14063
14064 sco3.2v5*)
14065   version_type=osf
14066   soname_spec='${libname}${release}${shared_ext}$major'
14067   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14068   shlibpath_var=LD_LIBRARY_PATH
14069   ;;
14070
14071 solaris*)
14072   version_type=linux
14073   need_lib_prefix=no
14074   need_version=no
14075   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14076   soname_spec='${libname}${release}${shared_ext}$major'
14077   shlibpath_var=LD_LIBRARY_PATH
14078   shlibpath_overrides_runpath=yes
14079   hardcode_into_libs=yes
14080   # ldd complains unless libraries are executable
14081   postinstall_cmds='chmod +x $lib'
14082   ;;
14083
14084 sunos4*)
14085   version_type=sunos
14086   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14087   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14088   shlibpath_var=LD_LIBRARY_PATH
14089   shlibpath_overrides_runpath=yes
14090   if test "$with_gnu_ld" = yes; then
14091     need_lib_prefix=no
14092   fi
14093   need_version=yes
14094   ;;
14095
14096 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14097   version_type=linux
14098   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14099   soname_spec='${libname}${release}${shared_ext}$major'
14100   shlibpath_var=LD_LIBRARY_PATH
14101   case $host_vendor in
14102     sni)
14103       shlibpath_overrides_runpath=no
14104       need_lib_prefix=no
14105       export_dynamic_flag_spec='${wl}-Blargedynsym'
14106       runpath_var=LD_RUN_PATH
14107       ;;
14108     siemens)
14109       need_lib_prefix=no
14110       ;;
14111     motorola)
14112       need_lib_prefix=no
14113       need_version=no
14114       shlibpath_overrides_runpath=no
14115       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14116       ;;
14117   esac
14118   ;;
14119
14120 sysv4*MP*)
14121   if test -d /usr/nec ;then
14122     version_type=linux
14123     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14124     soname_spec='$libname${shared_ext}.$major'
14125     shlibpath_var=LD_LIBRARY_PATH
14126   fi
14127   ;;
14128
14129 uts4*)
14130   version_type=linux
14131   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14132   soname_spec='${libname}${release}${shared_ext}$major'
14133   shlibpath_var=LD_LIBRARY_PATH
14134   ;;
14135
14136 *)
14137   dynamic_linker=no
14138   ;;
14139 esac
14140 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14141 echo "${ECHO_T}$dynamic_linker" >&6
14142 test "$dynamic_linker" = no && can_build_shared=no
14143
14144 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14145 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14146 hardcode_action_CXX=
14147 if test -n "$hardcode_libdir_flag_spec_CXX" || \
14148    test -n "$runpath_var_CXX" || \
14149    test "X$hardcode_automatic_CXX" = "Xyes" ; then
14150
14151   # We can hardcode non-existant directories.
14152   if test "$hardcode_direct_CXX" != no &&
14153      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14154      # have to relink, otherwise we might link with an installed library
14155      # when we should be linking with a yet-to-be-installed one
14156      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14157      test "$hardcode_minus_L_CXX" != no; then
14158     # Linking always hardcodes the temporary library directory.
14159     hardcode_action_CXX=relink
14160   else
14161     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14162     hardcode_action_CXX=immediate
14163   fi
14164 else
14165   # We cannot hardcode anything, or else we can only hardcode existing
14166   # directories.
14167   hardcode_action_CXX=unsupported
14168 fi
14169 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14170 echo "${ECHO_T}$hardcode_action_CXX" >&6
14171
14172 if test "$hardcode_action_CXX" = relink; then
14173   # Fast installation is not supported
14174   enable_fast_install=no
14175 elif test "$shlibpath_overrides_runpath" = yes ||
14176      test "$enable_shared" = no; then
14177   # Fast installation is not necessary
14178   enable_fast_install=needless
14179 fi
14180
14181 striplib=
14182 old_striplib=
14183 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14184 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14185 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14186   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14187   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14188   echo "$as_me:$LINENO: result: yes" >&5
14189 echo "${ECHO_T}yes" >&6
14190 else
14191 # FIXME - insert some real tests, host_os isn't really good enough
14192   case $host_os in
14193    darwin*)
14194        if test -n "$STRIP" ; then
14195          striplib="$STRIP -x"
14196          echo "$as_me:$LINENO: result: yes" >&5
14197 echo "${ECHO_T}yes" >&6
14198        else
14199   echo "$as_me:$LINENO: result: no" >&5
14200 echo "${ECHO_T}no" >&6
14201 fi
14202        ;;
14203    *)
14204   echo "$as_me:$LINENO: result: no" >&5
14205 echo "${ECHO_T}no" >&6
14206     ;;
14207   esac
14208 fi
14209
14210 if test "x$enable_dlopen" != xyes; then
14211   enable_dlopen=unknown
14212   enable_dlopen_self=unknown
14213   enable_dlopen_self_static=unknown
14214 else
14215   lt_cv_dlopen=no
14216   lt_cv_dlopen_libs=
14217
14218   case $host_os in
14219   beos*)
14220     lt_cv_dlopen="load_add_on"
14221     lt_cv_dlopen_libs=
14222     lt_cv_dlopen_self=yes
14223     ;;
14224
14225   mingw* | pw32*)
14226     lt_cv_dlopen="LoadLibrary"
14227     lt_cv_dlopen_libs=
14228    ;;
14229
14230   cygwin*)
14231     lt_cv_dlopen="dlopen"
14232     lt_cv_dlopen_libs=
14233    ;;
14234
14235   darwin*)
14236   # if libdl is installed we need to link against it
14237     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14238 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14239 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14240   echo $ECHO_N "(cached) $ECHO_C" >&6
14241 else
14242   ac_check_lib_save_LIBS=$LIBS
14243 LIBS="-ldl  $LIBS"
14244 cat >conftest.$ac_ext <<_ACEOF
14245 /* confdefs.h.  */
14246 _ACEOF
14247 cat confdefs.h >>conftest.$ac_ext
14248 cat >>conftest.$ac_ext <<_ACEOF
14249 /* end confdefs.h.  */
14250
14251 /* Override any gcc2 internal prototype to avoid an error.  */
14252 #ifdef __cplusplus
14253 extern "C"
14254 #endif
14255 /* We use char because int might match the return type of a gcc2
14256    builtin and then its argument prototype would still apply.  */
14257 char dlopen ();
14258 int
14259 main ()
14260 {
14261 dlopen ();
14262   ;
14263   return 0;
14264 }
14265 _ACEOF
14266 rm -f conftest.$ac_objext conftest$ac_exeext
14267 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14268   (eval $ac_link) 2>conftest.er1
14269   ac_status=$?
14270   grep -v '^ *+' conftest.er1 >conftest.err
14271   rm -f conftest.er1
14272   cat conftest.err >&5
14273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14274   (exit $ac_status); } &&
14275          { ac_try='test -z "$ac_cxx_werror_flag"
14276                          || test ! -s conftest.err'
14277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14278   (eval $ac_try) 2>&5
14279   ac_status=$?
14280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14281   (exit $ac_status); }; } &&
14282          { ac_try='test -s conftest$ac_exeext'
14283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14284   (eval $ac_try) 2>&5
14285   ac_status=$?
14286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14287   (exit $ac_status); }; }; then
14288   ac_cv_lib_dl_dlopen=yes
14289 else
14290   echo "$as_me: failed program was:" >&5
14291 sed 's/^/| /' conftest.$ac_ext >&5
14292
14293 ac_cv_lib_dl_dlopen=no
14294 fi
14295 rm -f conftest.err conftest.$ac_objext \
14296       conftest$ac_exeext conftest.$ac_ext
14297 LIBS=$ac_check_lib_save_LIBS
14298 fi
14299 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14300 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14301 if test $ac_cv_lib_dl_dlopen = yes; then
14302   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14303 else
14304
14305     lt_cv_dlopen="dyld"
14306     lt_cv_dlopen_libs=
14307     lt_cv_dlopen_self=yes
14308
14309 fi
14310
14311    ;;
14312
14313   *)
14314     echo "$as_me:$LINENO: checking for shl_load" >&5
14315 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
14316 if test "${ac_cv_func_shl_load+set}" = set; then
14317   echo $ECHO_N "(cached) $ECHO_C" >&6
14318 else
14319   cat >conftest.$ac_ext <<_ACEOF
14320 /* confdefs.h.  */
14321 _ACEOF
14322 cat confdefs.h >>conftest.$ac_ext
14323 cat >>conftest.$ac_ext <<_ACEOF
14324 /* end confdefs.h.  */
14325 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
14326    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14327 #define shl_load innocuous_shl_load
14328
14329 /* System header to define __stub macros and hopefully few prototypes,
14330     which can conflict with char shl_load (); below.
14331     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14332     <limits.h> exists even on freestanding compilers.  */
14333
14334 #ifdef __STDC__
14335 # include <limits.h>
14336 #else
14337 # include <assert.h>
14338 #endif
14339
14340 #undef shl_load
14341
14342 /* Override any gcc2 internal prototype to avoid an error.  */
14343 #ifdef __cplusplus
14344 extern "C"
14345 {
14346 #endif
14347 /* We use char because int might match the return type of a gcc2
14348    builtin and then its argument prototype would still apply.  */
14349 char shl_load ();
14350 /* The GNU C library defines this for functions which it implements
14351     to always fail with ENOSYS.  Some functions are actually named
14352     something starting with __ and the normal name is an alias.  */
14353 #if defined (__stub_shl_load) || defined (__stub___shl_load)
14354 choke me
14355 #else
14356 char (*f) () = shl_load;
14357 #endif
14358 #ifdef __cplusplus
14359 }
14360 #endif
14361
14362 int
14363 main ()
14364 {
14365 return f != shl_load;
14366   ;
14367   return 0;
14368 }
14369 _ACEOF
14370 rm -f conftest.$ac_objext conftest$ac_exeext
14371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14372   (eval $ac_link) 2>conftest.er1
14373   ac_status=$?
14374   grep -v '^ *+' conftest.er1 >conftest.err
14375   rm -f conftest.er1
14376   cat conftest.err >&5
14377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14378   (exit $ac_status); } &&
14379          { ac_try='test -z "$ac_cxx_werror_flag"
14380                          || test ! -s conftest.err'
14381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14382   (eval $ac_try) 2>&5
14383   ac_status=$?
14384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14385   (exit $ac_status); }; } &&
14386          { ac_try='test -s conftest$ac_exeext'
14387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14388   (eval $ac_try) 2>&5
14389   ac_status=$?
14390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14391   (exit $ac_status); }; }; then
14392   ac_cv_func_shl_load=yes
14393 else
14394   echo "$as_me: failed program was:" >&5
14395 sed 's/^/| /' conftest.$ac_ext >&5
14396
14397 ac_cv_func_shl_load=no
14398 fi
14399 rm -f conftest.err conftest.$ac_objext \
14400       conftest$ac_exeext conftest.$ac_ext
14401 fi
14402 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
14403 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
14404 if test $ac_cv_func_shl_load = yes; then
14405   lt_cv_dlopen="shl_load"
14406 else
14407   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
14408 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
14409 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
14410   echo $ECHO_N "(cached) $ECHO_C" >&6
14411 else
14412   ac_check_lib_save_LIBS=$LIBS
14413 LIBS="-ldld  $LIBS"
14414 cat >conftest.$ac_ext <<_ACEOF
14415 /* confdefs.h.  */
14416 _ACEOF
14417 cat confdefs.h >>conftest.$ac_ext
14418 cat >>conftest.$ac_ext <<_ACEOF
14419 /* end confdefs.h.  */
14420
14421 /* Override any gcc2 internal prototype to avoid an error.  */
14422 #ifdef __cplusplus
14423 extern "C"
14424 #endif
14425 /* We use char because int might match the return type of a gcc2
14426    builtin and then its argument prototype would still apply.  */
14427 char shl_load ();
14428 int
14429 main ()
14430 {
14431 shl_load ();
14432   ;
14433   return 0;
14434 }
14435 _ACEOF
14436 rm -f conftest.$ac_objext conftest$ac_exeext
14437 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14438   (eval $ac_link) 2>conftest.er1
14439   ac_status=$?
14440   grep -v '^ *+' conftest.er1 >conftest.err
14441   rm -f conftest.er1
14442   cat conftest.err >&5
14443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14444   (exit $ac_status); } &&
14445          { ac_try='test -z "$ac_cxx_werror_flag"
14446                          || test ! -s conftest.err'
14447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14448   (eval $ac_try) 2>&5
14449   ac_status=$?
14450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14451   (exit $ac_status); }; } &&
14452          { ac_try='test -s conftest$ac_exeext'
14453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14454   (eval $ac_try) 2>&5
14455   ac_status=$?
14456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14457   (exit $ac_status); }; }; then
14458   ac_cv_lib_dld_shl_load=yes
14459 else
14460   echo "$as_me: failed program was:" >&5
14461 sed 's/^/| /' conftest.$ac_ext >&5
14462
14463 ac_cv_lib_dld_shl_load=no
14464 fi
14465 rm -f conftest.err conftest.$ac_objext \
14466       conftest$ac_exeext conftest.$ac_ext
14467 LIBS=$ac_check_lib_save_LIBS
14468 fi
14469 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
14470 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
14471 if test $ac_cv_lib_dld_shl_load = yes; then
14472   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
14473 else
14474   echo "$as_me:$LINENO: checking for dlopen" >&5
14475 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
14476 if test "${ac_cv_func_dlopen+set}" = set; then
14477   echo $ECHO_N "(cached) $ECHO_C" >&6
14478 else
14479   cat >conftest.$ac_ext <<_ACEOF
14480 /* confdefs.h.  */
14481 _ACEOF
14482 cat confdefs.h >>conftest.$ac_ext
14483 cat >>conftest.$ac_ext <<_ACEOF
14484 /* end confdefs.h.  */
14485 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
14486    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14487 #define dlopen innocuous_dlopen
14488
14489 /* System header to define __stub macros and hopefully few prototypes,
14490     which can conflict with char dlopen (); below.
14491     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14492     <limits.h> exists even on freestanding compilers.  */
14493
14494 #ifdef __STDC__
14495 # include <limits.h>
14496 #else
14497 # include <assert.h>
14498 #endif
14499
14500 #undef dlopen
14501
14502 /* Override any gcc2 internal prototype to avoid an error.  */
14503 #ifdef __cplusplus
14504 extern "C"
14505 {
14506 #endif
14507 /* We use char because int might match the return type of a gcc2
14508    builtin and then its argument prototype would still apply.  */
14509 char dlopen ();
14510 /* The GNU C library defines this for functions which it implements
14511     to always fail with ENOSYS.  Some functions are actually named
14512     something starting with __ and the normal name is an alias.  */
14513 #if defined (__stub_dlopen) || defined (__stub___dlopen)
14514 choke me
14515 #else
14516 char (*f) () = dlopen;
14517 #endif
14518 #ifdef __cplusplus
14519 }
14520 #endif
14521
14522 int
14523 main ()
14524 {
14525 return f != dlopen;
14526   ;
14527   return 0;
14528 }
14529 _ACEOF
14530 rm -f conftest.$ac_objext conftest$ac_exeext
14531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14532   (eval $ac_link) 2>conftest.er1
14533   ac_status=$?
14534   grep -v '^ *+' conftest.er1 >conftest.err
14535   rm -f conftest.er1
14536   cat conftest.err >&5
14537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14538   (exit $ac_status); } &&
14539          { ac_try='test -z "$ac_cxx_werror_flag"
14540                          || test ! -s conftest.err'
14541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14542   (eval $ac_try) 2>&5
14543   ac_status=$?
14544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14545   (exit $ac_status); }; } &&
14546          { ac_try='test -s conftest$ac_exeext'
14547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14548   (eval $ac_try) 2>&5
14549   ac_status=$?
14550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14551   (exit $ac_status); }; }; then
14552   ac_cv_func_dlopen=yes
14553 else
14554   echo "$as_me: failed program was:" >&5
14555 sed 's/^/| /' conftest.$ac_ext >&5
14556
14557 ac_cv_func_dlopen=no
14558 fi
14559 rm -f conftest.err conftest.$ac_objext \
14560       conftest$ac_exeext conftest.$ac_ext
14561 fi
14562 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
14563 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
14564 if test $ac_cv_func_dlopen = yes; then
14565   lt_cv_dlopen="dlopen"
14566 else
14567   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14568 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14569 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14570   echo $ECHO_N "(cached) $ECHO_C" >&6
14571 else
14572   ac_check_lib_save_LIBS=$LIBS
14573 LIBS="-ldl  $LIBS"
14574 cat >conftest.$ac_ext <<_ACEOF
14575 /* confdefs.h.  */
14576 _ACEOF
14577 cat confdefs.h >>conftest.$ac_ext
14578 cat >>conftest.$ac_ext <<_ACEOF
14579 /* end confdefs.h.  */
14580
14581 /* Override any gcc2 internal prototype to avoid an error.  */
14582 #ifdef __cplusplus
14583 extern "C"
14584 #endif
14585 /* We use char because int might match the return type of a gcc2
14586    builtin and then its argument prototype would still apply.  */
14587 char dlopen ();
14588 int
14589 main ()
14590 {
14591 dlopen ();
14592   ;
14593   return 0;
14594 }
14595 _ACEOF
14596 rm -f conftest.$ac_objext conftest$ac_exeext
14597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14598   (eval $ac_link) 2>conftest.er1
14599   ac_status=$?
14600   grep -v '^ *+' conftest.er1 >conftest.err
14601   rm -f conftest.er1
14602   cat conftest.err >&5
14603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14604   (exit $ac_status); } &&
14605          { ac_try='test -z "$ac_cxx_werror_flag"
14606                          || test ! -s conftest.err'
14607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14608   (eval $ac_try) 2>&5
14609   ac_status=$?
14610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14611   (exit $ac_status); }; } &&
14612          { ac_try='test -s conftest$ac_exeext'
14613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14614   (eval $ac_try) 2>&5
14615   ac_status=$?
14616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14617   (exit $ac_status); }; }; then
14618   ac_cv_lib_dl_dlopen=yes
14619 else
14620   echo "$as_me: failed program was:" >&5
14621 sed 's/^/| /' conftest.$ac_ext >&5
14622
14623 ac_cv_lib_dl_dlopen=no
14624 fi
14625 rm -f conftest.err conftest.$ac_objext \
14626       conftest$ac_exeext conftest.$ac_ext
14627 LIBS=$ac_check_lib_save_LIBS
14628 fi
14629 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14630 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14631 if test $ac_cv_lib_dl_dlopen = yes; then
14632   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14633 else
14634   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14635 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
14636 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14637   echo $ECHO_N "(cached) $ECHO_C" >&6
14638 else
14639   ac_check_lib_save_LIBS=$LIBS
14640 LIBS="-lsvld  $LIBS"
14641 cat >conftest.$ac_ext <<_ACEOF
14642 /* confdefs.h.  */
14643 _ACEOF
14644 cat confdefs.h >>conftest.$ac_ext
14645 cat >>conftest.$ac_ext <<_ACEOF
14646 /* end confdefs.h.  */
14647
14648 /* Override any gcc2 internal prototype to avoid an error.  */
14649 #ifdef __cplusplus
14650 extern "C"
14651 #endif
14652 /* We use char because int might match the return type of a gcc2
14653    builtin and then its argument prototype would still apply.  */
14654 char dlopen ();
14655 int
14656 main ()
14657 {
14658 dlopen ();
14659   ;
14660   return 0;
14661 }
14662 _ACEOF
14663 rm -f conftest.$ac_objext conftest$ac_exeext
14664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14665   (eval $ac_link) 2>conftest.er1
14666   ac_status=$?
14667   grep -v '^ *+' conftest.er1 >conftest.err
14668   rm -f conftest.er1
14669   cat conftest.err >&5
14670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14671   (exit $ac_status); } &&
14672          { ac_try='test -z "$ac_cxx_werror_flag"
14673                          || test ! -s conftest.err'
14674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14675   (eval $ac_try) 2>&5
14676   ac_status=$?
14677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14678   (exit $ac_status); }; } &&
14679          { ac_try='test -s conftest$ac_exeext'
14680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14681   (eval $ac_try) 2>&5
14682   ac_status=$?
14683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14684   (exit $ac_status); }; }; then
14685   ac_cv_lib_svld_dlopen=yes
14686 else
14687   echo "$as_me: failed program was:" >&5
14688 sed 's/^/| /' conftest.$ac_ext >&5
14689
14690 ac_cv_lib_svld_dlopen=no
14691 fi
14692 rm -f conftest.err conftest.$ac_objext \
14693       conftest$ac_exeext conftest.$ac_ext
14694 LIBS=$ac_check_lib_save_LIBS
14695 fi
14696 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14697 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14698 if test $ac_cv_lib_svld_dlopen = yes; then
14699   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14700 else
14701   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14702 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14703 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14704   echo $ECHO_N "(cached) $ECHO_C" >&6
14705 else
14706   ac_check_lib_save_LIBS=$LIBS
14707 LIBS="-ldld  $LIBS"
14708 cat >conftest.$ac_ext <<_ACEOF
14709 /* confdefs.h.  */
14710 _ACEOF
14711 cat confdefs.h >>conftest.$ac_ext
14712 cat >>conftest.$ac_ext <<_ACEOF
14713 /* end confdefs.h.  */
14714
14715 /* Override any gcc2 internal prototype to avoid an error.  */
14716 #ifdef __cplusplus
14717 extern "C"
14718 #endif
14719 /* We use char because int might match the return type of a gcc2
14720    builtin and then its argument prototype would still apply.  */
14721 char dld_link ();
14722 int
14723 main ()
14724 {
14725 dld_link ();
14726   ;
14727   return 0;
14728 }
14729 _ACEOF
14730 rm -f conftest.$ac_objext conftest$ac_exeext
14731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14732   (eval $ac_link) 2>conftest.er1
14733   ac_status=$?
14734   grep -v '^ *+' conftest.er1 >conftest.err
14735   rm -f conftest.er1
14736   cat conftest.err >&5
14737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14738   (exit $ac_status); } &&
14739          { ac_try='test -z "$ac_cxx_werror_flag"
14740                          || test ! -s conftest.err'
14741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14742   (eval $ac_try) 2>&5
14743   ac_status=$?
14744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14745   (exit $ac_status); }; } &&
14746          { ac_try='test -s conftest$ac_exeext'
14747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14748   (eval $ac_try) 2>&5
14749   ac_status=$?
14750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14751   (exit $ac_status); }; }; then
14752   ac_cv_lib_dld_dld_link=yes
14753 else
14754   echo "$as_me: failed program was:" >&5
14755 sed 's/^/| /' conftest.$ac_ext >&5
14756
14757 ac_cv_lib_dld_dld_link=no
14758 fi
14759 rm -f conftest.err conftest.$ac_objext \
14760       conftest$ac_exeext conftest.$ac_ext
14761 LIBS=$ac_check_lib_save_LIBS
14762 fi
14763 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14764 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14765 if test $ac_cv_lib_dld_dld_link = yes; then
14766   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14767 fi
14768
14769
14770 fi
14771
14772
14773 fi
14774
14775
14776 fi
14777
14778
14779 fi
14780
14781
14782 fi
14783
14784     ;;
14785   esac
14786
14787   if test "x$lt_cv_dlopen" != xno; then
14788     enable_dlopen=yes
14789   else
14790     enable_dlopen=no
14791   fi
14792
14793   case $lt_cv_dlopen in
14794   dlopen)
14795     save_CPPFLAGS="$CPPFLAGS"
14796     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14797
14798     save_LDFLAGS="$LDFLAGS"
14799     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14800
14801     save_LIBS="$LIBS"
14802     LIBS="$lt_cv_dlopen_libs $LIBS"
14803
14804     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14805 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14806 if test "${lt_cv_dlopen_self+set}" = set; then
14807   echo $ECHO_N "(cached) $ECHO_C" >&6
14808 else
14809           if test "$cross_compiling" = yes; then :
14810   lt_cv_dlopen_self=cross
14811 else
14812   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14813   lt_status=$lt_dlunknown
14814   cat > conftest.$ac_ext <<EOF
14815 #line 14815 "configure"
14816 #include "confdefs.h"
14817
14818 #if HAVE_DLFCN_H
14819 #include <dlfcn.h>
14820 #endif
14821
14822 #include <stdio.h>
14823
14824 #ifdef RTLD_GLOBAL
14825 #  define LT_DLGLOBAL           RTLD_GLOBAL
14826 #else
14827 #  ifdef DL_GLOBAL
14828 #    define LT_DLGLOBAL         DL_GLOBAL
14829 #  else
14830 #    define LT_DLGLOBAL         0
14831 #  endif
14832 #endif
14833
14834 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14835    find out it does not work in some platform. */
14836 #ifndef LT_DLLAZY_OR_NOW
14837 #  ifdef RTLD_LAZY
14838 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14839 #  else
14840 #    ifdef DL_LAZY
14841 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14842 #    else
14843 #      ifdef RTLD_NOW
14844 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14845 #      else
14846 #        ifdef DL_NOW
14847 #          define LT_DLLAZY_OR_NOW      DL_NOW
14848 #        else
14849 #          define LT_DLLAZY_OR_NOW      0
14850 #        endif
14851 #      endif
14852 #    endif
14853 #  endif
14854 #endif
14855
14856 #ifdef __cplusplus
14857 extern "C" void exit (int);
14858 #endif
14859
14860 void fnord() { int i=42;}
14861 int main ()
14862 {
14863   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14864   int status = $lt_dlunknown;
14865
14866   if (self)
14867     {
14868       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14869       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14870       /* dlclose (self); */
14871     }
14872
14873     exit (status);
14874 }
14875 EOF
14876   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14877   (eval $ac_link) 2>&5
14878   ac_status=$?
14879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14880   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14881     (./conftest; exit; ) 2>/dev/null
14882     lt_status=$?
14883     case x$lt_status in
14884       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14885       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14886       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14887     esac
14888   else :
14889     # compilation failed
14890     lt_cv_dlopen_self=no
14891   fi
14892 fi
14893 rm -fr conftest*
14894
14895
14896 fi
14897 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14898 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14899
14900     if test "x$lt_cv_dlopen_self" = xyes; then
14901       LDFLAGS="$LDFLAGS $link_static_flag"
14902       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14903 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14904 if test "${lt_cv_dlopen_self_static+set}" = set; then
14905   echo $ECHO_N "(cached) $ECHO_C" >&6
14906 else
14907           if test "$cross_compiling" = yes; then :
14908   lt_cv_dlopen_self_static=cross
14909 else
14910   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14911   lt_status=$lt_dlunknown
14912   cat > conftest.$ac_ext <<EOF
14913 #line 14913 "configure"
14914 #include "confdefs.h"
14915
14916 #if HAVE_DLFCN_H
14917 #include <dlfcn.h>
14918 #endif
14919
14920 #include <stdio.h>
14921
14922 #ifdef RTLD_GLOBAL
14923 #  define LT_DLGLOBAL           RTLD_GLOBAL
14924 #else
14925 #  ifdef DL_GLOBAL
14926 #    define LT_DLGLOBAL         DL_GLOBAL
14927 #  else
14928 #    define LT_DLGLOBAL         0
14929 #  endif
14930 #endif
14931
14932 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14933    find out it does not work in some platform. */
14934 #ifndef LT_DLLAZY_OR_NOW
14935 #  ifdef RTLD_LAZY
14936 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14937 #  else
14938 #    ifdef DL_LAZY
14939 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14940 #    else
14941 #      ifdef RTLD_NOW
14942 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14943 #      else
14944 #        ifdef DL_NOW
14945 #          define LT_DLLAZY_OR_NOW      DL_NOW
14946 #        else
14947 #          define LT_DLLAZY_OR_NOW      0
14948 #        endif
14949 #      endif
14950 #    endif
14951 #  endif
14952 #endif
14953
14954 #ifdef __cplusplus
14955 extern "C" void exit (int);
14956 #endif
14957
14958 void fnord() { int i=42;}
14959 int main ()
14960 {
14961   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14962   int status = $lt_dlunknown;
14963
14964   if (self)
14965     {
14966       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14967       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14968       /* dlclose (self); */
14969     }
14970
14971     exit (status);
14972 }
14973 EOF
14974   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14975   (eval $ac_link) 2>&5
14976   ac_status=$?
14977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14978   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14979     (./conftest; exit; ) 2>/dev/null
14980     lt_status=$?
14981     case x$lt_status in
14982       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14983       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14984       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14985     esac
14986   else :
14987     # compilation failed
14988     lt_cv_dlopen_self_static=no
14989   fi
14990 fi
14991 rm -fr conftest*
14992
14993
14994 fi
14995 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14996 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14997     fi
14998
14999     CPPFLAGS="$save_CPPFLAGS"
15000     LDFLAGS="$save_LDFLAGS"
15001     LIBS="$save_LIBS"
15002     ;;
15003   esac
15004
15005   case $lt_cv_dlopen_self in
15006   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15007   *) enable_dlopen_self=unknown ;;
15008   esac
15009
15010   case $lt_cv_dlopen_self_static in
15011   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15012   *) enable_dlopen_self_static=unknown ;;
15013   esac
15014 fi
15015
15016
15017 # The else clause should only fire when bootstrapping the
15018 # libtool distribution, otherwise you forgot to ship ltmain.sh
15019 # with your package, and you will get complaints that there are
15020 # no rules to generate ltmain.sh.
15021 if test -f "$ltmain"; then
15022   # See if we are running on zsh, and set the options which allow our commands through
15023   # without removal of \ escapes.
15024   if test -n "${ZSH_VERSION+set}" ; then
15025     setopt NO_GLOB_SUBST
15026   fi
15027   # Now quote all the things that may contain metacharacters while being
15028   # careful not to overquote the AC_SUBSTed values.  We take copies of the
15029   # variables and quote the copies for generation of the libtool script.
15030   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15031     SED SHELL STRIP \
15032     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15033     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15034     deplibs_check_method reload_flag reload_cmds need_locks \
15035     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15036     lt_cv_sys_global_symbol_to_c_name_address \
15037     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15038     old_postinstall_cmds old_postuninstall_cmds \
15039     compiler_CXX \
15040     CC_CXX \
15041     LD_CXX \
15042     lt_prog_compiler_wl_CXX \
15043     lt_prog_compiler_pic_CXX \
15044     lt_prog_compiler_static_CXX \
15045     lt_prog_compiler_no_builtin_flag_CXX \
15046     export_dynamic_flag_spec_CXX \
15047     thread_safe_flag_spec_CXX \
15048     whole_archive_flag_spec_CXX \
15049     enable_shared_with_static_runtimes_CXX \
15050     old_archive_cmds_CXX \
15051     old_archive_from_new_cmds_CXX \
15052     predep_objects_CXX \
15053     postdep_objects_CXX \
15054     predeps_CXX \
15055     postdeps_CXX \
15056     compiler_lib_search_path_CXX \
15057     archive_cmds_CXX \
15058     archive_expsym_cmds_CXX \
15059     postinstall_cmds_CXX \
15060     postuninstall_cmds_CXX \
15061     old_archive_from_expsyms_cmds_CXX \
15062     allow_undefined_flag_CXX \
15063     no_undefined_flag_CXX \
15064     export_symbols_cmds_CXX \
15065     hardcode_libdir_flag_spec_CXX \
15066     hardcode_libdir_flag_spec_ld_CXX \
15067     hardcode_libdir_separator_CXX \
15068     hardcode_automatic_CXX \
15069     module_cmds_CXX \
15070     module_expsym_cmds_CXX \
15071     lt_cv_prog_compiler_c_o_CXX \
15072     exclude_expsyms_CXX \
15073     include_expsyms_CXX; do
15074
15075     case $var in
15076     old_archive_cmds_CXX | \
15077     old_archive_from_new_cmds_CXX | \
15078     archive_cmds_CXX | \
15079     archive_expsym_cmds_CXX | \
15080     module_cmds_CXX | \
15081     module_expsym_cmds_CXX | \
15082     old_archive_from_expsyms_cmds_CXX | \
15083     export_symbols_cmds_CXX | \
15084     extract_expsyms_cmds | reload_cmds | finish_cmds | \
15085     postinstall_cmds | postuninstall_cmds | \
15086     old_postinstall_cmds | old_postuninstall_cmds | \
15087     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15088       # Double-quote double-evaled strings.
15089       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15090       ;;
15091     *)
15092       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15093       ;;
15094     esac
15095   done
15096
15097   case $lt_echo in
15098   *'\$0 --fallback-echo"')
15099     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15100     ;;
15101   esac
15102
15103 cfgfile="$ofile"
15104
15105   cat <<__EOF__ >> "$cfgfile"
15106 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15107
15108 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15109
15110 # Shell to use when invoking shell scripts.
15111 SHELL=$lt_SHELL
15112
15113 # Whether or not to build shared libraries.
15114 build_libtool_libs=$enable_shared
15115
15116 # Whether or not to build static libraries.
15117 build_old_libs=$enable_static
15118
15119 # Whether or not to add -lc for building shared libraries.
15120 build_libtool_need_lc=$archive_cmds_need_lc_CXX
15121
15122 # Whether or not to disallow shared libs when runtime libs are static
15123 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
15124
15125 # Whether or not to optimize for fast installation.
15126 fast_install=$enable_fast_install
15127
15128 # The host system.
15129 host_alias=$host_alias
15130 host=$host
15131 host_os=$host_os
15132
15133 # The build system.
15134 build_alias=$build_alias
15135 build=$build
15136 build_os=$build_os
15137
15138 # An echo program that does not interpret backslashes.
15139 echo=$lt_echo
15140
15141 # The archiver.
15142 AR=$lt_AR
15143 AR_FLAGS=$lt_AR_FLAGS
15144
15145 # A C compiler.
15146 LTCC=$lt_LTCC
15147
15148 # A language-specific compiler.
15149 CC=$lt_compiler_CXX
15150
15151 # Is the compiler the GNU C compiler?
15152 with_gcc=$GCC_CXX
15153
15154 # An ERE matcher.
15155 EGREP=$lt_EGREP
15156
15157 # The linker used to build libraries.
15158 LD=$lt_LD_CXX
15159
15160 # Whether we need hard or soft links.
15161 LN_S=$lt_LN_S
15162
15163 # A BSD-compatible nm program.
15164 NM=$lt_NM
15165
15166 # A symbol stripping program
15167 STRIP=$lt_STRIP
15168
15169 # Used to examine libraries when file_magic_cmd begins "file"
15170 MAGIC_CMD=$MAGIC_CMD
15171
15172 # Used on cygwin: DLL creation program.
15173 DLLTOOL="$DLLTOOL"
15174
15175 # Used on cygwin: object dumper.
15176 OBJDUMP="$OBJDUMP"
15177
15178 # Used on cygwin: assembler.
15179 AS="$AS"
15180
15181 # The name of the directory that contains temporary libtool files.
15182 objdir=$objdir
15183
15184 # How to create reloadable object files.
15185 reload_flag=$lt_reload_flag
15186 reload_cmds=$lt_reload_cmds
15187
15188 # How to pass a linker flag through the compiler.
15189 wl=$lt_lt_prog_compiler_wl_CXX
15190
15191 # Object file suffix (normally "o").
15192 objext="$ac_objext"
15193
15194 # Old archive suffix (normally "a").
15195 libext="$libext"
15196
15197 # Shared library suffix (normally ".so").
15198 shrext_cmds='$shrext_cmds'
15199
15200 # Executable file suffix (normally "").
15201 exeext="$exeext"
15202
15203 # Additional compiler flags for building library objects.
15204 pic_flag=$lt_lt_prog_compiler_pic_CXX
15205 pic_mode=$pic_mode
15206
15207 # What is the maximum length of a command?
15208 max_cmd_len=$lt_cv_sys_max_cmd_len
15209
15210 # Does compiler simultaneously support -c and -o options?
15211 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
15212
15213 # Must we lock files when doing compilation?
15214 need_locks=$lt_need_locks
15215
15216 # Do we need the lib prefix for modules?
15217 need_lib_prefix=$need_lib_prefix
15218
15219 # Do we need a version for libraries?
15220 need_version=$need_version
15221
15222 # Whether dlopen is supported.
15223 dlopen_support=$enable_dlopen
15224
15225 # Whether dlopen of programs is supported.
15226 dlopen_self=$enable_dlopen_self
15227
15228 # Whether dlopen of statically linked programs is supported.
15229 dlopen_self_static=$enable_dlopen_self_static
15230
15231 # Compiler flag to prevent dynamic linking.
15232 link_static_flag=$lt_lt_prog_compiler_static_CXX
15233
15234 # Compiler flag to turn off builtin functions.
15235 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
15236
15237 # Compiler flag to allow reflexive dlopens.
15238 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
15239
15240 # Compiler flag to generate shared objects directly from archives.
15241 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
15242
15243 # Compiler flag to generate thread-safe objects.
15244 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
15245
15246 # Library versioning type.
15247 version_type=$version_type
15248
15249 # Format of library name prefix.
15250 libname_spec=$lt_libname_spec
15251
15252 # List of archive names.  First name is the real one, the rest are links.
15253 # The last name is the one that the linker finds with -lNAME.
15254 library_names_spec=$lt_library_names_spec
15255
15256 # The coded name of the library, if different from the real name.
15257 soname_spec=$lt_soname_spec
15258
15259 # Commands used to build and install an old-style archive.
15260 RANLIB=$lt_RANLIB
15261 old_archive_cmds=$lt_old_archive_cmds_CXX
15262 old_postinstall_cmds=$lt_old_postinstall_cmds
15263 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15264
15265 # Create an old-style archive from a shared archive.
15266 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
15267
15268 # Create a temporary old-style archive to link instead of a shared archive.
15269 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
15270
15271 # Commands used to build and install a shared archive.
15272 archive_cmds=$lt_archive_cmds_CXX
15273 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
15274 postinstall_cmds=$lt_postinstall_cmds
15275 postuninstall_cmds=$lt_postuninstall_cmds
15276
15277 # Commands used to build a loadable module (assumed same as above if empty)
15278 module_cmds=$lt_module_cmds_CXX
15279 module_expsym_cmds=$lt_module_expsym_cmds_CXX
15280
15281 # Commands to strip libraries.
15282 old_striplib=$lt_old_striplib
15283 striplib=$lt_striplib
15284
15285 # Dependencies to place before the objects being linked to create a
15286 # shared library.
15287 predep_objects=$lt_predep_objects_CXX
15288
15289 # Dependencies to place after the objects being linked to create a
15290 # shared library.
15291 postdep_objects=$lt_postdep_objects_CXX
15292
15293 # Dependencies to place before the objects being linked to create a
15294 # shared library.
15295 predeps=$lt_predeps_CXX
15296
15297 # Dependencies to place after the objects being linked to create a
15298 # shared library.
15299 postdeps=$lt_postdeps_CXX
15300
15301 # The library search path used internally by the compiler when linking
15302 # a shared library.
15303 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
15304
15305 # Method to check whether dependent libraries are shared objects.
15306 deplibs_check_method=$lt_deplibs_check_method
15307
15308 # Command to use when deplibs_check_method == file_magic.
15309 file_magic_cmd=$lt_file_magic_cmd
15310
15311 # Flag that allows shared libraries with undefined symbols to be built.
15312 allow_undefined_flag=$lt_allow_undefined_flag_CXX
15313
15314 # Flag that forces no undefined symbols.
15315 no_undefined_flag=$lt_no_undefined_flag_CXX
15316
15317 # Commands used to finish a libtool library installation in a directory.
15318 finish_cmds=$lt_finish_cmds
15319
15320 # Same as above, but a single script fragment to be evaled but not shown.
15321 finish_eval=$lt_finish_eval
15322
15323 # Take the output of nm and produce a listing of raw symbols and C names.
15324 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15325
15326 # Transform the output of nm in a proper C declaration
15327 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15328
15329 # Transform the output of nm in a C name address pair
15330 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15331
15332 # This is the shared library runtime path variable.
15333 runpath_var=$runpath_var
15334
15335 # This is the shared library path variable.
15336 shlibpath_var=$shlibpath_var
15337
15338 # Is shlibpath searched before the hard-coded library search path?
15339 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15340
15341 # How to hardcode a shared library path into an executable.
15342 hardcode_action=$hardcode_action_CXX
15343
15344 # Whether we should hardcode library paths into libraries.
15345 hardcode_into_libs=$hardcode_into_libs
15346
15347 # Flag to hardcode \$libdir into a binary during linking.
15348 # This must work even if \$libdir does not exist.
15349 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
15350
15351 # If ld is used when linking, flag to hardcode \$libdir into
15352 # a binary during linking. This must work even if \$libdir does
15353 # not exist.
15354 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
15355
15356 # Whether we need a single -rpath flag with a separated argument.
15357 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
15358
15359 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15360 # resulting binary.
15361 hardcode_direct=$hardcode_direct_CXX
15362
15363 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15364 # resulting binary.
15365 hardcode_minus_L=$hardcode_minus_L_CXX
15366
15367 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15368 # the resulting binary.
15369 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
15370
15371 # Set to yes if building a shared library automatically hardcodes DIR into the library
15372 # and all subsequent libraries and executables linked against it.
15373 hardcode_automatic=$hardcode_automatic_CXX
15374
15375 # Variables whose values should be saved in libtool wrapper scripts and
15376 # restored at relink time.
15377 variables_saved_for_relink="$variables_saved_for_relink"
15378
15379 # Whether libtool must link a program against all its dependency libraries.
15380 link_all_deplibs=$link_all_deplibs_CXX
15381
15382 # Compile-time system search path for libraries
15383 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15384
15385 # Run-time system search path for libraries
15386 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15387
15388 # Fix the shell variable \$srcfile for the compiler.
15389 fix_srcfile_path="$fix_srcfile_path_CXX"
15390
15391 # Set to yes if exported symbols are required.
15392 always_export_symbols=$always_export_symbols_CXX
15393
15394 # The commands to list exported symbols.
15395 export_symbols_cmds=$lt_export_symbols_cmds_CXX
15396
15397 # The commands to extract the exported symbol list from a shared archive.
15398 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15399
15400 # Symbols that should not be listed in the preloaded symbols.
15401 exclude_expsyms=$lt_exclude_expsyms_CXX
15402
15403 # Symbols that must always be exported.
15404 include_expsyms=$lt_include_expsyms_CXX
15405
15406 # ### END LIBTOOL TAG CONFIG: $tagname
15407
15408 __EOF__
15409
15410
15411 else
15412   # If there is no Makefile yet, we rely on a make rule to execute
15413   # `config.status --recheck' to rerun these tests and create the
15414   # libtool script then.
15415   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15416   if test -f "$ltmain_in"; then
15417     test -f Makefile && make "$ltmain"
15418   fi
15419 fi
15420
15421
15422 ac_ext=c
15423 ac_cpp='$CPP $CPPFLAGS'
15424 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15425 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15426 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15427
15428 CC=$lt_save_CC
15429 LDCXX=$LD
15430 LD=$lt_save_LD
15431 GCC=$lt_save_GCC
15432 with_gnu_ldcxx=$with_gnu_ld
15433 with_gnu_ld=$lt_save_with_gnu_ld
15434 lt_cv_path_LDCXX=$lt_cv_path_LD
15435 lt_cv_path_LD=$lt_save_path_LD
15436 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15437 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15438
15439         else
15440           tagname=""
15441         fi
15442         ;;
15443
15444       F77)
15445         if test -n "$F77" && test "X$F77" != "Xno"; then
15446
15447 ac_ext=f
15448 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
15449 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15450 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
15451
15452
15453 archive_cmds_need_lc_F77=no
15454 allow_undefined_flag_F77=
15455 always_export_symbols_F77=no
15456 archive_expsym_cmds_F77=
15457 export_dynamic_flag_spec_F77=
15458 hardcode_direct_F77=no
15459 hardcode_libdir_flag_spec_F77=
15460 hardcode_libdir_flag_spec_ld_F77=
15461 hardcode_libdir_separator_F77=
15462 hardcode_minus_L_F77=no
15463 hardcode_automatic_F77=no
15464 module_cmds_F77=
15465 module_expsym_cmds_F77=
15466 link_all_deplibs_F77=unknown
15467 old_archive_cmds_F77=$old_archive_cmds
15468 no_undefined_flag_F77=
15469 whole_archive_flag_spec_F77=
15470 enable_shared_with_static_runtimes_F77=no
15471
15472 # Source file extension for f77 test sources.
15473 ac_ext=f
15474
15475 # Object file extension for compiled f77 test sources.
15476 objext=o
15477 objext_F77=$objext
15478
15479 # Code to be used in simple compile tests
15480 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
15481
15482 # Code to be used in simple link tests
15483 lt_simple_link_test_code="      program t\n      end\n"
15484
15485 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15486
15487 # If no C compiler was specified, use CC.
15488 LTCC=${LTCC-"$CC"}
15489
15490 # Allow CC to be a program name with arguments.
15491 compiler=$CC
15492
15493
15494 # save warnings/boilerplate of simple test code
15495 ac_outfile=conftest.$ac_objext
15496 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15497 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
15498 _lt_compiler_boilerplate=`cat conftest.err`
15499 $rm conftest*
15500
15501 ac_outfile=conftest.$ac_objext
15502 printf "$lt_simple_link_test_code" >conftest.$ac_ext
15503 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
15504 _lt_linker_boilerplate=`cat conftest.err`
15505 $rm conftest*
15506
15507
15508 # Allow CC to be a program name with arguments.
15509 lt_save_CC="$CC"
15510 CC=${F77-"f77"}
15511 compiler=$CC
15512 compiler_F77=$CC
15513 for cc_temp in $compiler""; do
15514   case $cc_temp in
15515     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15516     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15517     \-*) ;;
15518     *) break;;
15519   esac
15520 done
15521 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15522
15523
15524 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
15525 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
15526 echo "$as_me:$LINENO: result: $can_build_shared" >&5
15527 echo "${ECHO_T}$can_build_shared" >&6
15528
15529 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
15530 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
15531 test "$can_build_shared" = "no" && enable_shared=no
15532
15533 # On AIX, shared libraries and static libraries use the same namespace, and
15534 # are all built from PIC.
15535 case "$host_os" in
15536 aix3*)
15537   test "$enable_shared" = yes && enable_static=no
15538   if test -n "$RANLIB"; then
15539     archive_cmds="$archive_cmds~\$RANLIB \$lib"
15540     postinstall_cmds='$RANLIB $lib'
15541   fi
15542   ;;
15543 aix4* | aix5*)
15544   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15545     test "$enable_shared" = yes && enable_static=no
15546   fi
15547   ;;
15548 esac
15549 echo "$as_me:$LINENO: result: $enable_shared" >&5
15550 echo "${ECHO_T}$enable_shared" >&6
15551
15552 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
15553 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
15554 # Make sure either enable_shared or enable_static is yes.
15555 test "$enable_shared" = yes || enable_static=yes
15556 echo "$as_me:$LINENO: result: $enable_static" >&5
15557 echo "${ECHO_T}$enable_static" >&6
15558
15559 test "$ld_shlibs_F77" = no && can_build_shared=no
15560
15561 GCC_F77="$G77"
15562 LD_F77="$LD"
15563
15564 lt_prog_compiler_wl_F77=
15565 lt_prog_compiler_pic_F77=
15566 lt_prog_compiler_static_F77=
15567
15568 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15569 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15570
15571   if test "$GCC" = yes; then
15572     lt_prog_compiler_wl_F77='-Wl,'
15573     lt_prog_compiler_static_F77='-static'
15574
15575     case $host_os in
15576       aix*)
15577       # All AIX code is PIC.
15578       if test "$host_cpu" = ia64; then
15579         # AIX 5 now supports IA64 processor
15580         lt_prog_compiler_static_F77='-Bstatic'
15581       fi
15582       ;;
15583
15584     amigaos*)
15585       # FIXME: we need at least 68020 code to build shared libraries, but
15586       # adding the `-m68020' flag to GCC prevents building anything better,
15587       # like `-m68040'.
15588       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
15589       ;;
15590
15591     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15592       # PIC is the default for these OSes.
15593       ;;
15594
15595     mingw* | pw32* | os2*)
15596       # This hack is so that the source file can tell whether it is being
15597       # built for inclusion in a dll (and should export symbols for example).
15598       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15599       ;;
15600
15601     darwin* | rhapsody*)
15602       # PIC is the default on this platform
15603       # Common symbols not allowed in MH_DYLIB files
15604       lt_prog_compiler_pic_F77='-fno-common'
15605       ;;
15606
15607     msdosdjgpp*)
15608       # Just because we use GCC doesn't mean we suddenly get shared libraries
15609       # on systems that don't support them.
15610       lt_prog_compiler_can_build_shared_F77=no
15611       enable_shared=no
15612       ;;
15613
15614     sysv4*MP*)
15615       if test -d /usr/nec; then
15616         lt_prog_compiler_pic_F77=-Kconform_pic
15617       fi
15618       ;;
15619
15620     hpux*)
15621       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15622       # not for PA HP-UX.
15623       case "$host_cpu" in
15624       hppa*64*|ia64*)
15625         # +Z the default
15626         ;;
15627       *)
15628         lt_prog_compiler_pic_F77='-fPIC'
15629         ;;
15630       esac
15631       ;;
15632
15633     *)
15634       lt_prog_compiler_pic_F77='-fPIC'
15635       ;;
15636     esac
15637   else
15638     # PORTME Check for flag to pass linker flags through the system compiler.
15639     case $host_os in
15640     aix*)
15641       lt_prog_compiler_wl_F77='-Wl,'
15642       if test "$host_cpu" = ia64; then
15643         # AIX 5 now supports IA64 processor
15644         lt_prog_compiler_static_F77='-Bstatic'
15645       else
15646         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
15647       fi
15648       ;;
15649       darwin*)
15650         # PIC is the default on this platform
15651         # Common symbols not allowed in MH_DYLIB files
15652        case $cc_basename in
15653          xlc*)
15654          lt_prog_compiler_pic_F77='-qnocommon'
15655          lt_prog_compiler_wl_F77='-Wl,'
15656          ;;
15657        esac
15658        ;;
15659
15660     mingw* | pw32* | os2*)
15661       # This hack is so that the source file can tell whether it is being
15662       # built for inclusion in a dll (and should export symbols for example).
15663       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15664       ;;
15665
15666     hpux9* | hpux10* | hpux11*)
15667       lt_prog_compiler_wl_F77='-Wl,'
15668       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15669       # not for PA HP-UX.
15670       case "$host_cpu" in
15671       hppa*64*|ia64*)
15672         # +Z the default
15673         ;;
15674       *)
15675         lt_prog_compiler_pic_F77='+Z'
15676         ;;
15677       esac
15678       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15679       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
15680       ;;
15681
15682     irix5* | irix6* | nonstopux*)
15683       lt_prog_compiler_wl_F77='-Wl,'
15684       # PIC (with -KPIC) is the default.
15685       lt_prog_compiler_static_F77='-non_shared'
15686       ;;
15687
15688     newsos6)
15689       lt_prog_compiler_pic_F77='-KPIC'
15690       lt_prog_compiler_static_F77='-Bstatic'
15691       ;;
15692
15693     linux*)
15694       case $cc_basename in
15695       icc* | ecc*)
15696         lt_prog_compiler_wl_F77='-Wl,'
15697         lt_prog_compiler_pic_F77='-KPIC'
15698         lt_prog_compiler_static_F77='-static'
15699         ;;
15700       pgcc* | pgf77* | pgf90*)
15701         # Portland Group compilers (*not* the Pentium gcc compiler,
15702         # which looks to be a dead project)
15703         lt_prog_compiler_wl_F77='-Wl,'
15704         lt_prog_compiler_pic_F77='-fpic'
15705         lt_prog_compiler_static_F77='-static'
15706         ;;
15707       ccc*)
15708         lt_prog_compiler_wl_F77='-Wl,'
15709         # All Alpha code is PIC.
15710         lt_prog_compiler_static_F77='-non_shared'
15711         ;;
15712       esac
15713       ;;
15714
15715     osf3* | osf4* | osf5*)
15716       lt_prog_compiler_wl_F77='-Wl,'
15717       # All OSF/1 code is PIC.
15718       lt_prog_compiler_static_F77='-non_shared'
15719       ;;
15720
15721     sco3.2v5*)
15722       lt_prog_compiler_pic_F77='-Kpic'
15723       lt_prog_compiler_static_F77='-dn'
15724       ;;
15725
15726     solaris*)
15727       lt_prog_compiler_pic_F77='-KPIC'
15728       lt_prog_compiler_static_F77='-Bstatic'
15729       case $cc_basename in
15730       f77* | f90* | f95*)
15731         lt_prog_compiler_wl_F77='-Qoption ld ';;
15732       *)
15733         lt_prog_compiler_wl_F77='-Wl,';;
15734       esac
15735       ;;
15736
15737     sunos4*)
15738       lt_prog_compiler_wl_F77='-Qoption ld '
15739       lt_prog_compiler_pic_F77='-PIC'
15740       lt_prog_compiler_static_F77='-Bstatic'
15741       ;;
15742
15743     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15744       lt_prog_compiler_wl_F77='-Wl,'
15745       lt_prog_compiler_pic_F77='-KPIC'
15746       lt_prog_compiler_static_F77='-Bstatic'
15747       ;;
15748
15749     sysv4*MP*)
15750       if test -d /usr/nec ;then
15751         lt_prog_compiler_pic_F77='-Kconform_pic'
15752         lt_prog_compiler_static_F77='-Bstatic'
15753       fi
15754       ;;
15755
15756     unicos*)
15757       lt_prog_compiler_wl_F77='-Wl,'
15758       lt_prog_compiler_can_build_shared_F77=no
15759       ;;
15760
15761     uts4*)
15762       lt_prog_compiler_pic_F77='-pic'
15763       lt_prog_compiler_static_F77='-Bstatic'
15764       ;;
15765
15766     *)
15767       lt_prog_compiler_can_build_shared_F77=no
15768       ;;
15769     esac
15770   fi
15771
15772 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15773 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
15774
15775 #
15776 # Check to make sure the PIC flag actually works.
15777 #
15778 if test -n "$lt_prog_compiler_pic_F77"; then
15779
15780 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15781 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
15782 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
15783   echo $ECHO_N "(cached) $ECHO_C" >&6
15784 else
15785   lt_prog_compiler_pic_works_F77=no
15786   ac_outfile=conftest.$ac_objext
15787    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15788    lt_compiler_flag="$lt_prog_compiler_pic_F77"
15789    # Insert the option either (1) after the last *FLAGS variable, or
15790    # (2) before a word containing "conftest.", or (3) at the end.
15791    # Note that $ac_compile itself does not contain backslashes and begins
15792    # with a dollar sign (not a hyphen), so the echo should work correctly.
15793    # The option is referenced via a variable to avoid confusing sed.
15794    lt_compile=`echo "$ac_compile" | $SED \
15795    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15796    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15797    -e 's:$: $lt_compiler_flag:'`
15798    (eval echo "\"\$as_me:15798: $lt_compile\"" >&5)
15799    (eval "$lt_compile" 2>conftest.err)
15800    ac_status=$?
15801    cat conftest.err >&5
15802    echo "$as_me:15802: \$? = $ac_status" >&5
15803    if (exit $ac_status) && test -s "$ac_outfile"; then
15804      # The compiler can only warn and ignore the option if not recognized
15805      # So say no if there are warnings other than the usual output.
15806      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
15807      $SED '/^$/d' conftest.err >conftest.er2
15808      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
15809        lt_prog_compiler_pic_works_F77=yes
15810      fi
15811    fi
15812    $rm conftest*
15813
15814 fi
15815 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
15816 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
15817
15818 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
15819     case $lt_prog_compiler_pic_F77 in
15820      "" | " "*) ;;
15821      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15822      esac
15823 else
15824     lt_prog_compiler_pic_F77=
15825      lt_prog_compiler_can_build_shared_F77=no
15826 fi
15827
15828 fi
15829 case "$host_os" in
15830   # For platforms which do not support PIC, -DPIC is meaningless:
15831   *djgpp*)
15832     lt_prog_compiler_pic_F77=
15833     ;;
15834   *)
15835     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
15836     ;;
15837 esac
15838
15839 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15840 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15841 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15842   echo $ECHO_N "(cached) $ECHO_C" >&6
15843 else
15844   lt_cv_prog_compiler_c_o_F77=no
15845    $rm -r conftest 2>/dev/null
15846    mkdir conftest
15847    cd conftest
15848    mkdir out
15849    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15850
15851    lt_compiler_flag="-o out/conftest2.$ac_objext"
15852    # Insert the option either (1) after the last *FLAGS variable, or
15853    # (2) before a word containing "conftest.", or (3) at the end.
15854    # Note that $ac_compile itself does not contain backslashes and begins
15855    # with a dollar sign (not a hyphen), so the echo should work correctly.
15856    lt_compile=`echo "$ac_compile" | $SED \
15857    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15858    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15859    -e 's:$: $lt_compiler_flag:'`
15860    (eval echo "\"\$as_me:15860: $lt_compile\"" >&5)
15861    (eval "$lt_compile" 2>out/conftest.err)
15862    ac_status=$?
15863    cat out/conftest.err >&5
15864    echo "$as_me:15864: \$? = $ac_status" >&5
15865    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15866    then
15867      # The compiler can only warn and ignore the option if not recognized
15868      # So say no if there are warnings
15869      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
15870      $SED '/^$/d' out/conftest.err >out/conftest.er2
15871      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15872        lt_cv_prog_compiler_c_o_F77=yes
15873      fi
15874    fi
15875    chmod u+w .
15876    $rm conftest*
15877    # SGI C++ compiler will create directory out/ii_files/ for
15878    # template instantiation
15879    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15880    $rm out/* && rmdir out
15881    cd ..
15882    rmdir conftest
15883    $rm conftest*
15884
15885 fi
15886 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15887 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
15888
15889
15890 hard_links="nottested"
15891 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15892   # do not overwrite the value of need_locks provided by the user
15893   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15894 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15895   hard_links=yes
15896   $rm conftest*
15897   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15898   touch conftest.a
15899   ln conftest.a conftest.b 2>&5 || hard_links=no
15900   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15901   echo "$as_me:$LINENO: result: $hard_links" >&5
15902 echo "${ECHO_T}$hard_links" >&6
15903   if test "$hard_links" = no; then
15904     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15905 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15906     need_locks=warn
15907   fi
15908 else
15909   need_locks=no
15910 fi
15911
15912 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15913 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15914
15915   runpath_var=
15916   allow_undefined_flag_F77=
15917   enable_shared_with_static_runtimes_F77=no
15918   archive_cmds_F77=
15919   archive_expsym_cmds_F77=
15920   old_archive_From_new_cmds_F77=
15921   old_archive_from_expsyms_cmds_F77=
15922   export_dynamic_flag_spec_F77=
15923   whole_archive_flag_spec_F77=
15924   thread_safe_flag_spec_F77=
15925   hardcode_libdir_flag_spec_F77=
15926   hardcode_libdir_flag_spec_ld_F77=
15927   hardcode_libdir_separator_F77=
15928   hardcode_direct_F77=no
15929   hardcode_minus_L_F77=no
15930   hardcode_shlibpath_var_F77=unsupported
15931   link_all_deplibs_F77=unknown
15932   hardcode_automatic_F77=no
15933   module_cmds_F77=
15934   module_expsym_cmds_F77=
15935   always_export_symbols_F77=no
15936   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15937   # include_expsyms should be a list of space-separated symbols to be *always*
15938   # included in the symbol list
15939   include_expsyms_F77=
15940   # exclude_expsyms can be an extended regexp of symbols to exclude
15941   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15942   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15943   # as well as any symbol that contains `d'.
15944   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
15945   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15946   # platforms (ab)use it in PIC code, but their linkers get confused if
15947   # the symbol is explicitly referenced.  Since portable code cannot
15948   # rely on this symbol name, it's probably fine to never include it in
15949   # preloaded symbol tables.
15950   extract_expsyms_cmds=
15951   # Just being paranoid about ensuring that cc_basename is set.
15952   for cc_temp in $compiler""; do
15953   case $cc_temp in
15954     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15955     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15956     \-*) ;;
15957     *) break;;
15958   esac
15959 done
15960 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15961
15962   case $host_os in
15963   cygwin* | mingw* | pw32*)
15964     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15965     # When not using gcc, we currently assume that we are using
15966     # Microsoft Visual C++.
15967     if test "$GCC" != yes; then
15968       with_gnu_ld=no
15969     fi
15970     ;;
15971   openbsd*)
15972     with_gnu_ld=no
15973     ;;
15974   esac
15975
15976   ld_shlibs_F77=yes
15977   if test "$with_gnu_ld" = yes; then
15978     # If archive_cmds runs LD, not CC, wlarc should be empty
15979     wlarc='${wl}'
15980
15981     # Set some defaults for GNU ld with shared library support. These
15982     # are reset later if shared libraries are not supported. Putting them
15983     # here allows them to be overridden if necessary.
15984     runpath_var=LD_RUN_PATH
15985     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15986     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15987     # ancient GNU ld didn't support --whole-archive et. al.
15988     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15989         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15990       else
15991         whole_archive_flag_spec_F77=
15992     fi
15993     supports_anon_versioning=no
15994     case `$LD -v 2>/dev/null` in
15995       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15996       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15997       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15998       *\ 2.11.*) ;; # other 2.11 versions
15999       *) supports_anon_versioning=yes ;;
16000     esac
16001
16002     # See if GNU ld supports shared libraries.
16003     case $host_os in
16004     aix3* | aix4* | aix5*)
16005       # On AIX/PPC, the GNU linker is very broken
16006       if test "$host_cpu" != ia64; then
16007         ld_shlibs_F77=no
16008         cat <<EOF 1>&2
16009
16010 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16011 *** to be unable to reliably create shared libraries on AIX.
16012 *** Therefore, libtool is disabling shared libraries support.  If you
16013 *** really care for shared libraries, you may want to modify your PATH
16014 *** so that a non-GNU linker is found, and then restart.
16015
16016 EOF
16017       fi
16018       ;;
16019
16020     amigaos*)
16021       archive_cmds_F77='$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)'
16022       hardcode_libdir_flag_spec_F77='-L$libdir'
16023       hardcode_minus_L_F77=yes
16024
16025       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16026       # that the semantics of dynamic libraries on AmigaOS, at least up
16027       # to version 4, is to share data among multiple programs linked
16028       # with the same dynamic library.  Since this doesn't match the
16029       # behavior of shared libraries on other platforms, we can't use
16030       # them.
16031       ld_shlibs_F77=no
16032       ;;
16033
16034     beos*)
16035       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16036         allow_undefined_flag_F77=unsupported
16037         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16038         # support --undefined.  This deserves some investigation.  FIXME
16039         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16040       else
16041         ld_shlibs_F77=no
16042       fi
16043       ;;
16044
16045     cygwin* | mingw* | pw32*)
16046       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
16047       # as there is no search path for DLLs.
16048       hardcode_libdir_flag_spec_F77='-L$libdir'
16049       allow_undefined_flag_F77=unsupported
16050       always_export_symbols_F77=no
16051       enable_shared_with_static_runtimes_F77=yes
16052       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16053
16054       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16055         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16056         # If the export-symbols file already is a .def file (1st line
16057         # is EXPORTS), use it as is; otherwise, prepend...
16058         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16059           cp $export_symbols $output_objdir/$soname.def;
16060         else
16061           echo EXPORTS > $output_objdir/$soname.def;
16062           cat $export_symbols >> $output_objdir/$soname.def;
16063         fi~
16064         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
16065       else
16066         ld_shlibs_F77=no
16067       fi
16068       ;;
16069
16070     linux*)
16071       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16072         tmp_addflag=
16073         case $cc_basename,$host_cpu in
16074         pgcc*)                          # Portland Group C compiler
16075           whole_archive_flag_spec_F77='${wl}--whole-archive,`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16076           tmp_addflag=' $pic_flag'
16077           ;;
16078         pgf77* | pgf90* )                       # Portland Group f77 and f90 compilers
16079           whole_archive_flag_spec_F77='${wl}--whole-archive,`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16080           tmp_addflag=' $pic_flag -Mnomain' ;;
16081         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
16082           tmp_addflag=' -i_dynamic' ;;
16083         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
16084           tmp_addflag=' -i_dynamic -nofor_main' ;;
16085         ifc* | ifort*)                  # Intel Fortran compiler
16086           tmp_addflag=' -nofor_main' ;;
16087         esac
16088         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16089
16090         if test $supports_anon_versioning = yes; then
16091           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
16092   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16093   $echo "local: *; };" >> $output_objdir/$libname.ver~
16094           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16095         fi
16096       else
16097         ld_shlibs_F77=no
16098       fi
16099       ;;
16100
16101     netbsd*)
16102       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16103         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16104         wlarc=
16105       else
16106         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16107         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16108       fi
16109       ;;
16110
16111     solaris* | sysv5*)
16112       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16113         ld_shlibs_F77=no
16114         cat <<EOF 1>&2
16115
16116 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16117 *** create shared libraries on Solaris systems.  Therefore, libtool
16118 *** is disabling shared libraries support.  We urge you to upgrade GNU
16119 *** binutils to release 2.9.1 or newer.  Another option is to modify
16120 *** your PATH or compiler configuration so that the native linker is
16121 *** used, and then restart.
16122
16123 EOF
16124       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16125         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16126         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16127       else
16128         ld_shlibs_F77=no
16129       fi
16130       ;;
16131
16132     sunos4*)
16133       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16134       wlarc=
16135       hardcode_direct_F77=yes
16136       hardcode_shlibpath_var_F77=no
16137       ;;
16138
16139     *)
16140       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16141         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16142         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16143       else
16144         ld_shlibs_F77=no
16145       fi
16146       ;;
16147     esac
16148
16149     if test "$ld_shlibs_F77" = no; then
16150       runpath_var=
16151       hardcode_libdir_flag_spec_F77=
16152       export_dynamic_flag_spec_F77=
16153       whole_archive_flag_spec_F77=
16154     fi
16155   else
16156     # PORTME fill in a description of your system's linker (not GNU ld)
16157     case $host_os in
16158     aix3*)
16159       allow_undefined_flag_F77=unsupported
16160       always_export_symbols_F77=yes
16161       archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
16162       # Note: this linker hardcodes the directories in LIBPATH if there
16163       # are no directories specified by -L.
16164       hardcode_minus_L_F77=yes
16165       if test "$GCC" = yes && test -z "$link_static_flag"; then
16166         # Neither direct hardcoding nor static linking is supported with a
16167         # broken collect2.
16168         hardcode_direct_F77=unsupported
16169       fi
16170       ;;
16171
16172     aix4* | aix5*)
16173       if test "$host_cpu" = ia64; then
16174         # On IA64, the linker does run time linking by default, so we don't
16175         # have to do anything special.
16176         aix_use_runtimelinking=no
16177         exp_sym_flag='-Bexport'
16178         no_entry_flag=""
16179       else
16180         # If we're using GNU nm, then we don't want the "-C" option.
16181         # -C means demangle to AIX nm, but means don't demangle with GNU nm
16182         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16183           export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16184         else
16185           export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16186         fi
16187         aix_use_runtimelinking=no
16188
16189         # Test if we are trying to use run time linking or normal
16190         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16191         # need to do runtime linking.
16192         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16193           for ld_flag in $LDFLAGS; do
16194           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16195             aix_use_runtimelinking=yes
16196             break
16197           fi
16198           done
16199         esac
16200
16201         exp_sym_flag='-bexport'
16202         no_entry_flag='-bnoentry'
16203       fi
16204
16205       # When large executables or shared objects are built, AIX ld can
16206       # have problems creating the table of contents.  If linking a library
16207       # or program results in "error TOC overflow" add -mminimal-toc to
16208       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16209       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16210
16211       archive_cmds_F77=''
16212       hardcode_direct_F77=yes
16213       hardcode_libdir_separator_F77=':'
16214       link_all_deplibs_F77=yes
16215
16216       if test "$GCC" = yes; then
16217         case $host_os in aix4.[012]|aix4.[012].*)
16218         # We only want to do this on AIX 4.2 and lower, the check
16219         # below for broken collect2 doesn't work under 4.3+
16220           collect2name=`${CC} -print-prog-name=collect2`
16221           if test -f "$collect2name" && \
16222            strings "$collect2name" | grep resolve_lib_name >/dev/null
16223           then
16224           # We have reworked collect2
16225           hardcode_direct_F77=yes
16226           else
16227           # We have old collect2
16228           hardcode_direct_F77=unsupported
16229           # It fails to find uninstalled libraries when the uninstalled
16230           # path is not listed in the libpath.  Setting hardcode_minus_L
16231           # to unsupported forces relinking
16232           hardcode_minus_L_F77=yes
16233           hardcode_libdir_flag_spec_F77='-L$libdir'
16234           hardcode_libdir_separator_F77=
16235           fi
16236         esac
16237         shared_flag='-shared'
16238         if test "$aix_use_runtimelinking" = yes; then
16239           shared_flag="$shared_flag "'${wl}-G'
16240         fi
16241       else
16242         # not using gcc
16243         if test "$host_cpu" = ia64; then
16244         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16245         # chokes on -Wl,-G. The following line is correct:
16246           shared_flag='-G'
16247         else
16248         if test "$aix_use_runtimelinking" = yes; then
16249             shared_flag='${wl}-G'
16250           else
16251             shared_flag='${wl}-bM:SRE'
16252         fi
16253         fi
16254       fi
16255
16256       # It seems that -bexpall does not export symbols beginning with
16257       # underscore (_), so it is better to generate a list of symbols to export.
16258       always_export_symbols_F77=yes
16259       if test "$aix_use_runtimelinking" = yes; then
16260         # Warning - without using the other runtime loading flags (-brtl),
16261         # -berok will link without error, but may produce a broken library.
16262         allow_undefined_flag_F77='-berok'
16263        # Determine the default libpath from the value encoded in an empty executable.
16264        cat >conftest.$ac_ext <<_ACEOF
16265       program main
16266
16267       end
16268 _ACEOF
16269 rm -f conftest.$ac_objext conftest$ac_exeext
16270 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16271   (eval $ac_link) 2>conftest.er1
16272   ac_status=$?
16273   grep -v '^ *+' conftest.er1 >conftest.err
16274   rm -f conftest.er1
16275   cat conftest.err >&5
16276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16277   (exit $ac_status); } &&
16278          { ac_try='test -z "$ac_f77_werror_flag"
16279                          || test ! -s conftest.err'
16280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16281   (eval $ac_try) 2>&5
16282   ac_status=$?
16283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16284   (exit $ac_status); }; } &&
16285          { ac_try='test -s conftest$ac_exeext'
16286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16287   (eval $ac_try) 2>&5
16288   ac_status=$?
16289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16290   (exit $ac_status); }; }; then
16291
16292 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16293 }'`
16294 # Check for a 64-bit object if we didn't find anything.
16295 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; }
16296 }'`; fi
16297 else
16298   echo "$as_me: failed program was:" >&5
16299 sed 's/^/| /' conftest.$ac_ext >&5
16300
16301 fi
16302 rm -f conftest.err conftest.$ac_objext \
16303       conftest$ac_exeext conftest.$ac_ext
16304 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16305
16306        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16307         archive_expsym_cmds_F77="\$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"
16308        else
16309         if test "$host_cpu" = ia64; then
16310           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
16311           allow_undefined_flag_F77="-z nodefs"
16312           archive_expsym_cmds_F77="\$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"
16313         else
16314          # Determine the default libpath from the value encoded in an empty executable.
16315          cat >conftest.$ac_ext <<_ACEOF
16316       program main
16317
16318       end
16319 _ACEOF
16320 rm -f conftest.$ac_objext conftest$ac_exeext
16321 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16322   (eval $ac_link) 2>conftest.er1
16323   ac_status=$?
16324   grep -v '^ *+' conftest.er1 >conftest.err
16325   rm -f conftest.er1
16326   cat conftest.err >&5
16327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16328   (exit $ac_status); } &&
16329          { ac_try='test -z "$ac_f77_werror_flag"
16330                          || test ! -s conftest.err'
16331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16332   (eval $ac_try) 2>&5
16333   ac_status=$?
16334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16335   (exit $ac_status); }; } &&
16336          { ac_try='test -s conftest$ac_exeext'
16337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16338   (eval $ac_try) 2>&5
16339   ac_status=$?
16340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16341   (exit $ac_status); }; }; then
16342
16343 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16344 }'`
16345 # Check for a 64-bit object if we didn't find anything.
16346 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; }
16347 }'`; fi
16348 else
16349   echo "$as_me: failed program was:" >&5
16350 sed 's/^/| /' conftest.$ac_ext >&5
16351
16352 fi
16353 rm -f conftest.err conftest.$ac_objext \
16354       conftest$ac_exeext conftest.$ac_ext
16355 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16356
16357          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16358           # Warning - without using the other run time loading flags,
16359           # -berok will link without error, but may produce a broken library.
16360           no_undefined_flag_F77=' ${wl}-bernotok'
16361           allow_undefined_flag_F77=' ${wl}-berok'
16362           # -bexpall does not export symbols beginning with underscore (_)
16363           always_export_symbols_F77=yes
16364           # Exported symbols can be pulled into shared objects from archives
16365           whole_archive_flag_spec_F77=' '
16366           archive_cmds_need_lc_F77=yes
16367           # This is similar to how AIX traditionally builds it's shared libraries.
16368           archive_expsym_cmds_F77="\$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'
16369         fi
16370       fi
16371       ;;
16372
16373     amigaos*)
16374       archive_cmds_F77='$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)'
16375       hardcode_libdir_flag_spec_F77='-L$libdir'
16376       hardcode_minus_L_F77=yes
16377       # see comment about different semantics on the GNU ld section
16378       ld_shlibs_F77=no
16379       ;;
16380
16381     bsdi[45]*)
16382       export_dynamic_flag_spec_F77=-rdynamic
16383       ;;
16384
16385     cygwin* | mingw* | pw32*)
16386       # When not using gcc, we currently assume that we are using
16387       # Microsoft Visual C++.
16388       # hardcode_libdir_flag_spec is actually meaningless, as there is
16389       # no search path for DLLs.
16390       hardcode_libdir_flag_spec_F77=' '
16391       allow_undefined_flag_F77=unsupported
16392       # Tell ltmain to make .lib files, not .a files.
16393       libext=lib
16394       # Tell ltmain to make .dll files, not .so files.
16395       shrext_cmds=".dll"
16396       # FIXME: Setting linknames here is a bad hack.
16397       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16398       # The linker will automatically build a .lib file if we build a DLL.
16399       old_archive_From_new_cmds_F77='true'
16400       # FIXME: Should let the user specify the lib program.
16401       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
16402       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
16403       enable_shared_with_static_runtimes_F77=yes
16404       ;;
16405
16406     darwin* | rhapsody*)
16407       case "$host_os" in
16408         rhapsody* | darwin1.[012])
16409          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
16410          ;;
16411        *) # Darwin 1.3 on
16412          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16413            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16414          else
16415            case ${MACOSX_DEPLOYMENT_TARGET} in
16416              10.[012])
16417                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16418                ;;
16419              10.*)
16420                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
16421                ;;
16422            esac
16423          fi
16424          ;;
16425       esac
16426       archive_cmds_need_lc_F77=no
16427       hardcode_direct_F77=no
16428       hardcode_automatic_F77=yes
16429       hardcode_shlibpath_var_F77=unsupported
16430       whole_archive_flag_spec_F77=''
16431       link_all_deplibs_F77=yes
16432     if test "$GCC" = yes ; then
16433         output_verbose_link_cmd='echo'
16434         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16435       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16436       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16437       archive_expsym_cmds_F77='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}'
16438       module_expsym_cmds_F77='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}'
16439     else
16440       case $cc_basename in
16441         xlc*)
16442          output_verbose_link_cmd='echo'
16443          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16444          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16445           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16446          archive_expsym_cmds_F77='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}'
16447           module_expsym_cmds_F77='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}'
16448           ;;
16449        *)
16450          ld_shlibs_F77=no
16451           ;;
16452       esac
16453     fi
16454       ;;
16455
16456     dgux*)
16457       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16458       hardcode_libdir_flag_spec_F77='-L$libdir'
16459       hardcode_shlibpath_var_F77=no
16460       ;;
16461
16462     freebsd1*)
16463       ld_shlibs_F77=no
16464       ;;
16465
16466     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16467     # support.  Future versions do this automatically, but an explicit c++rt0.o
16468     # does not break anything, and helps significantly (at the cost of a little
16469     # extra space).
16470     freebsd2.2*)
16471       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16472       hardcode_libdir_flag_spec_F77='-R$libdir'
16473       hardcode_direct_F77=yes
16474       hardcode_shlibpath_var_F77=no
16475       ;;
16476
16477     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16478     freebsd2*)
16479       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16480       hardcode_direct_F77=yes
16481       hardcode_minus_L_F77=yes
16482       hardcode_shlibpath_var_F77=no
16483       ;;
16484
16485     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16486     freebsd* | kfreebsd*-gnu | dragonfly*)
16487       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16488       hardcode_libdir_flag_spec_F77='-R$libdir'
16489       hardcode_direct_F77=yes
16490       hardcode_shlibpath_var_F77=no
16491       ;;
16492
16493     hpux9*)
16494       if test "$GCC" = yes; then
16495         archive_cmds_F77='$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'
16496       else
16497         archive_cmds_F77='$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'
16498       fi
16499       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16500       hardcode_libdir_separator_F77=:
16501       hardcode_direct_F77=yes
16502
16503       # hardcode_minus_L: Not really in the search PATH,
16504       # but as the default location of the library.
16505       hardcode_minus_L_F77=yes
16506       export_dynamic_flag_spec_F77='${wl}-E'
16507       ;;
16508
16509     hpux10* | hpux11*)
16510       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16511         case "$host_cpu" in
16512         hppa*64*|ia64*)
16513           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16514           ;;
16515         *)
16516           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16517           ;;
16518         esac
16519       else
16520         case "$host_cpu" in
16521         hppa*64*|ia64*)
16522           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16523           ;;
16524         *)
16525           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16526           ;;
16527         esac
16528       fi
16529       if test "$with_gnu_ld" = no; then
16530         case "$host_cpu" in
16531         hppa*64*)
16532           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16533           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
16534           hardcode_libdir_separator_F77=:
16535           hardcode_direct_F77=no
16536           hardcode_shlibpath_var_F77=no
16537           ;;
16538         ia64*)
16539           hardcode_libdir_flag_spec_F77='-L$libdir'
16540           hardcode_direct_F77=no
16541           hardcode_shlibpath_var_F77=no
16542
16543           # hardcode_minus_L: Not really in the search PATH,
16544           # but as the default location of the library.
16545           hardcode_minus_L_F77=yes
16546           ;;
16547         *)
16548           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16549           hardcode_libdir_separator_F77=:
16550           hardcode_direct_F77=yes
16551           export_dynamic_flag_spec_F77='${wl}-E'
16552
16553           # hardcode_minus_L: Not really in the search PATH,
16554           # but as the default location of the library.
16555           hardcode_minus_L_F77=yes
16556           ;;
16557         esac
16558       fi
16559       ;;
16560
16561     irix5* | irix6* | nonstopux*)
16562       if test "$GCC" = yes; then
16563         archive_cmds_F77='$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'
16564       else
16565         archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16566         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
16567       fi
16568       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16569       hardcode_libdir_separator_F77=:
16570       link_all_deplibs_F77=yes
16571       ;;
16572
16573     netbsd*)
16574       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16575         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16576       else
16577         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16578       fi
16579       hardcode_libdir_flag_spec_F77='-R$libdir'
16580       hardcode_direct_F77=yes
16581       hardcode_shlibpath_var_F77=no
16582       ;;
16583
16584     newsos6)
16585       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16586       hardcode_direct_F77=yes
16587       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16588       hardcode_libdir_separator_F77=:
16589       hardcode_shlibpath_var_F77=no
16590       ;;
16591
16592     openbsd*)
16593       hardcode_direct_F77=yes
16594       hardcode_shlibpath_var_F77=no
16595       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16596         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16597         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16598         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16599         export_dynamic_flag_spec_F77='${wl}-E'
16600       else
16601        case $host_os in
16602          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16603            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16604            hardcode_libdir_flag_spec_F77='-R$libdir'
16605            ;;
16606          *)
16607            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16608            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16609            ;;
16610        esac
16611       fi
16612       ;;
16613
16614     os2*)
16615       hardcode_libdir_flag_spec_F77='-L$libdir'
16616       hardcode_minus_L_F77=yes
16617       allow_undefined_flag_F77=unsupported
16618       archive_cmds_F77='$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'
16619       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16620       ;;
16621
16622     osf3*)
16623       if test "$GCC" = yes; then
16624         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16625         archive_cmds_F77='$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'
16626       else
16627         allow_undefined_flag_F77=' -expect_unresolved \*'
16628         archive_cmds_F77='$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'
16629       fi
16630       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16631       hardcode_libdir_separator_F77=:
16632       ;;
16633
16634     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16635       if test "$GCC" = yes; then
16636         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16637         archive_cmds_F77='$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'
16638         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16639       else
16640         allow_undefined_flag_F77=' -expect_unresolved \*'
16641         archive_cmds_F77='$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'
16642         archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
16643         $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'
16644
16645         # Both c and cxx compiler support -rpath directly
16646         hardcode_libdir_flag_spec_F77='-rpath $libdir'
16647       fi
16648       hardcode_libdir_separator_F77=:
16649       ;;
16650
16651     sco3.2v5*)
16652       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16653       hardcode_shlibpath_var_F77=no
16654       export_dynamic_flag_spec_F77='${wl}-Bexport'
16655       runpath_var=LD_RUN_PATH
16656       hardcode_runpath_var=yes
16657       ;;
16658
16659     solaris*)
16660       no_undefined_flag_F77=' -z text'
16661       if test "$GCC" = yes; then
16662         wlarc='${wl}'
16663         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16664         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16665           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16666       else
16667         wlarc=''
16668         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16669         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16670         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16671       fi
16672       hardcode_libdir_flag_spec_F77='-R$libdir'
16673       hardcode_shlibpath_var_F77=no
16674       case $host_os in
16675       solaris2.[0-5] | solaris2.[0-5].*) ;;
16676       *)
16677         # The compiler driver will combine linker options so we
16678         # cannot just pass the convience library names through
16679         # without $wl, iff we do not link with $LD.
16680         # Luckily, gcc supports the same syntax we need for Sun Studio.
16681         # Supported since Solaris 2.6 (maybe 2.5.1?)
16682         case $wlarc in
16683         '')
16684           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
16685         *)
16686           whole_archive_flag_spec_F77='${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' ;;
16687         esac ;;
16688       esac
16689       link_all_deplibs_F77=yes
16690       ;;
16691
16692     sunos4*)
16693       if test "x$host_vendor" = xsequent; then
16694         # Use $CC to link under sequent, because it throws in some extra .o
16695         # files that make .init and .fini sections work.
16696         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16697       else
16698         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16699       fi
16700       hardcode_libdir_flag_spec_F77='-L$libdir'
16701       hardcode_direct_F77=yes
16702       hardcode_minus_L_F77=yes
16703       hardcode_shlibpath_var_F77=no
16704       ;;
16705
16706     sysv4)
16707       case $host_vendor in
16708         sni)
16709           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16710           hardcode_direct_F77=yes # is this really true???
16711         ;;
16712         siemens)
16713           ## LD is ld it makes a PLAMLIB
16714           ## CC just makes a GrossModule.
16715           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16716           reload_cmds_F77='$CC -r -o $output$reload_objs'
16717           hardcode_direct_F77=no
16718         ;;
16719         motorola)
16720           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16721           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
16722         ;;
16723       esac
16724       runpath_var='LD_RUN_PATH'
16725       hardcode_shlibpath_var_F77=no
16726       ;;
16727
16728     sysv4.3*)
16729       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16730       hardcode_shlibpath_var_F77=no
16731       export_dynamic_flag_spec_F77='-Bexport'
16732       ;;
16733
16734     sysv4*MP*)
16735       if test -d /usr/nec; then
16736         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16737         hardcode_shlibpath_var_F77=no
16738         runpath_var=LD_RUN_PATH
16739         hardcode_runpath_var=yes
16740         ld_shlibs_F77=yes
16741       fi
16742       ;;
16743
16744     sysv4.2uw2*)
16745       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16746       hardcode_direct_F77=yes
16747       hardcode_minus_L_F77=no
16748       hardcode_shlibpath_var_F77=no
16749       hardcode_runpath_var=yes
16750       runpath_var=LD_RUN_PATH
16751       ;;
16752
16753    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
16754       no_undefined_flag_F77='${wl}-z ${wl}text'
16755       if test "$GCC" = yes; then
16756         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16757       else
16758         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16759       fi
16760       runpath_var='LD_RUN_PATH'
16761       hardcode_shlibpath_var_F77=no
16762       ;;
16763
16764     sysv5*)
16765       no_undefined_flag_F77=' -z text'
16766       # $CC -shared without GNU ld will not create a library from C++
16767       # object files and a static libstdc++, better avoid it by now
16768       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16769       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16770                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16771       hardcode_libdir_flag_spec_F77=
16772       hardcode_shlibpath_var_F77=no
16773       runpath_var='LD_RUN_PATH'
16774       ;;
16775
16776     uts4*)
16777       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16778       hardcode_libdir_flag_spec_F77='-L$libdir'
16779       hardcode_shlibpath_var_F77=no
16780       ;;
16781
16782     *)
16783       ld_shlibs_F77=no
16784       ;;
16785     esac
16786   fi
16787
16788 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16789 echo "${ECHO_T}$ld_shlibs_F77" >&6
16790 test "$ld_shlibs_F77" = no && can_build_shared=no
16791
16792 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16793 if test "$GCC" = yes; then
16794   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16795 fi
16796
16797 #
16798 # Do we need to explicitly link libc?
16799 #
16800 case "x$archive_cmds_need_lc_F77" in
16801 x|xyes)
16802   # Assume -lc should be added
16803   archive_cmds_need_lc_F77=yes
16804
16805   if test "$enable_shared" = yes && test "$GCC" = yes; then
16806     case $archive_cmds_F77 in
16807     *'~'*)
16808       # FIXME: we may have to deal with multi-command sequences.
16809       ;;
16810     '$CC '*)
16811       # Test whether the compiler implicitly links with -lc since on some
16812       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16813       # to ld, don't add -lc before -lgcc.
16814       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16815 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16816       $rm conftest*
16817       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16818
16819       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16820   (eval $ac_compile) 2>&5
16821   ac_status=$?
16822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16823   (exit $ac_status); } 2>conftest.err; then
16824         soname=conftest
16825         lib=conftest
16826         libobjs=conftest.$ac_objext
16827         deplibs=
16828         wl=$lt_prog_compiler_wl_F77
16829         compiler_flags=-v
16830         linker_flags=-v
16831         verstring=
16832         output_objdir=.
16833         libname=conftest
16834         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16835         allow_undefined_flag_F77=
16836         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16837   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16838   ac_status=$?
16839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16840   (exit $ac_status); }
16841         then
16842           archive_cmds_need_lc_F77=no
16843         else
16844           archive_cmds_need_lc_F77=yes
16845         fi
16846         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16847       else
16848         cat conftest.err 1>&5
16849       fi
16850       $rm conftest*
16851       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16852 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
16853       ;;
16854     esac
16855   fi
16856   ;;
16857 esac
16858
16859 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16860 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16861 library_names_spec=
16862 libname_spec='lib$name'
16863 soname_spec=
16864 shrext_cmds=".so"
16865 postinstall_cmds=
16866 postuninstall_cmds=
16867 finish_cmds=
16868 finish_eval=
16869 shlibpath_var=
16870 shlibpath_overrides_runpath=unknown
16871 version_type=none
16872 dynamic_linker="$host_os ld.so"
16873 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16874 if test "$GCC" = yes; then
16875   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16876   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16877     # if the path contains ";" then we assume it to be the separator
16878     # otherwise default to the standard path separator (i.e. ":") - it is
16879     # assumed that no part of a normal pathname contains ";" but that should
16880     # okay in the real world where ";" in dirpaths is itself problematic.
16881     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16882   else
16883     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16884   fi
16885 else
16886   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16887 fi
16888 need_lib_prefix=unknown
16889 hardcode_into_libs=no
16890
16891 # when you set need_version to no, make sure it does not cause -set_version
16892 # flags to be left without arguments
16893 need_version=unknown
16894
16895 case $host_os in
16896 aix3*)
16897   version_type=linux
16898   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16899   shlibpath_var=LIBPATH
16900
16901   # AIX 3 has no versioning support, so we append a major version to the name.
16902   soname_spec='${libname}${release}${shared_ext}$major'
16903   ;;
16904
16905 aix4* | aix5*)
16906   version_type=linux
16907   need_lib_prefix=no
16908   need_version=no
16909   hardcode_into_libs=yes
16910   if test "$host_cpu" = ia64; then
16911     # AIX 5 supports IA64
16912     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16913     shlibpath_var=LD_LIBRARY_PATH
16914   else
16915     # With GCC up to 2.95.x, collect2 would create an import file
16916     # for dependence libraries.  The import file would start with
16917     # the line `#! .'.  This would cause the generated library to
16918     # depend on `.', always an invalid library.  This was fixed in
16919     # development snapshots of GCC prior to 3.0.
16920     case $host_os in
16921       aix4 | aix4.[01] | aix4.[01].*)
16922       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16923            echo ' yes '
16924            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16925         :
16926       else
16927         can_build_shared=no
16928       fi
16929       ;;
16930     esac
16931     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16932     # soname into executable. Probably we can add versioning support to
16933     # collect2, so additional links can be useful in future.
16934     if test "$aix_use_runtimelinking" = yes; then
16935       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16936       # instead of lib<name>.a to let people know that these are not
16937       # typical AIX shared libraries.
16938       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16939     else
16940       # We preserve .a as extension for shared libraries through AIX4.2
16941       # and later when we are not doing run time linking.
16942       library_names_spec='${libname}${release}.a $libname.a'
16943       soname_spec='${libname}${release}${shared_ext}$major'
16944     fi
16945     shlibpath_var=LIBPATH
16946   fi
16947   ;;
16948
16949 amigaos*)
16950   library_names_spec='$libname.ixlibrary $libname.a'
16951   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16952   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'
16953   ;;
16954
16955 beos*)
16956   library_names_spec='${libname}${shared_ext}'
16957   dynamic_linker="$host_os ld.so"
16958   shlibpath_var=LIBRARY_PATH
16959   ;;
16960
16961 bsdi[45]*)
16962   version_type=linux
16963   need_version=no
16964   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16965   soname_spec='${libname}${release}${shared_ext}$major'
16966   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16967   shlibpath_var=LD_LIBRARY_PATH
16968   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16969   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16970   # the default ld.so.conf also contains /usr/contrib/lib and
16971   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16972   # libtool to hard-code these into programs
16973   ;;
16974
16975 cygwin* | mingw* | pw32*)
16976   version_type=windows
16977   shrext_cmds=".dll"
16978   need_version=no
16979   need_lib_prefix=no
16980
16981   case $GCC,$host_os in
16982   yes,cygwin* | yes,mingw* | yes,pw32*)
16983     library_names_spec='$libname.dll.a'
16984     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16985     postinstall_cmds='base_file=`basename \${file}`~
16986       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16987       dldir=$destdir/`dirname \$dlpath`~
16988       test -d \$dldir || mkdir -p \$dldir~
16989       $install_prog $dir/$dlname \$dldir/$dlname'
16990     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16991       dlpath=$dir/\$dldll~
16992        $rm \$dlpath'
16993     shlibpath_overrides_runpath=yes
16994
16995     case $host_os in
16996     cygwin*)
16997       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16998       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16999       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17000       ;;
17001     mingw*)
17002       # MinGW DLLs use traditional 'lib' prefix
17003       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17004       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17005       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17006         # It is most probably a Windows format PATH printed by
17007         # mingw gcc, but we are running on Cygwin. Gcc prints its search
17008         # path with ; separators, and with drive letters. We can handle the
17009         # drive letters (cygwin fileutils understands them), so leave them,
17010         # especially as we might pass files found there to a mingw objdump,
17011         # which wouldn't understand a cygwinified path. Ahh.
17012         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17013       else
17014         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17015       fi
17016       ;;
17017     pw32*)
17018       # pw32 DLLs use 'pw' prefix rather than 'lib'
17019       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17020       ;;
17021     esac
17022     ;;
17023
17024   *)
17025     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17026     ;;
17027   esac
17028   dynamic_linker='Win32 ld.exe'
17029   # FIXME: first we should search . and the directory the executable is in
17030   shlibpath_var=PATH
17031   ;;
17032
17033 darwin* | rhapsody*)
17034   dynamic_linker="$host_os dyld"
17035   version_type=darwin
17036   need_lib_prefix=no
17037   need_version=no
17038   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17039   soname_spec='${libname}${release}${major}$shared_ext'
17040   shlibpath_overrides_runpath=yes
17041   shlibpath_var=DYLD_LIBRARY_PATH
17042   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
17043   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17044   if test "$GCC" = yes; then
17045     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"`
17046   else
17047     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17048   fi
17049   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17050   ;;
17051
17052 dgux*)
17053   version_type=linux
17054   need_lib_prefix=no
17055   need_version=no
17056   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17057   soname_spec='${libname}${release}${shared_ext}$major'
17058   shlibpath_var=LD_LIBRARY_PATH
17059   ;;
17060
17061 freebsd1*)
17062   dynamic_linker=no
17063   ;;
17064
17065 kfreebsd*-gnu)
17066   version_type=linux
17067   need_lib_prefix=no
17068   need_version=no
17069   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17070   soname_spec='${libname}${release}${shared_ext}$major'
17071   shlibpath_var=LD_LIBRARY_PATH
17072   shlibpath_overrides_runpath=no
17073   hardcode_into_libs=yes
17074   dynamic_linker='GNU ld.so'
17075   ;;
17076
17077 freebsd* | dragonfly*)
17078   # DragonFly does not have aout.  When/if they implement a new
17079   # versioning mechanism, adjust this.
17080   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17081   version_type=freebsd-$objformat
17082   case $version_type in
17083     freebsd-elf*)
17084       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17085       need_version=no
17086       need_lib_prefix=no
17087       ;;
17088     freebsd-*)
17089       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17090       need_version=yes
17091       ;;
17092   esac
17093   shlibpath_var=LD_LIBRARY_PATH
17094   case $host_os in
17095   freebsd2*)
17096     shlibpath_overrides_runpath=yes
17097     ;;
17098   freebsd3.[01]* | freebsdelf3.[01]*)
17099     shlibpath_overrides_runpath=yes
17100     hardcode_into_libs=yes
17101     ;;
17102   *) # from 3.2 on
17103     shlibpath_overrides_runpath=no
17104     hardcode_into_libs=yes
17105     ;;
17106   esac
17107   ;;
17108
17109 gnu*)
17110   version_type=linux
17111   need_lib_prefix=no
17112   need_version=no
17113   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17114   soname_spec='${libname}${release}${shared_ext}$major'
17115   shlibpath_var=LD_LIBRARY_PATH
17116   hardcode_into_libs=yes
17117   ;;
17118
17119 hpux9* | hpux10* | hpux11*)
17120   # Give a soname corresponding to the major version so that dld.sl refuses to
17121   # link against other versions.
17122   version_type=sunos
17123   need_lib_prefix=no
17124   need_version=no
17125   case "$host_cpu" in
17126   ia64*)
17127     shrext_cmds='.so'
17128     hardcode_into_libs=yes
17129     dynamic_linker="$host_os dld.so"
17130     shlibpath_var=LD_LIBRARY_PATH
17131     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17132     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17133     soname_spec='${libname}${release}${shared_ext}$major'
17134     if test "X$HPUX_IA64_MODE" = X32; then
17135       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17136     else
17137       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17138     fi
17139     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17140     ;;
17141    hppa*64*)
17142      shrext_cmds='.sl'
17143      hardcode_into_libs=yes
17144      dynamic_linker="$host_os dld.sl"
17145      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17146      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17147      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17148      soname_spec='${libname}${release}${shared_ext}$major'
17149      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17150      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17151      ;;
17152    *)
17153     shrext_cmds='.sl'
17154     dynamic_linker="$host_os dld.sl"
17155     shlibpath_var=SHLIB_PATH
17156     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17157     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17158     soname_spec='${libname}${release}${shared_ext}$major'
17159     ;;
17160   esac
17161   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17162   postinstall_cmds='chmod 555 $lib'
17163   ;;
17164
17165 irix5* | irix6* | nonstopux*)
17166   case $host_os in
17167     nonstopux*) version_type=nonstopux ;;
17168     *)
17169         if test "$lt_cv_prog_gnu_ld" = yes; then
17170                 version_type=linux
17171         else
17172                 version_type=irix
17173         fi ;;
17174   esac
17175   need_lib_prefix=no
17176   need_version=no
17177   soname_spec='${libname}${release}${shared_ext}$major'
17178   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17179   case $host_os in
17180   irix5* | nonstopux*)
17181     libsuff= shlibsuff=
17182     ;;
17183   *)
17184     case $LD in # libtool.m4 will add one of these switches to LD
17185     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17186       libsuff= shlibsuff= libmagic=32-bit;;
17187     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17188       libsuff=32 shlibsuff=N32 libmagic=N32;;
17189     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17190       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17191     *) libsuff= shlibsuff= libmagic=never-match;;
17192     esac
17193     ;;
17194   esac
17195   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17196   shlibpath_overrides_runpath=no
17197   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17198   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17199   hardcode_into_libs=yes
17200   ;;
17201
17202 # No shared lib support for Linux oldld, aout, or coff.
17203 linux*oldld* | linux*aout* | linux*coff*)
17204   dynamic_linker=no
17205   ;;
17206
17207 # This must be Linux ELF.
17208 linux*)
17209   version_type=linux
17210   need_lib_prefix=no
17211   need_version=no
17212   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17213   soname_spec='${libname}${release}${shared_ext}$major'
17214   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17215   shlibpath_var=LD_LIBRARY_PATH
17216   shlibpath_overrides_runpath=no
17217   # This implies no fast_install, which is unacceptable.
17218   # Some rework will be needed to allow for fast_install
17219   # before this can be enabled.
17220   hardcode_into_libs=yes
17221
17222   # Append ld.so.conf contents to the search path
17223   if test -f /etc/ld.so.conf; then
17224     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' ' '`
17225     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17226   fi
17227
17228   # We used to test for /lib/ld.so.1 and disable shared libraries on
17229   # powerpc, because MkLinux only supported shared libraries with the
17230   # GNU dynamic linker.  Since this was broken with cross compilers,
17231   # most powerpc-linux boxes support dynamic linking these days and
17232   # people can always --disable-shared, the test was removed, and we
17233   # assume the GNU/Linux dynamic linker is in use.
17234   dynamic_linker='GNU/Linux ld.so'
17235   ;;
17236
17237 knetbsd*-gnu)
17238   version_type=linux
17239   need_lib_prefix=no
17240   need_version=no
17241   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17242   soname_spec='${libname}${release}${shared_ext}$major'
17243   shlibpath_var=LD_LIBRARY_PATH
17244   shlibpath_overrides_runpath=no
17245   hardcode_into_libs=yes
17246   dynamic_linker='GNU ld.so'
17247   ;;
17248
17249 netbsd*)
17250   version_type=sunos
17251   need_lib_prefix=no
17252   need_version=no
17253   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17254     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17255     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17256     dynamic_linker='NetBSD (a.out) ld.so'
17257   else
17258     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17259     soname_spec='${libname}${release}${shared_ext}$major'
17260     dynamic_linker='NetBSD ld.elf_so'
17261   fi
17262   shlibpath_var=LD_LIBRARY_PATH
17263   shlibpath_overrides_runpath=yes
17264   hardcode_into_libs=yes
17265   ;;
17266
17267 newsos6)
17268   version_type=linux
17269   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17270   shlibpath_var=LD_LIBRARY_PATH
17271   shlibpath_overrides_runpath=yes
17272   ;;
17273
17274 nto-qnx*)
17275   version_type=linux
17276   need_lib_prefix=no
17277   need_version=no
17278   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17279   soname_spec='${libname}${release}${shared_ext}$major'
17280   shlibpath_var=LD_LIBRARY_PATH
17281   shlibpath_overrides_runpath=yes
17282   ;;
17283
17284 openbsd*)
17285   version_type=sunos
17286   need_lib_prefix=no
17287   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17288   case $host_os in
17289     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17290     *)                         need_version=no  ;;
17291   esac
17292   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17293   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17294   shlibpath_var=LD_LIBRARY_PATH
17295   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17296     case $host_os in
17297       openbsd2.[89] | openbsd2.[89].*)
17298         shlibpath_overrides_runpath=no
17299         ;;
17300       *)
17301         shlibpath_overrides_runpath=yes
17302         ;;
17303       esac
17304   else
17305     shlibpath_overrides_runpath=yes
17306   fi
17307   ;;
17308
17309 os2*)
17310   libname_spec='$name'
17311   shrext_cmds=".dll"
17312   need_lib_prefix=no
17313   library_names_spec='$libname${shared_ext} $libname.a'
17314   dynamic_linker='OS/2 ld.exe'
17315   shlibpath_var=LIBPATH
17316   ;;
17317
17318 osf3* | osf4* | osf5*)
17319   version_type=osf
17320   need_lib_prefix=no
17321   need_version=no
17322   soname_spec='${libname}${release}${shared_ext}$major'
17323   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17324   shlibpath_var=LD_LIBRARY_PATH
17325   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17326   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17327   ;;
17328
17329 sco3.2v5*)
17330   version_type=osf
17331   soname_spec='${libname}${release}${shared_ext}$major'
17332   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17333   shlibpath_var=LD_LIBRARY_PATH
17334   ;;
17335
17336 solaris*)
17337   version_type=linux
17338   need_lib_prefix=no
17339   need_version=no
17340   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17341   soname_spec='${libname}${release}${shared_ext}$major'
17342   shlibpath_var=LD_LIBRARY_PATH
17343   shlibpath_overrides_runpath=yes
17344   hardcode_into_libs=yes
17345   # ldd complains unless libraries are executable
17346   postinstall_cmds='chmod +x $lib'
17347   ;;
17348
17349 sunos4*)
17350   version_type=sunos
17351   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17352   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17353   shlibpath_var=LD_LIBRARY_PATH
17354   shlibpath_overrides_runpath=yes
17355   if test "$with_gnu_ld" = yes; then
17356     need_lib_prefix=no
17357   fi
17358   need_version=yes
17359   ;;
17360
17361 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17362   version_type=linux
17363   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17364   soname_spec='${libname}${release}${shared_ext}$major'
17365   shlibpath_var=LD_LIBRARY_PATH
17366   case $host_vendor in
17367     sni)
17368       shlibpath_overrides_runpath=no
17369       need_lib_prefix=no
17370       export_dynamic_flag_spec='${wl}-Blargedynsym'
17371       runpath_var=LD_RUN_PATH
17372       ;;
17373     siemens)
17374       need_lib_prefix=no
17375       ;;
17376     motorola)
17377       need_lib_prefix=no
17378       need_version=no
17379       shlibpath_overrides_runpath=no
17380       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17381       ;;
17382   esac
17383   ;;
17384
17385 sysv4*MP*)
17386   if test -d /usr/nec ;then
17387     version_type=linux
17388     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17389     soname_spec='$libname${shared_ext}.$major'
17390     shlibpath_var=LD_LIBRARY_PATH
17391   fi
17392   ;;
17393
17394 uts4*)
17395   version_type=linux
17396   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17397   soname_spec='${libname}${release}${shared_ext}$major'
17398   shlibpath_var=LD_LIBRARY_PATH
17399   ;;
17400
17401 *)
17402   dynamic_linker=no
17403   ;;
17404 esac
17405 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17406 echo "${ECHO_T}$dynamic_linker" >&6
17407 test "$dynamic_linker" = no && can_build_shared=no
17408
17409 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17410 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17411 hardcode_action_F77=
17412 if test -n "$hardcode_libdir_flag_spec_F77" || \
17413    test -n "$runpath_var_F77" || \
17414    test "X$hardcode_automatic_F77" = "Xyes" ; then
17415
17416   # We can hardcode non-existant directories.
17417   if test "$hardcode_direct_F77" != no &&
17418      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17419      # have to relink, otherwise we might link with an installed library
17420      # when we should be linking with a yet-to-be-installed one
17421      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
17422      test "$hardcode_minus_L_F77" != no; then
17423     # Linking always hardcodes the temporary library directory.
17424     hardcode_action_F77=relink
17425   else
17426     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17427     hardcode_action_F77=immediate
17428   fi
17429 else
17430   # We cannot hardcode anything, or else we can only hardcode existing
17431   # directories.
17432   hardcode_action_F77=unsupported
17433 fi
17434 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
17435 echo "${ECHO_T}$hardcode_action_F77" >&6
17436
17437 if test "$hardcode_action_F77" = relink; then
17438   # Fast installation is not supported
17439   enable_fast_install=no
17440 elif test "$shlibpath_overrides_runpath" = yes ||
17441      test "$enable_shared" = no; then
17442   # Fast installation is not necessary
17443   enable_fast_install=needless
17444 fi
17445
17446 striplib=
17447 old_striplib=
17448 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17449 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17450 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17451   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17452   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17453   echo "$as_me:$LINENO: result: yes" >&5
17454 echo "${ECHO_T}yes" >&6
17455 else
17456 # FIXME - insert some real tests, host_os isn't really good enough
17457   case $host_os in
17458    darwin*)
17459        if test -n "$STRIP" ; then
17460          striplib="$STRIP -x"
17461          echo "$as_me:$LINENO: result: yes" >&5
17462 echo "${ECHO_T}yes" >&6
17463        else
17464   echo "$as_me:$LINENO: result: no" >&5
17465 echo "${ECHO_T}no" >&6
17466 fi
17467        ;;
17468    *)
17469   echo "$as_me:$LINENO: result: no" >&5
17470 echo "${ECHO_T}no" >&6
17471     ;;
17472   esac
17473 fi
17474
17475
17476
17477 # The else clause should only fire when bootstrapping the
17478 # libtool distribution, otherwise you forgot to ship ltmain.sh
17479 # with your package, and you will get complaints that there are
17480 # no rules to generate ltmain.sh.
17481 if test -f "$ltmain"; then
17482   # See if we are running on zsh, and set the options which allow our commands through
17483   # without removal of \ escapes.
17484   if test -n "${ZSH_VERSION+set}" ; then
17485     setopt NO_GLOB_SUBST
17486   fi
17487   # Now quote all the things that may contain metacharacters while being
17488   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17489   # variables and quote the copies for generation of the libtool script.
17490   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
17491     SED SHELL STRIP \
17492     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17493     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17494     deplibs_check_method reload_flag reload_cmds need_locks \
17495     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17496     lt_cv_sys_global_symbol_to_c_name_address \
17497     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17498     old_postinstall_cmds old_postuninstall_cmds \
17499     compiler_F77 \
17500     CC_F77 \
17501     LD_F77 \
17502     lt_prog_compiler_wl_F77 \
17503     lt_prog_compiler_pic_F77 \
17504     lt_prog_compiler_static_F77 \
17505     lt_prog_compiler_no_builtin_flag_F77 \
17506     export_dynamic_flag_spec_F77 \
17507     thread_safe_flag_spec_F77 \
17508     whole_archive_flag_spec_F77 \
17509     enable_shared_with_static_runtimes_F77 \
17510     old_archive_cmds_F77 \
17511     old_archive_from_new_cmds_F77 \
17512     predep_objects_F77 \
17513     postdep_objects_F77 \
17514     predeps_F77 \
17515     postdeps_F77 \
17516     compiler_lib_search_path_F77 \
17517     archive_cmds_F77 \
17518     archive_expsym_cmds_F77 \
17519     postinstall_cmds_F77 \
17520     postuninstall_cmds_F77 \
17521     old_archive_from_expsyms_cmds_F77 \
17522     allow_undefined_flag_F77 \
17523     no_undefined_flag_F77 \
17524     export_symbols_cmds_F77 \
17525     hardcode_libdir_flag_spec_F77 \
17526     hardcode_libdir_flag_spec_ld_F77 \
17527     hardcode_libdir_separator_F77 \
17528     hardcode_automatic_F77 \
17529     module_cmds_F77 \
17530     module_expsym_cmds_F77 \
17531     lt_cv_prog_compiler_c_o_F77 \
17532     exclude_expsyms_F77 \
17533     include_expsyms_F77; do
17534
17535     case $var in
17536     old_archive_cmds_F77 | \
17537     old_archive_from_new_cmds_F77 | \
17538     archive_cmds_F77 | \
17539     archive_expsym_cmds_F77 | \
17540     module_cmds_F77 | \
17541     module_expsym_cmds_F77 | \
17542     old_archive_from_expsyms_cmds_F77 | \
17543     export_symbols_cmds_F77 | \
17544     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17545     postinstall_cmds | postuninstall_cmds | \
17546     old_postinstall_cmds | old_postuninstall_cmds | \
17547     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17548       # Double-quote double-evaled strings.
17549       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17550       ;;
17551     *)
17552       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17553       ;;
17554     esac
17555   done
17556
17557   case $lt_echo in
17558   *'\$0 --fallback-echo"')
17559     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17560     ;;
17561   esac
17562
17563 cfgfile="$ofile"
17564
17565   cat <<__EOF__ >> "$cfgfile"
17566 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17567
17568 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17569
17570 # Shell to use when invoking shell scripts.
17571 SHELL=$lt_SHELL
17572
17573 # Whether or not to build shared libraries.
17574 build_libtool_libs=$enable_shared
17575
17576 # Whether or not to build static libraries.
17577 build_old_libs=$enable_static
17578
17579 # Whether or not to add -lc for building shared libraries.
17580 build_libtool_need_lc=$archive_cmds_need_lc_F77
17581
17582 # Whether or not to disallow shared libs when runtime libs are static
17583 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
17584
17585 # Whether or not to optimize for fast installation.
17586 fast_install=$enable_fast_install
17587
17588 # The host system.
17589 host_alias=$host_alias
17590 host=$host
17591 host_os=$host_os
17592
17593 # The build system.
17594 build_alias=$build_alias
17595 build=$build
17596 build_os=$build_os
17597
17598 # An echo program that does not interpret backslashes.
17599 echo=$lt_echo
17600
17601 # The archiver.
17602 AR=$lt_AR
17603 AR_FLAGS=$lt_AR_FLAGS
17604
17605 # A C compiler.
17606 LTCC=$lt_LTCC
17607
17608 # A language-specific compiler.
17609 CC=$lt_compiler_F77
17610
17611 # Is the compiler the GNU C compiler?
17612 with_gcc=$GCC_F77
17613
17614 # An ERE matcher.
17615 EGREP=$lt_EGREP
17616
17617 # The linker used to build libraries.
17618 LD=$lt_LD_F77
17619
17620 # Whether we need hard or soft links.
17621 LN_S=$lt_LN_S
17622
17623 # A BSD-compatible nm program.
17624 NM=$lt_NM
17625
17626 # A symbol stripping program
17627 STRIP=$lt_STRIP
17628
17629 # Used to examine libraries when file_magic_cmd begins "file"
17630 MAGIC_CMD=$MAGIC_CMD
17631
17632 # Used on cygwin: DLL creation program.
17633 DLLTOOL="$DLLTOOL"
17634
17635 # Used on cygwin: object dumper.
17636 OBJDUMP="$OBJDUMP"
17637
17638 # Used on cygwin: assembler.
17639 AS="$AS"
17640
17641 # The name of the directory that contains temporary libtool files.
17642 objdir=$objdir
17643
17644 # How to create reloadable object files.
17645 reload_flag=$lt_reload_flag
17646 reload_cmds=$lt_reload_cmds
17647
17648 # How to pass a linker flag through the compiler.
17649 wl=$lt_lt_prog_compiler_wl_F77
17650
17651 # Object file suffix (normally "o").
17652 objext="$ac_objext"
17653
17654 # Old archive suffix (normally "a").
17655 libext="$libext"
17656
17657 # Shared library suffix (normally ".so").
17658 shrext_cmds='$shrext_cmds'
17659
17660 # Executable file suffix (normally "").
17661 exeext="$exeext"
17662
17663 # Additional compiler flags for building library objects.
17664 pic_flag=$lt_lt_prog_compiler_pic_F77
17665 pic_mode=$pic_mode
17666
17667 # What is the maximum length of a command?
17668 max_cmd_len=$lt_cv_sys_max_cmd_len
17669
17670 # Does compiler simultaneously support -c and -o options?
17671 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17672
17673 # Must we lock files when doing compilation?
17674 need_locks=$lt_need_locks
17675
17676 # Do we need the lib prefix for modules?
17677 need_lib_prefix=$need_lib_prefix
17678
17679 # Do we need a version for libraries?
17680 need_version=$need_version
17681
17682 # Whether dlopen is supported.
17683 dlopen_support=$enable_dlopen
17684
17685 # Whether dlopen of programs is supported.
17686 dlopen_self=$enable_dlopen_self
17687
17688 # Whether dlopen of statically linked programs is supported.
17689 dlopen_self_static=$enable_dlopen_self_static
17690
17691 # Compiler flag to prevent dynamic linking.
17692 link_static_flag=$lt_lt_prog_compiler_static_F77
17693
17694 # Compiler flag to turn off builtin functions.
17695 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17696
17697 # Compiler flag to allow reflexive dlopens.
17698 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17699
17700 # Compiler flag to generate shared objects directly from archives.
17701 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17702
17703 # Compiler flag to generate thread-safe objects.
17704 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
17705
17706 # Library versioning type.
17707 version_type=$version_type
17708
17709 # Format of library name prefix.
17710 libname_spec=$lt_libname_spec
17711
17712 # List of archive names.  First name is the real one, the rest are links.
17713 # The last name is the one that the linker finds with -lNAME.
17714 library_names_spec=$lt_library_names_spec
17715
17716 # The coded name of the library, if different from the real name.
17717 soname_spec=$lt_soname_spec
17718
17719 # Commands used to build and install an old-style archive.
17720 RANLIB=$lt_RANLIB
17721 old_archive_cmds=$lt_old_archive_cmds_F77
17722 old_postinstall_cmds=$lt_old_postinstall_cmds
17723 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17724
17725 # Create an old-style archive from a shared archive.
17726 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17727
17728 # Create a temporary old-style archive to link instead of a shared archive.
17729 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17730
17731 # Commands used to build and install a shared archive.
17732 archive_cmds=$lt_archive_cmds_F77
17733 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17734 postinstall_cmds=$lt_postinstall_cmds
17735 postuninstall_cmds=$lt_postuninstall_cmds
17736
17737 # Commands used to build a loadable module (assumed same as above if empty)
17738 module_cmds=$lt_module_cmds_F77
17739 module_expsym_cmds=$lt_module_expsym_cmds_F77
17740
17741 # Commands to strip libraries.
17742 old_striplib=$lt_old_striplib
17743 striplib=$lt_striplib
17744
17745 # Dependencies to place before the objects being linked to create a
17746 # shared library.
17747 predep_objects=$lt_predep_objects_F77
17748
17749 # Dependencies to place after the objects being linked to create a
17750 # shared library.
17751 postdep_objects=$lt_postdep_objects_F77
17752
17753 # Dependencies to place before the objects being linked to create a
17754 # shared library.
17755 predeps=$lt_predeps_F77
17756
17757 # Dependencies to place after the objects being linked to create a
17758 # shared library.
17759 postdeps=$lt_postdeps_F77
17760
17761 # The library search path used internally by the compiler when linking
17762 # a shared library.
17763 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17764
17765 # Method to check whether dependent libraries are shared objects.
17766 deplibs_check_method=$lt_deplibs_check_method
17767
17768 # Command to use when deplibs_check_method == file_magic.
17769 file_magic_cmd=$lt_file_magic_cmd
17770
17771 # Flag that allows shared libraries with undefined symbols to be built.
17772 allow_undefined_flag=$lt_allow_undefined_flag_F77
17773
17774 # Flag that forces no undefined symbols.
17775 no_undefined_flag=$lt_no_undefined_flag_F77
17776
17777 # Commands used to finish a libtool library installation in a directory.
17778 finish_cmds=$lt_finish_cmds
17779
17780 # Same as above, but a single script fragment to be evaled but not shown.
17781 finish_eval=$lt_finish_eval
17782
17783 # Take the output of nm and produce a listing of raw symbols and C names.
17784 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17785
17786 # Transform the output of nm in a proper C declaration
17787 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17788
17789 # Transform the output of nm in a C name address pair
17790 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17791
17792 # This is the shared library runtime path variable.
17793 runpath_var=$runpath_var
17794
17795 # This is the shared library path variable.
17796 shlibpath_var=$shlibpath_var
17797
17798 # Is shlibpath searched before the hard-coded library search path?
17799 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17800
17801 # How to hardcode a shared library path into an executable.
17802 hardcode_action=$hardcode_action_F77
17803
17804 # Whether we should hardcode library paths into libraries.
17805 hardcode_into_libs=$hardcode_into_libs
17806
17807 # Flag to hardcode \$libdir into a binary during linking.
17808 # This must work even if \$libdir does not exist.
17809 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17810
17811 # If ld is used when linking, flag to hardcode \$libdir into
17812 # a binary during linking. This must work even if \$libdir does
17813 # not exist.
17814 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17815
17816 # Whether we need a single -rpath flag with a separated argument.
17817 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17818
17819 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17820 # resulting binary.
17821 hardcode_direct=$hardcode_direct_F77
17822
17823 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17824 # resulting binary.
17825 hardcode_minus_L=$hardcode_minus_L_F77
17826
17827 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17828 # the resulting binary.
17829 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17830
17831 # Set to yes if building a shared library automatically hardcodes DIR into the library
17832 # and all subsequent libraries and executables linked against it.
17833 hardcode_automatic=$hardcode_automatic_F77
17834
17835 # Variables whose values should be saved in libtool wrapper scripts and
17836 # restored at relink time.
17837 variables_saved_for_relink="$variables_saved_for_relink"
17838
17839 # Whether libtool must link a program against all its dependency libraries.
17840 link_all_deplibs=$link_all_deplibs_F77
17841
17842 # Compile-time system search path for libraries
17843 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17844
17845 # Run-time system search path for libraries
17846 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17847
17848 # Fix the shell variable \$srcfile for the compiler.
17849 fix_srcfile_path="$fix_srcfile_path_F77"
17850
17851 # Set to yes if exported symbols are required.
17852 always_export_symbols=$always_export_symbols_F77
17853
17854 # The commands to list exported symbols.
17855 export_symbols_cmds=$lt_export_symbols_cmds_F77
17856
17857 # The commands to extract the exported symbol list from a shared archive.
17858 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17859
17860 # Symbols that should not be listed in the preloaded symbols.
17861 exclude_expsyms=$lt_exclude_expsyms_F77
17862
17863 # Symbols that must always be exported.
17864 include_expsyms=$lt_include_expsyms_F77
17865
17866 # ### END LIBTOOL TAG CONFIG: $tagname
17867
17868 __EOF__
17869
17870
17871 else
17872   # If there is no Makefile yet, we rely on a make rule to execute
17873   # `config.status --recheck' to rerun these tests and create the
17874   # libtool script then.
17875   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17876   if test -f "$ltmain_in"; then
17877     test -f Makefile && make "$ltmain"
17878   fi
17879 fi
17880
17881
17882 ac_ext=c
17883 ac_cpp='$CPP $CPPFLAGS'
17884 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17885 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17886 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17887
17888 CC="$lt_save_CC"
17889
17890         else
17891           tagname=""
17892         fi
17893         ;;
17894
17895       GCJ)
17896         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17897
17898
17899
17900 # Source file extension for Java test sources.
17901 ac_ext=java
17902
17903 # Object file extension for compiled Java test sources.
17904 objext=o
17905 objext_GCJ=$objext
17906
17907 # Code to be used in simple compile tests
17908 lt_simple_compile_test_code="class foo {}\n"
17909
17910 # Code to be used in simple link tests
17911 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
17912
17913 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17914
17915 # If no C compiler was specified, use CC.
17916 LTCC=${LTCC-"$CC"}
17917
17918 # Allow CC to be a program name with arguments.
17919 compiler=$CC
17920
17921
17922 # save warnings/boilerplate of simple test code
17923 ac_outfile=conftest.$ac_objext
17924 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17925 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
17926 _lt_compiler_boilerplate=`cat conftest.err`
17927 $rm conftest*
17928
17929 ac_outfile=conftest.$ac_objext
17930 printf "$lt_simple_link_test_code" >conftest.$ac_ext
17931 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
17932 _lt_linker_boilerplate=`cat conftest.err`
17933 $rm conftest*
17934
17935
17936 # Allow CC to be a program name with arguments.
17937 lt_save_CC="$CC"
17938 CC=${GCJ-"gcj"}
17939 compiler=$CC
17940 compiler_GCJ=$CC
17941 for cc_temp in $compiler""; do
17942   case $cc_temp in
17943     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17944     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17945     \-*) ;;
17946     *) break;;
17947   esac
17948 done
17949 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17950
17951
17952 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17953 archive_cmds_need_lc_GCJ=no
17954
17955 old_archive_cmds_GCJ=$old_archive_cmds
17956
17957
17958 lt_prog_compiler_no_builtin_flag_GCJ=
17959
17960 if test "$GCC" = yes; then
17961   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17962
17963
17964 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17965 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
17966 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17967   echo $ECHO_N "(cached) $ECHO_C" >&6
17968 else
17969   lt_cv_prog_compiler_rtti_exceptions=no
17970   ac_outfile=conftest.$ac_objext
17971    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17972    lt_compiler_flag="-fno-rtti -fno-exceptions"
17973    # Insert the option either (1) after the last *FLAGS variable, or
17974    # (2) before a word containing "conftest.", or (3) at the end.
17975    # Note that $ac_compile itself does not contain backslashes and begins
17976    # with a dollar sign (not a hyphen), so the echo should work correctly.
17977    # The option is referenced via a variable to avoid confusing sed.
17978    lt_compile=`echo "$ac_compile" | $SED \
17979    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17980    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17981    -e 's:$: $lt_compiler_flag:'`
17982    (eval echo "\"\$as_me:17982: $lt_compile\"" >&5)
17983    (eval "$lt_compile" 2>conftest.err)
17984    ac_status=$?
17985    cat conftest.err >&5
17986    echo "$as_me:17986: \$? = $ac_status" >&5
17987    if (exit $ac_status) && test -s "$ac_outfile"; then
17988      # The compiler can only warn and ignore the option if not recognized
17989      # So say no if there are warnings other than the usual output.
17990      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
17991      $SED '/^$/d' conftest.err >conftest.er2
17992      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
17993        lt_cv_prog_compiler_rtti_exceptions=yes
17994      fi
17995    fi
17996    $rm conftest*
17997
17998 fi
17999 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
18000 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
18001
18002 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
18003     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
18004 else
18005     :
18006 fi
18007
18008 fi
18009
18010 lt_prog_compiler_wl_GCJ=
18011 lt_prog_compiler_pic_GCJ=
18012 lt_prog_compiler_static_GCJ=
18013
18014 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18015 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
18016
18017   if test "$GCC" = yes; then
18018     lt_prog_compiler_wl_GCJ='-Wl,'
18019     lt_prog_compiler_static_GCJ='-static'
18020
18021     case $host_os in
18022       aix*)
18023       # All AIX code is PIC.
18024       if test "$host_cpu" = ia64; then
18025         # AIX 5 now supports IA64 processor
18026         lt_prog_compiler_static_GCJ='-Bstatic'
18027       fi
18028       ;;
18029
18030     amigaos*)
18031       # FIXME: we need at least 68020 code to build shared libraries, but
18032       # adding the `-m68020' flag to GCC prevents building anything better,
18033       # like `-m68040'.
18034       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
18035       ;;
18036
18037     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18038       # PIC is the default for these OSes.
18039       ;;
18040
18041     mingw* | pw32* | os2*)
18042       # This hack is so that the source file can tell whether it is being
18043       # built for inclusion in a dll (and should export symbols for example).
18044       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18045       ;;
18046
18047     darwin* | rhapsody*)
18048       # PIC is the default on this platform
18049       # Common symbols not allowed in MH_DYLIB files
18050       lt_prog_compiler_pic_GCJ='-fno-common'
18051       ;;
18052
18053     msdosdjgpp*)
18054       # Just because we use GCC doesn't mean we suddenly get shared libraries
18055       # on systems that don't support them.
18056       lt_prog_compiler_can_build_shared_GCJ=no
18057       enable_shared=no
18058       ;;
18059
18060     sysv4*MP*)
18061       if test -d /usr/nec; then
18062         lt_prog_compiler_pic_GCJ=-Kconform_pic
18063       fi
18064       ;;
18065
18066     hpux*)
18067       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18068       # not for PA HP-UX.
18069       case "$host_cpu" in
18070       hppa*64*|ia64*)
18071         # +Z the default
18072         ;;
18073       *)
18074         lt_prog_compiler_pic_GCJ='-fPIC'
18075         ;;
18076       esac
18077       ;;
18078
18079     *)
18080       lt_prog_compiler_pic_GCJ='-fPIC'
18081       ;;
18082     esac
18083   else
18084     # PORTME Check for flag to pass linker flags through the system compiler.
18085     case $host_os in
18086     aix*)
18087       lt_prog_compiler_wl_GCJ='-Wl,'
18088       if test "$host_cpu" = ia64; then
18089         # AIX 5 now supports IA64 processor
18090         lt_prog_compiler_static_GCJ='-Bstatic'
18091       else
18092         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
18093       fi
18094       ;;
18095       darwin*)
18096         # PIC is the default on this platform
18097         # Common symbols not allowed in MH_DYLIB files
18098        case $cc_basename in
18099          xlc*)
18100          lt_prog_compiler_pic_GCJ='-qnocommon'
18101          lt_prog_compiler_wl_GCJ='-Wl,'
18102          ;;
18103        esac
18104        ;;
18105
18106     mingw* | pw32* | os2*)
18107       # This hack is so that the source file can tell whether it is being
18108       # built for inclusion in a dll (and should export symbols for example).
18109       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18110       ;;
18111
18112     hpux9* | hpux10* | hpux11*)
18113       lt_prog_compiler_wl_GCJ='-Wl,'
18114       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18115       # not for PA HP-UX.
18116       case "$host_cpu" in
18117       hppa*64*|ia64*)
18118         # +Z the default
18119         ;;
18120       *)
18121         lt_prog_compiler_pic_GCJ='+Z'
18122         ;;
18123       esac
18124       # Is there a better lt_prog_compiler_static that works with the bundled CC?
18125       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
18126       ;;
18127
18128     irix5* | irix6* | nonstopux*)
18129       lt_prog_compiler_wl_GCJ='-Wl,'
18130       # PIC (with -KPIC) is the default.
18131       lt_prog_compiler_static_GCJ='-non_shared'
18132       ;;
18133
18134     newsos6)
18135       lt_prog_compiler_pic_GCJ='-KPIC'
18136       lt_prog_compiler_static_GCJ='-Bstatic'
18137       ;;
18138
18139     linux*)
18140       case $cc_basename in
18141       icc* | ecc*)
18142         lt_prog_compiler_wl_GCJ='-Wl,'
18143         lt_prog_compiler_pic_GCJ='-KPIC'
18144         lt_prog_compiler_static_GCJ='-static'
18145         ;;
18146       pgcc* | pgf77* | pgf90*)
18147         # Portland Group compilers (*not* the Pentium gcc compiler,
18148         # which looks to be a dead project)
18149         lt_prog_compiler_wl_GCJ='-Wl,'
18150         lt_prog_compiler_pic_GCJ='-fpic'
18151         lt_prog_compiler_static_GCJ='-static'
18152         ;;
18153       ccc*)
18154         lt_prog_compiler_wl_GCJ='-Wl,'
18155         # All Alpha code is PIC.
18156         lt_prog_compiler_static_GCJ='-non_shared'
18157         ;;
18158       esac
18159       ;;
18160
18161     osf3* | osf4* | osf5*)
18162       lt_prog_compiler_wl_GCJ='-Wl,'
18163       # All OSF/1 code is PIC.
18164       lt_prog_compiler_static_GCJ='-non_shared'
18165       ;;
18166
18167     sco3.2v5*)
18168       lt_prog_compiler_pic_GCJ='-Kpic'
18169       lt_prog_compiler_static_GCJ='-dn'
18170       ;;
18171
18172     solaris*)
18173       lt_prog_compiler_pic_GCJ='-KPIC'
18174       lt_prog_compiler_static_GCJ='-Bstatic'
18175       case $cc_basename in
18176       f77* | f90* | f95*)
18177         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
18178       *)
18179         lt_prog_compiler_wl_GCJ='-Wl,';;
18180       esac
18181       ;;
18182
18183     sunos4*)
18184       lt_prog_compiler_wl_GCJ='-Qoption ld '
18185       lt_prog_compiler_pic_GCJ='-PIC'
18186       lt_prog_compiler_static_GCJ='-Bstatic'
18187       ;;
18188
18189     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18190       lt_prog_compiler_wl_GCJ='-Wl,'
18191       lt_prog_compiler_pic_GCJ='-KPIC'
18192       lt_prog_compiler_static_GCJ='-Bstatic'
18193       ;;
18194
18195     sysv4*MP*)
18196       if test -d /usr/nec ;then
18197         lt_prog_compiler_pic_GCJ='-Kconform_pic'
18198         lt_prog_compiler_static_GCJ='-Bstatic'
18199       fi
18200       ;;
18201
18202     unicos*)
18203       lt_prog_compiler_wl_GCJ='-Wl,'
18204       lt_prog_compiler_can_build_shared_GCJ=no
18205       ;;
18206
18207     uts4*)
18208       lt_prog_compiler_pic_GCJ='-pic'
18209       lt_prog_compiler_static_GCJ='-Bstatic'
18210       ;;
18211
18212     *)
18213       lt_prog_compiler_can_build_shared_GCJ=no
18214       ;;
18215     esac
18216   fi
18217
18218 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
18219 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
18220
18221 #
18222 # Check to make sure the PIC flag actually works.
18223 #
18224 if test -n "$lt_prog_compiler_pic_GCJ"; then
18225
18226 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
18227 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
18228 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
18229   echo $ECHO_N "(cached) $ECHO_C" >&6
18230 else
18231   lt_prog_compiler_pic_works_GCJ=no
18232   ac_outfile=conftest.$ac_objext
18233    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18234    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
18235    # Insert the option either (1) after the last *FLAGS variable, or
18236    # (2) before a word containing "conftest.", or (3) at the end.
18237    # Note that $ac_compile itself does not contain backslashes and begins
18238    # with a dollar sign (not a hyphen), so the echo should work correctly.
18239    # The option is referenced via a variable to avoid confusing sed.
18240    lt_compile=`echo "$ac_compile" | $SED \
18241    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18242    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18243    -e 's:$: $lt_compiler_flag:'`
18244    (eval echo "\"\$as_me:18244: $lt_compile\"" >&5)
18245    (eval "$lt_compile" 2>conftest.err)
18246    ac_status=$?
18247    cat conftest.err >&5
18248    echo "$as_me:18248: \$? = $ac_status" >&5
18249    if (exit $ac_status) && test -s "$ac_outfile"; then
18250      # The compiler can only warn and ignore the option if not recognized
18251      # So say no if there are warnings other than the usual output.
18252      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
18253      $SED '/^$/d' conftest.err >conftest.er2
18254      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
18255        lt_prog_compiler_pic_works_GCJ=yes
18256      fi
18257    fi
18258    $rm conftest*
18259
18260 fi
18261 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
18262 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
18263
18264 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
18265     case $lt_prog_compiler_pic_GCJ in
18266      "" | " "*) ;;
18267      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
18268      esac
18269 else
18270     lt_prog_compiler_pic_GCJ=
18271      lt_prog_compiler_can_build_shared_GCJ=no
18272 fi
18273
18274 fi
18275 case "$host_os" in
18276   # For platforms which do not support PIC, -DPIC is meaningless:
18277   *djgpp*)
18278     lt_prog_compiler_pic_GCJ=
18279     ;;
18280   *)
18281     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
18282     ;;
18283 esac
18284
18285 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18286 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
18287 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
18288   echo $ECHO_N "(cached) $ECHO_C" >&6
18289 else
18290   lt_cv_prog_compiler_c_o_GCJ=no
18291    $rm -r conftest 2>/dev/null
18292    mkdir conftest
18293    cd conftest
18294    mkdir out
18295    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18296
18297    lt_compiler_flag="-o out/conftest2.$ac_objext"
18298    # Insert the option either (1) after the last *FLAGS variable, or
18299    # (2) before a word containing "conftest.", or (3) at the end.
18300    # Note that $ac_compile itself does not contain backslashes and begins
18301    # with a dollar sign (not a hyphen), so the echo should work correctly.
18302    lt_compile=`echo "$ac_compile" | $SED \
18303    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18304    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18305    -e 's:$: $lt_compiler_flag:'`
18306    (eval echo "\"\$as_me:18306: $lt_compile\"" >&5)
18307    (eval "$lt_compile" 2>out/conftest.err)
18308    ac_status=$?
18309    cat out/conftest.err >&5
18310    echo "$as_me:18310: \$? = $ac_status" >&5
18311    if (exit $ac_status) && test -s out/conftest2.$ac_objext
18312    then
18313      # The compiler can only warn and ignore the option if not recognized
18314      # So say no if there are warnings
18315      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
18316      $SED '/^$/d' out/conftest.err >out/conftest.er2
18317      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18318        lt_cv_prog_compiler_c_o_GCJ=yes
18319      fi
18320    fi
18321    chmod u+w .
18322    $rm conftest*
18323    # SGI C++ compiler will create directory out/ii_files/ for
18324    # template instantiation
18325    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18326    $rm out/* && rmdir out
18327    cd ..
18328    rmdir conftest
18329    $rm conftest*
18330
18331 fi
18332 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
18333 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
18334
18335
18336 hard_links="nottested"
18337 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
18338   # do not overwrite the value of need_locks provided by the user
18339   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18340 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
18341   hard_links=yes
18342   $rm conftest*
18343   ln conftest.a conftest.b 2>/dev/null && hard_links=no
18344   touch conftest.a
18345   ln conftest.a conftest.b 2>&5 || hard_links=no
18346   ln conftest.a conftest.b 2>/dev/null && hard_links=no
18347   echo "$as_me:$LINENO: result: $hard_links" >&5
18348 echo "${ECHO_T}$hard_links" >&6
18349   if test "$hard_links" = no; then
18350     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18351 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18352     need_locks=warn
18353   fi
18354 else
18355   need_locks=no
18356 fi
18357
18358 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18359 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
18360
18361   runpath_var=
18362   allow_undefined_flag_GCJ=
18363   enable_shared_with_static_runtimes_GCJ=no
18364   archive_cmds_GCJ=
18365   archive_expsym_cmds_GCJ=
18366   old_archive_From_new_cmds_GCJ=
18367   old_archive_from_expsyms_cmds_GCJ=
18368   export_dynamic_flag_spec_GCJ=
18369   whole_archive_flag_spec_GCJ=
18370   thread_safe_flag_spec_GCJ=
18371   hardcode_libdir_flag_spec_GCJ=
18372   hardcode_libdir_flag_spec_ld_GCJ=
18373   hardcode_libdir_separator_GCJ=
18374   hardcode_direct_GCJ=no
18375   hardcode_minus_L_GCJ=no
18376   hardcode_shlibpath_var_GCJ=unsupported
18377   link_all_deplibs_GCJ=unknown
18378   hardcode_automatic_GCJ=no
18379   module_cmds_GCJ=
18380   module_expsym_cmds_GCJ=
18381   always_export_symbols_GCJ=no
18382   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18383   # include_expsyms should be a list of space-separated symbols to be *always*
18384   # included in the symbol list
18385   include_expsyms_GCJ=
18386   # exclude_expsyms can be an extended regexp of symbols to exclude
18387   # it will be wrapped by ` (' and `)$', so one must not match beginning or
18388   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
18389   # as well as any symbol that contains `d'.
18390   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
18391   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
18392   # platforms (ab)use it in PIC code, but their linkers get confused if
18393   # the symbol is explicitly referenced.  Since portable code cannot
18394   # rely on this symbol name, it's probably fine to never include it in
18395   # preloaded symbol tables.
18396   extract_expsyms_cmds=
18397   # Just being paranoid about ensuring that cc_basename is set.
18398   for cc_temp in $compiler""; do
18399   case $cc_temp in
18400     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18401     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18402     \-*) ;;
18403     *) break;;
18404   esac
18405 done
18406 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18407
18408   case $host_os in
18409   cygwin* | mingw* | pw32*)
18410     # FIXME: the MSVC++ port hasn't been tested in a loooong time
18411     # When not using gcc, we currently assume that we are using
18412     # Microsoft Visual C++.
18413     if test "$GCC" != yes; then
18414       with_gnu_ld=no
18415     fi
18416     ;;
18417   openbsd*)
18418     with_gnu_ld=no
18419     ;;
18420   esac
18421
18422   ld_shlibs_GCJ=yes
18423   if test "$with_gnu_ld" = yes; then
18424     # If archive_cmds runs LD, not CC, wlarc should be empty
18425     wlarc='${wl}'
18426
18427     # Set some defaults for GNU ld with shared library support. These
18428     # are reset later if shared libraries are not supported. Putting them
18429     # here allows them to be overridden if necessary.
18430     runpath_var=LD_RUN_PATH
18431     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
18432     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
18433     # ancient GNU ld didn't support --whole-archive et. al.
18434     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
18435         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18436       else
18437         whole_archive_flag_spec_GCJ=
18438     fi
18439     supports_anon_versioning=no
18440     case `$LD -v 2>/dev/null` in
18441       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18442       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18443       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18444       *\ 2.11.*) ;; # other 2.11 versions
18445       *) supports_anon_versioning=yes ;;
18446     esac
18447
18448     # See if GNU ld supports shared libraries.
18449     case $host_os in
18450     aix3* | aix4* | aix5*)
18451       # On AIX/PPC, the GNU linker is very broken
18452       if test "$host_cpu" != ia64; then
18453         ld_shlibs_GCJ=no
18454         cat <<EOF 1>&2
18455
18456 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
18457 *** to be unable to reliably create shared libraries on AIX.
18458 *** Therefore, libtool is disabling shared libraries support.  If you
18459 *** really care for shared libraries, you may want to modify your PATH
18460 *** so that a non-GNU linker is found, and then restart.
18461
18462 EOF
18463       fi
18464       ;;
18465
18466     amigaos*)
18467       archive_cmds_GCJ='$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)'
18468       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18469       hardcode_minus_L_GCJ=yes
18470
18471       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
18472       # that the semantics of dynamic libraries on AmigaOS, at least up
18473       # to version 4, is to share data among multiple programs linked
18474       # with the same dynamic library.  Since this doesn't match the
18475       # behavior of shared libraries on other platforms, we can't use
18476       # them.
18477       ld_shlibs_GCJ=no
18478       ;;
18479
18480     beos*)
18481       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18482         allow_undefined_flag_GCJ=unsupported
18483         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18484         # support --undefined.  This deserves some investigation.  FIXME
18485         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18486       else
18487         ld_shlibs_GCJ=no
18488       fi
18489       ;;
18490
18491     cygwin* | mingw* | pw32*)
18492       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
18493       # as there is no search path for DLLs.
18494       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18495       allow_undefined_flag_GCJ=unsupported
18496       always_export_symbols_GCJ=no
18497       enable_shared_with_static_runtimes_GCJ=yes
18498       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
18499
18500       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18501         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
18502         # If the export-symbols file already is a .def file (1st line
18503         # is EXPORTS), use it as is; otherwise, prepend...
18504         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18505           cp $export_symbols $output_objdir/$soname.def;
18506         else
18507           echo EXPORTS > $output_objdir/$soname.def;
18508           cat $export_symbols >> $output_objdir/$soname.def;
18509         fi~
18510         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
18511       else
18512         ld_shlibs_GCJ=no
18513       fi
18514       ;;
18515
18516     linux*)
18517       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18518         tmp_addflag=
18519         case $cc_basename,$host_cpu in
18520         pgcc*)                          # Portland Group C compiler
18521           whole_archive_flag_spec_GCJ='${wl}--whole-archive,`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
18522           tmp_addflag=' $pic_flag'
18523           ;;
18524         pgf77* | pgf90* )                       # Portland Group f77 and f90 compilers
18525           whole_archive_flag_spec_GCJ='${wl}--whole-archive,`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
18526           tmp_addflag=' $pic_flag -Mnomain' ;;
18527         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
18528           tmp_addflag=' -i_dynamic' ;;
18529         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
18530           tmp_addflag=' -i_dynamic -nofor_main' ;;
18531         ifc* | ifort*)                  # Intel Fortran compiler
18532           tmp_addflag=' -nofor_main' ;;
18533         esac
18534         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18535
18536         if test $supports_anon_versioning = yes; then
18537           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
18538   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18539   $echo "local: *; };" >> $output_objdir/$libname.ver~
18540           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18541         fi
18542       else
18543         ld_shlibs_GCJ=no
18544       fi
18545       ;;
18546
18547     netbsd*)
18548       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18549         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18550         wlarc=
18551       else
18552         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18553         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18554       fi
18555       ;;
18556
18557     solaris* | sysv5*)
18558       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
18559         ld_shlibs_GCJ=no
18560         cat <<EOF 1>&2
18561
18562 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
18563 *** create shared libraries on Solaris systems.  Therefore, libtool
18564 *** is disabling shared libraries support.  We urge you to upgrade GNU
18565 *** binutils to release 2.9.1 or newer.  Another option is to modify
18566 *** your PATH or compiler configuration so that the native linker is
18567 *** used, and then restart.
18568
18569 EOF
18570       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18571         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18572         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18573       else
18574         ld_shlibs_GCJ=no
18575       fi
18576       ;;
18577
18578     sunos4*)
18579       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18580       wlarc=
18581       hardcode_direct_GCJ=yes
18582       hardcode_shlibpath_var_GCJ=no
18583       ;;
18584
18585     *)
18586       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18587         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18588         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18589       else
18590         ld_shlibs_GCJ=no
18591       fi
18592       ;;
18593     esac
18594
18595     if test "$ld_shlibs_GCJ" = no; then
18596       runpath_var=
18597       hardcode_libdir_flag_spec_GCJ=
18598       export_dynamic_flag_spec_GCJ=
18599       whole_archive_flag_spec_GCJ=
18600     fi
18601   else
18602     # PORTME fill in a description of your system's linker (not GNU ld)
18603     case $host_os in
18604     aix3*)
18605       allow_undefined_flag_GCJ=unsupported
18606       always_export_symbols_GCJ=yes
18607       archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
18608       # Note: this linker hardcodes the directories in LIBPATH if there
18609       # are no directories specified by -L.
18610       hardcode_minus_L_GCJ=yes
18611       if test "$GCC" = yes && test -z "$link_static_flag"; then
18612         # Neither direct hardcoding nor static linking is supported with a
18613         # broken collect2.
18614         hardcode_direct_GCJ=unsupported
18615       fi
18616       ;;
18617
18618     aix4* | aix5*)
18619       if test "$host_cpu" = ia64; then
18620         # On IA64, the linker does run time linking by default, so we don't
18621         # have to do anything special.
18622         aix_use_runtimelinking=no
18623         exp_sym_flag='-Bexport'
18624         no_entry_flag=""
18625       else
18626         # If we're using GNU nm, then we don't want the "-C" option.
18627         # -C means demangle to AIX nm, but means don't demangle with GNU nm
18628         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18629           export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
18630         else
18631           export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
18632         fi
18633         aix_use_runtimelinking=no
18634
18635         # Test if we are trying to use run time linking or normal
18636         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18637         # need to do runtime linking.
18638         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18639           for ld_flag in $LDFLAGS; do
18640           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18641             aix_use_runtimelinking=yes
18642             break
18643           fi
18644           done
18645         esac
18646
18647         exp_sym_flag='-bexport'
18648         no_entry_flag='-bnoentry'
18649       fi
18650
18651       # When large executables or shared objects are built, AIX ld can
18652       # have problems creating the table of contents.  If linking a library
18653       # or program results in "error TOC overflow" add -mminimal-toc to
18654       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18655       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18656
18657       archive_cmds_GCJ=''
18658       hardcode_direct_GCJ=yes
18659       hardcode_libdir_separator_GCJ=':'
18660       link_all_deplibs_GCJ=yes
18661
18662       if test "$GCC" = yes; then
18663         case $host_os in aix4.[012]|aix4.[012].*)
18664         # We only want to do this on AIX 4.2 and lower, the check
18665         # below for broken collect2 doesn't work under 4.3+
18666           collect2name=`${CC} -print-prog-name=collect2`
18667           if test -f "$collect2name" && \
18668            strings "$collect2name" | grep resolve_lib_name >/dev/null
18669           then
18670           # We have reworked collect2
18671           hardcode_direct_GCJ=yes
18672           else
18673           # We have old collect2
18674           hardcode_direct_GCJ=unsupported
18675           # It fails to find uninstalled libraries when the uninstalled
18676           # path is not listed in the libpath.  Setting hardcode_minus_L
18677           # to unsupported forces relinking
18678           hardcode_minus_L_GCJ=yes
18679           hardcode_libdir_flag_spec_GCJ='-L$libdir'
18680           hardcode_libdir_separator_GCJ=
18681           fi
18682         esac
18683         shared_flag='-shared'
18684         if test "$aix_use_runtimelinking" = yes; then
18685           shared_flag="$shared_flag "'${wl}-G'
18686         fi
18687       else
18688         # not using gcc
18689         if test "$host_cpu" = ia64; then
18690         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18691         # chokes on -Wl,-G. The following line is correct:
18692           shared_flag='-G'
18693         else
18694         if test "$aix_use_runtimelinking" = yes; then
18695             shared_flag='${wl}-G'
18696           else
18697             shared_flag='${wl}-bM:SRE'
18698         fi
18699         fi
18700       fi
18701
18702       # It seems that -bexpall does not export symbols beginning with
18703       # underscore (_), so it is better to generate a list of symbols to export.
18704       always_export_symbols_GCJ=yes
18705       if test "$aix_use_runtimelinking" = yes; then
18706         # Warning - without using the other runtime loading flags (-brtl),
18707         # -berok will link without error, but may produce a broken library.
18708         allow_undefined_flag_GCJ='-berok'
18709        # Determine the default libpath from the value encoded in an empty executable.
18710        cat >conftest.$ac_ext <<_ACEOF
18711 /* confdefs.h.  */
18712 _ACEOF
18713 cat confdefs.h >>conftest.$ac_ext
18714 cat >>conftest.$ac_ext <<_ACEOF
18715 /* end confdefs.h.  */
18716
18717 int
18718 main ()
18719 {
18720
18721   ;
18722   return 0;
18723 }
18724 _ACEOF
18725 rm -f conftest.$ac_objext conftest$ac_exeext
18726 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18727   (eval $ac_link) 2>conftest.er1
18728   ac_status=$?
18729   grep -v '^ *+' conftest.er1 >conftest.err
18730   rm -f conftest.er1
18731   cat conftest.err >&5
18732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18733   (exit $ac_status); } &&
18734          { ac_try='test -z "$ac_c_werror_flag"
18735                          || test ! -s conftest.err'
18736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18737   (eval $ac_try) 2>&5
18738   ac_status=$?
18739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18740   (exit $ac_status); }; } &&
18741          { ac_try='test -s conftest$ac_exeext'
18742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18743   (eval $ac_try) 2>&5
18744   ac_status=$?
18745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18746   (exit $ac_status); }; }; then
18747
18748 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18749 }'`
18750 # Check for a 64-bit object if we didn't find anything.
18751 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; }
18752 }'`; fi
18753 else
18754   echo "$as_me: failed program was:" >&5
18755 sed 's/^/| /' conftest.$ac_ext >&5
18756
18757 fi
18758 rm -f conftest.err conftest.$ac_objext \
18759       conftest$ac_exeext conftest.$ac_ext
18760 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18761
18762        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18763         archive_expsym_cmds_GCJ="\$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"
18764        else
18765         if test "$host_cpu" = ia64; then
18766           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18767           allow_undefined_flag_GCJ="-z nodefs"
18768           archive_expsym_cmds_GCJ="\$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"
18769         else
18770          # Determine the default libpath from the value encoded in an empty executable.
18771          cat >conftest.$ac_ext <<_ACEOF
18772 /* confdefs.h.  */
18773 _ACEOF
18774 cat confdefs.h >>conftest.$ac_ext
18775 cat >>conftest.$ac_ext <<_ACEOF
18776 /* end confdefs.h.  */
18777
18778 int
18779 main ()
18780 {
18781
18782   ;
18783   return 0;
18784 }
18785 _ACEOF
18786 rm -f conftest.$ac_objext conftest$ac_exeext
18787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18788   (eval $ac_link) 2>conftest.er1
18789   ac_status=$?
18790   grep -v '^ *+' conftest.er1 >conftest.err
18791   rm -f conftest.er1
18792   cat conftest.err >&5
18793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18794   (exit $ac_status); } &&
18795          { ac_try='test -z "$ac_c_werror_flag"
18796                          || test ! -s conftest.err'
18797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18798   (eval $ac_try) 2>&5
18799   ac_status=$?
18800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18801   (exit $ac_status); }; } &&
18802          { ac_try='test -s conftest$ac_exeext'
18803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18804   (eval $ac_try) 2>&5
18805   ac_status=$?
18806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18807   (exit $ac_status); }; }; then
18808
18809 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18810 }'`
18811 # Check for a 64-bit object if we didn't find anything.
18812 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; }
18813 }'`; fi
18814 else
18815   echo "$as_me: failed program was:" >&5
18816 sed 's/^/| /' conftest.$ac_ext >&5
18817
18818 fi
18819 rm -f conftest.err conftest.$ac_objext \
18820       conftest$ac_exeext conftest.$ac_ext
18821 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18822
18823          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18824           # Warning - without using the other run time loading flags,
18825           # -berok will link without error, but may produce a broken library.
18826           no_undefined_flag_GCJ=' ${wl}-bernotok'
18827           allow_undefined_flag_GCJ=' ${wl}-berok'
18828           # -bexpall does not export symbols beginning with underscore (_)
18829           always_export_symbols_GCJ=yes
18830           # Exported symbols can be pulled into shared objects from archives
18831           whole_archive_flag_spec_GCJ=' '
18832           archive_cmds_need_lc_GCJ=yes
18833           # This is similar to how AIX traditionally builds it's shared libraries.
18834           archive_expsym_cmds_GCJ="\$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'
18835         fi
18836       fi
18837       ;;
18838
18839     amigaos*)
18840       archive_cmds_GCJ='$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)'
18841       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18842       hardcode_minus_L_GCJ=yes
18843       # see comment about different semantics on the GNU ld section
18844       ld_shlibs_GCJ=no
18845       ;;
18846
18847     bsdi[45]*)
18848       export_dynamic_flag_spec_GCJ=-rdynamic
18849       ;;
18850
18851     cygwin* | mingw* | pw32*)
18852       # When not using gcc, we currently assume that we are using
18853       # Microsoft Visual C++.
18854       # hardcode_libdir_flag_spec is actually meaningless, as there is
18855       # no search path for DLLs.
18856       hardcode_libdir_flag_spec_GCJ=' '
18857       allow_undefined_flag_GCJ=unsupported
18858       # Tell ltmain to make .lib files, not .a files.
18859       libext=lib
18860       # Tell ltmain to make .dll files, not .so files.
18861       shrext_cmds=".dll"
18862       # FIXME: Setting linknames here is a bad hack.
18863       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18864       # The linker will automatically build a .lib file if we build a DLL.
18865       old_archive_From_new_cmds_GCJ='true'
18866       # FIXME: Should let the user specify the lib program.
18867       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
18868       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18869       enable_shared_with_static_runtimes_GCJ=yes
18870       ;;
18871
18872     darwin* | rhapsody*)
18873       case "$host_os" in
18874         rhapsody* | darwin1.[012])
18875          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18876          ;;
18877        *) # Darwin 1.3 on
18878          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18879            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18880          else
18881            case ${MACOSX_DEPLOYMENT_TARGET} in
18882              10.[012])
18883                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18884                ;;
18885              10.*)
18886                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18887                ;;
18888            esac
18889          fi
18890          ;;
18891       esac
18892       archive_cmds_need_lc_GCJ=no
18893       hardcode_direct_GCJ=no
18894       hardcode_automatic_GCJ=yes
18895       hardcode_shlibpath_var_GCJ=unsupported
18896       whole_archive_flag_spec_GCJ=''
18897       link_all_deplibs_GCJ=yes
18898     if test "$GCC" = yes ; then
18899         output_verbose_link_cmd='echo'
18900         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18901       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18902       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
18903       archive_expsym_cmds_GCJ='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}'
18904       module_expsym_cmds_GCJ='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}'
18905     else
18906       case $cc_basename in
18907         xlc*)
18908          output_verbose_link_cmd='echo'
18909          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
18910          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18911           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
18912          archive_expsym_cmds_GCJ='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}'
18913           module_expsym_cmds_GCJ='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}'
18914           ;;
18915        *)
18916          ld_shlibs_GCJ=no
18917           ;;
18918       esac
18919     fi
18920       ;;
18921
18922     dgux*)
18923       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18924       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18925       hardcode_shlibpath_var_GCJ=no
18926       ;;
18927
18928     freebsd1*)
18929       ld_shlibs_GCJ=no
18930       ;;
18931
18932     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18933     # support.  Future versions do this automatically, but an explicit c++rt0.o
18934     # does not break anything, and helps significantly (at the cost of a little
18935     # extra space).
18936     freebsd2.2*)
18937       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18938       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18939       hardcode_direct_GCJ=yes
18940       hardcode_shlibpath_var_GCJ=no
18941       ;;
18942
18943     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18944     freebsd2*)
18945       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18946       hardcode_direct_GCJ=yes
18947       hardcode_minus_L_GCJ=yes
18948       hardcode_shlibpath_var_GCJ=no
18949       ;;
18950
18951     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18952     freebsd* | kfreebsd*-gnu | dragonfly*)
18953       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18954       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18955       hardcode_direct_GCJ=yes
18956       hardcode_shlibpath_var_GCJ=no
18957       ;;
18958
18959     hpux9*)
18960       if test "$GCC" = yes; then
18961         archive_cmds_GCJ='$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'
18962       else
18963         archive_cmds_GCJ='$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'
18964       fi
18965       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18966       hardcode_libdir_separator_GCJ=:
18967       hardcode_direct_GCJ=yes
18968
18969       # hardcode_minus_L: Not really in the search PATH,
18970       # but as the default location of the library.
18971       hardcode_minus_L_GCJ=yes
18972       export_dynamic_flag_spec_GCJ='${wl}-E'
18973       ;;
18974
18975     hpux10* | hpux11*)
18976       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18977         case "$host_cpu" in
18978         hppa*64*|ia64*)
18979           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18980           ;;
18981         *)
18982           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18983           ;;
18984         esac
18985       else
18986         case "$host_cpu" in
18987         hppa*64*|ia64*)
18988           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
18989           ;;
18990         *)
18991           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18992           ;;
18993         esac
18994       fi
18995       if test "$with_gnu_ld" = no; then
18996         case "$host_cpu" in
18997         hppa*64*)
18998           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18999           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
19000           hardcode_libdir_separator_GCJ=:
19001           hardcode_direct_GCJ=no
19002           hardcode_shlibpath_var_GCJ=no
19003           ;;
19004         ia64*)
19005           hardcode_libdir_flag_spec_GCJ='-L$libdir'
19006           hardcode_direct_GCJ=no
19007           hardcode_shlibpath_var_GCJ=no
19008
19009           # hardcode_minus_L: Not really in the search PATH,
19010           # but as the default location of the library.
19011           hardcode_minus_L_GCJ=yes
19012           ;;
19013         *)
19014           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19015           hardcode_libdir_separator_GCJ=:
19016           hardcode_direct_GCJ=yes
19017           export_dynamic_flag_spec_GCJ='${wl}-E'
19018
19019           # hardcode_minus_L: Not really in the search PATH,
19020           # but as the default location of the library.
19021           hardcode_minus_L_GCJ=yes
19022           ;;
19023         esac
19024       fi
19025       ;;
19026
19027     irix5* | irix6* | nonstopux*)
19028       if test "$GCC" = yes; then
19029         archive_cmds_GCJ='$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'
19030       else
19031         archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
19032         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
19033       fi
19034       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19035       hardcode_libdir_separator_GCJ=:
19036       link_all_deplibs_GCJ=yes
19037       ;;
19038
19039     netbsd*)
19040       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19041         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
19042       else
19043         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
19044       fi
19045       hardcode_libdir_flag_spec_GCJ='-R$libdir'
19046       hardcode_direct_GCJ=yes
19047       hardcode_shlibpath_var_GCJ=no
19048       ;;
19049
19050     newsos6)
19051       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19052       hardcode_direct_GCJ=yes
19053       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19054       hardcode_libdir_separator_GCJ=:
19055       hardcode_shlibpath_var_GCJ=no
19056       ;;
19057
19058     openbsd*)
19059       hardcode_direct_GCJ=yes
19060       hardcode_shlibpath_var_GCJ=no
19061       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19062         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19063         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19064         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19065         export_dynamic_flag_spec_GCJ='${wl}-E'
19066       else
19067        case $host_os in
19068          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19069            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19070            hardcode_libdir_flag_spec_GCJ='-R$libdir'
19071            ;;
19072          *)
19073            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19074            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19075            ;;
19076        esac
19077       fi
19078       ;;
19079
19080     os2*)
19081       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19082       hardcode_minus_L_GCJ=yes
19083       allow_undefined_flag_GCJ=unsupported
19084       archive_cmds_GCJ='$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'
19085       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19086       ;;
19087
19088     osf3*)
19089       if test "$GCC" = yes; then
19090         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19091         archive_cmds_GCJ='$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'
19092       else
19093         allow_undefined_flag_GCJ=' -expect_unresolved \*'
19094         archive_cmds_GCJ='$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'
19095       fi
19096       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19097       hardcode_libdir_separator_GCJ=:
19098       ;;
19099
19100     osf4* | osf5*)      # as osf3* with the addition of -msym flag
19101       if test "$GCC" = yes; then
19102         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19103         archive_cmds_GCJ='$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'
19104         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19105       else
19106         allow_undefined_flag_GCJ=' -expect_unresolved \*'
19107         archive_cmds_GCJ='$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'
19108         archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
19109         $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'
19110
19111         # Both c and cxx compiler support -rpath directly
19112         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
19113       fi
19114       hardcode_libdir_separator_GCJ=:
19115       ;;
19116
19117     sco3.2v5*)
19118       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19119       hardcode_shlibpath_var_GCJ=no
19120       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
19121       runpath_var=LD_RUN_PATH
19122       hardcode_runpath_var=yes
19123       ;;
19124
19125     solaris*)
19126       no_undefined_flag_GCJ=' -z text'
19127       if test "$GCC" = yes; then
19128         wlarc='${wl}'
19129         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19130         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19131           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19132       else
19133         wlarc=''
19134         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19135         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19136         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19137       fi
19138       hardcode_libdir_flag_spec_GCJ='-R$libdir'
19139       hardcode_shlibpath_var_GCJ=no
19140       case $host_os in
19141       solaris2.[0-5] | solaris2.[0-5].*) ;;
19142       *)
19143         # The compiler driver will combine linker options so we
19144         # cannot just pass the convience library names through
19145         # without $wl, iff we do not link with $LD.
19146         # Luckily, gcc supports the same syntax we need for Sun Studio.
19147         # Supported since Solaris 2.6 (maybe 2.5.1?)
19148         case $wlarc in
19149         '')
19150           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
19151         *)
19152           whole_archive_flag_spec_GCJ='${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' ;;
19153         esac ;;
19154       esac
19155       link_all_deplibs_GCJ=yes
19156       ;;
19157
19158     sunos4*)
19159       if test "x$host_vendor" = xsequent; then
19160         # Use $CC to link under sequent, because it throws in some extra .o
19161         # files that make .init and .fini sections work.
19162         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19163       else
19164         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19165       fi
19166       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19167       hardcode_direct_GCJ=yes
19168       hardcode_minus_L_GCJ=yes
19169       hardcode_shlibpath_var_GCJ=no
19170       ;;
19171
19172     sysv4)
19173       case $host_vendor in
19174         sni)
19175           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19176           hardcode_direct_GCJ=yes # is this really true???
19177         ;;
19178         siemens)
19179           ## LD is ld it makes a PLAMLIB
19180           ## CC just makes a GrossModule.
19181           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19182           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
19183           hardcode_direct_GCJ=no
19184         ;;
19185         motorola)
19186           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19187           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
19188         ;;
19189       esac
19190       runpath_var='LD_RUN_PATH'
19191       hardcode_shlibpath_var_GCJ=no
19192       ;;
19193
19194     sysv4.3*)
19195       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19196       hardcode_shlibpath_var_GCJ=no
19197       export_dynamic_flag_spec_GCJ='-Bexport'
19198       ;;
19199
19200     sysv4*MP*)
19201       if test -d /usr/nec; then
19202         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19203         hardcode_shlibpath_var_GCJ=no
19204         runpath_var=LD_RUN_PATH
19205         hardcode_runpath_var=yes
19206         ld_shlibs_GCJ=yes
19207       fi
19208       ;;
19209
19210     sysv4.2uw2*)
19211       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19212       hardcode_direct_GCJ=yes
19213       hardcode_minus_L_GCJ=no
19214       hardcode_shlibpath_var_GCJ=no
19215       hardcode_runpath_var=yes
19216       runpath_var=LD_RUN_PATH
19217       ;;
19218
19219    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
19220       no_undefined_flag_GCJ='${wl}-z ${wl}text'
19221       if test "$GCC" = yes; then
19222         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19223       else
19224         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19225       fi
19226       runpath_var='LD_RUN_PATH'
19227       hardcode_shlibpath_var_GCJ=no
19228       ;;
19229
19230     sysv5*)
19231       no_undefined_flag_GCJ=' -z text'
19232       # $CC -shared without GNU ld will not create a library from C++
19233       # object files and a static libstdc++, better avoid it by now
19234       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19235       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19236                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19237       hardcode_libdir_flag_spec_GCJ=
19238       hardcode_shlibpath_var_GCJ=no
19239       runpath_var='LD_RUN_PATH'
19240       ;;
19241
19242     uts4*)
19243       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19244       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19245       hardcode_shlibpath_var_GCJ=no
19246       ;;
19247
19248     *)
19249       ld_shlibs_GCJ=no
19250       ;;
19251     esac
19252   fi
19253
19254 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
19255 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
19256 test "$ld_shlibs_GCJ" = no && can_build_shared=no
19257
19258 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19259 if test "$GCC" = yes; then
19260   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19261 fi
19262
19263 #
19264 # Do we need to explicitly link libc?
19265 #
19266 case "x$archive_cmds_need_lc_GCJ" in
19267 x|xyes)
19268   # Assume -lc should be added
19269   archive_cmds_need_lc_GCJ=yes
19270
19271   if test "$enable_shared" = yes && test "$GCC" = yes; then
19272     case $archive_cmds_GCJ in
19273     *'~'*)
19274       # FIXME: we may have to deal with multi-command sequences.
19275       ;;
19276     '$CC '*)
19277       # Test whether the compiler implicitly links with -lc since on some
19278       # systems, -lgcc has to come before -lc. If gcc already passes -lc
19279       # to ld, don't add -lc before -lgcc.
19280       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19281 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
19282       $rm conftest*
19283       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19284
19285       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19286   (eval $ac_compile) 2>&5
19287   ac_status=$?
19288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19289   (exit $ac_status); } 2>conftest.err; then
19290         soname=conftest
19291         lib=conftest
19292         libobjs=conftest.$ac_objext
19293         deplibs=
19294         wl=$lt_prog_compiler_wl_GCJ
19295         compiler_flags=-v
19296         linker_flags=-v
19297         verstring=
19298         output_objdir=.
19299         libname=conftest
19300         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
19301         allow_undefined_flag_GCJ=
19302         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19303   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19304   ac_status=$?
19305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19306   (exit $ac_status); }
19307         then
19308           archive_cmds_need_lc_GCJ=no
19309         else
19310           archive_cmds_need_lc_GCJ=yes
19311         fi
19312         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
19313       else
19314         cat conftest.err 1>&5
19315       fi
19316       $rm conftest*
19317       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
19318 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
19319       ;;
19320     esac
19321   fi
19322   ;;
19323 esac
19324
19325 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19326 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
19327 library_names_spec=
19328 libname_spec='lib$name'
19329 soname_spec=
19330 shrext_cmds=".so"
19331 postinstall_cmds=
19332 postuninstall_cmds=
19333 finish_cmds=
19334 finish_eval=
19335 shlibpath_var=
19336 shlibpath_overrides_runpath=unknown
19337 version_type=none
19338 dynamic_linker="$host_os ld.so"
19339 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19340 if test "$GCC" = yes; then
19341   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19342   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19343     # if the path contains ";" then we assume it to be the separator
19344     # otherwise default to the standard path separator (i.e. ":") - it is
19345     # assumed that no part of a normal pathname contains ";" but that should
19346     # okay in the real world where ";" in dirpaths is itself problematic.
19347     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19348   else
19349     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19350   fi
19351 else
19352   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19353 fi
19354 need_lib_prefix=unknown
19355 hardcode_into_libs=no
19356
19357 # when you set need_version to no, make sure it does not cause -set_version
19358 # flags to be left without arguments
19359 need_version=unknown
19360
19361 case $host_os in
19362 aix3*)
19363   version_type=linux
19364   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19365   shlibpath_var=LIBPATH
19366
19367   # AIX 3 has no versioning support, so we append a major version to the name.
19368   soname_spec='${libname}${release}${shared_ext}$major'
19369   ;;
19370
19371 aix4* | aix5*)
19372   version_type=linux
19373   need_lib_prefix=no
19374   need_version=no
19375   hardcode_into_libs=yes
19376   if test "$host_cpu" = ia64; then
19377     # AIX 5 supports IA64
19378     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19379     shlibpath_var=LD_LIBRARY_PATH
19380   else
19381     # With GCC up to 2.95.x, collect2 would create an import file
19382     # for dependence libraries.  The import file would start with
19383     # the line `#! .'.  This would cause the generated library to
19384     # depend on `.', always an invalid library.  This was fixed in
19385     # development snapshots of GCC prior to 3.0.
19386     case $host_os in
19387       aix4 | aix4.[01] | aix4.[01].*)
19388       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19389            echo ' yes '
19390            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19391         :
19392       else
19393         can_build_shared=no
19394       fi
19395       ;;
19396     esac
19397     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19398     # soname into executable. Probably we can add versioning support to
19399     # collect2, so additional links can be useful in future.
19400     if test "$aix_use_runtimelinking" = yes; then
19401       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19402       # instead of lib<name>.a to let people know that these are not
19403       # typical AIX shared libraries.
19404       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19405     else
19406       # We preserve .a as extension for shared libraries through AIX4.2
19407       # and later when we are not doing run time linking.
19408       library_names_spec='${libname}${release}.a $libname.a'
19409       soname_spec='${libname}${release}${shared_ext}$major'
19410     fi
19411     shlibpath_var=LIBPATH
19412   fi
19413   ;;
19414
19415 amigaos*)
19416   library_names_spec='$libname.ixlibrary $libname.a'
19417   # Create ${libname}_ixlibrary.a entries in /sys/libs.
19418   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'
19419   ;;
19420
19421 beos*)
19422   library_names_spec='${libname}${shared_ext}'
19423   dynamic_linker="$host_os ld.so"
19424   shlibpath_var=LIBRARY_PATH
19425   ;;
19426
19427 bsdi[45]*)
19428   version_type=linux
19429   need_version=no
19430   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19431   soname_spec='${libname}${release}${shared_ext}$major'
19432   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19433   shlibpath_var=LD_LIBRARY_PATH
19434   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19435   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19436   # the default ld.so.conf also contains /usr/contrib/lib and
19437   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19438   # libtool to hard-code these into programs
19439   ;;
19440
19441 cygwin* | mingw* | pw32*)
19442   version_type=windows
19443   shrext_cmds=".dll"
19444   need_version=no
19445   need_lib_prefix=no
19446
19447   case $GCC,$host_os in
19448   yes,cygwin* | yes,mingw* | yes,pw32*)
19449     library_names_spec='$libname.dll.a'
19450     # DLL is installed to $(libdir)/../bin by postinstall_cmds
19451     postinstall_cmds='base_file=`basename \${file}`~
19452       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19453       dldir=$destdir/`dirname \$dlpath`~
19454       test -d \$dldir || mkdir -p \$dldir~
19455       $install_prog $dir/$dlname \$dldir/$dlname'
19456     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19457       dlpath=$dir/\$dldll~
19458        $rm \$dlpath'
19459     shlibpath_overrides_runpath=yes
19460
19461     case $host_os in
19462     cygwin*)
19463       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19464       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19465       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19466       ;;
19467     mingw*)
19468       # MinGW DLLs use traditional 'lib' prefix
19469       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19470       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19471       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19472         # It is most probably a Windows format PATH printed by
19473         # mingw gcc, but we are running on Cygwin. Gcc prints its search
19474         # path with ; separators, and with drive letters. We can handle the
19475         # drive letters (cygwin fileutils understands them), so leave them,
19476         # especially as we might pass files found there to a mingw objdump,
19477         # which wouldn't understand a cygwinified path. Ahh.
19478         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19479       else
19480         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19481       fi
19482       ;;
19483     pw32*)
19484       # pw32 DLLs use 'pw' prefix rather than 'lib'
19485       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19486       ;;
19487     esac
19488     ;;
19489
19490   *)
19491     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19492     ;;
19493   esac
19494   dynamic_linker='Win32 ld.exe'
19495   # FIXME: first we should search . and the directory the executable is in
19496   shlibpath_var=PATH
19497   ;;
19498
19499 darwin* | rhapsody*)
19500   dynamic_linker="$host_os dyld"
19501   version_type=darwin
19502   need_lib_prefix=no
19503   need_version=no
19504   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19505   soname_spec='${libname}${release}${major}$shared_ext'
19506   shlibpath_overrides_runpath=yes
19507   shlibpath_var=DYLD_LIBRARY_PATH
19508   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
19509   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
19510   if test "$GCC" = yes; then
19511     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"`
19512   else
19513     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
19514   fi
19515   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19516   ;;
19517
19518 dgux*)
19519   version_type=linux
19520   need_lib_prefix=no
19521   need_version=no
19522   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19523   soname_spec='${libname}${release}${shared_ext}$major'
19524   shlibpath_var=LD_LIBRARY_PATH
19525   ;;
19526
19527 freebsd1*)
19528   dynamic_linker=no
19529   ;;
19530
19531 kfreebsd*-gnu)
19532   version_type=linux
19533   need_lib_prefix=no
19534   need_version=no
19535   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19536   soname_spec='${libname}${release}${shared_ext}$major'
19537   shlibpath_var=LD_LIBRARY_PATH
19538   shlibpath_overrides_runpath=no
19539   hardcode_into_libs=yes
19540   dynamic_linker='GNU ld.so'
19541   ;;
19542
19543 freebsd* | dragonfly*)
19544   # DragonFly does not have aout.  When/if they implement a new
19545   # versioning mechanism, adjust this.
19546   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
19547   version_type=freebsd-$objformat
19548   case $version_type in
19549     freebsd-elf*)
19550       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19551       need_version=no
19552       need_lib_prefix=no
19553       ;;
19554     freebsd-*)
19555       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19556       need_version=yes
19557       ;;
19558   esac
19559   shlibpath_var=LD_LIBRARY_PATH
19560   case $host_os in
19561   freebsd2*)
19562     shlibpath_overrides_runpath=yes
19563     ;;
19564   freebsd3.[01]* | freebsdelf3.[01]*)
19565     shlibpath_overrides_runpath=yes
19566     hardcode_into_libs=yes
19567     ;;
19568   *) # from 3.2 on
19569     shlibpath_overrides_runpath=no
19570     hardcode_into_libs=yes
19571     ;;
19572   esac
19573   ;;
19574
19575 gnu*)
19576   version_type=linux
19577   need_lib_prefix=no
19578   need_version=no
19579   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19580   soname_spec='${libname}${release}${shared_ext}$major'
19581   shlibpath_var=LD_LIBRARY_PATH
19582   hardcode_into_libs=yes
19583   ;;
19584
19585 hpux9* | hpux10* | hpux11*)
19586   # Give a soname corresponding to the major version so that dld.sl refuses to
19587   # link against other versions.
19588   version_type=sunos
19589   need_lib_prefix=no
19590   need_version=no
19591   case "$host_cpu" in
19592   ia64*)
19593     shrext_cmds='.so'
19594     hardcode_into_libs=yes
19595     dynamic_linker="$host_os dld.so"
19596     shlibpath_var=LD_LIBRARY_PATH
19597     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19598     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19599     soname_spec='${libname}${release}${shared_ext}$major'
19600     if test "X$HPUX_IA64_MODE" = X32; then
19601       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19602     else
19603       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19604     fi
19605     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19606     ;;
19607    hppa*64*)
19608      shrext_cmds='.sl'
19609      hardcode_into_libs=yes
19610      dynamic_linker="$host_os dld.sl"
19611      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19612      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19613      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19614      soname_spec='${libname}${release}${shared_ext}$major'
19615      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19616      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19617      ;;
19618    *)
19619     shrext_cmds='.sl'
19620     dynamic_linker="$host_os dld.sl"
19621     shlibpath_var=SHLIB_PATH
19622     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19623     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19624     soname_spec='${libname}${release}${shared_ext}$major'
19625     ;;
19626   esac
19627   # HP-UX runs *really* slowly unless shared libraries are mode 555.
19628   postinstall_cmds='chmod 555 $lib'
19629   ;;
19630
19631 irix5* | irix6* | nonstopux*)
19632   case $host_os in
19633     nonstopux*) version_type=nonstopux ;;
19634     *)
19635         if test "$lt_cv_prog_gnu_ld" = yes; then
19636                 version_type=linux
19637         else
19638                 version_type=irix
19639         fi ;;
19640   esac
19641   need_lib_prefix=no
19642   need_version=no
19643   soname_spec='${libname}${release}${shared_ext}$major'
19644   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19645   case $host_os in
19646   irix5* | nonstopux*)
19647     libsuff= shlibsuff=
19648     ;;
19649   *)
19650     case $LD in # libtool.m4 will add one of these switches to LD
19651     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19652       libsuff= shlibsuff= libmagic=32-bit;;
19653     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19654       libsuff=32 shlibsuff=N32 libmagic=N32;;
19655     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19656       libsuff=64 shlibsuff=64 libmagic=64-bit;;
19657     *) libsuff= shlibsuff= libmagic=never-match;;
19658     esac
19659     ;;
19660   esac
19661   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19662   shlibpath_overrides_runpath=no
19663   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19664   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19665   hardcode_into_libs=yes
19666   ;;
19667
19668 # No shared lib support for Linux oldld, aout, or coff.
19669 linux*oldld* | linux*aout* | linux*coff*)
19670   dynamic_linker=no
19671   ;;
19672
19673 # This must be Linux ELF.
19674 linux*)
19675   version_type=linux
19676   need_lib_prefix=no
19677   need_version=no
19678   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19679   soname_spec='${libname}${release}${shared_ext}$major'
19680   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19681   shlibpath_var=LD_LIBRARY_PATH
19682   shlibpath_overrides_runpath=no
19683   # This implies no fast_install, which is unacceptable.
19684   # Some rework will be needed to allow for fast_install
19685   # before this can be enabled.
19686   hardcode_into_libs=yes
19687
19688   # Append ld.so.conf contents to the search path
19689   if test -f /etc/ld.so.conf; then
19690     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' ' '`
19691     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19692   fi
19693
19694   # We used to test for /lib/ld.so.1 and disable shared libraries on
19695   # powerpc, because MkLinux only supported shared libraries with the
19696   # GNU dynamic linker.  Since this was broken with cross compilers,
19697   # most powerpc-linux boxes support dynamic linking these days and
19698   # people can always --disable-shared, the test was removed, and we
19699   # assume the GNU/Linux dynamic linker is in use.
19700   dynamic_linker='GNU/Linux ld.so'
19701   ;;
19702
19703 knetbsd*-gnu)
19704   version_type=linux
19705   need_lib_prefix=no
19706   need_version=no
19707   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19708   soname_spec='${libname}${release}${shared_ext}$major'
19709   shlibpath_var=LD_LIBRARY_PATH
19710   shlibpath_overrides_runpath=no
19711   hardcode_into_libs=yes
19712   dynamic_linker='GNU ld.so'
19713   ;;
19714
19715 netbsd*)
19716   version_type=sunos
19717   need_lib_prefix=no
19718   need_version=no
19719   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19720     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19721     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19722     dynamic_linker='NetBSD (a.out) ld.so'
19723   else
19724     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19725     soname_spec='${libname}${release}${shared_ext}$major'
19726     dynamic_linker='NetBSD ld.elf_so'
19727   fi
19728   shlibpath_var=LD_LIBRARY_PATH
19729   shlibpath_overrides_runpath=yes
19730   hardcode_into_libs=yes
19731   ;;
19732
19733 newsos6)
19734   version_type=linux
19735   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19736   shlibpath_var=LD_LIBRARY_PATH
19737   shlibpath_overrides_runpath=yes
19738   ;;
19739
19740 nto-qnx*)
19741   version_type=linux
19742   need_lib_prefix=no
19743   need_version=no
19744   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19745   soname_spec='${libname}${release}${shared_ext}$major'
19746   shlibpath_var=LD_LIBRARY_PATH
19747   shlibpath_overrides_runpath=yes
19748   ;;
19749
19750 openbsd*)
19751   version_type=sunos
19752   need_lib_prefix=no
19753   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19754   case $host_os in
19755     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19756     *)                         need_version=no  ;;
19757   esac
19758   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19759   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19760   shlibpath_var=LD_LIBRARY_PATH
19761   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19762     case $host_os in
19763       openbsd2.[89] | openbsd2.[89].*)
19764         shlibpath_overrides_runpath=no
19765         ;;
19766       *)
19767         shlibpath_overrides_runpath=yes
19768         ;;
19769       esac
19770   else
19771     shlibpath_overrides_runpath=yes
19772   fi
19773   ;;
19774
19775 os2*)
19776   libname_spec='$name'
19777   shrext_cmds=".dll"
19778   need_lib_prefix=no
19779   library_names_spec='$libname${shared_ext} $libname.a'
19780   dynamic_linker='OS/2 ld.exe'
19781   shlibpath_var=LIBPATH
19782   ;;
19783
19784 osf3* | osf4* | osf5*)
19785   version_type=osf
19786   need_lib_prefix=no
19787   need_version=no
19788   soname_spec='${libname}${release}${shared_ext}$major'
19789   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19790   shlibpath_var=LD_LIBRARY_PATH
19791   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19792   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19793   ;;
19794
19795 sco3.2v5*)
19796   version_type=osf
19797   soname_spec='${libname}${release}${shared_ext}$major'
19798   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19799   shlibpath_var=LD_LIBRARY_PATH
19800   ;;
19801
19802 solaris*)
19803   version_type=linux
19804   need_lib_prefix=no
19805   need_version=no
19806   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19807   soname_spec='${libname}${release}${shared_ext}$major'
19808   shlibpath_var=LD_LIBRARY_PATH
19809   shlibpath_overrides_runpath=yes
19810   hardcode_into_libs=yes
19811   # ldd complains unless libraries are executable
19812   postinstall_cmds='chmod +x $lib'
19813   ;;
19814
19815 sunos4*)
19816   version_type=sunos
19817   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19818   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19819   shlibpath_var=LD_LIBRARY_PATH
19820   shlibpath_overrides_runpath=yes
19821   if test "$with_gnu_ld" = yes; then
19822     need_lib_prefix=no
19823   fi
19824   need_version=yes
19825   ;;
19826
19827 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
19828   version_type=linux
19829   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19830   soname_spec='${libname}${release}${shared_ext}$major'
19831   shlibpath_var=LD_LIBRARY_PATH
19832   case $host_vendor in
19833     sni)
19834       shlibpath_overrides_runpath=no
19835       need_lib_prefix=no
19836       export_dynamic_flag_spec='${wl}-Blargedynsym'
19837       runpath_var=LD_RUN_PATH
19838       ;;
19839     siemens)
19840       need_lib_prefix=no
19841       ;;
19842     motorola)
19843       need_lib_prefix=no
19844       need_version=no
19845       shlibpath_overrides_runpath=no
19846       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19847       ;;
19848   esac
19849   ;;
19850
19851 sysv4*MP*)
19852   if test -d /usr/nec ;then
19853     version_type=linux
19854     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19855     soname_spec='$libname${shared_ext}.$major'
19856     shlibpath_var=LD_LIBRARY_PATH
19857   fi
19858   ;;
19859
19860 uts4*)
19861   version_type=linux
19862   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19863   soname_spec='${libname}${release}${shared_ext}$major'
19864   shlibpath_var=LD_LIBRARY_PATH
19865   ;;
19866
19867 *)
19868   dynamic_linker=no
19869   ;;
19870 esac
19871 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19872 echo "${ECHO_T}$dynamic_linker" >&6
19873 test "$dynamic_linker" = no && can_build_shared=no
19874
19875 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19876 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
19877 hardcode_action_GCJ=
19878 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19879    test -n "$runpath_var_GCJ" || \
19880    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19881
19882   # We can hardcode non-existant directories.
19883   if test "$hardcode_direct_GCJ" != no &&
19884      # If the only mechanism to avoid hardcoding is shlibpath_var, we
19885      # have to relink, otherwise we might link with an installed library
19886      # when we should be linking with a yet-to-be-installed one
19887      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19888      test "$hardcode_minus_L_GCJ" != no; then
19889     # Linking always hardcodes the temporary library directory.
19890     hardcode_action_GCJ=relink
19891   else
19892     # We can link without hardcoding, and we can hardcode nonexisting dirs.
19893     hardcode_action_GCJ=immediate
19894   fi
19895 else
19896   # We cannot hardcode anything, or else we can only hardcode existing
19897   # directories.
19898   hardcode_action_GCJ=unsupported
19899 fi
19900 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19901 echo "${ECHO_T}$hardcode_action_GCJ" >&6
19902
19903 if test "$hardcode_action_GCJ" = relink; then
19904   # Fast installation is not supported
19905   enable_fast_install=no
19906 elif test "$shlibpath_overrides_runpath" = yes ||
19907      test "$enable_shared" = no; then
19908   # Fast installation is not necessary
19909   enable_fast_install=needless
19910 fi
19911
19912 striplib=
19913 old_striplib=
19914 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
19915 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
19916 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
19917   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
19918   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
19919   echo "$as_me:$LINENO: result: yes" >&5
19920 echo "${ECHO_T}yes" >&6
19921 else
19922 # FIXME - insert some real tests, host_os isn't really good enough
19923   case $host_os in
19924    darwin*)
19925        if test -n "$STRIP" ; then
19926          striplib="$STRIP -x"
19927          echo "$as_me:$LINENO: result: yes" >&5
19928 echo "${ECHO_T}yes" >&6
19929        else
19930   echo "$as_me:$LINENO: result: no" >&5
19931 echo "${ECHO_T}no" >&6
19932 fi
19933        ;;
19934    *)
19935   echo "$as_me:$LINENO: result: no" >&5
19936 echo "${ECHO_T}no" >&6
19937     ;;
19938   esac
19939 fi
19940
19941 if test "x$enable_dlopen" != xyes; then
19942   enable_dlopen=unknown
19943   enable_dlopen_self=unknown
19944   enable_dlopen_self_static=unknown
19945 else
19946   lt_cv_dlopen=no
19947   lt_cv_dlopen_libs=
19948
19949   case $host_os in
19950   beos*)
19951     lt_cv_dlopen="load_add_on"
19952     lt_cv_dlopen_libs=
19953     lt_cv_dlopen_self=yes
19954     ;;
19955
19956   mingw* | pw32*)
19957     lt_cv_dlopen="LoadLibrary"
19958     lt_cv_dlopen_libs=
19959    ;;
19960
19961   cygwin*)
19962     lt_cv_dlopen="dlopen"
19963     lt_cv_dlopen_libs=
19964    ;;
19965
19966   darwin*)
19967   # if libdl is installed we need to link against it
19968     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19969 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19970 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19971   echo $ECHO_N "(cached) $ECHO_C" >&6
19972 else
19973   ac_check_lib_save_LIBS=$LIBS
19974 LIBS="-ldl  $LIBS"
19975 cat >conftest.$ac_ext <<_ACEOF
19976 /* confdefs.h.  */
19977 _ACEOF
19978 cat confdefs.h >>conftest.$ac_ext
19979 cat >>conftest.$ac_ext <<_ACEOF
19980 /* end confdefs.h.  */
19981
19982 /* Override any gcc2 internal prototype to avoid an error.  */
19983 #ifdef __cplusplus
19984 extern "C"
19985 #endif
19986 /* We use char because int might match the return type of a gcc2
19987    builtin and then its argument prototype would still apply.  */
19988 char dlopen ();
19989 int
19990 main ()
19991 {
19992 dlopen ();
19993   ;
19994   return 0;
19995 }
19996 _ACEOF
19997 rm -f conftest.$ac_objext conftest$ac_exeext
19998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19999   (eval $ac_link) 2>conftest.er1
20000   ac_status=$?
20001   grep -v '^ *+' conftest.er1 >conftest.err
20002   rm -f conftest.er1
20003   cat conftest.err >&5
20004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20005   (exit $ac_status); } &&
20006          { ac_try='test -z "$ac_c_werror_flag"
20007                          || test ! -s conftest.err'
20008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20009   (eval $ac_try) 2>&5
20010   ac_status=$?
20011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20012   (exit $ac_status); }; } &&
20013          { ac_try='test -s conftest$ac_exeext'
20014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20015   (eval $ac_try) 2>&5
20016   ac_status=$?
20017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20018   (exit $ac_status); }; }; then
20019   ac_cv_lib_dl_dlopen=yes
20020 else
20021   echo "$as_me: failed program was:" >&5
20022 sed 's/^/| /' conftest.$ac_ext >&5
20023
20024 ac_cv_lib_dl_dlopen=no
20025 fi
20026 rm -f conftest.err conftest.$ac_objext \
20027       conftest$ac_exeext conftest.$ac_ext
20028 LIBS=$ac_check_lib_save_LIBS
20029 fi
20030 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
20031 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
20032 if test $ac_cv_lib_dl_dlopen = yes; then
20033   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
20034 else
20035
20036     lt_cv_dlopen="dyld"
20037     lt_cv_dlopen_libs=
20038     lt_cv_dlopen_self=yes
20039
20040 fi
20041
20042    ;;
20043
20044   *)
20045     echo "$as_me:$LINENO: checking for shl_load" >&5
20046 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
20047 if test "${ac_cv_func_shl_load+set}" = set; then
20048   echo $ECHO_N "(cached) $ECHO_C" >&6
20049 else
20050   cat >conftest.$ac_ext <<_ACEOF
20051 /* confdefs.h.  */
20052 _ACEOF
20053 cat confdefs.h >>conftest.$ac_ext
20054 cat >>conftest.$ac_ext <<_ACEOF
20055 /* end confdefs.h.  */
20056 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
20057    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20058 #define shl_load innocuous_shl_load
20059
20060 /* System header to define __stub macros and hopefully few prototypes,
20061     which can conflict with char shl_load (); below.
20062     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20063     <limits.h> exists even on freestanding compilers.  */
20064
20065 #ifdef __STDC__
20066 # include <limits.h>
20067 #else
20068 # include <assert.h>
20069 #endif
20070
20071 #undef shl_load
20072
20073 /* Override any gcc2 internal prototype to avoid an error.  */
20074 #ifdef __cplusplus
20075 extern "C"
20076 {
20077 #endif
20078 /* We use char because int might match the return type of a gcc2
20079    builtin and then its argument prototype would still apply.  */
20080 char shl_load ();
20081 /* The GNU C library defines this for functions which it implements
20082     to always fail with ENOSYS.  Some functions are actually named
20083     something starting with __ and the normal name is an alias.  */
20084 #if defined (__stub_shl_load) || defined (__stub___shl_load)
20085 choke me
20086 #else
20087 char (*f) () = shl_load;
20088 #endif
20089 #ifdef __cplusplus
20090 }
20091 #endif
20092
20093 int
20094 main ()
20095 {
20096 return f != shl_load;
20097   ;
20098   return 0;
20099 }
20100 _ACEOF
20101 rm -f conftest.$ac_objext conftest$ac_exeext
20102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20103   (eval $ac_link) 2>conftest.er1
20104   ac_status=$?
20105   grep -v '^ *+' conftest.er1 >conftest.err
20106   rm -f conftest.er1
20107   cat conftest.err >&5
20108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20109   (exit $ac_status); } &&
20110          { ac_try='test -z "$ac_c_werror_flag"
20111                          || test ! -s conftest.err'
20112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20113   (eval $ac_try) 2>&5
20114   ac_status=$?
20115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20116   (exit $ac_status); }; } &&
20117          { ac_try='test -s conftest$ac_exeext'
20118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20119   (eval $ac_try) 2>&5
20120   ac_status=$?
20121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20122   (exit $ac_status); }; }; then
20123   ac_cv_func_shl_load=yes
20124 else
20125   echo "$as_me: failed program was:" >&5
20126 sed 's/^/| /' conftest.$ac_ext >&5
20127
20128 ac_cv_func_shl_load=no
20129 fi
20130 rm -f conftest.err conftest.$ac_objext \
20131       conftest$ac_exeext conftest.$ac_ext
20132 fi
20133 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
20134 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
20135 if test $ac_cv_func_shl_load = yes; then
20136   lt_cv_dlopen="shl_load"
20137 else
20138   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
20139 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
20140 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
20141   echo $ECHO_N "(cached) $ECHO_C" >&6
20142 else
20143   ac_check_lib_save_LIBS=$LIBS
20144 LIBS="-ldld  $LIBS"
20145 cat >conftest.$ac_ext <<_ACEOF
20146 /* confdefs.h.  */
20147 _ACEOF
20148 cat confdefs.h >>conftest.$ac_ext
20149 cat >>conftest.$ac_ext <<_ACEOF
20150 /* end confdefs.h.  */
20151
20152 /* Override any gcc2 internal prototype to avoid an error.  */
20153 #ifdef __cplusplus
20154 extern "C"
20155 #endif
20156 /* We use char because int might match the return type of a gcc2
20157    builtin and then its argument prototype would still apply.  */
20158 char shl_load ();
20159 int
20160 main ()
20161 {
20162 shl_load ();
20163   ;
20164   return 0;
20165 }
20166 _ACEOF
20167 rm -f conftest.$ac_objext conftest$ac_exeext
20168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20169   (eval $ac_link) 2>conftest.er1
20170   ac_status=$?
20171   grep -v '^ *+' conftest.er1 >conftest.err
20172   rm -f conftest.er1
20173   cat conftest.err >&5
20174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20175   (exit $ac_status); } &&
20176          { ac_try='test -z "$ac_c_werror_flag"
20177                          || test ! -s conftest.err'
20178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20179   (eval $ac_try) 2>&5
20180   ac_status=$?
20181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20182   (exit $ac_status); }; } &&
20183          { ac_try='test -s conftest$ac_exeext'
20184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20185   (eval $ac_try) 2>&5
20186   ac_status=$?
20187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20188   (exit $ac_status); }; }; then
20189   ac_cv_lib_dld_shl_load=yes
20190 else
20191   echo "$as_me: failed program was:" >&5
20192 sed 's/^/| /' conftest.$ac_ext >&5
20193
20194 ac_cv_lib_dld_shl_load=no
20195 fi
20196 rm -f conftest.err conftest.$ac_objext \
20197       conftest$ac_exeext conftest.$ac_ext
20198 LIBS=$ac_check_lib_save_LIBS
20199 fi
20200 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
20201 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
20202 if test $ac_cv_lib_dld_shl_load = yes; then
20203   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
20204 else
20205   echo "$as_me:$LINENO: checking for dlopen" >&5
20206 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
20207 if test "${ac_cv_func_dlopen+set}" = set; then
20208   echo $ECHO_N "(cached) $ECHO_C" >&6
20209 else
20210   cat >conftest.$ac_ext <<_ACEOF
20211 /* confdefs.h.  */
20212 _ACEOF
20213 cat confdefs.h >>conftest.$ac_ext
20214 cat >>conftest.$ac_ext <<_ACEOF
20215 /* end confdefs.h.  */
20216 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
20217    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20218 #define dlopen innocuous_dlopen
20219
20220 /* System header to define __stub macros and hopefully few prototypes,
20221     which can conflict with char dlopen (); below.
20222     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20223     <limits.h> exists even on freestanding compilers.  */
20224
20225 #ifdef __STDC__
20226 # include <limits.h>
20227 #else
20228 # include <assert.h>
20229 #endif
20230
20231 #undef dlopen
20232
20233 /* Override any gcc2 internal prototype to avoid an error.  */
20234 #ifdef __cplusplus
20235 extern "C"
20236 {
20237 #endif
20238 /* We use char because int might match the return type of a gcc2
20239    builtin and then its argument prototype would still apply.  */
20240 char dlopen ();
20241 /* The GNU C library defines this for functions which it implements
20242     to always fail with ENOSYS.  Some functions are actually named
20243     something starting with __ and the normal name is an alias.  */
20244 #if defined (__stub_dlopen) || defined (__stub___dlopen)
20245 choke me
20246 #else
20247 char (*f) () = dlopen;
20248 #endif
20249 #ifdef __cplusplus
20250 }
20251 #endif
20252
20253 int
20254 main ()
20255 {
20256 return f != dlopen;
20257   ;
20258   return 0;
20259 }
20260 _ACEOF
20261 rm -f conftest.$ac_objext conftest$ac_exeext
20262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20263   (eval $ac_link) 2>conftest.er1
20264   ac_status=$?
20265   grep -v '^ *+' conftest.er1 >conftest.err
20266   rm -f conftest.er1
20267   cat conftest.err >&5
20268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20269   (exit $ac_status); } &&
20270          { ac_try='test -z "$ac_c_werror_flag"
20271                          || test ! -s conftest.err'
20272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20273   (eval $ac_try) 2>&5
20274   ac_status=$?
20275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20276   (exit $ac_status); }; } &&
20277          { ac_try='test -s conftest$ac_exeext'
20278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20279   (eval $ac_try) 2>&5
20280   ac_status=$?
20281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20282   (exit $ac_status); }; }; then
20283   ac_cv_func_dlopen=yes
20284 else
20285   echo "$as_me: failed program was:" >&5
20286 sed 's/^/| /' conftest.$ac_ext >&5
20287
20288 ac_cv_func_dlopen=no
20289 fi
20290 rm -f conftest.err conftest.$ac_objext \
20291       conftest$ac_exeext conftest.$ac_ext
20292 fi
20293 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
20294 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
20295 if test $ac_cv_func_dlopen = yes; then
20296   lt_cv_dlopen="dlopen"
20297 else
20298   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
20299 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
20300 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
20301   echo $ECHO_N "(cached) $ECHO_C" >&6
20302 else
20303   ac_check_lib_save_LIBS=$LIBS
20304 LIBS="-ldl  $LIBS"
20305 cat >conftest.$ac_ext <<_ACEOF
20306 /* confdefs.h.  */
20307 _ACEOF
20308 cat confdefs.h >>conftest.$ac_ext
20309 cat >>conftest.$ac_ext <<_ACEOF
20310 /* end confdefs.h.  */
20311
20312 /* Override any gcc2 internal prototype to avoid an error.  */
20313 #ifdef __cplusplus
20314 extern "C"
20315 #endif
20316 /* We use char because int might match the return type of a gcc2
20317    builtin and then its argument prototype would still apply.  */
20318 char dlopen ();
20319 int
20320 main ()
20321 {
20322 dlopen ();
20323   ;
20324   return 0;
20325 }
20326 _ACEOF
20327 rm -f conftest.$ac_objext conftest$ac_exeext
20328 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20329   (eval $ac_link) 2>conftest.er1
20330   ac_status=$?
20331   grep -v '^ *+' conftest.er1 >conftest.err
20332   rm -f conftest.er1
20333   cat conftest.err >&5
20334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20335   (exit $ac_status); } &&
20336          { ac_try='test -z "$ac_c_werror_flag"
20337                          || test ! -s conftest.err'
20338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20339   (eval $ac_try) 2>&5
20340   ac_status=$?
20341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20342   (exit $ac_status); }; } &&
20343          { ac_try='test -s conftest$ac_exeext'
20344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20345   (eval $ac_try) 2>&5
20346   ac_status=$?
20347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20348   (exit $ac_status); }; }; then
20349   ac_cv_lib_dl_dlopen=yes
20350 else
20351   echo "$as_me: failed program was:" >&5
20352 sed 's/^/| /' conftest.$ac_ext >&5
20353
20354 ac_cv_lib_dl_dlopen=no
20355 fi
20356 rm -f conftest.err conftest.$ac_objext \
20357       conftest$ac_exeext conftest.$ac_ext
20358 LIBS=$ac_check_lib_save_LIBS
20359 fi
20360 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
20361 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
20362 if test $ac_cv_lib_dl_dlopen = yes; then
20363   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
20364 else
20365   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
20366 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
20367 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
20368   echo $ECHO_N "(cached) $ECHO_C" >&6
20369 else
20370   ac_check_lib_save_LIBS=$LIBS
20371 LIBS="-lsvld  $LIBS"
20372 cat >conftest.$ac_ext <<_ACEOF
20373 /* confdefs.h.  */
20374 _ACEOF
20375 cat confdefs.h >>conftest.$ac_ext
20376 cat >>conftest.$ac_ext <<_ACEOF
20377 /* end confdefs.h.  */
20378
20379 /* Override any gcc2 internal prototype to avoid an error.  */
20380 #ifdef __cplusplus
20381 extern "C"
20382 #endif
20383 /* We use char because int might match the return type of a gcc2
20384    builtin and then its argument prototype would still apply.  */
20385 char dlopen ();
20386 int
20387 main ()
20388 {
20389 dlopen ();
20390   ;
20391   return 0;
20392 }
20393 _ACEOF
20394 rm -f conftest.$ac_objext conftest$ac_exeext
20395 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20396   (eval $ac_link) 2>conftest.er1
20397   ac_status=$?
20398   grep -v '^ *+' conftest.er1 >conftest.err
20399   rm -f conftest.er1
20400   cat conftest.err >&5
20401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20402   (exit $ac_status); } &&
20403          { ac_try='test -z "$ac_c_werror_flag"
20404                          || test ! -s conftest.err'
20405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20406   (eval $ac_try) 2>&5
20407   ac_status=$?
20408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20409   (exit $ac_status); }; } &&
20410          { ac_try='test -s conftest$ac_exeext'
20411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20412   (eval $ac_try) 2>&5
20413   ac_status=$?
20414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20415   (exit $ac_status); }; }; then
20416   ac_cv_lib_svld_dlopen=yes
20417 else
20418   echo "$as_me: failed program was:" >&5
20419 sed 's/^/| /' conftest.$ac_ext >&5
20420
20421 ac_cv_lib_svld_dlopen=no
20422 fi
20423 rm -f conftest.err conftest.$ac_objext \
20424       conftest$ac_exeext conftest.$ac_ext
20425 LIBS=$ac_check_lib_save_LIBS
20426 fi
20427 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
20428 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
20429 if test $ac_cv_lib_svld_dlopen = yes; then
20430   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
20431 else
20432   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
20433 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
20434 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
20435   echo $ECHO_N "(cached) $ECHO_C" >&6
20436 else
20437   ac_check_lib_save_LIBS=$LIBS
20438 LIBS="-ldld  $LIBS"
20439 cat >conftest.$ac_ext <<_ACEOF
20440 /* confdefs.h.  */
20441 _ACEOF
20442 cat confdefs.h >>conftest.$ac_ext
20443 cat >>conftest.$ac_ext <<_ACEOF
20444 /* end confdefs.h.  */
20445
20446 /* Override any gcc2 internal prototype to avoid an error.  */
20447 #ifdef __cplusplus
20448 extern "C"
20449 #endif
20450 /* We use char because int might match the return type of a gcc2
20451    builtin and then its argument prototype would still apply.  */
20452 char dld_link ();
20453 int
20454 main ()
20455 {
20456 dld_link ();
20457   ;
20458   return 0;
20459 }
20460 _ACEOF
20461 rm -f conftest.$ac_objext conftest$ac_exeext
20462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20463   (eval $ac_link) 2>conftest.er1
20464   ac_status=$?
20465   grep -v '^ *+' conftest.er1 >conftest.err
20466   rm -f conftest.er1
20467   cat conftest.err >&5
20468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20469   (exit $ac_status); } &&
20470          { ac_try='test -z "$ac_c_werror_flag"
20471                          || test ! -s conftest.err'
20472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20473   (eval $ac_try) 2>&5
20474   ac_status=$?
20475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20476   (exit $ac_status); }; } &&
20477          { ac_try='test -s conftest$ac_exeext'
20478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20479   (eval $ac_try) 2>&5
20480   ac_status=$?
20481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20482   (exit $ac_status); }; }; then
20483   ac_cv_lib_dld_dld_link=yes
20484 else
20485   echo "$as_me: failed program was:" >&5
20486 sed 's/^/| /' conftest.$ac_ext >&5
20487
20488 ac_cv_lib_dld_dld_link=no
20489 fi
20490 rm -f conftest.err conftest.$ac_objext \
20491       conftest$ac_exeext conftest.$ac_ext
20492 LIBS=$ac_check_lib_save_LIBS
20493 fi
20494 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
20495 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
20496 if test $ac_cv_lib_dld_dld_link = yes; then
20497   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
20498 fi
20499
20500
20501 fi
20502
20503
20504 fi
20505
20506
20507 fi
20508
20509
20510 fi
20511
20512
20513 fi
20514
20515     ;;
20516   esac
20517
20518   if test "x$lt_cv_dlopen" != xno; then
20519     enable_dlopen=yes
20520   else
20521     enable_dlopen=no
20522   fi
20523
20524   case $lt_cv_dlopen in
20525   dlopen)
20526     save_CPPFLAGS="$CPPFLAGS"
20527     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
20528
20529     save_LDFLAGS="$LDFLAGS"
20530     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
20531
20532     save_LIBS="$LIBS"
20533     LIBS="$lt_cv_dlopen_libs $LIBS"
20534
20535     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
20536 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
20537 if test "${lt_cv_dlopen_self+set}" = set; then
20538   echo $ECHO_N "(cached) $ECHO_C" >&6
20539 else
20540           if test "$cross_compiling" = yes; then :
20541   lt_cv_dlopen_self=cross
20542 else
20543   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20544   lt_status=$lt_dlunknown
20545   cat > conftest.$ac_ext <<EOF
20546 #line 20546 "configure"
20547 #include "confdefs.h"
20548
20549 #if HAVE_DLFCN_H
20550 #include <dlfcn.h>
20551 #endif
20552
20553 #include <stdio.h>
20554
20555 #ifdef RTLD_GLOBAL
20556 #  define LT_DLGLOBAL           RTLD_GLOBAL
20557 #else
20558 #  ifdef DL_GLOBAL
20559 #    define LT_DLGLOBAL         DL_GLOBAL
20560 #  else
20561 #    define LT_DLGLOBAL         0
20562 #  endif
20563 #endif
20564
20565 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20566    find out it does not work in some platform. */
20567 #ifndef LT_DLLAZY_OR_NOW
20568 #  ifdef RTLD_LAZY
20569 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
20570 #  else
20571 #    ifdef DL_LAZY
20572 #      define LT_DLLAZY_OR_NOW          DL_LAZY
20573 #    else
20574 #      ifdef RTLD_NOW
20575 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
20576 #      else
20577 #        ifdef DL_NOW
20578 #          define LT_DLLAZY_OR_NOW      DL_NOW
20579 #        else
20580 #          define LT_DLLAZY_OR_NOW      0
20581 #        endif
20582 #      endif
20583 #    endif
20584 #  endif
20585 #endif
20586
20587 #ifdef __cplusplus
20588 extern "C" void exit (int);
20589 #endif
20590
20591 void fnord() { int i=42;}
20592 int main ()
20593 {
20594   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20595   int status = $lt_dlunknown;
20596
20597   if (self)
20598     {
20599       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
20600       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20601       /* dlclose (self); */
20602     }
20603
20604     exit (status);
20605 }
20606 EOF
20607   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20608   (eval $ac_link) 2>&5
20609   ac_status=$?
20610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20611   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
20612     (./conftest; exit; ) 2>/dev/null
20613     lt_status=$?
20614     case x$lt_status in
20615       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
20616       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
20617       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
20618     esac
20619   else :
20620     # compilation failed
20621     lt_cv_dlopen_self=no
20622   fi
20623 fi
20624 rm -fr conftest*
20625
20626
20627 fi
20628 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
20629 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
20630
20631     if test "x$lt_cv_dlopen_self" = xyes; then
20632       LDFLAGS="$LDFLAGS $link_static_flag"
20633       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
20634 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
20635 if test "${lt_cv_dlopen_self_static+set}" = set; then
20636   echo $ECHO_N "(cached) $ECHO_C" >&6
20637 else
20638           if test "$cross_compiling" = yes; then :
20639   lt_cv_dlopen_self_static=cross
20640 else
20641   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20642   lt_status=$lt_dlunknown
20643   cat > conftest.$ac_ext <<EOF
20644 #line 20644 "configure"
20645 #include "confdefs.h"
20646
20647 #if HAVE_DLFCN_H
20648 #include <dlfcn.h>
20649 #endif
20650
20651 #include <stdio.h>
20652
20653 #ifdef RTLD_GLOBAL
20654 #  define LT_DLGLOBAL           RTLD_GLOBAL
20655 #else
20656 #  ifdef DL_GLOBAL
20657 #    define LT_DLGLOBAL         DL_GLOBAL
20658 #  else
20659 #    define LT_DLGLOBAL         0
20660 #  endif
20661 #endif
20662
20663 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20664    find out it does not work in some platform. */
20665 #ifndef LT_DLLAZY_OR_NOW
20666 #  ifdef RTLD_LAZY
20667 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
20668 #  else
20669 #    ifdef DL_LAZY
20670 #      define LT_DLLAZY_OR_NOW          DL_LAZY
20671 #    else
20672 #      ifdef RTLD_NOW
20673 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
20674 #      else
20675 #        ifdef DL_NOW
20676 #          define LT_DLLAZY_OR_NOW      DL_NOW
20677 #        else
20678 #          define LT_DLLAZY_OR_NOW      0
20679 #        endif
20680 #      endif
20681 #    endif
20682 #  endif
20683 #endif
20684
20685 #ifdef __cplusplus
20686 extern "C" void exit (int);
20687 #endif
20688
20689 void fnord() { int i=42;}
20690 int main ()
20691 {
20692   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20693   int status = $lt_dlunknown;
20694
20695   if (self)
20696     {
20697       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
20698       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20699       /* dlclose (self); */
20700     }
20701
20702     exit (status);
20703 }
20704 EOF
20705   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20706   (eval $ac_link) 2>&5
20707   ac_status=$?
20708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20709   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
20710     (./conftest; exit; ) 2>/dev/null
20711     lt_status=$?
20712     case x$lt_status in
20713       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
20714       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
20715       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
20716     esac
20717   else :
20718     # compilation failed
20719     lt_cv_dlopen_self_static=no
20720   fi
20721 fi
20722 rm -fr conftest*
20723
20724
20725 fi
20726 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
20727 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
20728     fi
20729
20730     CPPFLAGS="$save_CPPFLAGS"
20731     LDFLAGS="$save_LDFLAGS"
20732     LIBS="$save_LIBS"
20733     ;;
20734   esac
20735
20736   case $lt_cv_dlopen_self in
20737   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
20738   *) enable_dlopen_self=unknown ;;
20739   esac
20740
20741   case $lt_cv_dlopen_self_static in
20742   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
20743   *) enable_dlopen_self_static=unknown ;;
20744   esac
20745 fi
20746
20747
20748 # The else clause should only fire when bootstrapping the
20749 # libtool distribution, otherwise you forgot to ship ltmain.sh
20750 # with your package, and you will get complaints that there are
20751 # no rules to generate ltmain.sh.
20752 if test -f "$ltmain"; then
20753   # See if we are running on zsh, and set the options which allow our commands through
20754   # without removal of \ escapes.
20755   if test -n "${ZSH_VERSION+set}" ; then
20756     setopt NO_GLOB_SUBST
20757   fi
20758   # Now quote all the things that may contain metacharacters while being
20759   # careful not to overquote the AC_SUBSTed values.  We take copies of the
20760   # variables and quote the copies for generation of the libtool script.
20761   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20762     SED SHELL STRIP \
20763     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20764     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20765     deplibs_check_method reload_flag reload_cmds need_locks \
20766     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20767     lt_cv_sys_global_symbol_to_c_name_address \
20768     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20769     old_postinstall_cmds old_postuninstall_cmds \
20770     compiler_GCJ \
20771     CC_GCJ \
20772     LD_GCJ \
20773     lt_prog_compiler_wl_GCJ \
20774     lt_prog_compiler_pic_GCJ \
20775     lt_prog_compiler_static_GCJ \
20776     lt_prog_compiler_no_builtin_flag_GCJ \
20777     export_dynamic_flag_spec_GCJ \
20778     thread_safe_flag_spec_GCJ \
20779     whole_archive_flag_spec_GCJ \
20780     enable_shared_with_static_runtimes_GCJ \
20781     old_archive_cmds_GCJ \
20782     old_archive_from_new_cmds_GCJ \
20783     predep_objects_GCJ \
20784     postdep_objects_GCJ \
20785     predeps_GCJ \
20786     postdeps_GCJ \
20787     compiler_lib_search_path_GCJ \
20788     archive_cmds_GCJ \
20789     archive_expsym_cmds_GCJ \
20790     postinstall_cmds_GCJ \
20791     postuninstall_cmds_GCJ \
20792     old_archive_from_expsyms_cmds_GCJ \
20793     allow_undefined_flag_GCJ \
20794     no_undefined_flag_GCJ \
20795     export_symbols_cmds_GCJ \
20796     hardcode_libdir_flag_spec_GCJ \
20797     hardcode_libdir_flag_spec_ld_GCJ \
20798     hardcode_libdir_separator_GCJ \
20799     hardcode_automatic_GCJ \
20800     module_cmds_GCJ \
20801     module_expsym_cmds_GCJ \
20802     lt_cv_prog_compiler_c_o_GCJ \
20803     exclude_expsyms_GCJ \
20804     include_expsyms_GCJ; do
20805
20806     case $var in
20807     old_archive_cmds_GCJ | \
20808     old_archive_from_new_cmds_GCJ | \
20809     archive_cmds_GCJ | \
20810     archive_expsym_cmds_GCJ | \
20811     module_cmds_GCJ | \
20812     module_expsym_cmds_GCJ | \
20813     old_archive_from_expsyms_cmds_GCJ | \
20814     export_symbols_cmds_GCJ | \
20815     extract_expsyms_cmds | reload_cmds | finish_cmds | \
20816     postinstall_cmds | postuninstall_cmds | \
20817     old_postinstall_cmds | old_postuninstall_cmds | \
20818     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20819       # Double-quote double-evaled strings.
20820       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20821       ;;
20822     *)
20823       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20824       ;;
20825     esac
20826   done
20827
20828   case $lt_echo in
20829   *'\$0 --fallback-echo"')
20830     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20831     ;;
20832   esac
20833
20834 cfgfile="$ofile"
20835
20836   cat <<__EOF__ >> "$cfgfile"
20837 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20838
20839 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20840
20841 # Shell to use when invoking shell scripts.
20842 SHELL=$lt_SHELL
20843
20844 # Whether or not to build shared libraries.
20845 build_libtool_libs=$enable_shared
20846
20847 # Whether or not to build static libraries.
20848 build_old_libs=$enable_static
20849
20850 # Whether or not to add -lc for building shared libraries.
20851 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
20852
20853 # Whether or not to disallow shared libs when runtime libs are static
20854 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
20855
20856 # Whether or not to optimize for fast installation.
20857 fast_install=$enable_fast_install
20858
20859 # The host system.
20860 host_alias=$host_alias
20861 host=$host
20862 host_os=$host_os
20863
20864 # The build system.
20865 build_alias=$build_alias
20866 build=$build
20867 build_os=$build_os
20868
20869 # An echo program that does not interpret backslashes.
20870 echo=$lt_echo
20871
20872 # The archiver.
20873 AR=$lt_AR
20874 AR_FLAGS=$lt_AR_FLAGS
20875
20876 # A C compiler.
20877 LTCC=$lt_LTCC
20878
20879 # A language-specific compiler.
20880 CC=$lt_compiler_GCJ
20881
20882 # Is the compiler the GNU C compiler?
20883 with_gcc=$GCC_GCJ
20884
20885 # An ERE matcher.
20886 EGREP=$lt_EGREP
20887
20888 # The linker used to build libraries.
20889 LD=$lt_LD_GCJ
20890
20891 # Whether we need hard or soft links.
20892 LN_S=$lt_LN_S
20893
20894 # A BSD-compatible nm program.
20895 NM=$lt_NM
20896
20897 # A symbol stripping program
20898 STRIP=$lt_STRIP
20899
20900 # Used to examine libraries when file_magic_cmd begins "file"
20901 MAGIC_CMD=$MAGIC_CMD
20902
20903 # Used on cygwin: DLL creation program.
20904 DLLTOOL="$DLLTOOL"
20905
20906 # Used on cygwin: object dumper.
20907 OBJDUMP="$OBJDUMP"
20908
20909 # Used on cygwin: assembler.
20910 AS="$AS"
20911
20912 # The name of the directory that contains temporary libtool files.
20913 objdir=$objdir
20914
20915 # How to create reloadable object files.
20916 reload_flag=$lt_reload_flag
20917 reload_cmds=$lt_reload_cmds
20918
20919 # How to pass a linker flag through the compiler.
20920 wl=$lt_lt_prog_compiler_wl_GCJ
20921
20922 # Object file suffix (normally "o").
20923 objext="$ac_objext"
20924
20925 # Old archive suffix (normally "a").
20926 libext="$libext"
20927
20928 # Shared library suffix (normally ".so").
20929 shrext_cmds='$shrext_cmds'
20930
20931 # Executable file suffix (normally "").
20932 exeext="$exeext"
20933
20934 # Additional compiler flags for building library objects.
20935 pic_flag=$lt_lt_prog_compiler_pic_GCJ
20936 pic_mode=$pic_mode
20937
20938 # What is the maximum length of a command?
20939 max_cmd_len=$lt_cv_sys_max_cmd_len
20940
20941 # Does compiler simultaneously support -c and -o options?
20942 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
20943
20944 # Must we lock files when doing compilation?
20945 need_locks=$lt_need_locks
20946
20947 # Do we need the lib prefix for modules?
20948 need_lib_prefix=$need_lib_prefix
20949
20950 # Do we need a version for libraries?
20951 need_version=$need_version
20952
20953 # Whether dlopen is supported.
20954 dlopen_support=$enable_dlopen
20955
20956 # Whether dlopen of programs is supported.
20957 dlopen_self=$enable_dlopen_self
20958
20959 # Whether dlopen of statically linked programs is supported.
20960 dlopen_self_static=$enable_dlopen_self_static
20961
20962 # Compiler flag to prevent dynamic linking.
20963 link_static_flag=$lt_lt_prog_compiler_static_GCJ
20964
20965 # Compiler flag to turn off builtin functions.
20966 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
20967
20968 # Compiler flag to allow reflexive dlopens.
20969 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
20970
20971 # Compiler flag to generate shared objects directly from archives.
20972 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
20973
20974 # Compiler flag to generate thread-safe objects.
20975 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
20976
20977 # Library versioning type.
20978 version_type=$version_type
20979
20980 # Format of library name prefix.
20981 libname_spec=$lt_libname_spec
20982
20983 # List of archive names.  First name is the real one, the rest are links.
20984 # The last name is the one that the linker finds with -lNAME.
20985 library_names_spec=$lt_library_names_spec
20986
20987 # The coded name of the library, if different from the real name.
20988 soname_spec=$lt_soname_spec
20989
20990 # Commands used to build and install an old-style archive.
20991 RANLIB=$lt_RANLIB
20992 old_archive_cmds=$lt_old_archive_cmds_GCJ
20993 old_postinstall_cmds=$lt_old_postinstall_cmds
20994 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20995
20996 # Create an old-style archive from a shared archive.
20997 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
20998
20999 # Create a temporary old-style archive to link instead of a shared archive.
21000 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
21001
21002 # Commands used to build and install a shared archive.
21003 archive_cmds=$lt_archive_cmds_GCJ
21004 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
21005 postinstall_cmds=$lt_postinstall_cmds
21006 postuninstall_cmds=$lt_postuninstall_cmds
21007
21008 # Commands used to build a loadable module (assumed same as above if empty)
21009 module_cmds=$lt_module_cmds_GCJ
21010 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
21011
21012 # Commands to strip libraries.
21013 old_striplib=$lt_old_striplib
21014 striplib=$lt_striplib
21015
21016 # Dependencies to place before the objects being linked to create a
21017 # shared library.
21018 predep_objects=$lt_predep_objects_GCJ
21019
21020 # Dependencies to place after the objects being linked to create a
21021 # shared library.
21022 postdep_objects=$lt_postdep_objects_GCJ
21023
21024 # Dependencies to place before the objects being linked to create a
21025 # shared library.
21026 predeps=$lt_predeps_GCJ
21027
21028 # Dependencies to place after the objects being linked to create a
21029 # shared library.
21030 postdeps=$lt_postdeps_GCJ
21031
21032 # The library search path used internally by the compiler when linking
21033 # a shared library.
21034 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
21035
21036 # Method to check whether dependent libraries are shared objects.
21037 deplibs_check_method=$lt_deplibs_check_method
21038
21039 # Command to use when deplibs_check_method == file_magic.
21040 file_magic_cmd=$lt_file_magic_cmd
21041
21042 # Flag that allows shared libraries with undefined symbols to be built.
21043 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
21044
21045 # Flag that forces no undefined symbols.
21046 no_undefined_flag=$lt_no_undefined_flag_GCJ
21047
21048 # Commands used to finish a libtool library installation in a directory.
21049 finish_cmds=$lt_finish_cmds
21050
21051 # Same as above, but a single script fragment to be evaled but not shown.
21052 finish_eval=$lt_finish_eval
21053
21054 # Take the output of nm and produce a listing of raw symbols and C names.
21055 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21056
21057 # Transform the output of nm in a proper C declaration
21058 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21059
21060 # Transform the output of nm in a C name address pair
21061 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21062
21063 # This is the shared library runtime path variable.
21064 runpath_var=$runpath_var
21065
21066 # This is the shared library path variable.
21067 shlibpath_var=$shlibpath_var
21068
21069 # Is shlibpath searched before the hard-coded library search path?
21070 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21071
21072 # How to hardcode a shared library path into an executable.
21073 hardcode_action=$hardcode_action_GCJ
21074
21075 # Whether we should hardcode library paths into libraries.
21076 hardcode_into_libs=$hardcode_into_libs
21077
21078 # Flag to hardcode \$libdir into a binary during linking.
21079 # This must work even if \$libdir does not exist.
21080 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
21081
21082 # If ld is used when linking, flag to hardcode \$libdir into
21083 # a binary during linking. This must work even if \$libdir does
21084 # not exist.
21085 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
21086
21087 # Whether we need a single -rpath flag with a separated argument.
21088 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
21089
21090 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21091 # resulting binary.
21092 hardcode_direct=$hardcode_direct_GCJ
21093
21094 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21095 # resulting binary.
21096 hardcode_minus_L=$hardcode_minus_L_GCJ
21097
21098 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21099 # the resulting binary.
21100 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
21101
21102 # Set to yes if building a shared library automatically hardcodes DIR into the library
21103 # and all subsequent libraries and executables linked against it.
21104 hardcode_automatic=$hardcode_automatic_GCJ
21105
21106 # Variables whose values should be saved in libtool wrapper scripts and
21107 # restored at relink time.
21108 variables_saved_for_relink="$variables_saved_for_relink"
21109
21110 # Whether libtool must link a program against all its dependency libraries.
21111 link_all_deplibs=$link_all_deplibs_GCJ
21112
21113 # Compile-time system search path for libraries
21114 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21115
21116 # Run-time system search path for libraries
21117 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21118
21119 # Fix the shell variable \$srcfile for the compiler.
21120 fix_srcfile_path="$fix_srcfile_path_GCJ"
21121
21122 # Set to yes if exported symbols are required.
21123 always_export_symbols=$always_export_symbols_GCJ
21124
21125 # The commands to list exported symbols.
21126 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
21127
21128 # The commands to extract the exported symbol list from a shared archive.
21129 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21130
21131 # Symbols that should not be listed in the preloaded symbols.
21132 exclude_expsyms=$lt_exclude_expsyms_GCJ
21133
21134 # Symbols that must always be exported.
21135 include_expsyms=$lt_include_expsyms_GCJ
21136
21137 # ### END LIBTOOL TAG CONFIG: $tagname
21138
21139 __EOF__
21140
21141
21142 else
21143   # If there is no Makefile yet, we rely on a make rule to execute
21144   # `config.status --recheck' to rerun these tests and create the
21145   # libtool script then.
21146   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21147   if test -f "$ltmain_in"; then
21148     test -f Makefile && make "$ltmain"
21149   fi
21150 fi
21151
21152
21153 ac_ext=c
21154 ac_cpp='$CPP $CPPFLAGS'
21155 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21156 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21157 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21158
21159 CC="$lt_save_CC"
21160
21161         else
21162           tagname=""
21163         fi
21164         ;;
21165
21166       RC)
21167
21168
21169
21170 # Source file extension for RC test sources.
21171 ac_ext=rc
21172
21173 # Object file extension for compiled RC test sources.
21174 objext=o
21175 objext_RC=$objext
21176
21177 # Code to be used in simple compile tests
21178 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
21179
21180 # Code to be used in simple link tests
21181 lt_simple_link_test_code="$lt_simple_compile_test_code"
21182
21183 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21184
21185 # If no C compiler was specified, use CC.
21186 LTCC=${LTCC-"$CC"}
21187
21188 # Allow CC to be a program name with arguments.
21189 compiler=$CC
21190
21191
21192 # save warnings/boilerplate of simple test code
21193 ac_outfile=conftest.$ac_objext
21194 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21195 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
21196 _lt_compiler_boilerplate=`cat conftest.err`
21197 $rm conftest*
21198
21199 ac_outfile=conftest.$ac_objext
21200 printf "$lt_simple_link_test_code" >conftest.$ac_ext
21201 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
21202 _lt_linker_boilerplate=`cat conftest.err`
21203 $rm conftest*
21204
21205
21206 # Allow CC to be a program name with arguments.
21207 lt_save_CC="$CC"
21208 CC=${RC-"windres"}
21209 compiler=$CC
21210 compiler_RC=$CC
21211 for cc_temp in $compiler""; do
21212   case $cc_temp in
21213     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21214     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21215     \-*) ;;
21216     *) break;;
21217   esac
21218 done
21219 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21220
21221 lt_cv_prog_compiler_c_o_RC=yes
21222
21223 # The else clause should only fire when bootstrapping the
21224 # libtool distribution, otherwise you forgot to ship ltmain.sh
21225 # with your package, and you will get complaints that there are
21226 # no rules to generate ltmain.sh.
21227 if test -f "$ltmain"; then
21228   # See if we are running on zsh, and set the options which allow our commands through
21229   # without removal of \ escapes.
21230   if test -n "${ZSH_VERSION+set}" ; then
21231     setopt NO_GLOB_SUBST
21232   fi
21233   # Now quote all the things that may contain metacharacters while being
21234   # careful not to overquote the AC_SUBSTed values.  We take copies of the
21235   # variables and quote the copies for generation of the libtool script.
21236   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
21237     SED SHELL STRIP \
21238     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
21239     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
21240     deplibs_check_method reload_flag reload_cmds need_locks \
21241     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
21242     lt_cv_sys_global_symbol_to_c_name_address \
21243     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
21244     old_postinstall_cmds old_postuninstall_cmds \
21245     compiler_RC \
21246     CC_RC \
21247     LD_RC \
21248     lt_prog_compiler_wl_RC \
21249     lt_prog_compiler_pic_RC \
21250     lt_prog_compiler_static_RC \
21251     lt_prog_compiler_no_builtin_flag_RC \
21252     export_dynamic_flag_spec_RC \
21253     thread_safe_flag_spec_RC \
21254     whole_archive_flag_spec_RC \
21255     enable_shared_with_static_runtimes_RC \
21256     old_archive_cmds_RC \
21257     old_archive_from_new_cmds_RC \
21258     predep_objects_RC \
21259     postdep_objects_RC \
21260     predeps_RC \
21261     postdeps_RC \
21262     compiler_lib_search_path_RC \
21263     archive_cmds_RC \
21264     archive_expsym_cmds_RC \
21265     postinstall_cmds_RC \
21266     postuninstall_cmds_RC \
21267     old_archive_from_expsyms_cmds_RC \
21268     allow_undefined_flag_RC \
21269     no_undefined_flag_RC \
21270     export_symbols_cmds_RC \
21271     hardcode_libdir_flag_spec_RC \
21272     hardcode_libdir_flag_spec_ld_RC \
21273     hardcode_libdir_separator_RC \
21274     hardcode_automatic_RC \
21275     module_cmds_RC \
21276     module_expsym_cmds_RC \
21277     lt_cv_prog_compiler_c_o_RC \
21278     exclude_expsyms_RC \
21279     include_expsyms_RC; do
21280
21281     case $var in
21282     old_archive_cmds_RC | \
21283     old_archive_from_new_cmds_RC | \
21284     archive_cmds_RC | \
21285     archive_expsym_cmds_RC | \
21286     module_cmds_RC | \
21287     module_expsym_cmds_RC | \
21288     old_archive_from_expsyms_cmds_RC | \
21289     export_symbols_cmds_RC | \
21290     extract_expsyms_cmds | reload_cmds | finish_cmds | \
21291     postinstall_cmds | postuninstall_cmds | \
21292     old_postinstall_cmds | old_postuninstall_cmds | \
21293     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21294       # Double-quote double-evaled strings.
21295       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
21296       ;;
21297     *)
21298       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21299       ;;
21300     esac
21301   done
21302
21303   case $lt_echo in
21304   *'\$0 --fallback-echo"')
21305     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21306     ;;
21307   esac
21308
21309 cfgfile="$ofile"
21310
21311   cat <<__EOF__ >> "$cfgfile"
21312 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
21313
21314 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21315
21316 # Shell to use when invoking shell scripts.
21317 SHELL=$lt_SHELL
21318
21319 # Whether or not to build shared libraries.
21320 build_libtool_libs=$enable_shared
21321
21322 # Whether or not to build static libraries.
21323 build_old_libs=$enable_static
21324
21325 # Whether or not to add -lc for building shared libraries.
21326 build_libtool_need_lc=$archive_cmds_need_lc_RC
21327
21328 # Whether or not to disallow shared libs when runtime libs are static
21329 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
21330
21331 # Whether or not to optimize for fast installation.
21332 fast_install=$enable_fast_install
21333
21334 # The host system.
21335 host_alias=$host_alias
21336 host=$host
21337 host_os=$host_os
21338
21339 # The build system.
21340 build_alias=$build_alias
21341 build=$build
21342 build_os=$build_os
21343
21344 # An echo program that does not interpret backslashes.
21345 echo=$lt_echo
21346
21347 # The archiver.
21348 AR=$lt_AR
21349 AR_FLAGS=$lt_AR_FLAGS
21350
21351 # A C compiler.
21352 LTCC=$lt_LTCC
21353
21354 # A language-specific compiler.
21355 CC=$lt_compiler_RC
21356
21357 # Is the compiler the GNU C compiler?
21358 with_gcc=$GCC_RC
21359
21360 # An ERE matcher.
21361 EGREP=$lt_EGREP
21362
21363 # The linker used to build libraries.
21364 LD=$lt_LD_RC
21365
21366 # Whether we need hard or soft links.
21367 LN_S=$lt_LN_S
21368
21369 # A BSD-compatible nm program.
21370 NM=$lt_NM
21371
21372 # A symbol stripping program
21373 STRIP=$lt_STRIP
21374
21375 # Used to examine libraries when file_magic_cmd begins "file"
21376 MAGIC_CMD=$MAGIC_CMD
21377
21378 # Used on cygwin: DLL creation program.
21379 DLLTOOL="$DLLTOOL"
21380
21381 # Used on cygwin: object dumper.
21382 OBJDUMP="$OBJDUMP"
21383
21384 # Used on cygwin: assembler.
21385 AS="$AS"
21386
21387 # The name of the directory that contains temporary libtool files.
21388 objdir=$objdir
21389
21390 # How to create reloadable object files.
21391 reload_flag=$lt_reload_flag
21392 reload_cmds=$lt_reload_cmds
21393
21394 # How to pass a linker flag through the compiler.
21395 wl=$lt_lt_prog_compiler_wl_RC
21396
21397 # Object file suffix (normally "o").
21398 objext="$ac_objext"
21399
21400 # Old archive suffix (normally "a").
21401 libext="$libext"
21402
21403 # Shared library suffix (normally ".so").
21404 shrext_cmds='$shrext_cmds'
21405
21406 # Executable file suffix (normally "").
21407 exeext="$exeext"
21408
21409 # Additional compiler flags for building library objects.
21410 pic_flag=$lt_lt_prog_compiler_pic_RC
21411 pic_mode=$pic_mode
21412
21413 # What is the maximum length of a command?
21414 max_cmd_len=$lt_cv_sys_max_cmd_len
21415
21416 # Does compiler simultaneously support -c and -o options?
21417 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
21418
21419 # Must we lock files when doing compilation?
21420 need_locks=$lt_need_locks
21421
21422 # Do we need the lib prefix for modules?
21423 need_lib_prefix=$need_lib_prefix
21424
21425 # Do we need a version for libraries?
21426 need_version=$need_version
21427
21428 # Whether dlopen is supported.
21429 dlopen_support=$enable_dlopen
21430
21431 # Whether dlopen of programs is supported.
21432 dlopen_self=$enable_dlopen_self
21433
21434 # Whether dlopen of statically linked programs is supported.
21435 dlopen_self_static=$enable_dlopen_self_static
21436
21437 # Compiler flag to prevent dynamic linking.
21438 link_static_flag=$lt_lt_prog_compiler_static_RC
21439
21440 # Compiler flag to turn off builtin functions.
21441 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
21442
21443 # Compiler flag to allow reflexive dlopens.
21444 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
21445
21446 # Compiler flag to generate shared objects directly from archives.
21447 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
21448
21449 # Compiler flag to generate thread-safe objects.
21450 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
21451
21452 # Library versioning type.
21453 version_type=$version_type
21454
21455 # Format of library name prefix.
21456 libname_spec=$lt_libname_spec
21457
21458 # List of archive names.  First name is the real one, the rest are links.
21459 # The last name is the one that the linker finds with -lNAME.
21460 library_names_spec=$lt_library_names_spec
21461
21462 # The coded name of the library, if different from the real name.
21463 soname_spec=$lt_soname_spec
21464
21465 # Commands used to build and install an old-style archive.
21466 RANLIB=$lt_RANLIB
21467 old_archive_cmds=$lt_old_archive_cmds_RC
21468 old_postinstall_cmds=$lt_old_postinstall_cmds
21469 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21470
21471 # Create an old-style archive from a shared archive.
21472 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
21473
21474 # Create a temporary old-style archive to link instead of a shared archive.
21475 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
21476
21477 # Commands used to build and install a shared archive.
21478 archive_cmds=$lt_archive_cmds_RC
21479 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
21480 postinstall_cmds=$lt_postinstall_cmds
21481 postuninstall_cmds=$lt_postuninstall_cmds
21482
21483 # Commands used to build a loadable module (assumed same as above if empty)
21484 module_cmds=$lt_module_cmds_RC
21485 module_expsym_cmds=$lt_module_expsym_cmds_RC
21486
21487 # Commands to strip libraries.
21488 old_striplib=$lt_old_striplib
21489 striplib=$lt_striplib
21490
21491 # Dependencies to place before the objects being linked to create a
21492 # shared library.
21493 predep_objects=$lt_predep_objects_RC
21494
21495 # Dependencies to place after the objects being linked to create a
21496 # shared library.
21497 postdep_objects=$lt_postdep_objects_RC
21498
21499 # Dependencies to place before the objects being linked to create a
21500 # shared library.
21501 predeps=$lt_predeps_RC
21502
21503 # Dependencies to place after the objects being linked to create a
21504 # shared library.
21505 postdeps=$lt_postdeps_RC
21506
21507 # The library search path used internally by the compiler when linking
21508 # a shared library.
21509 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
21510
21511 # Method to check whether dependent libraries are shared objects.
21512 deplibs_check_method=$lt_deplibs_check_method
21513
21514 # Command to use when deplibs_check_method == file_magic.
21515 file_magic_cmd=$lt_file_magic_cmd
21516
21517 # Flag that allows shared libraries with undefined symbols to be built.
21518 allow_undefined_flag=$lt_allow_undefined_flag_RC
21519
21520 # Flag that forces no undefined symbols.
21521 no_undefined_flag=$lt_no_undefined_flag_RC
21522
21523 # Commands used to finish a libtool library installation in a directory.
21524 finish_cmds=$lt_finish_cmds
21525
21526 # Same as above, but a single script fragment to be evaled but not shown.
21527 finish_eval=$lt_finish_eval
21528
21529 # Take the output of nm and produce a listing of raw symbols and C names.
21530 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21531
21532 # Transform the output of nm in a proper C declaration
21533 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21534
21535 # Transform the output of nm in a C name address pair
21536 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21537
21538 # This is the shared library runtime path variable.
21539 runpath_var=$runpath_var
21540
21541 # This is the shared library path variable.
21542 shlibpath_var=$shlibpath_var
21543
21544 # Is shlibpath searched before the hard-coded library search path?
21545 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21546
21547 # How to hardcode a shared library path into an executable.
21548 hardcode_action=$hardcode_action_RC
21549
21550 # Whether we should hardcode library paths into libraries.
21551 hardcode_into_libs=$hardcode_into_libs
21552
21553 # Flag to hardcode \$libdir into a binary during linking.
21554 # This must work even if \$libdir does not exist.
21555 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
21556
21557 # If ld is used when linking, flag to hardcode \$libdir into
21558 # a binary during linking. This must work even if \$libdir does
21559 # not exist.
21560 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
21561
21562 # Whether we need a single -rpath flag with a separated argument.
21563 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
21564
21565 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21566 # resulting binary.
21567 hardcode_direct=$hardcode_direct_RC
21568
21569 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21570 # resulting binary.
21571 hardcode_minus_L=$hardcode_minus_L_RC
21572
21573 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21574 # the resulting binary.
21575 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
21576
21577 # Set to yes if building a shared library automatically hardcodes DIR into the library
21578 # and all subsequent libraries and executables linked against it.
21579 hardcode_automatic=$hardcode_automatic_RC
21580
21581 # Variables whose values should be saved in libtool wrapper scripts and
21582 # restored at relink time.
21583 variables_saved_for_relink="$variables_saved_for_relink"
21584
21585 # Whether libtool must link a program against all its dependency libraries.
21586 link_all_deplibs=$link_all_deplibs_RC
21587
21588 # Compile-time system search path for libraries
21589 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21590
21591 # Run-time system search path for libraries
21592 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21593
21594 # Fix the shell variable \$srcfile for the compiler.
21595 fix_srcfile_path="$fix_srcfile_path_RC"
21596
21597 # Set to yes if exported symbols are required.
21598 always_export_symbols=$always_export_symbols_RC
21599
21600 # The commands to list exported symbols.
21601 export_symbols_cmds=$lt_export_symbols_cmds_RC
21602
21603 # The commands to extract the exported symbol list from a shared archive.
21604 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21605
21606 # Symbols that should not be listed in the preloaded symbols.
21607 exclude_expsyms=$lt_exclude_expsyms_RC
21608
21609 # Symbols that must always be exported.
21610 include_expsyms=$lt_include_expsyms_RC
21611
21612 # ### END LIBTOOL TAG CONFIG: $tagname
21613
21614 __EOF__
21615
21616
21617 else
21618   # If there is no Makefile yet, we rely on a make rule to execute
21619   # `config.status --recheck' to rerun these tests and create the
21620   # libtool script then.
21621   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21622   if test -f "$ltmain_in"; then
21623     test -f Makefile && make "$ltmain"
21624   fi
21625 fi
21626
21627
21628 ac_ext=c
21629 ac_cpp='$CPP $CPPFLAGS'
21630 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21631 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21632 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21633
21634 CC="$lt_save_CC"
21635
21636         ;;
21637
21638       *)
21639         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
21640 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
21641    { (exit 1); exit 1; }; }
21642         ;;
21643       esac
21644
21645       # Append the new tag name to the list of available tags.
21646       if test -n "$tagname" ; then
21647       available_tags="$available_tags $tagname"
21648     fi
21649     fi
21650   done
21651   IFS="$lt_save_ifs"
21652
21653   # Now substitute the updated list of available tags.
21654   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
21655     mv "${ofile}T" "$ofile"
21656     chmod +x "$ofile"
21657   else
21658     rm -f "${ofile}T"
21659     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
21660 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
21661    { (exit 1); exit 1; }; }
21662   fi
21663 fi
21664
21665
21666
21667 # This can be used to rebuild libtool when needed
21668 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
21669
21670 # Always use our own libtool.
21671 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
21672
21673 # Prevent multiple expansion
21674
21675
21676
21677
21678
21679
21680
21681
21682
21683
21684
21685
21686
21687
21688
21689
21690
21691
21692
21693
21694
21695 ol_link_perl=no
21696 if test $ol_enable_perl != no ; then
21697         # Extract the first word of "perl", so it can be a program name with args.
21698 set dummy perl; ac_word=$2
21699 echo "$as_me:$LINENO: checking for $ac_word" >&5
21700 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21701 if test "${ac_cv_path_PERLBIN+set}" = set; then
21702   echo $ECHO_N "(cached) $ECHO_C" >&6
21703 else
21704   case $PERLBIN in
21705   [\\/]* | ?:[\\/]*)
21706   ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
21707   ;;
21708   *)
21709   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21710 for as_dir in $PATH
21711 do
21712   IFS=$as_save_IFS
21713   test -z "$as_dir" && as_dir=.
21714   for ac_exec_ext in '' $ac_executable_extensions; do
21715   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21716     ac_cv_path_PERLBIN="$as_dir/$ac_word$ac_exec_ext"
21717     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21718     break 2
21719   fi
21720 done
21721 done
21722
21723   test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
21724   ;;
21725 esac
21726 fi
21727 PERLBIN=$ac_cv_path_PERLBIN
21728
21729 if test -n "$PERLBIN"; then
21730   echo "$as_me:$LINENO: result: $PERLBIN" >&5
21731 echo "${ECHO_T}$PERLBIN" >&6
21732 else
21733   echo "$as_me:$LINENO: result: no" >&5
21734 echo "${ECHO_T}no" >&6
21735 fi
21736
21737
21738         if test "no$PERLBIN" = "no" ; then
21739                 if test $ol_enable_perl = yes ; then
21740                         { { echo "$as_me:$LINENO: error: could not locate perl" >&5
21741 echo "$as_me: error: could not locate perl" >&2;}
21742    { (exit 1); exit 1; }; }
21743                 fi
21744
21745         else
21746                 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
21747                 PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e 's/ -lc / /' -e 's/ -lc$//'`"
21748
21749                 if test x"$ol_enable_perl" = "xyes" ; then
21750                         SLAPD_PERL_LDFLAGS="$PERL_LDFLAGS"
21751                 else
21752                         MOD_PERL_LDFLAGS="$PERL_LDFLAGS"
21753                 fi
21754                                 ol_link_perl=yes
21755         fi
21756 fi
21757
21758 ac_ext=c
21759 ac_cpp='$CPP $CPPFLAGS'
21760 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21761 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21762 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21763 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
21764 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
21765 # On Suns, sometimes $CPP names a directory.
21766 if test -n "$CPP" && test -d "$CPP"; then
21767   CPP=
21768 fi
21769 if test -z "$CPP"; then
21770   if test "${ac_cv_prog_CPP+set}" = set; then
21771   echo $ECHO_N "(cached) $ECHO_C" >&6
21772 else
21773       # Double quotes because CPP needs to be expanded
21774     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
21775     do
21776       ac_preproc_ok=false
21777 for ac_c_preproc_warn_flag in '' yes
21778 do
21779   # Use a header file that comes with gcc, so configuring glibc
21780   # with a fresh cross-compiler works.
21781   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21782   # <limits.h> exists even on freestanding compilers.
21783   # On the NeXT, cc -E runs the code through the compiler's parser,
21784   # not just through cpp. "Syntax error" is here to catch this case.
21785   cat >conftest.$ac_ext <<_ACEOF
21786 /* confdefs.h.  */
21787 _ACEOF
21788 cat confdefs.h >>conftest.$ac_ext
21789 cat >>conftest.$ac_ext <<_ACEOF
21790 /* end confdefs.h.  */
21791 #ifdef __STDC__
21792 # include <limits.h>
21793 #else
21794 # include <assert.h>
21795 #endif
21796                      Syntax error
21797 _ACEOF
21798 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21799   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21800   ac_status=$?
21801   grep -v '^ *+' conftest.er1 >conftest.err
21802   rm -f conftest.er1
21803   cat conftest.err >&5
21804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21805   (exit $ac_status); } >/dev/null; then
21806   if test -s conftest.err; then
21807     ac_cpp_err=$ac_c_preproc_warn_flag
21808     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21809   else
21810     ac_cpp_err=
21811   fi
21812 else
21813   ac_cpp_err=yes
21814 fi
21815 if test -z "$ac_cpp_err"; then
21816   :
21817 else
21818   echo "$as_me: failed program was:" >&5
21819 sed 's/^/| /' conftest.$ac_ext >&5
21820
21821   # Broken: fails on valid input.
21822 continue
21823 fi
21824 rm -f conftest.err conftest.$ac_ext
21825
21826   # OK, works on sane cases.  Now check whether non-existent headers
21827   # can be detected and how.
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 #include <ac_nonexistent.h>
21835 _ACEOF
21836 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21837   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21838   ac_status=$?
21839   grep -v '^ *+' conftest.er1 >conftest.err
21840   rm -f conftest.er1
21841   cat conftest.err >&5
21842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21843   (exit $ac_status); } >/dev/null; then
21844   if test -s conftest.err; then
21845     ac_cpp_err=$ac_c_preproc_warn_flag
21846     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21847   else
21848     ac_cpp_err=
21849   fi
21850 else
21851   ac_cpp_err=yes
21852 fi
21853 if test -z "$ac_cpp_err"; then
21854   # Broken: success on invalid input.
21855 continue
21856 else
21857   echo "$as_me: failed program was:" >&5
21858 sed 's/^/| /' conftest.$ac_ext >&5
21859
21860   # Passes both tests.
21861 ac_preproc_ok=:
21862 break
21863 fi
21864 rm -f conftest.err conftest.$ac_ext
21865
21866 done
21867 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
21868 rm -f conftest.err conftest.$ac_ext
21869 if $ac_preproc_ok; then
21870   break
21871 fi
21872
21873     done
21874     ac_cv_prog_CPP=$CPP
21875
21876 fi
21877   CPP=$ac_cv_prog_CPP
21878 else
21879   ac_cv_prog_CPP=$CPP
21880 fi
21881 echo "$as_me:$LINENO: result: $CPP" >&5
21882 echo "${ECHO_T}$CPP" >&6
21883 ac_preproc_ok=false
21884 for ac_c_preproc_warn_flag in '' yes
21885 do
21886   # Use a header file that comes with gcc, so configuring glibc
21887   # with a fresh cross-compiler works.
21888   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21889   # <limits.h> exists even on freestanding compilers.
21890   # On the NeXT, cc -E runs the code through the compiler's parser,
21891   # not just through cpp. "Syntax error" is here to catch this case.
21892   cat >conftest.$ac_ext <<_ACEOF
21893 /* confdefs.h.  */
21894 _ACEOF
21895 cat confdefs.h >>conftest.$ac_ext
21896 cat >>conftest.$ac_ext <<_ACEOF
21897 /* end confdefs.h.  */
21898 #ifdef __STDC__
21899 # include <limits.h>
21900 #else
21901 # include <assert.h>
21902 #endif
21903                      Syntax error
21904 _ACEOF
21905 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21906   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21907   ac_status=$?
21908   grep -v '^ *+' conftest.er1 >conftest.err
21909   rm -f conftest.er1
21910   cat conftest.err >&5
21911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21912   (exit $ac_status); } >/dev/null; then
21913   if test -s conftest.err; then
21914     ac_cpp_err=$ac_c_preproc_warn_flag
21915     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21916   else
21917     ac_cpp_err=
21918   fi
21919 else
21920   ac_cpp_err=yes
21921 fi
21922 if test -z "$ac_cpp_err"; then
21923   :
21924 else
21925   echo "$as_me: failed program was:" >&5
21926 sed 's/^/| /' conftest.$ac_ext >&5
21927
21928   # Broken: fails on valid input.
21929 continue
21930 fi
21931 rm -f conftest.err conftest.$ac_ext
21932
21933   # OK, works on sane cases.  Now check whether non-existent headers
21934   # can be detected and how.
21935   cat >conftest.$ac_ext <<_ACEOF
21936 /* confdefs.h.  */
21937 _ACEOF
21938 cat confdefs.h >>conftest.$ac_ext
21939 cat >>conftest.$ac_ext <<_ACEOF
21940 /* end confdefs.h.  */
21941 #include <ac_nonexistent.h>
21942 _ACEOF
21943 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21944   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21945   ac_status=$?
21946   grep -v '^ *+' conftest.er1 >conftest.err
21947   rm -f conftest.er1
21948   cat conftest.err >&5
21949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21950   (exit $ac_status); } >/dev/null; then
21951   if test -s conftest.err; then
21952     ac_cpp_err=$ac_c_preproc_warn_flag
21953     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21954   else
21955     ac_cpp_err=
21956   fi
21957 else
21958   ac_cpp_err=yes
21959 fi
21960 if test -z "$ac_cpp_err"; then
21961   # Broken: success on invalid input.
21962 continue
21963 else
21964   echo "$as_me: failed program was:" >&5
21965 sed 's/^/| /' conftest.$ac_ext >&5
21966
21967   # Passes both tests.
21968 ac_preproc_ok=:
21969 break
21970 fi
21971 rm -f conftest.err conftest.$ac_ext
21972
21973 done
21974 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
21975 rm -f conftest.err conftest.$ac_ext
21976 if $ac_preproc_ok; then
21977   :
21978 else
21979   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
21980 See \`config.log' for more details." >&5
21981 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
21982 See \`config.log' for more details." >&2;}
21983    { (exit 1); exit 1; }; }
21984 fi
21985
21986 ac_ext=c
21987 ac_cpp='$CPP $CPPFLAGS'
21988 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21989 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21990 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21991
21992
21993
21994
21995 case $host_os in
21996   *cygwin* ) CYGWIN=yes;;
21997          * ) CYGWIN=no;;
21998 esac
21999
22000
22001 case $host_os in
22002   *mingw32* ) MINGW32=yes;;
22003           * ) MINGW32=no;;
22004 esac
22005
22006
22007
22008
22009
22010 cat >>confdefs.h <<_ACEOF
22011 #define EXEEXT "${EXEEXT}"
22012 _ACEOF
22013
22014
22015 echo "$as_me:$LINENO: checking for be_app in -lbe" >&5
22016 echo $ECHO_N "checking for be_app in -lbe... $ECHO_C" >&6
22017 if test "${ac_cv_lib_be_be_app+set}" = set; then
22018   echo $ECHO_N "(cached) $ECHO_C" >&6
22019 else
22020   ac_check_lib_save_LIBS=$LIBS
22021 LIBS="-lbe -lroot -lnet $LIBS"
22022 cat >conftest.$ac_ext <<_ACEOF
22023 /* confdefs.h.  */
22024 _ACEOF
22025 cat confdefs.h >>conftest.$ac_ext
22026 cat >>conftest.$ac_ext <<_ACEOF
22027 /* end confdefs.h.  */
22028
22029 /* Override any gcc2 internal prototype to avoid an error.  */
22030 #ifdef __cplusplus
22031 extern "C"
22032 #endif
22033 /* We use char because int might match the return type of a gcc2
22034    builtin and then its argument prototype would still apply.  */
22035 char be_app ();
22036 int
22037 main ()
22038 {
22039 be_app ();
22040   ;
22041   return 0;
22042 }
22043 _ACEOF
22044 rm -f conftest.$ac_objext conftest$ac_exeext
22045 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22046   (eval $ac_link) 2>conftest.er1
22047   ac_status=$?
22048   grep -v '^ *+' conftest.er1 >conftest.err
22049   rm -f conftest.er1
22050   cat conftest.err >&5
22051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22052   (exit $ac_status); } &&
22053          { ac_try='test -z "$ac_c_werror_flag"
22054                          || test ! -s conftest.err'
22055   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22056   (eval $ac_try) 2>&5
22057   ac_status=$?
22058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22059   (exit $ac_status); }; } &&
22060          { ac_try='test -s conftest$ac_exeext'
22061   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22062   (eval $ac_try) 2>&5
22063   ac_status=$?
22064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22065   (exit $ac_status); }; }; then
22066   ac_cv_lib_be_be_app=yes
22067 else
22068   echo "$as_me: failed program was:" >&5
22069 sed 's/^/| /' conftest.$ac_ext >&5
22070
22071 ac_cv_lib_be_be_app=no
22072 fi
22073 rm -f conftest.err conftest.$ac_objext \
22074       conftest$ac_exeext conftest.$ac_ext
22075 LIBS=$ac_check_lib_save_LIBS
22076 fi
22077 echo "$as_me:$LINENO: result: $ac_cv_lib_be_be_app" >&5
22078 echo "${ECHO_T}$ac_cv_lib_be_be_app" >&6
22079 if test $ac_cv_lib_be_be_app = yes; then
22080   LIBS="$LIBS -lbe -lroot -lnet"
22081 else
22082   :
22083 fi
22084
22085
22086 ac_ext=c
22087 ac_cpp='$CPP $CPPFLAGS'
22088 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22089 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22090 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22091 if test -n "$ac_tool_prefix"; then
22092   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
22093 set dummy ${ac_tool_prefix}gcc; ac_word=$2
22094 echo "$as_me:$LINENO: checking for $ac_word" >&5
22095 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22096 if test "${ac_cv_prog_CC+set}" = set; then
22097   echo $ECHO_N "(cached) $ECHO_C" >&6
22098 else
22099   if test -n "$CC"; then
22100   ac_cv_prog_CC="$CC" # Let the user override the test.
22101 else
22102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22103 for as_dir in $PATH
22104 do
22105   IFS=$as_save_IFS
22106   test -z "$as_dir" && as_dir=.
22107   for ac_exec_ext in '' $ac_executable_extensions; do
22108   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22109     ac_cv_prog_CC="${ac_tool_prefix}gcc"
22110     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22111     break 2
22112   fi
22113 done
22114 done
22115
22116 fi
22117 fi
22118 CC=$ac_cv_prog_CC
22119 if test -n "$CC"; then
22120   echo "$as_me:$LINENO: result: $CC" >&5
22121 echo "${ECHO_T}$CC" >&6
22122 else
22123   echo "$as_me:$LINENO: result: no" >&5
22124 echo "${ECHO_T}no" >&6
22125 fi
22126
22127 fi
22128 if test -z "$ac_cv_prog_CC"; then
22129   ac_ct_CC=$CC
22130   # Extract the first word of "gcc", so it can be a program name with args.
22131 set dummy gcc; ac_word=$2
22132 echo "$as_me:$LINENO: checking for $ac_word" >&5
22133 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22134 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
22135   echo $ECHO_N "(cached) $ECHO_C" >&6
22136 else
22137   if test -n "$ac_ct_CC"; then
22138   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
22139 else
22140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22141 for as_dir in $PATH
22142 do
22143   IFS=$as_save_IFS
22144   test -z "$as_dir" && as_dir=.
22145   for ac_exec_ext in '' $ac_executable_extensions; do
22146   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22147     ac_cv_prog_ac_ct_CC="gcc"
22148     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22149     break 2
22150   fi
22151 done
22152 done
22153
22154 fi
22155 fi
22156 ac_ct_CC=$ac_cv_prog_ac_ct_CC
22157 if test -n "$ac_ct_CC"; then
22158   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
22159 echo "${ECHO_T}$ac_ct_CC" >&6
22160 else
22161   echo "$as_me:$LINENO: result: no" >&5
22162 echo "${ECHO_T}no" >&6
22163 fi
22164
22165   CC=$ac_ct_CC
22166 else
22167   CC="$ac_cv_prog_CC"
22168 fi
22169
22170 if test -z "$CC"; then
22171   if test -n "$ac_tool_prefix"; then
22172   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
22173 set dummy ${ac_tool_prefix}cc; ac_word=$2
22174 echo "$as_me:$LINENO: checking for $ac_word" >&5
22175 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22176 if test "${ac_cv_prog_CC+set}" = set; then
22177   echo $ECHO_N "(cached) $ECHO_C" >&6
22178 else
22179   if test -n "$CC"; then
22180   ac_cv_prog_CC="$CC" # Let the user override the test.
22181 else
22182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22183 for as_dir in $PATH
22184 do
22185   IFS=$as_save_IFS
22186   test -z "$as_dir" && as_dir=.
22187   for ac_exec_ext in '' $ac_executable_extensions; do
22188   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22189     ac_cv_prog_CC="${ac_tool_prefix}cc"
22190     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22191     break 2
22192   fi
22193 done
22194 done
22195
22196 fi
22197 fi
22198 CC=$ac_cv_prog_CC
22199 if test -n "$CC"; then
22200   echo "$as_me:$LINENO: result: $CC" >&5
22201 echo "${ECHO_T}$CC" >&6
22202 else
22203   echo "$as_me:$LINENO: result: no" >&5
22204 echo "${ECHO_T}no" >&6
22205 fi
22206
22207 fi
22208 if test -z "$ac_cv_prog_CC"; then
22209   ac_ct_CC=$CC
22210   # Extract the first word of "cc", so it can be a program name with args.
22211 set dummy cc; ac_word=$2
22212 echo "$as_me:$LINENO: checking for $ac_word" >&5
22213 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22214 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
22215   echo $ECHO_N "(cached) $ECHO_C" >&6
22216 else
22217   if test -n "$ac_ct_CC"; then
22218   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
22219 else
22220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22221 for as_dir in $PATH
22222 do
22223   IFS=$as_save_IFS
22224   test -z "$as_dir" && as_dir=.
22225   for ac_exec_ext in '' $ac_executable_extensions; do
22226   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22227     ac_cv_prog_ac_ct_CC="cc"
22228     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22229     break 2
22230   fi
22231 done
22232 done
22233
22234 fi
22235 fi
22236 ac_ct_CC=$ac_cv_prog_ac_ct_CC
22237 if test -n "$ac_ct_CC"; then
22238   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
22239 echo "${ECHO_T}$ac_ct_CC" >&6
22240 else
22241   echo "$as_me:$LINENO: result: no" >&5
22242 echo "${ECHO_T}no" >&6
22243 fi
22244
22245   CC=$ac_ct_CC
22246 else
22247   CC="$ac_cv_prog_CC"
22248 fi
22249
22250 fi
22251 if test -z "$CC"; then
22252   # Extract the first word of "cc", so it can be a program name with args.
22253 set dummy cc; ac_word=$2
22254 echo "$as_me:$LINENO: checking for $ac_word" >&5
22255 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22256 if test "${ac_cv_prog_CC+set}" = set; then
22257   echo $ECHO_N "(cached) $ECHO_C" >&6
22258 else
22259   if test -n "$CC"; then
22260   ac_cv_prog_CC="$CC" # Let the user override the test.
22261 else
22262   ac_prog_rejected=no
22263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22264 for as_dir in $PATH
22265 do
22266   IFS=$as_save_IFS
22267   test -z "$as_dir" && as_dir=.
22268   for ac_exec_ext in '' $ac_executable_extensions; do
22269   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22270     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
22271        ac_prog_rejected=yes
22272        continue
22273      fi
22274     ac_cv_prog_CC="cc"
22275     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22276     break 2
22277   fi
22278 done
22279 done
22280
22281 if test $ac_prog_rejected = yes; then
22282   # We found a bogon in the path, so make sure we never use it.
22283   set dummy $ac_cv_prog_CC
22284   shift
22285   if test $# != 0; then
22286     # We chose a different compiler from the bogus one.
22287     # However, it has the same basename, so the bogon will be chosen
22288     # first if we set CC to just the basename; use the full file name.
22289     shift
22290     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
22291   fi
22292 fi
22293 fi
22294 fi
22295 CC=$ac_cv_prog_CC
22296 if test -n "$CC"; then
22297   echo "$as_me:$LINENO: result: $CC" >&5
22298 echo "${ECHO_T}$CC" >&6
22299 else
22300   echo "$as_me:$LINENO: result: no" >&5
22301 echo "${ECHO_T}no" >&6
22302 fi
22303
22304 fi
22305 if test -z "$CC"; then
22306   if test -n "$ac_tool_prefix"; then
22307   for ac_prog in cl
22308   do
22309     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
22310 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
22311 echo "$as_me:$LINENO: checking for $ac_word" >&5
22312 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22313 if test "${ac_cv_prog_CC+set}" = set; then
22314   echo $ECHO_N "(cached) $ECHO_C" >&6
22315 else
22316   if test -n "$CC"; then
22317   ac_cv_prog_CC="$CC" # Let the user override the test.
22318 else
22319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22320 for as_dir in $PATH
22321 do
22322   IFS=$as_save_IFS
22323   test -z "$as_dir" && as_dir=.
22324   for ac_exec_ext in '' $ac_executable_extensions; do
22325   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22326     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
22327     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22328     break 2
22329   fi
22330 done
22331 done
22332
22333 fi
22334 fi
22335 CC=$ac_cv_prog_CC
22336 if test -n "$CC"; then
22337   echo "$as_me:$LINENO: result: $CC" >&5
22338 echo "${ECHO_T}$CC" >&6
22339 else
22340   echo "$as_me:$LINENO: result: no" >&5
22341 echo "${ECHO_T}no" >&6
22342 fi
22343
22344     test -n "$CC" && break
22345   done
22346 fi
22347 if test -z "$CC"; then
22348   ac_ct_CC=$CC
22349   for ac_prog in cl
22350 do
22351   # Extract the first word of "$ac_prog", so it can be a program name with args.
22352 set dummy $ac_prog; ac_word=$2
22353 echo "$as_me:$LINENO: checking for $ac_word" >&5
22354 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22355 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
22356   echo $ECHO_N "(cached) $ECHO_C" >&6
22357 else
22358   if test -n "$ac_ct_CC"; then
22359   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
22360 else
22361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22362 for as_dir in $PATH
22363 do
22364   IFS=$as_save_IFS
22365   test -z "$as_dir" && as_dir=.
22366   for ac_exec_ext in '' $ac_executable_extensions; do
22367   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22368     ac_cv_prog_ac_ct_CC="$ac_prog"
22369     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22370     break 2
22371   fi
22372 done
22373 done
22374
22375 fi
22376 fi
22377 ac_ct_CC=$ac_cv_prog_ac_ct_CC
22378 if test -n "$ac_ct_CC"; then
22379   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
22380 echo "${ECHO_T}$ac_ct_CC" >&6
22381 else
22382   echo "$as_me:$LINENO: result: no" >&5
22383 echo "${ECHO_T}no" >&6
22384 fi
22385
22386   test -n "$ac_ct_CC" && break
22387 done
22388
22389   CC=$ac_ct_CC
22390 fi
22391
22392 fi
22393
22394
22395 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
22396 See \`config.log' for more details." >&5
22397 echo "$as_me: error: no acceptable C compiler found in \$PATH
22398 See \`config.log' for more details." >&2;}
22399    { (exit 1); exit 1; }; }
22400
22401 # Provide some information about the compiler.
22402 echo "$as_me:$LINENO:" \
22403      "checking for C compiler version" >&5
22404 ac_compiler=`set X $ac_compile; echo $2`
22405 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
22406   (eval $ac_compiler --version </dev/null >&5) 2>&5
22407   ac_status=$?
22408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22409   (exit $ac_status); }
22410 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
22411   (eval $ac_compiler -v </dev/null >&5) 2>&5
22412   ac_status=$?
22413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22414   (exit $ac_status); }
22415 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
22416   (eval $ac_compiler -V </dev/null >&5) 2>&5
22417   ac_status=$?
22418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22419   (exit $ac_status); }
22420
22421 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
22422 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
22423 if test "${ac_cv_c_compiler_gnu+set}" = set; then
22424   echo $ECHO_N "(cached) $ECHO_C" >&6
22425 else
22426   cat >conftest.$ac_ext <<_ACEOF
22427 /* confdefs.h.  */
22428 _ACEOF
22429 cat confdefs.h >>conftest.$ac_ext
22430 cat >>conftest.$ac_ext <<_ACEOF
22431 /* end confdefs.h.  */
22432
22433 int
22434 main ()
22435 {
22436 #ifndef __GNUC__
22437        choke me
22438 #endif
22439
22440   ;
22441   return 0;
22442 }
22443 _ACEOF
22444 rm -f conftest.$ac_objext
22445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22446   (eval $ac_compile) 2>conftest.er1
22447   ac_status=$?
22448   grep -v '^ *+' conftest.er1 >conftest.err
22449   rm -f conftest.er1
22450   cat conftest.err >&5
22451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22452   (exit $ac_status); } &&
22453          { ac_try='test -z "$ac_c_werror_flag"
22454                          || test ! -s conftest.err'
22455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22456   (eval $ac_try) 2>&5
22457   ac_status=$?
22458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22459   (exit $ac_status); }; } &&
22460          { ac_try='test -s conftest.$ac_objext'
22461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22462   (eval $ac_try) 2>&5
22463   ac_status=$?
22464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22465   (exit $ac_status); }; }; then
22466   ac_compiler_gnu=yes
22467 else
22468   echo "$as_me: failed program was:" >&5
22469 sed 's/^/| /' conftest.$ac_ext >&5
22470
22471 ac_compiler_gnu=no
22472 fi
22473 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22474 ac_cv_c_compiler_gnu=$ac_compiler_gnu
22475
22476 fi
22477 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
22478 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
22479 GCC=`test $ac_compiler_gnu = yes && echo yes`
22480 ac_test_CFLAGS=${CFLAGS+set}
22481 ac_save_CFLAGS=$CFLAGS
22482 CFLAGS="-g"
22483 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
22484 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
22485 if test "${ac_cv_prog_cc_g+set}" = set; then
22486   echo $ECHO_N "(cached) $ECHO_C" >&6
22487 else
22488   cat >conftest.$ac_ext <<_ACEOF
22489 /* confdefs.h.  */
22490 _ACEOF
22491 cat confdefs.h >>conftest.$ac_ext
22492 cat >>conftest.$ac_ext <<_ACEOF
22493 /* end confdefs.h.  */
22494
22495 int
22496 main ()
22497 {
22498
22499   ;
22500   return 0;
22501 }
22502 _ACEOF
22503 rm -f conftest.$ac_objext
22504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22505   (eval $ac_compile) 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_objext'
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   ac_cv_prog_cc_g=yes
22526 else
22527   echo "$as_me: failed program was:" >&5
22528 sed 's/^/| /' conftest.$ac_ext >&5
22529
22530 ac_cv_prog_cc_g=no
22531 fi
22532 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22533 fi
22534 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
22535 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
22536 if test "$ac_test_CFLAGS" = set; then
22537   CFLAGS=$ac_save_CFLAGS
22538 elif test $ac_cv_prog_cc_g = yes; then
22539   if test "$GCC" = yes; then
22540     CFLAGS="-g -O2"
22541   else
22542     CFLAGS="-g"
22543   fi
22544 else
22545   if test "$GCC" = yes; then
22546     CFLAGS="-O2"
22547   else
22548     CFLAGS=
22549   fi
22550 fi
22551 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
22552 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
22553 if test "${ac_cv_prog_cc_stdc+set}" = set; then
22554   echo $ECHO_N "(cached) $ECHO_C" >&6
22555 else
22556   ac_cv_prog_cc_stdc=no
22557 ac_save_CC=$CC
22558 cat >conftest.$ac_ext <<_ACEOF
22559 /* confdefs.h.  */
22560 _ACEOF
22561 cat confdefs.h >>conftest.$ac_ext
22562 cat >>conftest.$ac_ext <<_ACEOF
22563 /* end confdefs.h.  */
22564 #include <stdarg.h>
22565 #include <stdio.h>
22566 #include <sys/types.h>
22567 #include <sys/stat.h>
22568 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
22569 struct buf { int x; };
22570 FILE * (*rcsopen) (struct buf *, struct stat *, int);
22571 static char *e (p, i)
22572      char **p;
22573      int i;
22574 {
22575   return p[i];
22576 }
22577 static char *f (char * (*g) (char **, int), char **p, ...)
22578 {
22579   char *s;
22580   va_list v;
22581   va_start (v,p);
22582   s = g (p, va_arg (v,int));
22583   va_end (v);
22584   return s;
22585 }
22586
22587 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
22588    function prototypes and stuff, but not '\xHH' hex character constants.
22589    These don't provoke an error unfortunately, instead are silently treated
22590    as 'x'.  The following induces an error, until -std1 is added to get
22591    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
22592    array size at least.  It's necessary to write '\x00'==0 to get something
22593    that's true only with -std1.  */
22594 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
22595
22596 int test (int i, double x);
22597 struct s1 {int (*f) (int a);};
22598 struct s2 {int (*f) (double a);};
22599 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
22600 int argc;
22601 char **argv;
22602 int
22603 main ()
22604 {
22605 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
22606   ;
22607   return 0;
22608 }
22609 _ACEOF
22610 # Don't try gcc -ansi; that turns off useful extensions and
22611 # breaks some systems' header files.
22612 # AIX                   -qlanglvl=ansi
22613 # Ultrix and OSF/1      -std1
22614 # HP-UX 10.20 and later -Ae
22615 # HP-UX older versions  -Aa -D_HPUX_SOURCE
22616 # SVR4                  -Xc -D__EXTENSIONS__
22617 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
22618 do
22619   CC="$ac_save_CC $ac_arg"
22620   rm -f conftest.$ac_objext
22621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22622   (eval $ac_compile) 2>conftest.er1
22623   ac_status=$?
22624   grep -v '^ *+' conftest.er1 >conftest.err
22625   rm -f conftest.er1
22626   cat conftest.err >&5
22627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22628   (exit $ac_status); } &&
22629          { ac_try='test -z "$ac_c_werror_flag"
22630                          || test ! -s conftest.err'
22631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22632   (eval $ac_try) 2>&5
22633   ac_status=$?
22634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22635   (exit $ac_status); }; } &&
22636          { ac_try='test -s conftest.$ac_objext'
22637   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22638   (eval $ac_try) 2>&5
22639   ac_status=$?
22640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22641   (exit $ac_status); }; }; then
22642   ac_cv_prog_cc_stdc=$ac_arg
22643 break
22644 else
22645   echo "$as_me: failed program was:" >&5
22646 sed 's/^/| /' conftest.$ac_ext >&5
22647
22648 fi
22649 rm -f conftest.err conftest.$ac_objext
22650 done
22651 rm -f conftest.$ac_ext conftest.$ac_objext
22652 CC=$ac_save_CC
22653
22654 fi
22655
22656 case "x$ac_cv_prog_cc_stdc" in
22657   x|xno)
22658     echo "$as_me:$LINENO: result: none needed" >&5
22659 echo "${ECHO_T}none needed" >&6 ;;
22660   *)
22661     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
22662 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
22663     CC="$CC $ac_cv_prog_cc_stdc" ;;
22664 esac
22665
22666 # Some people use a C++ compiler to compile C.  Since we use `exit',
22667 # in C++ we need to declare it.  In case someone uses the same compiler
22668 # for both compiling C and C++ we need to have the C++ compiler decide
22669 # the declaration of exit, since it's the most demanding environment.
22670 cat >conftest.$ac_ext <<_ACEOF
22671 #ifndef __cplusplus
22672   choke me
22673 #endif
22674 _ACEOF
22675 rm -f conftest.$ac_objext
22676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22677   (eval $ac_compile) 2>conftest.er1
22678   ac_status=$?
22679   grep -v '^ *+' conftest.er1 >conftest.err
22680   rm -f conftest.er1
22681   cat conftest.err >&5
22682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22683   (exit $ac_status); } &&
22684          { ac_try='test -z "$ac_c_werror_flag"
22685                          || test ! -s conftest.err'
22686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22687   (eval $ac_try) 2>&5
22688   ac_status=$?
22689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22690   (exit $ac_status); }; } &&
22691          { ac_try='test -s conftest.$ac_objext'
22692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22693   (eval $ac_try) 2>&5
22694   ac_status=$?
22695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22696   (exit $ac_status); }; }; then
22697   for ac_declaration in \
22698    '' \
22699    'extern "C" void std::exit (int) throw (); using std::exit;' \
22700    'extern "C" void std::exit (int); using std::exit;' \
22701    'extern "C" void exit (int) throw ();' \
22702    'extern "C" void exit (int);' \
22703    'void exit (int);'
22704 do
22705   cat >conftest.$ac_ext <<_ACEOF
22706 /* confdefs.h.  */
22707 _ACEOF
22708 cat confdefs.h >>conftest.$ac_ext
22709 cat >>conftest.$ac_ext <<_ACEOF
22710 /* end confdefs.h.  */
22711 $ac_declaration
22712 #include <stdlib.h>
22713 int
22714 main ()
22715 {
22716 exit (42);
22717   ;
22718   return 0;
22719 }
22720 _ACEOF
22721 rm -f conftest.$ac_objext
22722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22723   (eval $ac_compile) 2>conftest.er1
22724   ac_status=$?
22725   grep -v '^ *+' conftest.er1 >conftest.err
22726   rm -f conftest.er1
22727   cat conftest.err >&5
22728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22729   (exit $ac_status); } &&
22730          { ac_try='test -z "$ac_c_werror_flag"
22731                          || test ! -s conftest.err'
22732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22733   (eval $ac_try) 2>&5
22734   ac_status=$?
22735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22736   (exit $ac_status); }; } &&
22737          { ac_try='test -s conftest.$ac_objext'
22738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22739   (eval $ac_try) 2>&5
22740   ac_status=$?
22741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22742   (exit $ac_status); }; }; then
22743   :
22744 else
22745   echo "$as_me: failed program was:" >&5
22746 sed 's/^/| /' conftest.$ac_ext >&5
22747
22748 continue
22749 fi
22750 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22751   cat >conftest.$ac_ext <<_ACEOF
22752 /* confdefs.h.  */
22753 _ACEOF
22754 cat confdefs.h >>conftest.$ac_ext
22755 cat >>conftest.$ac_ext <<_ACEOF
22756 /* end confdefs.h.  */
22757 $ac_declaration
22758 int
22759 main ()
22760 {
22761 exit (42);
22762   ;
22763   return 0;
22764 }
22765 _ACEOF
22766 rm -f conftest.$ac_objext
22767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22768   (eval $ac_compile) 2>conftest.er1
22769   ac_status=$?
22770   grep -v '^ *+' conftest.er1 >conftest.err
22771   rm -f conftest.er1
22772   cat conftest.err >&5
22773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22774   (exit $ac_status); } &&
22775          { ac_try='test -z "$ac_c_werror_flag"
22776                          || test ! -s conftest.err'
22777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22778   (eval $ac_try) 2>&5
22779   ac_status=$?
22780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22781   (exit $ac_status); }; } &&
22782          { ac_try='test -s conftest.$ac_objext'
22783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22784   (eval $ac_try) 2>&5
22785   ac_status=$?
22786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22787   (exit $ac_status); }; }; then
22788   break
22789 else
22790   echo "$as_me: failed program was:" >&5
22791 sed 's/^/| /' conftest.$ac_ext >&5
22792
22793 fi
22794 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22795 done
22796 rm -f conftest*
22797 if test -n "$ac_declaration"; then
22798   echo '#ifdef __cplusplus' >>confdefs.h
22799   echo $ac_declaration      >>confdefs.h
22800   echo '#endif'             >>confdefs.h
22801 fi
22802
22803 else
22804   echo "$as_me: failed program was:" >&5
22805 sed 's/^/| /' conftest.$ac_ext >&5
22806
22807 fi
22808 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22809 ac_ext=c
22810 ac_cpp='$CPP $CPPFLAGS'
22811 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22812 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22813 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22814
22815 depcc="$CC"   am_compiler_list=
22816
22817 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
22818 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
22819 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
22820   echo $ECHO_N "(cached) $ECHO_C" >&6
22821 else
22822   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
22823   # We make a subdir and do the tests there.  Otherwise we can end up
22824   # making bogus files that we don't know about and never remove.  For
22825   # instance it was reported that on HP-UX the gcc test will end up
22826   # making a dummy file named `D' -- because `-MD' means `put the output
22827   # in D'.
22828   mkdir conftest.dir
22829   # Copy depcomp to subdir because otherwise we won't find it if we're
22830   # using a relative directory.
22831   cp "$am_depcomp" conftest.dir
22832   cd conftest.dir
22833   # We will build objects and dependencies in a subdirectory because
22834   # it helps to detect inapplicable dependency modes.  For instance
22835   # both Tru64's cc and ICC support -MD to output dependencies as a
22836   # side effect of compilation, but ICC will put the dependencies in
22837   # the current directory while Tru64 will put them in the object
22838   # directory.
22839   mkdir sub
22840
22841   am_cv_CC_dependencies_compiler_type=none
22842   if test "$am_compiler_list" = ""; then
22843      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
22844   fi
22845   for depmode in $am_compiler_list; do
22846     # Setup a source with many dependencies, because some compilers
22847     # like to wrap large dependency lists on column 80 (with \), and
22848     # we should not choose a depcomp mode which is confused by this.
22849     #
22850     # We need to recreate these files for each test, as the compiler may
22851     # overwrite some of them when testing with obscure command lines.
22852     # This happens at least with the AIX C compiler.
22853     : > sub/conftest.c
22854     for i in 1 2 3 4 5 6; do
22855       echo '#include "conftst'$i'.h"' >> sub/conftest.c
22856       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
22857       # Solaris 8's {/usr,}/bin/sh.
22858       touch sub/conftst$i.h
22859     done
22860     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
22861
22862     case $depmode in
22863     nosideeffect)
22864       # after this tag, mechanisms are not by side-effect, so they'll
22865       # only be used when explicitly requested
22866       if test "x$enable_dependency_tracking" = xyes; then
22867         continue
22868       else
22869         break
22870       fi
22871       ;;
22872     none) break ;;
22873     esac
22874     # We check with `-c' and `-o' for the sake of the "dashmstdout"
22875     # mode.  It turns out that the SunPro C++ compiler does not properly
22876     # handle `-M -o', and we need to detect this.
22877     if depmode=$depmode \
22878        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
22879        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
22880        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
22881          >/dev/null 2>conftest.err &&
22882        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
22883        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
22884        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
22885       # icc doesn't choke on unknown options, it will just issue warnings
22886       # or remarks (even with -Werror).  So we grep stderr for any message
22887       # that says an option was ignored or not supported.
22888       # When given -MP, icc 7.0 and 7.1 complain thusly:
22889       #   icc: Command line warning: ignoring option '-M'; no argument required
22890       # The diagnosis changed in icc 8.0:
22891       #   icc: Command line remark: option '-MP' not supported
22892       if (grep 'ignoring option' conftest.err ||
22893           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
22894         am_cv_CC_dependencies_compiler_type=$depmode
22895         break
22896       fi
22897     fi
22898   done
22899
22900   cd ..
22901   rm -rf conftest.dir
22902 else
22903   am_cv_CC_dependencies_compiler_type=none
22904 fi
22905
22906 fi
22907 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
22908 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
22909 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
22910
22911
22912
22913 if
22914   test "x$enable_dependency_tracking" != xno \
22915   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
22916   am__fastdepCC_TRUE=
22917   am__fastdepCC_FALSE='#'
22918 else
22919   am__fastdepCC_TRUE='#'
22920   am__fastdepCC_FALSE=
22921 fi
22922
22923
22924
22925 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
22926
22927 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
22928         { { echo "$as_me:$LINENO: error: OpenLDAP requires compiler to support STDC constructs." >&5
22929 echo "$as_me: error: OpenLDAP requires compiler to support STDC constructs." >&2;}
22930    { (exit 1); exit 1; }; }
22931 fi
22932
22933 # test for make depend flag
22934 OL_MKDEP=
22935 OL_MKDEP_FLAGS=
22936 if test -z "${MKDEP}"; then
22937         OL_MKDEP="${CC-cc}"
22938         if test -z "${MKDEP_FLAGS}"; then
22939                 echo "$as_me:$LINENO: checking for ${OL_MKDEP} depend flag" >&5
22940 echo $ECHO_N "checking for ${OL_MKDEP} depend flag... $ECHO_C" >&6
22941 if test "${ol_cv_mkdep+set}" = set; then
22942   echo $ECHO_N "(cached) $ECHO_C" >&6
22943 else
22944
22945                         ol_cv_mkdep=no
22946                         for flag in "-M" "-xM"; do
22947                                 cat > conftest.c <<EOF
22948  noCode;
22949 EOF
22950                                 if { ac_try='$OL_MKDEP $flag conftest.c'
22951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22952   (eval $ac_try) 2>&5
22953   ac_status=$?
22954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22955   (exit $ac_status); }; } \
22956                                         | egrep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
22957                                 then
22958                                         if test ! -f conftest."${ac_object}" ; then
22959                                                 ol_cv_mkdep=$flag
22960                                                 OL_MKDEP_FLAGS="$flag"
22961                                                 break
22962                                         fi
22963                                 fi
22964                         done
22965                         rm -f conftest*
22966
22967 fi
22968 echo "$as_me:$LINENO: result: $ol_cv_mkdep" >&5
22969 echo "${ECHO_T}$ol_cv_mkdep" >&6
22970         else
22971                 cc_cv_mkdep=yes
22972                 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
22973         fi
22974 else
22975         cc_cv_mkdep=yes
22976         OL_MKDEP="${MKDEP}"
22977         OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
22978 fi
22979
22980
22981
22982 if test "${ol_cv_mkdep}" = no ; then
22983         # this will soon become an error
22984         { echo "$as_me:$LINENO: WARNING: do not know how to generate dependencies" >&5
22985 echo "$as_me: WARNING: do not know how to generate dependencies" >&2;}
22986 fi
22987
22988 echo "$as_me:$LINENO: checking for afopen in -ls" >&5
22989 echo $ECHO_N "checking for afopen in -ls... $ECHO_C" >&6
22990 if test "${ac_cv_lib_s_afopen+set}" = set; then
22991   echo $ECHO_N "(cached) $ECHO_C" >&6
22992 else
22993   ac_check_lib_save_LIBS=$LIBS
22994 LIBS="-ls  $LIBS"
22995 cat >conftest.$ac_ext <<_ACEOF
22996 /* confdefs.h.  */
22997 _ACEOF
22998 cat confdefs.h >>conftest.$ac_ext
22999 cat >>conftest.$ac_ext <<_ACEOF
23000 /* end confdefs.h.  */
23001
23002 /* Override any gcc2 internal prototype to avoid an error.  */
23003 #ifdef __cplusplus
23004 extern "C"
23005 #endif
23006 /* We use char because int might match the return type of a gcc2
23007    builtin and then its argument prototype would still apply.  */
23008 char afopen ();
23009 int
23010 main ()
23011 {
23012 afopen ();
23013   ;
23014   return 0;
23015 }
23016 _ACEOF
23017 rm -f conftest.$ac_objext conftest$ac_exeext
23018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23019   (eval $ac_link) 2>conftest.er1
23020   ac_status=$?
23021   grep -v '^ *+' conftest.er1 >conftest.err
23022   rm -f conftest.er1
23023   cat conftest.err >&5
23024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23025   (exit $ac_status); } &&
23026          { ac_try='test -z "$ac_c_werror_flag"
23027                          || test ! -s conftest.err'
23028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23029   (eval $ac_try) 2>&5
23030   ac_status=$?
23031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23032   (exit $ac_status); }; } &&
23033          { ac_try='test -s conftest$ac_exeext'
23034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23035   (eval $ac_try) 2>&5
23036   ac_status=$?
23037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23038   (exit $ac_status); }; }; then
23039   ac_cv_lib_s_afopen=yes
23040 else
23041   echo "$as_me: failed program was:" >&5
23042 sed 's/^/| /' conftest.$ac_ext >&5
23043
23044 ac_cv_lib_s_afopen=no
23045 fi
23046 rm -f conftest.err conftest.$ac_objext \
23047       conftest$ac_exeext conftest.$ac_ext
23048 LIBS=$ac_check_lib_save_LIBS
23049 fi
23050 echo "$as_me:$LINENO: result: $ac_cv_lib_s_afopen" >&5
23051 echo "${ECHO_T}$ac_cv_lib_s_afopen" >&6
23052 if test $ac_cv_lib_s_afopen = yes; then
23053
23054         AUTH_LIBS=-ls
23055
23056 cat >>confdefs.h <<\_ACEOF
23057 #define HAVE_AIX_SECURITY 1
23058 _ACEOF
23059
23060
23061 fi
23062
23063
23064 case "$target" in
23065 *-ibm-openedition)
23066         ac_cv_func_getopt=no
23067
23068 cat >>confdefs.h <<\_ACEOF
23069 #define BOTH_STRINGS_H 1
23070 _ACEOF
23071
23072         ;;
23073 esac
23074
23075 ol_link_modules=no
23076 WITH_MODULES_ENABLED=no
23077 if test $ol_enable_modules != no ; then
23078
23079 for ac_header in ltdl.h
23080 do
23081 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23082 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23083   echo "$as_me:$LINENO: checking for $ac_header" >&5
23084 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23085 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23086   echo $ECHO_N "(cached) $ECHO_C" >&6
23087 fi
23088 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23089 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23090 else
23091   # Is the header compilable?
23092 echo "$as_me:$LINENO: checking $ac_header usability" >&5
23093 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23094 cat >conftest.$ac_ext <<_ACEOF
23095 /* confdefs.h.  */
23096 _ACEOF
23097 cat confdefs.h >>conftest.$ac_ext
23098 cat >>conftest.$ac_ext <<_ACEOF
23099 /* end confdefs.h.  */
23100 $ac_includes_default
23101 #include <$ac_header>
23102 _ACEOF
23103 rm -f conftest.$ac_objext
23104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23105   (eval $ac_compile) 2>conftest.er1
23106   ac_status=$?
23107   grep -v '^ *+' conftest.er1 >conftest.err
23108   rm -f conftest.er1
23109   cat conftest.err >&5
23110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23111   (exit $ac_status); } &&
23112          { ac_try='test -z "$ac_c_werror_flag"
23113                          || test ! -s conftest.err'
23114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23115   (eval $ac_try) 2>&5
23116   ac_status=$?
23117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23118   (exit $ac_status); }; } &&
23119          { ac_try='test -s conftest.$ac_objext'
23120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23121   (eval $ac_try) 2>&5
23122   ac_status=$?
23123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23124   (exit $ac_status); }; }; then
23125   ac_header_compiler=yes
23126 else
23127   echo "$as_me: failed program was:" >&5
23128 sed 's/^/| /' conftest.$ac_ext >&5
23129
23130 ac_header_compiler=no
23131 fi
23132 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23133 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23134 echo "${ECHO_T}$ac_header_compiler" >&6
23135
23136 # Is the header present?
23137 echo "$as_me:$LINENO: checking $ac_header presence" >&5
23138 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23139 cat >conftest.$ac_ext <<_ACEOF
23140 /* confdefs.h.  */
23141 _ACEOF
23142 cat confdefs.h >>conftest.$ac_ext
23143 cat >>conftest.$ac_ext <<_ACEOF
23144 /* end confdefs.h.  */
23145 #include <$ac_header>
23146 _ACEOF
23147 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23148   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23149   ac_status=$?
23150   grep -v '^ *+' conftest.er1 >conftest.err
23151   rm -f conftest.er1
23152   cat conftest.err >&5
23153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23154   (exit $ac_status); } >/dev/null; then
23155   if test -s conftest.err; then
23156     ac_cpp_err=$ac_c_preproc_warn_flag
23157     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23158   else
23159     ac_cpp_err=
23160   fi
23161 else
23162   ac_cpp_err=yes
23163 fi
23164 if test -z "$ac_cpp_err"; then
23165   ac_header_preproc=yes
23166 else
23167   echo "$as_me: failed program was:" >&5
23168 sed 's/^/| /' conftest.$ac_ext >&5
23169
23170   ac_header_preproc=no
23171 fi
23172 rm -f conftest.err conftest.$ac_ext
23173 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23174 echo "${ECHO_T}$ac_header_preproc" >&6
23175
23176 # So?  What about this header?
23177 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23178   yes:no: )
23179     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23180 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23181     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23182 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23183     ac_header_preproc=yes
23184     ;;
23185   no:yes:* )
23186     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23187 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23188     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23189 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23190     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23191 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23192     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23193 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23194     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23195 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23196     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23197 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23198     (
23199       cat <<\_ASBOX
23200 ## ------------------------------------------ ##
23201 ## Report this to the AC_PACKAGE_NAME lists.  ##
23202 ## ------------------------------------------ ##
23203 _ASBOX
23204     ) |
23205       sed "s/^/$as_me: WARNING:     /" >&2
23206     ;;
23207 esac
23208 echo "$as_me:$LINENO: checking for $ac_header" >&5
23209 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23210 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23211   echo $ECHO_N "(cached) $ECHO_C" >&6
23212 else
23213   eval "$as_ac_Header=\$ac_header_preproc"
23214 fi
23215 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23216 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23217
23218 fi
23219 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23220   cat >>confdefs.h <<_ACEOF
23221 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23222 _ACEOF
23223
23224 fi
23225
23226 done
23227
23228
23229         if test $ac_cv_header_ltdl_h = no ; then
23230                 { { echo "$as_me:$LINENO: error: could not locate libtool ltdl.h" >&5
23231 echo "$as_me: error: could not locate libtool ltdl.h" >&2;}
23232    { (exit 1); exit 1; }; }
23233         fi
23234
23235         echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
23236 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
23237 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
23238   echo $ECHO_N "(cached) $ECHO_C" >&6
23239 else
23240   ac_check_lib_save_LIBS=$LIBS
23241 LIBS="-lltdl  $LIBS"
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 /* Override any gcc2 internal prototype to avoid an error.  */
23250 #ifdef __cplusplus
23251 extern "C"
23252 #endif
23253 /* We use char because int might match the return type of a gcc2
23254    builtin and then its argument prototype would still apply.  */
23255 char lt_dlinit ();
23256 int
23257 main ()
23258 {
23259 lt_dlinit ();
23260   ;
23261   return 0;
23262 }
23263 _ACEOF
23264 rm -f conftest.$ac_objext conftest$ac_exeext
23265 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23266   (eval $ac_link) 2>conftest.er1
23267   ac_status=$?
23268   grep -v '^ *+' conftest.er1 >conftest.err
23269   rm -f conftest.er1
23270   cat conftest.err >&5
23271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23272   (exit $ac_status); } &&
23273          { ac_try='test -z "$ac_c_werror_flag"
23274                          || test ! -s conftest.err'
23275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23276   (eval $ac_try) 2>&5
23277   ac_status=$?
23278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23279   (exit $ac_status); }; } &&
23280          { ac_try='test -s conftest$ac_exeext'
23281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23282   (eval $ac_try) 2>&5
23283   ac_status=$?
23284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23285   (exit $ac_status); }; }; then
23286   ac_cv_lib_ltdl_lt_dlinit=yes
23287 else
23288   echo "$as_me: failed program was:" >&5
23289 sed 's/^/| /' conftest.$ac_ext >&5
23290
23291 ac_cv_lib_ltdl_lt_dlinit=no
23292 fi
23293 rm -f conftest.err conftest.$ac_objext \
23294       conftest$ac_exeext conftest.$ac_ext
23295 LIBS=$ac_check_lib_save_LIBS
23296 fi
23297 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
23298 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
23299 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
23300
23301                 MODULES_LIBS=-lltdl
23302
23303 cat >>confdefs.h <<\_ACEOF
23304 #define HAVE_LIBLTDL 1
23305 _ACEOF
23306
23307
23308 fi
23309
23310
23311         if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
23312                 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
23313 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
23314    { (exit 1); exit 1; }; }
23315         fi
23316         ol_link_modules=yes
23317         WITH_MODULES_ENABLED=yes
23318
23319 else
23320         for i in $Backends; do
23321                 eval "ol_tmp=\$ol_enable_$i"
23322                 if test $ol_tmp = mod ; then
23323                         { echo "$as_me:$LINENO: WARNING: building static $i backend" >&5
23324 echo "$as_me: WARNING: building static $i backend" >&2;}
23325                         eval "ol_enable_$i=yes"
23326                 fi
23327         done
23328         for i in $Overlays; do
23329                 eval "ol_tmp=\$ol_enable_$i"
23330                 if test $ol_tmp = mod ; then
23331                         { echo "$as_me:$LINENO: WARNING: building static $i overlay" >&5
23332 echo "$as_me: WARNING: building static $i overlay" >&2;}
23333                         eval "ol_enable_$i=yes"
23334                 fi
23335         done
23336 fi
23337
23338 # test for EBCDIC
23339 echo "$as_me:$LINENO: checking for EBCDIC" >&5
23340 echo $ECHO_N "checking for EBCDIC... $ECHO_C" >&6
23341 if test "${ol_cv_cpp_ebcdic+set}" = set; then
23342   echo $ECHO_N "(cached) $ECHO_C" >&6
23343 else
23344
23345         cat >conftest.$ac_ext <<_ACEOF
23346 /* confdefs.h.  */
23347 _ACEOF
23348 cat confdefs.h >>conftest.$ac_ext
23349 cat >>conftest.$ac_ext <<_ACEOF
23350 /* end confdefs.h.  */
23351
23352 #if !('M' == 0xd4)
23353 #include <__ASCII__/generate_error.h>
23354 #endif
23355
23356 _ACEOF
23357 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23358   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23359   ac_status=$?
23360   grep -v '^ *+' conftest.er1 >conftest.err
23361   rm -f conftest.er1
23362   cat conftest.err >&5
23363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23364   (exit $ac_status); } >/dev/null; then
23365   if test -s conftest.err; then
23366     ac_cpp_err=$ac_c_preproc_warn_flag
23367     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23368   else
23369     ac_cpp_err=
23370   fi
23371 else
23372   ac_cpp_err=yes
23373 fi
23374 if test -z "$ac_cpp_err"; then
23375   ol_cv_cpp_ebcdic=yes
23376 else
23377   echo "$as_me: failed program was:" >&5
23378 sed 's/^/| /' conftest.$ac_ext >&5
23379
23380   ol_cv_cpp_ebcdic=no
23381 fi
23382 rm -f conftest.err conftest.$ac_ext
23383 fi
23384 echo "$as_me:$LINENO: result: $ol_cv_cpp_ebcdic" >&5
23385 echo "${ECHO_T}$ol_cv_cpp_ebcdic" >&6
23386 if test $ol_cv_cpp_ebcdic = yes ; then
23387
23388 cat >>confdefs.h <<\_ACEOF
23389 #define HAVE_EBCDIC 1
23390 _ACEOF
23391
23392 fi
23393
23394 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
23395 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
23396 if test "${ol_cv_header_stdc+set}" = set; then
23397   echo $ECHO_N "(cached) $ECHO_C" >&6
23398 else
23399   cat >conftest.$ac_ext <<_ACEOF
23400 /* confdefs.h.  */
23401 _ACEOF
23402 cat confdefs.h >>conftest.$ac_ext
23403 cat >>conftest.$ac_ext <<_ACEOF
23404 /* end confdefs.h.  */
23405 #include <stdlib.h>
23406 #include <stdarg.h>
23407 #include <string.h>
23408 #include <float.h>
23409 _ACEOF
23410 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23411   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23412   ac_status=$?
23413   grep -v '^ *+' conftest.er1 >conftest.err
23414   rm -f conftest.er1
23415   cat conftest.err >&5
23416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23417   (exit $ac_status); } >/dev/null; then
23418   if test -s conftest.err; then
23419     ac_cpp_err=$ac_c_preproc_warn_flag
23420     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23421   else
23422     ac_cpp_err=
23423   fi
23424 else
23425   ac_cpp_err=yes
23426 fi
23427 if test -z "$ac_cpp_err"; then
23428   ol_cv_header_stdc=yes
23429 else
23430   echo "$as_me: failed program was:" >&5
23431 sed 's/^/| /' conftest.$ac_ext >&5
23432
23433   ol_cv_header_stdc=no
23434 fi
23435 rm -f conftest.err conftest.$ac_ext
23436
23437 if test $ol_cv_header_stdc = yes; then
23438   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
23439 cat >conftest.$ac_ext <<_ACEOF
23440 /* confdefs.h.  */
23441 _ACEOF
23442 cat confdefs.h >>conftest.$ac_ext
23443 cat >>conftest.$ac_ext <<_ACEOF
23444 /* end confdefs.h.  */
23445 #include <string.h>
23446
23447 _ACEOF
23448 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23449   $EGREP "memchr" >/dev/null 2>&1; then
23450   :
23451 else
23452   ol_cv_header_stdc=no
23453 fi
23454 rm -f conftest*
23455
23456 fi
23457
23458 if test $ol_cv_header_stdc = yes; then
23459   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
23460 cat >conftest.$ac_ext <<_ACEOF
23461 /* confdefs.h.  */
23462 _ACEOF
23463 cat confdefs.h >>conftest.$ac_ext
23464 cat >>conftest.$ac_ext <<_ACEOF
23465 /* end confdefs.h.  */
23466 #include <stdlib.h>
23467
23468 _ACEOF
23469 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23470   $EGREP "free" >/dev/null 2>&1; then
23471   :
23472 else
23473   ol_cv_header_stdc=no
23474 fi
23475 rm -f conftest*
23476
23477 fi
23478
23479 if test $ol_cv_header_stdc = yes; then
23480   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
23481 if test "$cross_compiling" = yes; then
23482   :
23483 else
23484   cat >conftest.$ac_ext <<_ACEOF
23485 /* confdefs.h.  */
23486 _ACEOF
23487 cat confdefs.h >>conftest.$ac_ext
23488 cat >>conftest.$ac_ext <<_ACEOF
23489 /* end confdefs.h.  */
23490 #include <ctype.h>
23491 #ifndef HAVE_EBCDIC
23492 #       define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
23493 #       define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
23494 #else
23495 #       define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
23496                 || ('j' <= (c) && (c) <= 'r') \
23497                 || ('s' <= (c) && (c) <= 'z'))
23498 #       define TOUPPER(c)       (ISLOWER(c) ? ((c) | 0x40) : (c))
23499 #endif
23500 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
23501 int main () { int i; for (i = 0; i < 256; i++)
23502 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
23503 exit (0); }
23504
23505 _ACEOF
23506 rm -f conftest$ac_exeext
23507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23508   (eval $ac_link) 2>&5
23509   ac_status=$?
23510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23511   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23513   (eval $ac_try) 2>&5
23514   ac_status=$?
23515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23516   (exit $ac_status); }; }; then
23517   :
23518 else
23519   echo "$as_me: program exited with status $ac_status" >&5
23520 echo "$as_me: failed program was:" >&5
23521 sed 's/^/| /' conftest.$ac_ext >&5
23522
23523 ( exit $ac_status )
23524 ol_cv_header_stdc=no
23525 fi
23526 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23527 fi
23528 fi
23529 fi
23530 echo "$as_me:$LINENO: result: $ol_cv_header_stdc" >&5
23531 echo "${ECHO_T}$ol_cv_header_stdc" >&6
23532 if test $ol_cv_header_stdc = yes; then
23533   cat >>confdefs.h <<\_ACEOF
23534 #define STDC_HEADERS 1
23535 _ACEOF
23536
23537 fi
23538 ac_cv_header_stdc=disable
23539
23540
23541 if test $ol_cv_header_stdc != yes; then
23542         { echo "$as_me:$LINENO: WARNING: could not locate Standard C compliant headers" >&5
23543 echo "$as_me: WARNING: could not locate Standard C compliant headers" >&2;}
23544 fi
23545
23546
23547
23548
23549
23550
23551 ac_header_dirent=no
23552 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
23553   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
23554 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
23555 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
23556 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23557   echo $ECHO_N "(cached) $ECHO_C" >&6
23558 else
23559   cat >conftest.$ac_ext <<_ACEOF
23560 /* confdefs.h.  */
23561 _ACEOF
23562 cat confdefs.h >>conftest.$ac_ext
23563 cat >>conftest.$ac_ext <<_ACEOF
23564 /* end confdefs.h.  */
23565 #include <sys/types.h>
23566 #include <$ac_hdr>
23567
23568 int
23569 main ()
23570 {
23571 if ((DIR *) 0)
23572 return 0;
23573   ;
23574   return 0;
23575 }
23576 _ACEOF
23577 rm -f conftest.$ac_objext
23578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23579   (eval $ac_compile) 2>conftest.er1
23580   ac_status=$?
23581   grep -v '^ *+' conftest.er1 >conftest.err
23582   rm -f conftest.er1
23583   cat conftest.err >&5
23584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23585   (exit $ac_status); } &&
23586          { ac_try='test -z "$ac_c_werror_flag"
23587                          || test ! -s conftest.err'
23588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23589   (eval $ac_try) 2>&5
23590   ac_status=$?
23591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23592   (exit $ac_status); }; } &&
23593          { ac_try='test -s conftest.$ac_objext'
23594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23595   (eval $ac_try) 2>&5
23596   ac_status=$?
23597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23598   (exit $ac_status); }; }; then
23599   eval "$as_ac_Header=yes"
23600 else
23601   echo "$as_me: failed program was:" >&5
23602 sed 's/^/| /' conftest.$ac_ext >&5
23603
23604 eval "$as_ac_Header=no"
23605 fi
23606 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23607 fi
23608 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23609 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23610 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23611   cat >>confdefs.h <<_ACEOF
23612 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
23613 _ACEOF
23614
23615 ac_header_dirent=$ac_hdr; break
23616 fi
23617
23618 done
23619 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
23620 if test $ac_header_dirent = dirent.h; then
23621   echo "$as_me:$LINENO: checking for library containing opendir" >&5
23622 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
23623 if test "${ac_cv_search_opendir+set}" = set; then
23624   echo $ECHO_N "(cached) $ECHO_C" >&6
23625 else
23626   ac_func_search_save_LIBS=$LIBS
23627 ac_cv_search_opendir=no
23628 cat >conftest.$ac_ext <<_ACEOF
23629 /* confdefs.h.  */
23630 _ACEOF
23631 cat confdefs.h >>conftest.$ac_ext
23632 cat >>conftest.$ac_ext <<_ACEOF
23633 /* end confdefs.h.  */
23634
23635 /* Override any gcc2 internal prototype to avoid an error.  */
23636 #ifdef __cplusplus
23637 extern "C"
23638 #endif
23639 /* We use char because int might match the return type of a gcc2
23640    builtin and then its argument prototype would still apply.  */
23641 char opendir ();
23642 int
23643 main ()
23644 {
23645 opendir ();
23646   ;
23647   return 0;
23648 }
23649 _ACEOF
23650 rm -f conftest.$ac_objext conftest$ac_exeext
23651 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23652   (eval $ac_link) 2>conftest.er1
23653   ac_status=$?
23654   grep -v '^ *+' conftest.er1 >conftest.err
23655   rm -f conftest.er1
23656   cat conftest.err >&5
23657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23658   (exit $ac_status); } &&
23659          { ac_try='test -z "$ac_c_werror_flag"
23660                          || test ! -s conftest.err'
23661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23662   (eval $ac_try) 2>&5
23663   ac_status=$?
23664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23665   (exit $ac_status); }; } &&
23666          { ac_try='test -s conftest$ac_exeext'
23667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23668   (eval $ac_try) 2>&5
23669   ac_status=$?
23670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23671   (exit $ac_status); }; }; then
23672   ac_cv_search_opendir="none required"
23673 else
23674   echo "$as_me: failed program was:" >&5
23675 sed 's/^/| /' conftest.$ac_ext >&5
23676
23677 fi
23678 rm -f conftest.err conftest.$ac_objext \
23679       conftest$ac_exeext conftest.$ac_ext
23680 if test "$ac_cv_search_opendir" = no; then
23681   for ac_lib in dir; do
23682     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
23683     cat >conftest.$ac_ext <<_ACEOF
23684 /* confdefs.h.  */
23685 _ACEOF
23686 cat confdefs.h >>conftest.$ac_ext
23687 cat >>conftest.$ac_ext <<_ACEOF
23688 /* end confdefs.h.  */
23689
23690 /* Override any gcc2 internal prototype to avoid an error.  */
23691 #ifdef __cplusplus
23692 extern "C"
23693 #endif
23694 /* We use char because int might match the return type of a gcc2
23695    builtin and then its argument prototype would still apply.  */
23696 char opendir ();
23697 int
23698 main ()
23699 {
23700 opendir ();
23701   ;
23702   return 0;
23703 }
23704 _ACEOF
23705 rm -f conftest.$ac_objext conftest$ac_exeext
23706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23707   (eval $ac_link) 2>conftest.er1
23708   ac_status=$?
23709   grep -v '^ *+' conftest.er1 >conftest.err
23710   rm -f conftest.er1
23711   cat conftest.err >&5
23712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23713   (exit $ac_status); } &&
23714          { ac_try='test -z "$ac_c_werror_flag"
23715                          || test ! -s conftest.err'
23716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23717   (eval $ac_try) 2>&5
23718   ac_status=$?
23719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23720   (exit $ac_status); }; } &&
23721          { ac_try='test -s conftest$ac_exeext'
23722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23723   (eval $ac_try) 2>&5
23724   ac_status=$?
23725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23726   (exit $ac_status); }; }; then
23727   ac_cv_search_opendir="-l$ac_lib"
23728 break
23729 else
23730   echo "$as_me: failed program was:" >&5
23731 sed 's/^/| /' conftest.$ac_ext >&5
23732
23733 fi
23734 rm -f conftest.err conftest.$ac_objext \
23735       conftest$ac_exeext conftest.$ac_ext
23736   done
23737 fi
23738 LIBS=$ac_func_search_save_LIBS
23739 fi
23740 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
23741 echo "${ECHO_T}$ac_cv_search_opendir" >&6
23742 if test "$ac_cv_search_opendir" != no; then
23743   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
23744
23745 fi
23746
23747 else
23748   echo "$as_me:$LINENO: checking for library containing opendir" >&5
23749 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
23750 if test "${ac_cv_search_opendir+set}" = set; then
23751   echo $ECHO_N "(cached) $ECHO_C" >&6
23752 else
23753   ac_func_search_save_LIBS=$LIBS
23754 ac_cv_search_opendir=no
23755 cat >conftest.$ac_ext <<_ACEOF
23756 /* confdefs.h.  */
23757 _ACEOF
23758 cat confdefs.h >>conftest.$ac_ext
23759 cat >>conftest.$ac_ext <<_ACEOF
23760 /* end confdefs.h.  */
23761
23762 /* Override any gcc2 internal prototype to avoid an error.  */
23763 #ifdef __cplusplus
23764 extern "C"
23765 #endif
23766 /* We use char because int might match the return type of a gcc2
23767    builtin and then its argument prototype would still apply.  */
23768 char opendir ();
23769 int
23770 main ()
23771 {
23772 opendir ();
23773   ;
23774   return 0;
23775 }
23776 _ACEOF
23777 rm -f conftest.$ac_objext conftest$ac_exeext
23778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23779   (eval $ac_link) 2>conftest.er1
23780   ac_status=$?
23781   grep -v '^ *+' conftest.er1 >conftest.err
23782   rm -f conftest.er1
23783   cat conftest.err >&5
23784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23785   (exit $ac_status); } &&
23786          { ac_try='test -z "$ac_c_werror_flag"
23787                          || test ! -s conftest.err'
23788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23789   (eval $ac_try) 2>&5
23790   ac_status=$?
23791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23792   (exit $ac_status); }; } &&
23793          { ac_try='test -s conftest$ac_exeext'
23794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23795   (eval $ac_try) 2>&5
23796   ac_status=$?
23797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23798   (exit $ac_status); }; }; then
23799   ac_cv_search_opendir="none required"
23800 else
23801   echo "$as_me: failed program was:" >&5
23802 sed 's/^/| /' conftest.$ac_ext >&5
23803
23804 fi
23805 rm -f conftest.err conftest.$ac_objext \
23806       conftest$ac_exeext conftest.$ac_ext
23807 if test "$ac_cv_search_opendir" = no; then
23808   for ac_lib in x; do
23809     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
23810     cat >conftest.$ac_ext <<_ACEOF
23811 /* confdefs.h.  */
23812 _ACEOF
23813 cat confdefs.h >>conftest.$ac_ext
23814 cat >>conftest.$ac_ext <<_ACEOF
23815 /* end confdefs.h.  */
23816
23817 /* Override any gcc2 internal prototype to avoid an error.  */
23818 #ifdef __cplusplus
23819 extern "C"
23820 #endif
23821 /* We use char because int might match the return type of a gcc2
23822    builtin and then its argument prototype would still apply.  */
23823 char opendir ();
23824 int
23825 main ()
23826 {
23827 opendir ();
23828   ;
23829   return 0;
23830 }
23831 _ACEOF
23832 rm -f conftest.$ac_objext conftest$ac_exeext
23833 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23834   (eval $ac_link) 2>conftest.er1
23835   ac_status=$?
23836   grep -v '^ *+' conftest.er1 >conftest.err
23837   rm -f conftest.er1
23838   cat conftest.err >&5
23839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23840   (exit $ac_status); } &&
23841          { ac_try='test -z "$ac_c_werror_flag"
23842                          || test ! -s conftest.err'
23843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23844   (eval $ac_try) 2>&5
23845   ac_status=$?
23846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23847   (exit $ac_status); }; } &&
23848          { ac_try='test -s conftest$ac_exeext'
23849   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23850   (eval $ac_try) 2>&5
23851   ac_status=$?
23852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23853   (exit $ac_status); }; }; then
23854   ac_cv_search_opendir="-l$ac_lib"
23855 break
23856 else
23857   echo "$as_me: failed program was:" >&5
23858 sed 's/^/| /' conftest.$ac_ext >&5
23859
23860 fi
23861 rm -f conftest.err conftest.$ac_objext \
23862       conftest$ac_exeext conftest.$ac_ext
23863   done
23864 fi
23865 LIBS=$ac_func_search_save_LIBS
23866 fi
23867 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
23868 echo "${ECHO_T}$ac_cv_search_opendir" >&6
23869 if test "$ac_cv_search_opendir" != no; then
23870   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
23871
23872 fi
23873
23874 fi
23875
23876 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
23877 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
23878 if test "${ac_cv_header_sys_wait_h+set}" = set; then
23879   echo $ECHO_N "(cached) $ECHO_C" >&6
23880 else
23881   cat >conftest.$ac_ext <<_ACEOF
23882 /* confdefs.h.  */
23883 _ACEOF
23884 cat confdefs.h >>conftest.$ac_ext
23885 cat >>conftest.$ac_ext <<_ACEOF
23886 /* end confdefs.h.  */
23887 #include <sys/types.h>
23888 #include <sys/wait.h>
23889 #ifndef WEXITSTATUS
23890 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
23891 #endif
23892 #ifndef WIFEXITED
23893 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
23894 #endif
23895
23896 int
23897 main ()
23898 {
23899   int s;
23900   wait (&s);
23901   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
23902   ;
23903   return 0;
23904 }
23905 _ACEOF
23906 rm -f conftest.$ac_objext
23907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23908   (eval $ac_compile) 2>conftest.er1
23909   ac_status=$?
23910   grep -v '^ *+' conftest.er1 >conftest.err
23911   rm -f conftest.er1
23912   cat conftest.err >&5
23913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23914   (exit $ac_status); } &&
23915          { ac_try='test -z "$ac_c_werror_flag"
23916                          || test ! -s conftest.err'
23917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23918   (eval $ac_try) 2>&5
23919   ac_status=$?
23920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23921   (exit $ac_status); }; } &&
23922          { ac_try='test -s conftest.$ac_objext'
23923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23924   (eval $ac_try) 2>&5
23925   ac_status=$?
23926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23927   (exit $ac_status); }; }; then
23928   ac_cv_header_sys_wait_h=yes
23929 else
23930   echo "$as_me: failed program was:" >&5
23931 sed 's/^/| /' conftest.$ac_ext >&5
23932
23933 ac_cv_header_sys_wait_h=no
23934 fi
23935 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23936 fi
23937 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
23938 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
23939 if test $ac_cv_header_sys_wait_h = yes; then
23940
23941 cat >>confdefs.h <<\_ACEOF
23942 #define HAVE_SYS_WAIT_H 1
23943 _ACEOF
23944
23945 fi
23946
23947 echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
23948 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6
23949 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
23950   echo $ECHO_N "(cached) $ECHO_C" >&6
23951 else
23952   cat >conftest.$ac_ext <<_ACEOF
23953 /* confdefs.h.  */
23954 _ACEOF
23955 cat confdefs.h >>conftest.$ac_ext
23956 cat >>conftest.$ac_ext <<_ACEOF
23957 /* end confdefs.h.  */
23958 #include <sys/types.h>
23959 #include <termios.h>
23960 #ifdef TIOCGWINSZ
23961   yes
23962 #endif
23963
23964 _ACEOF
23965 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23966   $EGREP "yes" >/dev/null 2>&1; then
23967   ac_cv_sys_tiocgwinsz_in_termios_h=yes
23968 else
23969   ac_cv_sys_tiocgwinsz_in_termios_h=no
23970 fi
23971 rm -f conftest*
23972
23973 fi
23974 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
23975 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6
23976
23977 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
23978   echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
23979 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6
23980 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
23981   echo $ECHO_N "(cached) $ECHO_C" >&6
23982 else
23983   cat >conftest.$ac_ext <<_ACEOF
23984 /* confdefs.h.  */
23985 _ACEOF
23986 cat confdefs.h >>conftest.$ac_ext
23987 cat >>conftest.$ac_ext <<_ACEOF
23988 /* end confdefs.h.  */
23989 #include <sys/types.h>
23990 #include <sys/ioctl.h>
23991 #ifdef TIOCGWINSZ
23992   yes
23993 #endif
23994
23995 _ACEOF
23996 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23997   $EGREP "yes" >/dev/null 2>&1; then
23998   ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
23999 else
24000   ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
24001 fi
24002 rm -f conftest*
24003
24004 fi
24005 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
24006 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6
24007
24008   if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
24009
24010 cat >>confdefs.h <<\_ACEOF
24011 #define GWINSZ_IN_SYS_IOCTL 1
24012 _ACEOF
24013
24014   fi
24015 fi
24016
24017 if test $am_cv_sys_posix_termios = yes ; then
24018
24019 cat >>confdefs.h <<\_ACEOF
24020 #define HAVE_POSIX_TERMIOS 1
24021 _ACEOF
24022
24023 fi
24024
24025
24026
24027
24028
24029
24030
24031
24032
24033
24034
24035
24036
24037
24038
24039
24040
24041
24042
24043
24044
24045
24046
24047
24048
24049
24050
24051
24052
24053
24054
24055
24056
24057
24058
24059
24060
24061
24062
24063
24064
24065
24066
24067
24068
24069
24070
24071
24072
24073
24074 for ac_header in \
24075         arpa/inet.h             \
24076         arpa/nameser.h          \
24077         assert.h                \
24078         bits/types.h            \
24079         conio.h                 \
24080         crypt.h                 \
24081         direct.h                \
24082         errno.h                 \
24083         fcntl.h                 \
24084         filio.h                 \
24085         getopt.h                \
24086         grp.h                   \
24087         io.h                    \
24088         libutil.h               \
24089         limits.h                \
24090         locale.h                \
24091         netinet/tcp.h           \
24092         malloc.h                \
24093         memory.h                \
24094         psap.h                  \
24095         pwd.h                   \
24096         process.h               \
24097         resolv.h                \
24098         sgtty.h                 \
24099         shadow.h                \
24100         stddef.h                \
24101         string.h                \
24102         strings.h               \
24103         sysexits.h              \
24104         sys/file.h              \
24105         sys/filio.h             \
24106         sys/errno.h             \
24107         sys/ioctl.h             \
24108         sys/param.h             \
24109         sys/resource.h          \
24110         sys/select.h            \
24111         sys/socket.h            \
24112         sys/stat.h              \
24113         sys/syslog.h            \
24114         sys/time.h              \
24115         sys/types.h             \
24116         sys/ucred.h             \
24117         sys/uio.h               \
24118         syslog.h                \
24119         termios.h               \
24120         unistd.h                \
24121         utime.h                 \
24122         winsock.h               \
24123         winsock2.h              \
24124
24125 do
24126 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24127 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24128   echo "$as_me:$LINENO: checking for $ac_header" >&5
24129 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24130 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24131   echo $ECHO_N "(cached) $ECHO_C" >&6
24132 fi
24133 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24134 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24135 else
24136   # Is the header compilable?
24137 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24138 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24139 cat >conftest.$ac_ext <<_ACEOF
24140 /* confdefs.h.  */
24141 _ACEOF
24142 cat confdefs.h >>conftest.$ac_ext
24143 cat >>conftest.$ac_ext <<_ACEOF
24144 /* end confdefs.h.  */
24145 $ac_includes_default
24146 #include <$ac_header>
24147 _ACEOF
24148 rm -f conftest.$ac_objext
24149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24150   (eval $ac_compile) 2>conftest.er1
24151   ac_status=$?
24152   grep -v '^ *+' conftest.er1 >conftest.err
24153   rm -f conftest.er1
24154   cat conftest.err >&5
24155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24156   (exit $ac_status); } &&
24157          { ac_try='test -z "$ac_c_werror_flag"
24158                          || test ! -s conftest.err'
24159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24160   (eval $ac_try) 2>&5
24161   ac_status=$?
24162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24163   (exit $ac_status); }; } &&
24164          { ac_try='test -s conftest.$ac_objext'
24165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24166   (eval $ac_try) 2>&5
24167   ac_status=$?
24168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24169   (exit $ac_status); }; }; then
24170   ac_header_compiler=yes
24171 else
24172   echo "$as_me: failed program was:" >&5
24173 sed 's/^/| /' conftest.$ac_ext >&5
24174
24175 ac_header_compiler=no
24176 fi
24177 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24178 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24179 echo "${ECHO_T}$ac_header_compiler" >&6
24180
24181 # Is the header present?
24182 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24183 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
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 #include <$ac_header>
24191 _ACEOF
24192 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24193   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24194   ac_status=$?
24195   grep -v '^ *+' conftest.er1 >conftest.err
24196   rm -f conftest.er1
24197   cat conftest.err >&5
24198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24199   (exit $ac_status); } >/dev/null; then
24200   if test -s conftest.err; then
24201     ac_cpp_err=$ac_c_preproc_warn_flag
24202     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24203   else
24204     ac_cpp_err=
24205   fi
24206 else
24207   ac_cpp_err=yes
24208 fi
24209 if test -z "$ac_cpp_err"; then
24210   ac_header_preproc=yes
24211 else
24212   echo "$as_me: failed program was:" >&5
24213 sed 's/^/| /' conftest.$ac_ext >&5
24214
24215   ac_header_preproc=no
24216 fi
24217 rm -f conftest.err conftest.$ac_ext
24218 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24219 echo "${ECHO_T}$ac_header_preproc" >&6
24220
24221 # So?  What about this header?
24222 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24223   yes:no: )
24224     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24225 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24226     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24227 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24228     ac_header_preproc=yes
24229     ;;
24230   no:yes:* )
24231     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24232 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24233     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24234 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24235     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24236 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24237     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24238 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24239     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24240 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24241     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24242 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24243     (
24244       cat <<\_ASBOX
24245 ## ------------------------------------------ ##
24246 ## Report this to the AC_PACKAGE_NAME lists.  ##
24247 ## ------------------------------------------ ##
24248 _ASBOX
24249     ) |
24250       sed "s/^/$as_me: WARNING:     /" >&2
24251     ;;
24252 esac
24253 echo "$as_me:$LINENO: checking for $ac_header" >&5
24254 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24255 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24256   echo $ECHO_N "(cached) $ECHO_C" >&6
24257 else
24258   eval "$as_ac_Header=\$ac_header_preproc"
24259 fi
24260 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24261 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24262
24263 fi
24264 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24265   cat >>confdefs.h <<_ACEOF
24266 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24267 _ACEOF
24268
24269 fi
24270
24271 done
24272
24273
24274
24275
24276
24277 for ac_func in sigaction sigset
24278 do
24279 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24280 echo "$as_me:$LINENO: checking for $ac_func" >&5
24281 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24282 if eval "test \"\${$as_ac_var+set}\" = set"; then
24283   echo $ECHO_N "(cached) $ECHO_C" >&6
24284 else
24285   cat >conftest.$ac_ext <<_ACEOF
24286 /* confdefs.h.  */
24287 _ACEOF
24288 cat confdefs.h >>conftest.$ac_ext
24289 cat >>conftest.$ac_ext <<_ACEOF
24290 /* end confdefs.h.  */
24291 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24292    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24293 #define $ac_func innocuous_$ac_func
24294
24295 /* System header to define __stub macros and hopefully few prototypes,
24296     which can conflict with char $ac_func (); below.
24297     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24298     <limits.h> exists even on freestanding compilers.  */
24299
24300 #ifdef __STDC__
24301 # include <limits.h>
24302 #else
24303 # include <assert.h>
24304 #endif
24305
24306 #undef $ac_func
24307
24308 /* Override any gcc2 internal prototype to avoid an error.  */
24309 #ifdef __cplusplus
24310 extern "C"
24311 {
24312 #endif
24313 /* We use char because int might match the return type of a gcc2
24314    builtin and then its argument prototype would still apply.  */
24315 char $ac_func ();
24316 /* The GNU C library defines this for functions which it implements
24317     to always fail with ENOSYS.  Some functions are actually named
24318     something starting with __ and the normal name is an alias.  */
24319 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24320 choke me
24321 #else
24322 char (*f) () = $ac_func;
24323 #endif
24324 #ifdef __cplusplus
24325 }
24326 #endif
24327
24328 int
24329 main ()
24330 {
24331 return f != $ac_func;
24332   ;
24333   return 0;
24334 }
24335 _ACEOF
24336 rm -f conftest.$ac_objext conftest$ac_exeext
24337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24338   (eval $ac_link) 2>conftest.er1
24339   ac_status=$?
24340   grep -v '^ *+' conftest.er1 >conftest.err
24341   rm -f conftest.er1
24342   cat conftest.err >&5
24343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24344   (exit $ac_status); } &&
24345          { ac_try='test -z "$ac_c_werror_flag"
24346                          || test ! -s conftest.err'
24347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24348   (eval $ac_try) 2>&5
24349   ac_status=$?
24350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24351   (exit $ac_status); }; } &&
24352          { ac_try='test -s conftest$ac_exeext'
24353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24354   (eval $ac_try) 2>&5
24355   ac_status=$?
24356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24357   (exit $ac_status); }; }; then
24358   eval "$as_ac_var=yes"
24359 else
24360   echo "$as_me: failed program was:" >&5
24361 sed 's/^/| /' conftest.$ac_ext >&5
24362
24363 eval "$as_ac_var=no"
24364 fi
24365 rm -f conftest.err conftest.$ac_objext \
24366       conftest$ac_exeext conftest.$ac_ext
24367 fi
24368 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24369 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24370 if test `eval echo '${'$as_ac_var'}'` = yes; then
24371   cat >>confdefs.h <<_ACEOF
24372 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24373 _ACEOF
24374
24375 fi
24376 done
24377
24378
24379 if test $ac_cv_func_sigaction = no && test $ac_cv_func_sigaction = no ; then
24380
24381 echo "$as_me:$LINENO: checking for sigset in -lV3" >&5
24382 echo $ECHO_N "checking for sigset in -lV3... $ECHO_C" >&6
24383 if test "${ac_cv_lib_V3_sigset+set}" = set; then
24384   echo $ECHO_N "(cached) $ECHO_C" >&6
24385 else
24386   ac_check_lib_save_LIBS=$LIBS
24387 LIBS="-lV3  $LIBS"
24388 cat >conftest.$ac_ext <<_ACEOF
24389 /* confdefs.h.  */
24390 _ACEOF
24391 cat confdefs.h >>conftest.$ac_ext
24392 cat >>conftest.$ac_ext <<_ACEOF
24393 /* end confdefs.h.  */
24394
24395 /* Override any gcc2 internal prototype to avoid an error.  */
24396 #ifdef __cplusplus
24397 extern "C"
24398 #endif
24399 /* We use char because int might match the return type of a gcc2
24400    builtin and then its argument prototype would still apply.  */
24401 char sigset ();
24402 int
24403 main ()
24404 {
24405 sigset ();
24406   ;
24407   return 0;
24408 }
24409 _ACEOF
24410 rm -f conftest.$ac_objext conftest$ac_exeext
24411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24412   (eval $ac_link) 2>conftest.er1
24413   ac_status=$?
24414   grep -v '^ *+' conftest.er1 >conftest.err
24415   rm -f conftest.er1
24416   cat conftest.err >&5
24417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24418   (exit $ac_status); } &&
24419          { ac_try='test -z "$ac_c_werror_flag"
24420                          || test ! -s conftest.err'
24421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24422   (eval $ac_try) 2>&5
24423   ac_status=$?
24424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24425   (exit $ac_status); }; } &&
24426          { ac_try='test -s conftest$ac_exeext'
24427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24428   (eval $ac_try) 2>&5
24429   ac_status=$?
24430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24431   (exit $ac_status); }; }; then
24432   ac_cv_lib_V3_sigset=yes
24433 else
24434   echo "$as_me: failed program was:" >&5
24435 sed 's/^/| /' conftest.$ac_ext >&5
24436
24437 ac_cv_lib_V3_sigset=no
24438 fi
24439 rm -f conftest.err conftest.$ac_objext \
24440       conftest$ac_exeext conftest.$ac_ext
24441 LIBS=$ac_check_lib_save_LIBS
24442 fi
24443 echo "$as_me:$LINENO: result: $ac_cv_lib_V3_sigset" >&5
24444 echo "${ECHO_T}$ac_cv_lib_V3_sigset" >&6
24445 if test $ac_cv_lib_V3_sigset = yes; then
24446   cat >>confdefs.h <<_ACEOF
24447 #define HAVE_LIBV3 1
24448 _ACEOF
24449
24450   LIBS="-lV3 $LIBS"
24451
24452 fi
24453
24454 fi
24455
24456 if test "$ac_cv_cygwin" != yes && test "$ac_cv_header_winsock_h" = yes; then
24457 echo "$as_me:$LINENO: checking for winsock" >&5
24458 echo $ECHO_N "checking for winsock... $ECHO_C" >&6
24459 if test "${ol_cv_winsock+set}" = set; then
24460   echo $ECHO_N "(cached) $ECHO_C" >&6
24461 else
24462   save_LIBS="$LIBS"
24463 for curlib in ws2_32 wsock32; do
24464         LIBS="$LIBS -l$curlib"
24465         cat >conftest.$ac_ext <<_ACEOF
24466 /* confdefs.h.  */
24467 _ACEOF
24468 cat confdefs.h >>conftest.$ac_ext
24469 cat >>conftest.$ac_ext <<_ACEOF
24470 /* end confdefs.h.  */
24471 #include <winsock.h>
24472
24473 int
24474 main ()
24475 {
24476
24477                         socket(0,0,0);
24478                         select(0,NULL,NULL,NULL,NULL);
24479                         closesocket(0);
24480                         gethostname(NULL,0);
24481
24482   ;
24483   return 0;
24484 }
24485 _ACEOF
24486 rm -f conftest.$ac_objext conftest$ac_exeext
24487 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24488   (eval $ac_link) 2>conftest.er1
24489   ac_status=$?
24490   grep -v '^ *+' conftest.er1 >conftest.err
24491   rm -f conftest.er1
24492   cat conftest.err >&5
24493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24494   (exit $ac_status); } &&
24495          { ac_try='test -z "$ac_c_werror_flag"
24496                          || test ! -s conftest.err'
24497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24498   (eval $ac_try) 2>&5
24499   ac_status=$?
24500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24501   (exit $ac_status); }; } &&
24502          { ac_try='test -s conftest$ac_exeext'
24503   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24504   (eval $ac_try) 2>&5
24505   ac_status=$?
24506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24507   (exit $ac_status); }; }; then
24508   ol_cv_winsock=yes
24509 else
24510   echo "$as_me: failed program was:" >&5
24511 sed 's/^/| /' conftest.$ac_ext >&5
24512
24513 ol_cv_winsock=no
24514 fi
24515 rm -f conftest.err conftest.$ac_objext \
24516       conftest$ac_exeext conftest.$ac_ext
24517
24518         if test $ol_cv_winsock = yes; then
24519
24520 cat >>confdefs.h <<\_ACEOF
24521 #define HAVE_WINSOCK 1
24522 _ACEOF
24523
24524                 ac_cv_func_socket=yes
24525                 ac_cv_func_select=yes
24526                 ac_cv_func_closesocket=yes
24527                 ac_cv_func_gethostname=yes
24528                 if test $curlib = ws2_32; then
24529                         ol_cv_winsock=winsock2
24530
24531 cat >>confdefs.h <<\_ACEOF
24532 #define HAVE_WINSOCK2 1
24533 _ACEOF
24534
24535                 fi
24536                 break
24537         fi
24538         LIBS="$save_LIBS"
24539 done
24540 fi
24541 echo "$as_me:$LINENO: result: $ol_cv_winsock" >&5
24542 echo "${ECHO_T}$ol_cv_winsock" >&6
24543 fi
24544
24545
24546 echo "$as_me:$LINENO: checking for socket" >&5
24547 echo $ECHO_N "checking for socket... $ECHO_C" >&6
24548 if test "${ac_cv_func_socket+set}" = set; then
24549   echo $ECHO_N "(cached) $ECHO_C" >&6
24550 else
24551   cat >conftest.$ac_ext <<_ACEOF
24552 /* confdefs.h.  */
24553 _ACEOF
24554 cat confdefs.h >>conftest.$ac_ext
24555 cat >>conftest.$ac_ext <<_ACEOF
24556 /* end confdefs.h.  */
24557 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
24558    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24559 #define socket innocuous_socket
24560
24561 /* System header to define __stub macros and hopefully few prototypes,
24562     which can conflict with char socket (); below.
24563     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24564     <limits.h> exists even on freestanding compilers.  */
24565
24566 #ifdef __STDC__
24567 # include <limits.h>
24568 #else
24569 # include <assert.h>
24570 #endif
24571
24572 #undef socket
24573
24574 /* Override any gcc2 internal prototype to avoid an error.  */
24575 #ifdef __cplusplus
24576 extern "C"
24577 {
24578 #endif
24579 /* We use char because int might match the return type of a gcc2
24580    builtin and then its argument prototype would still apply.  */
24581 char socket ();
24582 /* The GNU C library defines this for functions which it implements
24583     to always fail with ENOSYS.  Some functions are actually named
24584     something starting with __ and the normal name is an alias.  */
24585 #if defined (__stub_socket) || defined (__stub___socket)
24586 choke me
24587 #else
24588 char (*f) () = socket;
24589 #endif
24590 #ifdef __cplusplus
24591 }
24592 #endif
24593
24594 int
24595 main ()
24596 {
24597 return f != socket;
24598   ;
24599   return 0;
24600 }
24601 _ACEOF
24602 rm -f conftest.$ac_objext conftest$ac_exeext
24603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24604   (eval $ac_link) 2>conftest.er1
24605   ac_status=$?
24606   grep -v '^ *+' conftest.er1 >conftest.err
24607   rm -f conftest.er1
24608   cat conftest.err >&5
24609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24610   (exit $ac_status); } &&
24611          { ac_try='test -z "$ac_c_werror_flag"
24612                          || test ! -s conftest.err'
24613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24614   (eval $ac_try) 2>&5
24615   ac_status=$?
24616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24617   (exit $ac_status); }; } &&
24618          { ac_try='test -s conftest$ac_exeext'
24619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24620   (eval $ac_try) 2>&5
24621   ac_status=$?
24622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24623   (exit $ac_status); }; }; then
24624   ac_cv_func_socket=yes
24625 else
24626   echo "$as_me: failed program was:" >&5
24627 sed 's/^/| /' conftest.$ac_ext >&5
24628
24629 ac_cv_func_socket=no
24630 fi
24631 rm -f conftest.err conftest.$ac_objext \
24632       conftest$ac_exeext conftest.$ac_ext
24633 fi
24634 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
24635 echo "${ECHO_T}$ac_cv_func_socket" >&6
24636 if test $ac_cv_func_socket = yes; then
24637   :
24638 else
24639
24640
24641 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
24642 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
24643 if test "${ac_cv_lib_socket_main+set}" = set; then
24644   echo $ECHO_N "(cached) $ECHO_C" >&6
24645 else
24646   ac_check_lib_save_LIBS=$LIBS
24647 LIBS="-lsocket  $LIBS"
24648 cat >conftest.$ac_ext <<_ACEOF
24649 /* confdefs.h.  */
24650 _ACEOF
24651 cat confdefs.h >>conftest.$ac_ext
24652 cat >>conftest.$ac_ext <<_ACEOF
24653 /* end confdefs.h.  */
24654
24655
24656 int
24657 main ()
24658 {
24659 main ();
24660   ;
24661   return 0;
24662 }
24663 _ACEOF
24664 rm -f conftest.$ac_objext conftest$ac_exeext
24665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24666   (eval $ac_link) 2>conftest.er1
24667   ac_status=$?
24668   grep -v '^ *+' conftest.er1 >conftest.err
24669   rm -f conftest.er1
24670   cat conftest.err >&5
24671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24672   (exit $ac_status); } &&
24673          { ac_try='test -z "$ac_c_werror_flag"
24674                          || test ! -s conftest.err'
24675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24676   (eval $ac_try) 2>&5
24677   ac_status=$?
24678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24679   (exit $ac_status); }; } &&
24680          { ac_try='test -s conftest$ac_exeext'
24681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24682   (eval $ac_try) 2>&5
24683   ac_status=$?
24684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24685   (exit $ac_status); }; }; then
24686   ac_cv_lib_socket_main=yes
24687 else
24688   echo "$as_me: failed program was:" >&5
24689 sed 's/^/| /' conftest.$ac_ext >&5
24690
24691 ac_cv_lib_socket_main=no
24692 fi
24693 rm -f conftest.err conftest.$ac_objext \
24694       conftest$ac_exeext conftest.$ac_ext
24695 LIBS=$ac_check_lib_save_LIBS
24696 fi
24697 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
24698 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
24699 if test $ac_cv_lib_socket_main = yes; then
24700   cat >>confdefs.h <<_ACEOF
24701 #define HAVE_LIBSOCKET 1
24702 _ACEOF
24703
24704   LIBS="-lsocket $LIBS"
24705
24706 fi
24707
24708
24709 echo "$as_me:$LINENO: checking for main in -lnet" >&5
24710 echo $ECHO_N "checking for main in -lnet... $ECHO_C" >&6
24711 if test "${ac_cv_lib_net_main+set}" = set; then
24712   echo $ECHO_N "(cached) $ECHO_C" >&6
24713 else
24714   ac_check_lib_save_LIBS=$LIBS
24715 LIBS="-lnet  $LIBS"
24716 cat >conftest.$ac_ext <<_ACEOF
24717 /* confdefs.h.  */
24718 _ACEOF
24719 cat confdefs.h >>conftest.$ac_ext
24720 cat >>conftest.$ac_ext <<_ACEOF
24721 /* end confdefs.h.  */
24722
24723
24724 int
24725 main ()
24726 {
24727 main ();
24728   ;
24729   return 0;
24730 }
24731 _ACEOF
24732 rm -f conftest.$ac_objext conftest$ac_exeext
24733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24734   (eval $ac_link) 2>conftest.er1
24735   ac_status=$?
24736   grep -v '^ *+' conftest.er1 >conftest.err
24737   rm -f conftest.er1
24738   cat conftest.err >&5
24739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24740   (exit $ac_status); } &&
24741          { ac_try='test -z "$ac_c_werror_flag"
24742                          || test ! -s conftest.err'
24743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24744   (eval $ac_try) 2>&5
24745   ac_status=$?
24746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24747   (exit $ac_status); }; } &&
24748          { ac_try='test -s conftest$ac_exeext'
24749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24750   (eval $ac_try) 2>&5
24751   ac_status=$?
24752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24753   (exit $ac_status); }; }; then
24754   ac_cv_lib_net_main=yes
24755 else
24756   echo "$as_me: failed program was:" >&5
24757 sed 's/^/| /' conftest.$ac_ext >&5
24758
24759 ac_cv_lib_net_main=no
24760 fi
24761 rm -f conftest.err conftest.$ac_objext \
24762       conftest$ac_exeext conftest.$ac_ext
24763 LIBS=$ac_check_lib_save_LIBS
24764 fi
24765 echo "$as_me:$LINENO: result: $ac_cv_lib_net_main" >&5
24766 echo "${ECHO_T}$ac_cv_lib_net_main" >&6
24767 if test $ac_cv_lib_net_main = yes; then
24768   cat >>confdefs.h <<_ACEOF
24769 #define HAVE_LIBNET 1
24770 _ACEOF
24771
24772   LIBS="-lnet $LIBS"
24773
24774 fi
24775
24776
24777 echo "$as_me:$LINENO: checking for main in -lnsl_s" >&5
24778 echo $ECHO_N "checking for main in -lnsl_s... $ECHO_C" >&6
24779 if test "${ac_cv_lib_nsl_s_main+set}" = set; then
24780   echo $ECHO_N "(cached) $ECHO_C" >&6
24781 else
24782   ac_check_lib_save_LIBS=$LIBS
24783 LIBS="-lnsl_s  $LIBS"
24784 cat >conftest.$ac_ext <<_ACEOF
24785 /* confdefs.h.  */
24786 _ACEOF
24787 cat confdefs.h >>conftest.$ac_ext
24788 cat >>conftest.$ac_ext <<_ACEOF
24789 /* end confdefs.h.  */
24790
24791
24792 int
24793 main ()
24794 {
24795 main ();
24796   ;
24797   return 0;
24798 }
24799 _ACEOF
24800 rm -f conftest.$ac_objext conftest$ac_exeext
24801 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24802   (eval $ac_link) 2>conftest.er1
24803   ac_status=$?
24804   grep -v '^ *+' conftest.er1 >conftest.err
24805   rm -f conftest.er1
24806   cat conftest.err >&5
24807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24808   (exit $ac_status); } &&
24809          { ac_try='test -z "$ac_c_werror_flag"
24810                          || test ! -s conftest.err'
24811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24812   (eval $ac_try) 2>&5
24813   ac_status=$?
24814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24815   (exit $ac_status); }; } &&
24816          { ac_try='test -s conftest$ac_exeext'
24817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24818   (eval $ac_try) 2>&5
24819   ac_status=$?
24820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24821   (exit $ac_status); }; }; then
24822   ac_cv_lib_nsl_s_main=yes
24823 else
24824   echo "$as_me: failed program was:" >&5
24825 sed 's/^/| /' conftest.$ac_ext >&5
24826
24827 ac_cv_lib_nsl_s_main=no
24828 fi
24829 rm -f conftest.err conftest.$ac_objext \
24830       conftest$ac_exeext conftest.$ac_ext
24831 LIBS=$ac_check_lib_save_LIBS
24832 fi
24833 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_s_main" >&5
24834 echo "${ECHO_T}$ac_cv_lib_nsl_s_main" >&6
24835 if test $ac_cv_lib_nsl_s_main = yes; then
24836   cat >>confdefs.h <<_ACEOF
24837 #define HAVE_LIBNSL_S 1
24838 _ACEOF
24839
24840   LIBS="-lnsl_s $LIBS"
24841
24842 fi
24843
24844
24845 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
24846 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
24847 if test "${ac_cv_lib_nsl_main+set}" = set; then
24848   echo $ECHO_N "(cached) $ECHO_C" >&6
24849 else
24850   ac_check_lib_save_LIBS=$LIBS
24851 LIBS="-lnsl  $LIBS"
24852 cat >conftest.$ac_ext <<_ACEOF
24853 /* confdefs.h.  */
24854 _ACEOF
24855 cat confdefs.h >>conftest.$ac_ext
24856 cat >>conftest.$ac_ext <<_ACEOF
24857 /* end confdefs.h.  */
24858
24859
24860 int
24861 main ()
24862 {
24863 main ();
24864   ;
24865   return 0;
24866 }
24867 _ACEOF
24868 rm -f conftest.$ac_objext conftest$ac_exeext
24869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24870   (eval $ac_link) 2>conftest.er1
24871   ac_status=$?
24872   grep -v '^ *+' conftest.er1 >conftest.err
24873   rm -f conftest.er1
24874   cat conftest.err >&5
24875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24876   (exit $ac_status); } &&
24877          { ac_try='test -z "$ac_c_werror_flag"
24878                          || test ! -s conftest.err'
24879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24880   (eval $ac_try) 2>&5
24881   ac_status=$?
24882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24883   (exit $ac_status); }; } &&
24884          { ac_try='test -s conftest$ac_exeext'
24885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24886   (eval $ac_try) 2>&5
24887   ac_status=$?
24888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24889   (exit $ac_status); }; }; then
24890   ac_cv_lib_nsl_main=yes
24891 else
24892   echo "$as_me: failed program was:" >&5
24893 sed 's/^/| /' conftest.$ac_ext >&5
24894
24895 ac_cv_lib_nsl_main=no
24896 fi
24897 rm -f conftest.err conftest.$ac_objext \
24898       conftest$ac_exeext conftest.$ac_ext
24899 LIBS=$ac_check_lib_save_LIBS
24900 fi
24901 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
24902 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
24903 if test $ac_cv_lib_nsl_main = yes; then
24904   cat >>confdefs.h <<_ACEOF
24905 #define HAVE_LIBNSL 1
24906 _ACEOF
24907
24908   LIBS="-lnsl $LIBS"
24909
24910 fi
24911
24912
24913 echo "$as_me:$LINENO: checking for socket in -linet" >&5
24914 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
24915 if test "${ac_cv_lib_inet_socket+set}" = set; then
24916   echo $ECHO_N "(cached) $ECHO_C" >&6
24917 else
24918   ac_check_lib_save_LIBS=$LIBS
24919 LIBS="-linet  $LIBS"
24920 cat >conftest.$ac_ext <<_ACEOF
24921 /* confdefs.h.  */
24922 _ACEOF
24923 cat confdefs.h >>conftest.$ac_ext
24924 cat >>conftest.$ac_ext <<_ACEOF
24925 /* end confdefs.h.  */
24926
24927 /* Override any gcc2 internal prototype to avoid an error.  */
24928 #ifdef __cplusplus
24929 extern "C"
24930 #endif
24931 /* We use char because int might match the return type of a gcc2
24932    builtin and then its argument prototype would still apply.  */
24933 char socket ();
24934 int
24935 main ()
24936 {
24937 socket ();
24938   ;
24939   return 0;
24940 }
24941 _ACEOF
24942 rm -f conftest.$ac_objext conftest$ac_exeext
24943 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24944   (eval $ac_link) 2>conftest.er1
24945   ac_status=$?
24946   grep -v '^ *+' conftest.er1 >conftest.err
24947   rm -f conftest.er1
24948   cat conftest.err >&5
24949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24950   (exit $ac_status); } &&
24951          { ac_try='test -z "$ac_c_werror_flag"
24952                          || test ! -s conftest.err'
24953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24954   (eval $ac_try) 2>&5
24955   ac_status=$?
24956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24957   (exit $ac_status); }; } &&
24958          { ac_try='test -s conftest$ac_exeext'
24959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24960   (eval $ac_try) 2>&5
24961   ac_status=$?
24962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24963   (exit $ac_status); }; }; then
24964   ac_cv_lib_inet_socket=yes
24965 else
24966   echo "$as_me: failed program was:" >&5
24967 sed 's/^/| /' conftest.$ac_ext >&5
24968
24969 ac_cv_lib_inet_socket=no
24970 fi
24971 rm -f conftest.err conftest.$ac_objext \
24972       conftest$ac_exeext conftest.$ac_ext
24973 LIBS=$ac_check_lib_save_LIBS
24974 fi
24975 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
24976 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
24977 if test $ac_cv_lib_inet_socket = yes; then
24978   cat >>confdefs.h <<_ACEOF
24979 #define HAVE_LIBINET 1
24980 _ACEOF
24981
24982   LIBS="-linet $LIBS"
24983
24984 fi
24985
24986
24987 echo "$as_me:$LINENO: checking for main in -lgen" >&5
24988 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
24989 if test "${ac_cv_lib_gen_main+set}" = set; then
24990   echo $ECHO_N "(cached) $ECHO_C" >&6
24991 else
24992   ac_check_lib_save_LIBS=$LIBS
24993 LIBS="-lgen  $LIBS"
24994 cat >conftest.$ac_ext <<_ACEOF
24995 /* confdefs.h.  */
24996 _ACEOF
24997 cat confdefs.h >>conftest.$ac_ext
24998 cat >>conftest.$ac_ext <<_ACEOF
24999 /* end confdefs.h.  */
25000
25001
25002 int
25003 main ()
25004 {
25005 main ();
25006   ;
25007   return 0;
25008 }
25009 _ACEOF
25010 rm -f conftest.$ac_objext conftest$ac_exeext
25011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25012   (eval $ac_link) 2>conftest.er1
25013   ac_status=$?
25014   grep -v '^ *+' conftest.er1 >conftest.err
25015   rm -f conftest.er1
25016   cat conftest.err >&5
25017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25018   (exit $ac_status); } &&
25019          { ac_try='test -z "$ac_c_werror_flag"
25020                          || test ! -s conftest.err'
25021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25022   (eval $ac_try) 2>&5
25023   ac_status=$?
25024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25025   (exit $ac_status); }; } &&
25026          { ac_try='test -s conftest$ac_exeext'
25027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25028   (eval $ac_try) 2>&5
25029   ac_status=$?
25030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25031   (exit $ac_status); }; }; then
25032   ac_cv_lib_gen_main=yes
25033 else
25034   echo "$as_me: failed program was:" >&5
25035 sed 's/^/| /' conftest.$ac_ext >&5
25036
25037 ac_cv_lib_gen_main=no
25038 fi
25039 rm -f conftest.err conftest.$ac_objext \
25040       conftest$ac_exeext conftest.$ac_ext
25041 LIBS=$ac_check_lib_save_LIBS
25042 fi
25043 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
25044 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
25045 if test $ac_cv_lib_gen_main = yes; then
25046   cat >>confdefs.h <<_ACEOF
25047 #define HAVE_LIBGEN 1
25048 _ACEOF
25049
25050   LIBS="-lgen $LIBS"
25051
25052 fi
25053
25054
25055 fi
25056
25057
25058 echo "$as_me:$LINENO: checking for select" >&5
25059 echo $ECHO_N "checking for select... $ECHO_C" >&6
25060 if test "${ac_cv_func_select+set}" = set; then
25061   echo $ECHO_N "(cached) $ECHO_C" >&6
25062 else
25063   cat >conftest.$ac_ext <<_ACEOF
25064 /* confdefs.h.  */
25065 _ACEOF
25066 cat confdefs.h >>conftest.$ac_ext
25067 cat >>conftest.$ac_ext <<_ACEOF
25068 /* end confdefs.h.  */
25069 /* Define select to an innocuous variant, in case <limits.h> declares select.
25070    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25071 #define select innocuous_select
25072
25073 /* System header to define __stub macros and hopefully few prototypes,
25074     which can conflict with char select (); below.
25075     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25076     <limits.h> exists even on freestanding compilers.  */
25077
25078 #ifdef __STDC__
25079 # include <limits.h>
25080 #else
25081 # include <assert.h>
25082 #endif
25083
25084 #undef select
25085
25086 /* Override any gcc2 internal prototype to avoid an error.  */
25087 #ifdef __cplusplus
25088 extern "C"
25089 {
25090 #endif
25091 /* We use char because int might match the return type of a gcc2
25092    builtin and then its argument prototype would still apply.  */
25093 char select ();
25094 /* The GNU C library defines this for functions which it implements
25095     to always fail with ENOSYS.  Some functions are actually named
25096     something starting with __ and the normal name is an alias.  */
25097 #if defined (__stub_select) || defined (__stub___select)
25098 choke me
25099 #else
25100 char (*f) () = select;
25101 #endif
25102 #ifdef __cplusplus
25103 }
25104 #endif
25105
25106 int
25107 main ()
25108 {
25109 return f != select;
25110   ;
25111   return 0;
25112 }
25113 _ACEOF
25114 rm -f conftest.$ac_objext conftest$ac_exeext
25115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25116   (eval $ac_link) 2>conftest.er1
25117   ac_status=$?
25118   grep -v '^ *+' conftest.er1 >conftest.err
25119   rm -f conftest.er1
25120   cat conftest.err >&5
25121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25122   (exit $ac_status); } &&
25123          { ac_try='test -z "$ac_c_werror_flag"
25124                          || test ! -s conftest.err'
25125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25126   (eval $ac_try) 2>&5
25127   ac_status=$?
25128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25129   (exit $ac_status); }; } &&
25130          { ac_try='test -s conftest$ac_exeext'
25131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25132   (eval $ac_try) 2>&5
25133   ac_status=$?
25134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25135   (exit $ac_status); }; }; then
25136   ac_cv_func_select=yes
25137 else
25138   echo "$as_me: failed program was:" >&5
25139 sed 's/^/| /' conftest.$ac_ext >&5
25140
25141 ac_cv_func_select=no
25142 fi
25143 rm -f conftest.err conftest.$ac_objext \
25144       conftest$ac_exeext conftest.$ac_ext
25145 fi
25146 echo "$as_me:$LINENO: result: $ac_cv_func_select" >&5
25147 echo "${ECHO_T}$ac_cv_func_select" >&6
25148 if test $ac_cv_func_select = yes; then
25149   :
25150 else
25151   { { echo "$as_me:$LINENO: error: select() required." >&5
25152 echo "$as_me: error: select() required." >&2;}
25153    { (exit 1); exit 1; }; }
25154 fi
25155
25156
25157 if test "${ac_cv_header_winsock_h}" != yes; then
25158
25159
25160 for ac_header in sys/select.h sys/socket.h
25161 do
25162 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25163 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25164   echo "$as_me:$LINENO: checking for $ac_header" >&5
25165 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25166 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25167   echo $ECHO_N "(cached) $ECHO_C" >&6
25168 fi
25169 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25170 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25171 else
25172   # Is the header compilable?
25173 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25174 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25175 cat >conftest.$ac_ext <<_ACEOF
25176 /* confdefs.h.  */
25177 _ACEOF
25178 cat confdefs.h >>conftest.$ac_ext
25179 cat >>conftest.$ac_ext <<_ACEOF
25180 /* end confdefs.h.  */
25181 $ac_includes_default
25182 #include <$ac_header>
25183 _ACEOF
25184 rm -f conftest.$ac_objext
25185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25186   (eval $ac_compile) 2>conftest.er1
25187   ac_status=$?
25188   grep -v '^ *+' conftest.er1 >conftest.err
25189   rm -f conftest.er1
25190   cat conftest.err >&5
25191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25192   (exit $ac_status); } &&
25193          { ac_try='test -z "$ac_c_werror_flag"
25194                          || test ! -s conftest.err'
25195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25196   (eval $ac_try) 2>&5
25197   ac_status=$?
25198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25199   (exit $ac_status); }; } &&
25200          { ac_try='test -s conftest.$ac_objext'
25201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25202   (eval $ac_try) 2>&5
25203   ac_status=$?
25204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25205   (exit $ac_status); }; }; then
25206   ac_header_compiler=yes
25207 else
25208   echo "$as_me: failed program was:" >&5
25209 sed 's/^/| /' conftest.$ac_ext >&5
25210
25211 ac_header_compiler=no
25212 fi
25213 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25214 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25215 echo "${ECHO_T}$ac_header_compiler" >&6
25216
25217 # Is the header present?
25218 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25219 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25220 cat >conftest.$ac_ext <<_ACEOF
25221 /* confdefs.h.  */
25222 _ACEOF
25223 cat confdefs.h >>conftest.$ac_ext
25224 cat >>conftest.$ac_ext <<_ACEOF
25225 /* end confdefs.h.  */
25226 #include <$ac_header>
25227 _ACEOF
25228 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25229   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25230   ac_status=$?
25231   grep -v '^ *+' conftest.er1 >conftest.err
25232   rm -f conftest.er1
25233   cat conftest.err >&5
25234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25235   (exit $ac_status); } >/dev/null; then
25236   if test -s conftest.err; then
25237     ac_cpp_err=$ac_c_preproc_warn_flag
25238     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25239   else
25240     ac_cpp_err=
25241   fi
25242 else
25243   ac_cpp_err=yes
25244 fi
25245 if test -z "$ac_cpp_err"; then
25246   ac_header_preproc=yes
25247 else
25248   echo "$as_me: failed program was:" >&5
25249 sed 's/^/| /' conftest.$ac_ext >&5
25250
25251   ac_header_preproc=no
25252 fi
25253 rm -f conftest.err conftest.$ac_ext
25254 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25255 echo "${ECHO_T}$ac_header_preproc" >&6
25256
25257 # So?  What about this header?
25258 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25259   yes:no: )
25260     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25261 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25262     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25263 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25264     ac_header_preproc=yes
25265     ;;
25266   no:yes:* )
25267     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25268 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25269     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25270 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25271     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25272 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25273     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25274 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25275     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25276 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25277     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25278 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25279     (
25280       cat <<\_ASBOX
25281 ## ------------------------------------------ ##
25282 ## Report this to the AC_PACKAGE_NAME lists.  ##
25283 ## ------------------------------------------ ##
25284 _ASBOX
25285     ) |
25286       sed "s/^/$as_me: WARNING:     /" >&2
25287     ;;
25288 esac
25289 echo "$as_me:$LINENO: checking for $ac_header" >&5
25290 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25291 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25292   echo $ECHO_N "(cached) $ECHO_C" >&6
25293 else
25294   eval "$as_ac_Header=\$ac_header_preproc"
25295 fi
25296 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25297 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25298
25299 fi
25300 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25301   cat >>confdefs.h <<_ACEOF
25302 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25303 _ACEOF
25304
25305 fi
25306
25307 done
25308
25309 echo "$as_me:$LINENO: checking types of arguments for select" >&5
25310 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
25311 if test "${ac_cv_func_select_args+set}" = set; then
25312   echo $ECHO_N "(cached) $ECHO_C" >&6
25313 else
25314   for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
25315  for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
25316   for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
25317    cat >conftest.$ac_ext <<_ACEOF
25318 /* confdefs.h.  */
25319 _ACEOF
25320 cat confdefs.h >>conftest.$ac_ext
25321 cat >>conftest.$ac_ext <<_ACEOF
25322 /* end confdefs.h.  */
25323 $ac_includes_default
25324 #if HAVE_SYS_SELECT_H
25325 # include <sys/select.h>
25326 #endif
25327 #if HAVE_SYS_SOCKET_H
25328 # include <sys/socket.h>
25329 #endif
25330
25331 int
25332 main ()
25333 {
25334 extern int select ($ac_arg1,
25335                                             $ac_arg234, $ac_arg234, $ac_arg234,
25336                                             $ac_arg5);
25337   ;
25338   return 0;
25339 }
25340 _ACEOF
25341 rm -f conftest.$ac_objext
25342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25343   (eval $ac_compile) 2>conftest.er1
25344   ac_status=$?
25345   grep -v '^ *+' conftest.er1 >conftest.err
25346   rm -f conftest.er1
25347   cat conftest.err >&5
25348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25349   (exit $ac_status); } &&
25350          { ac_try='test -z "$ac_c_werror_flag"
25351                          || test ! -s conftest.err'
25352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25353   (eval $ac_try) 2>&5
25354   ac_status=$?
25355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25356   (exit $ac_status); }; } &&
25357          { ac_try='test -s conftest.$ac_objext'
25358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25359   (eval $ac_try) 2>&5
25360   ac_status=$?
25361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25362   (exit $ac_status); }; }; then
25363   ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
25364 else
25365   echo "$as_me: failed program was:" >&5
25366 sed 's/^/| /' conftest.$ac_ext >&5
25367
25368 fi
25369 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25370   done
25371  done
25372 done
25373 # Provide a safe default value.
25374 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
25375
25376 fi
25377 echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
25378 echo "${ECHO_T}$ac_cv_func_select_args" >&6
25379 ac_save_IFS=$IFS; IFS=','
25380 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
25381 IFS=$ac_save_IFS
25382 shift
25383
25384 cat >>confdefs.h <<_ACEOF
25385 #define SELECT_TYPE_ARG1 $1
25386 _ACEOF
25387
25388
25389 cat >>confdefs.h <<_ACEOF
25390 #define SELECT_TYPE_ARG234 ($2)
25391 _ACEOF
25392
25393
25394 cat >>confdefs.h <<_ACEOF
25395 #define SELECT_TYPE_ARG5 ($3)
25396 _ACEOF
25397
25398 rm -f conftest*
25399
25400 fi
25401
25402
25403
25404 for ac_func in poll
25405 do
25406 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25407 echo "$as_me:$LINENO: checking for $ac_func" >&5
25408 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25409 if eval "test \"\${$as_ac_var+set}\" = set"; then
25410   echo $ECHO_N "(cached) $ECHO_C" >&6
25411 else
25412   cat >conftest.$ac_ext <<_ACEOF
25413 /* confdefs.h.  */
25414 _ACEOF
25415 cat confdefs.h >>conftest.$ac_ext
25416 cat >>conftest.$ac_ext <<_ACEOF
25417 /* end confdefs.h.  */
25418 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25419    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25420 #define $ac_func innocuous_$ac_func
25421
25422 /* System header to define __stub macros and hopefully few prototypes,
25423     which can conflict with char $ac_func (); below.
25424     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25425     <limits.h> exists even on freestanding compilers.  */
25426
25427 #ifdef __STDC__
25428 # include <limits.h>
25429 #else
25430 # include <assert.h>
25431 #endif
25432
25433 #undef $ac_func
25434
25435 /* Override any gcc2 internal prototype to avoid an error.  */
25436 #ifdef __cplusplus
25437 extern "C"
25438 {
25439 #endif
25440 /* We use char because int might match the return type of a gcc2
25441    builtin and then its argument prototype would still apply.  */
25442 char $ac_func ();
25443 /* The GNU C library defines this for functions which it implements
25444     to always fail with ENOSYS.  Some functions are actually named
25445     something starting with __ and the normal name is an alias.  */
25446 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25447 choke me
25448 #else
25449 char (*f) () = $ac_func;
25450 #endif
25451 #ifdef __cplusplus
25452 }
25453 #endif
25454
25455 int
25456 main ()
25457 {
25458 return f != $ac_func;
25459   ;
25460   return 0;
25461 }
25462 _ACEOF
25463 rm -f conftest.$ac_objext conftest$ac_exeext
25464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25465   (eval $ac_link) 2>conftest.er1
25466   ac_status=$?
25467   grep -v '^ *+' conftest.er1 >conftest.err
25468   rm -f conftest.er1
25469   cat conftest.err >&5
25470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25471   (exit $ac_status); } &&
25472          { ac_try='test -z "$ac_c_werror_flag"
25473                          || test ! -s conftest.err'
25474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25475   (eval $ac_try) 2>&5
25476   ac_status=$?
25477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25478   (exit $ac_status); }; } &&
25479          { ac_try='test -s conftest$ac_exeext'
25480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25481   (eval $ac_try) 2>&5
25482   ac_status=$?
25483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25484   (exit $ac_status); }; }; then
25485   eval "$as_ac_var=yes"
25486 else
25487   echo "$as_me: failed program was:" >&5
25488 sed 's/^/| /' conftest.$ac_ext >&5
25489
25490 eval "$as_ac_var=no"
25491 fi
25492 rm -f conftest.err conftest.$ac_objext \
25493       conftest$ac_exeext conftest.$ac_ext
25494 fi
25495 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25496 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25497 if test `eval echo '${'$as_ac_var'}'` = yes; then
25498   cat >>confdefs.h <<_ACEOF
25499 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25500 _ACEOF
25501
25502 fi
25503 done
25504
25505
25506 for ac_header in poll.h
25507 do
25508 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25509 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25510   echo "$as_me:$LINENO: checking for $ac_header" >&5
25511 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25512 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25513   echo $ECHO_N "(cached) $ECHO_C" >&6
25514 fi
25515 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25516 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25517 else
25518   # Is the header compilable?
25519 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25520 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25521 cat >conftest.$ac_ext <<_ACEOF
25522 /* confdefs.h.  */
25523 _ACEOF
25524 cat confdefs.h >>conftest.$ac_ext
25525 cat >>conftest.$ac_ext <<_ACEOF
25526 /* end confdefs.h.  */
25527 $ac_includes_default
25528 #include <$ac_header>
25529 _ACEOF
25530 rm -f conftest.$ac_objext
25531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25532   (eval $ac_compile) 2>conftest.er1
25533   ac_status=$?
25534   grep -v '^ *+' conftest.er1 >conftest.err
25535   rm -f conftest.er1
25536   cat conftest.err >&5
25537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25538   (exit $ac_status); } &&
25539          { ac_try='test -z "$ac_c_werror_flag"
25540                          || test ! -s conftest.err'
25541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25542   (eval $ac_try) 2>&5
25543   ac_status=$?
25544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25545   (exit $ac_status); }; } &&
25546          { ac_try='test -s conftest.$ac_objext'
25547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25548   (eval $ac_try) 2>&5
25549   ac_status=$?
25550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25551   (exit $ac_status); }; }; then
25552   ac_header_compiler=yes
25553 else
25554   echo "$as_me: failed program was:" >&5
25555 sed 's/^/| /' conftest.$ac_ext >&5
25556
25557 ac_header_compiler=no
25558 fi
25559 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25560 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25561 echo "${ECHO_T}$ac_header_compiler" >&6
25562
25563 # Is the header present?
25564 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25565 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25566 cat >conftest.$ac_ext <<_ACEOF
25567 /* confdefs.h.  */
25568 _ACEOF
25569 cat confdefs.h >>conftest.$ac_ext
25570 cat >>conftest.$ac_ext <<_ACEOF
25571 /* end confdefs.h.  */
25572 #include <$ac_header>
25573 _ACEOF
25574 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25575   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25576   ac_status=$?
25577   grep -v '^ *+' conftest.er1 >conftest.err
25578   rm -f conftest.er1
25579   cat conftest.err >&5
25580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25581   (exit $ac_status); } >/dev/null; then
25582   if test -s conftest.err; then
25583     ac_cpp_err=$ac_c_preproc_warn_flag
25584     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25585   else
25586     ac_cpp_err=
25587   fi
25588 else
25589   ac_cpp_err=yes
25590 fi
25591 if test -z "$ac_cpp_err"; then
25592   ac_header_preproc=yes
25593 else
25594   echo "$as_me: failed program was:" >&5
25595 sed 's/^/| /' conftest.$ac_ext >&5
25596
25597   ac_header_preproc=no
25598 fi
25599 rm -f conftest.err conftest.$ac_ext
25600 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25601 echo "${ECHO_T}$ac_header_preproc" >&6
25602
25603 # So?  What about this header?
25604 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25605   yes:no: )
25606     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25607 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25608     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25609 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25610     ac_header_preproc=yes
25611     ;;
25612   no:yes:* )
25613     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25614 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25615     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25616 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25617     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25618 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25619     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25620 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25621     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25622 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25623     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25624 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25625     (
25626       cat <<\_ASBOX
25627 ## ------------------------------------------ ##
25628 ## Report this to the AC_PACKAGE_NAME lists.  ##
25629 ## ------------------------------------------ ##
25630 _ASBOX
25631     ) |
25632       sed "s/^/$as_me: WARNING:     /" >&2
25633     ;;
25634 esac
25635 echo "$as_me:$LINENO: checking for $ac_header" >&5
25636 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25637 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25638   echo $ECHO_N "(cached) $ECHO_C" >&6
25639 else
25640   eval "$as_ac_Header=\$ac_header_preproc"
25641 fi
25642 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25643 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25644
25645 fi
25646 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25647   cat >>confdefs.h <<_ACEOF
25648 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25649 _ACEOF
25650
25651 fi
25652
25653 done
25654
25655
25656
25657 for ac_header in sys/epoll.h
25658 do
25659 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25660 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25661   echo "$as_me:$LINENO: checking for $ac_header" >&5
25662 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25663 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25664   echo $ECHO_N "(cached) $ECHO_C" >&6
25665 fi
25666 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25667 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25668 else
25669   # Is the header compilable?
25670 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25671 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25672 cat >conftest.$ac_ext <<_ACEOF
25673 /* confdefs.h.  */
25674 _ACEOF
25675 cat confdefs.h >>conftest.$ac_ext
25676 cat >>conftest.$ac_ext <<_ACEOF
25677 /* end confdefs.h.  */
25678 $ac_includes_default
25679 #include <$ac_header>
25680 _ACEOF
25681 rm -f conftest.$ac_objext
25682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25683   (eval $ac_compile) 2>conftest.er1
25684   ac_status=$?
25685   grep -v '^ *+' conftest.er1 >conftest.err
25686   rm -f conftest.er1
25687   cat conftest.err >&5
25688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25689   (exit $ac_status); } &&
25690          { ac_try='test -z "$ac_c_werror_flag"
25691                          || test ! -s conftest.err'
25692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25693   (eval $ac_try) 2>&5
25694   ac_status=$?
25695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25696   (exit $ac_status); }; } &&
25697          { ac_try='test -s conftest.$ac_objext'
25698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25699   (eval $ac_try) 2>&5
25700   ac_status=$?
25701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25702   (exit $ac_status); }; }; then
25703   ac_header_compiler=yes
25704 else
25705   echo "$as_me: failed program was:" >&5
25706 sed 's/^/| /' conftest.$ac_ext >&5
25707
25708 ac_header_compiler=no
25709 fi
25710 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25711 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25712 echo "${ECHO_T}$ac_header_compiler" >&6
25713
25714 # Is the header present?
25715 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25716 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25717 cat >conftest.$ac_ext <<_ACEOF
25718 /* confdefs.h.  */
25719 _ACEOF
25720 cat confdefs.h >>conftest.$ac_ext
25721 cat >>conftest.$ac_ext <<_ACEOF
25722 /* end confdefs.h.  */
25723 #include <$ac_header>
25724 _ACEOF
25725 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25726   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25727   ac_status=$?
25728   grep -v '^ *+' conftest.er1 >conftest.err
25729   rm -f conftest.er1
25730   cat conftest.err >&5
25731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25732   (exit $ac_status); } >/dev/null; then
25733   if test -s conftest.err; then
25734     ac_cpp_err=$ac_c_preproc_warn_flag
25735     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25736   else
25737     ac_cpp_err=
25738   fi
25739 else
25740   ac_cpp_err=yes
25741 fi
25742 if test -z "$ac_cpp_err"; then
25743   ac_header_preproc=yes
25744 else
25745   echo "$as_me: failed program was:" >&5
25746 sed 's/^/| /' conftest.$ac_ext >&5
25747
25748   ac_header_preproc=no
25749 fi
25750 rm -f conftest.err conftest.$ac_ext
25751 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25752 echo "${ECHO_T}$ac_header_preproc" >&6
25753
25754 # So?  What about this header?
25755 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25756   yes:no: )
25757     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25758 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25759     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25760 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25761     ac_header_preproc=yes
25762     ;;
25763   no:yes:* )
25764     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25765 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25766     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25767 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25768     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25769 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25770     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25771 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25772     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25773 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25774     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25775 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25776     (
25777       cat <<\_ASBOX
25778 ## ------------------------------------------ ##
25779 ## Report this to the AC_PACKAGE_NAME lists.  ##
25780 ## ------------------------------------------ ##
25781 _ASBOX
25782     ) |
25783       sed "s/^/$as_me: WARNING:     /" >&2
25784     ;;
25785 esac
25786 echo "$as_me:$LINENO: checking for $ac_header" >&5
25787 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25788 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25789   echo $ECHO_N "(cached) $ECHO_C" >&6
25790 else
25791   eval "$as_ac_Header=\$ac_header_preproc"
25792 fi
25793 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25794 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25795
25796 fi
25797 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25798   cat >>confdefs.h <<_ACEOF
25799 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25800 _ACEOF
25801
25802 fi
25803
25804 done
25805
25806 if test "${ac_cv_header_sys_epoll_h}" = yes; then
25807 echo "$as_me:$LINENO: checking for epoll system call" >&5
25808 echo $ECHO_N "checking for epoll system call... $ECHO_C" >&6
25809 if test "$cross_compiling" = yes; then
25810   echo "$as_me:$LINENO: result: no" >&5
25811 echo "${ECHO_T}no" >&6
25812 else
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 int main(int argc, char *argv)
25820 {
25821         int epfd = epoll_create(256);
25822         exit (epfd == -1 ? 1 : 0);
25823 }
25824 _ACEOF
25825 rm -f conftest$ac_exeext
25826 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25827   (eval $ac_link) 2>&5
25828   ac_status=$?
25829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25830   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25832   (eval $ac_try) 2>&5
25833   ac_status=$?
25834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25835   (exit $ac_status); }; }; then
25836   echo "$as_me:$LINENO: result: yes" >&5
25837 echo "${ECHO_T}yes" >&6
25838
25839 cat >>confdefs.h <<\_ACEOF
25840 #define HAVE_EPOLL 1
25841 _ACEOF
25842
25843 else
25844   echo "$as_me: program exited with status $ac_status" >&5
25845 echo "$as_me: failed program was:" >&5
25846 sed 's/^/| /' conftest.$ac_ext >&5
25847
25848 ( exit $ac_status )
25849 echo "$as_me:$LINENO: result: no" >&5
25850 echo "${ECHO_T}no" >&6
25851 fi
25852 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25853 fi
25854 fi
25855
25856 # strerror checks
25857 echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
25858 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
25859 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
25860   echo $ECHO_N "(cached) $ECHO_C" >&6
25861 else
25862
25863         cat >conftest.$ac_ext <<_ACEOF
25864 /* confdefs.h.  */
25865 _ACEOF
25866 cat confdefs.h >>conftest.$ac_ext
25867 cat >>conftest.$ac_ext <<_ACEOF
25868 /* end confdefs.h.  */
25869
25870 #include <stdio.h>
25871 #include <sys/types.h>
25872 #include <errno.h>
25873 #ifdef WINNT
25874 #include <stdlib.h>
25875 #endif
25876 int
25877 main ()
25878 {
25879 char *c = (char *) *sys_errlist
25880   ;
25881   return 0;
25882 }
25883 _ACEOF
25884 rm -f conftest.$ac_objext
25885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25886   (eval $ac_compile) 2>conftest.er1
25887   ac_status=$?
25888   grep -v '^ *+' conftest.er1 >conftest.err
25889   rm -f conftest.er1
25890   cat conftest.err >&5
25891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25892   (exit $ac_status); } &&
25893          { ac_try='test -z "$ac_c_werror_flag"
25894                          || test ! -s conftest.err'
25895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25896   (eval $ac_try) 2>&5
25897   ac_status=$?
25898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25899   (exit $ac_status); }; } &&
25900          { ac_try='test -s conftest.$ac_objext'
25901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25902   (eval $ac_try) 2>&5
25903   ac_status=$?
25904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25905   (exit $ac_status); }; }; then
25906   ol_cv_dcl_sys_errlist=yes
25907         ol_cv_have_sys_errlist=yes
25908 else
25909   echo "$as_me: failed program was:" >&5
25910 sed 's/^/| /' conftest.$ac_ext >&5
25911
25912 ol_cv_dcl_sys_errlist=no
25913 fi
25914 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25915 fi
25916 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
25917 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
25918 #
25919 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
25920 if test $ol_cv_dcl_sys_errlist = no ; then
25921
25922 cat >>confdefs.h <<\_ACEOF
25923 #define DECL_SYS_ERRLIST 1
25924 _ACEOF
25925
25926
25927         echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
25928 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
25929 if test "${ol_cv_have_sys_errlist+set}" = set; then
25930   echo $ECHO_N "(cached) $ECHO_C" >&6
25931 else
25932
25933                 cat >conftest.$ac_ext <<_ACEOF
25934 /* confdefs.h.  */
25935 _ACEOF
25936 cat confdefs.h >>conftest.$ac_ext
25937 cat >>conftest.$ac_ext <<_ACEOF
25938 /* end confdefs.h.  */
25939 #include <errno.h>
25940 int
25941 main ()
25942 {
25943 char *c = (char *) *sys_errlist
25944   ;
25945   return 0;
25946 }
25947 _ACEOF
25948 rm -f conftest.$ac_objext conftest$ac_exeext
25949 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25950   (eval $ac_link) 2>conftest.er1
25951   ac_status=$?
25952   grep -v '^ *+' conftest.er1 >conftest.err
25953   rm -f conftest.er1
25954   cat conftest.err >&5
25955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25956   (exit $ac_status); } &&
25957          { ac_try='test -z "$ac_c_werror_flag"
25958                          || test ! -s conftest.err'
25959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25960   (eval $ac_try) 2>&5
25961   ac_status=$?
25962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25963   (exit $ac_status); }; } &&
25964          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
25970   ol_cv_have_sys_errlist=yes
25971 else
25972   echo "$as_me: failed program was:" >&5
25973 sed 's/^/| /' conftest.$ac_ext >&5
25974
25975 ol_cv_have_sys_errlist=no
25976 fi
25977 rm -f conftest.err conftest.$ac_objext \
25978       conftest$ac_exeext conftest.$ac_ext
25979 fi
25980 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
25981 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
25982 fi
25983 if test $ol_cv_have_sys_errlist = yes ; then
25984
25985 cat >>confdefs.h <<\_ACEOF
25986 #define HAVE_SYS_ERRLIST 1
25987 _ACEOF
25988
25989 fi
25990
25991
25992 for ac_func in strerror strerror_r
25993 do
25994 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25995 echo "$as_me:$LINENO: checking for $ac_func" >&5
25996 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25997 if eval "test \"\${$as_ac_var+set}\" = set"; then
25998   echo $ECHO_N "(cached) $ECHO_C" >&6
25999 else
26000   cat >conftest.$ac_ext <<_ACEOF
26001 /* confdefs.h.  */
26002 _ACEOF
26003 cat confdefs.h >>conftest.$ac_ext
26004 cat >>conftest.$ac_ext <<_ACEOF
26005 /* end confdefs.h.  */
26006 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26007    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26008 #define $ac_func innocuous_$ac_func
26009
26010 /* System header to define __stub macros and hopefully few prototypes,
26011     which can conflict with char $ac_func (); below.
26012     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26013     <limits.h> exists even on freestanding compilers.  */
26014
26015 #ifdef __STDC__
26016 # include <limits.h>
26017 #else
26018 # include <assert.h>
26019 #endif
26020
26021 #undef $ac_func
26022
26023 /* Override any gcc2 internal prototype to avoid an error.  */
26024 #ifdef __cplusplus
26025 extern "C"
26026 {
26027 #endif
26028 /* We use char because int might match the return type of a gcc2
26029    builtin and then its argument prototype would still apply.  */
26030 char $ac_func ();
26031 /* The GNU C library defines this for functions which it implements
26032     to always fail with ENOSYS.  Some functions are actually named
26033     something starting with __ and the normal name is an alias.  */
26034 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26035 choke me
26036 #else
26037 char (*f) () = $ac_func;
26038 #endif
26039 #ifdef __cplusplus
26040 }
26041 #endif
26042
26043 int
26044 main ()
26045 {
26046 return f != $ac_func;
26047   ;
26048   return 0;
26049 }
26050 _ACEOF
26051 rm -f conftest.$ac_objext conftest$ac_exeext
26052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26053   (eval $ac_link) 2>conftest.er1
26054   ac_status=$?
26055   grep -v '^ *+' conftest.er1 >conftest.err
26056   rm -f conftest.er1
26057   cat conftest.err >&5
26058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26059   (exit $ac_status); } &&
26060          { ac_try='test -z "$ac_c_werror_flag"
26061                          || test ! -s conftest.err'
26062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26063   (eval $ac_try) 2>&5
26064   ac_status=$?
26065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26066   (exit $ac_status); }; } &&
26067          { ac_try='test -s conftest$ac_exeext'
26068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26069   (eval $ac_try) 2>&5
26070   ac_status=$?
26071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26072   (exit $ac_status); }; }; then
26073   eval "$as_ac_var=yes"
26074 else
26075   echo "$as_me: failed program was:" >&5
26076 sed 's/^/| /' conftest.$ac_ext >&5
26077
26078 eval "$as_ac_var=no"
26079 fi
26080 rm -f conftest.err conftest.$ac_objext \
26081       conftest$ac_exeext conftest.$ac_ext
26082 fi
26083 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26084 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26085 if test `eval echo '${'$as_ac_var'}'` = yes; then
26086   cat >>confdefs.h <<_ACEOF
26087 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26088 _ACEOF
26089
26090 fi
26091 done
26092
26093 ol_cv_func_strerror_r=no
26094 if test "${ac_cv_func_strerror_r}" = yes ; then
26095         echo "$as_me:$LINENO: checking non-posix strerror_r" >&5
26096 echo $ECHO_N "checking non-posix strerror_r... $ECHO_C" >&6
26097 if test "${ol_cv_nonposix_strerror_r+set}" = set; then
26098   echo $ECHO_N "(cached) $ECHO_C" >&6
26099 else
26100
26101         cat >conftest.$ac_ext <<_ACEOF
26102 /* confdefs.h.  */
26103 _ACEOF
26104 cat confdefs.h >>conftest.$ac_ext
26105 cat >>conftest.$ac_ext <<_ACEOF
26106 /* end confdefs.h.  */
26107 #include <string.h>
26108 _ACEOF
26109 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26110   $EGREP "strerror_r" >/dev/null 2>&1; then
26111   ol_decl_strerror_r=yes
26112 else
26113   ol_decl_strerror_r=no
26114 fi
26115 rm -f conftest*
26116
26117         if test $ol_decl_strerror_r = yes ; then
26118                 cat >conftest.$ac_ext <<_ACEOF
26119 /* confdefs.h.  */
26120 _ACEOF
26121 cat confdefs.h >>conftest.$ac_ext
26122 cat >>conftest.$ac_ext <<_ACEOF
26123 /* end confdefs.h.  */
26124 #include <string.h>
26125 int
26126 main ()
26127 {
26128    /* from autoconf 2.59 */
26129                                 char buf[100];
26130                                 char x = *strerror_r (0, buf, sizeof buf);
26131                                 char *p = strerror_r (0, buf, sizeof buf);
26132
26133   ;
26134   return 0;
26135 }
26136 _ACEOF
26137 rm -f conftest.$ac_objext
26138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26139   (eval $ac_compile) 2>conftest.er1
26140   ac_status=$?
26141   grep -v '^ *+' conftest.er1 >conftest.err
26142   rm -f conftest.er1
26143   cat conftest.err >&5
26144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26145   (exit $ac_status); } &&
26146          { ac_try='test -z "$ac_c_werror_flag"
26147                          || test ! -s conftest.err'
26148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26149   (eval $ac_try) 2>&5
26150   ac_status=$?
26151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26152   (exit $ac_status); }; } &&
26153          { ac_try='test -s conftest.$ac_objext'
26154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26155   (eval $ac_try) 2>&5
26156   ac_status=$?
26157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26158   (exit $ac_status); }; }; then
26159   ol_cv_nonposix_strerror_r=yes
26160 else
26161   echo "$as_me: failed program was:" >&5
26162 sed 's/^/| /' conftest.$ac_ext >&5
26163
26164 ol_cv_nonposix_strerror_r=no
26165 fi
26166 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26167         else
26168                 if test "$cross_compiling" = yes; then
26169   ol_cv_nonposix_strerror=no
26170 else
26171   cat >conftest.$ac_ext <<_ACEOF
26172 /* confdefs.h.  */
26173 _ACEOF
26174 cat confdefs.h >>conftest.$ac_ext
26175 cat >>conftest.$ac_ext <<_ACEOF
26176 /* end confdefs.h.  */
26177
26178                         main() {
26179                                 char buf[100];
26180                                 buf[0] = 0;
26181                                 strerror_r( 1, buf, sizeof buf );
26182                                 exit( buf[0] == 0 );
26183                         }
26184
26185 _ACEOF
26186 rm -f conftest$ac_exeext
26187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26188   (eval $ac_link) 2>&5
26189   ac_status=$?
26190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26191   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26193   (eval $ac_try) 2>&5
26194   ac_status=$?
26195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26196   (exit $ac_status); }; }; then
26197   ol_cv_nonposix_strerror_r=yes
26198 else
26199   echo "$as_me: program exited with status $ac_status" >&5
26200 echo "$as_me: failed program was:" >&5
26201 sed 's/^/| /' conftest.$ac_ext >&5
26202
26203 ( exit $ac_status )
26204 ol_cv_nonposix_strerror=no
26205 fi
26206 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26207 fi
26208         fi
26209
26210 fi
26211 echo "$as_me:$LINENO: result: $ol_cv_nonposix_strerror_r" >&5
26212 echo "${ECHO_T}$ol_cv_nonposix_strerror_r" >&6
26213 if test $ol_cv_nonposix_strerror_r = yes ; then
26214
26215 cat >>confdefs.h <<\_ACEOF
26216 #define HAVE_NONPOSIX_STRERROR_R 1
26217 _ACEOF
26218
26219 fi
26220
26221 elif test "${ac_cv_func_strerror}" = no ; then
26222         echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
26223 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
26224 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
26225   echo $ECHO_N "(cached) $ECHO_C" >&6
26226 else
26227
26228         cat >conftest.$ac_ext <<_ACEOF
26229 /* confdefs.h.  */
26230 _ACEOF
26231 cat confdefs.h >>conftest.$ac_ext
26232 cat >>conftest.$ac_ext <<_ACEOF
26233 /* end confdefs.h.  */
26234
26235 #include <stdio.h>
26236 #include <sys/types.h>
26237 #include <errno.h>
26238 #ifdef WINNT
26239 #include <stdlib.h>
26240 #endif
26241 int
26242 main ()
26243 {
26244 char *c = (char *) *sys_errlist
26245   ;
26246   return 0;
26247 }
26248 _ACEOF
26249 rm -f conftest.$ac_objext
26250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26251   (eval $ac_compile) 2>conftest.er1
26252   ac_status=$?
26253   grep -v '^ *+' conftest.er1 >conftest.err
26254   rm -f conftest.er1
26255   cat conftest.err >&5
26256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26257   (exit $ac_status); } &&
26258          { ac_try='test -z "$ac_c_werror_flag"
26259                          || test ! -s conftest.err'
26260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26261   (eval $ac_try) 2>&5
26262   ac_status=$?
26263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26264   (exit $ac_status); }; } &&
26265          { ac_try='test -s conftest.$ac_objext'
26266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26267   (eval $ac_try) 2>&5
26268   ac_status=$?
26269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26270   (exit $ac_status); }; }; then
26271   ol_cv_dcl_sys_errlist=yes
26272         ol_cv_have_sys_errlist=yes
26273 else
26274   echo "$as_me: failed program was:" >&5
26275 sed 's/^/| /' conftest.$ac_ext >&5
26276
26277 ol_cv_dcl_sys_errlist=no
26278 fi
26279 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26280 fi
26281 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
26282 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
26283 #
26284 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
26285 if test $ol_cv_dcl_sys_errlist = no ; then
26286
26287 cat >>confdefs.h <<\_ACEOF
26288 #define DECL_SYS_ERRLIST 1
26289 _ACEOF
26290
26291
26292         echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
26293 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
26294 if test "${ol_cv_have_sys_errlist+set}" = set; then
26295   echo $ECHO_N "(cached) $ECHO_C" >&6
26296 else
26297
26298                 cat >conftest.$ac_ext <<_ACEOF
26299 /* confdefs.h.  */
26300 _ACEOF
26301 cat confdefs.h >>conftest.$ac_ext
26302 cat >>conftest.$ac_ext <<_ACEOF
26303 /* end confdefs.h.  */
26304 #include <errno.h>
26305 int
26306 main ()
26307 {
26308 char *c = (char *) *sys_errlist
26309   ;
26310   return 0;
26311 }
26312 _ACEOF
26313 rm -f conftest.$ac_objext conftest$ac_exeext
26314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26315   (eval $ac_link) 2>conftest.er1
26316   ac_status=$?
26317   grep -v '^ *+' conftest.er1 >conftest.err
26318   rm -f conftest.er1
26319   cat conftest.err >&5
26320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26321   (exit $ac_status); } &&
26322          { ac_try='test -z "$ac_c_werror_flag"
26323                          || test ! -s conftest.err'
26324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26325   (eval $ac_try) 2>&5
26326   ac_status=$?
26327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26328   (exit $ac_status); }; } &&
26329          { ac_try='test -s conftest$ac_exeext'
26330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26331   (eval $ac_try) 2>&5
26332   ac_status=$?
26333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26334   (exit $ac_status); }; }; then
26335   ol_cv_have_sys_errlist=yes
26336 else
26337   echo "$as_me: failed program was:" >&5
26338 sed 's/^/| /' conftest.$ac_ext >&5
26339
26340 ol_cv_have_sys_errlist=no
26341 fi
26342 rm -f conftest.err conftest.$ac_objext \
26343       conftest$ac_exeext conftest.$ac_ext
26344 fi
26345 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
26346 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
26347 fi
26348 if test $ol_cv_have_sys_errlist = yes ; then
26349
26350 cat >>confdefs.h <<\_ACEOF
26351 #define HAVE_SYS_ERRLIST 1
26352 _ACEOF
26353
26354 fi
26355
26356 fi
26357
26358
26359
26360 for ac_header in regex.h
26361 do
26362 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26363 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26364   echo "$as_me:$LINENO: checking for $ac_header" >&5
26365 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26366 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26367   echo $ECHO_N "(cached) $ECHO_C" >&6
26368 fi
26369 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26370 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26371 else
26372   # Is the header compilable?
26373 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26374 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26375 cat >conftest.$ac_ext <<_ACEOF
26376 /* confdefs.h.  */
26377 _ACEOF
26378 cat confdefs.h >>conftest.$ac_ext
26379 cat >>conftest.$ac_ext <<_ACEOF
26380 /* end confdefs.h.  */
26381 $ac_includes_default
26382 #include <$ac_header>
26383 _ACEOF
26384 rm -f conftest.$ac_objext
26385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26386   (eval $ac_compile) 2>conftest.er1
26387   ac_status=$?
26388   grep -v '^ *+' conftest.er1 >conftest.err
26389   rm -f conftest.er1
26390   cat conftest.err >&5
26391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26392   (exit $ac_status); } &&
26393          { ac_try='test -z "$ac_c_werror_flag"
26394                          || test ! -s conftest.err'
26395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26396   (eval $ac_try) 2>&5
26397   ac_status=$?
26398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26399   (exit $ac_status); }; } &&
26400          { ac_try='test -s conftest.$ac_objext'
26401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26402   (eval $ac_try) 2>&5
26403   ac_status=$?
26404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26405   (exit $ac_status); }; }; then
26406   ac_header_compiler=yes
26407 else
26408   echo "$as_me: failed program was:" >&5
26409 sed 's/^/| /' conftest.$ac_ext >&5
26410
26411 ac_header_compiler=no
26412 fi
26413 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26414 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26415 echo "${ECHO_T}$ac_header_compiler" >&6
26416
26417 # Is the header present?
26418 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26419 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26420 cat >conftest.$ac_ext <<_ACEOF
26421 /* confdefs.h.  */
26422 _ACEOF
26423 cat confdefs.h >>conftest.$ac_ext
26424 cat >>conftest.$ac_ext <<_ACEOF
26425 /* end confdefs.h.  */
26426 #include <$ac_header>
26427 _ACEOF
26428 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26429   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26430   ac_status=$?
26431   grep -v '^ *+' conftest.er1 >conftest.err
26432   rm -f conftest.er1
26433   cat conftest.err >&5
26434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26435   (exit $ac_status); } >/dev/null; then
26436   if test -s conftest.err; then
26437     ac_cpp_err=$ac_c_preproc_warn_flag
26438     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26439   else
26440     ac_cpp_err=
26441   fi
26442 else
26443   ac_cpp_err=yes
26444 fi
26445 if test -z "$ac_cpp_err"; then
26446   ac_header_preproc=yes
26447 else
26448   echo "$as_me: failed program was:" >&5
26449 sed 's/^/| /' conftest.$ac_ext >&5
26450
26451   ac_header_preproc=no
26452 fi
26453 rm -f conftest.err conftest.$ac_ext
26454 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26455 echo "${ECHO_T}$ac_header_preproc" >&6
26456
26457 # So?  What about this header?
26458 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26459   yes:no: )
26460     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26461 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26462     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26463 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26464     ac_header_preproc=yes
26465     ;;
26466   no:yes:* )
26467     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26468 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26469     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26470 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26471     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26472 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26473     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26474 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26475     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26476 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26477     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26478 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26479     (
26480       cat <<\_ASBOX
26481 ## ------------------------------------------ ##
26482 ## Report this to the AC_PACKAGE_NAME lists.  ##
26483 ## ------------------------------------------ ##
26484 _ASBOX
26485     ) |
26486       sed "s/^/$as_me: WARNING:     /" >&2
26487     ;;
26488 esac
26489 echo "$as_me:$LINENO: checking for $ac_header" >&5
26490 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26491 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26492   echo $ECHO_N "(cached) $ECHO_C" >&6
26493 else
26494   eval "$as_ac_Header=\$ac_header_preproc"
26495 fi
26496 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26497 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26498
26499 fi
26500 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26501   cat >>confdefs.h <<_ACEOF
26502 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26503 _ACEOF
26504
26505 fi
26506
26507 done
26508
26509 if test "$ac_cv_header_regex_h" != yes ; then
26510         { { echo "$as_me:$LINENO: error: POSIX regex.h required." >&5
26511 echo "$as_me: error: POSIX regex.h required." >&2;}
26512    { (exit 1); exit 1; }; }
26513 fi
26514 echo "$as_me:$LINENO: checking for library containing regfree" >&5
26515 echo $ECHO_N "checking for library containing regfree... $ECHO_C" >&6
26516 if test "${ac_cv_search_regfree+set}" = set; then
26517   echo $ECHO_N "(cached) $ECHO_C" >&6
26518 else
26519   ac_func_search_save_LIBS=$LIBS
26520 ac_cv_search_regfree=no
26521 cat >conftest.$ac_ext <<_ACEOF
26522 /* confdefs.h.  */
26523 _ACEOF
26524 cat confdefs.h >>conftest.$ac_ext
26525 cat >>conftest.$ac_ext <<_ACEOF
26526 /* end confdefs.h.  */
26527
26528 /* Override any gcc2 internal prototype to avoid an error.  */
26529 #ifdef __cplusplus
26530 extern "C"
26531 #endif
26532 /* We use char because int might match the return type of a gcc2
26533    builtin and then its argument prototype would still apply.  */
26534 char regfree ();
26535 int
26536 main ()
26537 {
26538 regfree ();
26539   ;
26540   return 0;
26541 }
26542 _ACEOF
26543 rm -f conftest.$ac_objext conftest$ac_exeext
26544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26545   (eval $ac_link) 2>conftest.er1
26546   ac_status=$?
26547   grep -v '^ *+' conftest.er1 >conftest.err
26548   rm -f conftest.er1
26549   cat conftest.err >&5
26550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26551   (exit $ac_status); } &&
26552          { ac_try='test -z "$ac_c_werror_flag"
26553                          || test ! -s conftest.err'
26554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26555   (eval $ac_try) 2>&5
26556   ac_status=$?
26557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26558   (exit $ac_status); }; } &&
26559          { ac_try='test -s conftest$ac_exeext'
26560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26561   (eval $ac_try) 2>&5
26562   ac_status=$?
26563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26564   (exit $ac_status); }; }; then
26565   ac_cv_search_regfree="none required"
26566 else
26567   echo "$as_me: failed program was:" >&5
26568 sed 's/^/| /' conftest.$ac_ext >&5
26569
26570 fi
26571 rm -f conftest.err conftest.$ac_objext \
26572       conftest$ac_exeext conftest.$ac_ext
26573 if test "$ac_cv_search_regfree" = no; then
26574   for ac_lib in regex gnuregex; do
26575     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26576     cat >conftest.$ac_ext <<_ACEOF
26577 /* confdefs.h.  */
26578 _ACEOF
26579 cat confdefs.h >>conftest.$ac_ext
26580 cat >>conftest.$ac_ext <<_ACEOF
26581 /* end confdefs.h.  */
26582
26583 /* Override any gcc2 internal prototype to avoid an error.  */
26584 #ifdef __cplusplus
26585 extern "C"
26586 #endif
26587 /* We use char because int might match the return type of a gcc2
26588    builtin and then its argument prototype would still apply.  */
26589 char regfree ();
26590 int
26591 main ()
26592 {
26593 regfree ();
26594   ;
26595   return 0;
26596 }
26597 _ACEOF
26598 rm -f conftest.$ac_objext conftest$ac_exeext
26599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26600   (eval $ac_link) 2>conftest.er1
26601   ac_status=$?
26602   grep -v '^ *+' conftest.er1 >conftest.err
26603   rm -f conftest.er1
26604   cat conftest.err >&5
26605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26606   (exit $ac_status); } &&
26607          { ac_try='test -z "$ac_c_werror_flag"
26608                          || test ! -s conftest.err'
26609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26610   (eval $ac_try) 2>&5
26611   ac_status=$?
26612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26613   (exit $ac_status); }; } &&
26614          { ac_try='test -s conftest$ac_exeext'
26615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26616   (eval $ac_try) 2>&5
26617   ac_status=$?
26618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26619   (exit $ac_status); }; }; then
26620   ac_cv_search_regfree="-l$ac_lib"
26621 break
26622 else
26623   echo "$as_me: failed program was:" >&5
26624 sed 's/^/| /' conftest.$ac_ext >&5
26625
26626 fi
26627 rm -f conftest.err conftest.$ac_objext \
26628       conftest$ac_exeext conftest.$ac_ext
26629   done
26630 fi
26631 LIBS=$ac_func_search_save_LIBS
26632 fi
26633 echo "$as_me:$LINENO: result: $ac_cv_search_regfree" >&5
26634 echo "${ECHO_T}$ac_cv_search_regfree" >&6
26635 if test "$ac_cv_search_regfree" != no; then
26636   test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
26637   :
26638 else
26639   { { echo "$as_me:$LINENO: error: POSIX regex required." >&5
26640 echo "$as_me: error: POSIX regex required." >&2;}
26641    { (exit 1); exit 1; }; }
26642 fi
26643
26644
26645
26646 echo "$as_me:$LINENO: checking for compatible POSIX regex" >&5
26647 echo $ECHO_N "checking for compatible POSIX regex... $ECHO_C" >&6
26648 if test "${ol_cv_c_posix_regex+set}" = set; then
26649   echo $ECHO_N "(cached) $ECHO_C" >&6
26650 else
26651
26652         if test "$cross_compiling" = yes; then
26653   ol_cv_c_posix_regex=cross
26654 else
26655   cat >conftest.$ac_ext <<_ACEOF
26656 /* confdefs.h.  */
26657 _ACEOF
26658 cat confdefs.h >>conftest.$ac_ext
26659 cat >>conftest.$ac_ext <<_ACEOF
26660 /* end confdefs.h.  */
26661
26662 #include <sys/types.h>
26663 #include <regex.h>
26664 static char *pattern, *string;
26665 main()
26666 {
26667         int rc;
26668         regex_t re;
26669
26670         pattern = "^A";
26671
26672         if(regcomp(&re, pattern, 0)) {
26673                 return -1;
26674         }
26675
26676         string = "ALL MATCH";
26677
26678         rc = regexec(&re, string, 0, (void*)0, 0);
26679
26680         regfree(&re);
26681
26682         return rc;
26683 }
26684 _ACEOF
26685 rm -f conftest$ac_exeext
26686 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26687   (eval $ac_link) 2>&5
26688   ac_status=$?
26689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26690   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26692   (eval $ac_try) 2>&5
26693   ac_status=$?
26694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26695   (exit $ac_status); }; }; then
26696   ol_cv_c_posix_regex=yes
26697 else
26698   echo "$as_me: program exited with status $ac_status" >&5
26699 echo "$as_me: failed program was:" >&5
26700 sed 's/^/| /' conftest.$ac_ext >&5
26701
26702 ( exit $ac_status )
26703 ol_cv_c_posix_regex=no
26704 fi
26705 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26706 fi
26707 fi
26708 echo "$as_me:$LINENO: result: $ol_cv_c_posix_regex" >&5
26709 echo "${ECHO_T}$ol_cv_c_posix_regex" >&6
26710
26711 if test "$ol_cv_c_posix_regex" = no ; then
26712         { { echo "$as_me:$LINENO: error: broken POSIX regex!" >&5
26713 echo "$as_me: error: broken POSIX regex!" >&2;}
26714    { (exit 1); exit 1; }; }
26715 fi
26716
26717
26718 have_uuid=no
26719
26720 for ac_header in sys/uuid.h
26721 do
26722 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26723 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26724   echo "$as_me:$LINENO: checking for $ac_header" >&5
26725 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26726 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26727   echo $ECHO_N "(cached) $ECHO_C" >&6
26728 fi
26729 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26730 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26731 else
26732   # Is the header compilable?
26733 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26734 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26735 cat >conftest.$ac_ext <<_ACEOF
26736 /* confdefs.h.  */
26737 _ACEOF
26738 cat confdefs.h >>conftest.$ac_ext
26739 cat >>conftest.$ac_ext <<_ACEOF
26740 /* end confdefs.h.  */
26741 $ac_includes_default
26742 #include <$ac_header>
26743 _ACEOF
26744 rm -f conftest.$ac_objext
26745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26746   (eval $ac_compile) 2>conftest.er1
26747   ac_status=$?
26748   grep -v '^ *+' conftest.er1 >conftest.err
26749   rm -f conftest.er1
26750   cat conftest.err >&5
26751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26752   (exit $ac_status); } &&
26753          { ac_try='test -z "$ac_c_werror_flag"
26754                          || test ! -s conftest.err'
26755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26756   (eval $ac_try) 2>&5
26757   ac_status=$?
26758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26759   (exit $ac_status); }; } &&
26760          { ac_try='test -s conftest.$ac_objext'
26761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26762   (eval $ac_try) 2>&5
26763   ac_status=$?
26764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26765   (exit $ac_status); }; }; then
26766   ac_header_compiler=yes
26767 else
26768   echo "$as_me: failed program was:" >&5
26769 sed 's/^/| /' conftest.$ac_ext >&5
26770
26771 ac_header_compiler=no
26772 fi
26773 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26774 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26775 echo "${ECHO_T}$ac_header_compiler" >&6
26776
26777 # Is the header present?
26778 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26779 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26780 cat >conftest.$ac_ext <<_ACEOF
26781 /* confdefs.h.  */
26782 _ACEOF
26783 cat confdefs.h >>conftest.$ac_ext
26784 cat >>conftest.$ac_ext <<_ACEOF
26785 /* end confdefs.h.  */
26786 #include <$ac_header>
26787 _ACEOF
26788 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26789   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26790   ac_status=$?
26791   grep -v '^ *+' conftest.er1 >conftest.err
26792   rm -f conftest.er1
26793   cat conftest.err >&5
26794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26795   (exit $ac_status); } >/dev/null; then
26796   if test -s conftest.err; then
26797     ac_cpp_err=$ac_c_preproc_warn_flag
26798     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26799   else
26800     ac_cpp_err=
26801   fi
26802 else
26803   ac_cpp_err=yes
26804 fi
26805 if test -z "$ac_cpp_err"; then
26806   ac_header_preproc=yes
26807 else
26808   echo "$as_me: failed program was:" >&5
26809 sed 's/^/| /' conftest.$ac_ext >&5
26810
26811   ac_header_preproc=no
26812 fi
26813 rm -f conftest.err conftest.$ac_ext
26814 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26815 echo "${ECHO_T}$ac_header_preproc" >&6
26816
26817 # So?  What about this header?
26818 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26819   yes:no: )
26820     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26821 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26822     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26823 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26824     ac_header_preproc=yes
26825     ;;
26826   no:yes:* )
26827     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26828 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26829     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26830 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26831     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26832 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26833     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26834 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26835     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26836 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26837     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26838 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26839     (
26840       cat <<\_ASBOX
26841 ## ------------------------------------------ ##
26842 ## Report this to the AC_PACKAGE_NAME lists.  ##
26843 ## ------------------------------------------ ##
26844 _ASBOX
26845     ) |
26846       sed "s/^/$as_me: WARNING:     /" >&2
26847     ;;
26848 esac
26849 echo "$as_me:$LINENO: checking for $ac_header" >&5
26850 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26851 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26852   echo $ECHO_N "(cached) $ECHO_C" >&6
26853 else
26854   eval "$as_ac_Header=\$ac_header_preproc"
26855 fi
26856 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26857 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26858
26859 fi
26860 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26861   cat >>confdefs.h <<_ACEOF
26862 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26863 _ACEOF
26864
26865 fi
26866
26867 done
26868
26869 if test $ac_cv_header_sys_uuid_h = yes ; then
26870         save_LIBS="$LIBS"
26871         echo "$as_me:$LINENO: checking for library containing uuid_to_str" >&5
26872 echo $ECHO_N "checking for library containing uuid_to_str... $ECHO_C" >&6
26873 if test "${ac_cv_search_uuid_to_str+set}" = set; then
26874   echo $ECHO_N "(cached) $ECHO_C" >&6
26875 else
26876   ac_func_search_save_LIBS=$LIBS
26877 ac_cv_search_uuid_to_str=no
26878 cat >conftest.$ac_ext <<_ACEOF
26879 /* confdefs.h.  */
26880 _ACEOF
26881 cat confdefs.h >>conftest.$ac_ext
26882 cat >>conftest.$ac_ext <<_ACEOF
26883 /* end confdefs.h.  */
26884
26885 /* Override any gcc2 internal prototype to avoid an error.  */
26886 #ifdef __cplusplus
26887 extern "C"
26888 #endif
26889 /* We use char because int might match the return type of a gcc2
26890    builtin and then its argument prototype would still apply.  */
26891 char uuid_to_str ();
26892 int
26893 main ()
26894 {
26895 uuid_to_str ();
26896   ;
26897   return 0;
26898 }
26899 _ACEOF
26900 rm -f conftest.$ac_objext conftest$ac_exeext
26901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26902   (eval $ac_link) 2>conftest.er1
26903   ac_status=$?
26904   grep -v '^ *+' conftest.er1 >conftest.err
26905   rm -f conftest.er1
26906   cat conftest.err >&5
26907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26908   (exit $ac_status); } &&
26909          { ac_try='test -z "$ac_c_werror_flag"
26910                          || test ! -s conftest.err'
26911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26912   (eval $ac_try) 2>&5
26913   ac_status=$?
26914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26915   (exit $ac_status); }; } &&
26916          { ac_try='test -s conftest$ac_exeext'
26917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26918   (eval $ac_try) 2>&5
26919   ac_status=$?
26920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26921   (exit $ac_status); }; }; then
26922   ac_cv_search_uuid_to_str="none required"
26923 else
26924   echo "$as_me: failed program was:" >&5
26925 sed 's/^/| /' conftest.$ac_ext >&5
26926
26927 fi
26928 rm -f conftest.err conftest.$ac_objext \
26929       conftest$ac_exeext conftest.$ac_ext
26930 if test "$ac_cv_search_uuid_to_str" = no; then
26931   for ac_lib in uuid; do
26932     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26933     cat >conftest.$ac_ext <<_ACEOF
26934 /* confdefs.h.  */
26935 _ACEOF
26936 cat confdefs.h >>conftest.$ac_ext
26937 cat >>conftest.$ac_ext <<_ACEOF
26938 /* end confdefs.h.  */
26939
26940 /* Override any gcc2 internal prototype to avoid an error.  */
26941 #ifdef __cplusplus
26942 extern "C"
26943 #endif
26944 /* We use char because int might match the return type of a gcc2
26945    builtin and then its argument prototype would still apply.  */
26946 char uuid_to_str ();
26947 int
26948 main ()
26949 {
26950 uuid_to_str ();
26951   ;
26952   return 0;
26953 }
26954 _ACEOF
26955 rm -f conftest.$ac_objext conftest$ac_exeext
26956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26957   (eval $ac_link) 2>conftest.er1
26958   ac_status=$?
26959   grep -v '^ *+' conftest.er1 >conftest.err
26960   rm -f conftest.er1
26961   cat conftest.err >&5
26962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26963   (exit $ac_status); } &&
26964          { ac_try='test -z "$ac_c_werror_flag"
26965                          || test ! -s conftest.err'
26966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26967   (eval $ac_try) 2>&5
26968   ac_status=$?
26969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26970   (exit $ac_status); }; } &&
26971          { ac_try='test -s conftest$ac_exeext'
26972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26973   (eval $ac_try) 2>&5
26974   ac_status=$?
26975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26976   (exit $ac_status); }; }; then
26977   ac_cv_search_uuid_to_str="-l$ac_lib"
26978 break
26979 else
26980   echo "$as_me: failed program was:" >&5
26981 sed 's/^/| /' conftest.$ac_ext >&5
26982
26983 fi
26984 rm -f conftest.err conftest.$ac_objext \
26985       conftest$ac_exeext conftest.$ac_ext
26986   done
26987 fi
26988 LIBS=$ac_func_search_save_LIBS
26989 fi
26990 echo "$as_me:$LINENO: result: $ac_cv_search_uuid_to_str" >&5
26991 echo "${ECHO_T}$ac_cv_search_uuid_to_str" >&6
26992 if test "$ac_cv_search_uuid_to_str" != no; then
26993   test "$ac_cv_search_uuid_to_str" = "none required" || LIBS="$ac_cv_search_uuid_to_str $LIBS"
26994   have_uuid=yes
26995 else
26996   :
26997 fi
26998
26999         LIBS="$save_LIBS"
27000
27001         if test have_uuid = yes ; then
27002
27003 cat >>confdefs.h <<\_ACEOF
27004 #define HAVE_UUID_TO_STR 1
27005 _ACEOF
27006
27007
27008                 test "$ac_cv_search_uuid_to_str" = "none required" || \
27009                         SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
27010         fi
27011 fi
27012
27013 if test $have_uuid = no ; then
27014         echo "$as_me:$LINENO: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
27015 echo $ECHO_N "checking to see if -lrpcrt4 is needed for win32 UUID support... $ECHO_C" >&6
27016         save_LIBS="$LIBS"
27017         LIBS="$LIBS -lrpcrt4"
27018         cat >conftest.$ac_ext <<_ACEOF
27019 /* confdefs.h.  */
27020 _ACEOF
27021 cat confdefs.h >>conftest.$ac_ext
27022 cat >>conftest.$ac_ext <<_ACEOF
27023 /* end confdefs.h.  */
27024
27025                 int __stdcall UuidCreate(void *);
27026                 int __stdcall UuidToStringA(void *,void **);
27027
27028 int
27029 main ()
27030 {
27031
27032                 UuidCreate(0);
27033                 UuidToStringA(0,0);
27034
27035   ;
27036   return 0;
27037 }
27038 _ACEOF
27039 rm -f conftest.$ac_objext conftest$ac_exeext
27040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27041   (eval $ac_link) 2>conftest.er1
27042   ac_status=$?
27043   grep -v '^ *+' conftest.er1 >conftest.err
27044   rm -f conftest.er1
27045   cat conftest.err >&5
27046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27047   (exit $ac_status); } &&
27048          { ac_try='test -z "$ac_c_werror_flag"
27049                          || test ! -s conftest.err'
27050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27051   (eval $ac_try) 2>&5
27052   ac_status=$?
27053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27054   (exit $ac_status); }; } &&
27055          { ac_try='test -s conftest$ac_exeext'
27056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27057   (eval $ac_try) 2>&5
27058   ac_status=$?
27059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27060   (exit $ac_status); }; }; then
27061   need_rpcrt=yes
27062 else
27063   echo "$as_me: failed program was:" >&5
27064 sed 's/^/| /' conftest.$ac_ext >&5
27065
27066 need_rpcrt=no
27067 fi
27068 rm -f conftest.err conftest.$ac_objext \
27069       conftest$ac_exeext conftest.$ac_ext
27070         if test $need_rpcrt = yes; then
27071                 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
27072         fi
27073         LIBS="$save_LIBS"
27074         echo "$as_me:$LINENO: result: $need_rpcrt" >&5
27075 echo "${ECHO_T}$need_rpcrt" >&6
27076 fi
27077
27078 ol_cv_lib_resolver=no
27079 if test $ol_cv_lib_resolver = no ; then
27080         echo "$as_me:$LINENO: checking for resolver link (default)" >&5
27081 echo $ECHO_N "checking for resolver link (default)... $ECHO_C" >&6
27082 if test "${ol_cv_resolver_none+set}" = set; then
27083   echo $ECHO_N "(cached) $ECHO_C" >&6
27084 else
27085
27086         ol_RESOLVER_LIB=
27087         ol_LIBS=$LIBS
27088         LIBS="$ol_RESOLVER_LIB $LIBS"
27089
27090         cat >conftest.$ac_ext <<_ACEOF
27091 /* confdefs.h.  */
27092 _ACEOF
27093 cat confdefs.h >>conftest.$ac_ext
27094 cat >>conftest.$ac_ext <<_ACEOF
27095 /* end confdefs.h.  */
27096
27097 #ifdef HAVE_SYS_TYPES_H
27098 #       include <sys/types.h>
27099 #endif
27100 #include <netinet/in.h>
27101 #ifdef HAVE_ARPA_NAMESER_H
27102 #       include <arpa/nameser.h>
27103 #endif
27104 #ifdef HAVE_RESOLV_H
27105 #       include <resolv.h>
27106 #endif
27107
27108 int
27109 main ()
27110 {
27111 {
27112         int len, status;
27113         char *request = NULL;
27114         unsigned char reply[64*1024];
27115         unsigned char host[64*1024];
27116         unsigned char *p;
27117
27118 #ifdef NS_HFIXEDSZ
27119         /* Bind 8/9 interface */
27120         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
27121 #else
27122         /* Bind 4 interface */
27123 # ifndef T_SRV
27124 #  define T_SRV 33
27125 # endif
27126         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
27127 #endif
27128         p = reply;
27129 #ifdef NS_HFIXEDSZ
27130         /* Bind 8/9 interface */
27131         p += NS_HFIXEDSZ;
27132 #elif defined(HFIXEDSZ)
27133         /* Bind 4 interface w/ HFIXEDSZ */
27134         p += HFIXEDSZ;
27135 #else
27136         /* Bind 4 interface w/o HFIXEDSZ */
27137         p += sizeof(HEADER);
27138 #endif
27139         status = dn_expand( reply, reply+len, p, host, sizeof(host));
27140 }
27141   ;
27142   return 0;
27143 }
27144 _ACEOF
27145 rm -f conftest.$ac_objext conftest$ac_exeext
27146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27147   (eval $ac_link) 2>conftest.er1
27148   ac_status=$?
27149   grep -v '^ *+' conftest.er1 >conftest.err
27150   rm -f conftest.er1
27151   cat conftest.err >&5
27152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27153   (exit $ac_status); } &&
27154          { ac_try='test -z "$ac_c_werror_flag"
27155                          || test ! -s conftest.err'
27156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27157   (eval $ac_try) 2>&5
27158   ac_status=$?
27159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27160   (exit $ac_status); }; } &&
27161          { ac_try='test -s conftest$ac_exeext'
27162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27163   (eval $ac_try) 2>&5
27164   ac_status=$?
27165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27166   (exit $ac_status); }; }; then
27167   ol_cv_resolver_none=yes
27168 else
27169   echo "$as_me: failed program was:" >&5
27170 sed 's/^/| /' conftest.$ac_ext >&5
27171
27172 ol_cv_resolver_none=no
27173 fi
27174 rm -f conftest.err conftest.$ac_objext \
27175       conftest$ac_exeext conftest.$ac_ext
27176
27177         LIBS="$ol_LIBS"
27178
27179 fi
27180 echo "$as_me:$LINENO: result: $ol_cv_resolver_none" >&5
27181 echo "${ECHO_T}$ol_cv_resolver_none" >&6
27182
27183         if test $ol_cv_resolver_none = yes ; then
27184                 ol_cv_lib_resolver=yes
27185         fi
27186 fi
27187
27188 if test $ol_cv_lib_resolver = no ; then
27189         echo "$as_me:$LINENO: checking for resolver link (-lresolv)" >&5
27190 echo $ECHO_N "checking for resolver link (-lresolv)... $ECHO_C" >&6
27191 if test "${ol_cv_resolver_resolv+set}" = set; then
27192   echo $ECHO_N "(cached) $ECHO_C" >&6
27193 else
27194
27195         ol_RESOLVER_LIB=-lresolv
27196         ol_LIBS=$LIBS
27197         LIBS="$ol_RESOLVER_LIB $LIBS"
27198
27199         cat >conftest.$ac_ext <<_ACEOF
27200 /* confdefs.h.  */
27201 _ACEOF
27202 cat confdefs.h >>conftest.$ac_ext
27203 cat >>conftest.$ac_ext <<_ACEOF
27204 /* end confdefs.h.  */
27205
27206 #ifdef HAVE_SYS_TYPES_H
27207 #       include <sys/types.h>
27208 #endif
27209 #include <netinet/in.h>
27210 #ifdef HAVE_ARPA_NAMESER_H
27211 #       include <arpa/nameser.h>
27212 #endif
27213 #ifdef HAVE_RESOLV_H
27214 #       include <resolv.h>
27215 #endif
27216
27217 int
27218 main ()
27219 {
27220 {
27221         int len, status;
27222         char *request = NULL;
27223         unsigned char reply[64*1024];
27224         unsigned char host[64*1024];
27225         unsigned char *p;
27226
27227 #ifdef NS_HFIXEDSZ
27228         /* Bind 8/9 interface */
27229         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
27230 #else
27231         /* Bind 4 interface */
27232 # ifndef T_SRV
27233 #  define T_SRV 33
27234 # endif
27235         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
27236 #endif
27237         p = reply;
27238 #ifdef NS_HFIXEDSZ
27239         /* Bind 8/9 interface */
27240         p += NS_HFIXEDSZ;
27241 #elif defined(HFIXEDSZ)
27242         /* Bind 4 interface w/ HFIXEDSZ */
27243         p += HFIXEDSZ;
27244 #else
27245         /* Bind 4 interface w/o HFIXEDSZ */
27246         p += sizeof(HEADER);
27247 #endif
27248         status = dn_expand( reply, reply+len, p, host, sizeof(host));
27249 }
27250   ;
27251   return 0;
27252 }
27253 _ACEOF
27254 rm -f conftest.$ac_objext conftest$ac_exeext
27255 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27256   (eval $ac_link) 2>conftest.er1
27257   ac_status=$?
27258   grep -v '^ *+' conftest.er1 >conftest.err
27259   rm -f conftest.er1
27260   cat conftest.err >&5
27261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27262   (exit $ac_status); } &&
27263          { ac_try='test -z "$ac_c_werror_flag"
27264                          || test ! -s conftest.err'
27265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27266   (eval $ac_try) 2>&5
27267   ac_status=$?
27268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27269   (exit $ac_status); }; } &&
27270          { ac_try='test -s conftest$ac_exeext'
27271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27272   (eval $ac_try) 2>&5
27273   ac_status=$?
27274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27275   (exit $ac_status); }; }; then
27276   ol_cv_resolver_resolv=yes
27277 else
27278   echo "$as_me: failed program was:" >&5
27279 sed 's/^/| /' conftest.$ac_ext >&5
27280
27281 ol_cv_resolver_resolv=no
27282 fi
27283 rm -f conftest.err conftest.$ac_objext \
27284       conftest$ac_exeext conftest.$ac_ext
27285
27286         LIBS="$ol_LIBS"
27287
27288 fi
27289 echo "$as_me:$LINENO: result: $ol_cv_resolver_resolv" >&5
27290 echo "${ECHO_T}$ol_cv_resolver_resolv" >&6
27291
27292         if test $ol_cv_resolver_resolv = yes ; then
27293                 ol_cv_lib_resolver=-lresolv
27294         fi
27295 fi
27296
27297 if test $ol_cv_lib_resolver = no ; then
27298         echo "$as_me:$LINENO: checking for resolver link (-lbind)" >&5
27299 echo $ECHO_N "checking for resolver link (-lbind)... $ECHO_C" >&6
27300 if test "${ol_cv_resolver_bind+set}" = set; then
27301   echo $ECHO_N "(cached) $ECHO_C" >&6
27302 else
27303
27304         ol_RESOLVER_LIB=-lbind
27305         ol_LIBS=$LIBS
27306         LIBS="$ol_RESOLVER_LIB $LIBS"
27307
27308         cat >conftest.$ac_ext <<_ACEOF
27309 /* confdefs.h.  */
27310 _ACEOF
27311 cat confdefs.h >>conftest.$ac_ext
27312 cat >>conftest.$ac_ext <<_ACEOF
27313 /* end confdefs.h.  */
27314
27315 #ifdef HAVE_SYS_TYPES_H
27316 #       include <sys/types.h>
27317 #endif
27318 #include <netinet/in.h>
27319 #ifdef HAVE_ARPA_NAMESER_H
27320 #       include <arpa/nameser.h>
27321 #endif
27322 #ifdef HAVE_RESOLV_H
27323 #       include <resolv.h>
27324 #endif
27325
27326 int
27327 main ()
27328 {
27329 {
27330         int len, status;
27331         char *request = NULL;
27332         unsigned char reply[64*1024];
27333         unsigned char host[64*1024];
27334         unsigned char *p;
27335
27336 #ifdef NS_HFIXEDSZ
27337         /* Bind 8/9 interface */
27338         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
27339 #else
27340         /* Bind 4 interface */
27341 # ifndef T_SRV
27342 #  define T_SRV 33
27343 # endif
27344         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
27345 #endif
27346         p = reply;
27347 #ifdef NS_HFIXEDSZ
27348         /* Bind 8/9 interface */
27349         p += NS_HFIXEDSZ;
27350 #elif defined(HFIXEDSZ)
27351         /* Bind 4 interface w/ HFIXEDSZ */
27352         p += HFIXEDSZ;
27353 #else
27354         /* Bind 4 interface w/o HFIXEDSZ */
27355         p += sizeof(HEADER);
27356 #endif
27357         status = dn_expand( reply, reply+len, p, host, sizeof(host));
27358 }
27359   ;
27360   return 0;
27361 }
27362 _ACEOF
27363 rm -f conftest.$ac_objext conftest$ac_exeext
27364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27365   (eval $ac_link) 2>conftest.er1
27366   ac_status=$?
27367   grep -v '^ *+' conftest.er1 >conftest.err
27368   rm -f conftest.er1
27369   cat conftest.err >&5
27370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27371   (exit $ac_status); } &&
27372          { ac_try='test -z "$ac_c_werror_flag"
27373                          || test ! -s conftest.err'
27374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27375   (eval $ac_try) 2>&5
27376   ac_status=$?
27377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27378   (exit $ac_status); }; } &&
27379          { ac_try='test -s conftest$ac_exeext'
27380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27381   (eval $ac_try) 2>&5
27382   ac_status=$?
27383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27384   (exit $ac_status); }; }; then
27385   ol_cv_resolver_bind=yes
27386 else
27387   echo "$as_me: failed program was:" >&5
27388 sed 's/^/| /' conftest.$ac_ext >&5
27389
27390 ol_cv_resolver_bind=no
27391 fi
27392 rm -f conftest.err conftest.$ac_objext \
27393       conftest$ac_exeext conftest.$ac_ext
27394
27395         LIBS="$ol_LIBS"
27396
27397 fi
27398 echo "$as_me:$LINENO: result: $ol_cv_resolver_bind" >&5
27399 echo "${ECHO_T}$ol_cv_resolver_bind" >&6
27400
27401         if test $ol_cv_resolver_bind = yes ; then
27402                 ol_cv_lib_resolver=-lbind
27403         fi
27404 fi
27405
27406
27407
27408 ol_link_dnssrv=no
27409 if test "$ol_cv_lib_resolver" != no ; then
27410
27411 cat >>confdefs.h <<\_ACEOF
27412 #define HAVE_RES_QUERY 1
27413 _ACEOF
27414
27415
27416         if test "$ol_enable_dnssrv" != no ; then
27417                 ol_link_dnssrv=yes
27418         fi
27419
27420         if test "$ol_cv_lib_resolver" != yes ; then
27421                 LIBS="$ol_cv_lib_resolver $LIBS"
27422         fi
27423 fi
27424
27425 if test "$ol_enable_dnssrv" = yes -o "$ol_enable_dnssrv" = mod ; then
27426         if test "$ol_link_dnssrv" = no ; then
27427                 { { echo "$as_me:$LINENO: error: DNSSRV requires res_query()" >&5
27428 echo "$as_me: error: DNSSRV requires res_query()" >&2;}
27429    { (exit 1); exit 1; }; }
27430         fi
27431 else
27432         ol_enable_dnssrv=no
27433 fi
27434
27435
27436 for ac_func in hstrerror
27437 do
27438 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27439 echo "$as_me:$LINENO: checking for $ac_func" >&5
27440 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27441 if eval "test \"\${$as_ac_var+set}\" = set"; then
27442   echo $ECHO_N "(cached) $ECHO_C" >&6
27443 else
27444   cat >conftest.$ac_ext <<_ACEOF
27445 /* confdefs.h.  */
27446 _ACEOF
27447 cat confdefs.h >>conftest.$ac_ext
27448 cat >>conftest.$ac_ext <<_ACEOF
27449 /* end confdefs.h.  */
27450 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27451    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27452 #define $ac_func innocuous_$ac_func
27453
27454 /* System header to define __stub macros and hopefully few prototypes,
27455     which can conflict with char $ac_func (); below.
27456     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27457     <limits.h> exists even on freestanding compilers.  */
27458
27459 #ifdef __STDC__
27460 # include <limits.h>
27461 #else
27462 # include <assert.h>
27463 #endif
27464
27465 #undef $ac_func
27466
27467 /* Override any gcc2 internal prototype to avoid an error.  */
27468 #ifdef __cplusplus
27469 extern "C"
27470 {
27471 #endif
27472 /* We use char because int might match the return type of a gcc2
27473    builtin and then its argument prototype would still apply.  */
27474 char $ac_func ();
27475 /* The GNU C library defines this for functions which it implements
27476     to always fail with ENOSYS.  Some functions are actually named
27477     something starting with __ and the normal name is an alias.  */
27478 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27479 choke me
27480 #else
27481 char (*f) () = $ac_func;
27482 #endif
27483 #ifdef __cplusplus
27484 }
27485 #endif
27486
27487 int
27488 main ()
27489 {
27490 return f != $ac_func;
27491   ;
27492   return 0;
27493 }
27494 _ACEOF
27495 rm -f conftest.$ac_objext conftest$ac_exeext
27496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27497   (eval $ac_link) 2>conftest.er1
27498   ac_status=$?
27499   grep -v '^ *+' conftest.er1 >conftest.err
27500   rm -f conftest.er1
27501   cat conftest.err >&5
27502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27503   (exit $ac_status); } &&
27504          { ac_try='test -z "$ac_c_werror_flag"
27505                          || test ! -s conftest.err'
27506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27507   (eval $ac_try) 2>&5
27508   ac_status=$?
27509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27510   (exit $ac_status); }; } &&
27511          { ac_try='test -s conftest$ac_exeext'
27512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27513   (eval $ac_try) 2>&5
27514   ac_status=$?
27515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27516   (exit $ac_status); }; }; then
27517   eval "$as_ac_var=yes"
27518 else
27519   echo "$as_me: failed program was:" >&5
27520 sed 's/^/| /' conftest.$ac_ext >&5
27521
27522 eval "$as_ac_var=no"
27523 fi
27524 rm -f conftest.err conftest.$ac_objext \
27525       conftest$ac_exeext conftest.$ac_ext
27526 fi
27527 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27528 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27529 if test `eval echo '${'$as_ac_var'}'` = yes; then
27530   cat >>confdefs.h <<_ACEOF
27531 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27532 _ACEOF
27533
27534 fi
27535 done
27536
27537
27538
27539
27540
27541
27542 for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
27543 do
27544 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27545 echo "$as_me:$LINENO: checking for $ac_func" >&5
27546 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27547 if eval "test \"\${$as_ac_var+set}\" = set"; then
27548   echo $ECHO_N "(cached) $ECHO_C" >&6
27549 else
27550   cat >conftest.$ac_ext <<_ACEOF
27551 /* confdefs.h.  */
27552 _ACEOF
27553 cat confdefs.h >>conftest.$ac_ext
27554 cat >>conftest.$ac_ext <<_ACEOF
27555 /* end confdefs.h.  */
27556 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27557    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27558 #define $ac_func innocuous_$ac_func
27559
27560 /* System header to define __stub macros and hopefully few prototypes,
27561     which can conflict with char $ac_func (); below.
27562     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27563     <limits.h> exists even on freestanding compilers.  */
27564
27565 #ifdef __STDC__
27566 # include <limits.h>
27567 #else
27568 # include <assert.h>
27569 #endif
27570
27571 #undef $ac_func
27572
27573 /* Override any gcc2 internal prototype to avoid an error.  */
27574 #ifdef __cplusplus
27575 extern "C"
27576 {
27577 #endif
27578 /* We use char because int might match the return type of a gcc2
27579    builtin and then its argument prototype would still apply.  */
27580 char $ac_func ();
27581 /* The GNU C library defines this for functions which it implements
27582     to always fail with ENOSYS.  Some functions are actually named
27583     something starting with __ and the normal name is an alias.  */
27584 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27585 choke me
27586 #else
27587 char (*f) () = $ac_func;
27588 #endif
27589 #ifdef __cplusplus
27590 }
27591 #endif
27592
27593 int
27594 main ()
27595 {
27596 return f != $ac_func;
27597   ;
27598   return 0;
27599 }
27600 _ACEOF
27601 rm -f conftest.$ac_objext conftest$ac_exeext
27602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27603   (eval $ac_link) 2>conftest.er1
27604   ac_status=$?
27605   grep -v '^ *+' conftest.er1 >conftest.err
27606   rm -f conftest.er1
27607   cat conftest.err >&5
27608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27609   (exit $ac_status); } &&
27610          { ac_try='test -z "$ac_c_werror_flag"
27611                          || test ! -s conftest.err'
27612   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27613   (eval $ac_try) 2>&5
27614   ac_status=$?
27615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27616   (exit $ac_status); }; } &&
27617          { ac_try='test -s conftest$ac_exeext'
27618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27619   (eval $ac_try) 2>&5
27620   ac_status=$?
27621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27622   (exit $ac_status); }; }; then
27623   eval "$as_ac_var=yes"
27624 else
27625   echo "$as_me: failed program was:" >&5
27626 sed 's/^/| /' conftest.$ac_ext >&5
27627
27628 eval "$as_ac_var=no"
27629 fi
27630 rm -f conftest.err conftest.$ac_objext \
27631       conftest$ac_exeext conftest.$ac_ext
27632 fi
27633 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27634 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27635 if test `eval echo '${'$as_ac_var'}'` = yes; then
27636   cat >>confdefs.h <<_ACEOF
27637 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27638 _ACEOF
27639
27640 fi
27641 done
27642
27643
27644 ol_link_ipv6=no
27645 if test $ac_cv_func_getaddrinfo = no -o $ac_cv_func_inet_ntop = no ; then
27646         if test $ol_enable_ipv6 = yes ; then
27647                 { { echo "$as_me:$LINENO: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&5
27648 echo "$as_me: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&2;}
27649    { (exit 1); exit 1; }; }
27650         fi
27651 elif test $ol_enable_ipv6 != no ; then
27652         echo "$as_me:$LINENO: checking INET6_ADDRSTRLEN" >&5
27653 echo $ECHO_N "checking INET6_ADDRSTRLEN... $ECHO_C" >&6
27654 if test "${ol_cv_inet6_addrstrlen+set}" = set; then
27655   echo $ECHO_N "(cached) $ECHO_C" >&6
27656 else
27657
27658                 cat >conftest.$ac_ext <<_ACEOF
27659 /* confdefs.h.  */
27660 _ACEOF
27661 cat confdefs.h >>conftest.$ac_ext
27662 cat >>conftest.$ac_ext <<_ACEOF
27663 /* end confdefs.h.  */
27664
27665 #                       include <netinet/in.h>
27666 #                       ifdef INET6_ADDRSTRLEN
27667                                 __has_inet6_addrstrlen__;
27668 #                       endif
27669
27670 _ACEOF
27671 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27672   $EGREP "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
27673   ol_cv_inet6_addrstrlen=yes
27674 else
27675   ol_cv_inet6_addrstrlen=no
27676 fi
27677 rm -f conftest*
27678
27679 fi
27680 echo "$as_me:$LINENO: result: $ol_cv_inet6_addrstrlen" >&5
27681 echo "${ECHO_T}$ol_cv_inet6_addrstrlen" >&6
27682
27683
27684         echo "$as_me:$LINENO: checking struct sockaddr_storage" >&5
27685 echo $ECHO_N "checking struct sockaddr_storage... $ECHO_C" >&6
27686 if test "${ol_cv_struct_sockaddr_storage+set}" = set; then
27687   echo $ECHO_N "(cached) $ECHO_C" >&6
27688 else
27689
27690                 cat >conftest.$ac_ext <<_ACEOF
27691 /* confdefs.h.  */
27692 _ACEOF
27693 cat confdefs.h >>conftest.$ac_ext
27694 cat >>conftest.$ac_ext <<_ACEOF
27695 /* end confdefs.h.  */
27696
27697 #include <sys/types.h>
27698 #include <sys/socket.h>
27699
27700 int
27701 main ()
27702 {
27703
27704                         struct sockaddr_storage ss;
27705
27706   ;
27707   return 0;
27708 }
27709 _ACEOF
27710 rm -f conftest.$ac_objext
27711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27712   (eval $ac_compile) 2>conftest.er1
27713   ac_status=$?
27714   grep -v '^ *+' conftest.er1 >conftest.err
27715   rm -f conftest.er1
27716   cat conftest.err >&5
27717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27718   (exit $ac_status); } &&
27719          { ac_try='test -z "$ac_c_werror_flag"
27720                          || test ! -s conftest.err'
27721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27722   (eval $ac_try) 2>&5
27723   ac_status=$?
27724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27725   (exit $ac_status); }; } &&
27726          { ac_try='test -s conftest.$ac_objext'
27727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27728   (eval $ac_try) 2>&5
27729   ac_status=$?
27730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27731   (exit $ac_status); }; }; then
27732   ol_cv_struct_sockaddr_storage=yes
27733 else
27734   echo "$as_me: failed program was:" >&5
27735 sed 's/^/| /' conftest.$ac_ext >&5
27736
27737 ol_cv_struct_sockaddr_storage=no
27738 fi
27739 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27740 fi
27741 echo "$as_me:$LINENO: result: $ol_cv_struct_sockaddr_storage" >&5
27742 echo "${ECHO_T}$ol_cv_struct_sockaddr_storage" >&6
27743
27744         if test $ol_cv_inet6_addrstrlen = yes \
27745                 -a $ol_cv_struct_sockaddr_storage = yes ; then
27746                 ol_link_ipv6=yes
27747         elif test $ol_enable_ipv6 = yes \
27748                         -a $ol_cv_inet6_addrstrlen = no ; then
27749                 { { echo "$as_me:$LINENO: error: IPv6 support requires INET6_ADDRSTRLEN" >&5
27750 echo "$as_me: error: IPv6 support requires INET6_ADDRSTRLEN" >&2;}
27751    { (exit 1); exit 1; }; }
27752         elif test $ol_enable_ipv6 = yes \
27753                         -a $ol_cv_struct_sockaddr_storage = no ; then
27754                 { { echo "$as_me:$LINENO: error: IPv6 support requires struct sockaddr_storage" >&5
27755 echo "$as_me: error: IPv6 support requires struct sockaddr_storage" >&2;}
27756    { (exit 1); exit 1; }; }
27757         fi
27758 fi
27759
27760 if test $ol_enable_local != no ; then
27761
27762 for ac_header in sys/un.h
27763 do
27764 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27765 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27766   echo "$as_me:$LINENO: checking for $ac_header" >&5
27767 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27768 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27769   echo $ECHO_N "(cached) $ECHO_C" >&6
27770 fi
27771 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27772 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27773 else
27774   # Is the header compilable?
27775 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27776 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27777 cat >conftest.$ac_ext <<_ACEOF
27778 /* confdefs.h.  */
27779 _ACEOF
27780 cat confdefs.h >>conftest.$ac_ext
27781 cat >>conftest.$ac_ext <<_ACEOF
27782 /* end confdefs.h.  */
27783 $ac_includes_default
27784 #include <$ac_header>
27785 _ACEOF
27786 rm -f conftest.$ac_objext
27787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27788   (eval $ac_compile) 2>conftest.er1
27789   ac_status=$?
27790   grep -v '^ *+' conftest.er1 >conftest.err
27791   rm -f conftest.er1
27792   cat conftest.err >&5
27793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27794   (exit $ac_status); } &&
27795          { ac_try='test -z "$ac_c_werror_flag"
27796                          || test ! -s conftest.err'
27797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27798   (eval $ac_try) 2>&5
27799   ac_status=$?
27800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27801   (exit $ac_status); }; } &&
27802          { ac_try='test -s conftest.$ac_objext'
27803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27804   (eval $ac_try) 2>&5
27805   ac_status=$?
27806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27807   (exit $ac_status); }; }; then
27808   ac_header_compiler=yes
27809 else
27810   echo "$as_me: failed program was:" >&5
27811 sed 's/^/| /' conftest.$ac_ext >&5
27812
27813 ac_header_compiler=no
27814 fi
27815 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27816 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27817 echo "${ECHO_T}$ac_header_compiler" >&6
27818
27819 # Is the header present?
27820 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27821 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27822 cat >conftest.$ac_ext <<_ACEOF
27823 /* confdefs.h.  */
27824 _ACEOF
27825 cat confdefs.h >>conftest.$ac_ext
27826 cat >>conftest.$ac_ext <<_ACEOF
27827 /* end confdefs.h.  */
27828 #include <$ac_header>
27829 _ACEOF
27830 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27831   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27832   ac_status=$?
27833   grep -v '^ *+' conftest.er1 >conftest.err
27834   rm -f conftest.er1
27835   cat conftest.err >&5
27836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27837   (exit $ac_status); } >/dev/null; then
27838   if test -s conftest.err; then
27839     ac_cpp_err=$ac_c_preproc_warn_flag
27840     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27841   else
27842     ac_cpp_err=
27843   fi
27844 else
27845   ac_cpp_err=yes
27846 fi
27847 if test -z "$ac_cpp_err"; then
27848   ac_header_preproc=yes
27849 else
27850   echo "$as_me: failed program was:" >&5
27851 sed 's/^/| /' conftest.$ac_ext >&5
27852
27853   ac_header_preproc=no
27854 fi
27855 rm -f conftest.err conftest.$ac_ext
27856 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27857 echo "${ECHO_T}$ac_header_preproc" >&6
27858
27859 # So?  What about this header?
27860 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27861   yes:no: )
27862     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27863 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27864     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27865 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27866     ac_header_preproc=yes
27867     ;;
27868   no:yes:* )
27869     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27870 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27871     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27872 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27873     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27874 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27875     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27876 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27877     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27878 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27879     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27880 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27881     (
27882       cat <<\_ASBOX
27883 ## ------------------------------------------ ##
27884 ## Report this to the AC_PACKAGE_NAME lists.  ##
27885 ## ------------------------------------------ ##
27886 _ASBOX
27887     ) |
27888       sed "s/^/$as_me: WARNING:     /" >&2
27889     ;;
27890 esac
27891 echo "$as_me:$LINENO: checking for $ac_header" >&5
27892 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27893 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27894   echo $ECHO_N "(cached) $ECHO_C" >&6
27895 else
27896   eval "$as_ac_Header=\$ac_header_preproc"
27897 fi
27898 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27899 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27900
27901 fi
27902 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27903   cat >>confdefs.h <<_ACEOF
27904 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27905 _ACEOF
27906
27907 fi
27908
27909 done
27910
27911
27912         if test $ol_enable_local = auto ; then
27913                 ol_enable_local=$ac_cv_header_sys_un_h
27914         elif test $ac_cv_header_sys_un_h = no ; then
27915                 { { echo "$as_me:$LINENO: error: AF_LOCAL domain support requires sys/un.h" >&5
27916 echo "$as_me: error: AF_LOCAL domain support requires sys/un.h" >&2;}
27917    { (exit 1); exit 1; }; }
27918         fi
27919 fi
27920
27921 ol_link_kbind=no
27922 ol_link_krb5=no
27923 ol_link_krb4=no
27924
27925 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
27926         -o $ol_with_kerberos = k5 -o $ol_with_kerberos = k5only \
27927         -o $ol_with_kerberos = k425 ; then
27928
27929
27930 for ac_header in krb5.h
27931 do
27932 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27933 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27934   echo "$as_me:$LINENO: checking for $ac_header" >&5
27935 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27936 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27937   echo $ECHO_N "(cached) $ECHO_C" >&6
27938 fi
27939 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27940 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27941 else
27942   # Is the header compilable?
27943 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27944 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27945 cat >conftest.$ac_ext <<_ACEOF
27946 /* confdefs.h.  */
27947 _ACEOF
27948 cat confdefs.h >>conftest.$ac_ext
27949 cat >>conftest.$ac_ext <<_ACEOF
27950 /* end confdefs.h.  */
27951 $ac_includes_default
27952 #include <$ac_header>
27953 _ACEOF
27954 rm -f conftest.$ac_objext
27955 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27956   (eval $ac_compile) 2>conftest.er1
27957   ac_status=$?
27958   grep -v '^ *+' conftest.er1 >conftest.err
27959   rm -f conftest.er1
27960   cat conftest.err >&5
27961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27962   (exit $ac_status); } &&
27963          { ac_try='test -z "$ac_c_werror_flag"
27964                          || test ! -s conftest.err'
27965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27966   (eval $ac_try) 2>&5
27967   ac_status=$?
27968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27969   (exit $ac_status); }; } &&
27970          { ac_try='test -s conftest.$ac_objext'
27971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27972   (eval $ac_try) 2>&5
27973   ac_status=$?
27974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27975   (exit $ac_status); }; }; then
27976   ac_header_compiler=yes
27977 else
27978   echo "$as_me: failed program was:" >&5
27979 sed 's/^/| /' conftest.$ac_ext >&5
27980
27981 ac_header_compiler=no
27982 fi
27983 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27984 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27985 echo "${ECHO_T}$ac_header_compiler" >&6
27986
27987 # Is the header present?
27988 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27989 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27990 cat >conftest.$ac_ext <<_ACEOF
27991 /* confdefs.h.  */
27992 _ACEOF
27993 cat confdefs.h >>conftest.$ac_ext
27994 cat >>conftest.$ac_ext <<_ACEOF
27995 /* end confdefs.h.  */
27996 #include <$ac_header>
27997 _ACEOF
27998 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27999   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28000   ac_status=$?
28001   grep -v '^ *+' conftest.er1 >conftest.err
28002   rm -f conftest.er1
28003   cat conftest.err >&5
28004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28005   (exit $ac_status); } >/dev/null; then
28006   if test -s conftest.err; then
28007     ac_cpp_err=$ac_c_preproc_warn_flag
28008     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28009   else
28010     ac_cpp_err=
28011   fi
28012 else
28013   ac_cpp_err=yes
28014 fi
28015 if test -z "$ac_cpp_err"; then
28016   ac_header_preproc=yes
28017 else
28018   echo "$as_me: failed program was:" >&5
28019 sed 's/^/| /' conftest.$ac_ext >&5
28020
28021   ac_header_preproc=no
28022 fi
28023 rm -f conftest.err conftest.$ac_ext
28024 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28025 echo "${ECHO_T}$ac_header_preproc" >&6
28026
28027 # So?  What about this header?
28028 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28029   yes:no: )
28030     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28031 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28032     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28033 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28034     ac_header_preproc=yes
28035     ;;
28036   no:yes:* )
28037     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28038 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28039     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28040 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28041     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28042 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28043     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28044 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28045     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28046 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28047     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28048 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28049     (
28050       cat <<\_ASBOX
28051 ## ------------------------------------------ ##
28052 ## Report this to the AC_PACKAGE_NAME lists.  ##
28053 ## ------------------------------------------ ##
28054 _ASBOX
28055     ) |
28056       sed "s/^/$as_me: WARNING:     /" >&2
28057     ;;
28058 esac
28059 echo "$as_me:$LINENO: checking for $ac_header" >&5
28060 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28061 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28062   echo $ECHO_N "(cached) $ECHO_C" >&6
28063 else
28064   eval "$as_ac_Header=\$ac_header_preproc"
28065 fi
28066 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28067 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28068
28069 fi
28070 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28071   cat >>confdefs.h <<_ACEOF
28072 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28073 _ACEOF
28074
28075 fi
28076
28077 done
28078
28079
28080         if test $ac_cv_header_krb5_h = yes ; then
28081
28082 for ac_header in heim_err.h
28083 do
28084 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28085 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28086   echo "$as_me:$LINENO: checking for $ac_header" >&5
28087 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28088 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28089   echo $ECHO_N "(cached) $ECHO_C" >&6
28090 fi
28091 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28092 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28093 else
28094   # Is the header compilable?
28095 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28096 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28097 cat >conftest.$ac_ext <<_ACEOF
28098 /* confdefs.h.  */
28099 _ACEOF
28100 cat confdefs.h >>conftest.$ac_ext
28101 cat >>conftest.$ac_ext <<_ACEOF
28102 /* end confdefs.h.  */
28103 $ac_includes_default
28104 #include <$ac_header>
28105 _ACEOF
28106 rm -f conftest.$ac_objext
28107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28108   (eval $ac_compile) 2>conftest.er1
28109   ac_status=$?
28110   grep -v '^ *+' conftest.er1 >conftest.err
28111   rm -f conftest.er1
28112   cat conftest.err >&5
28113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28114   (exit $ac_status); } &&
28115          { ac_try='test -z "$ac_c_werror_flag"
28116                          || test ! -s conftest.err'
28117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28118   (eval $ac_try) 2>&5
28119   ac_status=$?
28120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28121   (exit $ac_status); }; } &&
28122          { ac_try='test -s conftest.$ac_objext'
28123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28124   (eval $ac_try) 2>&5
28125   ac_status=$?
28126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28127   (exit $ac_status); }; }; then
28128   ac_header_compiler=yes
28129 else
28130   echo "$as_me: failed program was:" >&5
28131 sed 's/^/| /' conftest.$ac_ext >&5
28132
28133 ac_header_compiler=no
28134 fi
28135 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28136 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28137 echo "${ECHO_T}$ac_header_compiler" >&6
28138
28139 # Is the header present?
28140 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28141 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28142 cat >conftest.$ac_ext <<_ACEOF
28143 /* confdefs.h.  */
28144 _ACEOF
28145 cat confdefs.h >>conftest.$ac_ext
28146 cat >>conftest.$ac_ext <<_ACEOF
28147 /* end confdefs.h.  */
28148 #include <$ac_header>
28149 _ACEOF
28150 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28151   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28152   ac_status=$?
28153   grep -v '^ *+' conftest.er1 >conftest.err
28154   rm -f conftest.er1
28155   cat conftest.err >&5
28156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28157   (exit $ac_status); } >/dev/null; then
28158   if test -s conftest.err; then
28159     ac_cpp_err=$ac_c_preproc_warn_flag
28160     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28161   else
28162     ac_cpp_err=
28163   fi
28164 else
28165   ac_cpp_err=yes
28166 fi
28167 if test -z "$ac_cpp_err"; then
28168   ac_header_preproc=yes
28169 else
28170   echo "$as_me: failed program was:" >&5
28171 sed 's/^/| /' conftest.$ac_ext >&5
28172
28173   ac_header_preproc=no
28174 fi
28175 rm -f conftest.err conftest.$ac_ext
28176 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28177 echo "${ECHO_T}$ac_header_preproc" >&6
28178
28179 # So?  What about this header?
28180 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28181   yes:no: )
28182     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28183 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28184     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28185 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28186     ac_header_preproc=yes
28187     ;;
28188   no:yes:* )
28189     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28190 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28191     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28192 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28193     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28194 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28195     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28196 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28197     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28198 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28199     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28200 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28201     (
28202       cat <<\_ASBOX
28203 ## ------------------------------------------ ##
28204 ## Report this to the AC_PACKAGE_NAME lists.  ##
28205 ## ------------------------------------------ ##
28206 _ASBOX
28207     ) |
28208       sed "s/^/$as_me: WARNING:     /" >&2
28209     ;;
28210 esac
28211 echo "$as_me:$LINENO: checking for $ac_header" >&5
28212 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28213 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28214   echo $ECHO_N "(cached) $ECHO_C" >&6
28215 else
28216   eval "$as_ac_Header=\$ac_header_preproc"
28217 fi
28218 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28219 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28220
28221 fi
28222 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28223   cat >>confdefs.h <<_ACEOF
28224 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28225 _ACEOF
28226
28227 fi
28228
28229 done
28230
28231                 if test $ac_cv_header_heim_err_h = yes ; then
28232                         krb5_impl=heimdal
28233                 else
28234                         krb5_impl=mit
28235                 fi
28236
28237                 if test $krb5_impl = mit; then
28238                         echo "$as_me:$LINENO: checking for main in -lk5crypto" >&5
28239 echo $ECHO_N "checking for main in -lk5crypto... $ECHO_C" >&6
28240 if test "${ac_cv_lib_k5crypto_main+set}" = set; then
28241   echo $ECHO_N "(cached) $ECHO_C" >&6
28242 else
28243   ac_check_lib_save_LIBS=$LIBS
28244 LIBS="-lk5crypto  $LIBS"
28245 cat >conftest.$ac_ext <<_ACEOF
28246 /* confdefs.h.  */
28247 _ACEOF
28248 cat confdefs.h >>conftest.$ac_ext
28249 cat >>conftest.$ac_ext <<_ACEOF
28250 /* end confdefs.h.  */
28251
28252
28253 int
28254 main ()
28255 {
28256 main ();
28257   ;
28258   return 0;
28259 }
28260 _ACEOF
28261 rm -f conftest.$ac_objext conftest$ac_exeext
28262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28263   (eval $ac_link) 2>conftest.er1
28264   ac_status=$?
28265   grep -v '^ *+' conftest.er1 >conftest.err
28266   rm -f conftest.er1
28267   cat conftest.err >&5
28268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28269   (exit $ac_status); } &&
28270          { ac_try='test -z "$ac_c_werror_flag"
28271                          || test ! -s conftest.err'
28272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28273   (eval $ac_try) 2>&5
28274   ac_status=$?
28275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28276   (exit $ac_status); }; } &&
28277          { ac_try='test -s conftest$ac_exeext'
28278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28279   (eval $ac_try) 2>&5
28280   ac_status=$?
28281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28282   (exit $ac_status); }; }; then
28283   ac_cv_lib_k5crypto_main=yes
28284 else
28285   echo "$as_me: failed program was:" >&5
28286 sed 's/^/| /' conftest.$ac_ext >&5
28287
28288 ac_cv_lib_k5crypto_main=no
28289 fi
28290 rm -f conftest.err conftest.$ac_objext \
28291       conftest$ac_exeext conftest.$ac_ext
28292 LIBS=$ac_check_lib_save_LIBS
28293 fi
28294 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_main" >&5
28295 echo "${ECHO_T}$ac_cv_lib_k5crypto_main" >&6
28296 if test $ac_cv_lib_k5crypto_main = yes; then
28297   krb5crypto=k5crypto
28298 else
28299   krb5crypto=crypto
28300 fi
28301
28302
28303                         echo "$as_me:$LINENO: checking for main in -lkrb5" >&5
28304 echo $ECHO_N "checking for main in -lkrb5... $ECHO_C" >&6
28305 if test "${ac_cv_lib_krb5_main+set}" = set; then
28306   echo $ECHO_N "(cached) $ECHO_C" >&6
28307 else
28308   ac_check_lib_save_LIBS=$LIBS
28309 LIBS="-lkrb5 -l$krb5crypto -lcom_err $LIBS"
28310 cat >conftest.$ac_ext <<_ACEOF
28311 /* confdefs.h.  */
28312 _ACEOF
28313 cat confdefs.h >>conftest.$ac_ext
28314 cat >>conftest.$ac_ext <<_ACEOF
28315 /* end confdefs.h.  */
28316
28317
28318 int
28319 main ()
28320 {
28321 main ();
28322   ;
28323   return 0;
28324 }
28325 _ACEOF
28326 rm -f conftest.$ac_objext conftest$ac_exeext
28327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28328   (eval $ac_link) 2>conftest.er1
28329   ac_status=$?
28330   grep -v '^ *+' conftest.er1 >conftest.err
28331   rm -f conftest.er1
28332   cat conftest.err >&5
28333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28334   (exit $ac_status); } &&
28335          { ac_try='test -z "$ac_c_werror_flag"
28336                          || test ! -s conftest.err'
28337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28338   (eval $ac_try) 2>&5
28339   ac_status=$?
28340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28341   (exit $ac_status); }; } &&
28342          { ac_try='test -s conftest$ac_exeext'
28343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28344   (eval $ac_try) 2>&5
28345   ac_status=$?
28346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28347   (exit $ac_status); }; }; then
28348   ac_cv_lib_krb5_main=yes
28349 else
28350   echo "$as_me: failed program was:" >&5
28351 sed 's/^/| /' conftest.$ac_ext >&5
28352
28353 ac_cv_lib_krb5_main=no
28354 fi
28355 rm -f conftest.err conftest.$ac_objext \
28356       conftest$ac_exeext conftest.$ac_ext
28357 LIBS=$ac_check_lib_save_LIBS
28358 fi
28359 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_main" >&5
28360 echo "${ECHO_T}$ac_cv_lib_krb5_main" >&6
28361 if test $ac_cv_lib_krb5_main = yes; then
28362   have_krb5=yes
28363                                 KRB5_LIBS="-lkrb5 -l$krb5crypto -lcom_err"
28364 else
28365   have_krb5=no
28366 fi
28367
28368
28369                 elif test $krb5_impl = heimdal; then
28370                         echo "$as_me:$LINENO: checking for main in -ldes" >&5
28371 echo $ECHO_N "checking for main in -ldes... $ECHO_C" >&6
28372 if test "${ac_cv_lib_des_main+set}" = set; then
28373   echo $ECHO_N "(cached) $ECHO_C" >&6
28374 else
28375   ac_check_lib_save_LIBS=$LIBS
28376 LIBS="-ldes  $LIBS"
28377 cat >conftest.$ac_ext <<_ACEOF
28378 /* confdefs.h.  */
28379 _ACEOF
28380 cat confdefs.h >>conftest.$ac_ext
28381 cat >>conftest.$ac_ext <<_ACEOF
28382 /* end confdefs.h.  */
28383
28384
28385 int
28386 main ()
28387 {
28388 main ();
28389   ;
28390   return 0;
28391 }
28392 _ACEOF
28393 rm -f conftest.$ac_objext conftest$ac_exeext
28394 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28395   (eval $ac_link) 2>conftest.er1
28396   ac_status=$?
28397   grep -v '^ *+' conftest.er1 >conftest.err
28398   rm -f conftest.er1
28399   cat conftest.err >&5
28400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28401   (exit $ac_status); } &&
28402          { ac_try='test -z "$ac_c_werror_flag"
28403                          || test ! -s conftest.err'
28404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28405   (eval $ac_try) 2>&5
28406   ac_status=$?
28407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28408   (exit $ac_status); }; } &&
28409          { ac_try='test -s conftest$ac_exeext'
28410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28411   (eval $ac_try) 2>&5
28412   ac_status=$?
28413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28414   (exit $ac_status); }; }; then
28415   ac_cv_lib_des_main=yes
28416 else
28417   echo "$as_me: failed program was:" >&5
28418 sed 's/^/| /' conftest.$ac_ext >&5
28419
28420 ac_cv_lib_des_main=no
28421 fi
28422 rm -f conftest.err conftest.$ac_objext \
28423       conftest$ac_exeext conftest.$ac_ext
28424 LIBS=$ac_check_lib_save_LIBS
28425 fi
28426 echo "$as_me:$LINENO: result: $ac_cv_lib_des_main" >&5
28427 echo "${ECHO_T}$ac_cv_lib_des_main" >&6
28428 if test $ac_cv_lib_des_main = yes; then
28429   krb5crypto=des
28430 else
28431   krb5crypto=crypto
28432 fi
28433
28434
28435                         echo "$as_me:$LINENO: checking for main in -lkrb5" >&5
28436 echo $ECHO_N "checking for main in -lkrb5... $ECHO_C" >&6
28437 if test "${ac_cv_lib_krb5_main+set}" = set; then
28438   echo $ECHO_N "(cached) $ECHO_C" >&6
28439 else
28440   ac_check_lib_save_LIBS=$LIBS
28441 LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
28442 cat >conftest.$ac_ext <<_ACEOF
28443 /* confdefs.h.  */
28444 _ACEOF
28445 cat confdefs.h >>conftest.$ac_ext
28446 cat >>conftest.$ac_ext <<_ACEOF
28447 /* end confdefs.h.  */
28448
28449
28450 int
28451 main ()
28452 {
28453 main ();
28454   ;
28455   return 0;
28456 }
28457 _ACEOF
28458 rm -f conftest.$ac_objext conftest$ac_exeext
28459 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28460   (eval $ac_link) 2>conftest.er1
28461   ac_status=$?
28462   grep -v '^ *+' conftest.er1 >conftest.err
28463   rm -f conftest.er1
28464   cat conftest.err >&5
28465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28466   (exit $ac_status); } &&
28467          { ac_try='test -z "$ac_c_werror_flag"
28468                          || test ! -s conftest.err'
28469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28470   (eval $ac_try) 2>&5
28471   ac_status=$?
28472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28473   (exit $ac_status); }; } &&
28474          { ac_try='test -s conftest$ac_exeext'
28475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28476   (eval $ac_try) 2>&5
28477   ac_status=$?
28478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28479   (exit $ac_status); }; }; then
28480   ac_cv_lib_krb5_main=yes
28481 else
28482   echo "$as_me: failed program was:" >&5
28483 sed 's/^/| /' conftest.$ac_ext >&5
28484
28485 ac_cv_lib_krb5_main=no
28486 fi
28487 rm -f conftest.err conftest.$ac_objext \
28488       conftest$ac_exeext conftest.$ac_ext
28489 LIBS=$ac_check_lib_save_LIBS
28490 fi
28491 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_main" >&5
28492 echo "${ECHO_T}$ac_cv_lib_krb5_main" >&6
28493 if test $ac_cv_lib_krb5_main = yes; then
28494   have_krb5=yes
28495                                 KRB5_LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err"
28496 else
28497   have_krb5=no
28498 fi
28499
28500
28501
28502 cat >>confdefs.h <<\_ACEOF
28503 #define HAVE_HEIMDAL_KERBEROS 1
28504 _ACEOF
28505
28506
28507                 else
28508                         have_krb5=no
28509                         { echo "$as_me:$LINENO: WARNING: Unrecognized Kerberos5 Implementation" >&5
28510 echo "$as_me: WARNING: Unrecognized Kerberos5 Implementation" >&2;}
28511                 fi
28512
28513                 if test $have_krb5 = yes ; then
28514                         ol_link_krb5=yes
28515
28516
28517 cat >>confdefs.h <<\_ACEOF
28518 #define HAVE_KRB5 1
28519 _ACEOF
28520
28521
28522                         if test $ol_with_kerberos = k5only ; then
28523                                 ol_with_kerberos=found
28524                         fi
28525
28526                 elif test $ol_with_kerberos != auto ; then
28527                         { { echo "$as_me:$LINENO: error: Required Kerberos 5 support not available" >&5
28528 echo "$as_me: error: Required Kerberos 5 support not available" >&2;}
28529    { (exit 1); exit 1; }; }
28530                 fi
28531
28532         fi
28533 fi
28534
28535 if test $ol_link_krb5 = yes -a \( $ol_with_kerberos = yes -o \
28536         $ol_with_kerberos = auto -o $ol_with_kerberos = k425 \) ; then
28537
28538
28539
28540 for ac_header in kerberosIV/krb.h kerberosIV/des.h
28541 do
28542 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28543 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28544   echo "$as_me:$LINENO: checking for $ac_header" >&5
28545 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28546 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28547   echo $ECHO_N "(cached) $ECHO_C" >&6
28548 fi
28549 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28550 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28551 else
28552   # Is the header compilable?
28553 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28554 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28555 cat >conftest.$ac_ext <<_ACEOF
28556 /* confdefs.h.  */
28557 _ACEOF
28558 cat confdefs.h >>conftest.$ac_ext
28559 cat >>conftest.$ac_ext <<_ACEOF
28560 /* end confdefs.h.  */
28561 $ac_includes_default
28562 #include <$ac_header>
28563 _ACEOF
28564 rm -f conftest.$ac_objext
28565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28566   (eval $ac_compile) 2>conftest.er1
28567   ac_status=$?
28568   grep -v '^ *+' conftest.er1 >conftest.err
28569   rm -f conftest.er1
28570   cat conftest.err >&5
28571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28572   (exit $ac_status); } &&
28573          { ac_try='test -z "$ac_c_werror_flag"
28574                          || test ! -s conftest.err'
28575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28576   (eval $ac_try) 2>&5
28577   ac_status=$?
28578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28579   (exit $ac_status); }; } &&
28580          { ac_try='test -s conftest.$ac_objext'
28581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28582   (eval $ac_try) 2>&5
28583   ac_status=$?
28584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28585   (exit $ac_status); }; }; then
28586   ac_header_compiler=yes
28587 else
28588   echo "$as_me: failed program was:" >&5
28589 sed 's/^/| /' conftest.$ac_ext >&5
28590
28591 ac_header_compiler=no
28592 fi
28593 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28594 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28595 echo "${ECHO_T}$ac_header_compiler" >&6
28596
28597 # Is the header present?
28598 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28599 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28600 cat >conftest.$ac_ext <<_ACEOF
28601 /* confdefs.h.  */
28602 _ACEOF
28603 cat confdefs.h >>conftest.$ac_ext
28604 cat >>conftest.$ac_ext <<_ACEOF
28605 /* end confdefs.h.  */
28606 #include <$ac_header>
28607 _ACEOF
28608 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28609   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28610   ac_status=$?
28611   grep -v '^ *+' conftest.er1 >conftest.err
28612   rm -f conftest.er1
28613   cat conftest.err >&5
28614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28615   (exit $ac_status); } >/dev/null; then
28616   if test -s conftest.err; then
28617     ac_cpp_err=$ac_c_preproc_warn_flag
28618     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28619   else
28620     ac_cpp_err=
28621   fi
28622 else
28623   ac_cpp_err=yes
28624 fi
28625 if test -z "$ac_cpp_err"; then
28626   ac_header_preproc=yes
28627 else
28628   echo "$as_me: failed program was:" >&5
28629 sed 's/^/| /' conftest.$ac_ext >&5
28630
28631   ac_header_preproc=no
28632 fi
28633 rm -f conftest.err conftest.$ac_ext
28634 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28635 echo "${ECHO_T}$ac_header_preproc" >&6
28636
28637 # So?  What about this header?
28638 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28639   yes:no: )
28640     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28641 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28642     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28643 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28644     ac_header_preproc=yes
28645     ;;
28646   no:yes:* )
28647     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28648 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28649     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28650 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28651     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28652 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28653     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28654 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28655     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28656 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28657     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28658 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28659     (
28660       cat <<\_ASBOX
28661 ## ------------------------------------------ ##
28662 ## Report this to the AC_PACKAGE_NAME lists.  ##
28663 ## ------------------------------------------ ##
28664 _ASBOX
28665     ) |
28666       sed "s/^/$as_me: WARNING:     /" >&2
28667     ;;
28668 esac
28669 echo "$as_me:$LINENO: checking for $ac_header" >&5
28670 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28671 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28672   echo $ECHO_N "(cached) $ECHO_C" >&6
28673 else
28674   eval "$as_ac_Header=\$ac_header_preproc"
28675 fi
28676 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28677 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28678
28679 fi
28680 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28681   cat >>confdefs.h <<_ACEOF
28682 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28683 _ACEOF
28684
28685 fi
28686
28687 done
28688
28689
28690         if test $ac_cv_header_kerberosIV_krb_h = yes ; then
28691                 if test $krb5_impl = mit; then
28692                         echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
28693 echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6
28694 if test "${ac_cv_lib_krb4_main+set}" = set; then
28695   echo $ECHO_N "(cached) $ECHO_C" >&6
28696 else
28697   ac_check_lib_save_LIBS=$LIBS
28698 LIBS="-lkrb4 -ldes425 -lkrb5 -l$krb5crypto -lcom_err $LIBS"
28699 cat >conftest.$ac_ext <<_ACEOF
28700 /* confdefs.h.  */
28701 _ACEOF
28702 cat confdefs.h >>conftest.$ac_ext
28703 cat >>conftest.$ac_ext <<_ACEOF
28704 /* end confdefs.h.  */
28705
28706
28707 int
28708 main ()
28709 {
28710 main ();
28711   ;
28712   return 0;
28713 }
28714 _ACEOF
28715 rm -f conftest.$ac_objext conftest$ac_exeext
28716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28717   (eval $ac_link) 2>conftest.er1
28718   ac_status=$?
28719   grep -v '^ *+' conftest.er1 >conftest.err
28720   rm -f conftest.er1
28721   cat conftest.err >&5
28722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28723   (exit $ac_status); } &&
28724          { ac_try='test -z "$ac_c_werror_flag"
28725                          || test ! -s conftest.err'
28726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28727   (eval $ac_try) 2>&5
28728   ac_status=$?
28729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28730   (exit $ac_status); }; } &&
28731          { ac_try='test -s conftest$ac_exeext'
28732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28733   (eval $ac_try) 2>&5
28734   ac_status=$?
28735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28736   (exit $ac_status); }; }; then
28737   ac_cv_lib_krb4_main=yes
28738 else
28739   echo "$as_me: failed program was:" >&5
28740 sed 's/^/| /' conftest.$ac_ext >&5
28741
28742 ac_cv_lib_krb4_main=no
28743 fi
28744 rm -f conftest.err conftest.$ac_objext \
28745       conftest$ac_exeext conftest.$ac_ext
28746 LIBS=$ac_check_lib_save_LIBS
28747 fi
28748 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_main" >&5
28749 echo "${ECHO_T}$ac_cv_lib_krb4_main" >&6
28750 if test $ac_cv_lib_krb4_main = yes; then
28751   have_k425=yes
28752                                 KRB4_LIBS="-lkrb4 -ldes425"
28753 else
28754   have_k425=no
28755 fi
28756
28757
28758                 elif test $krb5_impl = heimdal; then
28759                         echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
28760 echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6
28761 if test "${ac_cv_lib_krb4_main+set}" = set; then
28762   echo $ECHO_N "(cached) $ECHO_C" >&6
28763 else
28764   ac_check_lib_save_LIBS=$LIBS
28765 LIBS="-lkrb4 -lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
28766 cat >conftest.$ac_ext <<_ACEOF
28767 /* confdefs.h.  */
28768 _ACEOF
28769 cat confdefs.h >>conftest.$ac_ext
28770 cat >>conftest.$ac_ext <<_ACEOF
28771 /* end confdefs.h.  */
28772
28773
28774 int
28775 main ()
28776 {
28777 main ();
28778   ;
28779   return 0;
28780 }
28781 _ACEOF
28782 rm -f conftest.$ac_objext conftest$ac_exeext
28783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28784   (eval $ac_link) 2>conftest.er1
28785   ac_status=$?
28786   grep -v '^ *+' conftest.er1 >conftest.err
28787   rm -f conftest.er1
28788   cat conftest.err >&5
28789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28790   (exit $ac_status); } &&
28791          { ac_try='test -z "$ac_c_werror_flag"
28792                          || test ! -s conftest.err'
28793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28794   (eval $ac_try) 2>&5
28795   ac_status=$?
28796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28797   (exit $ac_status); }; } &&
28798          { ac_try='test -s conftest$ac_exeext'
28799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28800   (eval $ac_try) 2>&5
28801   ac_status=$?
28802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28803   (exit $ac_status); }; }; then
28804   ac_cv_lib_krb4_main=yes
28805 else
28806   echo "$as_me: failed program was:" >&5
28807 sed 's/^/| /' conftest.$ac_ext >&5
28808
28809 ac_cv_lib_krb4_main=no
28810 fi
28811 rm -f conftest.err conftest.$ac_objext \
28812       conftest$ac_exeext conftest.$ac_ext
28813 LIBS=$ac_check_lib_save_LIBS
28814 fi
28815 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_main" >&5
28816 echo "${ECHO_T}$ac_cv_lib_krb4_main" >&6
28817 if test $ac_cv_lib_krb4_main = yes; then
28818   have_k425=yes
28819                                 KRB4_LIBS="-lkrb4"
28820 else
28821   have_k425=no
28822 fi
28823
28824
28825                 else
28826                         have_425=no
28827                         { echo "$as_me:$LINENO: WARNING: Unrecongized Kerberos V Implementation" >&5
28828 echo "$as_me: WARNING: Unrecongized Kerberos V Implementation" >&2;}
28829                 fi
28830
28831                 if test $have_k425 = yes ; then
28832                         ol_with_kerberos=found
28833                         ol_link_krb4=yes
28834
28835
28836 cat >>confdefs.h <<\_ACEOF
28837 #define HAVE_KRB425 1
28838 _ACEOF
28839
28840
28841 cat >>confdefs.h <<\_ACEOF
28842 #define HAVE_KRB4 1
28843 _ACEOF
28844
28845
28846                         echo "$as_me:$LINENO: checking for des_debug in Kerberos libraries" >&5
28847 echo $ECHO_N "checking for des_debug in Kerberos libraries... $ECHO_C" >&6
28848 if test "${ol_cv_var_des_debug+set}" = set; then
28849   echo $ECHO_N "(cached) $ECHO_C" >&6
28850 else
28851
28852                                                                 save_LIBS="$LIBS"
28853                                 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
28854                                 cat >conftest.$ac_ext <<_ACEOF
28855 /* confdefs.h.  */
28856 _ACEOF
28857 cat confdefs.h >>conftest.$ac_ext
28858 cat >>conftest.$ac_ext <<_ACEOF
28859 /* end confdefs.h.  */
28860
28861 #include <kerberosIV/krb.h>
28862 #include <kerberosIV/des.h>
28863 extern int des_debug;
28864
28865 int
28866 main ()
28867 {
28868
28869 des_debug = 1;
28870
28871   ;
28872   return 0;
28873 }
28874 _ACEOF
28875 rm -f conftest.$ac_objext conftest$ac_exeext
28876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28877   (eval $ac_link) 2>conftest.er1
28878   ac_status=$?
28879   grep -v '^ *+' conftest.er1 >conftest.err
28880   rm -f conftest.er1
28881   cat conftest.err >&5
28882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28883   (exit $ac_status); } &&
28884          { ac_try='test -z "$ac_c_werror_flag"
28885                          || test ! -s conftest.err'
28886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28887   (eval $ac_try) 2>&5
28888   ac_status=$?
28889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28890   (exit $ac_status); }; } &&
28891          { ac_try='test -s conftest$ac_exeext'
28892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28893   (eval $ac_try) 2>&5
28894   ac_status=$?
28895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28896   (exit $ac_status); }; }; then
28897   ol_cv_var_des_debug=yes
28898 else
28899   echo "$as_me: failed program was:" >&5
28900 sed 's/^/| /' conftest.$ac_ext >&5
28901
28902 ol_cv_var_des_debug=no
28903 fi
28904 rm -f conftest.err conftest.$ac_objext \
28905       conftest$ac_exeext conftest.$ac_ext
28906                                                                 LIBS="$save_LIBS"
28907
28908 fi
28909 echo "$as_me:$LINENO: result: $ol_cv_var_des_debug" >&5
28910 echo "${ECHO_T}$ol_cv_var_des_debug" >&6
28911
28912                         if test $ol_cv_var_des_debug = yes ; then
28913
28914 cat >>confdefs.h <<\_ACEOF
28915 #define HAVE_DES_DEBUG 1
28916 _ACEOF
28917
28918                         fi
28919
28920                         LIBS="$save_LIBS"
28921                 fi
28922         fi
28923 fi
28924
28925 if test $ol_link_krb5 = yes ; then
28926         ol_with_kerberos=found
28927 fi
28928
28929 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
28930         -o $ol_with_kerberos = k4 -o $ol_with_kerberos = kth ; then
28931
28932
28933
28934
28935 for ac_header in krb.h des.h krb-archaeology.h
28936 do
28937 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28938 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28939   echo "$as_me:$LINENO: checking for $ac_header" >&5
28940 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28941 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28942   echo $ECHO_N "(cached) $ECHO_C" >&6
28943 fi
28944 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28945 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28946 else
28947   # Is the header compilable?
28948 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28949 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28950 cat >conftest.$ac_ext <<_ACEOF
28951 /* confdefs.h.  */
28952 _ACEOF
28953 cat confdefs.h >>conftest.$ac_ext
28954 cat >>conftest.$ac_ext <<_ACEOF
28955 /* end confdefs.h.  */
28956 $ac_includes_default
28957 #include <$ac_header>
28958 _ACEOF
28959 rm -f conftest.$ac_objext
28960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28961   (eval $ac_compile) 2>conftest.er1
28962   ac_status=$?
28963   grep -v '^ *+' conftest.er1 >conftest.err
28964   rm -f conftest.er1
28965   cat conftest.err >&5
28966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28967   (exit $ac_status); } &&
28968          { ac_try='test -z "$ac_c_werror_flag"
28969                          || test ! -s conftest.err'
28970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28971   (eval $ac_try) 2>&5
28972   ac_status=$?
28973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28974   (exit $ac_status); }; } &&
28975          { ac_try='test -s conftest.$ac_objext'
28976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28977   (eval $ac_try) 2>&5
28978   ac_status=$?
28979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28980   (exit $ac_status); }; }; then
28981   ac_header_compiler=yes
28982 else
28983   echo "$as_me: failed program was:" >&5
28984 sed 's/^/| /' conftest.$ac_ext >&5
28985
28986 ac_header_compiler=no
28987 fi
28988 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28989 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28990 echo "${ECHO_T}$ac_header_compiler" >&6
28991
28992 # Is the header present?
28993 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28994 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28995 cat >conftest.$ac_ext <<_ACEOF
28996 /* confdefs.h.  */
28997 _ACEOF
28998 cat confdefs.h >>conftest.$ac_ext
28999 cat >>conftest.$ac_ext <<_ACEOF
29000 /* end confdefs.h.  */
29001 #include <$ac_header>
29002 _ACEOF
29003 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29004   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29005   ac_status=$?
29006   grep -v '^ *+' conftest.er1 >conftest.err
29007   rm -f conftest.er1
29008   cat conftest.err >&5
29009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29010   (exit $ac_status); } >/dev/null; then
29011   if test -s conftest.err; then
29012     ac_cpp_err=$ac_c_preproc_warn_flag
29013     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29014   else
29015     ac_cpp_err=
29016   fi
29017 else
29018   ac_cpp_err=yes
29019 fi
29020 if test -z "$ac_cpp_err"; then
29021   ac_header_preproc=yes
29022 else
29023   echo "$as_me: failed program was:" >&5
29024 sed 's/^/| /' conftest.$ac_ext >&5
29025
29026   ac_header_preproc=no
29027 fi
29028 rm -f conftest.err conftest.$ac_ext
29029 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29030 echo "${ECHO_T}$ac_header_preproc" >&6
29031
29032 # So?  What about this header?
29033 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29034   yes:no: )
29035     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29036 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29037     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29038 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29039     ac_header_preproc=yes
29040     ;;
29041   no:yes:* )
29042     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29043 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29044     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29045 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29046     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29047 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29048     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29049 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29050     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29051 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29052     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29053 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29054     (
29055       cat <<\_ASBOX
29056 ## ------------------------------------------ ##
29057 ## Report this to the AC_PACKAGE_NAME lists.  ##
29058 ## ------------------------------------------ ##
29059 _ASBOX
29060     ) |
29061       sed "s/^/$as_me: WARNING:     /" >&2
29062     ;;
29063 esac
29064 echo "$as_me:$LINENO: checking for $ac_header" >&5
29065 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29066 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29067   echo $ECHO_N "(cached) $ECHO_C" >&6
29068 else
29069   eval "$as_ac_Header=\$ac_header_preproc"
29070 fi
29071 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29072 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29073
29074 fi
29075 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29076   cat >>confdefs.h <<_ACEOF
29077 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29078 _ACEOF
29079
29080 fi
29081
29082 done
29083
29084
29085         if test $ac_cv_header_krb_h = yes ; then
29086                 echo "$as_me:$LINENO: checking for main in -lkrb" >&5
29087 echo $ECHO_N "checking for main in -lkrb... $ECHO_C" >&6
29088 if test "${ac_cv_lib_krb_main+set}" = set; then
29089   echo $ECHO_N "(cached) $ECHO_C" >&6
29090 else
29091   ac_check_lib_save_LIBS=$LIBS
29092 LIBS="-lkrb -ldes $LIBS"
29093 cat >conftest.$ac_ext <<_ACEOF
29094 /* confdefs.h.  */
29095 _ACEOF
29096 cat confdefs.h >>conftest.$ac_ext
29097 cat >>conftest.$ac_ext <<_ACEOF
29098 /* end confdefs.h.  */
29099
29100
29101 int
29102 main ()
29103 {
29104 main ();
29105   ;
29106   return 0;
29107 }
29108 _ACEOF
29109 rm -f conftest.$ac_objext conftest$ac_exeext
29110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29111   (eval $ac_link) 2>conftest.er1
29112   ac_status=$?
29113   grep -v '^ *+' conftest.er1 >conftest.err
29114   rm -f conftest.er1
29115   cat conftest.err >&5
29116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29117   (exit $ac_status); } &&
29118          { ac_try='test -z "$ac_c_werror_flag"
29119                          || test ! -s conftest.err'
29120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29121   (eval $ac_try) 2>&5
29122   ac_status=$?
29123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29124   (exit $ac_status); }; } &&
29125          { ac_try='test -s conftest$ac_exeext'
29126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29127   (eval $ac_try) 2>&5
29128   ac_status=$?
29129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29130   (exit $ac_status); }; }; then
29131   ac_cv_lib_krb_main=yes
29132 else
29133   echo "$as_me: failed program was:" >&5
29134 sed 's/^/| /' conftest.$ac_ext >&5
29135
29136 ac_cv_lib_krb_main=no
29137 fi
29138 rm -f conftest.err conftest.$ac_objext \
29139       conftest$ac_exeext conftest.$ac_ext
29140 LIBS=$ac_check_lib_save_LIBS
29141 fi
29142 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_main" >&5
29143 echo "${ECHO_T}$ac_cv_lib_krb_main" >&6
29144 if test $ac_cv_lib_krb_main = yes; then
29145   have_k4=yes
29146 else
29147   have_k4=no
29148 fi
29149
29150
29151                 if test $have_k4 = yes ; then
29152                         ol_with_kerberos=found
29153                         ol_link_krb4=yes
29154
29155
29156 cat >>confdefs.h <<\_ACEOF
29157 #define HAVE_KRB4 1
29158 _ACEOF
29159
29160
29161                         KRB4_LIBS="-lkrb -ldes"
29162
29163                         if test $ac_cv_header_krb_archaeology_h = yes ; then
29164
29165 cat >>confdefs.h <<\_ACEOF
29166 #define HAVE_KTH_KERBEROS 1
29167 _ACEOF
29168
29169                         fi
29170                 fi
29171         fi
29172 fi
29173
29174 if test $ol_link_krb4 = yes -a $ol_enable_kbind != no ; then
29175         ol_link_kbind=yes
29176
29177 elif test $ol_enable_kbind = yes ; then
29178         { { echo "$as_me:$LINENO: error: Kerberos IV detection failed" >&5
29179 echo "$as_me: error: Kerberos IV detection failed" >&2;}
29180    { (exit 1); exit 1; }; }
29181 fi
29182
29183 if test $ol_link_krb4 = yes -o $ol_link_krb5 = yes ; then
29184
29185 cat >>confdefs.h <<\_ACEOF
29186 #define HAVE_KERBEROS 1
29187 _ACEOF
29188
29189
29190 elif test $ol_with_kerberos != auto -a $ol_with_kerberos != no ; then
29191         { { echo "$as_me:$LINENO: error: Kerberos detection failed" >&5
29192 echo "$as_me: error: Kerberos detection failed" >&2;}
29193    { (exit 1); exit 1; }; }
29194 fi
29195
29196
29197 ol_link_tls=no
29198 if test $ol_with_tls != no ; then
29199
29200
29201 for ac_header in openssl/ssl.h ssl.h
29202 do
29203 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29204 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29205   echo "$as_me:$LINENO: checking for $ac_header" >&5
29206 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29207 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29208   echo $ECHO_N "(cached) $ECHO_C" >&6
29209 fi
29210 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29211 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29212 else
29213   # Is the header compilable?
29214 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29215 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29216 cat >conftest.$ac_ext <<_ACEOF
29217 /* confdefs.h.  */
29218 _ACEOF
29219 cat confdefs.h >>conftest.$ac_ext
29220 cat >>conftest.$ac_ext <<_ACEOF
29221 /* end confdefs.h.  */
29222 $ac_includes_default
29223 #include <$ac_header>
29224 _ACEOF
29225 rm -f conftest.$ac_objext
29226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29227   (eval $ac_compile) 2>conftest.er1
29228   ac_status=$?
29229   grep -v '^ *+' conftest.er1 >conftest.err
29230   rm -f conftest.er1
29231   cat conftest.err >&5
29232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29233   (exit $ac_status); } &&
29234          { ac_try='test -z "$ac_c_werror_flag"
29235                          || test ! -s conftest.err'
29236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29237   (eval $ac_try) 2>&5
29238   ac_status=$?
29239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29240   (exit $ac_status); }; } &&
29241          { ac_try='test -s conftest.$ac_objext'
29242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29243   (eval $ac_try) 2>&5
29244   ac_status=$?
29245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29246   (exit $ac_status); }; }; then
29247   ac_header_compiler=yes
29248 else
29249   echo "$as_me: failed program was:" >&5
29250 sed 's/^/| /' conftest.$ac_ext >&5
29251
29252 ac_header_compiler=no
29253 fi
29254 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29255 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29256 echo "${ECHO_T}$ac_header_compiler" >&6
29257
29258 # Is the header present?
29259 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29260 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29261 cat >conftest.$ac_ext <<_ACEOF
29262 /* confdefs.h.  */
29263 _ACEOF
29264 cat confdefs.h >>conftest.$ac_ext
29265 cat >>conftest.$ac_ext <<_ACEOF
29266 /* end confdefs.h.  */
29267 #include <$ac_header>
29268 _ACEOF
29269 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29270   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29271   ac_status=$?
29272   grep -v '^ *+' conftest.er1 >conftest.err
29273   rm -f conftest.er1
29274   cat conftest.err >&5
29275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29276   (exit $ac_status); } >/dev/null; then
29277   if test -s conftest.err; then
29278     ac_cpp_err=$ac_c_preproc_warn_flag
29279     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29280   else
29281     ac_cpp_err=
29282   fi
29283 else
29284   ac_cpp_err=yes
29285 fi
29286 if test -z "$ac_cpp_err"; then
29287   ac_header_preproc=yes
29288 else
29289   echo "$as_me: failed program was:" >&5
29290 sed 's/^/| /' conftest.$ac_ext >&5
29291
29292   ac_header_preproc=no
29293 fi
29294 rm -f conftest.err conftest.$ac_ext
29295 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29296 echo "${ECHO_T}$ac_header_preproc" >&6
29297
29298 # So?  What about this header?
29299 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29300   yes:no: )
29301     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29302 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29303     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29304 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29305     ac_header_preproc=yes
29306     ;;
29307   no:yes:* )
29308     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29309 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29310     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29311 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29312     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29313 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29314     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29315 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29316     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29317 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29318     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29319 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29320     (
29321       cat <<\_ASBOX
29322 ## ------------------------------------------ ##
29323 ## Report this to the AC_PACKAGE_NAME lists.  ##
29324 ## ------------------------------------------ ##
29325 _ASBOX
29326     ) |
29327       sed "s/^/$as_me: WARNING:     /" >&2
29328     ;;
29329 esac
29330 echo "$as_me:$LINENO: checking for $ac_header" >&5
29331 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29332 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29333   echo $ECHO_N "(cached) $ECHO_C" >&6
29334 else
29335   eval "$as_ac_Header=\$ac_header_preproc"
29336 fi
29337 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29338 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29339
29340 fi
29341 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29342   cat >>confdefs.h <<_ACEOF
29343 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29344 _ACEOF
29345
29346 fi
29347
29348 done
29349
29350
29351         if test $ac_cv_header_openssl_ssl_h = yes \
29352                 -o $ac_cv_header_ssl_h = yes ; then
29353                 echo "$as_me:$LINENO: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
29354 echo $ECHO_N "checking for SSLeay_add_ssl_algorithms in -lssl... $ECHO_C" >&6
29355 if test "${ac_cv_lib_ssl_SSLeay_add_ssl_algorithms+set}" = set; then
29356   echo $ECHO_N "(cached) $ECHO_C" >&6
29357 else
29358   ac_check_lib_save_LIBS=$LIBS
29359 LIBS="-lssl -lcrypto $LIBS"
29360 cat >conftest.$ac_ext <<_ACEOF
29361 /* confdefs.h.  */
29362 _ACEOF
29363 cat confdefs.h >>conftest.$ac_ext
29364 cat >>conftest.$ac_ext <<_ACEOF
29365 /* end confdefs.h.  */
29366
29367 /* Override any gcc2 internal prototype to avoid an error.  */
29368 #ifdef __cplusplus
29369 extern "C"
29370 #endif
29371 /* We use char because int might match the return type of a gcc2
29372    builtin and then its argument prototype would still apply.  */
29373 char SSLeay_add_ssl_algorithms ();
29374 int
29375 main ()
29376 {
29377 SSLeay_add_ssl_algorithms ();
29378   ;
29379   return 0;
29380 }
29381 _ACEOF
29382 rm -f conftest.$ac_objext conftest$ac_exeext
29383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29384   (eval $ac_link) 2>conftest.er1
29385   ac_status=$?
29386   grep -v '^ *+' conftest.er1 >conftest.err
29387   rm -f conftest.er1
29388   cat conftest.err >&5
29389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29390   (exit $ac_status); } &&
29391          { ac_try='test -z "$ac_c_werror_flag"
29392                          || test ! -s conftest.err'
29393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29394   (eval $ac_try) 2>&5
29395   ac_status=$?
29396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29397   (exit $ac_status); }; } &&
29398          { ac_try='test -s conftest$ac_exeext'
29399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29400   (eval $ac_try) 2>&5
29401   ac_status=$?
29402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29403   (exit $ac_status); }; }; then
29404   ac_cv_lib_ssl_SSLeay_add_ssl_algorithms=yes
29405 else
29406   echo "$as_me: failed program was:" >&5
29407 sed 's/^/| /' conftest.$ac_ext >&5
29408
29409 ac_cv_lib_ssl_SSLeay_add_ssl_algorithms=no
29410 fi
29411 rm -f conftest.err conftest.$ac_objext \
29412       conftest$ac_exeext conftest.$ac_ext
29413 LIBS=$ac_check_lib_save_LIBS
29414 fi
29415 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSLeay_add_ssl_algorithms" >&5
29416 echo "${ECHO_T}$ac_cv_lib_ssl_SSLeay_add_ssl_algorithms" >&6
29417 if test $ac_cv_lib_ssl_SSLeay_add_ssl_algorithms = yes; then
29418   have_ssleay=yes
29419                         need_rsaref=no
29420 else
29421   have_ssleay=no
29422 fi
29423
29424
29425                 if test $have_ssleay = no ; then
29426                         echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
29427 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
29428 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
29429   echo $ECHO_N "(cached) $ECHO_C" >&6
29430 else
29431   ac_check_lib_save_LIBS=$LIBS
29432 LIBS="-lssl -lcrypto $LIBS"
29433 cat >conftest.$ac_ext <<_ACEOF
29434 /* confdefs.h.  */
29435 _ACEOF
29436 cat confdefs.h >>conftest.$ac_ext
29437 cat >>conftest.$ac_ext <<_ACEOF
29438 /* end confdefs.h.  */
29439
29440 /* Override any gcc2 internal prototype to avoid an error.  */
29441 #ifdef __cplusplus
29442 extern "C"
29443 #endif
29444 /* We use char because int might match the return type of a gcc2
29445    builtin and then its argument prototype would still apply.  */
29446 char SSL_library_init ();
29447 int
29448 main ()
29449 {
29450 SSL_library_init ();
29451   ;
29452   return 0;
29453 }
29454 _ACEOF
29455 rm -f conftest.$ac_objext conftest$ac_exeext
29456 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29457   (eval $ac_link) 2>conftest.er1
29458   ac_status=$?
29459   grep -v '^ *+' conftest.er1 >conftest.err
29460   rm -f conftest.er1
29461   cat conftest.err >&5
29462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29463   (exit $ac_status); } &&
29464          { ac_try='test -z "$ac_c_werror_flag"
29465                          || test ! -s conftest.err'
29466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29467   (eval $ac_try) 2>&5
29468   ac_status=$?
29469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29470   (exit $ac_status); }; } &&
29471          { ac_try='test -s conftest$ac_exeext'
29472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29473   (eval $ac_try) 2>&5
29474   ac_status=$?
29475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29476   (exit $ac_status); }; }; then
29477   ac_cv_lib_ssl_SSL_library_init=yes
29478 else
29479   echo "$as_me: failed program was:" >&5
29480 sed 's/^/| /' conftest.$ac_ext >&5
29481
29482 ac_cv_lib_ssl_SSL_library_init=no
29483 fi
29484 rm -f conftest.err conftest.$ac_objext \
29485       conftest$ac_exeext conftest.$ac_ext
29486 LIBS=$ac_check_lib_save_LIBS
29487 fi
29488 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
29489 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
29490 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
29491   have_ssleay=yes
29492                                 need_rsaref=no
29493 else
29494   have_ssleay=no
29495 fi
29496
29497                 fi
29498
29499                 if test $have_ssleay = no ; then
29500                         echo "$as_me:$LINENO: checking for ssl3_accept in -lssl" >&5
29501 echo $ECHO_N "checking for ssl3_accept in -lssl... $ECHO_C" >&6
29502 if test "${ac_cv_lib_ssl_ssl3_accept+set}" = set; then
29503   echo $ECHO_N "(cached) $ECHO_C" >&6
29504 else
29505   ac_check_lib_save_LIBS=$LIBS
29506 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
29507 cat >conftest.$ac_ext <<_ACEOF
29508 /* confdefs.h.  */
29509 _ACEOF
29510 cat confdefs.h >>conftest.$ac_ext
29511 cat >>conftest.$ac_ext <<_ACEOF
29512 /* end confdefs.h.  */
29513
29514 /* Override any gcc2 internal prototype to avoid an error.  */
29515 #ifdef __cplusplus
29516 extern "C"
29517 #endif
29518 /* We use char because int might match the return type of a gcc2
29519    builtin and then its argument prototype would still apply.  */
29520 char ssl3_accept ();
29521 int
29522 main ()
29523 {
29524 ssl3_accept ();
29525   ;
29526   return 0;
29527 }
29528 _ACEOF
29529 rm -f conftest.$ac_objext conftest$ac_exeext
29530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29531   (eval $ac_link) 2>conftest.er1
29532   ac_status=$?
29533   grep -v '^ *+' conftest.er1 >conftest.err
29534   rm -f conftest.er1
29535   cat conftest.err >&5
29536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29537   (exit $ac_status); } &&
29538          { ac_try='test -z "$ac_c_werror_flag"
29539                          || test ! -s conftest.err'
29540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29541   (eval $ac_try) 2>&5
29542   ac_status=$?
29543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29544   (exit $ac_status); }; } &&
29545          { ac_try='test -s conftest$ac_exeext'
29546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29547   (eval $ac_try) 2>&5
29548   ac_status=$?
29549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29550   (exit $ac_status); }; }; then
29551   ac_cv_lib_ssl_ssl3_accept=yes
29552 else
29553   echo "$as_me: failed program was:" >&5
29554 sed 's/^/| /' conftest.$ac_ext >&5
29555
29556 ac_cv_lib_ssl_ssl3_accept=no
29557 fi
29558 rm -f conftest.err conftest.$ac_objext \
29559       conftest$ac_exeext conftest.$ac_ext
29560 LIBS=$ac_check_lib_save_LIBS
29561 fi
29562 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl3_accept" >&5
29563 echo "${ECHO_T}$ac_cv_lib_ssl_ssl3_accept" >&6
29564 if test $ac_cv_lib_ssl_ssl3_accept = yes; then
29565   have_ssleay=yes
29566                                 need_rsaref=yes
29567 else
29568   have_ssleay=no
29569 fi
29570
29571                 fi
29572
29573                 if test $have_ssleay = yes ; then
29574                         ol_with_tls=found
29575                         ol_link_tls=yes
29576
29577
29578 cat >>confdefs.h <<\_ACEOF
29579 #define HAVE_SSLEAY 1
29580 _ACEOF
29581
29582
29583                         if test $need_rsaref = yes; then
29584
29585 cat >>confdefs.h <<\_ACEOF
29586 #define HAVE_RSAREF 1
29587 _ACEOF
29588
29589
29590                                 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
29591                         else
29592                                 TLS_LIBS="-lssl -lcrypto"
29593                         fi
29594                 fi
29595                 echo "$as_me:$LINENO: checking OpenSSL library version (CRL checking capability)" >&5
29596 echo $ECHO_N "checking OpenSSL library version (CRL checking capability)... $ECHO_C" >&6
29597 if test "${ol_cv_ssl_crl_compat+set}" = set; then
29598   echo $ECHO_N "(cached) $ECHO_C" >&6
29599 else
29600
29601         cat >conftest.$ac_ext <<_ACEOF
29602 /* confdefs.h.  */
29603 _ACEOF
29604 cat confdefs.h >>conftest.$ac_ext
29605 cat >>conftest.$ac_ext <<_ACEOF
29606 /* end confdefs.h.  */
29607
29608 #ifdef HAVE_OPENSSL_SSL_H
29609 #include <openssl/ssl.h>
29610 #else
29611 #include <ssl.h>
29612 #endif
29613
29614 /* Require 0.9.7d+ */
29615 #if OPENSSL_VERSION_NUMBER >= 0x0090704fL
29616         char *__ssl_compat = "0.9.7d";
29617 #endif
29618
29619 _ACEOF
29620 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29621   $EGREP "__ssl_compat" >/dev/null 2>&1; then
29622   ol_cv_ssl_crl_compat=yes
29623 else
29624   ol_cv_ssl_crl_compat=no
29625 fi
29626 rm -f conftest*
29627
29628 fi
29629 echo "$as_me:$LINENO: result: $ol_cv_ssl_crl_compat" >&5
29630 echo "${ECHO_T}$ol_cv_ssl_crl_compat" >&6
29631
29632                 if test $ol_cv_ssl_crl_compat = no ; then
29633                         ol_link_ssl=no
29634                 else
29635
29636 cat >>confdefs.h <<\_ACEOF
29637 #define HAVE_OPENSSL_CRL 1
29638 _ACEOF
29639
29640                 fi
29641         fi
29642
29643 else
29644         { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
29645 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
29646 fi
29647
29648 WITH_TLS=no
29649 if test $ol_link_tls = yes ; then
29650
29651 cat >>confdefs.h <<\_ACEOF
29652 #define HAVE_TLS 1
29653 _ACEOF
29654
29655         WITH_TLS=yes
29656
29657 elif test $ol_with_tls = auto ; then
29658         { echo "$as_me:$LINENO: WARNING: Could not locate TLS/SSL package" >&5
29659 echo "$as_me: WARNING: Could not locate TLS/SSL package" >&2;}
29660         { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
29661 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
29662
29663 elif test $ol_with_tls != no ; then
29664         { { echo "$as_me:$LINENO: error: Could not locate TLS/SSL package" >&5
29665 echo "$as_me: error: Could not locate TLS/SSL package" >&2;}
29666    { (exit 1); exit 1; }; }
29667 fi
29668
29669 if test $ol_enable_lmpasswd != no; then
29670         if test $ol_link_tls != yes ; then
29671                 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
29672 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
29673    { (exit 1); exit 1; }; }
29674         fi
29675
29676
29677 cat >>confdefs.h <<\_ACEOF
29678 #define SLAPD_LMHASH 1
29679 _ACEOF
29680
29681 fi
29682
29683 ol_link_threads=no
29684
29685 if test $ol_with_threads = auto -o $ol_with_threads = yes \
29686         -o $ol_with_threads = nt ; then
29687
29688
29689         echo "$as_me:$LINENO: checking for _beginthread" >&5
29690 echo $ECHO_N "checking for _beginthread... $ECHO_C" >&6
29691 if test "${ac_cv_func__beginthread+set}" = set; then
29692   echo $ECHO_N "(cached) $ECHO_C" >&6
29693 else
29694   cat >conftest.$ac_ext <<_ACEOF
29695 /* confdefs.h.  */
29696 _ACEOF
29697 cat confdefs.h >>conftest.$ac_ext
29698 cat >>conftest.$ac_ext <<_ACEOF
29699 /* end confdefs.h.  */
29700 /* Define _beginthread to an innocuous variant, in case <limits.h> declares _beginthread.
29701    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29702 #define _beginthread innocuous__beginthread
29703
29704 /* System header to define __stub macros and hopefully few prototypes,
29705     which can conflict with char _beginthread (); below.
29706     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29707     <limits.h> exists even on freestanding compilers.  */
29708
29709 #ifdef __STDC__
29710 # include <limits.h>
29711 #else
29712 # include <assert.h>
29713 #endif
29714
29715 #undef _beginthread
29716
29717 /* Override any gcc2 internal prototype to avoid an error.  */
29718 #ifdef __cplusplus
29719 extern "C"
29720 {
29721 #endif
29722 /* We use char because int might match the return type of a gcc2
29723    builtin and then its argument prototype would still apply.  */
29724 char _beginthread ();
29725 /* The GNU C library defines this for functions which it implements
29726     to always fail with ENOSYS.  Some functions are actually named
29727     something starting with __ and the normal name is an alias.  */
29728 #if defined (__stub__beginthread) || defined (__stub____beginthread)
29729 choke me
29730 #else
29731 char (*f) () = _beginthread;
29732 #endif
29733 #ifdef __cplusplus
29734 }
29735 #endif
29736
29737 int
29738 main ()
29739 {
29740 return f != _beginthread;
29741   ;
29742   return 0;
29743 }
29744 _ACEOF
29745 rm -f conftest.$ac_objext conftest$ac_exeext
29746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29747   (eval $ac_link) 2>conftest.er1
29748   ac_status=$?
29749   grep -v '^ *+' conftest.er1 >conftest.err
29750   rm -f conftest.er1
29751   cat conftest.err >&5
29752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29753   (exit $ac_status); } &&
29754          { ac_try='test -z "$ac_c_werror_flag"
29755                          || test ! -s conftest.err'
29756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29757   (eval $ac_try) 2>&5
29758   ac_status=$?
29759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29760   (exit $ac_status); }; } &&
29761          { ac_try='test -s conftest$ac_exeext'
29762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29763   (eval $ac_try) 2>&5
29764   ac_status=$?
29765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29766   (exit $ac_status); }; }; then
29767   ac_cv_func__beginthread=yes
29768 else
29769   echo "$as_me: failed program was:" >&5
29770 sed 's/^/| /' conftest.$ac_ext >&5
29771
29772 ac_cv_func__beginthread=no
29773 fi
29774 rm -f conftest.err conftest.$ac_objext \
29775       conftest$ac_exeext conftest.$ac_ext
29776 fi
29777 echo "$as_me:$LINENO: result: $ac_cv_func__beginthread" >&5
29778 echo "${ECHO_T}$ac_cv_func__beginthread" >&6
29779
29780
29781         if test $ac_cv_func__beginthread = yes ; then
29782
29783 cat >>confdefs.h <<\_ACEOF
29784 #define HAVE_NT_THREADS 1
29785 _ACEOF
29786
29787                 ol_cv_nt_threads=yes
29788         fi
29789
29790
29791         if test "$ol_cv_nt_threads" = yes ; then
29792                 ol_link_threads=nt
29793                 ol_with_threads=found
29794                 ol_with_yielding_select=yes
29795
29796
29797 cat >>confdefs.h <<\_ACEOF
29798 #define HAVE_NT_SERVICE_MANAGER 1
29799 _ACEOF
29800
29801
29802 cat >>confdefs.h <<\_ACEOF
29803 #define HAVE_NT_EVENT_LOG 1
29804 _ACEOF
29805
29806         fi
29807
29808         if test $ol_with_threads = nt ; then
29809                 { { echo "$as_me:$LINENO: error: could not locate NT Threads" >&5
29810 echo "$as_me: error: could not locate NT Threads" >&2;}
29811    { (exit 1); exit 1; }; }
29812         fi
29813 fi
29814
29815 if test $ol_with_threads = auto -o $ol_with_threads = yes \
29816         -o $ol_with_threads = posix ; then
29817
29818
29819 for ac_header in pthread.h
29820 do
29821 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29822 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29823   echo "$as_me:$LINENO: checking for $ac_header" >&5
29824 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29825 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29826   echo $ECHO_N "(cached) $ECHO_C" >&6
29827 fi
29828 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29829 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29830 else
29831   # Is the header compilable?
29832 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29833 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29834 cat >conftest.$ac_ext <<_ACEOF
29835 /* confdefs.h.  */
29836 _ACEOF
29837 cat confdefs.h >>conftest.$ac_ext
29838 cat >>conftest.$ac_ext <<_ACEOF
29839 /* end confdefs.h.  */
29840 $ac_includes_default
29841 #include <$ac_header>
29842 _ACEOF
29843 rm -f conftest.$ac_objext
29844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29845   (eval $ac_compile) 2>conftest.er1
29846   ac_status=$?
29847   grep -v '^ *+' conftest.er1 >conftest.err
29848   rm -f conftest.er1
29849   cat conftest.err >&5
29850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29851   (exit $ac_status); } &&
29852          { ac_try='test -z "$ac_c_werror_flag"
29853                          || test ! -s conftest.err'
29854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29855   (eval $ac_try) 2>&5
29856   ac_status=$?
29857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29858   (exit $ac_status); }; } &&
29859          { ac_try='test -s conftest.$ac_objext'
29860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29861   (eval $ac_try) 2>&5
29862   ac_status=$?
29863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29864   (exit $ac_status); }; }; then
29865   ac_header_compiler=yes
29866 else
29867   echo "$as_me: failed program was:" >&5
29868 sed 's/^/| /' conftest.$ac_ext >&5
29869
29870 ac_header_compiler=no
29871 fi
29872 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29873 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29874 echo "${ECHO_T}$ac_header_compiler" >&6
29875
29876 # Is the header present?
29877 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29878 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29879 cat >conftest.$ac_ext <<_ACEOF
29880 /* confdefs.h.  */
29881 _ACEOF
29882 cat confdefs.h >>conftest.$ac_ext
29883 cat >>conftest.$ac_ext <<_ACEOF
29884 /* end confdefs.h.  */
29885 #include <$ac_header>
29886 _ACEOF
29887 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29888   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29889   ac_status=$?
29890   grep -v '^ *+' conftest.er1 >conftest.err
29891   rm -f conftest.er1
29892   cat conftest.err >&5
29893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29894   (exit $ac_status); } >/dev/null; then
29895   if test -s conftest.err; then
29896     ac_cpp_err=$ac_c_preproc_warn_flag
29897     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29898   else
29899     ac_cpp_err=
29900   fi
29901 else
29902   ac_cpp_err=yes
29903 fi
29904 if test -z "$ac_cpp_err"; then
29905   ac_header_preproc=yes
29906 else
29907   echo "$as_me: failed program was:" >&5
29908 sed 's/^/| /' conftest.$ac_ext >&5
29909
29910   ac_header_preproc=no
29911 fi
29912 rm -f conftest.err conftest.$ac_ext
29913 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29914 echo "${ECHO_T}$ac_header_preproc" >&6
29915
29916 # So?  What about this header?
29917 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29918   yes:no: )
29919     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29920 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29921     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29922 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29923     ac_header_preproc=yes
29924     ;;
29925   no:yes:* )
29926     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29927 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29928     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29929 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29930     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29931 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29932     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29933 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29934     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29935 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29936     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29937 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29938     (
29939       cat <<\_ASBOX
29940 ## ------------------------------------------ ##
29941 ## Report this to the AC_PACKAGE_NAME lists.  ##
29942 ## ------------------------------------------ ##
29943 _ASBOX
29944     ) |
29945       sed "s/^/$as_me: WARNING:     /" >&2
29946     ;;
29947 esac
29948 echo "$as_me:$LINENO: checking for $ac_header" >&5
29949 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29950 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29951   echo $ECHO_N "(cached) $ECHO_C" >&6
29952 else
29953   eval "$as_ac_Header=\$ac_header_preproc"
29954 fi
29955 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29956 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29957
29958 fi
29959 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29960   cat >>confdefs.h <<_ACEOF
29961 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29962 _ACEOF
29963
29964 fi
29965
29966 done
29967
29968
29969         if test $ac_cv_header_pthread_h = yes ; then
29970                 echo "$as_me:$LINENO: checking POSIX thread version" >&5
29971 echo $ECHO_N "checking POSIX thread version... $ECHO_C" >&6
29972 if test "${ol_cv_pthread_version+set}" = set; then
29973   echo $ECHO_N "(cached) $ECHO_C" >&6
29974 else
29975
29976         cat >conftest.$ac_ext <<_ACEOF
29977 /* confdefs.h.  */
29978 _ACEOF
29979 cat confdefs.h >>conftest.$ac_ext
29980 cat >>conftest.$ac_ext <<_ACEOF
29981 /* end confdefs.h.  */
29982
29983 #               include <pthread.h>
29984
29985 int
29986 main ()
29987 {
29988
29989                 int i = PTHREAD_CREATE_JOINABLE;
29990
29991   ;
29992   return 0;
29993 }
29994 _ACEOF
29995 rm -f conftest.$ac_objext
29996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29997   (eval $ac_compile) 2>conftest.er1
29998   ac_status=$?
29999   grep -v '^ *+' conftest.er1 >conftest.err
30000   rm -f conftest.er1
30001   cat conftest.err >&5
30002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30003   (exit $ac_status); } &&
30004          { ac_try='test -z "$ac_c_werror_flag"
30005                          || test ! -s conftest.err'
30006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30007   (eval $ac_try) 2>&5
30008   ac_status=$?
30009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30010   (exit $ac_status); }; } &&
30011          { ac_try='test -s conftest.$ac_objext'
30012   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30013   (eval $ac_try) 2>&5
30014   ac_status=$?
30015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30016   (exit $ac_status); }; }; then
30017
30018         cat >conftest.$ac_ext <<_ACEOF
30019 /* confdefs.h.  */
30020 _ACEOF
30021 cat confdefs.h >>conftest.$ac_ext
30022 cat >>conftest.$ac_ext <<_ACEOF
30023 /* end confdefs.h.  */
30024 #include <pthread.h>
30025
30026 _ACEOF
30027 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30028   $EGREP "pthread_detach" >/dev/null 2>&1; then
30029   ol_cv_pthread_version=10
30030 else
30031   ol_cv_pthread_version=8
30032 fi
30033 rm -f conftest*
30034
30035 else
30036   echo "$as_me: failed program was:" >&5
30037 sed 's/^/| /' conftest.$ac_ext >&5
30038
30039
30040         cat >conftest.$ac_ext <<_ACEOF
30041 /* confdefs.h.  */
30042 _ACEOF
30043 cat confdefs.h >>conftest.$ac_ext
30044 cat >>conftest.$ac_ext <<_ACEOF
30045 /* end confdefs.h.  */
30046
30047 #               include <pthread.h>
30048 #               ifdef PTHREAD_CREATE_UNDETACHED
30049                 draft7
30050 #               endif
30051
30052 _ACEOF
30053 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30054   $EGREP "draft7" >/dev/null 2>&1; then
30055   ol_cv_pthread_version=7
30056 else
30057
30058         cat >conftest.$ac_ext <<_ACEOF
30059 /* confdefs.h.  */
30060 _ACEOF
30061 cat confdefs.h >>conftest.$ac_ext
30062 cat >>conftest.$ac_ext <<_ACEOF
30063 /* end confdefs.h.  */
30064 #include <pthread.h>
30065
30066 _ACEOF
30067 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30068   $EGREP "pthread_attr_init" >/dev/null 2>&1; then
30069   ol_cv_pthread_version=6
30070 else
30071
30072         cat >conftest.$ac_ext <<_ACEOF
30073 /* confdefs.h.  */
30074 _ACEOF
30075 cat confdefs.h >>conftest.$ac_ext
30076 cat >>conftest.$ac_ext <<_ACEOF
30077 /* end confdefs.h.  */
30078
30079 #               include <pthread.h>
30080 #ifdef          PTHREAD_MUTEX_INITIALIZER
30081                 draft5
30082 #endif
30083
30084 _ACEOF
30085 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30086   $EGREP "draft5" >/dev/null 2>&1; then
30087   ol_cv_pthread_version=5
30088 else
30089   ol_cv_pthread_version=4
30090 fi
30091 rm -f conftest*
30092
30093 fi
30094 rm -f conftest*
30095
30096 fi
30097 rm -f conftest*
30098
30099 fi
30100 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30101
30102 fi
30103 echo "$as_me:$LINENO: result: $ol_cv_pthread_version" >&5
30104 echo "${ECHO_T}$ol_cv_pthread_version" >&6
30105
30106
30107                 if test $ol_cv_pthread_version != 0 ; then
30108
30109 cat >>confdefs.h <<_ACEOF
30110 #define HAVE_PTHREADS $ol_cv_pthread_version
30111 _ACEOF
30112
30113                 else
30114                         { { echo "$as_me:$LINENO: error: unknown pthread version" >&5
30115 echo "$as_me: error: unknown pthread version" >&2;}
30116    { (exit 1); exit 1; }; }
30117                 fi
30118
30119                 # consider threads found
30120                 ol_with_threads=found
30121
30122
30123         echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
30124 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
30125 if test "${ol_cv_header_linux_threads+set}" = set; then
30126   echo $ECHO_N "(cached) $ECHO_C" >&6
30127 else
30128   cat >conftest.$ac_ext <<_ACEOF
30129 /* confdefs.h.  */
30130 _ACEOF
30131 cat confdefs.h >>conftest.$ac_ext
30132 cat >>conftest.$ac_ext <<_ACEOF
30133 /* end confdefs.h.  */
30134 #include <pthread.h>
30135 _ACEOF
30136 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30137   $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
30138   ol_cv_header_linux_threads=yes
30139 else
30140   ol_cv_header_linux_threads=no
30141 fi
30142 rm -f conftest*
30143
30144
30145 fi
30146 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
30147 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
30148         if test $ol_cv_header_linux_threads = yes; then
30149
30150 cat >>confdefs.h <<\_ACEOF
30151 #define HAVE_LINUX_THREADS 1
30152 _ACEOF
30153
30154         fi
30155
30156
30157         echo "$as_me:$LINENO: checking for GNU Pth pthread.h" >&5
30158 echo $ECHO_N "checking for GNU Pth pthread.h... $ECHO_C" >&6
30159 if test "${ol_cv_header_gnu_pth_pthread_h+set}" = set; then
30160   echo $ECHO_N "(cached) $ECHO_C" >&6
30161 else
30162   cat >conftest.$ac_ext <<_ACEOF
30163 /* confdefs.h.  */
30164 _ACEOF
30165 cat confdefs.h >>conftest.$ac_ext
30166 cat >>conftest.$ac_ext <<_ACEOF
30167 /* end confdefs.h.  */
30168 #include <pthread.h>
30169 #ifdef _POSIX_THREAD_IS_GNU_PTH
30170         __gnu_pth__;
30171 #endif
30172
30173 _ACEOF
30174 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30175   $EGREP "__gnu_pth__" >/dev/null 2>&1; then
30176   ol_cv_header_gnu_pth_pthread_h=yes
30177 else
30178   ol_cv_header_gnu_pth_pthread_h=no
30179 fi
30180 rm -f conftest*
30181
30182
30183 fi
30184 echo "$as_me:$LINENO: result: $ol_cv_header_gnu_pth_pthread_h" >&5
30185 echo "${ECHO_T}$ol_cv_header_gnu_pth_pthread_h" >&6
30186
30187
30188                 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
30189
30190 for ac_header in sched.h
30191 do
30192 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30193 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30194   echo "$as_me:$LINENO: checking for $ac_header" >&5
30195 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30196 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30197   echo $ECHO_N "(cached) $ECHO_C" >&6
30198 fi
30199 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30200 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30201 else
30202   # Is the header compilable?
30203 echo "$as_me:$LINENO: checking $ac_header usability" >&5
30204 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30205 cat >conftest.$ac_ext <<_ACEOF
30206 /* confdefs.h.  */
30207 _ACEOF
30208 cat confdefs.h >>conftest.$ac_ext
30209 cat >>conftest.$ac_ext <<_ACEOF
30210 /* end confdefs.h.  */
30211 $ac_includes_default
30212 #include <$ac_header>
30213 _ACEOF
30214 rm -f conftest.$ac_objext
30215 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30216   (eval $ac_compile) 2>conftest.er1
30217   ac_status=$?
30218   grep -v '^ *+' conftest.er1 >conftest.err
30219   rm -f conftest.er1
30220   cat conftest.err >&5
30221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30222   (exit $ac_status); } &&
30223          { ac_try='test -z "$ac_c_werror_flag"
30224                          || test ! -s conftest.err'
30225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30226   (eval $ac_try) 2>&5
30227   ac_status=$?
30228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30229   (exit $ac_status); }; } &&
30230          { ac_try='test -s conftest.$ac_objext'
30231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30232   (eval $ac_try) 2>&5
30233   ac_status=$?
30234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30235   (exit $ac_status); }; }; then
30236   ac_header_compiler=yes
30237 else
30238   echo "$as_me: failed program was:" >&5
30239 sed 's/^/| /' conftest.$ac_ext >&5
30240
30241 ac_header_compiler=no
30242 fi
30243 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30244 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30245 echo "${ECHO_T}$ac_header_compiler" >&6
30246
30247 # Is the header present?
30248 echo "$as_me:$LINENO: checking $ac_header presence" >&5
30249 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30250 cat >conftest.$ac_ext <<_ACEOF
30251 /* confdefs.h.  */
30252 _ACEOF
30253 cat confdefs.h >>conftest.$ac_ext
30254 cat >>conftest.$ac_ext <<_ACEOF
30255 /* end confdefs.h.  */
30256 #include <$ac_header>
30257 _ACEOF
30258 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30259   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30260   ac_status=$?
30261   grep -v '^ *+' conftest.er1 >conftest.err
30262   rm -f conftest.er1
30263   cat conftest.err >&5
30264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30265   (exit $ac_status); } >/dev/null; then
30266   if test -s conftest.err; then
30267     ac_cpp_err=$ac_c_preproc_warn_flag
30268     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30269   else
30270     ac_cpp_err=
30271   fi
30272 else
30273   ac_cpp_err=yes
30274 fi
30275 if test -z "$ac_cpp_err"; then
30276   ac_header_preproc=yes
30277 else
30278   echo "$as_me: failed program was:" >&5
30279 sed 's/^/| /' conftest.$ac_ext >&5
30280
30281   ac_header_preproc=no
30282 fi
30283 rm -f conftest.err conftest.$ac_ext
30284 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30285 echo "${ECHO_T}$ac_header_preproc" >&6
30286
30287 # So?  What about this header?
30288 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30289   yes:no: )
30290     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30291 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30292     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30293 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30294     ac_header_preproc=yes
30295     ;;
30296   no:yes:* )
30297     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30298 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30299     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30300 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30301     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30302 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30303     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30304 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30305     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30306 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30307     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30308 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30309     (
30310       cat <<\_ASBOX
30311 ## ------------------------------------------ ##
30312 ## Report this to the AC_PACKAGE_NAME lists.  ##
30313 ## ------------------------------------------ ##
30314 _ASBOX
30315     ) |
30316       sed "s/^/$as_me: WARNING:     /" >&2
30317     ;;
30318 esac
30319 echo "$as_me:$LINENO: checking for $ac_header" >&5
30320 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30321 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30322   echo $ECHO_N "(cached) $ECHO_C" >&6
30323 else
30324   eval "$as_ac_Header=\$ac_header_preproc"
30325 fi
30326 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30327 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30328
30329 fi
30330 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30331   cat >>confdefs.h <<_ACEOF
30332 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30333 _ACEOF
30334
30335 fi
30336
30337 done
30338
30339                 fi
30340
30341
30342                                 echo "$as_me:$LINENO: checking for pthread_create in default libraries" >&5
30343 echo $ECHO_N "checking for pthread_create in default libraries... $ECHO_C" >&6
30344 if test "${ol_cv_pthread_create+set}" = set; then
30345   echo $ECHO_N "(cached) $ECHO_C" >&6
30346 else
30347
30348                 if test "$cross_compiling" = yes; then
30349   cat >conftest.$ac_ext <<_ACEOF
30350 /* confdefs.h.  */
30351 _ACEOF
30352 cat confdefs.h >>conftest.$ac_ext
30353 cat >>conftest.$ac_ext <<_ACEOF
30354 /* end confdefs.h.  */
30355 /* pthread test headers */
30356 #include <pthread.h>
30357 #if HAVE_PTHREADS < 7
30358 #include <errno.h>
30359 #endif
30360 #ifndef NULL
30361 #define NULL (void*)0
30362 #endif
30363
30364 static void *task(p)
30365         void *p;
30366 {
30367         return (void *) (p == NULL);
30368 }
30369
30370 int
30371 main ()
30372 {
30373
30374         /* pthread test function */
30375 #ifndef PTHREAD_CREATE_DETACHED
30376 #define PTHREAD_CREATE_DETACHED 1
30377 #endif
30378         pthread_t t;
30379         int status;
30380         int detach = PTHREAD_CREATE_DETACHED;
30381
30382 #if HAVE_PTHREADS > 4
30383         /* Final pthreads */
30384         pthread_attr_t attr;
30385
30386         status = pthread_attr_init(&attr);
30387         if( status ) return status;
30388
30389 #if HAVE_PTHREADS < 7
30390         status = pthread_attr_setdetachstate(&attr, &detach);
30391         if( status < 0 ) status = errno;
30392 #else
30393         status = pthread_attr_setdetachstate(&attr, detach);
30394 #endif
30395         if( status ) return status;
30396         status = pthread_create( &t, &attr, task, NULL );
30397 #if HAVE_PTHREADS < 7
30398         if( status < 0 ) status = errno;
30399 #endif
30400         if( status ) return status;
30401 #else
30402         /* Draft 4 pthreads */
30403         status = pthread_create( &t, pthread_attr_default, task, NULL );
30404         if( status ) return errno;
30405
30406         /* give thread a chance to complete */
30407         /* it should remain joinable and hence detachable */
30408         sleep( 1 );
30409
30410         status = pthread_detach( &t );
30411         if( status ) return errno;
30412 #endif
30413
30414 #ifdef HAVE_LINUX_THREADS
30415         pthread_kill_other_threads_np();
30416 #endif
30417
30418         return 0;
30419
30420   ;
30421   return 0;
30422 }
30423 _ACEOF
30424 rm -f conftest.$ac_objext conftest$ac_exeext
30425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30426   (eval $ac_link) 2>conftest.er1
30427   ac_status=$?
30428   grep -v '^ *+' conftest.er1 >conftest.err
30429   rm -f conftest.er1
30430   cat conftest.err >&5
30431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30432   (exit $ac_status); } &&
30433          { ac_try='test -z "$ac_c_werror_flag"
30434                          || test ! -s conftest.err'
30435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30436   (eval $ac_try) 2>&5
30437   ac_status=$?
30438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30439   (exit $ac_status); }; } &&
30440          { ac_try='test -s conftest$ac_exeext'
30441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30442   (eval $ac_try) 2>&5
30443   ac_status=$?
30444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30445   (exit $ac_status); }; }; then
30446   ol_cv_pthread_create=yes
30447 else
30448   echo "$as_me: failed program was:" >&5
30449 sed 's/^/| /' conftest.$ac_ext >&5
30450
30451 ol_cv_pthread_create=no
30452 fi
30453 rm -f conftest.err conftest.$ac_objext \
30454       conftest$ac_exeext conftest.$ac_ext
30455 else
30456   cat >conftest.$ac_ext <<_ACEOF
30457 /* confdefs.h.  */
30458 _ACEOF
30459 cat confdefs.h >>conftest.$ac_ext
30460 cat >>conftest.$ac_ext <<_ACEOF
30461 /* end confdefs.h.  */
30462 /* pthread test headers */
30463 #include <pthread.h>
30464 #if HAVE_PTHREADS < 7
30465 #include <errno.h>
30466 #endif
30467 #ifndef NULL
30468 #define NULL (void*)0
30469 #endif
30470
30471 static void *task(p)
30472         void *p;
30473 {
30474         return (void *) (p == NULL);
30475 }
30476
30477
30478 int main(argc, argv)
30479         int argc;
30480         char **argv;
30481 {
30482
30483         /* pthread test function */
30484 #ifndef PTHREAD_CREATE_DETACHED
30485 #define PTHREAD_CREATE_DETACHED 1
30486 #endif
30487         pthread_t t;
30488         int status;
30489         int detach = PTHREAD_CREATE_DETACHED;
30490
30491 #if HAVE_PTHREADS > 4
30492         /* Final pthreads */
30493         pthread_attr_t attr;
30494
30495         status = pthread_attr_init(&attr);
30496         if( status ) return status;
30497
30498 #if HAVE_PTHREADS < 7
30499         status = pthread_attr_setdetachstate(&attr, &detach);
30500         if( status < 0 ) status = errno;
30501 #else
30502         status = pthread_attr_setdetachstate(&attr, detach);
30503 #endif
30504         if( status ) return status;
30505         status = pthread_create( &t, &attr, task, NULL );
30506 #if HAVE_PTHREADS < 7
30507         if( status < 0 ) status = errno;
30508 #endif
30509         if( status ) return status;
30510 #else
30511         /* Draft 4 pthreads */
30512         status = pthread_create( &t, pthread_attr_default, task, NULL );
30513         if( status ) return errno;
30514
30515         /* give thread a chance to complete */
30516         /* it should remain joinable and hence detachable */
30517         sleep( 1 );
30518
30519         status = pthread_detach( &t );
30520         if( status ) return errno;
30521 #endif
30522
30523 #ifdef HAVE_LINUX_THREADS
30524         pthread_kill_other_threads_np();
30525 #endif
30526
30527         return 0;
30528
30529 }
30530
30531 _ACEOF
30532 rm -f conftest$ac_exeext
30533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30534   (eval $ac_link) 2>&5
30535   ac_status=$?
30536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30537   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30539   (eval $ac_try) 2>&5
30540   ac_status=$?
30541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30542   (exit $ac_status); }; }; then
30543   ol_cv_pthread_create=yes
30544 else
30545   echo "$as_me: program exited with status $ac_status" >&5
30546 echo "$as_me: failed program was:" >&5
30547 sed 's/^/| /' conftest.$ac_ext >&5
30548
30549 ( exit $ac_status )
30550 ol_cv_pthread_create=no
30551 fi
30552 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30553 fi
30554 fi
30555 echo "$as_me:$LINENO: result: $ol_cv_pthread_create" >&5
30556 echo "${ECHO_T}$ol_cv_pthread_create" >&6
30557
30558                 if test $ol_cv_pthread_create != no ; then
30559                         ol_link_threads=posix
30560                         ol_link_pthreads=""
30561                 fi
30562
30563                 # Pthread try link: -kthread (ol_cv_pthread_kthread)
30564 if test "$ol_link_threads" = no ; then
30565         # try -kthread
30566         echo "$as_me:$LINENO: checking for pthread link with -kthread" >&5
30567 echo $ECHO_N "checking for pthread link with -kthread... $ECHO_C" >&6
30568 if test "${ol_cv_pthread_kthread+set}" = set; then
30569   echo $ECHO_N "(cached) $ECHO_C" >&6
30570 else
30571
30572                 # save the flags
30573                 ol_LIBS="$LIBS"
30574                 LIBS="-kthread $LIBS"
30575
30576                 if test "$cross_compiling" = yes; then
30577   cat >conftest.$ac_ext <<_ACEOF
30578 /* confdefs.h.  */
30579 _ACEOF
30580 cat confdefs.h >>conftest.$ac_ext
30581 cat >>conftest.$ac_ext <<_ACEOF
30582 /* end confdefs.h.  */
30583 /* pthread test headers */
30584 #include <pthread.h>
30585 #if HAVE_PTHREADS < 7
30586 #include <errno.h>
30587 #endif
30588 #ifndef NULL
30589 #define NULL (void*)0
30590 #endif
30591
30592 static void *task(p)
30593         void *p;
30594 {
30595         return (void *) (p == NULL);
30596 }
30597
30598 int
30599 main ()
30600 {
30601
30602         /* pthread test function */
30603 #ifndef PTHREAD_CREATE_DETACHED
30604 #define PTHREAD_CREATE_DETACHED 1
30605 #endif
30606         pthread_t t;
30607         int status;
30608         int detach = PTHREAD_CREATE_DETACHED;
30609
30610 #if HAVE_PTHREADS > 4
30611         /* Final pthreads */
30612         pthread_attr_t attr;
30613
30614         status = pthread_attr_init(&attr);
30615         if( status ) return status;
30616
30617 #if HAVE_PTHREADS < 7
30618         status = pthread_attr_setdetachstate(&attr, &detach);
30619         if( status < 0 ) status = errno;
30620 #else
30621         status = pthread_attr_setdetachstate(&attr, detach);
30622 #endif
30623         if( status ) return status;
30624         status = pthread_create( &t, &attr, task, NULL );
30625 #if HAVE_PTHREADS < 7
30626         if( status < 0 ) status = errno;
30627 #endif
30628         if( status ) return status;
30629 #else
30630         /* Draft 4 pthreads */
30631         status = pthread_create( &t, pthread_attr_default, task, NULL );
30632         if( status ) return errno;
30633
30634         /* give thread a chance to complete */
30635         /* it should remain joinable and hence detachable */
30636         sleep( 1 );
30637
30638         status = pthread_detach( &t );
30639         if( status ) return errno;
30640 #endif
30641
30642 #ifdef HAVE_LINUX_THREADS
30643         pthread_kill_other_threads_np();
30644 #endif
30645
30646         return 0;
30647
30648   ;
30649   return 0;
30650 }
30651 _ACEOF
30652 rm -f conftest.$ac_objext conftest$ac_exeext
30653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30654   (eval $ac_link) 2>conftest.er1
30655   ac_status=$?
30656   grep -v '^ *+' conftest.er1 >conftest.err
30657   rm -f conftest.er1
30658   cat conftest.err >&5
30659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30660   (exit $ac_status); } &&
30661          { ac_try='test -z "$ac_c_werror_flag"
30662                          || test ! -s conftest.err'
30663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30664   (eval $ac_try) 2>&5
30665   ac_status=$?
30666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30667   (exit $ac_status); }; } &&
30668          { ac_try='test -s conftest$ac_exeext'
30669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30670   (eval $ac_try) 2>&5
30671   ac_status=$?
30672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30673   (exit $ac_status); }; }; then
30674   ol_cv_pthread_kthread=yes
30675 else
30676   echo "$as_me: failed program was:" >&5
30677 sed 's/^/| /' conftest.$ac_ext >&5
30678
30679 ol_cv_pthread_kthread=no
30680 fi
30681 rm -f conftest.err conftest.$ac_objext \
30682       conftest$ac_exeext conftest.$ac_ext
30683 else
30684   cat >conftest.$ac_ext <<_ACEOF
30685 /* confdefs.h.  */
30686 _ACEOF
30687 cat confdefs.h >>conftest.$ac_ext
30688 cat >>conftest.$ac_ext <<_ACEOF
30689 /* end confdefs.h.  */
30690 /* pthread test headers */
30691 #include <pthread.h>
30692 #if HAVE_PTHREADS < 7
30693 #include <errno.h>
30694 #endif
30695 #ifndef NULL
30696 #define NULL (void*)0
30697 #endif
30698
30699 static void *task(p)
30700         void *p;
30701 {
30702         return (void *) (p == NULL);
30703 }
30704
30705
30706 int main(argc, argv)
30707         int argc;
30708         char **argv;
30709 {
30710
30711         /* pthread test function */
30712 #ifndef PTHREAD_CREATE_DETACHED
30713 #define PTHREAD_CREATE_DETACHED 1
30714 #endif
30715         pthread_t t;
30716         int status;
30717         int detach = PTHREAD_CREATE_DETACHED;
30718
30719 #if HAVE_PTHREADS > 4
30720         /* Final pthreads */
30721         pthread_attr_t attr;
30722
30723         status = pthread_attr_init(&attr);
30724         if( status ) return status;
30725
30726 #if HAVE_PTHREADS < 7
30727         status = pthread_attr_setdetachstate(&attr, &detach);
30728         if( status < 0 ) status = errno;
30729 #else
30730         status = pthread_attr_setdetachstate(&attr, detach);
30731 #endif
30732         if( status ) return status;
30733         status = pthread_create( &t, &attr, task, NULL );
30734 #if HAVE_PTHREADS < 7
30735         if( status < 0 ) status = errno;
30736 #endif
30737         if( status ) return status;
30738 #else
30739         /* Draft 4 pthreads */
30740         status = pthread_create( &t, pthread_attr_default, task, NULL );
30741         if( status ) return errno;
30742
30743         /* give thread a chance to complete */
30744         /* it should remain joinable and hence detachable */
30745         sleep( 1 );
30746
30747         status = pthread_detach( &t );
30748         if( status ) return errno;
30749 #endif
30750
30751 #ifdef HAVE_LINUX_THREADS
30752         pthread_kill_other_threads_np();
30753 #endif
30754
30755         return 0;
30756
30757 }
30758
30759 _ACEOF
30760 rm -f conftest$ac_exeext
30761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30762   (eval $ac_link) 2>&5
30763   ac_status=$?
30764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30765   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30767   (eval $ac_try) 2>&5
30768   ac_status=$?
30769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30770   (exit $ac_status); }; }; then
30771   ol_cv_pthread_kthread=yes
30772 else
30773   echo "$as_me: program exited with status $ac_status" >&5
30774 echo "$as_me: failed program was:" >&5
30775 sed 's/^/| /' conftest.$ac_ext >&5
30776
30777 ( exit $ac_status )
30778 ol_cv_pthread_kthread=no
30779 fi
30780 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30781 fi
30782
30783                 # restore the LIBS
30784                 LIBS="$ol_LIBS"
30785
30786 fi
30787 echo "$as_me:$LINENO: result: $ol_cv_pthread_kthread" >&5
30788 echo "${ECHO_T}$ol_cv_pthread_kthread" >&6
30789
30790         if test $ol_cv_pthread_kthread = yes ; then
30791                 ol_link_pthreads="-kthread"
30792                 ol_link_threads=posix
30793         fi
30794 fi
30795
30796                 # Pthread try link: -pthread (ol_cv_pthread_pthread)
30797 if test "$ol_link_threads" = no ; then
30798         # try -pthread
30799         echo "$as_me:$LINENO: checking for pthread link with -pthread" >&5
30800 echo $ECHO_N "checking for pthread link with -pthread... $ECHO_C" >&6
30801 if test "${ol_cv_pthread_pthread+set}" = set; then
30802   echo $ECHO_N "(cached) $ECHO_C" >&6
30803 else
30804
30805                 # save the flags
30806                 ol_LIBS="$LIBS"
30807                 LIBS="-pthread $LIBS"
30808
30809                 if test "$cross_compiling" = yes; then
30810   cat >conftest.$ac_ext <<_ACEOF
30811 /* confdefs.h.  */
30812 _ACEOF
30813 cat confdefs.h >>conftest.$ac_ext
30814 cat >>conftest.$ac_ext <<_ACEOF
30815 /* end confdefs.h.  */
30816 /* pthread test headers */
30817 #include <pthread.h>
30818 #if HAVE_PTHREADS < 7
30819 #include <errno.h>
30820 #endif
30821 #ifndef NULL
30822 #define NULL (void*)0
30823 #endif
30824
30825 static void *task(p)
30826         void *p;
30827 {
30828         return (void *) (p == NULL);
30829 }
30830
30831 int
30832 main ()
30833 {
30834
30835         /* pthread test function */
30836 #ifndef PTHREAD_CREATE_DETACHED
30837 #define PTHREAD_CREATE_DETACHED 1
30838 #endif
30839         pthread_t t;
30840         int status;
30841         int detach = PTHREAD_CREATE_DETACHED;
30842
30843 #if HAVE_PTHREADS > 4
30844         /* Final pthreads */
30845         pthread_attr_t attr;
30846
30847         status = pthread_attr_init(&attr);
30848         if( status ) return status;
30849
30850 #if HAVE_PTHREADS < 7
30851         status = pthread_attr_setdetachstate(&attr, &detach);
30852         if( status < 0 ) status = errno;
30853 #else
30854         status = pthread_attr_setdetachstate(&attr, detach);
30855 #endif
30856         if( status ) return status;
30857         status = pthread_create( &t, &attr, task, NULL );
30858 #if HAVE_PTHREADS < 7
30859         if( status < 0 ) status = errno;
30860 #endif
30861         if( status ) return status;
30862 #else
30863         /* Draft 4 pthreads */
30864         status = pthread_create( &t, pthread_attr_default, task, NULL );
30865         if( status ) return errno;
30866
30867         /* give thread a chance to complete */
30868         /* it should remain joinable and hence detachable */
30869         sleep( 1 );
30870
30871         status = pthread_detach( &t );
30872         if( status ) return errno;
30873 #endif
30874
30875 #ifdef HAVE_LINUX_THREADS
30876         pthread_kill_other_threads_np();
30877 #endif
30878
30879         return 0;
30880
30881   ;
30882   return 0;
30883 }
30884 _ACEOF
30885 rm -f conftest.$ac_objext conftest$ac_exeext
30886 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30887   (eval $ac_link) 2>conftest.er1
30888   ac_status=$?
30889   grep -v '^ *+' conftest.er1 >conftest.err
30890   rm -f conftest.er1
30891   cat conftest.err >&5
30892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30893   (exit $ac_status); } &&
30894          { ac_try='test -z "$ac_c_werror_flag"
30895                          || test ! -s conftest.err'
30896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30897   (eval $ac_try) 2>&5
30898   ac_status=$?
30899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30900   (exit $ac_status); }; } &&
30901          { ac_try='test -s conftest$ac_exeext'
30902   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30903   (eval $ac_try) 2>&5
30904   ac_status=$?
30905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30906   (exit $ac_status); }; }; then
30907   ol_cv_pthread_pthread=yes
30908 else
30909   echo "$as_me: failed program was:" >&5
30910 sed 's/^/| /' conftest.$ac_ext >&5
30911
30912 ol_cv_pthread_pthread=no
30913 fi
30914 rm -f conftest.err conftest.$ac_objext \
30915       conftest$ac_exeext conftest.$ac_ext
30916 else
30917   cat >conftest.$ac_ext <<_ACEOF
30918 /* confdefs.h.  */
30919 _ACEOF
30920 cat confdefs.h >>conftest.$ac_ext
30921 cat >>conftest.$ac_ext <<_ACEOF
30922 /* end confdefs.h.  */
30923 /* pthread test headers */
30924 #include <pthread.h>
30925 #if HAVE_PTHREADS < 7
30926 #include <errno.h>
30927 #endif
30928 #ifndef NULL
30929 #define NULL (void*)0
30930 #endif
30931
30932 static void *task(p)
30933         void *p;
30934 {
30935         return (void *) (p == NULL);
30936 }
30937
30938
30939 int main(argc, argv)
30940         int argc;
30941         char **argv;
30942 {
30943
30944         /* pthread test function */
30945 #ifndef PTHREAD_CREATE_DETACHED
30946 #define PTHREAD_CREATE_DETACHED 1
30947 #endif
30948         pthread_t t;
30949         int status;
30950         int detach = PTHREAD_CREATE_DETACHED;
30951
30952 #if HAVE_PTHREADS > 4
30953         /* Final pthreads */
30954         pthread_attr_t attr;
30955
30956         status = pthread_attr_init(&attr);
30957         if( status ) return status;
30958
30959 #if HAVE_PTHREADS < 7
30960         status = pthread_attr_setdetachstate(&attr, &detach);
30961         if( status < 0 ) status = errno;
30962 #else
30963         status = pthread_attr_setdetachstate(&attr, detach);
30964 #endif
30965         if( status ) return status;
30966         status = pthread_create( &t, &attr, task, NULL );
30967 #if HAVE_PTHREADS < 7
30968         if( status < 0 ) status = errno;
30969 #endif
30970         if( status ) return status;
30971 #else
30972         /* Draft 4 pthreads */
30973         status = pthread_create( &t, pthread_attr_default, task, NULL );
30974         if( status ) return errno;
30975
30976         /* give thread a chance to complete */
30977         /* it should remain joinable and hence detachable */
30978         sleep( 1 );
30979
30980         status = pthread_detach( &t );
30981         if( status ) return errno;
30982 #endif
30983
30984 #ifdef HAVE_LINUX_THREADS
30985         pthread_kill_other_threads_np();
30986 #endif
30987
30988         return 0;
30989
30990 }
30991
30992 _ACEOF
30993 rm -f conftest$ac_exeext
30994 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30995   (eval $ac_link) 2>&5
30996   ac_status=$?
30997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30998   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31000   (eval $ac_try) 2>&5
31001   ac_status=$?
31002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31003   (exit $ac_status); }; }; then
31004   ol_cv_pthread_pthread=yes
31005 else
31006   echo "$as_me: program exited with status $ac_status" >&5
31007 echo "$as_me: failed program was:" >&5
31008 sed 's/^/| /' conftest.$ac_ext >&5
31009
31010 ( exit $ac_status )
31011 ol_cv_pthread_pthread=no
31012 fi
31013 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31014 fi
31015
31016                 # restore the LIBS
31017                 LIBS="$ol_LIBS"
31018
31019 fi
31020 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthread" >&5
31021 echo "${ECHO_T}$ol_cv_pthread_pthread" >&6
31022
31023         if test $ol_cv_pthread_pthread = yes ; then
31024                 ol_link_pthreads="-pthread"
31025                 ol_link_threads=posix
31026         fi
31027 fi
31028
31029                 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
31030 if test "$ol_link_threads" = no ; then
31031         # try -pthreads
31032         echo "$as_me:$LINENO: checking for pthread link with -pthreads" >&5
31033 echo $ECHO_N "checking for pthread link with -pthreads... $ECHO_C" >&6
31034 if test "${ol_cv_pthread_pthreads+set}" = set; then
31035   echo $ECHO_N "(cached) $ECHO_C" >&6
31036 else
31037
31038                 # save the flags
31039                 ol_LIBS="$LIBS"
31040                 LIBS="-pthreads $LIBS"
31041
31042                 if test "$cross_compiling" = yes; then
31043   cat >conftest.$ac_ext <<_ACEOF
31044 /* confdefs.h.  */
31045 _ACEOF
31046 cat confdefs.h >>conftest.$ac_ext
31047 cat >>conftest.$ac_ext <<_ACEOF
31048 /* end confdefs.h.  */
31049 /* pthread test headers */
31050 #include <pthread.h>
31051 #if HAVE_PTHREADS < 7
31052 #include <errno.h>
31053 #endif
31054 #ifndef NULL
31055 #define NULL (void*)0
31056 #endif
31057
31058 static void *task(p)
31059         void *p;
31060 {
31061         return (void *) (p == NULL);
31062 }
31063
31064 int
31065 main ()
31066 {
31067
31068         /* pthread test function */
31069 #ifndef PTHREAD_CREATE_DETACHED
31070 #define PTHREAD_CREATE_DETACHED 1
31071 #endif
31072         pthread_t t;
31073         int status;
31074         int detach = PTHREAD_CREATE_DETACHED;
31075
31076 #if HAVE_PTHREADS > 4
31077         /* Final pthreads */
31078         pthread_attr_t attr;
31079
31080         status = pthread_attr_init(&attr);
31081         if( status ) return status;
31082
31083 #if HAVE_PTHREADS < 7
31084         status = pthread_attr_setdetachstate(&attr, &detach);
31085         if( status < 0 ) status = errno;
31086 #else
31087         status = pthread_attr_setdetachstate(&attr, detach);
31088 #endif
31089         if( status ) return status;
31090         status = pthread_create( &t, &attr, task, NULL );
31091 #if HAVE_PTHREADS < 7
31092         if( status < 0 ) status = errno;
31093 #endif
31094         if( status ) return status;
31095 #else
31096         /* Draft 4 pthreads */
31097         status = pthread_create( &t, pthread_attr_default, task, NULL );
31098         if( status ) return errno;
31099
31100         /* give thread a chance to complete */
31101         /* it should remain joinable and hence detachable */
31102         sleep( 1 );
31103
31104         status = pthread_detach( &t );
31105         if( status ) return errno;
31106 #endif
31107
31108 #ifdef HAVE_LINUX_THREADS
31109         pthread_kill_other_threads_np();
31110 #endif
31111
31112         return 0;
31113
31114   ;
31115   return 0;
31116 }
31117 _ACEOF
31118 rm -f conftest.$ac_objext conftest$ac_exeext
31119 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31120   (eval $ac_link) 2>conftest.er1
31121   ac_status=$?
31122   grep -v '^ *+' conftest.er1 >conftest.err
31123   rm -f conftest.er1
31124   cat conftest.err >&5
31125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31126   (exit $ac_status); } &&
31127          { ac_try='test -z "$ac_c_werror_flag"
31128                          || test ! -s conftest.err'
31129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31130   (eval $ac_try) 2>&5
31131   ac_status=$?
31132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31133   (exit $ac_status); }; } &&
31134          { ac_try='test -s conftest$ac_exeext'
31135   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31136   (eval $ac_try) 2>&5
31137   ac_status=$?
31138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31139   (exit $ac_status); }; }; then
31140   ol_cv_pthread_pthreads=yes
31141 else
31142   echo "$as_me: failed program was:" >&5
31143 sed 's/^/| /' conftest.$ac_ext >&5
31144
31145 ol_cv_pthread_pthreads=no
31146 fi
31147 rm -f conftest.err conftest.$ac_objext \
31148       conftest$ac_exeext conftest.$ac_ext
31149 else
31150   cat >conftest.$ac_ext <<_ACEOF
31151 /* confdefs.h.  */
31152 _ACEOF
31153 cat confdefs.h >>conftest.$ac_ext
31154 cat >>conftest.$ac_ext <<_ACEOF
31155 /* end confdefs.h.  */
31156 /* pthread test headers */
31157 #include <pthread.h>
31158 #if HAVE_PTHREADS < 7
31159 #include <errno.h>
31160 #endif
31161 #ifndef NULL
31162 #define NULL (void*)0
31163 #endif
31164
31165 static void *task(p)
31166         void *p;
31167 {
31168         return (void *) (p == NULL);
31169 }
31170
31171
31172 int main(argc, argv)
31173         int argc;
31174         char **argv;
31175 {
31176
31177         /* pthread test function */
31178 #ifndef PTHREAD_CREATE_DETACHED
31179 #define PTHREAD_CREATE_DETACHED 1
31180 #endif
31181         pthread_t t;
31182         int status;
31183         int detach = PTHREAD_CREATE_DETACHED;
31184
31185 #if HAVE_PTHREADS > 4
31186         /* Final pthreads */
31187         pthread_attr_t attr;
31188
31189         status = pthread_attr_init(&attr);
31190         if( status ) return status;
31191
31192 #if HAVE_PTHREADS < 7
31193         status = pthread_attr_setdetachstate(&attr, &detach);
31194         if( status < 0 ) status = errno;
31195 #else
31196         status = pthread_attr_setdetachstate(&attr, detach);
31197 #endif
31198         if( status ) return status;
31199         status = pthread_create( &t, &attr, task, NULL );
31200 #if HAVE_PTHREADS < 7
31201         if( status < 0 ) status = errno;
31202 #endif
31203         if( status ) return status;
31204 #else
31205         /* Draft 4 pthreads */
31206         status = pthread_create( &t, pthread_attr_default, task, NULL );
31207         if( status ) return errno;
31208
31209         /* give thread a chance to complete */
31210         /* it should remain joinable and hence detachable */
31211         sleep( 1 );
31212
31213         status = pthread_detach( &t );
31214         if( status ) return errno;
31215 #endif
31216
31217 #ifdef HAVE_LINUX_THREADS
31218         pthread_kill_other_threads_np();
31219 #endif
31220
31221         return 0;
31222
31223 }
31224
31225 _ACEOF
31226 rm -f conftest$ac_exeext
31227 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31228   (eval $ac_link) 2>&5
31229   ac_status=$?
31230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31231   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31233   (eval $ac_try) 2>&5
31234   ac_status=$?
31235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31236   (exit $ac_status); }; }; then
31237   ol_cv_pthread_pthreads=yes
31238 else
31239   echo "$as_me: program exited with status $ac_status" >&5
31240 echo "$as_me: failed program was:" >&5
31241 sed 's/^/| /' conftest.$ac_ext >&5
31242
31243 ( exit $ac_status )
31244 ol_cv_pthread_pthreads=no
31245 fi
31246 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31247 fi
31248
31249                 # restore the LIBS
31250                 LIBS="$ol_LIBS"
31251
31252 fi
31253 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthreads" >&5
31254 echo "${ECHO_T}$ol_cv_pthread_pthreads" >&6
31255
31256         if test $ol_cv_pthread_pthreads = yes ; then
31257                 ol_link_pthreads="-pthreads"
31258                 ol_link_threads=posix
31259         fi
31260 fi
31261
31262                 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
31263 if test "$ol_link_threads" = no ; then
31264         # try -mthreads
31265         echo "$as_me:$LINENO: checking for pthread link with -mthreads" >&5
31266 echo $ECHO_N "checking for pthread link with -mthreads... $ECHO_C" >&6
31267 if test "${ol_cv_pthread_mthreads+set}" = set; then
31268   echo $ECHO_N "(cached) $ECHO_C" >&6
31269 else
31270
31271                 # save the flags
31272                 ol_LIBS="$LIBS"
31273                 LIBS="-mthreads $LIBS"
31274
31275                 if test "$cross_compiling" = yes; then
31276   cat >conftest.$ac_ext <<_ACEOF
31277 /* confdefs.h.  */
31278 _ACEOF
31279 cat confdefs.h >>conftest.$ac_ext
31280 cat >>conftest.$ac_ext <<_ACEOF
31281 /* end confdefs.h.  */
31282 /* pthread test headers */
31283 #include <pthread.h>
31284 #if HAVE_PTHREADS < 7
31285 #include <errno.h>
31286 #endif
31287 #ifndef NULL
31288 #define NULL (void*)0
31289 #endif
31290
31291 static void *task(p)
31292         void *p;
31293 {
31294         return (void *) (p == NULL);
31295 }
31296
31297 int
31298 main ()
31299 {
31300
31301         /* pthread test function */
31302 #ifndef PTHREAD_CREATE_DETACHED
31303 #define PTHREAD_CREATE_DETACHED 1
31304 #endif
31305         pthread_t t;
31306         int status;
31307         int detach = PTHREAD_CREATE_DETACHED;
31308
31309 #if HAVE_PTHREADS > 4
31310         /* Final pthreads */
31311         pthread_attr_t attr;
31312
31313         status = pthread_attr_init(&attr);
31314         if( status ) return status;
31315
31316 #if HAVE_PTHREADS < 7
31317         status = pthread_attr_setdetachstate(&attr, &detach);
31318         if( status < 0 ) status = errno;
31319 #else
31320         status = pthread_attr_setdetachstate(&attr, detach);
31321 #endif
31322         if( status ) return status;
31323         status = pthread_create( &t, &attr, task, NULL );
31324 #if HAVE_PTHREADS < 7
31325         if( status < 0 ) status = errno;
31326 #endif
31327         if( status ) return status;
31328 #else
31329         /* Draft 4 pthreads */
31330         status = pthread_create( &t, pthread_attr_default, task, NULL );
31331         if( status ) return errno;
31332
31333         /* give thread a chance to complete */
31334         /* it should remain joinable and hence detachable */
31335         sleep( 1 );
31336
31337         status = pthread_detach( &t );
31338         if( status ) return errno;
31339 #endif
31340
31341 #ifdef HAVE_LINUX_THREADS
31342         pthread_kill_other_threads_np();
31343 #endif
31344
31345         return 0;
31346
31347   ;
31348   return 0;
31349 }
31350 _ACEOF
31351 rm -f conftest.$ac_objext conftest$ac_exeext
31352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31353   (eval $ac_link) 2>conftest.er1
31354   ac_status=$?
31355   grep -v '^ *+' conftest.er1 >conftest.err
31356   rm -f conftest.er1
31357   cat conftest.err >&5
31358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31359   (exit $ac_status); } &&
31360          { ac_try='test -z "$ac_c_werror_flag"
31361                          || test ! -s conftest.err'
31362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31363   (eval $ac_try) 2>&5
31364   ac_status=$?
31365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31366   (exit $ac_status); }; } &&
31367          { ac_try='test -s conftest$ac_exeext'
31368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31369   (eval $ac_try) 2>&5
31370   ac_status=$?
31371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31372   (exit $ac_status); }; }; then
31373   ol_cv_pthread_mthreads=yes
31374 else
31375   echo "$as_me: failed program was:" >&5
31376 sed 's/^/| /' conftest.$ac_ext >&5
31377
31378 ol_cv_pthread_mthreads=no
31379 fi
31380 rm -f conftest.err conftest.$ac_objext \
31381       conftest$ac_exeext conftest.$ac_ext
31382 else
31383   cat >conftest.$ac_ext <<_ACEOF
31384 /* confdefs.h.  */
31385 _ACEOF
31386 cat confdefs.h >>conftest.$ac_ext
31387 cat >>conftest.$ac_ext <<_ACEOF
31388 /* end confdefs.h.  */
31389 /* pthread test headers */
31390 #include <pthread.h>
31391 #if HAVE_PTHREADS < 7
31392 #include <errno.h>
31393 #endif
31394 #ifndef NULL
31395 #define NULL (void*)0
31396 #endif
31397
31398 static void *task(p)
31399         void *p;
31400 {
31401         return (void *) (p == NULL);
31402 }
31403
31404
31405 int main(argc, argv)
31406         int argc;
31407         char **argv;
31408 {
31409
31410         /* pthread test function */
31411 #ifndef PTHREAD_CREATE_DETACHED
31412 #define PTHREAD_CREATE_DETACHED 1
31413 #endif
31414         pthread_t t;
31415         int status;
31416         int detach = PTHREAD_CREATE_DETACHED;
31417
31418 #if HAVE_PTHREADS > 4
31419         /* Final pthreads */
31420         pthread_attr_t attr;
31421
31422         status = pthread_attr_init(&attr);
31423         if( status ) return status;
31424
31425 #if HAVE_PTHREADS < 7
31426         status = pthread_attr_setdetachstate(&attr, &detach);
31427         if( status < 0 ) status = errno;
31428 #else
31429         status = pthread_attr_setdetachstate(&attr, detach);
31430 #endif
31431         if( status ) return status;
31432         status = pthread_create( &t, &attr, task, NULL );
31433 #if HAVE_PTHREADS < 7
31434         if( status < 0 ) status = errno;
31435 #endif
31436         if( status ) return status;
31437 #else
31438         /* Draft 4 pthreads */
31439         status = pthread_create( &t, pthread_attr_default, task, NULL );
31440         if( status ) return errno;
31441
31442         /* give thread a chance to complete */
31443         /* it should remain joinable and hence detachable */
31444         sleep( 1 );
31445
31446         status = pthread_detach( &t );
31447         if( status ) return errno;
31448 #endif
31449
31450 #ifdef HAVE_LINUX_THREADS
31451         pthread_kill_other_threads_np();
31452 #endif
31453
31454         return 0;
31455
31456 }
31457
31458 _ACEOF
31459 rm -f conftest$ac_exeext
31460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31461   (eval $ac_link) 2>&5
31462   ac_status=$?
31463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31464   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31466   (eval $ac_try) 2>&5
31467   ac_status=$?
31468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31469   (exit $ac_status); }; }; then
31470   ol_cv_pthread_mthreads=yes
31471 else
31472   echo "$as_me: program exited with status $ac_status" >&5
31473 echo "$as_me: failed program was:" >&5
31474 sed 's/^/| /' conftest.$ac_ext >&5
31475
31476 ( exit $ac_status )
31477 ol_cv_pthread_mthreads=no
31478 fi
31479 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31480 fi
31481
31482                 # restore the LIBS
31483                 LIBS="$ol_LIBS"
31484
31485 fi
31486 echo "$as_me:$LINENO: result: $ol_cv_pthread_mthreads" >&5
31487 echo "${ECHO_T}$ol_cv_pthread_mthreads" >&6
31488
31489         if test $ol_cv_pthread_mthreads = yes ; then
31490                 ol_link_pthreads="-mthreads"
31491                 ol_link_threads=posix
31492         fi
31493 fi
31494
31495                 # Pthread try link: -thread (ol_cv_pthread_thread)
31496 if test "$ol_link_threads" = no ; then
31497         # try -thread
31498         echo "$as_me:$LINENO: checking for pthread link with -thread" >&5
31499 echo $ECHO_N "checking for pthread link with -thread... $ECHO_C" >&6
31500 if test "${ol_cv_pthread_thread+set}" = set; then
31501   echo $ECHO_N "(cached) $ECHO_C" >&6
31502 else
31503
31504                 # save the flags
31505                 ol_LIBS="$LIBS"
31506                 LIBS="-thread $LIBS"
31507
31508                 if test "$cross_compiling" = yes; then
31509   cat >conftest.$ac_ext <<_ACEOF
31510 /* confdefs.h.  */
31511 _ACEOF
31512 cat confdefs.h >>conftest.$ac_ext
31513 cat >>conftest.$ac_ext <<_ACEOF
31514 /* end confdefs.h.  */
31515 /* pthread test headers */
31516 #include <pthread.h>
31517 #if HAVE_PTHREADS < 7
31518 #include <errno.h>
31519 #endif
31520 #ifndef NULL
31521 #define NULL (void*)0
31522 #endif
31523
31524 static void *task(p)
31525         void *p;
31526 {
31527         return (void *) (p == NULL);
31528 }
31529
31530 int
31531 main ()
31532 {
31533
31534         /* pthread test function */
31535 #ifndef PTHREAD_CREATE_DETACHED
31536 #define PTHREAD_CREATE_DETACHED 1
31537 #endif
31538         pthread_t t;
31539         int status;
31540         int detach = PTHREAD_CREATE_DETACHED;
31541
31542 #if HAVE_PTHREADS > 4
31543         /* Final pthreads */
31544         pthread_attr_t attr;
31545
31546         status = pthread_attr_init(&attr);
31547         if( status ) return status;
31548
31549 #if HAVE_PTHREADS < 7
31550         status = pthread_attr_setdetachstate(&attr, &detach);
31551         if( status < 0 ) status = errno;
31552 #else
31553         status = pthread_attr_setdetachstate(&attr, detach);
31554 #endif
31555         if( status ) return status;
31556         status = pthread_create( &t, &attr, task, NULL );
31557 #if HAVE_PTHREADS < 7
31558         if( status < 0 ) status = errno;
31559 #endif
31560         if( status ) return status;
31561 #else
31562         /* Draft 4 pthreads */
31563         status = pthread_create( &t, pthread_attr_default, task, NULL );
31564         if( status ) return errno;
31565
31566         /* give thread a chance to complete */
31567         /* it should remain joinable and hence detachable */
31568         sleep( 1 );
31569
31570         status = pthread_detach( &t );
31571         if( status ) return errno;
31572 #endif
31573
31574 #ifdef HAVE_LINUX_THREADS
31575         pthread_kill_other_threads_np();
31576 #endif
31577
31578         return 0;
31579
31580   ;
31581   return 0;
31582 }
31583 _ACEOF
31584 rm -f conftest.$ac_objext conftest$ac_exeext
31585 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31586   (eval $ac_link) 2>conftest.er1
31587   ac_status=$?
31588   grep -v '^ *+' conftest.er1 >conftest.err
31589   rm -f conftest.er1
31590   cat conftest.err >&5
31591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31592   (exit $ac_status); } &&
31593          { ac_try='test -z "$ac_c_werror_flag"
31594                          || test ! -s conftest.err'
31595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31596   (eval $ac_try) 2>&5
31597   ac_status=$?
31598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31599   (exit $ac_status); }; } &&
31600          { ac_try='test -s conftest$ac_exeext'
31601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31602   (eval $ac_try) 2>&5
31603   ac_status=$?
31604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31605   (exit $ac_status); }; }; then
31606   ol_cv_pthread_thread=yes
31607 else
31608   echo "$as_me: failed program was:" >&5
31609 sed 's/^/| /' conftest.$ac_ext >&5
31610
31611 ol_cv_pthread_thread=no
31612 fi
31613 rm -f conftest.err conftest.$ac_objext \
31614       conftest$ac_exeext conftest.$ac_ext
31615 else
31616   cat >conftest.$ac_ext <<_ACEOF
31617 /* confdefs.h.  */
31618 _ACEOF
31619 cat confdefs.h >>conftest.$ac_ext
31620 cat >>conftest.$ac_ext <<_ACEOF
31621 /* end confdefs.h.  */
31622 /* pthread test headers */
31623 #include <pthread.h>
31624 #if HAVE_PTHREADS < 7
31625 #include <errno.h>
31626 #endif
31627 #ifndef NULL
31628 #define NULL (void*)0
31629 #endif
31630
31631 static void *task(p)
31632         void *p;
31633 {
31634         return (void *) (p == NULL);
31635 }
31636
31637
31638 int main(argc, argv)
31639         int argc;
31640         char **argv;
31641 {
31642
31643         /* pthread test function */
31644 #ifndef PTHREAD_CREATE_DETACHED
31645 #define PTHREAD_CREATE_DETACHED 1
31646 #endif
31647         pthread_t t;
31648         int status;
31649         int detach = PTHREAD_CREATE_DETACHED;
31650
31651 #if HAVE_PTHREADS > 4
31652         /* Final pthreads */
31653         pthread_attr_t attr;
31654
31655         status = pthread_attr_init(&attr);
31656         if( status ) return status;
31657
31658 #if HAVE_PTHREADS < 7
31659         status = pthread_attr_setdetachstate(&attr, &detach);
31660         if( status < 0 ) status = errno;
31661 #else
31662         status = pthread_attr_setdetachstate(&attr, detach);
31663 #endif
31664         if( status ) return status;
31665         status = pthread_create( &t, &attr, task, NULL );
31666 #if HAVE_PTHREADS < 7
31667         if( status < 0 ) status = errno;
31668 #endif
31669         if( status ) return status;
31670 #else
31671         /* Draft 4 pthreads */
31672         status = pthread_create( &t, pthread_attr_default, task, NULL );
31673         if( status ) return errno;
31674
31675         /* give thread a chance to complete */
31676         /* it should remain joinable and hence detachable */
31677         sleep( 1 );
31678
31679         status = pthread_detach( &t );
31680         if( status ) return errno;
31681 #endif
31682
31683 #ifdef HAVE_LINUX_THREADS
31684         pthread_kill_other_threads_np();
31685 #endif
31686
31687         return 0;
31688
31689 }
31690
31691 _ACEOF
31692 rm -f conftest$ac_exeext
31693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31694   (eval $ac_link) 2>&5
31695   ac_status=$?
31696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31697   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31699   (eval $ac_try) 2>&5
31700   ac_status=$?
31701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31702   (exit $ac_status); }; }; then
31703   ol_cv_pthread_thread=yes
31704 else
31705   echo "$as_me: program exited with status $ac_status" >&5
31706 echo "$as_me: failed program was:" >&5
31707 sed 's/^/| /' conftest.$ac_ext >&5
31708
31709 ( exit $ac_status )
31710 ol_cv_pthread_thread=no
31711 fi
31712 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31713 fi
31714
31715                 # restore the LIBS
31716                 LIBS="$ol_LIBS"
31717
31718 fi
31719 echo "$as_me:$LINENO: result: $ol_cv_pthread_thread" >&5
31720 echo "${ECHO_T}$ol_cv_pthread_thread" >&6
31721
31722         if test $ol_cv_pthread_thread = yes ; then
31723                 ol_link_pthreads="-thread"
31724                 ol_link_threads=posix
31725         fi
31726 fi
31727
31728
31729                 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
31730 if test "$ol_link_threads" = no ; then
31731         # try -lpthread -lmach -lexc -lc_r
31732         echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
31733 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc -lc_r... $ECHO_C" >&6
31734 if test "${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}" = set; then
31735   echo $ECHO_N "(cached) $ECHO_C" >&6
31736 else
31737
31738                 # save the flags
31739                 ol_LIBS="$LIBS"
31740                 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
31741
31742                 if test "$cross_compiling" = yes; then
31743   cat >conftest.$ac_ext <<_ACEOF
31744 /* confdefs.h.  */
31745 _ACEOF
31746 cat confdefs.h >>conftest.$ac_ext
31747 cat >>conftest.$ac_ext <<_ACEOF
31748 /* end confdefs.h.  */
31749 /* pthread test headers */
31750 #include <pthread.h>
31751 #if HAVE_PTHREADS < 7
31752 #include <errno.h>
31753 #endif
31754 #ifndef NULL
31755 #define NULL (void*)0
31756 #endif
31757
31758 static void *task(p)
31759         void *p;
31760 {
31761         return (void *) (p == NULL);
31762 }
31763
31764 int
31765 main ()
31766 {
31767
31768         /* pthread test function */
31769 #ifndef PTHREAD_CREATE_DETACHED
31770 #define PTHREAD_CREATE_DETACHED 1
31771 #endif
31772         pthread_t t;
31773         int status;
31774         int detach = PTHREAD_CREATE_DETACHED;
31775
31776 #if HAVE_PTHREADS > 4
31777         /* Final pthreads */
31778         pthread_attr_t attr;
31779
31780         status = pthread_attr_init(&attr);
31781         if( status ) return status;
31782
31783 #if HAVE_PTHREADS < 7
31784         status = pthread_attr_setdetachstate(&attr, &detach);
31785         if( status < 0 ) status = errno;
31786 #else
31787         status = pthread_attr_setdetachstate(&attr, detach);
31788 #endif
31789         if( status ) return status;
31790         status = pthread_create( &t, &attr, task, NULL );
31791 #if HAVE_PTHREADS < 7
31792         if( status < 0 ) status = errno;
31793 #endif
31794         if( status ) return status;
31795 #else
31796         /* Draft 4 pthreads */
31797         status = pthread_create( &t, pthread_attr_default, task, NULL );
31798         if( status ) return errno;
31799
31800         /* give thread a chance to complete */
31801         /* it should remain joinable and hence detachable */
31802         sleep( 1 );
31803
31804         status = pthread_detach( &t );
31805         if( status ) return errno;
31806 #endif
31807
31808 #ifdef HAVE_LINUX_THREADS
31809         pthread_kill_other_threads_np();
31810 #endif
31811
31812         return 0;
31813
31814   ;
31815   return 0;
31816 }
31817 _ACEOF
31818 rm -f conftest.$ac_objext conftest$ac_exeext
31819 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31820   (eval $ac_link) 2>conftest.er1
31821   ac_status=$?
31822   grep -v '^ *+' conftest.er1 >conftest.err
31823   rm -f conftest.er1
31824   cat conftest.err >&5
31825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31826   (exit $ac_status); } &&
31827          { ac_try='test -z "$ac_c_werror_flag"
31828                          || test ! -s conftest.err'
31829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31830   (eval $ac_try) 2>&5
31831   ac_status=$?
31832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31833   (exit $ac_status); }; } &&
31834          { ac_try='test -s conftest$ac_exeext'
31835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31836   (eval $ac_try) 2>&5
31837   ac_status=$?
31838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31839   (exit $ac_status); }; }; then
31840   ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
31841 else
31842   echo "$as_me: failed program was:" >&5
31843 sed 's/^/| /' conftest.$ac_ext >&5
31844
31845 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
31846 fi
31847 rm -f conftest.err conftest.$ac_objext \
31848       conftest$ac_exeext conftest.$ac_ext
31849 else
31850   cat >conftest.$ac_ext <<_ACEOF
31851 /* confdefs.h.  */
31852 _ACEOF
31853 cat confdefs.h >>conftest.$ac_ext
31854 cat >>conftest.$ac_ext <<_ACEOF
31855 /* end confdefs.h.  */
31856 /* pthread test headers */
31857 #include <pthread.h>
31858 #if HAVE_PTHREADS < 7
31859 #include <errno.h>
31860 #endif
31861 #ifndef NULL
31862 #define NULL (void*)0
31863 #endif
31864
31865 static void *task(p)
31866         void *p;
31867 {
31868         return (void *) (p == NULL);
31869 }
31870
31871
31872 int main(argc, argv)
31873         int argc;
31874         char **argv;
31875 {
31876
31877         /* pthread test function */
31878 #ifndef PTHREAD_CREATE_DETACHED
31879 #define PTHREAD_CREATE_DETACHED 1
31880 #endif
31881         pthread_t t;
31882         int status;
31883         int detach = PTHREAD_CREATE_DETACHED;
31884
31885 #if HAVE_PTHREADS > 4
31886         /* Final pthreads */
31887         pthread_attr_t attr;
31888
31889         status = pthread_attr_init(&attr);
31890         if( status ) return status;
31891
31892 #if HAVE_PTHREADS < 7
31893         status = pthread_attr_setdetachstate(&attr, &detach);
31894         if( status < 0 ) status = errno;
31895 #else
31896         status = pthread_attr_setdetachstate(&attr, detach);
31897 #endif
31898         if( status ) return status;
31899         status = pthread_create( &t, &attr, task, NULL );
31900 #if HAVE_PTHREADS < 7
31901         if( status < 0 ) status = errno;
31902 #endif
31903         if( status ) return status;
31904 #else
31905         /* Draft 4 pthreads */
31906         status = pthread_create( &t, pthread_attr_default, task, NULL );
31907         if( status ) return errno;
31908
31909         /* give thread a chance to complete */
31910         /* it should remain joinable and hence detachable */
31911         sleep( 1 );
31912
31913         status = pthread_detach( &t );
31914         if( status ) return errno;
31915 #endif
31916
31917 #ifdef HAVE_LINUX_THREADS
31918         pthread_kill_other_threads_np();
31919 #endif
31920
31921         return 0;
31922
31923 }
31924
31925 _ACEOF
31926 rm -f conftest$ac_exeext
31927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31928   (eval $ac_link) 2>&5
31929   ac_status=$?
31930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31931   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31933   (eval $ac_try) 2>&5
31934   ac_status=$?
31935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31936   (exit $ac_status); }; }; then
31937   ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
31938 else
31939   echo "$as_me: program exited with status $ac_status" >&5
31940 echo "$as_me: failed program was:" >&5
31941 sed 's/^/| /' conftest.$ac_ext >&5
31942
31943 ( exit $ac_status )
31944 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
31945 fi
31946 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31947 fi
31948
31949                 # restore the LIBS
31950                 LIBS="$ol_LIBS"
31951
31952 fi
31953 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
31954 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6
31955
31956         if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
31957                 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
31958                 ol_link_threads=posix
31959         fi
31960 fi
31961
31962                 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
31963 if test "$ol_link_threads" = no ; then
31964         # try -lpthread -lmach -lexc
31965         echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc" >&5
31966 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc... $ECHO_C" >&6
31967 if test "${ol_cv_pthread_lpthread_lmach_lexc+set}" = set; then
31968   echo $ECHO_N "(cached) $ECHO_C" >&6
31969 else
31970
31971                 # save the flags
31972                 ol_LIBS="$LIBS"
31973                 LIBS="-lpthread -lmach -lexc $LIBS"
31974
31975                 if test "$cross_compiling" = yes; then
31976   cat >conftest.$ac_ext <<_ACEOF
31977 /* confdefs.h.  */
31978 _ACEOF
31979 cat confdefs.h >>conftest.$ac_ext
31980 cat >>conftest.$ac_ext <<_ACEOF
31981 /* end confdefs.h.  */
31982 /* pthread test headers */
31983 #include <pthread.h>
31984 #if HAVE_PTHREADS < 7
31985 #include <errno.h>
31986 #endif
31987 #ifndef NULL
31988 #define NULL (void*)0
31989 #endif
31990
31991 static void *task(p)
31992         void *p;
31993 {
31994         return (void *) (p == NULL);
31995 }
31996
31997 int
31998 main ()
31999 {
32000
32001         /* pthread test function */
32002 #ifndef PTHREAD_CREATE_DETACHED
32003 #define PTHREAD_CREATE_DETACHED 1
32004 #endif
32005         pthread_t t;
32006         int status;
32007         int detach = PTHREAD_CREATE_DETACHED;
32008
32009 #if HAVE_PTHREADS > 4
32010         /* Final pthreads */
32011         pthread_attr_t attr;
32012
32013         status = pthread_attr_init(&attr);
32014         if( status ) return status;
32015
32016 #if HAVE_PTHREADS < 7
32017         status = pthread_attr_setdetachstate(&attr, &detach);
32018         if( status < 0 ) status = errno;
32019 #else
32020         status = pthread_attr_setdetachstate(&attr, detach);
32021 #endif
32022         if( status ) return status;
32023         status = pthread_create( &t, &attr, task, NULL );
32024 #if HAVE_PTHREADS < 7
32025         if( status < 0 ) status = errno;
32026 #endif
32027         if( status ) return status;
32028 #else
32029         /* Draft 4 pthreads */
32030         status = pthread_create( &t, pthread_attr_default, task, NULL );
32031         if( status ) return errno;
32032
32033         /* give thread a chance to complete */
32034         /* it should remain joinable and hence detachable */
32035         sleep( 1 );
32036
32037         status = pthread_detach( &t );
32038         if( status ) return errno;
32039 #endif
32040
32041 #ifdef HAVE_LINUX_THREADS
32042         pthread_kill_other_threads_np();
32043 #endif
32044
32045         return 0;
32046
32047   ;
32048   return 0;
32049 }
32050 _ACEOF
32051 rm -f conftest.$ac_objext conftest$ac_exeext
32052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32053   (eval $ac_link) 2>conftest.er1
32054   ac_status=$?
32055   grep -v '^ *+' conftest.er1 >conftest.err
32056   rm -f conftest.er1
32057   cat conftest.err >&5
32058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32059   (exit $ac_status); } &&
32060          { ac_try='test -z "$ac_c_werror_flag"
32061                          || test ! -s conftest.err'
32062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32063   (eval $ac_try) 2>&5
32064   ac_status=$?
32065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32066   (exit $ac_status); }; } &&
32067          { ac_try='test -s conftest$ac_exeext'
32068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32069   (eval $ac_try) 2>&5
32070   ac_status=$?
32071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32072   (exit $ac_status); }; }; then
32073   ol_cv_pthread_lpthread_lmach_lexc=yes
32074 else
32075   echo "$as_me: failed program was:" >&5
32076 sed 's/^/| /' conftest.$ac_ext >&5
32077
32078 ol_cv_pthread_lpthread_lmach_lexc=no
32079 fi
32080 rm -f conftest.err conftest.$ac_objext \
32081       conftest$ac_exeext conftest.$ac_ext
32082 else
32083   cat >conftest.$ac_ext <<_ACEOF
32084 /* confdefs.h.  */
32085 _ACEOF
32086 cat confdefs.h >>conftest.$ac_ext
32087 cat >>conftest.$ac_ext <<_ACEOF
32088 /* end confdefs.h.  */
32089 /* pthread test headers */
32090 #include <pthread.h>
32091 #if HAVE_PTHREADS < 7
32092 #include <errno.h>
32093 #endif
32094 #ifndef NULL
32095 #define NULL (void*)0
32096 #endif
32097
32098 static void *task(p)
32099         void *p;
32100 {
32101         return (void *) (p == NULL);
32102 }
32103
32104
32105 int main(argc, argv)
32106         int argc;
32107         char **argv;
32108 {
32109
32110         /* pthread test function */
32111 #ifndef PTHREAD_CREATE_DETACHED
32112 #define PTHREAD_CREATE_DETACHED 1
32113 #endif
32114         pthread_t t;
32115         int status;
32116         int detach = PTHREAD_CREATE_DETACHED;
32117
32118 #if HAVE_PTHREADS > 4
32119         /* Final pthreads */
32120         pthread_attr_t attr;
32121
32122         status = pthread_attr_init(&attr);
32123         if( status ) return status;
32124
32125 #if HAVE_PTHREADS < 7
32126         status = pthread_attr_setdetachstate(&attr, &detach);
32127         if( status < 0 ) status = errno;
32128 #else
32129         status = pthread_attr_setdetachstate(&attr, detach);
32130 #endif
32131         if( status ) return status;
32132         status = pthread_create( &t, &attr, task, NULL );
32133 #if HAVE_PTHREADS < 7
32134         if( status < 0 ) status = errno;
32135 #endif
32136         if( status ) return status;
32137 #else
32138         /* Draft 4 pthreads */
32139         status = pthread_create( &t, pthread_attr_default, task, NULL );
32140         if( status ) return errno;
32141
32142         /* give thread a chance to complete */
32143         /* it should remain joinable and hence detachable */
32144         sleep( 1 );
32145
32146         status = pthread_detach( &t );
32147         if( status ) return errno;
32148 #endif
32149
32150 #ifdef HAVE_LINUX_THREADS
32151         pthread_kill_other_threads_np();
32152 #endif
32153
32154         return 0;
32155
32156 }
32157
32158 _ACEOF
32159 rm -f conftest$ac_exeext
32160 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32161   (eval $ac_link) 2>&5
32162   ac_status=$?
32163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32164   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32166   (eval $ac_try) 2>&5
32167   ac_status=$?
32168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32169   (exit $ac_status); }; }; then
32170   ol_cv_pthread_lpthread_lmach_lexc=yes
32171 else
32172   echo "$as_me: program exited with status $ac_status" >&5
32173 echo "$as_me: failed program was:" >&5
32174 sed 's/^/| /' conftest.$ac_ext >&5
32175
32176 ( exit $ac_status )
32177 ol_cv_pthread_lpthread_lmach_lexc=no
32178 fi
32179 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32180 fi
32181
32182                 # restore the LIBS
32183                 LIBS="$ol_LIBS"
32184
32185 fi
32186 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
32187 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc" >&6
32188
32189         if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
32190                 ol_link_pthreads="-lpthread -lmach -lexc"
32191                 ol_link_threads=posix
32192         fi
32193 fi
32194
32195
32196                 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
32197 if test "$ol_link_threads" = no ; then
32198         # try -lpthread -Wl,-woff,85
32199         echo "$as_me:$LINENO: checking for pthread link with -lpthread -Wl,-woff,85" >&5
32200 echo $ECHO_N "checking for pthread link with -lpthread -Wl,-woff,85... $ECHO_C" >&6
32201 if test "${ol_cv_pthread_lib_lpthread_woff+set}" = set; then
32202   echo $ECHO_N "(cached) $ECHO_C" >&6
32203 else
32204
32205                 # save the flags
32206                 ol_LIBS="$LIBS"
32207                 LIBS="-lpthread -Wl,-woff,85 $LIBS"
32208
32209                 if test "$cross_compiling" = yes; then
32210   cat >conftest.$ac_ext <<_ACEOF
32211 /* confdefs.h.  */
32212 _ACEOF
32213 cat confdefs.h >>conftest.$ac_ext
32214 cat >>conftest.$ac_ext <<_ACEOF
32215 /* end confdefs.h.  */
32216 /* pthread test headers */
32217 #include <pthread.h>
32218 #if HAVE_PTHREADS < 7
32219 #include <errno.h>
32220 #endif
32221 #ifndef NULL
32222 #define NULL (void*)0
32223 #endif
32224
32225 static void *task(p)
32226         void *p;
32227 {
32228         return (void *) (p == NULL);
32229 }
32230
32231 int
32232 main ()
32233 {
32234
32235         /* pthread test function */
32236 #ifndef PTHREAD_CREATE_DETACHED
32237 #define PTHREAD_CREATE_DETACHED 1
32238 #endif
32239         pthread_t t;
32240         int status;
32241         int detach = PTHREAD_CREATE_DETACHED;
32242
32243 #if HAVE_PTHREADS > 4
32244         /* Final pthreads */
32245         pthread_attr_t attr;
32246
32247         status = pthread_attr_init(&attr);
32248         if( status ) return status;
32249
32250 #if HAVE_PTHREADS < 7
32251         status = pthread_attr_setdetachstate(&attr, &detach);
32252         if( status < 0 ) status = errno;
32253 #else
32254         status = pthread_attr_setdetachstate(&attr, detach);
32255 #endif
32256         if( status ) return status;
32257         status = pthread_create( &t, &attr, task, NULL );
32258 #if HAVE_PTHREADS < 7
32259         if( status < 0 ) status = errno;
32260 #endif
32261         if( status ) return status;
32262 #else
32263         /* Draft 4 pthreads */
32264         status = pthread_create( &t, pthread_attr_default, task, NULL );
32265         if( status ) return errno;
32266
32267         /* give thread a chance to complete */
32268         /* it should remain joinable and hence detachable */
32269         sleep( 1 );
32270
32271         status = pthread_detach( &t );
32272         if( status ) return errno;
32273 #endif
32274
32275 #ifdef HAVE_LINUX_THREADS
32276         pthread_kill_other_threads_np();
32277 #endif
32278
32279         return 0;
32280
32281   ;
32282   return 0;
32283 }
32284 _ACEOF
32285 rm -f conftest.$ac_objext conftest$ac_exeext
32286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32287   (eval $ac_link) 2>conftest.er1
32288   ac_status=$?
32289   grep -v '^ *+' conftest.er1 >conftest.err
32290   rm -f conftest.er1
32291   cat conftest.err >&5
32292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32293   (exit $ac_status); } &&
32294          { ac_try='test -z "$ac_c_werror_flag"
32295                          || test ! -s conftest.err'
32296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32297   (eval $ac_try) 2>&5
32298   ac_status=$?
32299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32300   (exit $ac_status); }; } &&
32301          { ac_try='test -s conftest$ac_exeext'
32302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32303   (eval $ac_try) 2>&5
32304   ac_status=$?
32305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32306   (exit $ac_status); }; }; then
32307   ol_cv_pthread_lib_lpthread_woff=yes
32308 else
32309   echo "$as_me: failed program was:" >&5
32310 sed 's/^/| /' conftest.$ac_ext >&5
32311
32312 ol_cv_pthread_lib_lpthread_woff=no
32313 fi
32314 rm -f conftest.err conftest.$ac_objext \
32315       conftest$ac_exeext conftest.$ac_ext
32316 else
32317   cat >conftest.$ac_ext <<_ACEOF
32318 /* confdefs.h.  */
32319 _ACEOF
32320 cat confdefs.h >>conftest.$ac_ext
32321 cat >>conftest.$ac_ext <<_ACEOF
32322 /* end confdefs.h.  */
32323 /* pthread test headers */
32324 #include <pthread.h>
32325 #if HAVE_PTHREADS < 7
32326 #include <errno.h>
32327 #endif
32328 #ifndef NULL
32329 #define NULL (void*)0
32330 #endif
32331
32332 static void *task(p)
32333         void *p;
32334 {
32335         return (void *) (p == NULL);
32336 }
32337
32338
32339 int main(argc, argv)
32340         int argc;
32341         char **argv;
32342 {
32343
32344         /* pthread test function */
32345 #ifndef PTHREAD_CREATE_DETACHED
32346 #define PTHREAD_CREATE_DETACHED 1
32347 #endif
32348         pthread_t t;
32349         int status;
32350         int detach = PTHREAD_CREATE_DETACHED;
32351
32352 #if HAVE_PTHREADS > 4
32353         /* Final pthreads */
32354         pthread_attr_t attr;
32355
32356         status = pthread_attr_init(&attr);
32357         if( status ) return status;
32358
32359 #if HAVE_PTHREADS < 7
32360         status = pthread_attr_setdetachstate(&attr, &detach);
32361         if( status < 0 ) status = errno;
32362 #else
32363         status = pthread_attr_setdetachstate(&attr, detach);
32364 #endif
32365         if( status ) return status;
32366         status = pthread_create( &t, &attr, task, NULL );
32367 #if HAVE_PTHREADS < 7
32368         if( status < 0 ) status = errno;
32369 #endif
32370         if( status ) return status;
32371 #else
32372         /* Draft 4 pthreads */
32373         status = pthread_create( &t, pthread_attr_default, task, NULL );
32374         if( status ) return errno;
32375
32376         /* give thread a chance to complete */
32377         /* it should remain joinable and hence detachable */
32378         sleep( 1 );
32379
32380         status = pthread_detach( &t );
32381         if( status ) return errno;
32382 #endif
32383
32384 #ifdef HAVE_LINUX_THREADS
32385         pthread_kill_other_threads_np();
32386 #endif
32387
32388         return 0;
32389
32390 }
32391
32392 _ACEOF
32393 rm -f conftest$ac_exeext
32394 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32395   (eval $ac_link) 2>&5
32396   ac_status=$?
32397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32398   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32400   (eval $ac_try) 2>&5
32401   ac_status=$?
32402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32403   (exit $ac_status); }; }; then
32404   ol_cv_pthread_lib_lpthread_woff=yes
32405 else
32406   echo "$as_me: program exited with status $ac_status" >&5
32407 echo "$as_me: failed program was:" >&5
32408 sed 's/^/| /' conftest.$ac_ext >&5
32409
32410 ( exit $ac_status )
32411 ol_cv_pthread_lib_lpthread_woff=no
32412 fi
32413 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32414 fi
32415
32416                 # restore the LIBS
32417                 LIBS="$ol_LIBS"
32418
32419 fi
32420 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthread_woff" >&5
32421 echo "${ECHO_T}$ol_cv_pthread_lib_lpthread_woff" >&6
32422
32423         if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
32424                 ol_link_pthreads="-lpthread -Wl,-woff,85"
32425                 ol_link_threads=posix
32426         fi
32427 fi
32428
32429
32430                 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
32431 if test "$ol_link_threads" = no ; then
32432         # try -lpthread
32433         echo "$as_me:$LINENO: checking for pthread link with -lpthread" >&5
32434 echo $ECHO_N "checking for pthread link with -lpthread... $ECHO_C" >&6
32435 if test "${ol_cv_pthread_lpthread+set}" = set; then
32436   echo $ECHO_N "(cached) $ECHO_C" >&6
32437 else
32438
32439                 # save the flags
32440                 ol_LIBS="$LIBS"
32441                 LIBS="-lpthread $LIBS"
32442
32443                 if test "$cross_compiling" = yes; then
32444   cat >conftest.$ac_ext <<_ACEOF
32445 /* confdefs.h.  */
32446 _ACEOF
32447 cat confdefs.h >>conftest.$ac_ext
32448 cat >>conftest.$ac_ext <<_ACEOF
32449 /* end confdefs.h.  */
32450 /* pthread test headers */
32451 #include <pthread.h>
32452 #if HAVE_PTHREADS < 7
32453 #include <errno.h>
32454 #endif
32455 #ifndef NULL
32456 #define NULL (void*)0
32457 #endif
32458
32459 static void *task(p)
32460         void *p;
32461 {
32462         return (void *) (p == NULL);
32463 }
32464
32465 int
32466 main ()
32467 {
32468
32469         /* pthread test function */
32470 #ifndef PTHREAD_CREATE_DETACHED
32471 #define PTHREAD_CREATE_DETACHED 1
32472 #endif
32473         pthread_t t;
32474         int status;
32475         int detach = PTHREAD_CREATE_DETACHED;
32476
32477 #if HAVE_PTHREADS > 4
32478         /* Final pthreads */
32479         pthread_attr_t attr;
32480
32481         status = pthread_attr_init(&attr);
32482         if( status ) return status;
32483
32484 #if HAVE_PTHREADS < 7
32485         status = pthread_attr_setdetachstate(&attr, &detach);
32486         if( status < 0 ) status = errno;
32487 #else
32488         status = pthread_attr_setdetachstate(&attr, detach);
32489 #endif
32490         if( status ) return status;
32491         status = pthread_create( &t, &attr, task, NULL );
32492 #if HAVE_PTHREADS < 7
32493         if( status < 0 ) status = errno;
32494 #endif
32495         if( status ) return status;
32496 #else
32497         /* Draft 4 pthreads */
32498         status = pthread_create( &t, pthread_attr_default, task, NULL );
32499         if( status ) return errno;
32500
32501         /* give thread a chance to complete */
32502         /* it should remain joinable and hence detachable */
32503         sleep( 1 );
32504
32505         status = pthread_detach( &t );
32506         if( status ) return errno;
32507 #endif
32508
32509 #ifdef HAVE_LINUX_THREADS
32510         pthread_kill_other_threads_np();
32511 #endif
32512
32513         return 0;
32514
32515   ;
32516   return 0;
32517 }
32518 _ACEOF
32519 rm -f conftest.$ac_objext conftest$ac_exeext
32520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32521   (eval $ac_link) 2>conftest.er1
32522   ac_status=$?
32523   grep -v '^ *+' conftest.er1 >conftest.err
32524   rm -f conftest.er1
32525   cat conftest.err >&5
32526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32527   (exit $ac_status); } &&
32528          { ac_try='test -z "$ac_c_werror_flag"
32529                          || test ! -s conftest.err'
32530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32531   (eval $ac_try) 2>&5
32532   ac_status=$?
32533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32534   (exit $ac_status); }; } &&
32535          { ac_try='test -s conftest$ac_exeext'
32536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32537   (eval $ac_try) 2>&5
32538   ac_status=$?
32539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32540   (exit $ac_status); }; }; then
32541   ol_cv_pthread_lpthread=yes
32542 else
32543   echo "$as_me: failed program was:" >&5
32544 sed 's/^/| /' conftest.$ac_ext >&5
32545
32546 ol_cv_pthread_lpthread=no
32547 fi
32548 rm -f conftest.err conftest.$ac_objext \
32549       conftest$ac_exeext conftest.$ac_ext
32550 else
32551   cat >conftest.$ac_ext <<_ACEOF
32552 /* confdefs.h.  */
32553 _ACEOF
32554 cat confdefs.h >>conftest.$ac_ext
32555 cat >>conftest.$ac_ext <<_ACEOF
32556 /* end confdefs.h.  */
32557 /* pthread test headers */
32558 #include <pthread.h>
32559 #if HAVE_PTHREADS < 7
32560 #include <errno.h>
32561 #endif
32562 #ifndef NULL
32563 #define NULL (void*)0
32564 #endif
32565
32566 static void *task(p)
32567         void *p;
32568 {
32569         return (void *) (p == NULL);
32570 }
32571
32572
32573 int main(argc, argv)
32574         int argc;
32575         char **argv;
32576 {
32577
32578         /* pthread test function */
32579 #ifndef PTHREAD_CREATE_DETACHED
32580 #define PTHREAD_CREATE_DETACHED 1
32581 #endif
32582         pthread_t t;
32583         int status;
32584         int detach = PTHREAD_CREATE_DETACHED;
32585
32586 #if HAVE_PTHREADS > 4
32587         /* Final pthreads */
32588         pthread_attr_t attr;
32589
32590         status = pthread_attr_init(&attr);
32591         if( status ) return status;
32592
32593 #if HAVE_PTHREADS < 7
32594         status = pthread_attr_setdetachstate(&attr, &detach);
32595         if( status < 0 ) status = errno;
32596 #else
32597         status = pthread_attr_setdetachstate(&attr, detach);
32598 #endif
32599         if( status ) return status;
32600         status = pthread_create( &t, &attr, task, NULL );
32601 #if HAVE_PTHREADS < 7
32602         if( status < 0 ) status = errno;
32603 #endif
32604         if( status ) return status;
32605 #else
32606         /* Draft 4 pthreads */
32607         status = pthread_create( &t, pthread_attr_default, task, NULL );
32608         if( status ) return errno;
32609
32610         /* give thread a chance to complete */
32611         /* it should remain joinable and hence detachable */
32612         sleep( 1 );
32613
32614         status = pthread_detach( &t );
32615         if( status ) return errno;
32616 #endif
32617
32618 #ifdef HAVE_LINUX_THREADS
32619         pthread_kill_other_threads_np();
32620 #endif
32621
32622         return 0;
32623
32624 }
32625
32626 _ACEOF
32627 rm -f conftest$ac_exeext
32628 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32629   (eval $ac_link) 2>&5
32630   ac_status=$?
32631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32632   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32634   (eval $ac_try) 2>&5
32635   ac_status=$?
32636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32637   (exit $ac_status); }; }; then
32638   ol_cv_pthread_lpthread=yes
32639 else
32640   echo "$as_me: program exited with status $ac_status" >&5
32641 echo "$as_me: failed program was:" >&5
32642 sed 's/^/| /' conftest.$ac_ext >&5
32643
32644 ( exit $ac_status )
32645 ol_cv_pthread_lpthread=no
32646 fi
32647 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32648 fi
32649
32650                 # restore the LIBS
32651                 LIBS="$ol_LIBS"
32652
32653 fi
32654 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread" >&5
32655 echo "${ECHO_T}$ol_cv_pthread_lpthread" >&6
32656
32657         if test $ol_cv_pthread_lpthread = yes ; then
32658                 ol_link_pthreads="-lpthread"
32659                 ol_link_threads=posix
32660         fi
32661 fi
32662
32663                 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
32664 if test "$ol_link_threads" = no ; then
32665         # try -lc_r
32666         echo "$as_me:$LINENO: checking for pthread link with -lc_r" >&5
32667 echo $ECHO_N "checking for pthread link with -lc_r... $ECHO_C" >&6
32668 if test "${ol_cv_pthread_lc_r+set}" = set; then
32669   echo $ECHO_N "(cached) $ECHO_C" >&6
32670 else
32671
32672                 # save the flags
32673                 ol_LIBS="$LIBS"
32674                 LIBS="-lc_r $LIBS"
32675
32676                 if test "$cross_compiling" = yes; then
32677   cat >conftest.$ac_ext <<_ACEOF
32678 /* confdefs.h.  */
32679 _ACEOF
32680 cat confdefs.h >>conftest.$ac_ext
32681 cat >>conftest.$ac_ext <<_ACEOF
32682 /* end confdefs.h.  */
32683 /* pthread test headers */
32684 #include <pthread.h>
32685 #if HAVE_PTHREADS < 7
32686 #include <errno.h>
32687 #endif
32688 #ifndef NULL
32689 #define NULL (void*)0
32690 #endif
32691
32692 static void *task(p)
32693         void *p;
32694 {
32695         return (void *) (p == NULL);
32696 }
32697
32698 int
32699 main ()
32700 {
32701
32702         /* pthread test function */
32703 #ifndef PTHREAD_CREATE_DETACHED
32704 #define PTHREAD_CREATE_DETACHED 1
32705 #endif
32706         pthread_t t;
32707         int status;
32708         int detach = PTHREAD_CREATE_DETACHED;
32709
32710 #if HAVE_PTHREADS > 4
32711         /* Final pthreads */
32712         pthread_attr_t attr;
32713
32714         status = pthread_attr_init(&attr);
32715         if( status ) return status;
32716
32717 #if HAVE_PTHREADS < 7
32718         status = pthread_attr_setdetachstate(&attr, &detach);
32719         if( status < 0 ) status = errno;
32720 #else
32721         status = pthread_attr_setdetachstate(&attr, detach);
32722 #endif
32723         if( status ) return status;
32724         status = pthread_create( &t, &attr, task, NULL );
32725 #if HAVE_PTHREADS < 7
32726         if( status < 0 ) status = errno;
32727 #endif
32728         if( status ) return status;
32729 #else
32730         /* Draft 4 pthreads */
32731         status = pthread_create( &t, pthread_attr_default, task, NULL );
32732         if( status ) return errno;
32733
32734         /* give thread a chance to complete */
32735         /* it should remain joinable and hence detachable */
32736         sleep( 1 );
32737
32738         status = pthread_detach( &t );
32739         if( status ) return errno;
32740 #endif
32741
32742 #ifdef HAVE_LINUX_THREADS
32743         pthread_kill_other_threads_np();
32744 #endif
32745
32746         return 0;
32747
32748   ;
32749   return 0;
32750 }
32751 _ACEOF
32752 rm -f conftest.$ac_objext conftest$ac_exeext
32753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32754   (eval $ac_link) 2>conftest.er1
32755   ac_status=$?
32756   grep -v '^ *+' conftest.er1 >conftest.err
32757   rm -f conftest.er1
32758   cat conftest.err >&5
32759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32760   (exit $ac_status); } &&
32761          { ac_try='test -z "$ac_c_werror_flag"
32762                          || test ! -s conftest.err'
32763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32764   (eval $ac_try) 2>&5
32765   ac_status=$?
32766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32767   (exit $ac_status); }; } &&
32768          { ac_try='test -s conftest$ac_exeext'
32769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32770   (eval $ac_try) 2>&5
32771   ac_status=$?
32772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32773   (exit $ac_status); }; }; then
32774   ol_cv_pthread_lc_r=yes
32775 else
32776   echo "$as_me: failed program was:" >&5
32777 sed 's/^/| /' conftest.$ac_ext >&5
32778
32779 ol_cv_pthread_lc_r=no
32780 fi
32781 rm -f conftest.err conftest.$ac_objext \
32782       conftest$ac_exeext conftest.$ac_ext
32783 else
32784   cat >conftest.$ac_ext <<_ACEOF
32785 /* confdefs.h.  */
32786 _ACEOF
32787 cat confdefs.h >>conftest.$ac_ext
32788 cat >>conftest.$ac_ext <<_ACEOF
32789 /* end confdefs.h.  */
32790 /* pthread test headers */
32791 #include <pthread.h>
32792 #if HAVE_PTHREADS < 7
32793 #include <errno.h>
32794 #endif
32795 #ifndef NULL
32796 #define NULL (void*)0
32797 #endif
32798
32799 static void *task(p)
32800         void *p;
32801 {
32802         return (void *) (p == NULL);
32803 }
32804
32805
32806 int main(argc, argv)
32807         int argc;
32808         char **argv;
32809 {
32810
32811         /* pthread test function */
32812 #ifndef PTHREAD_CREATE_DETACHED
32813 #define PTHREAD_CREATE_DETACHED 1
32814 #endif
32815         pthread_t t;
32816         int status;
32817         int detach = PTHREAD_CREATE_DETACHED;
32818
32819 #if HAVE_PTHREADS > 4
32820         /* Final pthreads */
32821         pthread_attr_t attr;
32822
32823         status = pthread_attr_init(&attr);
32824         if( status ) return status;
32825
32826 #if HAVE_PTHREADS < 7
32827         status = pthread_attr_setdetachstate(&attr, &detach);
32828         if( status < 0 ) status = errno;
32829 #else
32830         status = pthread_attr_setdetachstate(&attr, detach);
32831 #endif
32832         if( status ) return status;
32833         status = pthread_create( &t, &attr, task, NULL );
32834 #if HAVE_PTHREADS < 7
32835         if( status < 0 ) status = errno;
32836 #endif
32837         if( status ) return status;
32838 #else
32839         /* Draft 4 pthreads */
32840         status = pthread_create( &t, pthread_attr_default, task, NULL );
32841         if( status ) return errno;
32842
32843         /* give thread a chance to complete */
32844         /* it should remain joinable and hence detachable */
32845         sleep( 1 );
32846
32847         status = pthread_detach( &t );
32848         if( status ) return errno;
32849 #endif
32850
32851 #ifdef HAVE_LINUX_THREADS
32852         pthread_kill_other_threads_np();
32853 #endif
32854
32855         return 0;
32856
32857 }
32858
32859 _ACEOF
32860 rm -f conftest$ac_exeext
32861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32862   (eval $ac_link) 2>&5
32863   ac_status=$?
32864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32865   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32867   (eval $ac_try) 2>&5
32868   ac_status=$?
32869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32870   (exit $ac_status); }; }; then
32871   ol_cv_pthread_lc_r=yes
32872 else
32873   echo "$as_me: program exited with status $ac_status" >&5
32874 echo "$as_me: failed program was:" >&5
32875 sed 's/^/| /' conftest.$ac_ext >&5
32876
32877 ( exit $ac_status )
32878 ol_cv_pthread_lc_r=no
32879 fi
32880 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32881 fi
32882
32883                 # restore the LIBS
32884                 LIBS="$ol_LIBS"
32885
32886 fi
32887 echo "$as_me:$LINENO: result: $ol_cv_pthread_lc_r" >&5
32888 echo "${ECHO_T}$ol_cv_pthread_lc_r" >&6
32889
32890         if test $ol_cv_pthread_lc_r = yes ; then
32891                 ol_link_pthreads="-lc_r"
32892                 ol_link_threads=posix
32893         fi
32894 fi
32895
32896
32897                 # Pthread try link: -threads (ol_cv_pthread_threads)
32898 if test "$ol_link_threads" = no ; then
32899         # try -threads
32900         echo "$as_me:$LINENO: checking for pthread link with -threads" >&5
32901 echo $ECHO_N "checking for pthread link with -threads... $ECHO_C" >&6
32902 if test "${ol_cv_pthread_threads+set}" = set; then
32903   echo $ECHO_N "(cached) $ECHO_C" >&6
32904 else
32905
32906                 # save the flags
32907                 ol_LIBS="$LIBS"
32908                 LIBS="-threads $LIBS"
32909
32910                 if test "$cross_compiling" = yes; then
32911   cat >conftest.$ac_ext <<_ACEOF
32912 /* confdefs.h.  */
32913 _ACEOF
32914 cat confdefs.h >>conftest.$ac_ext
32915 cat >>conftest.$ac_ext <<_ACEOF
32916 /* end confdefs.h.  */
32917 /* pthread test headers */
32918 #include <pthread.h>
32919 #if HAVE_PTHREADS < 7
32920 #include <errno.h>
32921 #endif
32922 #ifndef NULL
32923 #define NULL (void*)0
32924 #endif
32925
32926 static void *task(p)
32927         void *p;
32928 {
32929         return (void *) (p == NULL);
32930 }
32931
32932 int
32933 main ()
32934 {
32935
32936         /* pthread test function */
32937 #ifndef PTHREAD_CREATE_DETACHED
32938 #define PTHREAD_CREATE_DETACHED 1
32939 #endif
32940         pthread_t t;
32941         int status;
32942         int detach = PTHREAD_CREATE_DETACHED;
32943
32944 #if HAVE_PTHREADS > 4
32945         /* Final pthreads */
32946         pthread_attr_t attr;
32947
32948         status = pthread_attr_init(&attr);
32949         if( status ) return status;
32950
32951 #if HAVE_PTHREADS < 7
32952         status = pthread_attr_setdetachstate(&attr, &detach);
32953         if( status < 0 ) status = errno;
32954 #else
32955         status = pthread_attr_setdetachstate(&attr, detach);
32956 #endif
32957         if( status ) return status;
32958         status = pthread_create( &t, &attr, task, NULL );
32959 #if HAVE_PTHREADS < 7
32960         if( status < 0 ) status = errno;
32961 #endif
32962         if( status ) return status;
32963 #else
32964         /* Draft 4 pthreads */
32965         status = pthread_create( &t, pthread_attr_default, task, NULL );
32966         if( status ) return errno;
32967
32968         /* give thread a chance to complete */
32969         /* it should remain joinable and hence detachable */
32970         sleep( 1 );
32971
32972         status = pthread_detach( &t );
32973         if( status ) return errno;
32974 #endif
32975
32976 #ifdef HAVE_LINUX_THREADS
32977         pthread_kill_other_threads_np();
32978 #endif
32979
32980         return 0;
32981
32982   ;
32983   return 0;
32984 }
32985 _ACEOF
32986 rm -f conftest.$ac_objext conftest$ac_exeext
32987 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32988   (eval $ac_link) 2>conftest.er1
32989   ac_status=$?
32990   grep -v '^ *+' conftest.er1 >conftest.err
32991   rm -f conftest.er1
32992   cat conftest.err >&5
32993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32994   (exit $ac_status); } &&
32995          { ac_try='test -z "$ac_c_werror_flag"
32996                          || test ! -s conftest.err'
32997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32998   (eval $ac_try) 2>&5
32999   ac_status=$?
33000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33001   (exit $ac_status); }; } &&
33002          { ac_try='test -s conftest$ac_exeext'
33003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33004   (eval $ac_try) 2>&5
33005   ac_status=$?
33006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33007   (exit $ac_status); }; }; then
33008   ol_cv_pthread_threads=yes
33009 else
33010   echo "$as_me: failed program was:" >&5
33011 sed 's/^/| /' conftest.$ac_ext >&5
33012
33013 ol_cv_pthread_threads=no
33014 fi
33015 rm -f conftest.err conftest.$ac_objext \
33016       conftest$ac_exeext conftest.$ac_ext
33017 else
33018   cat >conftest.$ac_ext <<_ACEOF
33019 /* confdefs.h.  */
33020 _ACEOF
33021 cat confdefs.h >>conftest.$ac_ext
33022 cat >>conftest.$ac_ext <<_ACEOF
33023 /* end confdefs.h.  */
33024 /* pthread test headers */
33025 #include <pthread.h>
33026 #if HAVE_PTHREADS < 7
33027 #include <errno.h>
33028 #endif
33029 #ifndef NULL
33030 #define NULL (void*)0
33031 #endif
33032
33033 static void *task(p)
33034         void *p;
33035 {
33036         return (void *) (p == NULL);
33037 }
33038
33039
33040 int main(argc, argv)
33041         int argc;
33042         char **argv;
33043 {
33044
33045         /* pthread test function */
33046 #ifndef PTHREAD_CREATE_DETACHED
33047 #define PTHREAD_CREATE_DETACHED 1
33048 #endif
33049         pthread_t t;
33050         int status;
33051         int detach = PTHREAD_CREATE_DETACHED;
33052
33053 #if HAVE_PTHREADS > 4
33054         /* Final pthreads */
33055         pthread_attr_t attr;
33056
33057         status = pthread_attr_init(&attr);
33058         if( status ) return status;
33059
33060 #if HAVE_PTHREADS < 7
33061         status = pthread_attr_setdetachstate(&attr, &detach);
33062         if( status < 0 ) status = errno;
33063 #else
33064         status = pthread_attr_setdetachstate(&attr, detach);
33065 #endif
33066         if( status ) return status;
33067         status = pthread_create( &t, &attr, task, NULL );
33068 #if HAVE_PTHREADS < 7
33069         if( status < 0 ) status = errno;
33070 #endif
33071         if( status ) return status;
33072 #else
33073         /* Draft 4 pthreads */
33074         status = pthread_create( &t, pthread_attr_default, task, NULL );
33075         if( status ) return errno;
33076
33077         /* give thread a chance to complete */
33078         /* it should remain joinable and hence detachable */
33079         sleep( 1 );
33080
33081         status = pthread_detach( &t );
33082         if( status ) return errno;
33083 #endif
33084
33085 #ifdef HAVE_LINUX_THREADS
33086         pthread_kill_other_threads_np();
33087 #endif
33088
33089         return 0;
33090
33091 }
33092
33093 _ACEOF
33094 rm -f conftest$ac_exeext
33095 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33096   (eval $ac_link) 2>&5
33097   ac_status=$?
33098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33099   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33101   (eval $ac_try) 2>&5
33102   ac_status=$?
33103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33104   (exit $ac_status); }; }; then
33105   ol_cv_pthread_threads=yes
33106 else
33107   echo "$as_me: program exited with status $ac_status" >&5
33108 echo "$as_me: failed program was:" >&5
33109 sed 's/^/| /' conftest.$ac_ext >&5
33110
33111 ( exit $ac_status )
33112 ol_cv_pthread_threads=no
33113 fi
33114 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33115 fi
33116
33117                 # restore the LIBS
33118                 LIBS="$ol_LIBS"
33119
33120 fi
33121 echo "$as_me:$LINENO: result: $ol_cv_pthread_threads" >&5
33122 echo "${ECHO_T}$ol_cv_pthread_threads" >&6
33123
33124         if test $ol_cv_pthread_threads = yes ; then
33125                 ol_link_pthreads="-threads"
33126                 ol_link_threads=posix
33127         fi
33128 fi
33129
33130
33131                 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
33132 if test "$ol_link_threads" = no ; then
33133         # try -lpthreads -lmach -lexc -lc_r
33134         echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
33135 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc -lc_r... $ECHO_C" >&6
33136 if test "${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}" = set; then
33137   echo $ECHO_N "(cached) $ECHO_C" >&6
33138 else
33139
33140                 # save the flags
33141                 ol_LIBS="$LIBS"
33142                 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
33143
33144                 if test "$cross_compiling" = yes; then
33145   cat >conftest.$ac_ext <<_ACEOF
33146 /* confdefs.h.  */
33147 _ACEOF
33148 cat confdefs.h >>conftest.$ac_ext
33149 cat >>conftest.$ac_ext <<_ACEOF
33150 /* end confdefs.h.  */
33151 /* pthread test headers */
33152 #include <pthread.h>
33153 #if HAVE_PTHREADS < 7
33154 #include <errno.h>
33155 #endif
33156 #ifndef NULL
33157 #define NULL (void*)0
33158 #endif
33159
33160 static void *task(p)
33161         void *p;
33162 {
33163         return (void *) (p == NULL);
33164 }
33165
33166 int
33167 main ()
33168 {
33169
33170         /* pthread test function */
33171 #ifndef PTHREAD_CREATE_DETACHED
33172 #define PTHREAD_CREATE_DETACHED 1
33173 #endif
33174         pthread_t t;
33175         int status;
33176         int detach = PTHREAD_CREATE_DETACHED;
33177
33178 #if HAVE_PTHREADS > 4
33179         /* Final pthreads */
33180         pthread_attr_t attr;
33181
33182         status = pthread_attr_init(&attr);
33183         if( status ) return status;
33184
33185 #if HAVE_PTHREADS < 7
33186         status = pthread_attr_setdetachstate(&attr, &detach);
33187         if( status < 0 ) status = errno;
33188 #else
33189         status = pthread_attr_setdetachstate(&attr, detach);
33190 #endif
33191         if( status ) return status;
33192         status = pthread_create( &t, &attr, task, NULL );
33193 #if HAVE_PTHREADS < 7
33194         if( status < 0 ) status = errno;
33195 #endif
33196         if( status ) return status;
33197 #else
33198         /* Draft 4 pthreads */
33199         status = pthread_create( &t, pthread_attr_default, task, NULL );
33200         if( status ) return errno;
33201
33202         /* give thread a chance to complete */
33203         /* it should remain joinable and hence detachable */
33204         sleep( 1 );
33205
33206         status = pthread_detach( &t );
33207         if( status ) return errno;
33208 #endif
33209
33210 #ifdef HAVE_LINUX_THREADS
33211         pthread_kill_other_threads_np();
33212 #endif
33213
33214         return 0;
33215
33216   ;
33217   return 0;
33218 }
33219 _ACEOF
33220 rm -f conftest.$ac_objext conftest$ac_exeext
33221 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33222   (eval $ac_link) 2>conftest.er1
33223   ac_status=$?
33224   grep -v '^ *+' conftest.er1 >conftest.err
33225   rm -f conftest.er1
33226   cat conftest.err >&5
33227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33228   (exit $ac_status); } &&
33229          { ac_try='test -z "$ac_c_werror_flag"
33230                          || test ! -s conftest.err'
33231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33232   (eval $ac_try) 2>&5
33233   ac_status=$?
33234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33235   (exit $ac_status); }; } &&
33236          { ac_try='test -s conftest$ac_exeext'
33237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33238   (eval $ac_try) 2>&5
33239   ac_status=$?
33240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33241   (exit $ac_status); }; }; then
33242   ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
33243 else
33244   echo "$as_me: failed program was:" >&5
33245 sed 's/^/| /' conftest.$ac_ext >&5
33246
33247 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
33248 fi
33249 rm -f conftest.err conftest.$ac_objext \
33250       conftest$ac_exeext conftest.$ac_ext
33251 else
33252   cat >conftest.$ac_ext <<_ACEOF
33253 /* confdefs.h.  */
33254 _ACEOF
33255 cat confdefs.h >>conftest.$ac_ext
33256 cat >>conftest.$ac_ext <<_ACEOF
33257 /* end confdefs.h.  */
33258 /* pthread test headers */
33259 #include <pthread.h>
33260 #if HAVE_PTHREADS < 7
33261 #include <errno.h>
33262 #endif
33263 #ifndef NULL
33264 #define NULL (void*)0
33265 #endif
33266
33267 static void *task(p)
33268         void *p;
33269 {
33270         return (void *) (p == NULL);
33271 }
33272
33273
33274 int main(argc, argv)
33275         int argc;
33276         char **argv;
33277 {
33278
33279         /* pthread test function */
33280 #ifndef PTHREAD_CREATE_DETACHED
33281 #define PTHREAD_CREATE_DETACHED 1
33282 #endif
33283         pthread_t t;
33284         int status;
33285         int detach = PTHREAD_CREATE_DETACHED;
33286
33287 #if HAVE_PTHREADS > 4
33288         /* Final pthreads */
33289         pthread_attr_t attr;
33290
33291         status = pthread_attr_init(&attr);
33292         if( status ) return status;
33293
33294 #if HAVE_PTHREADS < 7
33295         status = pthread_attr_setdetachstate(&attr, &detach);
33296         if( status < 0 ) status = errno;
33297 #else
33298         status = pthread_attr_setdetachstate(&attr, detach);
33299 #endif
33300         if( status ) return status;
33301         status = pthread_create( &t, &attr, task, NULL );
33302 #if HAVE_PTHREADS < 7
33303         if( status < 0 ) status = errno;
33304 #endif
33305         if( status ) return status;
33306 #else
33307         /* Draft 4 pthreads */
33308         status = pthread_create( &t, pthread_attr_default, task, NULL );
33309         if( status ) return errno;
33310
33311         /* give thread a chance to complete */
33312         /* it should remain joinable and hence detachable */
33313         sleep( 1 );
33314
33315         status = pthread_detach( &t );
33316         if( status ) return errno;
33317 #endif
33318
33319 #ifdef HAVE_LINUX_THREADS
33320         pthread_kill_other_threads_np();
33321 #endif
33322
33323         return 0;
33324
33325 }
33326
33327 _ACEOF
33328 rm -f conftest$ac_exeext
33329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33330   (eval $ac_link) 2>&5
33331   ac_status=$?
33332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33333   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33335   (eval $ac_try) 2>&5
33336   ac_status=$?
33337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33338   (exit $ac_status); }; }; then
33339   ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
33340 else
33341   echo "$as_me: program exited with status $ac_status" >&5
33342 echo "$as_me: failed program was:" >&5
33343 sed 's/^/| /' conftest.$ac_ext >&5
33344
33345 ( exit $ac_status )
33346 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
33347 fi
33348 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33349 fi
33350
33351                 # restore the LIBS
33352                 LIBS="$ol_LIBS"
33353
33354 fi
33355 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
33356 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6
33357
33358         if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
33359                 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
33360                 ol_link_threads=posix
33361         fi
33362 fi
33363
33364                 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
33365 if test "$ol_link_threads" = no ; then
33366         # try -lpthreads -lmach -lexc
33367         echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc" >&5
33368 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc... $ECHO_C" >&6
33369 if test "${ol_cv_pthread_lpthreads_lmach_lexc+set}" = set; then
33370   echo $ECHO_N "(cached) $ECHO_C" >&6
33371 else
33372
33373                 # save the flags
33374                 ol_LIBS="$LIBS"
33375                 LIBS="-lpthreads -lmach -lexc $LIBS"
33376
33377                 if test "$cross_compiling" = yes; then
33378   cat >conftest.$ac_ext <<_ACEOF
33379 /* confdefs.h.  */
33380 _ACEOF
33381 cat confdefs.h >>conftest.$ac_ext
33382 cat >>conftest.$ac_ext <<_ACEOF
33383 /* end confdefs.h.  */
33384 /* pthread test headers */
33385 #include <pthread.h>
33386 #if HAVE_PTHREADS < 7
33387 #include <errno.h>
33388 #endif
33389 #ifndef NULL
33390 #define NULL (void*)0
33391 #endif
33392
33393 static void *task(p)
33394         void *p;
33395 {
33396         return (void *) (p == NULL);
33397 }
33398
33399 int
33400 main ()
33401 {
33402
33403         /* pthread test function */
33404 #ifndef PTHREAD_CREATE_DETACHED
33405 #define PTHREAD_CREATE_DETACHED 1
33406 #endif
33407         pthread_t t;
33408         int status;
33409         int detach = PTHREAD_CREATE_DETACHED;
33410
33411 #if HAVE_PTHREADS > 4
33412         /* Final pthreads */
33413         pthread_attr_t attr;
33414
33415         status = pthread_attr_init(&attr);
33416         if( status ) return status;
33417
33418 #if HAVE_PTHREADS < 7
33419         status = pthread_attr_setdetachstate(&attr, &detach);
33420         if( status < 0 ) status = errno;
33421 #else
33422         status = pthread_attr_setdetachstate(&attr, detach);
33423 #endif
33424         if( status ) return status;
33425         status = pthread_create( &t, &attr, task, NULL );
33426 #if HAVE_PTHREADS < 7
33427         if( status < 0 ) status = errno;
33428 #endif
33429         if( status ) return status;
33430 #else
33431         /* Draft 4 pthreads */
33432         status = pthread_create( &t, pthread_attr_default, task, NULL );
33433         if( status ) return errno;
33434
33435         /* give thread a chance to complete */
33436         /* it should remain joinable and hence detachable */
33437         sleep( 1 );
33438
33439         status = pthread_detach( &t );
33440         if( status ) return errno;
33441 #endif
33442
33443 #ifdef HAVE_LINUX_THREADS
33444         pthread_kill_other_threads_np();
33445 #endif
33446
33447         return 0;
33448
33449   ;
33450   return 0;
33451 }
33452 _ACEOF
33453 rm -f conftest.$ac_objext conftest$ac_exeext
33454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33455   (eval $ac_link) 2>conftest.er1
33456   ac_status=$?
33457   grep -v '^ *+' conftest.er1 >conftest.err
33458   rm -f conftest.er1
33459   cat conftest.err >&5
33460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33461   (exit $ac_status); } &&
33462          { ac_try='test -z "$ac_c_werror_flag"
33463                          || test ! -s conftest.err'
33464   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33465   (eval $ac_try) 2>&5
33466   ac_status=$?
33467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33468   (exit $ac_status); }; } &&
33469          { ac_try='test -s conftest$ac_exeext'
33470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33471   (eval $ac_try) 2>&5
33472   ac_status=$?
33473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33474   (exit $ac_status); }; }; then
33475   ol_cv_pthread_lpthreads_lmach_lexc=yes
33476 else
33477   echo "$as_me: failed program was:" >&5
33478 sed 's/^/| /' conftest.$ac_ext >&5
33479
33480 ol_cv_pthread_lpthreads_lmach_lexc=no
33481 fi
33482 rm -f conftest.err conftest.$ac_objext \
33483       conftest$ac_exeext conftest.$ac_ext
33484 else
33485   cat >conftest.$ac_ext <<_ACEOF
33486 /* confdefs.h.  */
33487 _ACEOF
33488 cat confdefs.h >>conftest.$ac_ext
33489 cat >>conftest.$ac_ext <<_ACEOF
33490 /* end confdefs.h.  */
33491 /* pthread test headers */
33492 #include <pthread.h>
33493 #if HAVE_PTHREADS < 7
33494 #include <errno.h>
33495 #endif
33496 #ifndef NULL
33497 #define NULL (void*)0
33498 #endif
33499
33500 static void *task(p)
33501         void *p;
33502 {
33503         return (void *) (p == NULL);
33504 }
33505
33506
33507 int main(argc, argv)
33508         int argc;
33509         char **argv;
33510 {
33511
33512         /* pthread test function */
33513 #ifndef PTHREAD_CREATE_DETACHED
33514 #define PTHREAD_CREATE_DETACHED 1
33515 #endif
33516         pthread_t t;
33517         int status;
33518         int detach = PTHREAD_CREATE_DETACHED;
33519
33520 #if HAVE_PTHREADS > 4
33521         /* Final pthreads */
33522         pthread_attr_t attr;
33523
33524         status = pthread_attr_init(&attr);
33525         if( status ) return status;
33526
33527 #if HAVE_PTHREADS < 7
33528         status = pthread_attr_setdetachstate(&attr, &detach);
33529         if( status < 0 ) status = errno;
33530 #else
33531         status = pthread_attr_setdetachstate(&attr, detach);
33532 #endif
33533         if( status ) return status;
33534         status = pthread_create( &t, &attr, task, NULL );
33535 #if HAVE_PTHREADS < 7
33536         if( status < 0 ) status = errno;
33537 #endif
33538         if( status ) return status;
33539 #else
33540         /* Draft 4 pthreads */
33541         status = pthread_create( &t, pthread_attr_default, task, NULL );
33542         if( status ) return errno;
33543
33544         /* give thread a chance to complete */
33545         /* it should remain joinable and hence detachable */
33546         sleep( 1 );
33547
33548         status = pthread_detach( &t );
33549         if( status ) return errno;
33550 #endif
33551
33552 #ifdef HAVE_LINUX_THREADS
33553         pthread_kill_other_threads_np();
33554 #endif
33555
33556         return 0;
33557
33558 }
33559
33560 _ACEOF
33561 rm -f conftest$ac_exeext
33562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33563   (eval $ac_link) 2>&5
33564   ac_status=$?
33565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33566   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33568   (eval $ac_try) 2>&5
33569   ac_status=$?
33570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33571   (exit $ac_status); }; }; then
33572   ol_cv_pthread_lpthreads_lmach_lexc=yes
33573 else
33574   echo "$as_me: program exited with status $ac_status" >&5
33575 echo "$as_me: failed program was:" >&5
33576 sed 's/^/| /' conftest.$ac_ext >&5
33577
33578 ( exit $ac_status )
33579 ol_cv_pthread_lpthreads_lmach_lexc=no
33580 fi
33581 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33582 fi
33583
33584                 # restore the LIBS
33585                 LIBS="$ol_LIBS"
33586
33587 fi
33588 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
33589 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc" >&6
33590
33591         if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
33592                 ol_link_pthreads="-lpthreads -lmach -lexc"
33593                 ol_link_threads=posix
33594         fi
33595 fi
33596
33597                 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
33598 if test "$ol_link_threads" = no ; then
33599         # try -lpthreads -lexc
33600         echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lexc" >&5
33601 echo $ECHO_N "checking for pthread link with -lpthreads -lexc... $ECHO_C" >&6
33602 if test "${ol_cv_pthread_lpthreads_lexc+set}" = set; then
33603   echo $ECHO_N "(cached) $ECHO_C" >&6
33604 else
33605
33606                 # save the flags
33607                 ol_LIBS="$LIBS"
33608                 LIBS="-lpthreads -lexc $LIBS"
33609
33610                 if test "$cross_compiling" = yes; then
33611   cat >conftest.$ac_ext <<_ACEOF
33612 /* confdefs.h.  */
33613 _ACEOF
33614 cat confdefs.h >>conftest.$ac_ext
33615 cat >>conftest.$ac_ext <<_ACEOF
33616 /* end confdefs.h.  */
33617 /* pthread test headers */
33618 #include <pthread.h>
33619 #if HAVE_PTHREADS < 7
33620 #include <errno.h>
33621 #endif
33622 #ifndef NULL
33623 #define NULL (void*)0
33624 #endif
33625
33626 static void *task(p)
33627         void *p;
33628 {
33629         return (void *) (p == NULL);
33630 }
33631
33632 int
33633 main ()
33634 {
33635
33636         /* pthread test function */
33637 #ifndef PTHREAD_CREATE_DETACHED
33638 #define PTHREAD_CREATE_DETACHED 1
33639 #endif
33640         pthread_t t;
33641         int status;
33642         int detach = PTHREAD_CREATE_DETACHED;
33643
33644 #if HAVE_PTHREADS > 4
33645         /* Final pthreads */
33646         pthread_attr_t attr;
33647
33648         status = pthread_attr_init(&attr);
33649         if( status ) return status;
33650
33651 #if HAVE_PTHREADS < 7
33652         status = pthread_attr_setdetachstate(&attr, &detach);
33653         if( status < 0 ) status = errno;
33654 #else
33655         status = pthread_attr_setdetachstate(&attr, detach);
33656 #endif
33657         if( status ) return status;
33658         status = pthread_create( &t, &attr, task, NULL );
33659 #if HAVE_PTHREADS < 7
33660         if( status < 0 ) status = errno;
33661 #endif
33662         if( status ) return status;
33663 #else
33664         /* Draft 4 pthreads */
33665         status = pthread_create( &t, pthread_attr_default, task, NULL );
33666         if( status ) return errno;
33667
33668         /* give thread a chance to complete */
33669         /* it should remain joinable and hence detachable */
33670         sleep( 1 );
33671
33672         status = pthread_detach( &t );
33673         if( status ) return errno;
33674 #endif
33675
33676 #ifdef HAVE_LINUX_THREADS
33677         pthread_kill_other_threads_np();
33678 #endif
33679
33680         return 0;
33681
33682   ;
33683   return 0;
33684 }
33685 _ACEOF
33686 rm -f conftest.$ac_objext conftest$ac_exeext
33687 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33688   (eval $ac_link) 2>conftest.er1
33689   ac_status=$?
33690   grep -v '^ *+' conftest.er1 >conftest.err
33691   rm -f conftest.er1
33692   cat conftest.err >&5
33693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33694   (exit $ac_status); } &&
33695          { ac_try='test -z "$ac_c_werror_flag"
33696                          || test ! -s conftest.err'
33697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33698   (eval $ac_try) 2>&5
33699   ac_status=$?
33700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33701   (exit $ac_status); }; } &&
33702          { ac_try='test -s conftest$ac_exeext'
33703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33704   (eval $ac_try) 2>&5
33705   ac_status=$?
33706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33707   (exit $ac_status); }; }; then
33708   ol_cv_pthread_lpthreads_lexc=yes
33709 else
33710   echo "$as_me: failed program was:" >&5
33711 sed 's/^/| /' conftest.$ac_ext >&5
33712
33713 ol_cv_pthread_lpthreads_lexc=no
33714 fi
33715 rm -f conftest.err conftest.$ac_objext \
33716       conftest$ac_exeext conftest.$ac_ext
33717 else
33718   cat >conftest.$ac_ext <<_ACEOF
33719 /* confdefs.h.  */
33720 _ACEOF
33721 cat confdefs.h >>conftest.$ac_ext
33722 cat >>conftest.$ac_ext <<_ACEOF
33723 /* end confdefs.h.  */
33724 /* pthread test headers */
33725 #include <pthread.h>
33726 #if HAVE_PTHREADS < 7
33727 #include <errno.h>
33728 #endif
33729 #ifndef NULL
33730 #define NULL (void*)0
33731 #endif
33732
33733 static void *task(p)
33734         void *p;
33735 {
33736         return (void *) (p == NULL);
33737 }
33738
33739
33740 int main(argc, argv)
33741         int argc;
33742         char **argv;
33743 {
33744
33745         /* pthread test function */
33746 #ifndef PTHREAD_CREATE_DETACHED
33747 #define PTHREAD_CREATE_DETACHED 1
33748 #endif
33749         pthread_t t;
33750         int status;
33751         int detach = PTHREAD_CREATE_DETACHED;
33752
33753 #if HAVE_PTHREADS > 4
33754         /* Final pthreads */
33755         pthread_attr_t attr;
33756
33757         status = pthread_attr_init(&attr);
33758         if( status ) return status;
33759
33760 #if HAVE_PTHREADS < 7
33761         status = pthread_attr_setdetachstate(&attr, &detach);
33762         if( status < 0 ) status = errno;
33763 #else
33764         status = pthread_attr_setdetachstate(&attr, detach);
33765 #endif
33766         if( status ) return status;
33767         status = pthread_create( &t, &attr, task, NULL );
33768 #if HAVE_PTHREADS < 7
33769         if( status < 0 ) status = errno;
33770 #endif
33771         if( status ) return status;
33772 #else
33773         /* Draft 4 pthreads */
33774         status = pthread_create( &t, pthread_attr_default, task, NULL );
33775         if( status ) return errno;
33776
33777         /* give thread a chance to complete */
33778         /* it should remain joinable and hence detachable */
33779         sleep( 1 );
33780
33781         status = pthread_detach( &t );
33782         if( status ) return errno;
33783 #endif
33784
33785 #ifdef HAVE_LINUX_THREADS
33786         pthread_kill_other_threads_np();
33787 #endif
33788
33789         return 0;
33790
33791 }
33792
33793 _ACEOF
33794 rm -f conftest$ac_exeext
33795 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33796   (eval $ac_link) 2>&5
33797   ac_status=$?
33798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33799   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33801   (eval $ac_try) 2>&5
33802   ac_status=$?
33803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33804   (exit $ac_status); }; }; then
33805   ol_cv_pthread_lpthreads_lexc=yes
33806 else
33807   echo "$as_me: program exited with status $ac_status" >&5
33808 echo "$as_me: failed program was:" >&5
33809 sed 's/^/| /' conftest.$ac_ext >&5
33810
33811 ( exit $ac_status )
33812 ol_cv_pthread_lpthreads_lexc=no
33813 fi
33814 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33815 fi
33816
33817                 # restore the LIBS
33818                 LIBS="$ol_LIBS"
33819
33820 fi
33821 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lexc" >&5
33822 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lexc" >&6
33823
33824         if test $ol_cv_pthread_lpthreads_lexc = yes ; then
33825                 ol_link_pthreads="-lpthreads -lexc"
33826                 ol_link_threads=posix
33827         fi
33828 fi
33829
33830
33831                 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
33832 if test "$ol_link_threads" = no ; then
33833         # try -lpthreads
33834         echo "$as_me:$LINENO: checking for pthread link with -lpthreads" >&5
33835 echo $ECHO_N "checking for pthread link with -lpthreads... $ECHO_C" >&6
33836 if test "${ol_cv_pthread_lib_lpthreads+set}" = set; then
33837   echo $ECHO_N "(cached) $ECHO_C" >&6
33838 else
33839
33840                 # save the flags
33841                 ol_LIBS="$LIBS"
33842                 LIBS="-lpthreads $LIBS"
33843
33844                 if test "$cross_compiling" = yes; then
33845   cat >conftest.$ac_ext <<_ACEOF
33846 /* confdefs.h.  */
33847 _ACEOF
33848 cat confdefs.h >>conftest.$ac_ext
33849 cat >>conftest.$ac_ext <<_ACEOF
33850 /* end confdefs.h.  */
33851 /* pthread test headers */
33852 #include <pthread.h>
33853 #if HAVE_PTHREADS < 7
33854 #include <errno.h>
33855 #endif
33856 #ifndef NULL
33857 #define NULL (void*)0
33858 #endif
33859
33860 static void *task(p)
33861         void *p;
33862 {
33863         return (void *) (p == NULL);
33864 }
33865
33866 int
33867 main ()
33868 {
33869
33870         /* pthread test function */
33871 #ifndef PTHREAD_CREATE_DETACHED
33872 #define PTHREAD_CREATE_DETACHED 1
33873 #endif
33874         pthread_t t;
33875         int status;
33876         int detach = PTHREAD_CREATE_DETACHED;
33877
33878 #if HAVE_PTHREADS > 4
33879         /* Final pthreads */
33880         pthread_attr_t attr;
33881
33882         status = pthread_attr_init(&attr);
33883         if( status ) return status;
33884
33885 #if HAVE_PTHREADS < 7
33886         status = pthread_attr_setdetachstate(&attr, &detach);
33887         if( status < 0 ) status = errno;
33888 #else
33889         status = pthread_attr_setdetachstate(&attr, detach);
33890 #endif
33891         if( status ) return status;
33892         status = pthread_create( &t, &attr, task, NULL );
33893 #if HAVE_PTHREADS < 7
33894         if( status < 0 ) status = errno;
33895 #endif
33896         if( status ) return status;
33897 #else
33898         /* Draft 4 pthreads */
33899         status = pthread_create( &t, pthread_attr_default, task, NULL );
33900         if( status ) return errno;
33901
33902         /* give thread a chance to complete */
33903         /* it should remain joinable and hence detachable */
33904         sleep( 1 );
33905
33906         status = pthread_detach( &t );
33907         if( status ) return errno;
33908 #endif
33909
33910 #ifdef HAVE_LINUX_THREADS
33911         pthread_kill_other_threads_np();
33912 #endif
33913
33914         return 0;
33915
33916   ;
33917   return 0;
33918 }
33919 _ACEOF
33920 rm -f conftest.$ac_objext conftest$ac_exeext
33921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33922   (eval $ac_link) 2>conftest.er1
33923   ac_status=$?
33924   grep -v '^ *+' conftest.er1 >conftest.err
33925   rm -f conftest.er1
33926   cat conftest.err >&5
33927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33928   (exit $ac_status); } &&
33929          { ac_try='test -z "$ac_c_werror_flag"
33930                          || test ! -s conftest.err'
33931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33932   (eval $ac_try) 2>&5
33933   ac_status=$?
33934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33935   (exit $ac_status); }; } &&
33936          { ac_try='test -s conftest$ac_exeext'
33937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33938   (eval $ac_try) 2>&5
33939   ac_status=$?
33940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33941   (exit $ac_status); }; }; then
33942   ol_cv_pthread_lib_lpthreads=yes
33943 else
33944   echo "$as_me: failed program was:" >&5
33945 sed 's/^/| /' conftest.$ac_ext >&5
33946
33947 ol_cv_pthread_lib_lpthreads=no
33948 fi
33949 rm -f conftest.err conftest.$ac_objext \
33950       conftest$ac_exeext conftest.$ac_ext
33951 else
33952   cat >conftest.$ac_ext <<_ACEOF
33953 /* confdefs.h.  */
33954 _ACEOF
33955 cat confdefs.h >>conftest.$ac_ext
33956 cat >>conftest.$ac_ext <<_ACEOF
33957 /* end confdefs.h.  */
33958 /* pthread test headers */
33959 #include <pthread.h>
33960 #if HAVE_PTHREADS < 7
33961 #include <errno.h>
33962 #endif
33963 #ifndef NULL
33964 #define NULL (void*)0
33965 #endif
33966
33967 static void *task(p)
33968         void *p;
33969 {
33970         return (void *) (p == NULL);
33971 }
33972
33973
33974 int main(argc, argv)
33975         int argc;
33976         char **argv;
33977 {
33978
33979         /* pthread test function */
33980 #ifndef PTHREAD_CREATE_DETACHED
33981 #define PTHREAD_CREATE_DETACHED 1
33982 #endif
33983         pthread_t t;
33984         int status;
33985         int detach = PTHREAD_CREATE_DETACHED;
33986
33987 #if HAVE_PTHREADS > 4
33988         /* Final pthreads */
33989         pthread_attr_t attr;
33990
33991         status = pthread_attr_init(&attr);
33992         if( status ) return status;
33993
33994 #if HAVE_PTHREADS < 7
33995         status = pthread_attr_setdetachstate(&attr, &detach);
33996         if( status < 0 ) status = errno;
33997 #else
33998         status = pthread_attr_setdetachstate(&attr, detach);
33999 #endif
34000         if( status ) return status;
34001         status = pthread_create( &t, &attr, task, NULL );
34002 #if HAVE_PTHREADS < 7
34003         if( status < 0 ) status = errno;
34004 #endif
34005         if( status ) return status;
34006 #else
34007         /* Draft 4 pthreads */
34008         status = pthread_create( &t, pthread_attr_default, task, NULL );
34009         if( status ) return errno;
34010
34011         /* give thread a chance to complete */
34012         /* it should remain joinable and hence detachable */
34013         sleep( 1 );
34014
34015         status = pthread_detach( &t );
34016         if( status ) return errno;
34017 #endif
34018
34019 #ifdef HAVE_LINUX_THREADS
34020         pthread_kill_other_threads_np();
34021 #endif
34022
34023         return 0;
34024
34025 }
34026
34027 _ACEOF
34028 rm -f conftest$ac_exeext
34029 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34030   (eval $ac_link) 2>&5
34031   ac_status=$?
34032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34033   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34035   (eval $ac_try) 2>&5
34036   ac_status=$?
34037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34038   (exit $ac_status); }; }; then
34039   ol_cv_pthread_lib_lpthreads=yes
34040 else
34041   echo "$as_me: program exited with status $ac_status" >&5
34042 echo "$as_me: failed program was:" >&5
34043 sed 's/^/| /' conftest.$ac_ext >&5
34044
34045 ( exit $ac_status )
34046 ol_cv_pthread_lib_lpthreads=no
34047 fi
34048 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34049 fi
34050
34051                 # restore the LIBS
34052                 LIBS="$ol_LIBS"
34053
34054 fi
34055 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthreads" >&5
34056 echo "${ECHO_T}$ol_cv_pthread_lib_lpthreads" >&6
34057
34058         if test $ol_cv_pthread_lib_lpthreads = yes ; then
34059                 ol_link_pthreads="-lpthreads"
34060                 ol_link_threads=posix
34061         fi
34062 fi
34063
34064
34065                 if test $ol_link_threads != no ; then
34066                         LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
34067
34068                                                 save_CPPFLAGS="$CPPFLAGS"
34069                         save_LIBS="$LIBS"
34070                         LIBS="$LTHREAD_LIBS $LIBS"
34071
34072
34073
34074
34075 for ac_func in sched_yield pthread_yield thr_yield
34076 do
34077 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34078 echo "$as_me:$LINENO: checking for $ac_func" >&5
34079 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34080 if eval "test \"\${$as_ac_var+set}\" = set"; then
34081   echo $ECHO_N "(cached) $ECHO_C" >&6
34082 else
34083   cat >conftest.$ac_ext <<_ACEOF
34084 /* confdefs.h.  */
34085 _ACEOF
34086 cat confdefs.h >>conftest.$ac_ext
34087 cat >>conftest.$ac_ext <<_ACEOF
34088 /* end confdefs.h.  */
34089 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34090    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34091 #define $ac_func innocuous_$ac_func
34092
34093 /* System header to define __stub macros and hopefully few prototypes,
34094     which can conflict with char $ac_func (); below.
34095     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34096     <limits.h> exists even on freestanding compilers.  */
34097
34098 #ifdef __STDC__
34099 # include <limits.h>
34100 #else
34101 # include <assert.h>
34102 #endif
34103
34104 #undef $ac_func
34105
34106 /* Override any gcc2 internal prototype to avoid an error.  */
34107 #ifdef __cplusplus
34108 extern "C"
34109 {
34110 #endif
34111 /* We use char because int might match the return type of a gcc2
34112    builtin and then its argument prototype would still apply.  */
34113 char $ac_func ();
34114 /* The GNU C library defines this for functions which it implements
34115     to always fail with ENOSYS.  Some functions are actually named
34116     something starting with __ and the normal name is an alias.  */
34117 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34118 choke me
34119 #else
34120 char (*f) () = $ac_func;
34121 #endif
34122 #ifdef __cplusplus
34123 }
34124 #endif
34125
34126 int
34127 main ()
34128 {
34129 return f != $ac_func;
34130   ;
34131   return 0;
34132 }
34133 _ACEOF
34134 rm -f conftest.$ac_objext conftest$ac_exeext
34135 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34136   (eval $ac_link) 2>conftest.er1
34137   ac_status=$?
34138   grep -v '^ *+' conftest.er1 >conftest.err
34139   rm -f conftest.er1
34140   cat conftest.err >&5
34141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34142   (exit $ac_status); } &&
34143          { ac_try='test -z "$ac_c_werror_flag"
34144                          || test ! -s conftest.err'
34145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34146   (eval $ac_try) 2>&5
34147   ac_status=$?
34148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34149   (exit $ac_status); }; } &&
34150          { ac_try='test -s conftest$ac_exeext'
34151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34152   (eval $ac_try) 2>&5
34153   ac_status=$?
34154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34155   (exit $ac_status); }; }; then
34156   eval "$as_ac_var=yes"
34157 else
34158   echo "$as_me: failed program was:" >&5
34159 sed 's/^/| /' conftest.$ac_ext >&5
34160
34161 eval "$as_ac_var=no"
34162 fi
34163 rm -f conftest.err conftest.$ac_objext \
34164       conftest$ac_exeext conftest.$ac_ext
34165 fi
34166 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34167 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34168 if test `eval echo '${'$as_ac_var'}'` = yes; then
34169   cat >>confdefs.h <<_ACEOF
34170 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34171 _ACEOF
34172
34173 fi
34174 done
34175
34176
34177                         if test $ac_cv_func_sched_yield = no -a \
34178                                 $ac_cv_func_pthread_yield = no -a \
34179                                 $ac_cv_func_thr_yield = no ; then
34180                                                                 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
34181 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
34182 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
34183   echo $ECHO_N "(cached) $ECHO_C" >&6
34184 else
34185   ac_check_lib_save_LIBS=$LIBS
34186 LIBS="-lrt  $LIBS"
34187 cat >conftest.$ac_ext <<_ACEOF
34188 /* confdefs.h.  */
34189 _ACEOF
34190 cat confdefs.h >>conftest.$ac_ext
34191 cat >>conftest.$ac_ext <<_ACEOF
34192 /* end confdefs.h.  */
34193
34194 /* Override any gcc2 internal prototype to avoid an error.  */
34195 #ifdef __cplusplus
34196 extern "C"
34197 #endif
34198 /* We use char because int might match the return type of a gcc2
34199    builtin and then its argument prototype would still apply.  */
34200 char sched_yield ();
34201 int
34202 main ()
34203 {
34204 sched_yield ();
34205   ;
34206   return 0;
34207 }
34208 _ACEOF
34209 rm -f conftest.$ac_objext conftest$ac_exeext
34210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34211   (eval $ac_link) 2>conftest.er1
34212   ac_status=$?
34213   grep -v '^ *+' conftest.er1 >conftest.err
34214   rm -f conftest.er1
34215   cat conftest.err >&5
34216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34217   (exit $ac_status); } &&
34218          { ac_try='test -z "$ac_c_werror_flag"
34219                          || test ! -s conftest.err'
34220   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34221   (eval $ac_try) 2>&5
34222   ac_status=$?
34223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34224   (exit $ac_status); }; } &&
34225          { ac_try='test -s conftest$ac_exeext'
34226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34227   (eval $ac_try) 2>&5
34228   ac_status=$?
34229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34230   (exit $ac_status); }; }; then
34231   ac_cv_lib_rt_sched_yield=yes
34232 else
34233   echo "$as_me: failed program was:" >&5
34234 sed 's/^/| /' conftest.$ac_ext >&5
34235
34236 ac_cv_lib_rt_sched_yield=no
34237 fi
34238 rm -f conftest.err conftest.$ac_objext \
34239       conftest$ac_exeext conftest.$ac_ext
34240 LIBS=$ac_check_lib_save_LIBS
34241 fi
34242 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
34243 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
34244 if test $ac_cv_lib_rt_sched_yield = yes; then
34245   LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
34246
34247 cat >>confdefs.h <<\_ACEOF
34248 #define HAVE_SCHED_YIELD 1
34249 _ACEOF
34250
34251                                         ac_cv_func_sched_yield=yes
34252 else
34253   ac_cv_func_sched_yield=no
34254 fi
34255
34256                         fi
34257                         if test $ac_cv_func_sched_yield = no -a \
34258                                 $ac_cv_func_pthread_yield = no -a \
34259                                 "$ac_cv_func_thr_yield" = no ; then
34260                                 { echo "$as_me:$LINENO: WARNING: could not locate sched_yield() or pthread_yield()" >&5
34261 echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
34262                         fi
34263
34264
34265
34266 for ac_func in pthread_kill pthread_rwlock_destroy
34267 do
34268 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34269 echo "$as_me:$LINENO: checking for $ac_func" >&5
34270 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34271 if eval "test \"\${$as_ac_var+set}\" = set"; then
34272   echo $ECHO_N "(cached) $ECHO_C" >&6
34273 else
34274   cat >conftest.$ac_ext <<_ACEOF
34275 /* confdefs.h.  */
34276 _ACEOF
34277 cat confdefs.h >>conftest.$ac_ext
34278 cat >>conftest.$ac_ext <<_ACEOF
34279 /* end confdefs.h.  */
34280 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34281    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34282 #define $ac_func innocuous_$ac_func
34283
34284 /* System header to define __stub macros and hopefully few prototypes,
34285     which can conflict with char $ac_func (); below.
34286     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34287     <limits.h> exists even on freestanding compilers.  */
34288
34289 #ifdef __STDC__
34290 # include <limits.h>
34291 #else
34292 # include <assert.h>
34293 #endif
34294
34295 #undef $ac_func
34296
34297 /* Override any gcc2 internal prototype to avoid an error.  */
34298 #ifdef __cplusplus
34299 extern "C"
34300 {
34301 #endif
34302 /* We use char because int might match the return type of a gcc2
34303    builtin and then its argument prototype would still apply.  */
34304 char $ac_func ();
34305 /* The GNU C library defines this for functions which it implements
34306     to always fail with ENOSYS.  Some functions are actually named
34307     something starting with __ and the normal name is an alias.  */
34308 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34309 choke me
34310 #else
34311 char (*f) () = $ac_func;
34312 #endif
34313 #ifdef __cplusplus
34314 }
34315 #endif
34316
34317 int
34318 main ()
34319 {
34320 return f != $ac_func;
34321   ;
34322   return 0;
34323 }
34324 _ACEOF
34325 rm -f conftest.$ac_objext conftest$ac_exeext
34326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34327   (eval $ac_link) 2>conftest.er1
34328   ac_status=$?
34329   grep -v '^ *+' conftest.er1 >conftest.err
34330   rm -f conftest.er1
34331   cat conftest.err >&5
34332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34333   (exit $ac_status); } &&
34334          { ac_try='test -z "$ac_c_werror_flag"
34335                          || test ! -s conftest.err'
34336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34337   (eval $ac_try) 2>&5
34338   ac_status=$?
34339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34340   (exit $ac_status); }; } &&
34341          { ac_try='test -s conftest$ac_exeext'
34342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34343   (eval $ac_try) 2>&5
34344   ac_status=$?
34345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34346   (exit $ac_status); }; }; then
34347   eval "$as_ac_var=yes"
34348 else
34349   echo "$as_me: failed program was:" >&5
34350 sed 's/^/| /' conftest.$ac_ext >&5
34351
34352 eval "$as_ac_var=no"
34353 fi
34354 rm -f conftest.err conftest.$ac_objext \
34355       conftest$ac_exeext conftest.$ac_ext
34356 fi
34357 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34358 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34359 if test `eval echo '${'$as_ac_var'}'` = yes; then
34360   cat >>confdefs.h <<_ACEOF
34361 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34362 _ACEOF
34363
34364 fi
34365 done
34366
34367
34368                                                                         echo "$as_me:$LINENO: checking for pthread_detach with <pthread.h>" >&5
34369 echo $ECHO_N "checking for pthread_detach with <pthread.h>... $ECHO_C" >&6
34370 if test "${ol_cv_func_pthread_detach+set}" = set; then
34371   echo $ECHO_N "(cached) $ECHO_C" >&6
34372 else
34373
34374                                                                 cat >conftest.$ac_ext <<_ACEOF
34375 /* confdefs.h.  */
34376 _ACEOF
34377 cat confdefs.h >>conftest.$ac_ext
34378 cat >>conftest.$ac_ext <<_ACEOF
34379 /* end confdefs.h.  */
34380
34381 #include <pthread.h>
34382 #ifndef NULL
34383 #define NULL (void*)0
34384 #endif
34385
34386 int
34387 main ()
34388 {
34389 pthread_detach(NULL);
34390   ;
34391   return 0;
34392 }
34393 _ACEOF
34394 rm -f conftest.$ac_objext conftest$ac_exeext
34395 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34396   (eval $ac_link) 2>conftest.er1
34397   ac_status=$?
34398   grep -v '^ *+' conftest.er1 >conftest.err
34399   rm -f conftest.er1
34400   cat conftest.err >&5
34401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34402   (exit $ac_status); } &&
34403          { ac_try='test -z "$ac_c_werror_flag"
34404                          || test ! -s conftest.err'
34405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34406   (eval $ac_try) 2>&5
34407   ac_status=$?
34408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34409   (exit $ac_status); }; } &&
34410          { ac_try='test -s conftest$ac_exeext'
34411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34412   (eval $ac_try) 2>&5
34413   ac_status=$?
34414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34415   (exit $ac_status); }; }; then
34416   ol_cv_func_pthread_detach=yes
34417 else
34418   echo "$as_me: failed program was:" >&5
34419 sed 's/^/| /' conftest.$ac_ext >&5
34420
34421 ol_cv_func_pthread_detach=no
34422 fi
34423 rm -f conftest.err conftest.$ac_objext \
34424       conftest$ac_exeext conftest.$ac_ext
34425
34426 fi
34427 echo "$as_me:$LINENO: result: $ol_cv_func_pthread_detach" >&5
34428 echo "${ECHO_T}$ol_cv_func_pthread_detach" >&6
34429
34430                         if test $ol_cv_func_pthread_detach = no ; then
34431                                 { { echo "$as_me:$LINENO: error: could not locate pthread_detach()" >&5
34432 echo "$as_me: error: could not locate pthread_detach()" >&2;}
34433    { (exit 1); exit 1; }; }
34434                         fi
34435
34436
34437 cat >>confdefs.h <<\_ACEOF
34438 #define HAVE_PTHREAD_DETACH 1
34439 _ACEOF
34440
34441
34442
34443
34444
34445
34446 for ac_func in \
34447                                 pthread_setconcurrency \
34448                                 pthread_getconcurrency \
34449                                 thr_setconcurrency \
34450                                 thr_getconcurrency \
34451
34452 do
34453 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34454 echo "$as_me:$LINENO: checking for $ac_func" >&5
34455 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34456 if eval "test \"\${$as_ac_var+set}\" = set"; then
34457   echo $ECHO_N "(cached) $ECHO_C" >&6
34458 else
34459   cat >conftest.$ac_ext <<_ACEOF
34460 /* confdefs.h.  */
34461 _ACEOF
34462 cat confdefs.h >>conftest.$ac_ext
34463 cat >>conftest.$ac_ext <<_ACEOF
34464 /* end confdefs.h.  */
34465 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34466    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34467 #define $ac_func innocuous_$ac_func
34468
34469 /* System header to define __stub macros and hopefully few prototypes,
34470     which can conflict with char $ac_func (); below.
34471     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34472     <limits.h> exists even on freestanding compilers.  */
34473
34474 #ifdef __STDC__
34475 # include <limits.h>
34476 #else
34477 # include <assert.h>
34478 #endif
34479
34480 #undef $ac_func
34481
34482 /* Override any gcc2 internal prototype to avoid an error.  */
34483 #ifdef __cplusplus
34484 extern "C"
34485 {
34486 #endif
34487 /* We use char because int might match the return type of a gcc2
34488    builtin and then its argument prototype would still apply.  */
34489 char $ac_func ();
34490 /* The GNU C library defines this for functions which it implements
34491     to always fail with ENOSYS.  Some functions are actually named
34492     something starting with __ and the normal name is an alias.  */
34493 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34494 choke me
34495 #else
34496 char (*f) () = $ac_func;
34497 #endif
34498 #ifdef __cplusplus
34499 }
34500 #endif
34501
34502 int
34503 main ()
34504 {
34505 return f != $ac_func;
34506   ;
34507   return 0;
34508 }
34509 _ACEOF
34510 rm -f conftest.$ac_objext conftest$ac_exeext
34511 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34512   (eval $ac_link) 2>conftest.er1
34513   ac_status=$?
34514   grep -v '^ *+' conftest.er1 >conftest.err
34515   rm -f conftest.er1
34516   cat conftest.err >&5
34517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34518   (exit $ac_status); } &&
34519          { ac_try='test -z "$ac_c_werror_flag"
34520                          || test ! -s conftest.err'
34521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34522   (eval $ac_try) 2>&5
34523   ac_status=$?
34524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34525   (exit $ac_status); }; } &&
34526          { ac_try='test -s conftest$ac_exeext'
34527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34528   (eval $ac_try) 2>&5
34529   ac_status=$?
34530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34531   (exit $ac_status); }; }; then
34532   eval "$as_ac_var=yes"
34533 else
34534   echo "$as_me: failed program was:" >&5
34535 sed 's/^/| /' conftest.$ac_ext >&5
34536
34537 eval "$as_ac_var=no"
34538 fi
34539 rm -f conftest.err conftest.$ac_objext \
34540       conftest$ac_exeext conftest.$ac_ext
34541 fi
34542 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34543 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34544 if test `eval echo '${'$as_ac_var'}'` = yes; then
34545   cat >>confdefs.h <<_ACEOF
34546 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34547 _ACEOF
34548
34549 fi
34550 done
34551
34552
34553
34554
34555 for ac_func in pthread_kill_other_threads_np
34556 do
34557 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34558 echo "$as_me:$LINENO: checking for $ac_func" >&5
34559 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34560 if eval "test \"\${$as_ac_var+set}\" = set"; then
34561   echo $ECHO_N "(cached) $ECHO_C" >&6
34562 else
34563   cat >conftest.$ac_ext <<_ACEOF
34564 /* confdefs.h.  */
34565 _ACEOF
34566 cat confdefs.h >>conftest.$ac_ext
34567 cat >>conftest.$ac_ext <<_ACEOF
34568 /* end confdefs.h.  */
34569 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34570    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34571 #define $ac_func innocuous_$ac_func
34572
34573 /* System header to define __stub macros and hopefully few prototypes,
34574     which can conflict with char $ac_func (); below.
34575     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34576     <limits.h> exists even on freestanding compilers.  */
34577
34578 #ifdef __STDC__
34579 # include <limits.h>
34580 #else
34581 # include <assert.h>
34582 #endif
34583
34584 #undef $ac_func
34585
34586 /* Override any gcc2 internal prototype to avoid an error.  */
34587 #ifdef __cplusplus
34588 extern "C"
34589 {
34590 #endif
34591 /* We use char because int might match the return type of a gcc2
34592    builtin and then its argument prototype would still apply.  */
34593 char $ac_func ();
34594 /* The GNU C library defines this for functions which it implements
34595     to always fail with ENOSYS.  Some functions are actually named
34596     something starting with __ and the normal name is an alias.  */
34597 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34598 choke me
34599 #else
34600 char (*f) () = $ac_func;
34601 #endif
34602 #ifdef __cplusplus
34603 }
34604 #endif
34605
34606 int
34607 main ()
34608 {
34609 return f != $ac_func;
34610   ;
34611   return 0;
34612 }
34613 _ACEOF
34614 rm -f conftest.$ac_objext conftest$ac_exeext
34615 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34616   (eval $ac_link) 2>conftest.er1
34617   ac_status=$?
34618   grep -v '^ *+' conftest.er1 >conftest.err
34619   rm -f conftest.er1
34620   cat conftest.err >&5
34621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34622   (exit $ac_status); } &&
34623          { ac_try='test -z "$ac_c_werror_flag"
34624                          || test ! -s conftest.err'
34625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34626   (eval $ac_try) 2>&5
34627   ac_status=$?
34628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34629   (exit $ac_status); }; } &&
34630          { ac_try='test -s conftest$ac_exeext'
34631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34632   (eval $ac_try) 2>&5
34633   ac_status=$?
34634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34635   (exit $ac_status); }; }; then
34636   eval "$as_ac_var=yes"
34637 else
34638   echo "$as_me: failed program was:" >&5
34639 sed 's/^/| /' conftest.$ac_ext >&5
34640
34641 eval "$as_ac_var=no"
34642 fi
34643 rm -f conftest.err conftest.$ac_objext \
34644       conftest$ac_exeext conftest.$ac_ext
34645 fi
34646 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34647 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34648 if test `eval echo '${'$as_ac_var'}'` = yes; then
34649   cat >>confdefs.h <<_ACEOF
34650 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34651 _ACEOF
34652
34653 fi
34654 done
34655
34656         echo "$as_me:$LINENO: checking for LinuxThreads implementation" >&5
34657 echo $ECHO_N "checking for LinuxThreads implementation... $ECHO_C" >&6
34658 if test "${ol_cv_sys_linux_threads+set}" = set; then
34659   echo $ECHO_N "(cached) $ECHO_C" >&6
34660 else
34661   ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
34662 fi
34663 echo "$as_me:$LINENO: result: $ol_cv_sys_linux_threads" >&5
34664 echo "${ECHO_T}$ol_cv_sys_linux_threads" >&6
34665
34666
34667
34668
34669         echo "$as_me:$LINENO: checking for LinuxThreads consistency" >&5
34670 echo $ECHO_N "checking for LinuxThreads consistency... $ECHO_C" >&6
34671 if test "${ol_cv_linux_threads+set}" = set; then
34672   echo $ECHO_N "(cached) $ECHO_C" >&6
34673 else
34674
34675                 if test $ol_cv_header_linux_threads = yes -a \
34676                         $ol_cv_sys_linux_threads = yes; then
34677                         ol_cv_linux_threads=yes
34678                 elif test $ol_cv_header_linux_threads = no -a \
34679                         $ol_cv_sys_linux_threads = no; then
34680                         ol_cv_linux_threads=no
34681                 else
34682                         ol_cv_linux_threads=error
34683                 fi
34684
34685 fi
34686 echo "$as_me:$LINENO: result: $ol_cv_linux_threads" >&5
34687 echo "${ECHO_T}$ol_cv_linux_threads" >&6
34688
34689
34690                         if test $ol_cv_linux_threads = error; then
34691                                 { { echo "$as_me:$LINENO: error: LinuxThreads header/library mismatch" >&5
34692 echo "$as_me: error: LinuxThreads header/library mismatch" >&2;}
34693    { (exit 1); exit 1; }; };
34694                         fi
34695
34696                         echo "$as_me:$LINENO: checking if pthread_create() works" >&5
34697 echo $ECHO_N "checking if pthread_create() works... $ECHO_C" >&6
34698 if test "${ol_cv_pthread_create_works+set}" = set; then
34699   echo $ECHO_N "(cached) $ECHO_C" >&6
34700 else
34701
34702                         if test "$cross_compiling" = yes; then
34703                                 ol_cv_pthread_create_works=yes
34704 else
34705   cat >conftest.$ac_ext <<_ACEOF
34706 /* confdefs.h.  */
34707 _ACEOF
34708 cat confdefs.h >>conftest.$ac_ext
34709 cat >>conftest.$ac_ext <<_ACEOF
34710 /* end confdefs.h.  */
34711 /* pthread test headers */
34712 #include <pthread.h>
34713 #if HAVE_PTHREADS < 7
34714 #include <errno.h>
34715 #endif
34716 #ifndef NULL
34717 #define NULL (void*)0
34718 #endif
34719
34720 static void *task(p)
34721         void *p;
34722 {
34723         return (void *) (p == NULL);
34724 }
34725
34726
34727 int main(argc, argv)
34728         int argc;
34729         char **argv;
34730 {
34731
34732         /* pthread test function */
34733 #ifndef PTHREAD_CREATE_DETACHED
34734 #define PTHREAD_CREATE_DETACHED 1
34735 #endif
34736         pthread_t t;
34737         int status;
34738         int detach = PTHREAD_CREATE_DETACHED;
34739
34740 #if HAVE_PTHREADS > 4
34741         /* Final pthreads */
34742         pthread_attr_t attr;
34743
34744         status = pthread_attr_init(&attr);
34745         if( status ) return status;
34746
34747 #if HAVE_PTHREADS < 7
34748         status = pthread_attr_setdetachstate(&attr, &detach);
34749         if( status < 0 ) status = errno;
34750 #else
34751         status = pthread_attr_setdetachstate(&attr, detach);
34752 #endif
34753         if( status ) return status;
34754         status = pthread_create( &t, &attr, task, NULL );
34755 #if HAVE_PTHREADS < 7
34756         if( status < 0 ) status = errno;
34757 #endif
34758         if( status ) return status;
34759 #else
34760         /* Draft 4 pthreads */
34761         status = pthread_create( &t, pthread_attr_default, task, NULL );
34762         if( status ) return errno;
34763
34764         /* give thread a chance to complete */
34765         /* it should remain joinable and hence detachable */
34766         sleep( 1 );
34767
34768         status = pthread_detach( &t );
34769         if( status ) return errno;
34770 #endif
34771
34772 #ifdef HAVE_LINUX_THREADS
34773         pthread_kill_other_threads_np();
34774 #endif
34775
34776         return 0;
34777
34778 }
34779
34780 _ACEOF
34781 rm -f conftest$ac_exeext
34782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34783   (eval $ac_link) 2>&5
34784   ac_status=$?
34785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34786   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34788   (eval $ac_try) 2>&5
34789   ac_status=$?
34790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34791   (exit $ac_status); }; }; then
34792   ol_cv_pthread_create_works=yes
34793 else
34794   echo "$as_me: program exited with status $ac_status" >&5
34795 echo "$as_me: failed program was:" >&5
34796 sed 's/^/| /' conftest.$ac_ext >&5
34797
34798 ( exit $ac_status )
34799 ol_cv_pthread_create_works=no
34800 fi
34801 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34802 fi
34803 fi
34804 echo "$as_me:$LINENO: result: $ol_cv_pthread_create_works" >&5
34805 echo "${ECHO_T}$ol_cv_pthread_create_works" >&6
34806
34807                         if test $ol_cv_pthread_create_works = no ; then
34808                                 { { echo "$as_me:$LINENO: error: pthread_create is not usable, check environment settings" >&5
34809 echo "$as_me: error: pthread_create is not usable, check environment settings" >&2;}
34810    { (exit 1); exit 1; }; }
34811                         fi
34812
34813                                                 if test $ol_with_yielding_select = auto ; then
34814                                 echo "$as_me:$LINENO: checking if select yields when using pthreads" >&5
34815 echo $ECHO_N "checking if select yields when using pthreads... $ECHO_C" >&6
34816 if test "${ol_cv_pthread_select_yields+set}" = set; then
34817   echo $ECHO_N "(cached) $ECHO_C" >&6
34818 else
34819
34820                                 if test "$cross_compiling" = yes; then
34821   ol_cv_pthread_select_yields=cross
34822 else
34823   cat >conftest.$ac_ext <<_ACEOF
34824 /* confdefs.h.  */
34825 _ACEOF
34826 cat confdefs.h >>conftest.$ac_ext
34827 cat >>conftest.$ac_ext <<_ACEOF
34828 /* end confdefs.h.  */
34829
34830 #include <sys/types.h>
34831 #include <sys/time.h>
34832 #include <unistd.h>
34833 #include <pthread.h>
34834 #ifndef NULL
34835 #define NULL (void*) 0
34836 #endif
34837
34838 static int fildes[2];
34839
34840 static void *task(p)
34841         void *p;
34842 {
34843         int i;
34844         struct timeval tv;
34845
34846         fd_set rfds;
34847
34848         tv.tv_sec=10;
34849         tv.tv_usec=0;
34850
34851         FD_ZERO(&rfds);
34852         FD_SET(fildes[0], &rfds);
34853
34854         /* we're not interested in any fds */
34855         i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
34856
34857         if(i < 0) {
34858                 perror("select");
34859                 exit(10);
34860         }
34861
34862         exit(0); /* if we exit here, the select blocked the whole process */
34863 }
34864
34865 int main(argc, argv)
34866         int argc;
34867         char **argv;
34868 {
34869         pthread_t t;
34870
34871         /* create a pipe to select */
34872         if(pipe(&fildes[0])) {
34873                 perror("select");
34874                 exit(1);
34875         }
34876
34877 #ifdef HAVE_PTHREAD_SETCONCURRENCY
34878         (void) pthread_setconcurrency(2);
34879 #else
34880 #ifdef HAVE_THR_SETCONCURRENCY
34881         /* Set Solaris LWP concurrency to 2 */
34882         thr_setconcurrency(2);
34883 #endif
34884 #endif
34885
34886 #if HAVE_PTHREADS < 6
34887         pthread_create(&t, pthread_attr_default, task, NULL);
34888 #else
34889         pthread_create(&t, NULL, task, NULL);
34890 #endif
34891
34892         /* make sure task runs first */
34893 #if HAVE_THR_YIELD
34894         thr_yield();
34895 #elif defined( HAVE_SCHED_YIELD )
34896         sched_yield();
34897 #elif defined( HAVE_PTHREAD_YIELD )
34898         pthread_yield();
34899 #endif
34900
34901         exit(2);
34902 }
34903 _ACEOF
34904 rm -f conftest$ac_exeext
34905 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34906   (eval $ac_link) 2>&5
34907   ac_status=$?
34908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34909   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34911   (eval $ac_try) 2>&5
34912   ac_status=$?
34913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34914   (exit $ac_status); }; }; then
34915   ol_cv_pthread_select_yields=no
34916 else
34917   echo "$as_me: program exited with status $ac_status" >&5
34918 echo "$as_me: failed program was:" >&5
34919 sed 's/^/| /' conftest.$ac_ext >&5
34920
34921 ( exit $ac_status )
34922 ol_cv_pthread_select_yields=yes
34923 fi
34924 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34925 fi
34926 fi
34927 echo "$as_me:$LINENO: result: $ol_cv_pthread_select_yields" >&5
34928 echo "${ECHO_T}$ol_cv_pthread_select_yields" >&6
34929
34930                                 if test $ol_cv_pthread_select_yields = cross ; then
34931                                         { { echo "$as_me:$LINENO: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&5
34932 echo "$as_me: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&2;}
34933    { (exit 1); exit 1; }; }
34934                                 fi
34935
34936                                 if test $ol_cv_pthread_select_yields = yes ; then
34937                                         ol_with_yielding_select=yes
34938                                 fi
34939                         fi
34940
34941                                                 CPPFLAGS="$save_CPPFLAGS"
34942                         LIBS="$save_LIBS"
34943                 else
34944                         { { echo "$as_me:$LINENO: error: could not locate usable POSIX Threads" >&5
34945 echo "$as_me: error: could not locate usable POSIX Threads" >&2;}
34946    { (exit 1); exit 1; }; }
34947                 fi
34948         fi
34949
34950         if test $ol_with_threads = posix ; then
34951                 { { echo "$as_me:$LINENO: error: could not locate POSIX Threads" >&5
34952 echo "$as_me: error: could not locate POSIX Threads" >&2;}
34953    { (exit 1); exit 1; }; }
34954         fi
34955 fi
34956
34957 if test $ol_with_threads = auto -o $ol_with_threads = yes \
34958         -o $ol_with_threads = mach ; then
34959
34960
34961
34962 for ac_header in mach/cthreads.h cthreads.h
34963 do
34964 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34965 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34966   echo "$as_me:$LINENO: checking for $ac_header" >&5
34967 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34968 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34969   echo $ECHO_N "(cached) $ECHO_C" >&6
34970 fi
34971 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34972 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34973 else
34974   # Is the header compilable?
34975 echo "$as_me:$LINENO: checking $ac_header usability" >&5
34976 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34977 cat >conftest.$ac_ext <<_ACEOF
34978 /* confdefs.h.  */
34979 _ACEOF
34980 cat confdefs.h >>conftest.$ac_ext
34981 cat >>conftest.$ac_ext <<_ACEOF
34982 /* end confdefs.h.  */
34983 $ac_includes_default
34984 #include <$ac_header>
34985 _ACEOF
34986 rm -f conftest.$ac_objext
34987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34988   (eval $ac_compile) 2>conftest.er1
34989   ac_status=$?
34990   grep -v '^ *+' conftest.er1 >conftest.err
34991   rm -f conftest.er1
34992   cat conftest.err >&5
34993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34994   (exit $ac_status); } &&
34995          { ac_try='test -z "$ac_c_werror_flag"
34996                          || test ! -s conftest.err'
34997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34998   (eval $ac_try) 2>&5
34999   ac_status=$?
35000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35001   (exit $ac_status); }; } &&
35002          { ac_try='test -s conftest.$ac_objext'
35003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35004   (eval $ac_try) 2>&5
35005   ac_status=$?
35006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35007   (exit $ac_status); }; }; then
35008   ac_header_compiler=yes
35009 else
35010   echo "$as_me: failed program was:" >&5
35011 sed 's/^/| /' conftest.$ac_ext >&5
35012
35013 ac_header_compiler=no
35014 fi
35015 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35016 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35017 echo "${ECHO_T}$ac_header_compiler" >&6
35018
35019 # Is the header present?
35020 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35021 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35022 cat >conftest.$ac_ext <<_ACEOF
35023 /* confdefs.h.  */
35024 _ACEOF
35025 cat confdefs.h >>conftest.$ac_ext
35026 cat >>conftest.$ac_ext <<_ACEOF
35027 /* end confdefs.h.  */
35028 #include <$ac_header>
35029 _ACEOF
35030 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35031   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35032   ac_status=$?
35033   grep -v '^ *+' conftest.er1 >conftest.err
35034   rm -f conftest.er1
35035   cat conftest.err >&5
35036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35037   (exit $ac_status); } >/dev/null; then
35038   if test -s conftest.err; then
35039     ac_cpp_err=$ac_c_preproc_warn_flag
35040     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35041   else
35042     ac_cpp_err=
35043   fi
35044 else
35045   ac_cpp_err=yes
35046 fi
35047 if test -z "$ac_cpp_err"; then
35048   ac_header_preproc=yes
35049 else
35050   echo "$as_me: failed program was:" >&5
35051 sed 's/^/| /' conftest.$ac_ext >&5
35052
35053   ac_header_preproc=no
35054 fi
35055 rm -f conftest.err conftest.$ac_ext
35056 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35057 echo "${ECHO_T}$ac_header_preproc" >&6
35058
35059 # So?  What about this header?
35060 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35061   yes:no: )
35062     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35063 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35064     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35065 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35066     ac_header_preproc=yes
35067     ;;
35068   no:yes:* )
35069     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35070 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35071     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35072 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35073     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35074 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35075     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35076 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35077     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35078 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35079     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35080 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35081     (
35082       cat <<\_ASBOX
35083 ## ------------------------------------------ ##
35084 ## Report this to the AC_PACKAGE_NAME lists.  ##
35085 ## ------------------------------------------ ##
35086 _ASBOX
35087     ) |
35088       sed "s/^/$as_me: WARNING:     /" >&2
35089     ;;
35090 esac
35091 echo "$as_me:$LINENO: checking for $ac_header" >&5
35092 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35093 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35094   echo $ECHO_N "(cached) $ECHO_C" >&6
35095 else
35096   eval "$as_ac_Header=\$ac_header_preproc"
35097 fi
35098 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35099 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35100
35101 fi
35102 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35103   cat >>confdefs.h <<_ACEOF
35104 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35105 _ACEOF
35106
35107 fi
35108
35109 done
35110
35111         if test $ac_cv_header_mach_cthreads_h = yes ; then
35112                 ol_with_threads=found
35113
35114                                 echo "$as_me:$LINENO: checking for cthread_fork" >&5
35115 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
35116 if test "${ac_cv_func_cthread_fork+set}" = set; then
35117   echo $ECHO_N "(cached) $ECHO_C" >&6
35118 else
35119   cat >conftest.$ac_ext <<_ACEOF
35120 /* confdefs.h.  */
35121 _ACEOF
35122 cat confdefs.h >>conftest.$ac_ext
35123 cat >>conftest.$ac_ext <<_ACEOF
35124 /* end confdefs.h.  */
35125 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
35126    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35127 #define cthread_fork innocuous_cthread_fork
35128
35129 /* System header to define __stub macros and hopefully few prototypes,
35130     which can conflict with char cthread_fork (); below.
35131     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35132     <limits.h> exists even on freestanding compilers.  */
35133
35134 #ifdef __STDC__
35135 # include <limits.h>
35136 #else
35137 # include <assert.h>
35138 #endif
35139
35140 #undef cthread_fork
35141
35142 /* Override any gcc2 internal prototype to avoid an error.  */
35143 #ifdef __cplusplus
35144 extern "C"
35145 {
35146 #endif
35147 /* We use char because int might match the return type of a gcc2
35148    builtin and then its argument prototype would still apply.  */
35149 char cthread_fork ();
35150 /* The GNU C library defines this for functions which it implements
35151     to always fail with ENOSYS.  Some functions are actually named
35152     something starting with __ and the normal name is an alias.  */
35153 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
35154 choke me
35155 #else
35156 char (*f) () = cthread_fork;
35157 #endif
35158 #ifdef __cplusplus
35159 }
35160 #endif
35161
35162 int
35163 main ()
35164 {
35165 return f != cthread_fork;
35166   ;
35167   return 0;
35168 }
35169 _ACEOF
35170 rm -f conftest.$ac_objext conftest$ac_exeext
35171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35172   (eval $ac_link) 2>conftest.er1
35173   ac_status=$?
35174   grep -v '^ *+' conftest.er1 >conftest.err
35175   rm -f conftest.er1
35176   cat conftest.err >&5
35177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35178   (exit $ac_status); } &&
35179          { ac_try='test -z "$ac_c_werror_flag"
35180                          || test ! -s conftest.err'
35181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35182   (eval $ac_try) 2>&5
35183   ac_status=$?
35184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35185   (exit $ac_status); }; } &&
35186          { ac_try='test -s conftest$ac_exeext'
35187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35188   (eval $ac_try) 2>&5
35189   ac_status=$?
35190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35191   (exit $ac_status); }; }; then
35192   ac_cv_func_cthread_fork=yes
35193 else
35194   echo "$as_me: failed program was:" >&5
35195 sed 's/^/| /' conftest.$ac_ext >&5
35196
35197 ac_cv_func_cthread_fork=no
35198 fi
35199 rm -f conftest.err conftest.$ac_objext \
35200       conftest$ac_exeext conftest.$ac_ext
35201 fi
35202 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
35203 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
35204 if test $ac_cv_func_cthread_fork = yes; then
35205   ol_link_threads=yes
35206 fi
35207
35208
35209                 if test $ol_link_threads = no ; then
35210                                                                         echo "$as_me:$LINENO: checking for cthread_fork with -all_load" >&5
35211 echo $ECHO_N "checking for cthread_fork with -all_load... $ECHO_C" >&6
35212 if test "${ol_cv_cthread_all_load+set}" = set; then
35213   echo $ECHO_N "(cached) $ECHO_C" >&6
35214 else
35215
35216                                                                 save_LIBS="$LIBS"
35217                                 LIBS="-all_load $LIBS"
35218                                 cat >conftest.$ac_ext <<_ACEOF
35219 /* confdefs.h.  */
35220 _ACEOF
35221 cat confdefs.h >>conftest.$ac_ext
35222 cat >>conftest.$ac_ext <<_ACEOF
35223 /* end confdefs.h.  */
35224 #include <mach/cthreads.h>
35225 int
35226 main ()
35227 {
35228
35229                                         cthread_fork((void *)0, (void *)0);
35230
35231   ;
35232   return 0;
35233 }
35234 _ACEOF
35235 rm -f conftest.$ac_objext conftest$ac_exeext
35236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35237   (eval $ac_link) 2>conftest.er1
35238   ac_status=$?
35239   grep -v '^ *+' conftest.er1 >conftest.err
35240   rm -f conftest.er1
35241   cat conftest.err >&5
35242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35243   (exit $ac_status); } &&
35244          { ac_try='test -z "$ac_c_werror_flag"
35245                          || test ! -s conftest.err'
35246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35247   (eval $ac_try) 2>&5
35248   ac_status=$?
35249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35250   (exit $ac_status); }; } &&
35251          { ac_try='test -s conftest$ac_exeext'
35252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35253   (eval $ac_try) 2>&5
35254   ac_status=$?
35255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35256   (exit $ac_status); }; }; then
35257   ol_cv_cthread_all_load=yes
35258 else
35259   echo "$as_me: failed program was:" >&5
35260 sed 's/^/| /' conftest.$ac_ext >&5
35261
35262 ol_cv_cthread_all_load=no
35263 fi
35264 rm -f conftest.err conftest.$ac_objext \
35265       conftest$ac_exeext conftest.$ac_ext
35266                                                                 LIBS="$save_LIBS"
35267
35268 fi
35269 echo "$as_me:$LINENO: result: $ol_cv_cthread_all_load" >&5
35270 echo "${ECHO_T}$ol_cv_cthread_all_load" >&6
35271
35272                         if test $ol_cv_cthread_all_load = yes ; then
35273                                 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
35274                                 ol_link_threads=mach
35275                                 ol_with_threads=found
35276                         fi
35277                 fi
35278
35279         elif test $ac_cv_header_cthreads_h = yes ; then
35280
35281                 ol_with_threads=found
35282
35283                                 save_LIBS="$LIBS"
35284                 LIBS="$LIBS -lthreads"
35285                 echo "$as_me:$LINENO: checking for cthread_fork" >&5
35286 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
35287 if test "${ac_cv_func_cthread_fork+set}" = set; then
35288   echo $ECHO_N "(cached) $ECHO_C" >&6
35289 else
35290   cat >conftest.$ac_ext <<_ACEOF
35291 /* confdefs.h.  */
35292 _ACEOF
35293 cat confdefs.h >>conftest.$ac_ext
35294 cat >>conftest.$ac_ext <<_ACEOF
35295 /* end confdefs.h.  */
35296 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
35297    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35298 #define cthread_fork innocuous_cthread_fork
35299
35300 /* System header to define __stub macros and hopefully few prototypes,
35301     which can conflict with char cthread_fork (); below.
35302     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35303     <limits.h> exists even on freestanding compilers.  */
35304
35305 #ifdef __STDC__
35306 # include <limits.h>
35307 #else
35308 # include <assert.h>
35309 #endif
35310
35311 #undef cthread_fork
35312
35313 /* Override any gcc2 internal prototype to avoid an error.  */
35314 #ifdef __cplusplus
35315 extern "C"
35316 {
35317 #endif
35318 /* We use char because int might match the return type of a gcc2
35319    builtin and then its argument prototype would still apply.  */
35320 char cthread_fork ();
35321 /* The GNU C library defines this for functions which it implements
35322     to always fail with ENOSYS.  Some functions are actually named
35323     something starting with __ and the normal name is an alias.  */
35324 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
35325 choke me
35326 #else
35327 char (*f) () = cthread_fork;
35328 #endif
35329 #ifdef __cplusplus
35330 }
35331 #endif
35332
35333 int
35334 main ()
35335 {
35336 return f != cthread_fork;
35337   ;
35338   return 0;
35339 }
35340 _ACEOF
35341 rm -f conftest.$ac_objext conftest$ac_exeext
35342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35343   (eval $ac_link) 2>conftest.er1
35344   ac_status=$?
35345   grep -v '^ *+' conftest.er1 >conftest.err
35346   rm -f conftest.er1
35347   cat conftest.err >&5
35348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35349   (exit $ac_status); } &&
35350          { ac_try='test -z "$ac_c_werror_flag"
35351                          || test ! -s conftest.err'
35352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35353   (eval $ac_try) 2>&5
35354   ac_status=$?
35355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35356   (exit $ac_status); }; } &&
35357          { ac_try='test -s conftest$ac_exeext'
35358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35359   (eval $ac_try) 2>&5
35360   ac_status=$?
35361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35362   (exit $ac_status); }; }; then
35363   ac_cv_func_cthread_fork=yes
35364 else
35365   echo "$as_me: failed program was:" >&5
35366 sed 's/^/| /' conftest.$ac_ext >&5
35367
35368 ac_cv_func_cthread_fork=no
35369 fi
35370 rm -f conftest.err conftest.$ac_objext \
35371       conftest$ac_exeext conftest.$ac_ext
35372 fi
35373 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
35374 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
35375 if test $ac_cv_func_cthread_fork = yes; then
35376   ol_link_threads=yes
35377 fi
35378
35379                 LIBS="$save_LIBS"
35380
35381                 if test $ol_link_threads = yes ; then
35382                         LTHREAD_LIBS="-lthreads"
35383                         ol_link_threads=mach
35384                         ol_with_threads=found
35385                 else
35386                         { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
35387 echo "$as_me: error: could not link with Mach CThreads" >&2;}
35388    { (exit 1); exit 1; }; }
35389                 fi
35390
35391         elif test $ol_with_threads = mach ; then
35392                 { { echo "$as_me:$LINENO: error: could not locate Mach CThreads" >&5
35393 echo "$as_me: error: could not locate Mach CThreads" >&2;}
35394    { (exit 1); exit 1; }; }
35395         fi
35396
35397         if test $ol_link_threads = mach ; then
35398
35399 cat >>confdefs.h <<\_ACEOF
35400 #define HAVE_MACH_CTHREADS 1
35401 _ACEOF
35402
35403         elif test $ol_with_threads = found ; then
35404                 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
35405 echo "$as_me: error: could not link with Mach CThreads" >&2;}
35406    { (exit 1); exit 1; }; }
35407         fi
35408 fi
35409
35410 if test $ol_with_threads = auto -o $ol_with_threads = yes \
35411         -o $ol_with_threads = pth ; then
35412
35413
35414 for ac_header in pth.h
35415 do
35416 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35417 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35418   echo "$as_me:$LINENO: checking for $ac_header" >&5
35419 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35420 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35421   echo $ECHO_N "(cached) $ECHO_C" >&6
35422 fi
35423 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35424 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35425 else
35426   # Is the header compilable?
35427 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35428 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35429 cat >conftest.$ac_ext <<_ACEOF
35430 /* confdefs.h.  */
35431 _ACEOF
35432 cat confdefs.h >>conftest.$ac_ext
35433 cat >>conftest.$ac_ext <<_ACEOF
35434 /* end confdefs.h.  */
35435 $ac_includes_default
35436 #include <$ac_header>
35437 _ACEOF
35438 rm -f conftest.$ac_objext
35439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35440   (eval $ac_compile) 2>conftest.er1
35441   ac_status=$?
35442   grep -v '^ *+' conftest.er1 >conftest.err
35443   rm -f conftest.er1
35444   cat conftest.err >&5
35445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35446   (exit $ac_status); } &&
35447          { ac_try='test -z "$ac_c_werror_flag"
35448                          || test ! -s conftest.err'
35449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35450   (eval $ac_try) 2>&5
35451   ac_status=$?
35452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35453   (exit $ac_status); }; } &&
35454          { ac_try='test -s conftest.$ac_objext'
35455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35456   (eval $ac_try) 2>&5
35457   ac_status=$?
35458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35459   (exit $ac_status); }; }; then
35460   ac_header_compiler=yes
35461 else
35462   echo "$as_me: failed program was:" >&5
35463 sed 's/^/| /' conftest.$ac_ext >&5
35464
35465 ac_header_compiler=no
35466 fi
35467 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35468 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35469 echo "${ECHO_T}$ac_header_compiler" >&6
35470
35471 # Is the header present?
35472 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35473 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35474 cat >conftest.$ac_ext <<_ACEOF
35475 /* confdefs.h.  */
35476 _ACEOF
35477 cat confdefs.h >>conftest.$ac_ext
35478 cat >>conftest.$ac_ext <<_ACEOF
35479 /* end confdefs.h.  */
35480 #include <$ac_header>
35481 _ACEOF
35482 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35483   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35484   ac_status=$?
35485   grep -v '^ *+' conftest.er1 >conftest.err
35486   rm -f conftest.er1
35487   cat conftest.err >&5
35488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35489   (exit $ac_status); } >/dev/null; then
35490   if test -s conftest.err; then
35491     ac_cpp_err=$ac_c_preproc_warn_flag
35492     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35493   else
35494     ac_cpp_err=
35495   fi
35496 else
35497   ac_cpp_err=yes
35498 fi
35499 if test -z "$ac_cpp_err"; then
35500   ac_header_preproc=yes
35501 else
35502   echo "$as_me: failed program was:" >&5
35503 sed 's/^/| /' conftest.$ac_ext >&5
35504
35505   ac_header_preproc=no
35506 fi
35507 rm -f conftest.err conftest.$ac_ext
35508 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35509 echo "${ECHO_T}$ac_header_preproc" >&6
35510
35511 # So?  What about this header?
35512 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35513   yes:no: )
35514     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35515 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35516     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35517 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35518     ac_header_preproc=yes
35519     ;;
35520   no:yes:* )
35521     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35522 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35523     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35524 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35525     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35526 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35527     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35528 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35529     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35530 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35531     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35532 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35533     (
35534       cat <<\_ASBOX
35535 ## ------------------------------------------ ##
35536 ## Report this to the AC_PACKAGE_NAME lists.  ##
35537 ## ------------------------------------------ ##
35538 _ASBOX
35539     ) |
35540       sed "s/^/$as_me: WARNING:     /" >&2
35541     ;;
35542 esac
35543 echo "$as_me:$LINENO: checking for $ac_header" >&5
35544 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35545 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35546   echo $ECHO_N "(cached) $ECHO_C" >&6
35547 else
35548   eval "$as_ac_Header=\$ac_header_preproc"
35549 fi
35550 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35551 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35552
35553 fi
35554 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35555   cat >>confdefs.h <<_ACEOF
35556 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35557 _ACEOF
35558
35559 fi
35560
35561 done
35562
35563
35564         if test $ac_cv_header_pth_h = yes ; then
35565                 echo "$as_me:$LINENO: checking for pth_version in -lpth" >&5
35566 echo $ECHO_N "checking for pth_version in -lpth... $ECHO_C" >&6
35567 if test "${ac_cv_lib_pth_pth_version+set}" = set; then
35568   echo $ECHO_N "(cached) $ECHO_C" >&6
35569 else
35570   ac_check_lib_save_LIBS=$LIBS
35571 LIBS="-lpth  $LIBS"
35572 cat >conftest.$ac_ext <<_ACEOF
35573 /* confdefs.h.  */
35574 _ACEOF
35575 cat confdefs.h >>conftest.$ac_ext
35576 cat >>conftest.$ac_ext <<_ACEOF
35577 /* end confdefs.h.  */
35578
35579 /* Override any gcc2 internal prototype to avoid an error.  */
35580 #ifdef __cplusplus
35581 extern "C"
35582 #endif
35583 /* We use char because int might match the return type of a gcc2
35584    builtin and then its argument prototype would still apply.  */
35585 char pth_version ();
35586 int
35587 main ()
35588 {
35589 pth_version ();
35590   ;
35591   return 0;
35592 }
35593 _ACEOF
35594 rm -f conftest.$ac_objext conftest$ac_exeext
35595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35596   (eval $ac_link) 2>conftest.er1
35597   ac_status=$?
35598   grep -v '^ *+' conftest.er1 >conftest.err
35599   rm -f conftest.er1
35600   cat conftest.err >&5
35601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35602   (exit $ac_status); } &&
35603          { ac_try='test -z "$ac_c_werror_flag"
35604                          || test ! -s conftest.err'
35605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35606   (eval $ac_try) 2>&5
35607   ac_status=$?
35608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35609   (exit $ac_status); }; } &&
35610          { ac_try='test -s conftest$ac_exeext'
35611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35612   (eval $ac_try) 2>&5
35613   ac_status=$?
35614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35615   (exit $ac_status); }; }; then
35616   ac_cv_lib_pth_pth_version=yes
35617 else
35618   echo "$as_me: failed program was:" >&5
35619 sed 's/^/| /' conftest.$ac_ext >&5
35620
35621 ac_cv_lib_pth_pth_version=no
35622 fi
35623 rm -f conftest.err conftest.$ac_objext \
35624       conftest$ac_exeext conftest.$ac_ext
35625 LIBS=$ac_check_lib_save_LIBS
35626 fi
35627 echo "$as_me:$LINENO: result: $ac_cv_lib_pth_pth_version" >&5
35628 echo "${ECHO_T}$ac_cv_lib_pth_pth_version" >&6
35629 if test $ac_cv_lib_pth_pth_version = yes; then
35630   have_pth=yes
35631 else
35632   have_pth=no
35633 fi
35634
35635
35636                 if test $have_pth = yes ; then
35637
35638 cat >>confdefs.h <<\_ACEOF
35639 #define HAVE_GNU_PTH 1
35640 _ACEOF
35641
35642                         LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
35643                         ol_link_threads=pth
35644                         ol_with_threads=found
35645
35646                         if test $ol_with_yielding_select = auto ; then
35647                                 ol_with_yielding_select=yes
35648                         fi
35649                 fi
35650         fi
35651 fi
35652
35653 if test $ol_with_threads = auto -o $ol_with_threads = yes \
35654         -o $ol_with_threads = lwp ; then
35655
35656
35657
35658 for ac_header in thread.h synch.h
35659 do
35660 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35661 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35662   echo "$as_me:$LINENO: checking for $ac_header" >&5
35663 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35664 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35665   echo $ECHO_N "(cached) $ECHO_C" >&6
35666 fi
35667 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35668 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35669 else
35670   # Is the header compilable?
35671 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35672 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35673 cat >conftest.$ac_ext <<_ACEOF
35674 /* confdefs.h.  */
35675 _ACEOF
35676 cat confdefs.h >>conftest.$ac_ext
35677 cat >>conftest.$ac_ext <<_ACEOF
35678 /* end confdefs.h.  */
35679 $ac_includes_default
35680 #include <$ac_header>
35681 _ACEOF
35682 rm -f conftest.$ac_objext
35683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35684   (eval $ac_compile) 2>conftest.er1
35685   ac_status=$?
35686   grep -v '^ *+' conftest.er1 >conftest.err
35687   rm -f conftest.er1
35688   cat conftest.err >&5
35689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35690   (exit $ac_status); } &&
35691          { ac_try='test -z "$ac_c_werror_flag"
35692                          || test ! -s conftest.err'
35693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35694   (eval $ac_try) 2>&5
35695   ac_status=$?
35696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35697   (exit $ac_status); }; } &&
35698          { ac_try='test -s conftest.$ac_objext'
35699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35700   (eval $ac_try) 2>&5
35701   ac_status=$?
35702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35703   (exit $ac_status); }; }; then
35704   ac_header_compiler=yes
35705 else
35706   echo "$as_me: failed program was:" >&5
35707 sed 's/^/| /' conftest.$ac_ext >&5
35708
35709 ac_header_compiler=no
35710 fi
35711 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35712 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35713 echo "${ECHO_T}$ac_header_compiler" >&6
35714
35715 # Is the header present?
35716 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35717 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35718 cat >conftest.$ac_ext <<_ACEOF
35719 /* confdefs.h.  */
35720 _ACEOF
35721 cat confdefs.h >>conftest.$ac_ext
35722 cat >>conftest.$ac_ext <<_ACEOF
35723 /* end confdefs.h.  */
35724 #include <$ac_header>
35725 _ACEOF
35726 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35727   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35728   ac_status=$?
35729   grep -v '^ *+' conftest.er1 >conftest.err
35730   rm -f conftest.er1
35731   cat conftest.err >&5
35732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35733   (exit $ac_status); } >/dev/null; then
35734   if test -s conftest.err; then
35735     ac_cpp_err=$ac_c_preproc_warn_flag
35736     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35737   else
35738     ac_cpp_err=
35739   fi
35740 else
35741   ac_cpp_err=yes
35742 fi
35743 if test -z "$ac_cpp_err"; then
35744   ac_header_preproc=yes
35745 else
35746   echo "$as_me: failed program was:" >&5
35747 sed 's/^/| /' conftest.$ac_ext >&5
35748
35749   ac_header_preproc=no
35750 fi
35751 rm -f conftest.err conftest.$ac_ext
35752 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35753 echo "${ECHO_T}$ac_header_preproc" >&6
35754
35755 # So?  What about this header?
35756 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35757   yes:no: )
35758     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35759 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35760     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35761 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35762     ac_header_preproc=yes
35763     ;;
35764   no:yes:* )
35765     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35766 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35767     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35768 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35769     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35770 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35771     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35772 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35773     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35774 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35775     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35776 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35777     (
35778       cat <<\_ASBOX
35779 ## ------------------------------------------ ##
35780 ## Report this to the AC_PACKAGE_NAME lists.  ##
35781 ## ------------------------------------------ ##
35782 _ASBOX
35783     ) |
35784       sed "s/^/$as_me: WARNING:     /" >&2
35785     ;;
35786 esac
35787 echo "$as_me:$LINENO: checking for $ac_header" >&5
35788 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35789 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35790   echo $ECHO_N "(cached) $ECHO_C" >&6
35791 else
35792   eval "$as_ac_Header=\$ac_header_preproc"
35793 fi
35794 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35795 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35796
35797 fi
35798 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35799   cat >>confdefs.h <<_ACEOF
35800 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35801 _ACEOF
35802
35803 fi
35804
35805 done
35806
35807         if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
35808                 echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
35809 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6
35810 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
35811   echo $ECHO_N "(cached) $ECHO_C" >&6
35812 else
35813   ac_check_lib_save_LIBS=$LIBS
35814 LIBS="-lthread  $LIBS"
35815 cat >conftest.$ac_ext <<_ACEOF
35816 /* confdefs.h.  */
35817 _ACEOF
35818 cat confdefs.h >>conftest.$ac_ext
35819 cat >>conftest.$ac_ext <<_ACEOF
35820 /* end confdefs.h.  */
35821
35822 /* Override any gcc2 internal prototype to avoid an error.  */
35823 #ifdef __cplusplus
35824 extern "C"
35825 #endif
35826 /* We use char because int might match the return type of a gcc2
35827    builtin and then its argument prototype would still apply.  */
35828 char thr_create ();
35829 int
35830 main ()
35831 {
35832 thr_create ();
35833   ;
35834   return 0;
35835 }
35836 _ACEOF
35837 rm -f conftest.$ac_objext conftest$ac_exeext
35838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35839   (eval $ac_link) 2>conftest.er1
35840   ac_status=$?
35841   grep -v '^ *+' conftest.er1 >conftest.err
35842   rm -f conftest.er1
35843   cat conftest.err >&5
35844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35845   (exit $ac_status); } &&
35846          { ac_try='test -z "$ac_c_werror_flag"
35847                          || test ! -s conftest.err'
35848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35849   (eval $ac_try) 2>&5
35850   ac_status=$?
35851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35852   (exit $ac_status); }; } &&
35853          { ac_try='test -s conftest$ac_exeext'
35854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35855   (eval $ac_try) 2>&5
35856   ac_status=$?
35857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35858   (exit $ac_status); }; }; then
35859   ac_cv_lib_thread_thr_create=yes
35860 else
35861   echo "$as_me: failed program was:" >&5
35862 sed 's/^/| /' conftest.$ac_ext >&5
35863
35864 ac_cv_lib_thread_thr_create=no
35865 fi
35866 rm -f conftest.err conftest.$ac_objext \
35867       conftest$ac_exeext conftest.$ac_ext
35868 LIBS=$ac_check_lib_save_LIBS
35869 fi
35870 echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
35871 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6
35872 if test $ac_cv_lib_thread_thr_create = yes; then
35873   have_thr=yes
35874 else
35875   have_thr=no
35876 fi
35877
35878
35879                 if test $have_thr = yes ; then
35880
35881 cat >>confdefs.h <<\_ACEOF
35882 #define HAVE_THR 1
35883 _ACEOF
35884
35885                         LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
35886                         ol_link_threads=thr
35887
35888                         if test $ol_with_yielding_select = auto ; then
35889                                 ol_with_yielding_select=yes
35890                         fi
35891
35892
35893
35894 for ac_func in \
35895                                 thr_setconcurrency \
35896                                 thr_getconcurrency \
35897
35898 do
35899 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35900 echo "$as_me:$LINENO: checking for $ac_func" >&5
35901 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35902 if eval "test \"\${$as_ac_var+set}\" = set"; then
35903   echo $ECHO_N "(cached) $ECHO_C" >&6
35904 else
35905   cat >conftest.$ac_ext <<_ACEOF
35906 /* confdefs.h.  */
35907 _ACEOF
35908 cat confdefs.h >>conftest.$ac_ext
35909 cat >>conftest.$ac_ext <<_ACEOF
35910 /* end confdefs.h.  */
35911 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35912    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35913 #define $ac_func innocuous_$ac_func
35914
35915 /* System header to define __stub macros and hopefully few prototypes,
35916     which can conflict with char $ac_func (); below.
35917     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35918     <limits.h> exists even on freestanding compilers.  */
35919
35920 #ifdef __STDC__
35921 # include <limits.h>
35922 #else
35923 # include <assert.h>
35924 #endif
35925
35926 #undef $ac_func
35927
35928 /* Override any gcc2 internal prototype to avoid an error.  */
35929 #ifdef __cplusplus
35930 extern "C"
35931 {
35932 #endif
35933 /* We use char because int might match the return type of a gcc2
35934    builtin and then its argument prototype would still apply.  */
35935 char $ac_func ();
35936 /* The GNU C library defines this for functions which it implements
35937     to always fail with ENOSYS.  Some functions are actually named
35938     something starting with __ and the normal name is an alias.  */
35939 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35940 choke me
35941 #else
35942 char (*f) () = $ac_func;
35943 #endif
35944 #ifdef __cplusplus
35945 }
35946 #endif
35947
35948 int
35949 main ()
35950 {
35951 return f != $ac_func;
35952   ;
35953   return 0;
35954 }
35955 _ACEOF
35956 rm -f conftest.$ac_objext conftest$ac_exeext
35957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35958   (eval $ac_link) 2>conftest.er1
35959   ac_status=$?
35960   grep -v '^ *+' conftest.er1 >conftest.err
35961   rm -f conftest.er1
35962   cat conftest.err >&5
35963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35964   (exit $ac_status); } &&
35965          { ac_try='test -z "$ac_c_werror_flag"
35966                          || test ! -s conftest.err'
35967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35968   (eval $ac_try) 2>&5
35969   ac_status=$?
35970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35971   (exit $ac_status); }; } &&
35972          { ac_try='test -s conftest$ac_exeext'
35973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35974   (eval $ac_try) 2>&5
35975   ac_status=$?
35976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35977   (exit $ac_status); }; }; then
35978   eval "$as_ac_var=yes"
35979 else
35980   echo "$as_me: failed program was:" >&5
35981 sed 's/^/| /' conftest.$ac_ext >&5
35982
35983 eval "$as_ac_var=no"
35984 fi
35985 rm -f conftest.err conftest.$ac_objext \
35986       conftest$ac_exeext conftest.$ac_ext
35987 fi
35988 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35989 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35990 if test `eval echo '${'$as_ac_var'}'` = yes; then
35991   cat >>confdefs.h <<_ACEOF
35992 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35993 _ACEOF
35994
35995 fi
35996 done
35997
35998                 fi
35999         fi
36000
36001
36002 for ac_header in lwp/lwp.h
36003 do
36004 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36005 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36006   echo "$as_me:$LINENO: checking for $ac_header" >&5
36007 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36008 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36009   echo $ECHO_N "(cached) $ECHO_C" >&6
36010 fi
36011 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36012 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36013 else
36014   # Is the header compilable?
36015 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36016 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36017 cat >conftest.$ac_ext <<_ACEOF
36018 /* confdefs.h.  */
36019 _ACEOF
36020 cat confdefs.h >>conftest.$ac_ext
36021 cat >>conftest.$ac_ext <<_ACEOF
36022 /* end confdefs.h.  */
36023 $ac_includes_default
36024 #include <$ac_header>
36025 _ACEOF
36026 rm -f conftest.$ac_objext
36027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36028   (eval $ac_compile) 2>conftest.er1
36029   ac_status=$?
36030   grep -v '^ *+' conftest.er1 >conftest.err
36031   rm -f conftest.er1
36032   cat conftest.err >&5
36033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36034   (exit $ac_status); } &&
36035          { ac_try='test -z "$ac_c_werror_flag"
36036                          || test ! -s conftest.err'
36037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36038   (eval $ac_try) 2>&5
36039   ac_status=$?
36040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36041   (exit $ac_status); }; } &&
36042          { ac_try='test -s conftest.$ac_objext'
36043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36044   (eval $ac_try) 2>&5
36045   ac_status=$?
36046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36047   (exit $ac_status); }; }; then
36048   ac_header_compiler=yes
36049 else
36050   echo "$as_me: failed program was:" >&5
36051 sed 's/^/| /' conftest.$ac_ext >&5
36052
36053 ac_header_compiler=no
36054 fi
36055 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36056 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36057 echo "${ECHO_T}$ac_header_compiler" >&6
36058
36059 # Is the header present?
36060 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36061 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36062 cat >conftest.$ac_ext <<_ACEOF
36063 /* confdefs.h.  */
36064 _ACEOF
36065 cat confdefs.h >>conftest.$ac_ext
36066 cat >>conftest.$ac_ext <<_ACEOF
36067 /* end confdefs.h.  */
36068 #include <$ac_header>
36069 _ACEOF
36070 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36071   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36072   ac_status=$?
36073   grep -v '^ *+' conftest.er1 >conftest.err
36074   rm -f conftest.er1
36075   cat conftest.err >&5
36076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36077   (exit $ac_status); } >/dev/null; then
36078   if test -s conftest.err; then
36079     ac_cpp_err=$ac_c_preproc_warn_flag
36080     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36081   else
36082     ac_cpp_err=
36083   fi
36084 else
36085   ac_cpp_err=yes
36086 fi
36087 if test -z "$ac_cpp_err"; then
36088   ac_header_preproc=yes
36089 else
36090   echo "$as_me: failed program was:" >&5
36091 sed 's/^/| /' conftest.$ac_ext >&5
36092
36093   ac_header_preproc=no
36094 fi
36095 rm -f conftest.err conftest.$ac_ext
36096 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36097 echo "${ECHO_T}$ac_header_preproc" >&6
36098
36099 # So?  What about this header?
36100 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36101   yes:no: )
36102     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36103 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36104     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36105 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36106     ac_header_preproc=yes
36107     ;;
36108   no:yes:* )
36109     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36110 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36111     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
36112 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
36113     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36114 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36115     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
36116 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
36117     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36118 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36119     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36120 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36121     (
36122       cat <<\_ASBOX
36123 ## ------------------------------------------ ##
36124 ## Report this to the AC_PACKAGE_NAME lists.  ##
36125 ## ------------------------------------------ ##
36126 _ASBOX
36127     ) |
36128       sed "s/^/$as_me: WARNING:     /" >&2
36129     ;;
36130 esac
36131 echo "$as_me:$LINENO: checking for $ac_header" >&5
36132 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36133 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36134   echo $ECHO_N "(cached) $ECHO_C" >&6
36135 else
36136   eval "$as_ac_Header=\$ac_header_preproc"
36137 fi
36138 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36139 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36140
36141 fi
36142 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36143   cat >>confdefs.h <<_ACEOF
36144 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36145 _ACEOF
36146
36147 fi
36148
36149 done
36150
36151         if test $ac_cv_header_lwp_lwp_h = yes ; then
36152                 echo "$as_me:$LINENO: checking for lwp_create in -llwp" >&5
36153 echo $ECHO_N "checking for lwp_create in -llwp... $ECHO_C" >&6
36154 if test "${ac_cv_lib_lwp_lwp_create+set}" = set; then
36155   echo $ECHO_N "(cached) $ECHO_C" >&6
36156 else
36157   ac_check_lib_save_LIBS=$LIBS
36158 LIBS="-llwp  $LIBS"
36159 cat >conftest.$ac_ext <<_ACEOF
36160 /* confdefs.h.  */
36161 _ACEOF
36162 cat confdefs.h >>conftest.$ac_ext
36163 cat >>conftest.$ac_ext <<_ACEOF
36164 /* end confdefs.h.  */
36165
36166 /* Override any gcc2 internal prototype to avoid an error.  */
36167 #ifdef __cplusplus
36168 extern "C"
36169 #endif
36170 /* We use char because int might match the return type of a gcc2
36171    builtin and then its argument prototype would still apply.  */
36172 char lwp_create ();
36173 int
36174 main ()
36175 {
36176 lwp_create ();
36177   ;
36178   return 0;
36179 }
36180 _ACEOF
36181 rm -f conftest.$ac_objext conftest$ac_exeext
36182 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36183   (eval $ac_link) 2>conftest.er1
36184   ac_status=$?
36185   grep -v '^ *+' conftest.er1 >conftest.err
36186   rm -f conftest.er1
36187   cat conftest.err >&5
36188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36189   (exit $ac_status); } &&
36190          { ac_try='test -z "$ac_c_werror_flag"
36191                          || test ! -s conftest.err'
36192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36193   (eval $ac_try) 2>&5
36194   ac_status=$?
36195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36196   (exit $ac_status); }; } &&
36197          { ac_try='test -s conftest$ac_exeext'
36198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36199   (eval $ac_try) 2>&5
36200   ac_status=$?
36201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36202   (exit $ac_status); }; }; then
36203   ac_cv_lib_lwp_lwp_create=yes
36204 else
36205   echo "$as_me: failed program was:" >&5
36206 sed 's/^/| /' conftest.$ac_ext >&5
36207
36208 ac_cv_lib_lwp_lwp_create=no
36209 fi
36210 rm -f conftest.err conftest.$ac_objext \
36211       conftest$ac_exeext conftest.$ac_ext
36212 LIBS=$ac_check_lib_save_LIBS
36213 fi
36214 echo "$as_me:$LINENO: result: $ac_cv_lib_lwp_lwp_create" >&5
36215 echo "${ECHO_T}$ac_cv_lib_lwp_lwp_create" >&6
36216 if test $ac_cv_lib_lwp_lwp_create = yes; then
36217   have_lwp=yes
36218 else
36219   have_lwp=no
36220 fi
36221
36222
36223                 if test $have_lwp = yes ; then
36224
36225 cat >>confdefs.h <<\_ACEOF
36226 #define HAVE_LWP 1
36227 _ACEOF
36228
36229                         LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
36230                         ol_link_threads=lwp
36231
36232                         if test $ol_with_yielding_select = auto ; then
36233                                 ol_with_yielding_select=no
36234                         fi
36235                 fi
36236         fi
36237 fi
36238
36239 if test $ol_with_yielding_select = yes ; then
36240
36241 cat >>confdefs.h <<\_ACEOF
36242 #define HAVE_YIELDING_SELECT 1
36243 _ACEOF
36244
36245 fi
36246
36247 if test $ol_with_threads = manual ; then
36248                 ol_link_threads=yes
36249
36250         { echo "$as_me:$LINENO: WARNING: thread defines and link options must be set manually" >&5
36251 echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
36252
36253
36254
36255 for ac_header in pthread.h sched.h
36256 do
36257 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36258 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36259   echo "$as_me:$LINENO: checking for $ac_header" >&5
36260 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36261 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36262   echo $ECHO_N "(cached) $ECHO_C" >&6
36263 fi
36264 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36265 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36266 else
36267   # Is the header compilable?
36268 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36269 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36270 cat >conftest.$ac_ext <<_ACEOF
36271 /* confdefs.h.  */
36272 _ACEOF
36273 cat confdefs.h >>conftest.$ac_ext
36274 cat >>conftest.$ac_ext <<_ACEOF
36275 /* end confdefs.h.  */
36276 $ac_includes_default
36277 #include <$ac_header>
36278 _ACEOF
36279 rm -f conftest.$ac_objext
36280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36281   (eval $ac_compile) 2>conftest.er1
36282   ac_status=$?
36283   grep -v '^ *+' conftest.er1 >conftest.err
36284   rm -f conftest.er1
36285   cat conftest.err >&5
36286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36287   (exit $ac_status); } &&
36288          { ac_try='test -z "$ac_c_werror_flag"
36289                          || test ! -s conftest.err'
36290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36291   (eval $ac_try) 2>&5
36292   ac_status=$?
36293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36294   (exit $ac_status); }; } &&
36295          { ac_try='test -s conftest.$ac_objext'
36296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36297   (eval $ac_try) 2>&5
36298   ac_status=$?
36299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36300   (exit $ac_status); }; }; then
36301   ac_header_compiler=yes
36302 else
36303   echo "$as_me: failed program was:" >&5
36304 sed 's/^/| /' conftest.$ac_ext >&5
36305
36306 ac_header_compiler=no
36307 fi
36308 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36309 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36310 echo "${ECHO_T}$ac_header_compiler" >&6
36311
36312 # Is the header present?
36313 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36314 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36315 cat >conftest.$ac_ext <<_ACEOF
36316 /* confdefs.h.  */
36317 _ACEOF
36318 cat confdefs.h >>conftest.$ac_ext
36319 cat >>conftest.$ac_ext <<_ACEOF
36320 /* end confdefs.h.  */
36321 #include <$ac_header>
36322 _ACEOF
36323 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36324   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36325   ac_status=$?
36326   grep -v '^ *+' conftest.er1 >conftest.err
36327   rm -f conftest.er1
36328   cat conftest.err >&5
36329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36330   (exit $ac_status); } >/dev/null; then
36331   if test -s conftest.err; then
36332     ac_cpp_err=$ac_c_preproc_warn_flag
36333     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36334   else
36335     ac_cpp_err=
36336   fi
36337 else
36338   ac_cpp_err=yes
36339 fi
36340 if test -z "$ac_cpp_err"; then
36341   ac_header_preproc=yes
36342 else
36343   echo "$as_me: failed program was:" >&5
36344 sed 's/^/| /' conftest.$ac_ext >&5
36345
36346   ac_header_preproc=no
36347 fi
36348 rm -f conftest.err conftest.$ac_ext
36349 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36350 echo "${ECHO_T}$ac_header_preproc" >&6
36351
36352 # So?  What about this header?
36353 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36354   yes:no: )
36355     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36356 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36357     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36358 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36359     ac_header_preproc=yes
36360     ;;
36361   no:yes:* )
36362     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36363 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36364     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
36365 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
36366     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36367 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36368     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
36369 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
36370     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36371 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36372     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36373 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36374     (
36375       cat <<\_ASBOX
36376 ## ------------------------------------------ ##
36377 ## Report this to the AC_PACKAGE_NAME lists.  ##
36378 ## ------------------------------------------ ##
36379 _ASBOX
36380     ) |
36381       sed "s/^/$as_me: WARNING:     /" >&2
36382     ;;
36383 esac
36384 echo "$as_me:$LINENO: checking for $ac_header" >&5
36385 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36386 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36387   echo $ECHO_N "(cached) $ECHO_C" >&6
36388 else
36389   eval "$as_ac_Header=\$ac_header_preproc"
36390 fi
36391 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36392 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36393
36394 fi
36395 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36396   cat >>confdefs.h <<_ACEOF
36397 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36398 _ACEOF
36399
36400 fi
36401
36402 done
36403
36404
36405
36406 for ac_func in sched_yield pthread_yield
36407 do
36408 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36409 echo "$as_me:$LINENO: checking for $ac_func" >&5
36410 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36411 if eval "test \"\${$as_ac_var+set}\" = set"; then
36412   echo $ECHO_N "(cached) $ECHO_C" >&6
36413 else
36414   cat >conftest.$ac_ext <<_ACEOF
36415 /* confdefs.h.  */
36416 _ACEOF
36417 cat confdefs.h >>conftest.$ac_ext
36418 cat >>conftest.$ac_ext <<_ACEOF
36419 /* end confdefs.h.  */
36420 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36421    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36422 #define $ac_func innocuous_$ac_func
36423
36424 /* System header to define __stub macros and hopefully few prototypes,
36425     which can conflict with char $ac_func (); below.
36426     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36427     <limits.h> exists even on freestanding compilers.  */
36428
36429 #ifdef __STDC__
36430 # include <limits.h>
36431 #else
36432 # include <assert.h>
36433 #endif
36434
36435 #undef $ac_func
36436
36437 /* Override any gcc2 internal prototype to avoid an error.  */
36438 #ifdef __cplusplus
36439 extern "C"
36440 {
36441 #endif
36442 /* We use char because int might match the return type of a gcc2
36443    builtin and then its argument prototype would still apply.  */
36444 char $ac_func ();
36445 /* The GNU C library defines this for functions which it implements
36446     to always fail with ENOSYS.  Some functions are actually named
36447     something starting with __ and the normal name is an alias.  */
36448 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36449 choke me
36450 #else
36451 char (*f) () = $ac_func;
36452 #endif
36453 #ifdef __cplusplus
36454 }
36455 #endif
36456
36457 int
36458 main ()
36459 {
36460 return f != $ac_func;
36461   ;
36462   return 0;
36463 }
36464 _ACEOF
36465 rm -f conftest.$ac_objext conftest$ac_exeext
36466 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36467   (eval $ac_link) 2>conftest.er1
36468   ac_status=$?
36469   grep -v '^ *+' conftest.er1 >conftest.err
36470   rm -f conftest.er1
36471   cat conftest.err >&5
36472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36473   (exit $ac_status); } &&
36474          { ac_try='test -z "$ac_c_werror_flag"
36475                          || test ! -s conftest.err'
36476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36477   (eval $ac_try) 2>&5
36478   ac_status=$?
36479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36480   (exit $ac_status); }; } &&
36481          { ac_try='test -s conftest$ac_exeext'
36482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36483   (eval $ac_try) 2>&5
36484   ac_status=$?
36485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36486   (exit $ac_status); }; }; then
36487   eval "$as_ac_var=yes"
36488 else
36489   echo "$as_me: failed program was:" >&5
36490 sed 's/^/| /' conftest.$ac_ext >&5
36491
36492 eval "$as_ac_var=no"
36493 fi
36494 rm -f conftest.err conftest.$ac_objext \
36495       conftest$ac_exeext conftest.$ac_ext
36496 fi
36497 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36498 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36499 if test `eval echo '${'$as_ac_var'}'` = yes; then
36500   cat >>confdefs.h <<_ACEOF
36501 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36502 _ACEOF
36503
36504 fi
36505 done
36506
36507
36508         echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
36509 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
36510 if test "${ol_cv_header_linux_threads+set}" = set; then
36511   echo $ECHO_N "(cached) $ECHO_C" >&6
36512 else
36513   cat >conftest.$ac_ext <<_ACEOF
36514 /* confdefs.h.  */
36515 _ACEOF
36516 cat confdefs.h >>conftest.$ac_ext
36517 cat >>conftest.$ac_ext <<_ACEOF
36518 /* end confdefs.h.  */
36519 #include <pthread.h>
36520 _ACEOF
36521 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36522   $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
36523   ol_cv_header_linux_threads=yes
36524 else
36525   ol_cv_header_linux_threads=no
36526 fi
36527 rm -f conftest*
36528
36529
36530 fi
36531 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
36532 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
36533         if test $ol_cv_header_linux_threads = yes; then
36534
36535 cat >>confdefs.h <<\_ACEOF
36536 #define HAVE_LINUX_THREADS 1
36537 _ACEOF
36538
36539         fi
36540
36541
36542
36543 for ac_header in mach/cthreads.h
36544 do
36545 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36546 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36547   echo "$as_me:$LINENO: checking for $ac_header" >&5
36548 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36549 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36550   echo $ECHO_N "(cached) $ECHO_C" >&6
36551 fi
36552 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36553 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36554 else
36555   # Is the header compilable?
36556 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36557 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36558 cat >conftest.$ac_ext <<_ACEOF
36559 /* confdefs.h.  */
36560 _ACEOF
36561 cat confdefs.h >>conftest.$ac_ext
36562 cat >>conftest.$ac_ext <<_ACEOF
36563 /* end confdefs.h.  */
36564 $ac_includes_default
36565 #include <$ac_header>
36566 _ACEOF
36567 rm -f conftest.$ac_objext
36568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36569   (eval $ac_compile) 2>conftest.er1
36570   ac_status=$?
36571   grep -v '^ *+' conftest.er1 >conftest.err
36572   rm -f conftest.er1
36573   cat conftest.err >&5
36574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36575   (exit $ac_status); } &&
36576          { ac_try='test -z "$ac_c_werror_flag"
36577                          || test ! -s conftest.err'
36578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36579   (eval $ac_try) 2>&5
36580   ac_status=$?
36581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36582   (exit $ac_status); }; } &&
36583          { ac_try='test -s conftest.$ac_objext'
36584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36585   (eval $ac_try) 2>&5
36586   ac_status=$?
36587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36588   (exit $ac_status); }; }; then
36589   ac_header_compiler=yes
36590 else
36591   echo "$as_me: failed program was:" >&5
36592 sed 's/^/| /' conftest.$ac_ext >&5
36593
36594 ac_header_compiler=no
36595 fi
36596 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36597 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36598 echo "${ECHO_T}$ac_header_compiler" >&6
36599
36600 # Is the header present?
36601 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36602 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36603 cat >conftest.$ac_ext <<_ACEOF
36604 /* confdefs.h.  */
36605 _ACEOF
36606 cat confdefs.h >>conftest.$ac_ext
36607 cat >>conftest.$ac_ext <<_ACEOF
36608 /* end confdefs.h.  */
36609 #include <$ac_header>
36610 _ACEOF
36611 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36612   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36613   ac_status=$?
36614   grep -v '^ *+' conftest.er1 >conftest.err
36615   rm -f conftest.er1
36616   cat conftest.err >&5
36617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36618   (exit $ac_status); } >/dev/null; then
36619   if test -s conftest.err; then
36620     ac_cpp_err=$ac_c_preproc_warn_flag
36621     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36622   else
36623     ac_cpp_err=
36624   fi
36625 else
36626   ac_cpp_err=yes
36627 fi
36628 if test -z "$ac_cpp_err"; then
36629   ac_header_preproc=yes
36630 else
36631   echo "$as_me: failed program was:" >&5
36632 sed 's/^/| /' conftest.$ac_ext >&5
36633
36634   ac_header_preproc=no
36635 fi
36636 rm -f conftest.err conftest.$ac_ext
36637 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36638 echo "${ECHO_T}$ac_header_preproc" >&6
36639
36640 # So?  What about this header?
36641 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36642   yes:no: )
36643     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36644 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36645     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36646 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36647     ac_header_preproc=yes
36648     ;;
36649   no:yes:* )
36650     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36651 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36652     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
36653 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
36654     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36655 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36656     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
36657 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
36658     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36659 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36660     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36661 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36662     (
36663       cat <<\_ASBOX
36664 ## ------------------------------------------ ##
36665 ## Report this to the AC_PACKAGE_NAME lists.  ##
36666 ## ------------------------------------------ ##
36667 _ASBOX
36668     ) |
36669       sed "s/^/$as_me: WARNING:     /" >&2
36670     ;;
36671 esac
36672 echo "$as_me:$LINENO: checking for $ac_header" >&5
36673 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36674 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36675   echo $ECHO_N "(cached) $ECHO_C" >&6
36676 else
36677   eval "$as_ac_Header=\$ac_header_preproc"
36678 fi
36679 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36680 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36681
36682 fi
36683 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36684   cat >>confdefs.h <<_ACEOF
36685 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36686 _ACEOF
36687
36688 fi
36689
36690 done
36691
36692
36693 for ac_header in lwp/lwp.h
36694 do
36695 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36696 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36697   echo "$as_me:$LINENO: checking for $ac_header" >&5
36698 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36699 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36700   echo $ECHO_N "(cached) $ECHO_C" >&6
36701 fi
36702 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36703 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36704 else
36705   # Is the header compilable?
36706 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36707 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36708 cat >conftest.$ac_ext <<_ACEOF
36709 /* confdefs.h.  */
36710 _ACEOF
36711 cat confdefs.h >>conftest.$ac_ext
36712 cat >>conftest.$ac_ext <<_ACEOF
36713 /* end confdefs.h.  */
36714 $ac_includes_default
36715 #include <$ac_header>
36716 _ACEOF
36717 rm -f conftest.$ac_objext
36718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36719   (eval $ac_compile) 2>conftest.er1
36720   ac_status=$?
36721   grep -v '^ *+' conftest.er1 >conftest.err
36722   rm -f conftest.er1
36723   cat conftest.err >&5
36724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36725   (exit $ac_status); } &&
36726          { ac_try='test -z "$ac_c_werror_flag"
36727                          || test ! -s conftest.err'
36728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36729   (eval $ac_try) 2>&5
36730   ac_status=$?
36731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36732   (exit $ac_status); }; } &&
36733          { ac_try='test -s conftest.$ac_objext'
36734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36735   (eval $ac_try) 2>&5
36736   ac_status=$?
36737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36738   (exit $ac_status); }; }; then
36739   ac_header_compiler=yes
36740 else
36741   echo "$as_me: failed program was:" >&5
36742 sed 's/^/| /' conftest.$ac_ext >&5
36743
36744 ac_header_compiler=no
36745 fi
36746 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36747 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36748 echo "${ECHO_T}$ac_header_compiler" >&6
36749
36750 # Is the header present?
36751 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36752 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36753 cat >conftest.$ac_ext <<_ACEOF
36754 /* confdefs.h.  */
36755 _ACEOF
36756 cat confdefs.h >>conftest.$ac_ext
36757 cat >>conftest.$ac_ext <<_ACEOF
36758 /* end confdefs.h.  */
36759 #include <$ac_header>
36760 _ACEOF
36761 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36762   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36763   ac_status=$?
36764   grep -v '^ *+' conftest.er1 >conftest.err
36765   rm -f conftest.er1
36766   cat conftest.err >&5
36767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36768   (exit $ac_status); } >/dev/null; then
36769   if test -s conftest.err; then
36770     ac_cpp_err=$ac_c_preproc_warn_flag
36771     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36772   else
36773     ac_cpp_err=
36774   fi
36775 else
36776   ac_cpp_err=yes
36777 fi
36778 if test -z "$ac_cpp_err"; then
36779   ac_header_preproc=yes
36780 else
36781   echo "$as_me: failed program was:" >&5
36782 sed 's/^/| /' conftest.$ac_ext >&5
36783
36784   ac_header_preproc=no
36785 fi
36786 rm -f conftest.err conftest.$ac_ext
36787 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36788 echo "${ECHO_T}$ac_header_preproc" >&6
36789
36790 # So?  What about this header?
36791 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36792   yes:no: )
36793     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36794 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36795     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36796 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36797     ac_header_preproc=yes
36798     ;;
36799   no:yes:* )
36800     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36801 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36802     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
36803 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
36804     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36805 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36806     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
36807 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
36808     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36809 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36810     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36811 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36812     (
36813       cat <<\_ASBOX
36814 ## ------------------------------------------ ##
36815 ## Report this to the AC_PACKAGE_NAME lists.  ##
36816 ## ------------------------------------------ ##
36817 _ASBOX
36818     ) |
36819       sed "s/^/$as_me: WARNING:     /" >&2
36820     ;;
36821 esac
36822 echo "$as_me:$LINENO: checking for $ac_header" >&5
36823 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36824 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36825   echo $ECHO_N "(cached) $ECHO_C" >&6
36826 else
36827   eval "$as_ac_Header=\$ac_header_preproc"
36828 fi
36829 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36830 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36831
36832 fi
36833 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36834   cat >>confdefs.h <<_ACEOF
36835 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36836 _ACEOF
36837
36838 fi
36839
36840 done
36841
36842
36843
36844 for ac_header in thread.h synch.h
36845 do
36846 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36847 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36848   echo "$as_me:$LINENO: checking for $ac_header" >&5
36849 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36850 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36851   echo $ECHO_N "(cached) $ECHO_C" >&6
36852 fi
36853 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36854 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36855 else
36856   # Is the header compilable?
36857 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36858 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36859 cat >conftest.$ac_ext <<_ACEOF
36860 /* confdefs.h.  */
36861 _ACEOF
36862 cat confdefs.h >>conftest.$ac_ext
36863 cat >>conftest.$ac_ext <<_ACEOF
36864 /* end confdefs.h.  */
36865 $ac_includes_default
36866 #include <$ac_header>
36867 _ACEOF
36868 rm -f conftest.$ac_objext
36869 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36870   (eval $ac_compile) 2>conftest.er1
36871   ac_status=$?
36872   grep -v '^ *+' conftest.er1 >conftest.err
36873   rm -f conftest.er1
36874   cat conftest.err >&5
36875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36876   (exit $ac_status); } &&
36877          { ac_try='test -z "$ac_c_werror_flag"
36878                          || test ! -s conftest.err'
36879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36880   (eval $ac_try) 2>&5
36881   ac_status=$?
36882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36883   (exit $ac_status); }; } &&
36884          { ac_try='test -s conftest.$ac_objext'
36885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36886   (eval $ac_try) 2>&5
36887   ac_status=$?
36888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36889   (exit $ac_status); }; }; then
36890   ac_header_compiler=yes
36891 else
36892   echo "$as_me: failed program was:" >&5
36893 sed 's/^/| /' conftest.$ac_ext >&5
36894
36895 ac_header_compiler=no
36896 fi
36897 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36898 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36899 echo "${ECHO_T}$ac_header_compiler" >&6
36900
36901 # Is the header present?
36902 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36903 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36904 cat >conftest.$ac_ext <<_ACEOF
36905 /* confdefs.h.  */
36906 _ACEOF
36907 cat confdefs.h >>conftest.$ac_ext
36908 cat >>conftest.$ac_ext <<_ACEOF
36909 /* end confdefs.h.  */
36910 #include <$ac_header>
36911 _ACEOF
36912 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36913   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36914   ac_status=$?
36915   grep -v '^ *+' conftest.er1 >conftest.err
36916   rm -f conftest.er1
36917   cat conftest.err >&5
36918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36919   (exit $ac_status); } >/dev/null; then
36920   if test -s conftest.err; then
36921     ac_cpp_err=$ac_c_preproc_warn_flag
36922     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36923   else
36924     ac_cpp_err=
36925   fi
36926 else
36927   ac_cpp_err=yes
36928 fi
36929 if test -z "$ac_cpp_err"; then
36930   ac_header_preproc=yes
36931 else
36932   echo "$as_me: failed program was:" >&5
36933 sed 's/^/| /' conftest.$ac_ext >&5
36934
36935   ac_header_preproc=no
36936 fi
36937 rm -f conftest.err conftest.$ac_ext
36938 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36939 echo "${ECHO_T}$ac_header_preproc" >&6
36940
36941 # So?  What about this header?
36942 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36943   yes:no: )
36944     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36945 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36946     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36947 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36948     ac_header_preproc=yes
36949     ;;
36950   no:yes:* )
36951     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36952 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36953     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
36954 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
36955     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36956 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36957     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
36958 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
36959     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36960 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36961     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36962 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36963     (
36964       cat <<\_ASBOX
36965 ## ------------------------------------------ ##
36966 ## Report this to the AC_PACKAGE_NAME lists.  ##
36967 ## ------------------------------------------ ##
36968 _ASBOX
36969     ) |
36970       sed "s/^/$as_me: WARNING:     /" >&2
36971     ;;
36972 esac
36973 echo "$as_me:$LINENO: checking for $ac_header" >&5
36974 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36975 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36976   echo $ECHO_N "(cached) $ECHO_C" >&6
36977 else
36978   eval "$as_ac_Header=\$ac_header_preproc"
36979 fi
36980 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36981 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36982
36983 fi
36984 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36985   cat >>confdefs.h <<_ACEOF
36986 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36987 _ACEOF
36988
36989 fi
36990
36991 done
36992
36993 fi
36994
36995 if test $ol_link_threads != no -a $ol_link_threads != nt ; then
36996                         cat >>confdefs.h <<\_ACEOF
36997 #define REENTRANT 1
36998 _ACEOF
36999
37000         cat >>confdefs.h <<\_ACEOF
37001 #define _REENTRANT 1
37002 _ACEOF
37003
37004         cat >>confdefs.h <<\_ACEOF
37005 #define THREAD_SAFE 1
37006 _ACEOF
37007
37008         cat >>confdefs.h <<\_ACEOF
37009 #define _THREAD_SAFE 1
37010 _ACEOF
37011
37012         cat >>confdefs.h <<\_ACEOF
37013 #define THREADSAFE 1
37014 _ACEOF
37015
37016         cat >>confdefs.h <<\_ACEOF
37017 #define _THREADSAFE 1
37018 _ACEOF
37019
37020         cat >>confdefs.h <<\_ACEOF
37021 #define _SGI_MP_SOURCE 1
37022 _ACEOF
37023
37024
37025                         echo "$as_me:$LINENO: checking for thread specific errno" >&5
37026 echo $ECHO_N "checking for thread specific errno... $ECHO_C" >&6
37027 if test "${ol_cv_errno_thread_specific+set}" = set; then
37028   echo $ECHO_N "(cached) $ECHO_C" >&6
37029 else
37030
37031                 cat >conftest.$ac_ext <<_ACEOF
37032 /* confdefs.h.  */
37033 _ACEOF
37034 cat confdefs.h >>conftest.$ac_ext
37035 cat >>conftest.$ac_ext <<_ACEOF
37036 /* end confdefs.h.  */
37037 #include <errno.h>
37038 int
37039 main ()
37040 {
37041 errno = 0;
37042   ;
37043   return 0;
37044 }
37045 _ACEOF
37046 rm -f conftest.$ac_objext conftest$ac_exeext
37047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37048   (eval $ac_link) 2>conftest.er1
37049   ac_status=$?
37050   grep -v '^ *+' conftest.er1 >conftest.err
37051   rm -f conftest.er1
37052   cat conftest.err >&5
37053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37054   (exit $ac_status); } &&
37055          { ac_try='test -z "$ac_c_werror_flag"
37056                          || test ! -s conftest.err'
37057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37058   (eval $ac_try) 2>&5
37059   ac_status=$?
37060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37061   (exit $ac_status); }; } &&
37062          { ac_try='test -s conftest$ac_exeext'
37063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37064   (eval $ac_try) 2>&5
37065   ac_status=$?
37066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37067   (exit $ac_status); }; }; then
37068   ol_cv_errno_thread_specific=yes
37069 else
37070   echo "$as_me: failed program was:" >&5
37071 sed 's/^/| /' conftest.$ac_ext >&5
37072
37073 ol_cv_errno_thread_specific=no
37074 fi
37075 rm -f conftest.err conftest.$ac_objext \
37076       conftest$ac_exeext conftest.$ac_ext
37077
37078 fi
37079 echo "$as_me:$LINENO: result: $ol_cv_errno_thread_specific" >&5
37080 echo "${ECHO_T}$ol_cv_errno_thread_specific" >&6
37081
37082                         echo "$as_me:$LINENO: checking for thread specific h_errno" >&5
37083 echo $ECHO_N "checking for thread specific h_errno... $ECHO_C" >&6
37084 if test "${ol_cv_h_errno_thread_specific+set}" = set; then
37085   echo $ECHO_N "(cached) $ECHO_C" >&6
37086 else
37087
37088                 cat >conftest.$ac_ext <<_ACEOF
37089 /* confdefs.h.  */
37090 _ACEOF
37091 cat confdefs.h >>conftest.$ac_ext
37092 cat >>conftest.$ac_ext <<_ACEOF
37093 /* end confdefs.h.  */
37094 #include <netdb.h>
37095 int
37096 main ()
37097 {
37098 h_errno = 0;
37099   ;
37100   return 0;
37101 }
37102 _ACEOF
37103 rm -f conftest.$ac_objext conftest$ac_exeext
37104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37105   (eval $ac_link) 2>conftest.er1
37106   ac_status=$?
37107   grep -v '^ *+' conftest.er1 >conftest.err
37108   rm -f conftest.er1
37109   cat conftest.err >&5
37110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37111   (exit $ac_status); } &&
37112          { ac_try='test -z "$ac_c_werror_flag"
37113                          || test ! -s conftest.err'
37114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37115   (eval $ac_try) 2>&5
37116   ac_status=$?
37117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37118   (exit $ac_status); }; } &&
37119          { ac_try='test -s conftest$ac_exeext'
37120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37121   (eval $ac_try) 2>&5
37122   ac_status=$?
37123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37124   (exit $ac_status); }; }; then
37125   ol_cv_h_errno_thread_specific=yes
37126 else
37127   echo "$as_me: failed program was:" >&5
37128 sed 's/^/| /' conftest.$ac_ext >&5
37129
37130 ol_cv_h_errno_thread_specific=no
37131 fi
37132 rm -f conftest.err conftest.$ac_objext \
37133       conftest$ac_exeext conftest.$ac_ext
37134
37135 fi
37136 echo "$as_me:$LINENO: result: $ol_cv_h_errno_thread_specific" >&5
37137 echo "${ECHO_T}$ol_cv_h_errno_thread_specific" >&6
37138
37139         if test $ol_cv_errno_thread_specific != yes \
37140                 -o $ol_cv_h_errno_thread_specific != yes ; then
37141                 LIBS="$LTHREAD_LIBS $LIBS"
37142                 LTHREAD_LIBS=""
37143         fi
37144
37145 fi
37146
37147 if test $ol_link_threads = no ; then
37148         if test $ol_with_threads = yes ; then
37149                 { { echo "$as_me:$LINENO: error: no suitable thread support" >&5
37150 echo "$as_me: error: no suitable thread support" >&2;}
37151    { (exit 1); exit 1; }; }
37152         fi
37153
37154         if test $ol_with_threads = auto ; then
37155                 { echo "$as_me:$LINENO: WARNING: no suitable thread support, disabling threads" >&5
37156 echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
37157                 ol_with_threads=no
37158         fi
37159
37160
37161 cat >>confdefs.h <<\_ACEOF
37162 #define NO_THREADS 1
37163 _ACEOF
37164
37165         LTHREAD_LIBS=""
37166 fi
37167
37168 if test $ol_link_threads != no ; then
37169         cat >>confdefs.h <<\_ACEOF
37170 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
37171 _ACEOF
37172
37173 fi
37174
37175
37176
37177
37178 for ac_func in \
37179         ctime_r                 \
37180         gethostbyname_r gethostbyaddr_r \
37181
37182 do
37183 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37184 echo "$as_me:$LINENO: checking for $ac_func" >&5
37185 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37186 if eval "test \"\${$as_ac_var+set}\" = set"; then
37187   echo $ECHO_N "(cached) $ECHO_C" >&6
37188 else
37189   cat >conftest.$ac_ext <<_ACEOF
37190 /* confdefs.h.  */
37191 _ACEOF
37192 cat confdefs.h >>conftest.$ac_ext
37193 cat >>conftest.$ac_ext <<_ACEOF
37194 /* end confdefs.h.  */
37195 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37196    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37197 #define $ac_func innocuous_$ac_func
37198
37199 /* System header to define __stub macros and hopefully few prototypes,
37200     which can conflict with char $ac_func (); below.
37201     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37202     <limits.h> exists even on freestanding compilers.  */
37203
37204 #ifdef __STDC__
37205 # include <limits.h>
37206 #else
37207 # include <assert.h>
37208 #endif
37209
37210 #undef $ac_func
37211
37212 /* Override any gcc2 internal prototype to avoid an error.  */
37213 #ifdef __cplusplus
37214 extern "C"
37215 {
37216 #endif
37217 /* We use char because int might match the return type of a gcc2
37218    builtin and then its argument prototype would still apply.  */
37219 char $ac_func ();
37220 /* The GNU C library defines this for functions which it implements
37221     to always fail with ENOSYS.  Some functions are actually named
37222     something starting with __ and the normal name is an alias.  */
37223 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37224 choke me
37225 #else
37226 char (*f) () = $ac_func;
37227 #endif
37228 #ifdef __cplusplus
37229 }
37230 #endif
37231
37232 int
37233 main ()
37234 {
37235 return f != $ac_func;
37236   ;
37237   return 0;
37238 }
37239 _ACEOF
37240 rm -f conftest.$ac_objext conftest$ac_exeext
37241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37242   (eval $ac_link) 2>conftest.er1
37243   ac_status=$?
37244   grep -v '^ *+' conftest.er1 >conftest.err
37245   rm -f conftest.er1
37246   cat conftest.err >&5
37247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37248   (exit $ac_status); } &&
37249          { ac_try='test -z "$ac_c_werror_flag"
37250                          || test ! -s conftest.err'
37251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37252   (eval $ac_try) 2>&5
37253   ac_status=$?
37254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37255   (exit $ac_status); }; } &&
37256          { ac_try='test -s conftest$ac_exeext'
37257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37258   (eval $ac_try) 2>&5
37259   ac_status=$?
37260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37261   (exit $ac_status); }; }; then
37262   eval "$as_ac_var=yes"
37263 else
37264   echo "$as_me: failed program was:" >&5
37265 sed 's/^/| /' conftest.$ac_ext >&5
37266
37267 eval "$as_ac_var=no"
37268 fi
37269 rm -f conftest.err conftest.$ac_objext \
37270       conftest$ac_exeext conftest.$ac_ext
37271 fi
37272 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37273 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37274 if test `eval echo '${'$as_ac_var'}'` = yes; then
37275   cat >>confdefs.h <<_ACEOF
37276 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37277 _ACEOF
37278
37279 fi
37280 done
37281
37282
37283 if test "$ac_cv_func_ctime_r" = no ; then
37284         ol_cv_func_ctime_r_nargs=0
37285 else
37286         echo "$as_me:$LINENO: checking number of arguments of ctime_r" >&5
37287 echo $ECHO_N "checking number of arguments of ctime_r... $ECHO_C" >&6
37288 if test "${ol_cv_func_ctime_r_nargs+set}" = set; then
37289   echo $ECHO_N "(cached) $ECHO_C" >&6
37290 else
37291   cat >conftest.$ac_ext <<_ACEOF
37292 /* confdefs.h.  */
37293 _ACEOF
37294 cat confdefs.h >>conftest.$ac_ext
37295 cat >>conftest.$ac_ext <<_ACEOF
37296 /* end confdefs.h.  */
37297 #include <time.h>
37298 int
37299 main ()
37300 {
37301 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
37302   ;
37303   return 0;
37304 }
37305 _ACEOF
37306 rm -f conftest.$ac_objext
37307 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37308   (eval $ac_compile) 2>conftest.er1
37309   ac_status=$?
37310   grep -v '^ *+' conftest.er1 >conftest.err
37311   rm -f conftest.er1
37312   cat conftest.err >&5
37313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37314   (exit $ac_status); } &&
37315          { ac_try='test -z "$ac_c_werror_flag"
37316                          || test ! -s conftest.err'
37317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37318   (eval $ac_try) 2>&5
37319   ac_status=$?
37320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37321   (exit $ac_status); }; } &&
37322          { ac_try='test -s conftest.$ac_objext'
37323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37324   (eval $ac_try) 2>&5
37325   ac_status=$?
37326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37327   (exit $ac_status); }; }; then
37328   ol_cv_func_ctime_r_nargs3=yes
37329 else
37330   echo "$as_me: failed program was:" >&5
37331 sed 's/^/| /' conftest.$ac_ext >&5
37332
37333 ol_cv_func_ctime_r_nargs3=no
37334 fi
37335 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37336
37337         cat >conftest.$ac_ext <<_ACEOF
37338 /* confdefs.h.  */
37339 _ACEOF
37340 cat confdefs.h >>conftest.$ac_ext
37341 cat >>conftest.$ac_ext <<_ACEOF
37342 /* end confdefs.h.  */
37343 #include <time.h>
37344 int
37345 main ()
37346 {
37347 time_t ti; char *buffer; ctime_r(&ti,buffer);
37348   ;
37349   return 0;
37350 }
37351 _ACEOF
37352 rm -f conftest.$ac_objext
37353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37354   (eval $ac_compile) 2>conftest.er1
37355   ac_status=$?
37356   grep -v '^ *+' conftest.er1 >conftest.err
37357   rm -f conftest.er1
37358   cat conftest.err >&5
37359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37360   (exit $ac_status); } &&
37361          { ac_try='test -z "$ac_c_werror_flag"
37362                          || test ! -s conftest.err'
37363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37364   (eval $ac_try) 2>&5
37365   ac_status=$?
37366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37367   (exit $ac_status); }; } &&
37368          { ac_try='test -s conftest.$ac_objext'
37369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37370   (eval $ac_try) 2>&5
37371   ac_status=$?
37372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37373   (exit $ac_status); }; }; then
37374   ol_cv_func_ctime_r_nargs2=yes
37375 else
37376   echo "$as_me: failed program was:" >&5
37377 sed 's/^/| /' conftest.$ac_ext >&5
37378
37379 ol_cv_func_ctime_r_nargs2=no
37380 fi
37381 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37382
37383         if test $ol_cv_func_ctime_r_nargs3 = yes -a \
37384                 $ol_cv_func_ctime_r_nargs2 = no ; then
37385
37386                 ol_cv_func_ctime_r_nargs=3
37387
37388         elif test $ol_cv_func_ctime_r_nargs3 = no -a \
37389                 $ol_cv_func_ctime_r_nargs2 = yes ; then
37390
37391                 ol_cv_func_ctime_r_nargs=2
37392
37393         else
37394                 ol_cv_func_ctime_r_nargs=0
37395         fi
37396
37397 fi
37398 echo "$as_me:$LINENO: result: $ol_cv_func_ctime_r_nargs" >&5
37399 echo "${ECHO_T}$ol_cv_func_ctime_r_nargs" >&6
37400
37401   if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
37402
37403 cat >>confdefs.h <<_ACEOF
37404 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
37405 _ACEOF
37406
37407   fi
37408
37409 fi
37410
37411 if test "$ac_cv_func_gethostbyname_r" = yes ; then
37412         echo "$as_me:$LINENO: checking number of arguments of gethostbyname_r" >&5
37413 echo $ECHO_N "checking number of arguments of gethostbyname_r... $ECHO_C" >&6
37414 if test "${ol_cv_func_gethostbyname_r_nargs+set}" = set; then
37415   echo $ECHO_N "(cached) $ECHO_C" >&6
37416 else
37417   cat >conftest.$ac_ext <<_ACEOF
37418 /* confdefs.h.  */
37419 _ACEOF
37420 cat confdefs.h >>conftest.$ac_ext
37421 cat >>conftest.$ac_ext <<_ACEOF
37422 /* end confdefs.h.  */
37423 #include <sys/types.h>
37424 #include <sys/socket.h>
37425 #include <netinet/in.h>
37426 #include <netdb.h>
37427 #define BUFSIZE (sizeof(struct hostent)+10)
37428 int
37429 main ()
37430 {
37431 struct hostent hent; char buffer[BUFSIZE];
37432                 int bufsize=BUFSIZE;int h_errno;
37433                 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
37434                         buffer, bufsize, &h_errno);
37435   ;
37436   return 0;
37437 }
37438 _ACEOF
37439 rm -f conftest.$ac_objext
37440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37441   (eval $ac_compile) 2>conftest.er1
37442   ac_status=$?
37443   grep -v '^ *+' conftest.er1 >conftest.err
37444   rm -f conftest.er1
37445   cat conftest.err >&5
37446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37447   (exit $ac_status); } &&
37448          { ac_try='test -z "$ac_c_werror_flag"
37449                          || test ! -s conftest.err'
37450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37451   (eval $ac_try) 2>&5
37452   ac_status=$?
37453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37454   (exit $ac_status); }; } &&
37455          { ac_try='test -s conftest.$ac_objext'
37456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37457   (eval $ac_try) 2>&5
37458   ac_status=$?
37459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37460   (exit $ac_status); }; }; then
37461   ol_cv_func_gethostbyname_r_nargs5=yes
37462 else
37463   echo "$as_me: failed program was:" >&5
37464 sed 's/^/| /' conftest.$ac_ext >&5
37465
37466 ol_cv_func_gethostbyname_r_nargs5=no
37467 fi
37468 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37469
37470         cat >conftest.$ac_ext <<_ACEOF
37471 /* confdefs.h.  */
37472 _ACEOF
37473 cat confdefs.h >>conftest.$ac_ext
37474 cat >>conftest.$ac_ext <<_ACEOF
37475 /* end confdefs.h.  */
37476 #include <sys/types.h>
37477 #include <sys/socket.h>
37478 #include <netinet/in.h>
37479 #include <netdb.h>
37480 #define BUFSIZE (sizeof(struct hostent)+10)
37481 int
37482 main ()
37483 {
37484 struct hostent hent;struct hostent *rhent;
37485                 char buffer[BUFSIZE];
37486                 int bufsize=BUFSIZE;int h_errno;
37487                 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
37488                         &rhent, &h_errno);
37489   ;
37490   return 0;
37491 }
37492 _ACEOF
37493 rm -f conftest.$ac_objext
37494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37495   (eval $ac_compile) 2>conftest.er1
37496   ac_status=$?
37497   grep -v '^ *+' conftest.er1 >conftest.err
37498   rm -f conftest.er1
37499   cat conftest.err >&5
37500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37501   (exit $ac_status); } &&
37502          { ac_try='test -z "$ac_c_werror_flag"
37503                          || test ! -s conftest.err'
37504   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37505   (eval $ac_try) 2>&5
37506   ac_status=$?
37507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37508   (exit $ac_status); }; } &&
37509          { ac_try='test -s conftest.$ac_objext'
37510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37511   (eval $ac_try) 2>&5
37512   ac_status=$?
37513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37514   (exit $ac_status); }; }; then
37515   ol_cv_func_gethostbyname_r_nargs6=yes
37516 else
37517   echo "$as_me: failed program was:" >&5
37518 sed 's/^/| /' conftest.$ac_ext >&5
37519
37520 ol_cv_func_gethostbyname_r_nargs6=no
37521 fi
37522 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37523
37524         if test $ol_cv_func_gethostbyname_r_nargs5 = yes -a \
37525                 $ol_cv_func_gethostbyname_r_nargs6 = no ; then
37526
37527                 ol_cv_func_gethostbyname_r_nargs=5
37528
37529         elif test $ol_cv_func_gethostbyname_r_nargs5 = no -a \
37530                 $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
37531
37532                 ol_cv_func_gethostbyname_r_nargs=6
37533
37534         else
37535                 ol_cv_func_gethostbyname_r_nargs=0
37536         fi
37537
37538 fi
37539 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyname_r_nargs" >&5
37540 echo "${ECHO_T}$ol_cv_func_gethostbyname_r_nargs" >&6
37541   if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
37542
37543 cat >>confdefs.h <<_ACEOF
37544 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
37545 _ACEOF
37546
37547   fi
37548
37549 else
37550         ol_cv_func_gethostbyname_r_nargs=0
37551 fi
37552
37553 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
37554         echo "$as_me:$LINENO: checking number of arguments of gethostbyaddr_r" >&5
37555 echo $ECHO_N "checking number of arguments of gethostbyaddr_r... $ECHO_C" >&6
37556 if test "${ol_cv_func_gethostbyaddr_r_nargs+set}" = set; then
37557   echo $ECHO_N "(cached) $ECHO_C" >&6
37558 else
37559   cat >conftest.$ac_ext <<_ACEOF
37560 /* confdefs.h.  */
37561 _ACEOF
37562 cat confdefs.h >>conftest.$ac_ext
37563 cat >>conftest.$ac_ext <<_ACEOF
37564 /* end confdefs.h.  */
37565 #include <sys/types.h>
37566 #include <sys/socket.h>
37567 #include <netinet/in.h>
37568 #include <netdb.h>
37569 #define BUFSIZE (sizeof(struct hostent)+10)
37570 int
37571 main ()
37572 {
37573 struct hostent hent; char buffer[BUFSIZE];
37574             struct in_addr add;
37575             size_t alen=sizeof(struct in_addr);
37576             int bufsize=BUFSIZE;int h_errno;
37577                 (void)gethostbyaddr_r( (void *)&(add.s_addr),
37578                         alen, AF_INET, &hent, buffer, bufsize, &h_errno);
37579   ;
37580   return 0;
37581 }
37582 _ACEOF
37583 rm -f conftest.$ac_objext
37584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37585   (eval $ac_compile) 2>conftest.er1
37586   ac_status=$?
37587   grep -v '^ *+' conftest.er1 >conftest.err
37588   rm -f conftest.er1
37589   cat conftest.err >&5
37590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37591   (exit $ac_status); } &&
37592          { ac_try='test -z "$ac_c_werror_flag"
37593                          || test ! -s conftest.err'
37594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37595   (eval $ac_try) 2>&5
37596   ac_status=$?
37597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37598   (exit $ac_status); }; } &&
37599          { ac_try='test -s conftest.$ac_objext'
37600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37601   (eval $ac_try) 2>&5
37602   ac_status=$?
37603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37604   (exit $ac_status); }; }; then
37605   ol_cv_func_gethostbyaddr_r_nargs7=yes
37606 else
37607   echo "$as_me: failed program was:" >&5
37608 sed 's/^/| /' conftest.$ac_ext >&5
37609
37610 ol_cv_func_gethostbyaddr_r_nargs7=no
37611 fi
37612 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37613
37614         cat >conftest.$ac_ext <<_ACEOF
37615 /* confdefs.h.  */
37616 _ACEOF
37617 cat confdefs.h >>conftest.$ac_ext
37618 cat >>conftest.$ac_ext <<_ACEOF
37619 /* end confdefs.h.  */
37620 #include <sys/types.h>
37621 #include <sys/socket.h>
37622 #include <netinet/in.h>
37623 #include <netdb.h>
37624 #define BUFSIZE (sizeof(struct hostent)+10)
37625 int
37626 main ()
37627 {
37628 struct hostent hent;
37629                 struct hostent *rhent; char buffer[BUFSIZE];
37630                 struct in_addr add;
37631                 size_t alen=sizeof(struct in_addr);
37632                 int bufsize=BUFSIZE;int h_errno;
37633                 (void)gethostbyaddr_r( (void *)&(add.s_addr),
37634                         alen, AF_INET, &hent, buffer, bufsize,
37635                         &rhent, &h_errno);
37636   ;
37637   return 0;
37638 }
37639 _ACEOF
37640 rm -f conftest.$ac_objext
37641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37642   (eval $ac_compile) 2>conftest.er1
37643   ac_status=$?
37644   grep -v '^ *+' conftest.er1 >conftest.err
37645   rm -f conftest.er1
37646   cat conftest.err >&5
37647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37648   (exit $ac_status); } &&
37649          { ac_try='test -z "$ac_c_werror_flag"
37650                          || test ! -s conftest.err'
37651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37652   (eval $ac_try) 2>&5
37653   ac_status=$?
37654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37655   (exit $ac_status); }; } &&
37656          { ac_try='test -s conftest.$ac_objext'
37657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37658   (eval $ac_try) 2>&5
37659   ac_status=$?
37660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37661   (exit $ac_status); }; }; then
37662   ol_cv_func_gethostbyaddr_r_nargs8=yes
37663 else
37664   echo "$as_me: failed program was:" >&5
37665 sed 's/^/| /' conftest.$ac_ext >&5
37666
37667 ol_cv_func_gethostbyaddr_r_nargs8=no
37668 fi
37669 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37670
37671         if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes -a \
37672                 $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
37673
37674                 ol_cv_func_gethostbyaddr_r_nargs=7
37675
37676         elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no -a \
37677                 $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
37678
37679                 ol_cv_func_gethostbyaddr_r_nargs=8
37680
37681         else
37682                 ol_cv_func_gethostbyaddr_r_nargs=0
37683         fi
37684
37685 fi
37686 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyaddr_r_nargs" >&5
37687 echo "${ECHO_T}$ol_cv_func_gethostbyaddr_r_nargs" >&6
37688   if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
37689
37690 cat >>confdefs.h <<_ACEOF
37691 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
37692 _ACEOF
37693
37694   fi
37695
37696 else
37697         ol_cv_func_gethostbyaddr_r_nargs=0
37698 fi
37699
37700 ol_link_ldbm=no
37701
37702 if test $ol_with_ldbm_api = auto \
37703         -o $ol_with_ldbm_api = berkeley \
37704         -o $ol_with_ldbm_api = bcompat ; then
37705
37706         if test $ol_with_ldbm_api = bcompat; then \
37707
37708
37709 for ac_header in db_185.h db.h
37710 do
37711 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37712 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37713   echo "$as_me:$LINENO: checking for $ac_header" >&5
37714 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37715 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37716   echo $ECHO_N "(cached) $ECHO_C" >&6
37717 fi
37718 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37719 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37720 else
37721   # Is the header compilable?
37722 echo "$as_me:$LINENO: checking $ac_header usability" >&5
37723 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37724 cat >conftest.$ac_ext <<_ACEOF
37725 /* confdefs.h.  */
37726 _ACEOF
37727 cat confdefs.h >>conftest.$ac_ext
37728 cat >>conftest.$ac_ext <<_ACEOF
37729 /* end confdefs.h.  */
37730 $ac_includes_default
37731 #include <$ac_header>
37732 _ACEOF
37733 rm -f conftest.$ac_objext
37734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37735   (eval $ac_compile) 2>conftest.er1
37736   ac_status=$?
37737   grep -v '^ *+' conftest.er1 >conftest.err
37738   rm -f conftest.er1
37739   cat conftest.err >&5
37740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37741   (exit $ac_status); } &&
37742          { ac_try='test -z "$ac_c_werror_flag"
37743                          || test ! -s conftest.err'
37744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37745   (eval $ac_try) 2>&5
37746   ac_status=$?
37747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37748   (exit $ac_status); }; } &&
37749          { ac_try='test -s conftest.$ac_objext'
37750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37751   (eval $ac_try) 2>&5
37752   ac_status=$?
37753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37754   (exit $ac_status); }; }; then
37755   ac_header_compiler=yes
37756 else
37757   echo "$as_me: failed program was:" >&5
37758 sed 's/^/| /' conftest.$ac_ext >&5
37759
37760 ac_header_compiler=no
37761 fi
37762 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37763 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37764 echo "${ECHO_T}$ac_header_compiler" >&6
37765
37766 # Is the header present?
37767 echo "$as_me:$LINENO: checking $ac_header presence" >&5
37768 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37769 cat >conftest.$ac_ext <<_ACEOF
37770 /* confdefs.h.  */
37771 _ACEOF
37772 cat confdefs.h >>conftest.$ac_ext
37773 cat >>conftest.$ac_ext <<_ACEOF
37774 /* end confdefs.h.  */
37775 #include <$ac_header>
37776 _ACEOF
37777 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37778   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37779   ac_status=$?
37780   grep -v '^ *+' conftest.er1 >conftest.err
37781   rm -f conftest.er1
37782   cat conftest.err >&5
37783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37784   (exit $ac_status); } >/dev/null; then
37785   if test -s conftest.err; then
37786     ac_cpp_err=$ac_c_preproc_warn_flag
37787     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
37788   else
37789     ac_cpp_err=
37790   fi
37791 else
37792   ac_cpp_err=yes
37793 fi
37794 if test -z "$ac_cpp_err"; then
37795   ac_header_preproc=yes
37796 else
37797   echo "$as_me: failed program was:" >&5
37798 sed 's/^/| /' conftest.$ac_ext >&5
37799
37800   ac_header_preproc=no
37801 fi
37802 rm -f conftest.err conftest.$ac_ext
37803 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37804 echo "${ECHO_T}$ac_header_preproc" >&6
37805
37806 # So?  What about this header?
37807 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37808   yes:no: )
37809     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37810 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37811     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37812 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37813     ac_header_preproc=yes
37814     ;;
37815   no:yes:* )
37816     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37817 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37818     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
37819 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
37820     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37821 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37822     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
37823 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
37824     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37825 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37826     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37827 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37828     (
37829       cat <<\_ASBOX
37830 ## ------------------------------------------ ##
37831 ## Report this to the AC_PACKAGE_NAME lists.  ##
37832 ## ------------------------------------------ ##
37833 _ASBOX
37834     ) |
37835       sed "s/^/$as_me: WARNING:     /" >&2
37836     ;;
37837 esac
37838 echo "$as_me:$LINENO: checking for $ac_header" >&5
37839 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37840 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37841   echo $ECHO_N "(cached) $ECHO_C" >&6
37842 else
37843   eval "$as_ac_Header=\$ac_header_preproc"
37844 fi
37845 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37846 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37847
37848 fi
37849 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37850   cat >>confdefs.h <<_ACEOF
37851 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37852 _ACEOF
37853
37854 fi
37855
37856 done
37857
37858 if test $ac_cv_header_db_185_h = yes -o $ac_cv_header_db_h = yes; then
37859         echo "$as_me:$LINENO: checking if Berkeley DB header compatibility" >&5
37860 echo $ECHO_N "checking if Berkeley DB header compatibility... $ECHO_C" >&6
37861 if test "${ol_cv_header_db1+set}" = set; then
37862   echo $ECHO_N "(cached) $ECHO_C" >&6
37863 else
37864
37865                 cat >conftest.$ac_ext <<_ACEOF
37866 /* confdefs.h.  */
37867 _ACEOF
37868 cat confdefs.h >>conftest.$ac_ext
37869 cat >>conftest.$ac_ext <<_ACEOF
37870 /* end confdefs.h.  */
37871
37872 #if HAVE_DB_185_H
37873 #       include <db_185.h>
37874 #else
37875 #       include <db.h>
37876 #endif
37877
37878  /* this check could be improved */
37879 #ifndef DB_VERSION_MAJOR
37880 #       define DB_VERSION_MAJOR 1
37881 #endif
37882
37883 #if DB_VERSION_MAJOR == 1
37884         __db_version_1
37885 #endif
37886
37887 _ACEOF
37888 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37889   $EGREP "__db_version_1" >/dev/null 2>&1; then
37890   ol_cv_header_db1=yes
37891 else
37892   ol_cv_header_db1=no
37893 fi
37894 rm -f conftest*
37895
37896 fi
37897 echo "$as_me:$LINENO: result: $ol_cv_header_db1" >&5
37898 echo "${ECHO_T}$ol_cv_header_db1" >&6
37899
37900         if test $ol_cv_header_db1 = yes ; then
37901                 ol_cv_lib_db=no
37902 if test $ol_cv_lib_db = no ; then
37903         echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
37904 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6
37905 if test "${ol_cv_db_none+set}" = set; then
37906   echo $ECHO_N "(cached) $ECHO_C" >&6
37907 else
37908
37909         ol_DB_LIB=
37910         ol_LIBS=$LIBS
37911         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
37912
37913         cat >conftest.$ac_ext <<_ACEOF
37914 /* confdefs.h.  */
37915 _ACEOF
37916 cat confdefs.h >>conftest.$ac_ext
37917 cat >>conftest.$ac_ext <<_ACEOF
37918 /* end confdefs.h.  */
37919
37920 #ifdef HAVE_DB_185_H
37921 # include <db_185.h>
37922 #else
37923 # include <db.h>
37924 #endif
37925
37926 #ifndef DB_VERSION_MAJOR
37927 # define DB_VERSION_MAJOR 1
37928 #endif
37929
37930 #ifndef NULL
37931 #define NULL ((void*)0)
37932 #endif
37933
37934 int
37935 main ()
37936 {
37937
37938 #if DB_VERSION_MAJOR > 1
37939         {
37940                 char *version;
37941                 int major, minor, patch;
37942
37943                 version = db_version( &major, &minor, &patch );
37944
37945                 if( major != DB_VERSION_MAJOR ||
37946                         minor < DB_VERSION_MINOR )
37947                 {
37948                         printf("Berkeley DB version mismatch\n"
37949                                 "\theader: %s\n\tlibrary: %s\n",
37950                                 DB_VERSION_STRING, version);
37951                         return 1;
37952                 }
37953         }
37954 #endif
37955
37956 #if DB_VERSION_MAJOR > 2
37957         db_env_create( NULL, 0 );
37958 #elif DB_VERSION_MAJOR > 1
37959         db_appexit( NULL );
37960 #else
37961         (void) dbopen( NULL, 0, 0, 0, NULL);
37962 #endif
37963
37964   ;
37965   return 0;
37966 }
37967 _ACEOF
37968 rm -f conftest.$ac_objext conftest$ac_exeext
37969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37970   (eval $ac_link) 2>conftest.er1
37971   ac_status=$?
37972   grep -v '^ *+' conftest.er1 >conftest.err
37973   rm -f conftest.er1
37974   cat conftest.err >&5
37975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37976   (exit $ac_status); } &&
37977          { ac_try='test -z "$ac_c_werror_flag"
37978                          || test ! -s conftest.err'
37979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37980   (eval $ac_try) 2>&5
37981   ac_status=$?
37982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37983   (exit $ac_status); }; } &&
37984          { ac_try='test -s conftest$ac_exeext'
37985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37986   (eval $ac_try) 2>&5
37987   ac_status=$?
37988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37989   (exit $ac_status); }; }; then
37990   ol_cv_db_none=yes
37991 else
37992   echo "$as_me: failed program was:" >&5
37993 sed 's/^/| /' conftest.$ac_ext >&5
37994
37995 ol_cv_db_none=no
37996 fi
37997 rm -f conftest.err conftest.$ac_objext \
37998       conftest$ac_exeext conftest.$ac_ext
37999
38000         LIBS="$ol_LIBS"
38001
38002 fi
38003 echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
38004 echo "${ECHO_T}$ol_cv_db_none" >&6
38005
38006         if test $ol_cv_db_none = yes ; then
38007                 ol_cv_lib_db=yes
38008         fi
38009 fi
38010
38011 if test $ol_cv_lib_db = no ; then
38012         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb43)" >&5
38013 echo $ECHO_N "checking for Berkeley DB link (-ldb43)... $ECHO_C" >&6
38014 if test "${ol_cv_db_db43+set}" = set; then
38015   echo $ECHO_N "(cached) $ECHO_C" >&6
38016 else
38017
38018         ol_DB_LIB=-ldb43
38019         ol_LIBS=$LIBS
38020         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38021
38022         cat >conftest.$ac_ext <<_ACEOF
38023 /* confdefs.h.  */
38024 _ACEOF
38025 cat confdefs.h >>conftest.$ac_ext
38026 cat >>conftest.$ac_ext <<_ACEOF
38027 /* end confdefs.h.  */
38028
38029 #ifdef HAVE_DB_185_H
38030 # include <db_185.h>
38031 #else
38032 # include <db.h>
38033 #endif
38034
38035 #ifndef DB_VERSION_MAJOR
38036 # define DB_VERSION_MAJOR 1
38037 #endif
38038
38039 #ifndef NULL
38040 #define NULL ((void*)0)
38041 #endif
38042
38043 int
38044 main ()
38045 {
38046
38047 #if DB_VERSION_MAJOR > 1
38048         {
38049                 char *version;
38050                 int major, minor, patch;
38051
38052                 version = db_version( &major, &minor, &patch );
38053
38054                 if( major != DB_VERSION_MAJOR ||
38055                         minor < DB_VERSION_MINOR )
38056                 {
38057                         printf("Berkeley DB version mismatch\n"
38058                                 "\theader: %s\n\tlibrary: %s\n",
38059                                 DB_VERSION_STRING, version);
38060                         return 1;
38061                 }
38062         }
38063 #endif
38064
38065 #if DB_VERSION_MAJOR > 2
38066         db_env_create( NULL, 0 );
38067 #elif DB_VERSION_MAJOR > 1
38068         db_appexit( NULL );
38069 #else
38070         (void) dbopen( NULL, 0, 0, 0, NULL);
38071 #endif
38072
38073   ;
38074   return 0;
38075 }
38076 _ACEOF
38077 rm -f conftest.$ac_objext conftest$ac_exeext
38078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38079   (eval $ac_link) 2>conftest.er1
38080   ac_status=$?
38081   grep -v '^ *+' conftest.er1 >conftest.err
38082   rm -f conftest.er1
38083   cat conftest.err >&5
38084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38085   (exit $ac_status); } &&
38086          { ac_try='test -z "$ac_c_werror_flag"
38087                          || test ! -s conftest.err'
38088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38089   (eval $ac_try) 2>&5
38090   ac_status=$?
38091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38092   (exit $ac_status); }; } &&
38093          { ac_try='test -s conftest$ac_exeext'
38094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38095   (eval $ac_try) 2>&5
38096   ac_status=$?
38097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38098   (exit $ac_status); }; }; then
38099   ol_cv_db_db43=yes
38100 else
38101   echo "$as_me: failed program was:" >&5
38102 sed 's/^/| /' conftest.$ac_ext >&5
38103
38104 ol_cv_db_db43=no
38105 fi
38106 rm -f conftest.err conftest.$ac_objext \
38107       conftest$ac_exeext conftest.$ac_ext
38108
38109         LIBS="$ol_LIBS"
38110
38111 fi
38112 echo "$as_me:$LINENO: result: $ol_cv_db_db43" >&5
38113 echo "${ECHO_T}$ol_cv_db_db43" >&6
38114
38115         if test $ol_cv_db_db43 = yes ; then
38116                 ol_cv_lib_db=-ldb43
38117         fi
38118 fi
38119
38120 if test $ol_cv_lib_db = no ; then
38121         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-43)" >&5
38122 echo $ECHO_N "checking for Berkeley DB link (-ldb-43)... $ECHO_C" >&6
38123 if test "${ol_cv_db_db_43+set}" = set; then
38124   echo $ECHO_N "(cached) $ECHO_C" >&6
38125 else
38126
38127         ol_DB_LIB=-ldb-43
38128         ol_LIBS=$LIBS
38129         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38130
38131         cat >conftest.$ac_ext <<_ACEOF
38132 /* confdefs.h.  */
38133 _ACEOF
38134 cat confdefs.h >>conftest.$ac_ext
38135 cat >>conftest.$ac_ext <<_ACEOF
38136 /* end confdefs.h.  */
38137
38138 #ifdef HAVE_DB_185_H
38139 # include <db_185.h>
38140 #else
38141 # include <db.h>
38142 #endif
38143
38144 #ifndef DB_VERSION_MAJOR
38145 # define DB_VERSION_MAJOR 1
38146 #endif
38147
38148 #ifndef NULL
38149 #define NULL ((void*)0)
38150 #endif
38151
38152 int
38153 main ()
38154 {
38155
38156 #if DB_VERSION_MAJOR > 1
38157         {
38158                 char *version;
38159                 int major, minor, patch;
38160
38161                 version = db_version( &major, &minor, &patch );
38162
38163                 if( major != DB_VERSION_MAJOR ||
38164                         minor < DB_VERSION_MINOR )
38165                 {
38166                         printf("Berkeley DB version mismatch\n"
38167                                 "\theader: %s\n\tlibrary: %s\n",
38168                                 DB_VERSION_STRING, version);
38169                         return 1;
38170                 }
38171         }
38172 #endif
38173
38174 #if DB_VERSION_MAJOR > 2
38175         db_env_create( NULL, 0 );
38176 #elif DB_VERSION_MAJOR > 1
38177         db_appexit( NULL );
38178 #else
38179         (void) dbopen( NULL, 0, 0, 0, NULL);
38180 #endif
38181
38182   ;
38183   return 0;
38184 }
38185 _ACEOF
38186 rm -f conftest.$ac_objext conftest$ac_exeext
38187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38188   (eval $ac_link) 2>conftest.er1
38189   ac_status=$?
38190   grep -v '^ *+' conftest.er1 >conftest.err
38191   rm -f conftest.er1
38192   cat conftest.err >&5
38193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38194   (exit $ac_status); } &&
38195          { ac_try='test -z "$ac_c_werror_flag"
38196                          || test ! -s conftest.err'
38197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38198   (eval $ac_try) 2>&5
38199   ac_status=$?
38200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38201   (exit $ac_status); }; } &&
38202          { ac_try='test -s conftest$ac_exeext'
38203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38204   (eval $ac_try) 2>&5
38205   ac_status=$?
38206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38207   (exit $ac_status); }; }; then
38208   ol_cv_db_db_43=yes
38209 else
38210   echo "$as_me: failed program was:" >&5
38211 sed 's/^/| /' conftest.$ac_ext >&5
38212
38213 ol_cv_db_db_43=no
38214 fi
38215 rm -f conftest.err conftest.$ac_objext \
38216       conftest$ac_exeext conftest.$ac_ext
38217
38218         LIBS="$ol_LIBS"
38219
38220 fi
38221 echo "$as_me:$LINENO: result: $ol_cv_db_db_43" >&5
38222 echo "${ECHO_T}$ol_cv_db_db_43" >&6
38223
38224         if test $ol_cv_db_db_43 = yes ; then
38225                 ol_cv_lib_db=-ldb-43
38226         fi
38227 fi
38228
38229 if test $ol_cv_lib_db = no ; then
38230         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.3)" >&5
38231 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.3)... $ECHO_C" >&6
38232 if test "${ol_cv_db_db_4_dot_3+set}" = set; then
38233   echo $ECHO_N "(cached) $ECHO_C" >&6
38234 else
38235
38236         ol_DB_LIB=-ldb-4.3
38237         ol_LIBS=$LIBS
38238         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38239
38240         cat >conftest.$ac_ext <<_ACEOF
38241 /* confdefs.h.  */
38242 _ACEOF
38243 cat confdefs.h >>conftest.$ac_ext
38244 cat >>conftest.$ac_ext <<_ACEOF
38245 /* end confdefs.h.  */
38246
38247 #ifdef HAVE_DB_185_H
38248 # include <db_185.h>
38249 #else
38250 # include <db.h>
38251 #endif
38252
38253 #ifndef DB_VERSION_MAJOR
38254 # define DB_VERSION_MAJOR 1
38255 #endif
38256
38257 #ifndef NULL
38258 #define NULL ((void*)0)
38259 #endif
38260
38261 int
38262 main ()
38263 {
38264
38265 #if DB_VERSION_MAJOR > 1
38266         {
38267                 char *version;
38268                 int major, minor, patch;
38269
38270                 version = db_version( &major, &minor, &patch );
38271
38272                 if( major != DB_VERSION_MAJOR ||
38273                         minor < DB_VERSION_MINOR )
38274                 {
38275                         printf("Berkeley DB version mismatch\n"
38276                                 "\theader: %s\n\tlibrary: %s\n",
38277                                 DB_VERSION_STRING, version);
38278                         return 1;
38279                 }
38280         }
38281 #endif
38282
38283 #if DB_VERSION_MAJOR > 2
38284         db_env_create( NULL, 0 );
38285 #elif DB_VERSION_MAJOR > 1
38286         db_appexit( NULL );
38287 #else
38288         (void) dbopen( NULL, 0, 0, 0, NULL);
38289 #endif
38290
38291   ;
38292   return 0;
38293 }
38294 _ACEOF
38295 rm -f conftest.$ac_objext conftest$ac_exeext
38296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38297   (eval $ac_link) 2>conftest.er1
38298   ac_status=$?
38299   grep -v '^ *+' conftest.er1 >conftest.err
38300   rm -f conftest.er1
38301   cat conftest.err >&5
38302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38303   (exit $ac_status); } &&
38304          { ac_try='test -z "$ac_c_werror_flag"
38305                          || test ! -s conftest.err'
38306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38307   (eval $ac_try) 2>&5
38308   ac_status=$?
38309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38310   (exit $ac_status); }; } &&
38311          { ac_try='test -s conftest$ac_exeext'
38312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38313   (eval $ac_try) 2>&5
38314   ac_status=$?
38315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38316   (exit $ac_status); }; }; then
38317   ol_cv_db_db_4_dot_3=yes
38318 else
38319   echo "$as_me: failed program was:" >&5
38320 sed 's/^/| /' conftest.$ac_ext >&5
38321
38322 ol_cv_db_db_4_dot_3=no
38323 fi
38324 rm -f conftest.err conftest.$ac_objext \
38325       conftest$ac_exeext conftest.$ac_ext
38326
38327         LIBS="$ol_LIBS"
38328
38329 fi
38330 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_3" >&5
38331 echo "${ECHO_T}$ol_cv_db_db_4_dot_3" >&6
38332
38333         if test $ol_cv_db_db_4_dot_3 = yes ; then
38334                 ol_cv_lib_db=-ldb-4.3
38335         fi
38336 fi
38337
38338 if test $ol_cv_lib_db = no ; then
38339         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-3)" >&5
38340 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-3)... $ECHO_C" >&6
38341 if test "${ol_cv_db_db_4_3+set}" = set; then
38342   echo $ECHO_N "(cached) $ECHO_C" >&6
38343 else
38344
38345         ol_DB_LIB=-ldb-4-3
38346         ol_LIBS=$LIBS
38347         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38348
38349         cat >conftest.$ac_ext <<_ACEOF
38350 /* confdefs.h.  */
38351 _ACEOF
38352 cat confdefs.h >>conftest.$ac_ext
38353 cat >>conftest.$ac_ext <<_ACEOF
38354 /* end confdefs.h.  */
38355
38356 #ifdef HAVE_DB_185_H
38357 # include <db_185.h>
38358 #else
38359 # include <db.h>
38360 #endif
38361
38362 #ifndef DB_VERSION_MAJOR
38363 # define DB_VERSION_MAJOR 1
38364 #endif
38365
38366 #ifndef NULL
38367 #define NULL ((void*)0)
38368 #endif
38369
38370 int
38371 main ()
38372 {
38373
38374 #if DB_VERSION_MAJOR > 1
38375         {
38376                 char *version;
38377                 int major, minor, patch;
38378
38379                 version = db_version( &major, &minor, &patch );
38380
38381                 if( major != DB_VERSION_MAJOR ||
38382                         minor < DB_VERSION_MINOR )
38383                 {
38384                         printf("Berkeley DB version mismatch\n"
38385                                 "\theader: %s\n\tlibrary: %s\n",
38386                                 DB_VERSION_STRING, version);
38387                         return 1;
38388                 }
38389         }
38390 #endif
38391
38392 #if DB_VERSION_MAJOR > 2
38393         db_env_create( NULL, 0 );
38394 #elif DB_VERSION_MAJOR > 1
38395         db_appexit( NULL );
38396 #else
38397         (void) dbopen( NULL, 0, 0, 0, NULL);
38398 #endif
38399
38400   ;
38401   return 0;
38402 }
38403 _ACEOF
38404 rm -f conftest.$ac_objext conftest$ac_exeext
38405 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38406   (eval $ac_link) 2>conftest.er1
38407   ac_status=$?
38408   grep -v '^ *+' conftest.er1 >conftest.err
38409   rm -f conftest.er1
38410   cat conftest.err >&5
38411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38412   (exit $ac_status); } &&
38413          { ac_try='test -z "$ac_c_werror_flag"
38414                          || test ! -s conftest.err'
38415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38416   (eval $ac_try) 2>&5
38417   ac_status=$?
38418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38419   (exit $ac_status); }; } &&
38420          { ac_try='test -s conftest$ac_exeext'
38421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38422   (eval $ac_try) 2>&5
38423   ac_status=$?
38424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38425   (exit $ac_status); }; }; then
38426   ol_cv_db_db_4_3=yes
38427 else
38428   echo "$as_me: failed program was:" >&5
38429 sed 's/^/| /' conftest.$ac_ext >&5
38430
38431 ol_cv_db_db_4_3=no
38432 fi
38433 rm -f conftest.err conftest.$ac_objext \
38434       conftest$ac_exeext conftest.$ac_ext
38435
38436         LIBS="$ol_LIBS"
38437
38438 fi
38439 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_3" >&5
38440 echo "${ECHO_T}$ol_cv_db_db_4_3" >&6
38441
38442         if test $ol_cv_db_db_4_3 = yes ; then
38443                 ol_cv_lib_db=-ldb-4-3
38444         fi
38445 fi
38446
38447 if test $ol_cv_lib_db = no ; then
38448         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb42)" >&5
38449 echo $ECHO_N "checking for Berkeley DB link (-ldb42)... $ECHO_C" >&6
38450 if test "${ol_cv_db_db42+set}" = set; then
38451   echo $ECHO_N "(cached) $ECHO_C" >&6
38452 else
38453
38454         ol_DB_LIB=-ldb42
38455         ol_LIBS=$LIBS
38456         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38457
38458         cat >conftest.$ac_ext <<_ACEOF
38459 /* confdefs.h.  */
38460 _ACEOF
38461 cat confdefs.h >>conftest.$ac_ext
38462 cat >>conftest.$ac_ext <<_ACEOF
38463 /* end confdefs.h.  */
38464
38465 #ifdef HAVE_DB_185_H
38466 # include <db_185.h>
38467 #else
38468 # include <db.h>
38469 #endif
38470
38471 #ifndef DB_VERSION_MAJOR
38472 # define DB_VERSION_MAJOR 1
38473 #endif
38474
38475 #ifndef NULL
38476 #define NULL ((void*)0)
38477 #endif
38478
38479 int
38480 main ()
38481 {
38482
38483 #if DB_VERSION_MAJOR > 1
38484         {
38485                 char *version;
38486                 int major, minor, patch;
38487
38488                 version = db_version( &major, &minor, &patch );
38489
38490                 if( major != DB_VERSION_MAJOR ||
38491                         minor < DB_VERSION_MINOR )
38492                 {
38493                         printf("Berkeley DB version mismatch\n"
38494                                 "\theader: %s\n\tlibrary: %s\n",
38495                                 DB_VERSION_STRING, version);
38496                         return 1;
38497                 }
38498         }
38499 #endif
38500
38501 #if DB_VERSION_MAJOR > 2
38502         db_env_create( NULL, 0 );
38503 #elif DB_VERSION_MAJOR > 1
38504         db_appexit( NULL );
38505 #else
38506         (void) dbopen( NULL, 0, 0, 0, NULL);
38507 #endif
38508
38509   ;
38510   return 0;
38511 }
38512 _ACEOF
38513 rm -f conftest.$ac_objext conftest$ac_exeext
38514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38515   (eval $ac_link) 2>conftest.er1
38516   ac_status=$?
38517   grep -v '^ *+' conftest.er1 >conftest.err
38518   rm -f conftest.er1
38519   cat conftest.err >&5
38520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38521   (exit $ac_status); } &&
38522          { ac_try='test -z "$ac_c_werror_flag"
38523                          || test ! -s conftest.err'
38524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38525   (eval $ac_try) 2>&5
38526   ac_status=$?
38527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38528   (exit $ac_status); }; } &&
38529          { ac_try='test -s conftest$ac_exeext'
38530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38531   (eval $ac_try) 2>&5
38532   ac_status=$?
38533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38534   (exit $ac_status); }; }; then
38535   ol_cv_db_db42=yes
38536 else
38537   echo "$as_me: failed program was:" >&5
38538 sed 's/^/| /' conftest.$ac_ext >&5
38539
38540 ol_cv_db_db42=no
38541 fi
38542 rm -f conftest.err conftest.$ac_objext \
38543       conftest$ac_exeext conftest.$ac_ext
38544
38545         LIBS="$ol_LIBS"
38546
38547 fi
38548 echo "$as_me:$LINENO: result: $ol_cv_db_db42" >&5
38549 echo "${ECHO_T}$ol_cv_db_db42" >&6
38550
38551         if test $ol_cv_db_db42 = yes ; then
38552                 ol_cv_lib_db=-ldb42
38553         fi
38554 fi
38555
38556 if test $ol_cv_lib_db = no ; then
38557         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-42)" >&5
38558 echo $ECHO_N "checking for Berkeley DB link (-ldb-42)... $ECHO_C" >&6
38559 if test "${ol_cv_db_db_42+set}" = set; then
38560   echo $ECHO_N "(cached) $ECHO_C" >&6
38561 else
38562
38563         ol_DB_LIB=-ldb-42
38564         ol_LIBS=$LIBS
38565         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38566
38567         cat >conftest.$ac_ext <<_ACEOF
38568 /* confdefs.h.  */
38569 _ACEOF
38570 cat confdefs.h >>conftest.$ac_ext
38571 cat >>conftest.$ac_ext <<_ACEOF
38572 /* end confdefs.h.  */
38573
38574 #ifdef HAVE_DB_185_H
38575 # include <db_185.h>
38576 #else
38577 # include <db.h>
38578 #endif
38579
38580 #ifndef DB_VERSION_MAJOR
38581 # define DB_VERSION_MAJOR 1
38582 #endif
38583
38584 #ifndef NULL
38585 #define NULL ((void*)0)
38586 #endif
38587
38588 int
38589 main ()
38590 {
38591
38592 #if DB_VERSION_MAJOR > 1
38593         {
38594                 char *version;
38595                 int major, minor, patch;
38596
38597                 version = db_version( &major, &minor, &patch );
38598
38599                 if( major != DB_VERSION_MAJOR ||
38600                         minor < DB_VERSION_MINOR )
38601                 {
38602                         printf("Berkeley DB version mismatch\n"
38603                                 "\theader: %s\n\tlibrary: %s\n",
38604                                 DB_VERSION_STRING, version);
38605                         return 1;
38606                 }
38607         }
38608 #endif
38609
38610 #if DB_VERSION_MAJOR > 2
38611         db_env_create( NULL, 0 );
38612 #elif DB_VERSION_MAJOR > 1
38613         db_appexit( NULL );
38614 #else
38615         (void) dbopen( NULL, 0, 0, 0, NULL);
38616 #endif
38617
38618   ;
38619   return 0;
38620 }
38621 _ACEOF
38622 rm -f conftest.$ac_objext conftest$ac_exeext
38623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38624   (eval $ac_link) 2>conftest.er1
38625   ac_status=$?
38626   grep -v '^ *+' conftest.er1 >conftest.err
38627   rm -f conftest.er1
38628   cat conftest.err >&5
38629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38630   (exit $ac_status); } &&
38631          { ac_try='test -z "$ac_c_werror_flag"
38632                          || test ! -s conftest.err'
38633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38634   (eval $ac_try) 2>&5
38635   ac_status=$?
38636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38637   (exit $ac_status); }; } &&
38638          { ac_try='test -s conftest$ac_exeext'
38639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38640   (eval $ac_try) 2>&5
38641   ac_status=$?
38642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38643   (exit $ac_status); }; }; then
38644   ol_cv_db_db_42=yes
38645 else
38646   echo "$as_me: failed program was:" >&5
38647 sed 's/^/| /' conftest.$ac_ext >&5
38648
38649 ol_cv_db_db_42=no
38650 fi
38651 rm -f conftest.err conftest.$ac_objext \
38652       conftest$ac_exeext conftest.$ac_ext
38653
38654         LIBS="$ol_LIBS"
38655
38656 fi
38657 echo "$as_me:$LINENO: result: $ol_cv_db_db_42" >&5
38658 echo "${ECHO_T}$ol_cv_db_db_42" >&6
38659
38660         if test $ol_cv_db_db_42 = yes ; then
38661                 ol_cv_lib_db=-ldb-42
38662         fi
38663 fi
38664
38665 if test $ol_cv_lib_db = no ; then
38666         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.2)" >&5
38667 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.2)... $ECHO_C" >&6
38668 if test "${ol_cv_db_db_4_dot_2+set}" = set; then
38669   echo $ECHO_N "(cached) $ECHO_C" >&6
38670 else
38671
38672         ol_DB_LIB=-ldb-4.2
38673         ol_LIBS=$LIBS
38674         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38675
38676         cat >conftest.$ac_ext <<_ACEOF
38677 /* confdefs.h.  */
38678 _ACEOF
38679 cat confdefs.h >>conftest.$ac_ext
38680 cat >>conftest.$ac_ext <<_ACEOF
38681 /* end confdefs.h.  */
38682
38683 #ifdef HAVE_DB_185_H
38684 # include <db_185.h>
38685 #else
38686 # include <db.h>
38687 #endif
38688
38689 #ifndef DB_VERSION_MAJOR
38690 # define DB_VERSION_MAJOR 1
38691 #endif
38692
38693 #ifndef NULL
38694 #define NULL ((void*)0)
38695 #endif
38696
38697 int
38698 main ()
38699 {
38700
38701 #if DB_VERSION_MAJOR > 1
38702         {
38703                 char *version;
38704                 int major, minor, patch;
38705
38706                 version = db_version( &major, &minor, &patch );
38707
38708                 if( major != DB_VERSION_MAJOR ||
38709                         minor < DB_VERSION_MINOR )
38710                 {
38711                         printf("Berkeley DB version mismatch\n"
38712                                 "\theader: %s\n\tlibrary: %s\n",
38713                                 DB_VERSION_STRING, version);
38714                         return 1;
38715                 }
38716         }
38717 #endif
38718
38719 #if DB_VERSION_MAJOR > 2
38720         db_env_create( NULL, 0 );
38721 #elif DB_VERSION_MAJOR > 1
38722         db_appexit( NULL );
38723 #else
38724         (void) dbopen( NULL, 0, 0, 0, NULL);
38725 #endif
38726
38727   ;
38728   return 0;
38729 }
38730 _ACEOF
38731 rm -f conftest.$ac_objext conftest$ac_exeext
38732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38733   (eval $ac_link) 2>conftest.er1
38734   ac_status=$?
38735   grep -v '^ *+' conftest.er1 >conftest.err
38736   rm -f conftest.er1
38737   cat conftest.err >&5
38738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38739   (exit $ac_status); } &&
38740          { ac_try='test -z "$ac_c_werror_flag"
38741                          || test ! -s conftest.err'
38742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38743   (eval $ac_try) 2>&5
38744   ac_status=$?
38745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38746   (exit $ac_status); }; } &&
38747          { ac_try='test -s conftest$ac_exeext'
38748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38749   (eval $ac_try) 2>&5
38750   ac_status=$?
38751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38752   (exit $ac_status); }; }; then
38753   ol_cv_db_db_4_dot_2=yes
38754 else
38755   echo "$as_me: failed program was:" >&5
38756 sed 's/^/| /' conftest.$ac_ext >&5
38757
38758 ol_cv_db_db_4_dot_2=no
38759 fi
38760 rm -f conftest.err conftest.$ac_objext \
38761       conftest$ac_exeext conftest.$ac_ext
38762
38763         LIBS="$ol_LIBS"
38764
38765 fi
38766 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_2" >&5
38767 echo "${ECHO_T}$ol_cv_db_db_4_dot_2" >&6
38768
38769         if test $ol_cv_db_db_4_dot_2 = yes ; then
38770                 ol_cv_lib_db=-ldb-4.2
38771         fi
38772 fi
38773
38774 if test $ol_cv_lib_db = no ; then
38775         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-2)" >&5
38776 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-2)... $ECHO_C" >&6
38777 if test "${ol_cv_db_db_4_2+set}" = set; then
38778   echo $ECHO_N "(cached) $ECHO_C" >&6
38779 else
38780
38781         ol_DB_LIB=-ldb-4-2
38782         ol_LIBS=$LIBS
38783         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38784
38785         cat >conftest.$ac_ext <<_ACEOF
38786 /* confdefs.h.  */
38787 _ACEOF
38788 cat confdefs.h >>conftest.$ac_ext
38789 cat >>conftest.$ac_ext <<_ACEOF
38790 /* end confdefs.h.  */
38791
38792 #ifdef HAVE_DB_185_H
38793 # include <db_185.h>
38794 #else
38795 # include <db.h>
38796 #endif
38797
38798 #ifndef DB_VERSION_MAJOR
38799 # define DB_VERSION_MAJOR 1
38800 #endif
38801
38802 #ifndef NULL
38803 #define NULL ((void*)0)
38804 #endif
38805
38806 int
38807 main ()
38808 {
38809
38810 #if DB_VERSION_MAJOR > 1
38811         {
38812                 char *version;
38813                 int major, minor, patch;
38814
38815                 version = db_version( &major, &minor, &patch );
38816
38817                 if( major != DB_VERSION_MAJOR ||
38818                         minor < DB_VERSION_MINOR )
38819                 {
38820                         printf("Berkeley DB version mismatch\n"
38821                                 "\theader: %s\n\tlibrary: %s\n",
38822                                 DB_VERSION_STRING, version);
38823                         return 1;
38824                 }
38825         }
38826 #endif
38827
38828 #if DB_VERSION_MAJOR > 2
38829         db_env_create( NULL, 0 );
38830 #elif DB_VERSION_MAJOR > 1
38831         db_appexit( NULL );
38832 #else
38833         (void) dbopen( NULL, 0, 0, 0, NULL);
38834 #endif
38835
38836   ;
38837   return 0;
38838 }
38839 _ACEOF
38840 rm -f conftest.$ac_objext conftest$ac_exeext
38841 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38842   (eval $ac_link) 2>conftest.er1
38843   ac_status=$?
38844   grep -v '^ *+' conftest.er1 >conftest.err
38845   rm -f conftest.er1
38846   cat conftest.err >&5
38847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38848   (exit $ac_status); } &&
38849          { ac_try='test -z "$ac_c_werror_flag"
38850                          || test ! -s conftest.err'
38851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38852   (eval $ac_try) 2>&5
38853   ac_status=$?
38854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38855   (exit $ac_status); }; } &&
38856          { ac_try='test -s conftest$ac_exeext'
38857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38858   (eval $ac_try) 2>&5
38859   ac_status=$?
38860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38861   (exit $ac_status); }; }; then
38862   ol_cv_db_db_4_2=yes
38863 else
38864   echo "$as_me: failed program was:" >&5
38865 sed 's/^/| /' conftest.$ac_ext >&5
38866
38867 ol_cv_db_db_4_2=no
38868 fi
38869 rm -f conftest.err conftest.$ac_objext \
38870       conftest$ac_exeext conftest.$ac_ext
38871
38872         LIBS="$ol_LIBS"
38873
38874 fi
38875 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_2" >&5
38876 echo "${ECHO_T}$ol_cv_db_db_4_2" >&6
38877
38878         if test $ol_cv_db_db_4_2 = yes ; then
38879                 ol_cv_lib_db=-ldb-4-2
38880         fi
38881 fi
38882
38883 if test $ol_cv_lib_db = no ; then
38884         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
38885 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6
38886 if test "${ol_cv_db_db_4+set}" = set; then
38887   echo $ECHO_N "(cached) $ECHO_C" >&6
38888 else
38889
38890         ol_DB_LIB=-ldb-4
38891         ol_LIBS=$LIBS
38892         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38893
38894         cat >conftest.$ac_ext <<_ACEOF
38895 /* confdefs.h.  */
38896 _ACEOF
38897 cat confdefs.h >>conftest.$ac_ext
38898 cat >>conftest.$ac_ext <<_ACEOF
38899 /* end confdefs.h.  */
38900
38901 #ifdef HAVE_DB_185_H
38902 # include <db_185.h>
38903 #else
38904 # include <db.h>
38905 #endif
38906
38907 #ifndef DB_VERSION_MAJOR
38908 # define DB_VERSION_MAJOR 1
38909 #endif
38910
38911 #ifndef NULL
38912 #define NULL ((void*)0)
38913 #endif
38914
38915 int
38916 main ()
38917 {
38918
38919 #if DB_VERSION_MAJOR > 1
38920         {
38921                 char *version;
38922                 int major, minor, patch;
38923
38924                 version = db_version( &major, &minor, &patch );
38925
38926                 if( major != DB_VERSION_MAJOR ||
38927                         minor < DB_VERSION_MINOR )
38928                 {
38929                         printf("Berkeley DB version mismatch\n"
38930                                 "\theader: %s\n\tlibrary: %s\n",
38931                                 DB_VERSION_STRING, version);
38932                         return 1;
38933                 }
38934         }
38935 #endif
38936
38937 #if DB_VERSION_MAJOR > 2
38938         db_env_create( NULL, 0 );
38939 #elif DB_VERSION_MAJOR > 1
38940         db_appexit( NULL );
38941 #else
38942         (void) dbopen( NULL, 0, 0, 0, NULL);
38943 #endif
38944
38945   ;
38946   return 0;
38947 }
38948 _ACEOF
38949 rm -f conftest.$ac_objext conftest$ac_exeext
38950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38951   (eval $ac_link) 2>conftest.er1
38952   ac_status=$?
38953   grep -v '^ *+' conftest.er1 >conftest.err
38954   rm -f conftest.er1
38955   cat conftest.err >&5
38956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38957   (exit $ac_status); } &&
38958          { ac_try='test -z "$ac_c_werror_flag"
38959                          || test ! -s conftest.err'
38960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38961   (eval $ac_try) 2>&5
38962   ac_status=$?
38963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38964   (exit $ac_status); }; } &&
38965          { ac_try='test -s conftest$ac_exeext'
38966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38967   (eval $ac_try) 2>&5
38968   ac_status=$?
38969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38970   (exit $ac_status); }; }; then
38971   ol_cv_db_db_4=yes
38972 else
38973   echo "$as_me: failed program was:" >&5
38974 sed 's/^/| /' conftest.$ac_ext >&5
38975
38976 ol_cv_db_db_4=no
38977 fi
38978 rm -f conftest.err conftest.$ac_objext \
38979       conftest$ac_exeext conftest.$ac_ext
38980
38981         LIBS="$ol_LIBS"
38982
38983 fi
38984 echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
38985 echo "${ECHO_T}$ol_cv_db_db_4" >&6
38986
38987         if test $ol_cv_db_db_4 = yes ; then
38988                 ol_cv_lib_db=-ldb-4
38989         fi
38990 fi
38991
38992 if test $ol_cv_lib_db = no ; then
38993         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
38994 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6
38995 if test "${ol_cv_db_db4+set}" = set; then
38996   echo $ECHO_N "(cached) $ECHO_C" >&6
38997 else
38998
38999         ol_DB_LIB=-ldb4
39000         ol_LIBS=$LIBS
39001         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39002
39003         cat >conftest.$ac_ext <<_ACEOF
39004 /* confdefs.h.  */
39005 _ACEOF
39006 cat confdefs.h >>conftest.$ac_ext
39007 cat >>conftest.$ac_ext <<_ACEOF
39008 /* end confdefs.h.  */
39009
39010 #ifdef HAVE_DB_185_H
39011 # include <db_185.h>
39012 #else
39013 # include <db.h>
39014 #endif
39015
39016 #ifndef DB_VERSION_MAJOR
39017 # define DB_VERSION_MAJOR 1
39018 #endif
39019
39020 #ifndef NULL
39021 #define NULL ((void*)0)
39022 #endif
39023
39024 int
39025 main ()
39026 {
39027
39028 #if DB_VERSION_MAJOR > 1
39029         {
39030                 char *version;
39031                 int major, minor, patch;
39032
39033                 version = db_version( &major, &minor, &patch );
39034
39035                 if( major != DB_VERSION_MAJOR ||
39036                         minor < DB_VERSION_MINOR )
39037                 {
39038                         printf("Berkeley DB version mismatch\n"
39039                                 "\theader: %s\n\tlibrary: %s\n",
39040                                 DB_VERSION_STRING, version);
39041                         return 1;
39042                 }
39043         }
39044 #endif
39045
39046 #if DB_VERSION_MAJOR > 2
39047         db_env_create( NULL, 0 );
39048 #elif DB_VERSION_MAJOR > 1
39049         db_appexit( NULL );
39050 #else
39051         (void) dbopen( NULL, 0, 0, 0, NULL);
39052 #endif
39053
39054   ;
39055   return 0;
39056 }
39057 _ACEOF
39058 rm -f conftest.$ac_objext conftest$ac_exeext
39059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39060   (eval $ac_link) 2>conftest.er1
39061   ac_status=$?
39062   grep -v '^ *+' conftest.er1 >conftest.err
39063   rm -f conftest.er1
39064   cat conftest.err >&5
39065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39066   (exit $ac_status); } &&
39067          { ac_try='test -z "$ac_c_werror_flag"
39068                          || test ! -s conftest.err'
39069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39070   (eval $ac_try) 2>&5
39071   ac_status=$?
39072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39073   (exit $ac_status); }; } &&
39074          { ac_try='test -s conftest$ac_exeext'
39075   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39076   (eval $ac_try) 2>&5
39077   ac_status=$?
39078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39079   (exit $ac_status); }; }; then
39080   ol_cv_db_db4=yes
39081 else
39082   echo "$as_me: failed program was:" >&5
39083 sed 's/^/| /' conftest.$ac_ext >&5
39084
39085 ol_cv_db_db4=no
39086 fi
39087 rm -f conftest.err conftest.$ac_objext \
39088       conftest$ac_exeext conftest.$ac_ext
39089
39090         LIBS="$ol_LIBS"
39091
39092 fi
39093 echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
39094 echo "${ECHO_T}$ol_cv_db_db4" >&6
39095
39096         if test $ol_cv_db_db4 = yes ; then
39097                 ol_cv_lib_db=-ldb4
39098         fi
39099 fi
39100
39101 if test $ol_cv_lib_db = no ; then
39102         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
39103 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6
39104 if test "${ol_cv_db_db+set}" = set; then
39105   echo $ECHO_N "(cached) $ECHO_C" >&6
39106 else
39107
39108         ol_DB_LIB=-ldb
39109         ol_LIBS=$LIBS
39110         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39111
39112         cat >conftest.$ac_ext <<_ACEOF
39113 /* confdefs.h.  */
39114 _ACEOF
39115 cat confdefs.h >>conftest.$ac_ext
39116 cat >>conftest.$ac_ext <<_ACEOF
39117 /* end confdefs.h.  */
39118
39119 #ifdef HAVE_DB_185_H
39120 # include <db_185.h>
39121 #else
39122 # include <db.h>
39123 #endif
39124
39125 #ifndef DB_VERSION_MAJOR
39126 # define DB_VERSION_MAJOR 1
39127 #endif
39128
39129 #ifndef NULL
39130 #define NULL ((void*)0)
39131 #endif
39132
39133 int
39134 main ()
39135 {
39136
39137 #if DB_VERSION_MAJOR > 1
39138         {
39139                 char *version;
39140                 int major, minor, patch;
39141
39142                 version = db_version( &major, &minor, &patch );
39143
39144                 if( major != DB_VERSION_MAJOR ||
39145                         minor < DB_VERSION_MINOR )
39146                 {
39147                         printf("Berkeley DB version mismatch\n"
39148                                 "\theader: %s\n\tlibrary: %s\n",
39149                                 DB_VERSION_STRING, version);
39150                         return 1;
39151                 }
39152         }
39153 #endif
39154
39155 #if DB_VERSION_MAJOR > 2
39156         db_env_create( NULL, 0 );
39157 #elif DB_VERSION_MAJOR > 1
39158         db_appexit( NULL );
39159 #else
39160         (void) dbopen( NULL, 0, 0, 0, NULL);
39161 #endif
39162
39163   ;
39164   return 0;
39165 }
39166 _ACEOF
39167 rm -f conftest.$ac_objext conftest$ac_exeext
39168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39169   (eval $ac_link) 2>conftest.er1
39170   ac_status=$?
39171   grep -v '^ *+' conftest.er1 >conftest.err
39172   rm -f conftest.er1
39173   cat conftest.err >&5
39174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39175   (exit $ac_status); } &&
39176          { ac_try='test -z "$ac_c_werror_flag"
39177                          || test ! -s conftest.err'
39178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39179   (eval $ac_try) 2>&5
39180   ac_status=$?
39181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39182   (exit $ac_status); }; } &&
39183          { ac_try='test -s conftest$ac_exeext'
39184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39185   (eval $ac_try) 2>&5
39186   ac_status=$?
39187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39188   (exit $ac_status); }; }; then
39189   ol_cv_db_db=yes
39190 else
39191   echo "$as_me: failed program was:" >&5
39192 sed 's/^/| /' conftest.$ac_ext >&5
39193
39194 ol_cv_db_db=no
39195 fi
39196 rm -f conftest.err conftest.$ac_objext \
39197       conftest$ac_exeext conftest.$ac_ext
39198
39199         LIBS="$ol_LIBS"
39200
39201 fi
39202 echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
39203 echo "${ECHO_T}$ol_cv_db_db" >&6
39204
39205         if test $ol_cv_db_db = yes ; then
39206                 ol_cv_lib_db=-ldb
39207         fi
39208 fi
39209
39210 if test $ol_cv_lib_db = no ; then
39211         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb41)" >&5
39212 echo $ECHO_N "checking for Berkeley DB link (-ldb41)... $ECHO_C" >&6
39213 if test "${ol_cv_db_db41+set}" = set; then
39214   echo $ECHO_N "(cached) $ECHO_C" >&6
39215 else
39216
39217         ol_DB_LIB=-ldb41
39218         ol_LIBS=$LIBS
39219         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39220
39221         cat >conftest.$ac_ext <<_ACEOF
39222 /* confdefs.h.  */
39223 _ACEOF
39224 cat confdefs.h >>conftest.$ac_ext
39225 cat >>conftest.$ac_ext <<_ACEOF
39226 /* end confdefs.h.  */
39227
39228 #ifdef HAVE_DB_185_H
39229 # include <db_185.h>
39230 #else
39231 # include <db.h>
39232 #endif
39233
39234 #ifndef DB_VERSION_MAJOR
39235 # define DB_VERSION_MAJOR 1
39236 #endif
39237
39238 #ifndef NULL
39239 #define NULL ((void*)0)
39240 #endif
39241
39242 int
39243 main ()
39244 {
39245
39246 #if DB_VERSION_MAJOR > 1
39247         {
39248                 char *version;
39249                 int major, minor, patch;
39250
39251                 version = db_version( &major, &minor, &patch );
39252
39253                 if( major != DB_VERSION_MAJOR ||
39254                         minor < DB_VERSION_MINOR )
39255                 {
39256                         printf("Berkeley DB version mismatch\n"
39257                                 "\theader: %s\n\tlibrary: %s\n",
39258                                 DB_VERSION_STRING, version);
39259                         return 1;
39260                 }
39261         }
39262 #endif
39263
39264 #if DB_VERSION_MAJOR > 2
39265         db_env_create( NULL, 0 );
39266 #elif DB_VERSION_MAJOR > 1
39267         db_appexit( NULL );
39268 #else
39269         (void) dbopen( NULL, 0, 0, 0, NULL);
39270 #endif
39271
39272   ;
39273   return 0;
39274 }
39275 _ACEOF
39276 rm -f conftest.$ac_objext conftest$ac_exeext
39277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39278   (eval $ac_link) 2>conftest.er1
39279   ac_status=$?
39280   grep -v '^ *+' conftest.er1 >conftest.err
39281   rm -f conftest.er1
39282   cat conftest.err >&5
39283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39284   (exit $ac_status); } &&
39285          { ac_try='test -z "$ac_c_werror_flag"
39286                          || test ! -s conftest.err'
39287   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39288   (eval $ac_try) 2>&5
39289   ac_status=$?
39290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39291   (exit $ac_status); }; } &&
39292          { ac_try='test -s conftest$ac_exeext'
39293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39294   (eval $ac_try) 2>&5
39295   ac_status=$?
39296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39297   (exit $ac_status); }; }; then
39298   ol_cv_db_db41=yes
39299 else
39300   echo "$as_me: failed program was:" >&5
39301 sed 's/^/| /' conftest.$ac_ext >&5
39302
39303 ol_cv_db_db41=no
39304 fi
39305 rm -f conftest.err conftest.$ac_objext \
39306       conftest$ac_exeext conftest.$ac_ext
39307
39308         LIBS="$ol_LIBS"
39309
39310 fi
39311 echo "$as_me:$LINENO: result: $ol_cv_db_db41" >&5
39312 echo "${ECHO_T}$ol_cv_db_db41" >&6
39313
39314         if test $ol_cv_db_db41 = yes ; then
39315                 ol_cv_lib_db=-ldb41
39316         fi
39317 fi
39318
39319 if test $ol_cv_lib_db = no ; then
39320         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-41)" >&5
39321 echo $ECHO_N "checking for Berkeley DB link (-ldb-41)... $ECHO_C" >&6
39322 if test "${ol_cv_db_db_41+set}" = set; then
39323   echo $ECHO_N "(cached) $ECHO_C" >&6
39324 else
39325
39326         ol_DB_LIB=-ldb-41
39327         ol_LIBS=$LIBS
39328         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39329
39330         cat >conftest.$ac_ext <<_ACEOF
39331 /* confdefs.h.  */
39332 _ACEOF
39333 cat confdefs.h >>conftest.$ac_ext
39334 cat >>conftest.$ac_ext <<_ACEOF
39335 /* end confdefs.h.  */
39336
39337 #ifdef HAVE_DB_185_H
39338 # include <db_185.h>
39339 #else
39340 # include <db.h>
39341 #endif
39342
39343 #ifndef DB_VERSION_MAJOR
39344 # define DB_VERSION_MAJOR 1
39345 #endif
39346
39347 #ifndef NULL
39348 #define NULL ((void*)0)
39349 #endif
39350
39351 int
39352 main ()
39353 {
39354
39355 #if DB_VERSION_MAJOR > 1
39356         {
39357                 char *version;
39358                 int major, minor, patch;
39359
39360                 version = db_version( &major, &minor, &patch );
39361
39362                 if( major != DB_VERSION_MAJOR ||
39363                         minor < DB_VERSION_MINOR )
39364                 {
39365                         printf("Berkeley DB version mismatch\n"
39366                                 "\theader: %s\n\tlibrary: %s\n",
39367                                 DB_VERSION_STRING, version);
39368                         return 1;
39369                 }
39370         }
39371 #endif
39372
39373 #if DB_VERSION_MAJOR > 2
39374         db_env_create( NULL, 0 );
39375 #elif DB_VERSION_MAJOR > 1
39376         db_appexit( NULL );
39377 #else
39378         (void) dbopen( NULL, 0, 0, 0, NULL);
39379 #endif
39380
39381   ;
39382   return 0;
39383 }
39384 _ACEOF
39385 rm -f conftest.$ac_objext conftest$ac_exeext
39386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39387   (eval $ac_link) 2>conftest.er1
39388   ac_status=$?
39389   grep -v '^ *+' conftest.er1 >conftest.err
39390   rm -f conftest.er1
39391   cat conftest.err >&5
39392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39393   (exit $ac_status); } &&
39394          { ac_try='test -z "$ac_c_werror_flag"
39395                          || test ! -s conftest.err'
39396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39397   (eval $ac_try) 2>&5
39398   ac_status=$?
39399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39400   (exit $ac_status); }; } &&
39401          { ac_try='test -s conftest$ac_exeext'
39402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39403   (eval $ac_try) 2>&5
39404   ac_status=$?
39405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39406   (exit $ac_status); }; }; then
39407   ol_cv_db_db_41=yes
39408 else
39409   echo "$as_me: failed program was:" >&5
39410 sed 's/^/| /' conftest.$ac_ext >&5
39411
39412 ol_cv_db_db_41=no
39413 fi
39414 rm -f conftest.err conftest.$ac_objext \
39415       conftest$ac_exeext conftest.$ac_ext
39416
39417         LIBS="$ol_LIBS"
39418
39419 fi
39420 echo "$as_me:$LINENO: result: $ol_cv_db_db_41" >&5
39421 echo "${ECHO_T}$ol_cv_db_db_41" >&6
39422
39423         if test $ol_cv_db_db_41 = yes ; then
39424                 ol_cv_lib_db=-ldb-41
39425         fi
39426 fi
39427
39428 if test $ol_cv_lib_db = no ; then
39429         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.1)" >&5
39430 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.1)... $ECHO_C" >&6
39431 if test "${ol_cv_db_db_4_dot_1+set}" = set; then
39432   echo $ECHO_N "(cached) $ECHO_C" >&6
39433 else
39434
39435         ol_DB_LIB=-ldb-4.1
39436         ol_LIBS=$LIBS
39437         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39438
39439         cat >conftest.$ac_ext <<_ACEOF
39440 /* confdefs.h.  */
39441 _ACEOF
39442 cat confdefs.h >>conftest.$ac_ext
39443 cat >>conftest.$ac_ext <<_ACEOF
39444 /* end confdefs.h.  */
39445
39446 #ifdef HAVE_DB_185_H
39447 # include <db_185.h>
39448 #else
39449 # include <db.h>
39450 #endif
39451
39452 #ifndef DB_VERSION_MAJOR
39453 # define DB_VERSION_MAJOR 1
39454 #endif
39455
39456 #ifndef NULL
39457 #define NULL ((void*)0)
39458 #endif
39459
39460 int
39461 main ()
39462 {
39463
39464 #if DB_VERSION_MAJOR > 1
39465         {
39466                 char *version;
39467                 int major, minor, patch;
39468
39469                 version = db_version( &major, &minor, &patch );
39470
39471                 if( major != DB_VERSION_MAJOR ||
39472                         minor < DB_VERSION_MINOR )
39473                 {
39474                         printf("Berkeley DB version mismatch\n"
39475                                 "\theader: %s\n\tlibrary: %s\n",
39476                                 DB_VERSION_STRING, version);
39477                         return 1;
39478                 }
39479         }
39480 #endif
39481
39482 #if DB_VERSION_MAJOR > 2
39483         db_env_create( NULL, 0 );
39484 #elif DB_VERSION_MAJOR > 1
39485         db_appexit( NULL );
39486 #else
39487         (void) dbopen( NULL, 0, 0, 0, NULL);
39488 #endif
39489
39490   ;
39491   return 0;
39492 }
39493 _ACEOF
39494 rm -f conftest.$ac_objext conftest$ac_exeext
39495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39496   (eval $ac_link) 2>conftest.er1
39497   ac_status=$?
39498   grep -v '^ *+' conftest.er1 >conftest.err
39499   rm -f conftest.er1
39500   cat conftest.err >&5
39501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39502   (exit $ac_status); } &&
39503          { ac_try='test -z "$ac_c_werror_flag"
39504                          || test ! -s conftest.err'
39505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39506   (eval $ac_try) 2>&5
39507   ac_status=$?
39508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39509   (exit $ac_status); }; } &&
39510          { ac_try='test -s conftest$ac_exeext'
39511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39512   (eval $ac_try) 2>&5
39513   ac_status=$?
39514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39515   (exit $ac_status); }; }; then
39516   ol_cv_db_db_4_dot_1=yes
39517 else
39518   echo "$as_me: failed program was:" >&5
39519 sed 's/^/| /' conftest.$ac_ext >&5
39520
39521 ol_cv_db_db_4_dot_1=no
39522 fi
39523 rm -f conftest.err conftest.$ac_objext \
39524       conftest$ac_exeext conftest.$ac_ext
39525
39526         LIBS="$ol_LIBS"
39527
39528 fi
39529 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_1" >&5
39530 echo "${ECHO_T}$ol_cv_db_db_4_dot_1" >&6
39531
39532         if test $ol_cv_db_db_4_dot_1 = yes ; then
39533                 ol_cv_lib_db=-ldb-4.1
39534         fi
39535 fi
39536
39537 if test $ol_cv_lib_db = no ; then
39538         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-1)" >&5
39539 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-1)... $ECHO_C" >&6
39540 if test "${ol_cv_db_db_4_1+set}" = set; then
39541   echo $ECHO_N "(cached) $ECHO_C" >&6
39542 else
39543
39544         ol_DB_LIB=-ldb-4-1
39545         ol_LIBS=$LIBS
39546         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39547
39548         cat >conftest.$ac_ext <<_ACEOF
39549 /* confdefs.h.  */
39550 _ACEOF
39551 cat confdefs.h >>conftest.$ac_ext
39552 cat >>conftest.$ac_ext <<_ACEOF
39553 /* end confdefs.h.  */
39554
39555 #ifdef HAVE_DB_185_H
39556 # include <db_185.h>
39557 #else
39558 # include <db.h>
39559 #endif
39560
39561 #ifndef DB_VERSION_MAJOR
39562 # define DB_VERSION_MAJOR 1
39563 #endif
39564
39565 #ifndef NULL
39566 #define NULL ((void*)0)
39567 #endif
39568
39569 int
39570 main ()
39571 {
39572
39573 #if DB_VERSION_MAJOR > 1
39574         {
39575                 char *version;
39576                 int major, minor, patch;
39577
39578                 version = db_version( &major, &minor, &patch );
39579
39580                 if( major != DB_VERSION_MAJOR ||
39581                         minor < DB_VERSION_MINOR )
39582                 {
39583                         printf("Berkeley DB version mismatch\n"
39584                                 "\theader: %s\n\tlibrary: %s\n",
39585                                 DB_VERSION_STRING, version);
39586                         return 1;
39587                 }
39588         }
39589 #endif
39590
39591 #if DB_VERSION_MAJOR > 2
39592         db_env_create( NULL, 0 );
39593 #elif DB_VERSION_MAJOR > 1
39594         db_appexit( NULL );
39595 #else
39596         (void) dbopen( NULL, 0, 0, 0, NULL);
39597 #endif
39598
39599   ;
39600   return 0;
39601 }
39602 _ACEOF
39603 rm -f conftest.$ac_objext conftest$ac_exeext
39604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39605   (eval $ac_link) 2>conftest.er1
39606   ac_status=$?
39607   grep -v '^ *+' conftest.er1 >conftest.err
39608   rm -f conftest.er1
39609   cat conftest.err >&5
39610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39611   (exit $ac_status); } &&
39612          { ac_try='test -z "$ac_c_werror_flag"
39613                          || test ! -s conftest.err'
39614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39615   (eval $ac_try) 2>&5
39616   ac_status=$?
39617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39618   (exit $ac_status); }; } &&
39619          { ac_try='test -s conftest$ac_exeext'
39620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39621   (eval $ac_try) 2>&5
39622   ac_status=$?
39623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39624   (exit $ac_status); }; }; then
39625   ol_cv_db_db_4_1=yes
39626 else
39627   echo "$as_me: failed program was:" >&5
39628 sed 's/^/| /' conftest.$ac_ext >&5
39629
39630 ol_cv_db_db_4_1=no
39631 fi
39632 rm -f conftest.err conftest.$ac_objext \
39633       conftest$ac_exeext conftest.$ac_ext
39634
39635         LIBS="$ol_LIBS"
39636
39637 fi
39638 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_1" >&5
39639 echo "${ECHO_T}$ol_cv_db_db_4_1" >&6
39640
39641         if test $ol_cv_db_db_4_1 = yes ; then
39642                 ol_cv_lib_db=-ldb-4-1
39643         fi
39644 fi
39645
39646 if test $ol_cv_lib_db = no ; then
39647         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb3)" >&5
39648 echo $ECHO_N "checking for Berkeley DB link (-ldb3)... $ECHO_C" >&6
39649 if test "${ol_cv_db_db3+set}" = set; then
39650   echo $ECHO_N "(cached) $ECHO_C" >&6
39651 else
39652
39653         ol_DB_LIB=-ldb3
39654         ol_LIBS=$LIBS
39655         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39656
39657         cat >conftest.$ac_ext <<_ACEOF
39658 /* confdefs.h.  */
39659 _ACEOF
39660 cat confdefs.h >>conftest.$ac_ext
39661 cat >>conftest.$ac_ext <<_ACEOF
39662 /* end confdefs.h.  */
39663
39664 #ifdef HAVE_DB_185_H
39665 # include <db_185.h>
39666 #else
39667 # include <db.h>
39668 #endif
39669
39670 #ifndef DB_VERSION_MAJOR
39671 # define DB_VERSION_MAJOR 1
39672 #endif
39673
39674 #ifndef NULL
39675 #define NULL ((void*)0)
39676 #endif
39677
39678 int
39679 main ()
39680 {
39681
39682 #if DB_VERSION_MAJOR > 1
39683         {
39684                 char *version;
39685                 int major, minor, patch;
39686
39687                 version = db_version( &major, &minor, &patch );
39688
39689                 if( major != DB_VERSION_MAJOR ||
39690                         minor < DB_VERSION_MINOR )
39691                 {
39692                         printf("Berkeley DB version mismatch\n"
39693                                 "\theader: %s\n\tlibrary: %s\n",
39694                                 DB_VERSION_STRING, version);
39695                         return 1;
39696                 }
39697         }
39698 #endif
39699
39700 #if DB_VERSION_MAJOR > 2
39701         db_env_create( NULL, 0 );
39702 #elif DB_VERSION_MAJOR > 1
39703         db_appexit( NULL );
39704 #else
39705         (void) dbopen( NULL, 0, 0, 0, NULL);
39706 #endif
39707
39708   ;
39709   return 0;
39710 }
39711 _ACEOF
39712 rm -f conftest.$ac_objext conftest$ac_exeext
39713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39714   (eval $ac_link) 2>conftest.er1
39715   ac_status=$?
39716   grep -v '^ *+' conftest.er1 >conftest.err
39717   rm -f conftest.er1
39718   cat conftest.err >&5
39719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39720   (exit $ac_status); } &&
39721          { ac_try='test -z "$ac_c_werror_flag"
39722                          || test ! -s conftest.err'
39723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39724   (eval $ac_try) 2>&5
39725   ac_status=$?
39726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39727   (exit $ac_status); }; } &&
39728          { ac_try='test -s conftest$ac_exeext'
39729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39730   (eval $ac_try) 2>&5
39731   ac_status=$?
39732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39733   (exit $ac_status); }; }; then
39734   ol_cv_db_db3=yes
39735 else
39736   echo "$as_me: failed program was:" >&5
39737 sed 's/^/| /' conftest.$ac_ext >&5
39738
39739 ol_cv_db_db3=no
39740 fi
39741 rm -f conftest.err conftest.$ac_objext \
39742       conftest$ac_exeext conftest.$ac_ext
39743
39744         LIBS="$ol_LIBS"
39745
39746 fi
39747 echo "$as_me:$LINENO: result: $ol_cv_db_db3" >&5
39748 echo "${ECHO_T}$ol_cv_db_db3" >&6
39749
39750         if test $ol_cv_db_db3 = yes ; then
39751                 ol_cv_lib_db=-ldb3
39752         fi
39753 fi
39754
39755 if test $ol_cv_lib_db = no ; then
39756         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-3)" >&5
39757 echo $ECHO_N "checking for Berkeley DB link (-ldb-3)... $ECHO_C" >&6
39758 if test "${ol_cv_db_db_3+set}" = set; then
39759   echo $ECHO_N "(cached) $ECHO_C" >&6
39760 else
39761
39762         ol_DB_LIB=-ldb-3
39763         ol_LIBS=$LIBS
39764         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39765
39766         cat >conftest.$ac_ext <<_ACEOF
39767 /* confdefs.h.  */
39768 _ACEOF
39769 cat confdefs.h >>conftest.$ac_ext
39770 cat >>conftest.$ac_ext <<_ACEOF
39771 /* end confdefs.h.  */
39772
39773 #ifdef HAVE_DB_185_H
39774 # include <db_185.h>
39775 #else
39776 # include <db.h>
39777 #endif
39778
39779 #ifndef DB_VERSION_MAJOR
39780 # define DB_VERSION_MAJOR 1
39781 #endif
39782
39783 #ifndef NULL
39784 #define NULL ((void*)0)
39785 #endif
39786
39787 int
39788 main ()
39789 {
39790
39791 #if DB_VERSION_MAJOR > 1
39792         {
39793                 char *version;
39794                 int major, minor, patch;
39795
39796                 version = db_version( &major, &minor, &patch );
39797
39798                 if( major != DB_VERSION_MAJOR ||
39799                         minor < DB_VERSION_MINOR )
39800                 {
39801                         printf("Berkeley DB version mismatch\n"
39802                                 "\theader: %s\n\tlibrary: %s\n",
39803                                 DB_VERSION_STRING, version);
39804                         return 1;
39805                 }
39806         }
39807 #endif
39808
39809 #if DB_VERSION_MAJOR > 2
39810         db_env_create( NULL, 0 );
39811 #elif DB_VERSION_MAJOR > 1
39812         db_appexit( NULL );
39813 #else
39814         (void) dbopen( NULL, 0, 0, 0, NULL);
39815 #endif
39816
39817   ;
39818   return 0;
39819 }
39820 _ACEOF
39821 rm -f conftest.$ac_objext conftest$ac_exeext
39822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39823   (eval $ac_link) 2>conftest.er1
39824   ac_status=$?
39825   grep -v '^ *+' conftest.er1 >conftest.err
39826   rm -f conftest.er1
39827   cat conftest.err >&5
39828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39829   (exit $ac_status); } &&
39830          { ac_try='test -z "$ac_c_werror_flag"
39831                          || test ! -s conftest.err'
39832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39833   (eval $ac_try) 2>&5
39834   ac_status=$?
39835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39836   (exit $ac_status); }; } &&
39837          { ac_try='test -s conftest$ac_exeext'
39838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39839   (eval $ac_try) 2>&5
39840   ac_status=$?
39841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39842   (exit $ac_status); }; }; then
39843   ol_cv_db_db_3=yes
39844 else
39845   echo "$as_me: failed program was:" >&5
39846 sed 's/^/| /' conftest.$ac_ext >&5
39847
39848 ol_cv_db_db_3=no
39849 fi
39850 rm -f conftest.err conftest.$ac_objext \
39851       conftest$ac_exeext conftest.$ac_ext
39852
39853         LIBS="$ol_LIBS"
39854
39855 fi
39856 echo "$as_me:$LINENO: result: $ol_cv_db_db_3" >&5
39857 echo "${ECHO_T}$ol_cv_db_db_3" >&6
39858
39859         if test $ol_cv_db_db_3 = yes ; then
39860                 ol_cv_lib_db=-ldb-3
39861         fi
39862 fi
39863
39864 if test $ol_cv_lib_db = no ; then
39865         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb2)" >&5
39866 echo $ECHO_N "checking for Berkeley DB link (-ldb2)... $ECHO_C" >&6
39867 if test "${ol_cv_db_db2+set}" = set; then
39868   echo $ECHO_N "(cached) $ECHO_C" >&6
39869 else
39870
39871         ol_DB_LIB=-ldb2
39872         ol_LIBS=$LIBS
39873         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39874
39875         cat >conftest.$ac_ext <<_ACEOF
39876 /* confdefs.h.  */
39877 _ACEOF
39878 cat confdefs.h >>conftest.$ac_ext
39879 cat >>conftest.$ac_ext <<_ACEOF
39880 /* end confdefs.h.  */
39881
39882 #ifdef HAVE_DB_185_H
39883 # include <db_185.h>
39884 #else
39885 # include <db.h>
39886 #endif
39887
39888 #ifndef DB_VERSION_MAJOR
39889 # define DB_VERSION_MAJOR 1
39890 #endif
39891
39892 #ifndef NULL
39893 #define NULL ((void*)0)
39894 #endif
39895
39896 int
39897 main ()
39898 {
39899
39900 #if DB_VERSION_MAJOR > 1
39901         {
39902                 char *version;
39903                 int major, minor, patch;
39904
39905                 version = db_version( &major, &minor, &patch );
39906
39907                 if( major != DB_VERSION_MAJOR ||
39908                         minor < DB_VERSION_MINOR )
39909                 {
39910                         printf("Berkeley DB version mismatch\n"
39911                                 "\theader: %s\n\tlibrary: %s\n",
39912                                 DB_VERSION_STRING, version);
39913                         return 1;
39914                 }
39915         }
39916 #endif
39917
39918 #if DB_VERSION_MAJOR > 2
39919         db_env_create( NULL, 0 );
39920 #elif DB_VERSION_MAJOR > 1
39921         db_appexit( NULL );
39922 #else
39923         (void) dbopen( NULL, 0, 0, 0, NULL);
39924 #endif
39925
39926   ;
39927   return 0;
39928 }
39929 _ACEOF
39930 rm -f conftest.$ac_objext conftest$ac_exeext
39931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39932   (eval $ac_link) 2>conftest.er1
39933   ac_status=$?
39934   grep -v '^ *+' conftest.er1 >conftest.err
39935   rm -f conftest.er1
39936   cat conftest.err >&5
39937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39938   (exit $ac_status); } &&
39939          { ac_try='test -z "$ac_c_werror_flag"
39940                          || test ! -s conftest.err'
39941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39942   (eval $ac_try) 2>&5
39943   ac_status=$?
39944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39945   (exit $ac_status); }; } &&
39946          { ac_try='test -s conftest$ac_exeext'
39947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39948   (eval $ac_try) 2>&5
39949   ac_status=$?
39950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39951   (exit $ac_status); }; }; then
39952   ol_cv_db_db2=yes
39953 else
39954   echo "$as_me: failed program was:" >&5
39955 sed 's/^/| /' conftest.$ac_ext >&5
39956
39957 ol_cv_db_db2=no
39958 fi
39959 rm -f conftest.err conftest.$ac_objext \
39960       conftest$ac_exeext conftest.$ac_ext
39961
39962         LIBS="$ol_LIBS"
39963
39964 fi
39965 echo "$as_me:$LINENO: result: $ol_cv_db_db2" >&5
39966 echo "${ECHO_T}$ol_cv_db_db2" >&6
39967
39968         if test $ol_cv_db_db2 = yes ; then
39969                 ol_cv_lib_db=-ldb2
39970         fi
39971 fi
39972
39973 if test $ol_cv_lib_db = no ; then
39974         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-2)" >&5
39975 echo $ECHO_N "checking for Berkeley DB link (-ldb-2)... $ECHO_C" >&6
39976 if test "${ol_cv_db_db_2+set}" = set; then
39977   echo $ECHO_N "(cached) $ECHO_C" >&6
39978 else
39979
39980         ol_DB_LIB=-ldb-2
39981         ol_LIBS=$LIBS
39982         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39983
39984         cat >conftest.$ac_ext <<_ACEOF
39985 /* confdefs.h.  */
39986 _ACEOF
39987 cat confdefs.h >>conftest.$ac_ext
39988 cat >>conftest.$ac_ext <<_ACEOF
39989 /* end confdefs.h.  */
39990
39991 #ifdef HAVE_DB_185_H
39992 # include <db_185.h>
39993 #else
39994 # include <db.h>
39995 #endif
39996
39997 #ifndef DB_VERSION_MAJOR
39998 # define DB_VERSION_MAJOR 1
39999 #endif
40000
40001 #ifndef NULL
40002 #define NULL ((void*)0)
40003 #endif
40004
40005 int
40006 main ()
40007 {
40008
40009 #if DB_VERSION_MAJOR > 1
40010         {
40011                 char *version;
40012                 int major, minor, patch;
40013
40014                 version = db_version( &major, &minor, &patch );
40015
40016                 if( major != DB_VERSION_MAJOR ||
40017                         minor < DB_VERSION_MINOR )
40018                 {
40019                         printf("Berkeley DB version mismatch\n"
40020                                 "\theader: %s\n\tlibrary: %s\n",
40021                                 DB_VERSION_STRING, version);
40022                         return 1;
40023                 }
40024         }
40025 #endif
40026
40027 #if DB_VERSION_MAJOR > 2
40028         db_env_create( NULL, 0 );
40029 #elif DB_VERSION_MAJOR > 1
40030         db_appexit( NULL );
40031 #else
40032         (void) dbopen( NULL, 0, 0, 0, NULL);
40033 #endif
40034
40035   ;
40036   return 0;
40037 }
40038 _ACEOF
40039 rm -f conftest.$ac_objext conftest$ac_exeext
40040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40041   (eval $ac_link) 2>conftest.er1
40042   ac_status=$?
40043   grep -v '^ *+' conftest.er1 >conftest.err
40044   rm -f conftest.er1
40045   cat conftest.err >&5
40046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40047   (exit $ac_status); } &&
40048          { ac_try='test -z "$ac_c_werror_flag"
40049                          || test ! -s conftest.err'
40050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40051   (eval $ac_try) 2>&5
40052   ac_status=$?
40053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40054   (exit $ac_status); }; } &&
40055          { ac_try='test -s conftest$ac_exeext'
40056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40057   (eval $ac_try) 2>&5
40058   ac_status=$?
40059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40060   (exit $ac_status); }; }; then
40061   ol_cv_db_db_2=yes
40062 else
40063   echo "$as_me: failed program was:" >&5
40064 sed 's/^/| /' conftest.$ac_ext >&5
40065
40066 ol_cv_db_db_2=no
40067 fi
40068 rm -f conftest.err conftest.$ac_objext \
40069       conftest$ac_exeext conftest.$ac_ext
40070
40071         LIBS="$ol_LIBS"
40072
40073 fi
40074 echo "$as_me:$LINENO: result: $ol_cv_db_db_2" >&5
40075 echo "${ECHO_T}$ol_cv_db_db_2" >&6
40076
40077         if test $ol_cv_db_db_2 = yes ; then
40078                 ol_cv_lib_db=-ldb-2
40079         fi
40080 fi
40081
40082 if test $ol_cv_lib_db = no ; then
40083         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb1)" >&5
40084 echo $ECHO_N "checking for Berkeley DB link (-ldb1)... $ECHO_C" >&6
40085 if test "${ol_cv_db_db1+set}" = set; then
40086   echo $ECHO_N "(cached) $ECHO_C" >&6
40087 else
40088
40089         ol_DB_LIB=-ldb1
40090         ol_LIBS=$LIBS
40091         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40092
40093         cat >conftest.$ac_ext <<_ACEOF
40094 /* confdefs.h.  */
40095 _ACEOF
40096 cat confdefs.h >>conftest.$ac_ext
40097 cat >>conftest.$ac_ext <<_ACEOF
40098 /* end confdefs.h.  */
40099
40100 #ifdef HAVE_DB_185_H
40101 # include <db_185.h>
40102 #else
40103 # include <db.h>
40104 #endif
40105
40106 #ifndef DB_VERSION_MAJOR
40107 # define DB_VERSION_MAJOR 1
40108 #endif
40109
40110 #ifndef NULL
40111 #define NULL ((void*)0)
40112 #endif
40113
40114 int
40115 main ()
40116 {
40117
40118 #if DB_VERSION_MAJOR > 1
40119         {
40120                 char *version;
40121                 int major, minor, patch;
40122
40123                 version = db_version( &major, &minor, &patch );
40124
40125                 if( major != DB_VERSION_MAJOR ||
40126                         minor < DB_VERSION_MINOR )
40127                 {
40128                         printf("Berkeley DB version mismatch\n"
40129                                 "\theader: %s\n\tlibrary: %s\n",
40130                                 DB_VERSION_STRING, version);
40131                         return 1;
40132                 }
40133         }
40134 #endif
40135
40136 #if DB_VERSION_MAJOR > 2
40137         db_env_create( NULL, 0 );
40138 #elif DB_VERSION_MAJOR > 1
40139         db_appexit( NULL );
40140 #else
40141         (void) dbopen( NULL, 0, 0, 0, NULL);
40142 #endif
40143
40144   ;
40145   return 0;
40146 }
40147 _ACEOF
40148 rm -f conftest.$ac_objext conftest$ac_exeext
40149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40150   (eval $ac_link) 2>conftest.er1
40151   ac_status=$?
40152   grep -v '^ *+' conftest.er1 >conftest.err
40153   rm -f conftest.er1
40154   cat conftest.err >&5
40155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40156   (exit $ac_status); } &&
40157          { ac_try='test -z "$ac_c_werror_flag"
40158                          || test ! -s conftest.err'
40159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40160   (eval $ac_try) 2>&5
40161   ac_status=$?
40162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40163   (exit $ac_status); }; } &&
40164          { ac_try='test -s conftest$ac_exeext'
40165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40166   (eval $ac_try) 2>&5
40167   ac_status=$?
40168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40169   (exit $ac_status); }; }; then
40170   ol_cv_db_db1=yes
40171 else
40172   echo "$as_me: failed program was:" >&5
40173 sed 's/^/| /' conftest.$ac_ext >&5
40174
40175 ol_cv_db_db1=no
40176 fi
40177 rm -f conftest.err conftest.$ac_objext \
40178       conftest$ac_exeext conftest.$ac_ext
40179
40180         LIBS="$ol_LIBS"
40181
40182 fi
40183 echo "$as_me:$LINENO: result: $ol_cv_db_db1" >&5
40184 echo "${ECHO_T}$ol_cv_db_db1" >&6
40185
40186         if test $ol_cv_db_db1 = yes ; then
40187                 ol_cv_lib_db=-ldb1
40188         fi
40189 fi
40190
40191 if test $ol_cv_lib_db = no ; then
40192         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-1)" >&5
40193 echo $ECHO_N "checking for Berkeley DB link (-ldb-1)... $ECHO_C" >&6
40194 if test "${ol_cv_db_db_1+set}" = set; then
40195   echo $ECHO_N "(cached) $ECHO_C" >&6
40196 else
40197
40198         ol_DB_LIB=-ldb-1
40199         ol_LIBS=$LIBS
40200         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40201
40202         cat >conftest.$ac_ext <<_ACEOF
40203 /* confdefs.h.  */
40204 _ACEOF
40205 cat confdefs.h >>conftest.$ac_ext
40206 cat >>conftest.$ac_ext <<_ACEOF
40207 /* end confdefs.h.  */
40208
40209 #ifdef HAVE_DB_185_H
40210 # include <db_185.h>
40211 #else
40212 # include <db.h>
40213 #endif
40214
40215 #ifndef DB_VERSION_MAJOR
40216 # define DB_VERSION_MAJOR 1
40217 #endif
40218
40219 #ifndef NULL
40220 #define NULL ((void*)0)
40221 #endif
40222
40223 int
40224 main ()
40225 {
40226
40227 #if DB_VERSION_MAJOR > 1
40228         {
40229                 char *version;
40230                 int major, minor, patch;
40231
40232                 version = db_version( &major, &minor, &patch );
40233
40234                 if( major != DB_VERSION_MAJOR ||
40235                         minor < DB_VERSION_MINOR )
40236                 {
40237                         printf("Berkeley DB version mismatch\n"
40238                                 "\theader: %s\n\tlibrary: %s\n",
40239                                 DB_VERSION_STRING, version);
40240                         return 1;
40241                 }
40242         }
40243 #endif
40244
40245 #if DB_VERSION_MAJOR > 2
40246         db_env_create( NULL, 0 );
40247 #elif DB_VERSION_MAJOR > 1
40248         db_appexit( NULL );
40249 #else
40250         (void) dbopen( NULL, 0, 0, 0, NULL);
40251 #endif
40252
40253   ;
40254   return 0;
40255 }
40256 _ACEOF
40257 rm -f conftest.$ac_objext conftest$ac_exeext
40258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40259   (eval $ac_link) 2>conftest.er1
40260   ac_status=$?
40261   grep -v '^ *+' conftest.er1 >conftest.err
40262   rm -f conftest.er1
40263   cat conftest.err >&5
40264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40265   (exit $ac_status); } &&
40266          { ac_try='test -z "$ac_c_werror_flag"
40267                          || test ! -s conftest.err'
40268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40269   (eval $ac_try) 2>&5
40270   ac_status=$?
40271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40272   (exit $ac_status); }; } &&
40273          { ac_try='test -s conftest$ac_exeext'
40274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40275   (eval $ac_try) 2>&5
40276   ac_status=$?
40277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40278   (exit $ac_status); }; }; then
40279   ol_cv_db_db_1=yes
40280 else
40281   echo "$as_me: failed program was:" >&5
40282 sed 's/^/| /' conftest.$ac_ext >&5
40283
40284 ol_cv_db_db_1=no
40285 fi
40286 rm -f conftest.err conftest.$ac_objext \
40287       conftest$ac_exeext conftest.$ac_ext
40288
40289         LIBS="$ol_LIBS"
40290
40291 fi
40292 echo "$as_me:$LINENO: result: $ol_cv_db_db_1" >&5
40293 echo "${ECHO_T}$ol_cv_db_db_1" >&6
40294
40295         if test $ol_cv_db_db_1 = yes ; then
40296                 ol_cv_lib_db=-ldb-1
40297         fi
40298 fi
40299
40300
40301                 if test "$ol_cv_lib_db" != no ; then
40302                         ol_cv_berkeley_db=yes
40303                 fi
40304         fi
40305 fi
40306
40307         else
40308                 ol_cv_berkeley_db=no
40309
40310 for ac_header in db.h
40311 do
40312 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
40313 if eval "test \"\${$as_ac_Header+set}\" = set"; then
40314   echo "$as_me:$LINENO: checking for $ac_header" >&5
40315 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
40316 if eval "test \"\${$as_ac_Header+set}\" = set"; then
40317   echo $ECHO_N "(cached) $ECHO_C" >&6
40318 fi
40319 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
40320 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
40321 else
40322   # Is the header compilable?
40323 echo "$as_me:$LINENO: checking $ac_header usability" >&5
40324 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
40325 cat >conftest.$ac_ext <<_ACEOF
40326 /* confdefs.h.  */
40327 _ACEOF
40328 cat confdefs.h >>conftest.$ac_ext
40329 cat >>conftest.$ac_ext <<_ACEOF
40330 /* end confdefs.h.  */
40331 $ac_includes_default
40332 #include <$ac_header>
40333 _ACEOF
40334 rm -f conftest.$ac_objext
40335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40336   (eval $ac_compile) 2>conftest.er1
40337   ac_status=$?
40338   grep -v '^ *+' conftest.er1 >conftest.err
40339   rm -f conftest.er1
40340   cat conftest.err >&5
40341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40342   (exit $ac_status); } &&
40343          { ac_try='test -z "$ac_c_werror_flag"
40344                          || test ! -s conftest.err'
40345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40346   (eval $ac_try) 2>&5
40347   ac_status=$?
40348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40349   (exit $ac_status); }; } &&
40350          { ac_try='test -s conftest.$ac_objext'
40351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40352   (eval $ac_try) 2>&5
40353   ac_status=$?
40354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40355   (exit $ac_status); }; }; then
40356   ac_header_compiler=yes
40357 else
40358   echo "$as_me: failed program was:" >&5
40359 sed 's/^/| /' conftest.$ac_ext >&5
40360
40361 ac_header_compiler=no
40362 fi
40363 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40364 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40365 echo "${ECHO_T}$ac_header_compiler" >&6
40366
40367 # Is the header present?
40368 echo "$as_me:$LINENO: checking $ac_header presence" >&5
40369 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
40370 cat >conftest.$ac_ext <<_ACEOF
40371 /* confdefs.h.  */
40372 _ACEOF
40373 cat confdefs.h >>conftest.$ac_ext
40374 cat >>conftest.$ac_ext <<_ACEOF
40375 /* end confdefs.h.  */
40376 #include <$ac_header>
40377 _ACEOF
40378 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
40379   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
40380   ac_status=$?
40381   grep -v '^ *+' conftest.er1 >conftest.err
40382   rm -f conftest.er1
40383   cat conftest.err >&5
40384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40385   (exit $ac_status); } >/dev/null; then
40386   if test -s conftest.err; then
40387     ac_cpp_err=$ac_c_preproc_warn_flag
40388     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
40389   else
40390     ac_cpp_err=
40391   fi
40392 else
40393   ac_cpp_err=yes
40394 fi
40395 if test -z "$ac_cpp_err"; then
40396   ac_header_preproc=yes
40397 else
40398   echo "$as_me: failed program was:" >&5
40399 sed 's/^/| /' conftest.$ac_ext >&5
40400
40401   ac_header_preproc=no
40402 fi
40403 rm -f conftest.err conftest.$ac_ext
40404 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40405 echo "${ECHO_T}$ac_header_preproc" >&6
40406
40407 # So?  What about this header?
40408 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40409   yes:no: )
40410     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
40411 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
40412     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
40413 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
40414     ac_header_preproc=yes
40415     ;;
40416   no:yes:* )
40417     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
40418 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
40419     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
40420 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
40421     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
40422 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
40423     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
40424 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
40425     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
40426 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
40427     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
40428 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
40429     (
40430       cat <<\_ASBOX
40431 ## ------------------------------------------ ##
40432 ## Report this to the AC_PACKAGE_NAME lists.  ##
40433 ## ------------------------------------------ ##
40434 _ASBOX
40435     ) |
40436       sed "s/^/$as_me: WARNING:     /" >&2
40437     ;;
40438 esac
40439 echo "$as_me:$LINENO: checking for $ac_header" >&5
40440 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
40441 if eval "test \"\${$as_ac_Header+set}\" = set"; then
40442   echo $ECHO_N "(cached) $ECHO_C" >&6
40443 else
40444   eval "$as_ac_Header=\$ac_header_preproc"
40445 fi
40446 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
40447 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
40448
40449 fi
40450 if test `eval echo '${'$as_ac_Header'}'` = yes; then
40451   cat >>confdefs.h <<_ACEOF
40452 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
40453 _ACEOF
40454
40455 fi
40456
40457 done
40458
40459 if test $ac_cv_header_db_h = yes; then
40460         ol_cv_lib_db=no
40461 if test $ol_cv_lib_db = no ; then
40462         echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
40463 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6
40464 if test "${ol_cv_db_none+set}" = set; then
40465   echo $ECHO_N "(cached) $ECHO_C" >&6
40466 else
40467
40468         ol_DB_LIB=
40469         ol_LIBS=$LIBS
40470         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40471
40472         cat >conftest.$ac_ext <<_ACEOF
40473 /* confdefs.h.  */
40474 _ACEOF
40475 cat confdefs.h >>conftest.$ac_ext
40476 cat >>conftest.$ac_ext <<_ACEOF
40477 /* end confdefs.h.  */
40478
40479 #ifdef HAVE_DB_185_H
40480 # include <db_185.h>
40481 #else
40482 # include <db.h>
40483 #endif
40484
40485 #ifndef DB_VERSION_MAJOR
40486 # define DB_VERSION_MAJOR 1
40487 #endif
40488
40489 #ifndef NULL
40490 #define NULL ((void*)0)
40491 #endif
40492
40493 int
40494 main ()
40495 {
40496
40497 #if DB_VERSION_MAJOR > 1
40498         {
40499                 char *version;
40500                 int major, minor, patch;
40501
40502                 version = db_version( &major, &minor, &patch );
40503
40504                 if( major != DB_VERSION_MAJOR ||
40505                         minor < DB_VERSION_MINOR )
40506                 {
40507                         printf("Berkeley DB version mismatch\n"
40508                                 "\theader: %s\n\tlibrary: %s\n",
40509                                 DB_VERSION_STRING, version);
40510                         return 1;
40511                 }
40512         }
40513 #endif
40514
40515 #if DB_VERSION_MAJOR > 2
40516         db_env_create( NULL, 0 );
40517 #elif DB_VERSION_MAJOR > 1
40518         db_appexit( NULL );
40519 #else
40520         (void) dbopen( NULL, 0, 0, 0, NULL);
40521 #endif
40522
40523   ;
40524   return 0;
40525 }
40526 _ACEOF
40527 rm -f conftest.$ac_objext conftest$ac_exeext
40528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40529   (eval $ac_link) 2>conftest.er1
40530   ac_status=$?
40531   grep -v '^ *+' conftest.er1 >conftest.err
40532   rm -f conftest.er1
40533   cat conftest.err >&5
40534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40535   (exit $ac_status); } &&
40536          { ac_try='test -z "$ac_c_werror_flag"
40537                          || test ! -s conftest.err'
40538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40539   (eval $ac_try) 2>&5
40540   ac_status=$?
40541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40542   (exit $ac_status); }; } &&
40543          { ac_try='test -s conftest$ac_exeext'
40544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40545   (eval $ac_try) 2>&5
40546   ac_status=$?
40547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40548   (exit $ac_status); }; }; then
40549   ol_cv_db_none=yes
40550 else
40551   echo "$as_me: failed program was:" >&5
40552 sed 's/^/| /' conftest.$ac_ext >&5
40553
40554 ol_cv_db_none=no
40555 fi
40556 rm -f conftest.err conftest.$ac_objext \
40557       conftest$ac_exeext conftest.$ac_ext
40558
40559         LIBS="$ol_LIBS"
40560
40561 fi
40562 echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
40563 echo "${ECHO_T}$ol_cv_db_none" >&6
40564
40565         if test $ol_cv_db_none = yes ; then
40566                 ol_cv_lib_db=yes
40567         fi
40568 fi
40569
40570 if test $ol_cv_lib_db = no ; then
40571         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb43)" >&5
40572 echo $ECHO_N "checking for Berkeley DB link (-ldb43)... $ECHO_C" >&6
40573 if test "${ol_cv_db_db43+set}" = set; then
40574   echo $ECHO_N "(cached) $ECHO_C" >&6
40575 else
40576
40577         ol_DB_LIB=-ldb43
40578         ol_LIBS=$LIBS
40579         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40580
40581         cat >conftest.$ac_ext <<_ACEOF
40582 /* confdefs.h.  */
40583 _ACEOF
40584 cat confdefs.h >>conftest.$ac_ext
40585 cat >>conftest.$ac_ext <<_ACEOF
40586 /* end confdefs.h.  */
40587
40588 #ifdef HAVE_DB_185_H
40589 # include <db_185.h>
40590 #else
40591 # include <db.h>
40592 #endif
40593
40594 #ifndef DB_VERSION_MAJOR
40595 # define DB_VERSION_MAJOR 1
40596 #endif
40597
40598 #ifndef NULL
40599 #define NULL ((void*)0)
40600 #endif
40601
40602 int
40603 main ()
40604 {
40605
40606 #if DB_VERSION_MAJOR > 1
40607         {
40608                 char *version;
40609                 int major, minor, patch;
40610
40611                 version = db_version( &major, &minor, &patch );
40612
40613                 if( major != DB_VERSION_MAJOR ||
40614                         minor < DB_VERSION_MINOR )
40615                 {
40616                         printf("Berkeley DB version mismatch\n"
40617                                 "\theader: %s\n\tlibrary: %s\n",
40618                                 DB_VERSION_STRING, version);
40619                         return 1;
40620                 }
40621         }
40622 #endif
40623
40624 #if DB_VERSION_MAJOR > 2
40625         db_env_create( NULL, 0 );
40626 #elif DB_VERSION_MAJOR > 1
40627         db_appexit( NULL );
40628 #else
40629         (void) dbopen( NULL, 0, 0, 0, NULL);
40630 #endif
40631
40632   ;
40633   return 0;
40634 }
40635 _ACEOF
40636 rm -f conftest.$ac_objext conftest$ac_exeext
40637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40638   (eval $ac_link) 2>conftest.er1
40639   ac_status=$?
40640   grep -v '^ *+' conftest.er1 >conftest.err
40641   rm -f conftest.er1
40642   cat conftest.err >&5
40643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40644   (exit $ac_status); } &&
40645          { ac_try='test -z "$ac_c_werror_flag"
40646                          || test ! -s conftest.err'
40647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40648   (eval $ac_try) 2>&5
40649   ac_status=$?
40650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40651   (exit $ac_status); }; } &&
40652          { ac_try='test -s conftest$ac_exeext'
40653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40654   (eval $ac_try) 2>&5
40655   ac_status=$?
40656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40657   (exit $ac_status); }; }; then
40658   ol_cv_db_db43=yes
40659 else
40660   echo "$as_me: failed program was:" >&5
40661 sed 's/^/| /' conftest.$ac_ext >&5
40662
40663 ol_cv_db_db43=no
40664 fi
40665 rm -f conftest.err conftest.$ac_objext \
40666       conftest$ac_exeext conftest.$ac_ext
40667
40668         LIBS="$ol_LIBS"
40669
40670 fi
40671 echo "$as_me:$LINENO: result: $ol_cv_db_db43" >&5
40672 echo "${ECHO_T}$ol_cv_db_db43" >&6
40673
40674         if test $ol_cv_db_db43 = yes ; then
40675                 ol_cv_lib_db=-ldb43
40676         fi
40677 fi
40678
40679 if test $ol_cv_lib_db = no ; then
40680         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-43)" >&5
40681 echo $ECHO_N "checking for Berkeley DB link (-ldb-43)... $ECHO_C" >&6
40682 if test "${ol_cv_db_db_43+set}" = set; then
40683   echo $ECHO_N "(cached) $ECHO_C" >&6
40684 else
40685
40686         ol_DB_LIB=-ldb-43
40687         ol_LIBS=$LIBS
40688         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40689
40690         cat >conftest.$ac_ext <<_ACEOF
40691 /* confdefs.h.  */
40692 _ACEOF
40693 cat confdefs.h >>conftest.$ac_ext
40694 cat >>conftest.$ac_ext <<_ACEOF
40695 /* end confdefs.h.  */
40696
40697 #ifdef HAVE_DB_185_H
40698 # include <db_185.h>
40699 #else
40700 # include <db.h>
40701 #endif
40702
40703 #ifndef DB_VERSION_MAJOR
40704 # define DB_VERSION_MAJOR 1
40705 #endif
40706
40707 #ifndef NULL
40708 #define NULL ((void*)0)
40709 #endif
40710
40711 int
40712 main ()
40713 {
40714
40715 #if DB_VERSION_MAJOR > 1
40716         {
40717                 char *version;
40718                 int major, minor, patch;
40719
40720                 version = db_version( &major, &minor, &patch );
40721
40722                 if( major != DB_VERSION_MAJOR ||
40723                         minor < DB_VERSION_MINOR )
40724                 {
40725                         printf("Berkeley DB version mismatch\n"
40726                                 "\theader: %s\n\tlibrary: %s\n",
40727                                 DB_VERSION_STRING, version);
40728                         return 1;
40729                 }
40730         }
40731 #endif
40732
40733 #if DB_VERSION_MAJOR > 2
40734         db_env_create( NULL, 0 );
40735 #elif DB_VERSION_MAJOR > 1
40736         db_appexit( NULL );
40737 #else
40738         (void) dbopen( NULL, 0, 0, 0, NULL);
40739 #endif
40740
40741   ;
40742   return 0;
40743 }
40744 _ACEOF
40745 rm -f conftest.$ac_objext conftest$ac_exeext
40746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40747   (eval $ac_link) 2>conftest.er1
40748   ac_status=$?
40749   grep -v '^ *+' conftest.er1 >conftest.err
40750   rm -f conftest.er1
40751   cat conftest.err >&5
40752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40753   (exit $ac_status); } &&
40754          { ac_try='test -z "$ac_c_werror_flag"
40755                          || test ! -s conftest.err'
40756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40757   (eval $ac_try) 2>&5
40758   ac_status=$?
40759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40760   (exit $ac_status); }; } &&
40761          { ac_try='test -s conftest$ac_exeext'
40762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40763   (eval $ac_try) 2>&5
40764   ac_status=$?
40765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40766   (exit $ac_status); }; }; then
40767   ol_cv_db_db_43=yes
40768 else
40769   echo "$as_me: failed program was:" >&5
40770 sed 's/^/| /' conftest.$ac_ext >&5
40771
40772 ol_cv_db_db_43=no
40773 fi
40774 rm -f conftest.err conftest.$ac_objext \
40775       conftest$ac_exeext conftest.$ac_ext
40776
40777         LIBS="$ol_LIBS"
40778
40779 fi
40780 echo "$as_me:$LINENO: result: $ol_cv_db_db_43" >&5
40781 echo "${ECHO_T}$ol_cv_db_db_43" >&6
40782
40783         if test $ol_cv_db_db_43 = yes ; then
40784                 ol_cv_lib_db=-ldb-43
40785         fi
40786 fi
40787
40788 if test $ol_cv_lib_db = no ; then
40789         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.3)" >&5
40790 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.3)... $ECHO_C" >&6
40791 if test "${ol_cv_db_db_4_dot_3+set}" = set; then
40792   echo $ECHO_N "(cached) $ECHO_C" >&6
40793 else
40794
40795         ol_DB_LIB=-ldb-4.3
40796         ol_LIBS=$LIBS
40797         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40798
40799         cat >conftest.$ac_ext <<_ACEOF
40800 /* confdefs.h.  */
40801 _ACEOF
40802 cat confdefs.h >>conftest.$ac_ext
40803 cat >>conftest.$ac_ext <<_ACEOF
40804 /* end confdefs.h.  */
40805
40806 #ifdef HAVE_DB_185_H
40807 # include <db_185.h>
40808 #else
40809 # include <db.h>
40810 #endif
40811
40812 #ifndef DB_VERSION_MAJOR
40813 # define DB_VERSION_MAJOR 1
40814 #endif
40815
40816 #ifndef NULL
40817 #define NULL ((void*)0)
40818 #endif
40819
40820 int
40821 main ()
40822 {
40823
40824 #if DB_VERSION_MAJOR > 1
40825         {
40826                 char *version;
40827                 int major, minor, patch;
40828
40829                 version = db_version( &major, &minor, &patch );
40830
40831                 if( major != DB_VERSION_MAJOR ||
40832                         minor < DB_VERSION_MINOR )
40833                 {
40834                         printf("Berkeley DB version mismatch\n"
40835                                 "\theader: %s\n\tlibrary: %s\n",
40836                                 DB_VERSION_STRING, version);
40837                         return 1;
40838                 }
40839         }
40840 #endif
40841
40842 #if DB_VERSION_MAJOR > 2
40843         db_env_create( NULL, 0 );
40844 #elif DB_VERSION_MAJOR > 1
40845         db_appexit( NULL );
40846 #else
40847         (void) dbopen( NULL, 0, 0, 0, NULL);
40848 #endif
40849
40850   ;
40851   return 0;
40852 }
40853 _ACEOF
40854 rm -f conftest.$ac_objext conftest$ac_exeext
40855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40856   (eval $ac_link) 2>conftest.er1
40857   ac_status=$?
40858   grep -v '^ *+' conftest.er1 >conftest.err
40859   rm -f conftest.er1
40860   cat conftest.err >&5
40861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40862   (exit $ac_status); } &&
40863          { ac_try='test -z "$ac_c_werror_flag"
40864                          || test ! -s conftest.err'
40865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40866   (eval $ac_try) 2>&5
40867   ac_status=$?
40868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40869   (exit $ac_status); }; } &&
40870          { ac_try='test -s conftest$ac_exeext'
40871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40872   (eval $ac_try) 2>&5
40873   ac_status=$?
40874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40875   (exit $ac_status); }; }; then
40876   ol_cv_db_db_4_dot_3=yes
40877 else
40878   echo "$as_me: failed program was:" >&5
40879 sed 's/^/| /' conftest.$ac_ext >&5
40880
40881 ol_cv_db_db_4_dot_3=no
40882 fi
40883 rm -f conftest.err conftest.$ac_objext \
40884       conftest$ac_exeext conftest.$ac_ext
40885
40886         LIBS="$ol_LIBS"
40887
40888 fi
40889 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_3" >&5
40890 echo "${ECHO_T}$ol_cv_db_db_4_dot_3" >&6
40891
40892         if test $ol_cv_db_db_4_dot_3 = yes ; then
40893                 ol_cv_lib_db=-ldb-4.3
40894         fi
40895 fi
40896
40897 if test $ol_cv_lib_db = no ; then
40898         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-3)" >&5
40899 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-3)... $ECHO_C" >&6
40900 if test "${ol_cv_db_db_4_3+set}" = set; then
40901   echo $ECHO_N "(cached) $ECHO_C" >&6
40902 else
40903
40904         ol_DB_LIB=-ldb-4-3
40905         ol_LIBS=$LIBS
40906         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40907
40908         cat >conftest.$ac_ext <<_ACEOF
40909 /* confdefs.h.  */
40910 _ACEOF
40911 cat confdefs.h >>conftest.$ac_ext
40912 cat >>conftest.$ac_ext <<_ACEOF
40913 /* end confdefs.h.  */
40914
40915 #ifdef HAVE_DB_185_H
40916 # include <db_185.h>
40917 #else
40918 # include <db.h>
40919 #endif
40920
40921 #ifndef DB_VERSION_MAJOR
40922 # define DB_VERSION_MAJOR 1
40923 #endif
40924
40925 #ifndef NULL
40926 #define NULL ((void*)0)
40927 #endif
40928
40929 int
40930 main ()
40931 {
40932
40933 #if DB_VERSION_MAJOR > 1
40934         {
40935                 char *version;
40936                 int major, minor, patch;
40937
40938                 version = db_version( &major, &minor, &patch );
40939
40940                 if( major != DB_VERSION_MAJOR ||
40941                         minor < DB_VERSION_MINOR )
40942                 {
40943                         printf("Berkeley DB version mismatch\n"
40944                                 "\theader: %s\n\tlibrary: %s\n",
40945                                 DB_VERSION_STRING, version);
40946                         return 1;
40947                 }
40948         }
40949 #endif
40950
40951 #if DB_VERSION_MAJOR > 2
40952         db_env_create( NULL, 0 );
40953 #elif DB_VERSION_MAJOR > 1
40954         db_appexit( NULL );
40955 #else
40956         (void) dbopen( NULL, 0, 0, 0, NULL);
40957 #endif
40958
40959   ;
40960   return 0;
40961 }
40962 _ACEOF
40963 rm -f conftest.$ac_objext conftest$ac_exeext
40964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40965   (eval $ac_link) 2>conftest.er1
40966   ac_status=$?
40967   grep -v '^ *+' conftest.er1 >conftest.err
40968   rm -f conftest.er1
40969   cat conftest.err >&5
40970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40971   (exit $ac_status); } &&
40972          { ac_try='test -z "$ac_c_werror_flag"
40973                          || test ! -s conftest.err'
40974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40975   (eval $ac_try) 2>&5
40976   ac_status=$?
40977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40978   (exit $ac_status); }; } &&
40979          { ac_try='test -s conftest$ac_exeext'
40980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40981   (eval $ac_try) 2>&5
40982   ac_status=$?
40983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40984   (exit $ac_status); }; }; then
40985   ol_cv_db_db_4_3=yes
40986 else
40987   echo "$as_me: failed program was:" >&5
40988 sed 's/^/| /' conftest.$ac_ext >&5
40989
40990 ol_cv_db_db_4_3=no
40991 fi
40992 rm -f conftest.err conftest.$ac_objext \
40993       conftest$ac_exeext conftest.$ac_ext
40994
40995         LIBS="$ol_LIBS"
40996
40997 fi
40998 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_3" >&5
40999 echo "${ECHO_T}$ol_cv_db_db_4_3" >&6
41000
41001         if test $ol_cv_db_db_4_3 = yes ; then
41002                 ol_cv_lib_db=-ldb-4-3
41003         fi
41004 fi
41005
41006 if test $ol_cv_lib_db = no ; then
41007         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb42)" >&5
41008 echo $ECHO_N "checking for Berkeley DB link (-ldb42)... $ECHO_C" >&6
41009 if test "${ol_cv_db_db42+set}" = set; then
41010   echo $ECHO_N "(cached) $ECHO_C" >&6
41011 else
41012
41013         ol_DB_LIB=-ldb42
41014         ol_LIBS=$LIBS
41015         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41016
41017         cat >conftest.$ac_ext <<_ACEOF
41018 /* confdefs.h.  */
41019 _ACEOF
41020 cat confdefs.h >>conftest.$ac_ext
41021 cat >>conftest.$ac_ext <<_ACEOF
41022 /* end confdefs.h.  */
41023
41024 #ifdef HAVE_DB_185_H
41025 # include <db_185.h>
41026 #else
41027 # include <db.h>
41028 #endif
41029
41030 #ifndef DB_VERSION_MAJOR
41031 # define DB_VERSION_MAJOR 1
41032 #endif
41033
41034 #ifndef NULL
41035 #define NULL ((void*)0)
41036 #endif
41037
41038 int
41039 main ()
41040 {
41041
41042 #if DB_VERSION_MAJOR > 1
41043         {
41044                 char *version;
41045                 int major, minor, patch;
41046
41047                 version = db_version( &major, &minor, &patch );
41048
41049                 if( major != DB_VERSION_MAJOR ||
41050                         minor < DB_VERSION_MINOR )
41051                 {
41052                         printf("Berkeley DB version mismatch\n"
41053                                 "\theader: %s\n\tlibrary: %s\n",
41054                                 DB_VERSION_STRING, version);
41055                         return 1;
41056                 }
41057         }
41058 #endif
41059
41060 #if DB_VERSION_MAJOR > 2
41061         db_env_create( NULL, 0 );
41062 #elif DB_VERSION_MAJOR > 1
41063         db_appexit( NULL );
41064 #else
41065         (void) dbopen( NULL, 0, 0, 0, NULL);
41066 #endif
41067
41068   ;
41069   return 0;
41070 }
41071 _ACEOF
41072 rm -f conftest.$ac_objext conftest$ac_exeext
41073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41074   (eval $ac_link) 2>conftest.er1
41075   ac_status=$?
41076   grep -v '^ *+' conftest.er1 >conftest.err
41077   rm -f conftest.er1
41078   cat conftest.err >&5
41079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41080   (exit $ac_status); } &&
41081          { ac_try='test -z "$ac_c_werror_flag"
41082                          || test ! -s conftest.err'
41083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41084   (eval $ac_try) 2>&5
41085   ac_status=$?
41086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41087   (exit $ac_status); }; } &&
41088          { ac_try='test -s conftest$ac_exeext'
41089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41090   (eval $ac_try) 2>&5
41091   ac_status=$?
41092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41093   (exit $ac_status); }; }; then
41094   ol_cv_db_db42=yes
41095 else
41096   echo "$as_me: failed program was:" >&5
41097 sed 's/^/| /' conftest.$ac_ext >&5
41098
41099 ol_cv_db_db42=no
41100 fi
41101 rm -f conftest.err conftest.$ac_objext \
41102       conftest$ac_exeext conftest.$ac_ext
41103
41104         LIBS="$ol_LIBS"
41105
41106 fi
41107 echo "$as_me:$LINENO: result: $ol_cv_db_db42" >&5
41108 echo "${ECHO_T}$ol_cv_db_db42" >&6
41109
41110         if test $ol_cv_db_db42 = yes ; then
41111                 ol_cv_lib_db=-ldb42
41112         fi
41113 fi
41114
41115 if test $ol_cv_lib_db = no ; then
41116         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-42)" >&5
41117 echo $ECHO_N "checking for Berkeley DB link (-ldb-42)... $ECHO_C" >&6
41118 if test "${ol_cv_db_db_42+set}" = set; then
41119   echo $ECHO_N "(cached) $ECHO_C" >&6
41120 else
41121
41122         ol_DB_LIB=-ldb-42
41123         ol_LIBS=$LIBS
41124         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41125
41126         cat >conftest.$ac_ext <<_ACEOF
41127 /* confdefs.h.  */
41128 _ACEOF
41129 cat confdefs.h >>conftest.$ac_ext
41130 cat >>conftest.$ac_ext <<_ACEOF
41131 /* end confdefs.h.  */
41132
41133 #ifdef HAVE_DB_185_H
41134 # include <db_185.h>
41135 #else
41136 # include <db.h>
41137 #endif
41138
41139 #ifndef DB_VERSION_MAJOR
41140 # define DB_VERSION_MAJOR 1
41141 #endif
41142
41143 #ifndef NULL
41144 #define NULL ((void*)0)
41145 #endif
41146
41147 int
41148 main ()
41149 {
41150
41151 #if DB_VERSION_MAJOR > 1
41152         {
41153                 char *version;
41154                 int major, minor, patch;
41155
41156                 version = db_version( &major, &minor, &patch );
41157
41158                 if( major != DB_VERSION_MAJOR ||
41159                         minor < DB_VERSION_MINOR )
41160                 {
41161                         printf("Berkeley DB version mismatch\n"
41162                                 "\theader: %s\n\tlibrary: %s\n",
41163                                 DB_VERSION_STRING, version);
41164                         return 1;
41165                 }
41166         }
41167 #endif
41168
41169 #if DB_VERSION_MAJOR > 2
41170         db_env_create( NULL, 0 );
41171 #elif DB_VERSION_MAJOR > 1
41172         db_appexit( NULL );
41173 #else
41174         (void) dbopen( NULL, 0, 0, 0, NULL);
41175 #endif
41176
41177   ;
41178   return 0;
41179 }
41180 _ACEOF
41181 rm -f conftest.$ac_objext conftest$ac_exeext
41182 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41183   (eval $ac_link) 2>conftest.er1
41184   ac_status=$?
41185   grep -v '^ *+' conftest.er1 >conftest.err
41186   rm -f conftest.er1
41187   cat conftest.err >&5
41188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41189   (exit $ac_status); } &&
41190          { ac_try='test -z "$ac_c_werror_flag"
41191                          || test ! -s conftest.err'
41192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41193   (eval $ac_try) 2>&5
41194   ac_status=$?
41195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41196   (exit $ac_status); }; } &&
41197          { ac_try='test -s conftest$ac_exeext'
41198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41199   (eval $ac_try) 2>&5
41200   ac_status=$?
41201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41202   (exit $ac_status); }; }; then
41203   ol_cv_db_db_42=yes
41204 else
41205   echo "$as_me: failed program was:" >&5
41206 sed 's/^/| /' conftest.$ac_ext >&5
41207
41208 ol_cv_db_db_42=no
41209 fi
41210 rm -f conftest.err conftest.$ac_objext \
41211       conftest$ac_exeext conftest.$ac_ext
41212
41213         LIBS="$ol_LIBS"
41214
41215 fi
41216 echo "$as_me:$LINENO: result: $ol_cv_db_db_42" >&5
41217 echo "${ECHO_T}$ol_cv_db_db_42" >&6
41218
41219         if test $ol_cv_db_db_42 = yes ; then
41220                 ol_cv_lib_db=-ldb-42
41221         fi
41222 fi
41223
41224 if test $ol_cv_lib_db = no ; then
41225         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.2)" >&5
41226 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.2)... $ECHO_C" >&6
41227 if test "${ol_cv_db_db_4_dot_2+set}" = set; then
41228   echo $ECHO_N "(cached) $ECHO_C" >&6
41229 else
41230
41231         ol_DB_LIB=-ldb-4.2
41232         ol_LIBS=$LIBS
41233         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41234
41235         cat >conftest.$ac_ext <<_ACEOF
41236 /* confdefs.h.  */
41237 _ACEOF
41238 cat confdefs.h >>conftest.$ac_ext
41239 cat >>conftest.$ac_ext <<_ACEOF
41240 /* end confdefs.h.  */
41241
41242 #ifdef HAVE_DB_185_H
41243 # include <db_185.h>
41244 #else
41245 # include <db.h>
41246 #endif
41247
41248 #ifndef DB_VERSION_MAJOR
41249 # define DB_VERSION_MAJOR 1
41250 #endif
41251
41252 #ifndef NULL
41253 #define NULL ((void*)0)
41254 #endif
41255
41256 int
41257 main ()
41258 {
41259
41260 #if DB_VERSION_MAJOR > 1
41261         {
41262                 char *version;
41263                 int major, minor, patch;
41264
41265                 version = db_version( &major, &minor, &patch );
41266
41267                 if( major != DB_VERSION_MAJOR ||
41268                         minor < DB_VERSION_MINOR )
41269                 {
41270                         printf("Berkeley DB version mismatch\n"
41271                                 "\theader: %s\n\tlibrary: %s\n",
41272                                 DB_VERSION_STRING, version);
41273                         return 1;
41274                 }
41275         }
41276 #endif
41277
41278 #if DB_VERSION_MAJOR > 2
41279         db_env_create( NULL, 0 );
41280 #elif DB_VERSION_MAJOR > 1
41281         db_appexit( NULL );
41282 #else
41283         (void) dbopen( NULL, 0, 0, 0, NULL);
41284 #endif
41285
41286   ;
41287   return 0;
41288 }
41289 _ACEOF
41290 rm -f conftest.$ac_objext conftest$ac_exeext
41291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41292   (eval $ac_link) 2>conftest.er1
41293   ac_status=$?
41294   grep -v '^ *+' conftest.er1 >conftest.err
41295   rm -f conftest.er1
41296   cat conftest.err >&5
41297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41298   (exit $ac_status); } &&
41299          { ac_try='test -z "$ac_c_werror_flag"
41300                          || test ! -s conftest.err'
41301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41302   (eval $ac_try) 2>&5
41303   ac_status=$?
41304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41305   (exit $ac_status); }; } &&
41306          { ac_try='test -s conftest$ac_exeext'
41307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41308   (eval $ac_try) 2>&5
41309   ac_status=$?
41310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41311   (exit $ac_status); }; }; then
41312   ol_cv_db_db_4_dot_2=yes
41313 else
41314   echo "$as_me: failed program was:" >&5
41315 sed 's/^/| /' conftest.$ac_ext >&5
41316
41317 ol_cv_db_db_4_dot_2=no
41318 fi
41319 rm -f conftest.err conftest.$ac_objext \
41320       conftest$ac_exeext conftest.$ac_ext
41321
41322         LIBS="$ol_LIBS"
41323
41324 fi
41325 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_2" >&5
41326 echo "${ECHO_T}$ol_cv_db_db_4_dot_2" >&6
41327
41328         if test $ol_cv_db_db_4_dot_2 = yes ; then
41329                 ol_cv_lib_db=-ldb-4.2
41330         fi
41331 fi
41332
41333 if test $ol_cv_lib_db = no ; then
41334         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-2)" >&5
41335 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-2)... $ECHO_C" >&6
41336 if test "${ol_cv_db_db_4_2+set}" = set; then
41337   echo $ECHO_N "(cached) $ECHO_C" >&6
41338 else
41339
41340         ol_DB_LIB=-ldb-4-2
41341         ol_LIBS=$LIBS
41342         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41343
41344         cat >conftest.$ac_ext <<_ACEOF
41345 /* confdefs.h.  */
41346 _ACEOF
41347 cat confdefs.h >>conftest.$ac_ext
41348 cat >>conftest.$ac_ext <<_ACEOF
41349 /* end confdefs.h.  */
41350
41351 #ifdef HAVE_DB_185_H
41352 # include <db_185.h>
41353 #else
41354 # include <db.h>
41355 #endif
41356
41357 #ifndef DB_VERSION_MAJOR
41358 # define DB_VERSION_MAJOR 1
41359 #endif
41360
41361 #ifndef NULL
41362 #define NULL ((void*)0)
41363 #endif
41364
41365 int
41366 main ()
41367 {
41368
41369 #if DB_VERSION_MAJOR > 1
41370         {
41371                 char *version;
41372                 int major, minor, patch;
41373
41374                 version = db_version( &major, &minor, &patch );
41375
41376                 if( major != DB_VERSION_MAJOR ||
41377                         minor < DB_VERSION_MINOR )
41378                 {
41379                         printf("Berkeley DB version mismatch\n"
41380                                 "\theader: %s\n\tlibrary: %s\n",
41381                                 DB_VERSION_STRING, version);
41382                         return 1;
41383                 }
41384         }
41385 #endif
41386
41387 #if DB_VERSION_MAJOR > 2
41388         db_env_create( NULL, 0 );
41389 #elif DB_VERSION_MAJOR > 1
41390         db_appexit( NULL );
41391 #else
41392         (void) dbopen( NULL, 0, 0, 0, NULL);
41393 #endif
41394
41395   ;
41396   return 0;
41397 }
41398 _ACEOF
41399 rm -f conftest.$ac_objext conftest$ac_exeext
41400 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41401   (eval $ac_link) 2>conftest.er1
41402   ac_status=$?
41403   grep -v '^ *+' conftest.er1 >conftest.err
41404   rm -f conftest.er1
41405   cat conftest.err >&5
41406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41407   (exit $ac_status); } &&
41408          { ac_try='test -z "$ac_c_werror_flag"
41409                          || test ! -s conftest.err'
41410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41411   (eval $ac_try) 2>&5
41412   ac_status=$?
41413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41414   (exit $ac_status); }; } &&
41415          { ac_try='test -s conftest$ac_exeext'
41416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41417   (eval $ac_try) 2>&5
41418   ac_status=$?
41419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41420   (exit $ac_status); }; }; then
41421   ol_cv_db_db_4_2=yes
41422 else
41423   echo "$as_me: failed program was:" >&5
41424 sed 's/^/| /' conftest.$ac_ext >&5
41425
41426 ol_cv_db_db_4_2=no
41427 fi
41428 rm -f conftest.err conftest.$ac_objext \
41429       conftest$ac_exeext conftest.$ac_ext
41430
41431         LIBS="$ol_LIBS"
41432
41433 fi
41434 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_2" >&5
41435 echo "${ECHO_T}$ol_cv_db_db_4_2" >&6
41436
41437         if test $ol_cv_db_db_4_2 = yes ; then
41438                 ol_cv_lib_db=-ldb-4-2
41439         fi
41440 fi
41441
41442 if test $ol_cv_lib_db = no ; then
41443         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
41444 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6
41445 if test "${ol_cv_db_db_4+set}" = set; then
41446   echo $ECHO_N "(cached) $ECHO_C" >&6
41447 else
41448
41449         ol_DB_LIB=-ldb-4
41450         ol_LIBS=$LIBS
41451         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41452
41453         cat >conftest.$ac_ext <<_ACEOF
41454 /* confdefs.h.  */
41455 _ACEOF
41456 cat confdefs.h >>conftest.$ac_ext
41457 cat >>conftest.$ac_ext <<_ACEOF
41458 /* end confdefs.h.  */
41459
41460 #ifdef HAVE_DB_185_H
41461 # include <db_185.h>
41462 #else
41463 # include <db.h>
41464 #endif
41465
41466 #ifndef DB_VERSION_MAJOR
41467 # define DB_VERSION_MAJOR 1
41468 #endif
41469
41470 #ifndef NULL
41471 #define NULL ((void*)0)
41472 #endif
41473
41474 int
41475 main ()
41476 {
41477
41478 #if DB_VERSION_MAJOR > 1
41479         {
41480                 char *version;
41481                 int major, minor, patch;
41482
41483                 version = db_version( &major, &minor, &patch );
41484
41485                 if( major != DB_VERSION_MAJOR ||
41486                         minor < DB_VERSION_MINOR )
41487                 {
41488                         printf("Berkeley DB version mismatch\n"
41489                                 "\theader: %s\n\tlibrary: %s\n",
41490                                 DB_VERSION_STRING, version);
41491                         return 1;
41492                 }
41493         }
41494 #endif
41495
41496 #if DB_VERSION_MAJOR > 2
41497         db_env_create( NULL, 0 );
41498 #elif DB_VERSION_MAJOR > 1
41499         db_appexit( NULL );
41500 #else
41501         (void) dbopen( NULL, 0, 0, 0, NULL);
41502 #endif
41503
41504   ;
41505   return 0;
41506 }
41507 _ACEOF
41508 rm -f conftest.$ac_objext conftest$ac_exeext
41509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41510   (eval $ac_link) 2>conftest.er1
41511   ac_status=$?
41512   grep -v '^ *+' conftest.er1 >conftest.err
41513   rm -f conftest.er1
41514   cat conftest.err >&5
41515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41516   (exit $ac_status); } &&
41517          { ac_try='test -z "$ac_c_werror_flag"
41518                          || test ! -s conftest.err'
41519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41520   (eval $ac_try) 2>&5
41521   ac_status=$?
41522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41523   (exit $ac_status); }; } &&
41524          { ac_try='test -s conftest$ac_exeext'
41525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41526   (eval $ac_try) 2>&5
41527   ac_status=$?
41528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41529   (exit $ac_status); }; }; then
41530   ol_cv_db_db_4=yes
41531 else
41532   echo "$as_me: failed program was:" >&5
41533 sed 's/^/| /' conftest.$ac_ext >&5
41534
41535 ol_cv_db_db_4=no
41536 fi
41537 rm -f conftest.err conftest.$ac_objext \
41538       conftest$ac_exeext conftest.$ac_ext
41539
41540         LIBS="$ol_LIBS"
41541
41542 fi
41543 echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
41544 echo "${ECHO_T}$ol_cv_db_db_4" >&6
41545
41546         if test $ol_cv_db_db_4 = yes ; then
41547                 ol_cv_lib_db=-ldb-4
41548         fi
41549 fi
41550
41551 if test $ol_cv_lib_db = no ; then
41552         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
41553 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6
41554 if test "${ol_cv_db_db4+set}" = set; then
41555   echo $ECHO_N "(cached) $ECHO_C" >&6
41556 else
41557
41558         ol_DB_LIB=-ldb4
41559         ol_LIBS=$LIBS
41560         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41561
41562         cat >conftest.$ac_ext <<_ACEOF
41563 /* confdefs.h.  */
41564 _ACEOF
41565 cat confdefs.h >>conftest.$ac_ext
41566 cat >>conftest.$ac_ext <<_ACEOF
41567 /* end confdefs.h.  */
41568
41569 #ifdef HAVE_DB_185_H
41570 # include <db_185.h>
41571 #else
41572 # include <db.h>
41573 #endif
41574
41575 #ifndef DB_VERSION_MAJOR
41576 # define DB_VERSION_MAJOR 1
41577 #endif
41578
41579 #ifndef NULL
41580 #define NULL ((void*)0)
41581 #endif
41582
41583 int
41584 main ()
41585 {
41586
41587 #if DB_VERSION_MAJOR > 1
41588         {
41589                 char *version;
41590                 int major, minor, patch;
41591
41592                 version = db_version( &major, &minor, &patch );
41593
41594                 if( major != DB_VERSION_MAJOR ||
41595                         minor < DB_VERSION_MINOR )
41596                 {
41597                         printf("Berkeley DB version mismatch\n"
41598                                 "\theader: %s\n\tlibrary: %s\n",
41599                                 DB_VERSION_STRING, version);
41600                         return 1;
41601                 }
41602         }
41603 #endif
41604
41605 #if DB_VERSION_MAJOR > 2
41606         db_env_create( NULL, 0 );
41607 #elif DB_VERSION_MAJOR > 1
41608         db_appexit( NULL );
41609 #else
41610         (void) dbopen( NULL, 0, 0, 0, NULL);
41611 #endif
41612
41613   ;
41614   return 0;
41615 }
41616 _ACEOF
41617 rm -f conftest.$ac_objext conftest$ac_exeext
41618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41619   (eval $ac_link) 2>conftest.er1
41620   ac_status=$?
41621   grep -v '^ *+' conftest.er1 >conftest.err
41622   rm -f conftest.er1
41623   cat conftest.err >&5
41624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41625   (exit $ac_status); } &&
41626          { ac_try='test -z "$ac_c_werror_flag"
41627                          || test ! -s conftest.err'
41628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41629   (eval $ac_try) 2>&5
41630   ac_status=$?
41631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41632   (exit $ac_status); }; } &&
41633          { ac_try='test -s conftest$ac_exeext'
41634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41635   (eval $ac_try) 2>&5
41636   ac_status=$?
41637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41638   (exit $ac_status); }; }; then
41639   ol_cv_db_db4=yes
41640 else
41641   echo "$as_me: failed program was:" >&5
41642 sed 's/^/| /' conftest.$ac_ext >&5
41643
41644 ol_cv_db_db4=no
41645 fi
41646 rm -f conftest.err conftest.$ac_objext \
41647       conftest$ac_exeext conftest.$ac_ext
41648
41649         LIBS="$ol_LIBS"
41650
41651 fi
41652 echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
41653 echo "${ECHO_T}$ol_cv_db_db4" >&6
41654
41655         if test $ol_cv_db_db4 = yes ; then
41656                 ol_cv_lib_db=-ldb4
41657         fi
41658 fi
41659
41660 if test $ol_cv_lib_db = no ; then
41661         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
41662 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6
41663 if test "${ol_cv_db_db+set}" = set; then
41664   echo $ECHO_N "(cached) $ECHO_C" >&6
41665 else
41666
41667         ol_DB_LIB=-ldb
41668         ol_LIBS=$LIBS
41669         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41670
41671         cat >conftest.$ac_ext <<_ACEOF
41672 /* confdefs.h.  */
41673 _ACEOF
41674 cat confdefs.h >>conftest.$ac_ext
41675 cat >>conftest.$ac_ext <<_ACEOF
41676 /* end confdefs.h.  */
41677
41678 #ifdef HAVE_DB_185_H
41679 # include <db_185.h>
41680 #else
41681 # include <db.h>
41682 #endif
41683
41684 #ifndef DB_VERSION_MAJOR
41685 # define DB_VERSION_MAJOR 1
41686 #endif
41687
41688 #ifndef NULL
41689 #define NULL ((void*)0)
41690 #endif
41691
41692 int
41693 main ()
41694 {
41695
41696 #if DB_VERSION_MAJOR > 1
41697         {
41698                 char *version;
41699                 int major, minor, patch;
41700
41701                 version = db_version( &major, &minor, &patch );
41702
41703                 if( major != DB_VERSION_MAJOR ||
41704                         minor < DB_VERSION_MINOR )
41705                 {
41706                         printf("Berkeley DB version mismatch\n"
41707                                 "\theader: %s\n\tlibrary: %s\n",
41708                                 DB_VERSION_STRING, version);
41709                         return 1;
41710                 }
41711         }
41712 #endif
41713
41714 #if DB_VERSION_MAJOR > 2
41715         db_env_create( NULL, 0 );
41716 #elif DB_VERSION_MAJOR > 1
41717         db_appexit( NULL );
41718 #else
41719         (void) dbopen( NULL, 0, 0, 0, NULL);
41720 #endif
41721
41722   ;
41723   return 0;
41724 }
41725 _ACEOF
41726 rm -f conftest.$ac_objext conftest$ac_exeext
41727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41728   (eval $ac_link) 2>conftest.er1
41729   ac_status=$?
41730   grep -v '^ *+' conftest.er1 >conftest.err
41731   rm -f conftest.er1
41732   cat conftest.err >&5
41733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41734   (exit $ac_status); } &&
41735          { ac_try='test -z "$ac_c_werror_flag"
41736                          || test ! -s conftest.err'
41737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41738   (eval $ac_try) 2>&5
41739   ac_status=$?
41740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41741   (exit $ac_status); }; } &&
41742          { ac_try='test -s conftest$ac_exeext'
41743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41744   (eval $ac_try) 2>&5
41745   ac_status=$?
41746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41747   (exit $ac_status); }; }; then
41748   ol_cv_db_db=yes
41749 else
41750   echo "$as_me: failed program was:" >&5
41751 sed 's/^/| /' conftest.$ac_ext >&5
41752
41753 ol_cv_db_db=no
41754 fi
41755 rm -f conftest.err conftest.$ac_objext \
41756       conftest$ac_exeext conftest.$ac_ext
41757
41758         LIBS="$ol_LIBS"
41759
41760 fi
41761 echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
41762 echo "${ECHO_T}$ol_cv_db_db" >&6
41763
41764         if test $ol_cv_db_db = yes ; then
41765                 ol_cv_lib_db=-ldb
41766         fi
41767 fi
41768
41769 if test $ol_cv_lib_db = no ; then
41770         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb41)" >&5
41771 echo $ECHO_N "checking for Berkeley DB link (-ldb41)... $ECHO_C" >&6
41772 if test "${ol_cv_db_db41+set}" = set; then
41773   echo $ECHO_N "(cached) $ECHO_C" >&6
41774 else
41775
41776         ol_DB_LIB=-ldb41
41777         ol_LIBS=$LIBS
41778         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41779
41780         cat >conftest.$ac_ext <<_ACEOF
41781 /* confdefs.h.  */
41782 _ACEOF
41783 cat confdefs.h >>conftest.$ac_ext
41784 cat >>conftest.$ac_ext <<_ACEOF
41785 /* end confdefs.h.  */
41786
41787 #ifdef HAVE_DB_185_H
41788 # include <db_185.h>
41789 #else
41790 # include <db.h>
41791 #endif
41792
41793 #ifndef DB_VERSION_MAJOR
41794 # define DB_VERSION_MAJOR 1
41795 #endif
41796
41797 #ifndef NULL
41798 #define NULL ((void*)0)
41799 #endif
41800
41801 int
41802 main ()
41803 {
41804
41805 #if DB_VERSION_MAJOR > 1
41806         {
41807                 char *version;
41808                 int major, minor, patch;
41809
41810                 version = db_version( &major, &minor, &patch );
41811
41812                 if( major != DB_VERSION_MAJOR ||
41813                         minor < DB_VERSION_MINOR )
41814                 {
41815                         printf("Berkeley DB version mismatch\n"
41816                                 "\theader: %s\n\tlibrary: %s\n",
41817                                 DB_VERSION_STRING, version);
41818                         return 1;
41819                 }
41820         }
41821 #endif
41822
41823 #if DB_VERSION_MAJOR > 2
41824         db_env_create( NULL, 0 );
41825 #elif DB_VERSION_MAJOR > 1
41826         db_appexit( NULL );
41827 #else
41828         (void) dbopen( NULL, 0, 0, 0, NULL);
41829 #endif
41830
41831   ;
41832   return 0;
41833 }
41834 _ACEOF
41835 rm -f conftest.$ac_objext conftest$ac_exeext
41836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41837   (eval $ac_link) 2>conftest.er1
41838   ac_status=$?
41839   grep -v '^ *+' conftest.er1 >conftest.err
41840   rm -f conftest.er1
41841   cat conftest.err >&5
41842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41843   (exit $ac_status); } &&
41844          { ac_try='test -z "$ac_c_werror_flag"
41845                          || test ! -s conftest.err'
41846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41847   (eval $ac_try) 2>&5
41848   ac_status=$?
41849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41850   (exit $ac_status); }; } &&
41851          { ac_try='test -s conftest$ac_exeext'
41852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41853   (eval $ac_try) 2>&5
41854   ac_status=$?
41855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41856   (exit $ac_status); }; }; then
41857   ol_cv_db_db41=yes
41858 else
41859   echo "$as_me: failed program was:" >&5
41860 sed 's/^/| /' conftest.$ac_ext >&5
41861
41862 ol_cv_db_db41=no
41863 fi
41864 rm -f conftest.err conftest.$ac_objext \
41865       conftest$ac_exeext conftest.$ac_ext
41866
41867         LIBS="$ol_LIBS"
41868
41869 fi
41870 echo "$as_me:$LINENO: result: $ol_cv_db_db41" >&5
41871 echo "${ECHO_T}$ol_cv_db_db41" >&6
41872
41873         if test $ol_cv_db_db41 = yes ; then
41874                 ol_cv_lib_db=-ldb41
41875         fi
41876 fi
41877
41878 if test $ol_cv_lib_db = no ; then
41879         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-41)" >&5
41880 echo $ECHO_N "checking for Berkeley DB link (-ldb-41)... $ECHO_C" >&6
41881 if test "${ol_cv_db_db_41+set}" = set; then
41882   echo $ECHO_N "(cached) $ECHO_C" >&6
41883 else
41884
41885         ol_DB_LIB=-ldb-41
41886         ol_LIBS=$LIBS
41887         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41888
41889         cat >conftest.$ac_ext <<_ACEOF
41890 /* confdefs.h.  */
41891 _ACEOF
41892 cat confdefs.h >>conftest.$ac_ext
41893 cat >>conftest.$ac_ext <<_ACEOF
41894 /* end confdefs.h.  */
41895
41896 #ifdef HAVE_DB_185_H
41897 # include <db_185.h>
41898 #else
41899 # include <db.h>
41900 #endif
41901
41902 #ifndef DB_VERSION_MAJOR
41903 # define DB_VERSION_MAJOR 1
41904 #endif
41905
41906 #ifndef NULL
41907 #define NULL ((void*)0)
41908 #endif
41909
41910 int
41911 main ()
41912 {
41913
41914 #if DB_VERSION_MAJOR > 1
41915         {
41916                 char *version;
41917                 int major, minor, patch;
41918
41919                 version = db_version( &major, &minor, &patch );
41920
41921                 if( major != DB_VERSION_MAJOR ||
41922                         minor < DB_VERSION_MINOR )
41923                 {
41924                         printf("Berkeley DB version mismatch\n"
41925                                 "\theader: %s\n\tlibrary: %s\n",
41926                                 DB_VERSION_STRING, version);
41927                         return 1;
41928                 }
41929         }
41930 #endif
41931
41932 #if DB_VERSION_MAJOR > 2
41933         db_env_create( NULL, 0 );
41934 #elif DB_VERSION_MAJOR > 1
41935         db_appexit( NULL );
41936 #else
41937         (void) dbopen( NULL, 0, 0, 0, NULL);
41938 #endif
41939
41940   ;
41941   return 0;
41942 }
41943 _ACEOF
41944 rm -f conftest.$ac_objext conftest$ac_exeext
41945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41946   (eval $ac_link) 2>conftest.er1
41947   ac_status=$?
41948   grep -v '^ *+' conftest.er1 >conftest.err
41949   rm -f conftest.er1
41950   cat conftest.err >&5
41951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41952   (exit $ac_status); } &&
41953          { ac_try='test -z "$ac_c_werror_flag"
41954                          || test ! -s conftest.err'
41955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41956   (eval $ac_try) 2>&5
41957   ac_status=$?
41958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41959   (exit $ac_status); }; } &&
41960          { ac_try='test -s conftest$ac_exeext'
41961   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41962   (eval $ac_try) 2>&5
41963   ac_status=$?
41964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41965   (exit $ac_status); }; }; then
41966   ol_cv_db_db_41=yes
41967 else
41968   echo "$as_me: failed program was:" >&5
41969 sed 's/^/| /' conftest.$ac_ext >&5
41970
41971 ol_cv_db_db_41=no
41972 fi
41973 rm -f conftest.err conftest.$ac_objext \
41974       conftest$ac_exeext conftest.$ac_ext
41975
41976         LIBS="$ol_LIBS"
41977
41978 fi
41979 echo "$as_me:$LINENO: result: $ol_cv_db_db_41" >&5
41980 echo "${ECHO_T}$ol_cv_db_db_41" >&6
41981
41982         if test $ol_cv_db_db_41 = yes ; then
41983                 ol_cv_lib_db=-ldb-41
41984         fi
41985 fi
41986
41987 if test $ol_cv_lib_db = no ; then
41988         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.1)" >&5
41989 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.1)... $ECHO_C" >&6
41990 if test "${ol_cv_db_db_4_dot_1+set}" = set; then
41991   echo $ECHO_N "(cached) $ECHO_C" >&6
41992 else
41993
41994         ol_DB_LIB=-ldb-4.1
41995         ol_LIBS=$LIBS
41996         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41997
41998         cat >conftest.$ac_ext <<_ACEOF
41999 /* confdefs.h.  */
42000 _ACEOF
42001 cat confdefs.h >>conftest.$ac_ext
42002 cat >>conftest.$ac_ext <<_ACEOF
42003 /* end confdefs.h.  */
42004
42005 #ifdef HAVE_DB_185_H
42006 # include <db_185.h>
42007 #else
42008 # include <db.h>
42009 #endif
42010
42011 #ifndef DB_VERSION_MAJOR
42012 # define DB_VERSION_MAJOR 1
42013 #endif
42014
42015 #ifndef NULL
42016 #define NULL ((void*)0)
42017 #endif
42018
42019 int
42020 main ()
42021 {
42022
42023 #if DB_VERSION_MAJOR > 1
42024         {
42025                 char *version;
42026                 int major, minor, patch;
42027
42028                 version = db_version( &major, &minor, &patch );
42029
42030                 if( major != DB_VERSION_MAJOR ||
42031                         minor < DB_VERSION_MINOR )
42032                 {
42033                         printf("Berkeley DB version mismatch\n"
42034                                 "\theader: %s\n\tlibrary: %s\n",
42035                                 DB_VERSION_STRING, version);
42036                         return 1;
42037                 }
42038         }
42039 #endif
42040
42041 #if DB_VERSION_MAJOR > 2
42042         db_env_create( NULL, 0 );
42043 #elif DB_VERSION_MAJOR > 1
42044         db_appexit( NULL );
42045 #else
42046         (void) dbopen( NULL, 0, 0, 0, NULL);
42047 #endif
42048
42049   ;
42050   return 0;
42051 }
42052 _ACEOF
42053 rm -f conftest.$ac_objext conftest$ac_exeext
42054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42055   (eval $ac_link) 2>conftest.er1
42056   ac_status=$?
42057   grep -v '^ *+' conftest.er1 >conftest.err
42058   rm -f conftest.er1
42059   cat conftest.err >&5
42060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42061   (exit $ac_status); } &&
42062          { ac_try='test -z "$ac_c_werror_flag"
42063                          || test ! -s conftest.err'
42064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42065   (eval $ac_try) 2>&5
42066   ac_status=$?
42067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42068   (exit $ac_status); }; } &&
42069          { ac_try='test -s conftest$ac_exeext'
42070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42071   (eval $ac_try) 2>&5
42072   ac_status=$?
42073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42074   (exit $ac_status); }; }; then
42075   ol_cv_db_db_4_dot_1=yes
42076 else
42077   echo "$as_me: failed program was:" >&5
42078 sed 's/^/| /' conftest.$ac_ext >&5
42079
42080 ol_cv_db_db_4_dot_1=no
42081 fi
42082 rm -f conftest.err conftest.$ac_objext \
42083       conftest$ac_exeext conftest.$ac_ext
42084
42085         LIBS="$ol_LIBS"
42086
42087 fi
42088 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_1" >&5
42089 echo "${ECHO_T}$ol_cv_db_db_4_dot_1" >&6
42090
42091         if test $ol_cv_db_db_4_dot_1 = yes ; then
42092                 ol_cv_lib_db=-ldb-4.1
42093         fi
42094 fi
42095
42096 if test $ol_cv_lib_db = no ; then
42097         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-1)" >&5
42098 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-1)... $ECHO_C" >&6
42099 if test "${ol_cv_db_db_4_1+set}" = set; then
42100   echo $ECHO_N "(cached) $ECHO_C" >&6
42101 else
42102
42103         ol_DB_LIB=-ldb-4-1
42104         ol_LIBS=$LIBS
42105         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42106
42107         cat >conftest.$ac_ext <<_ACEOF
42108 /* confdefs.h.  */
42109 _ACEOF
42110 cat confdefs.h >>conftest.$ac_ext
42111 cat >>conftest.$ac_ext <<_ACEOF
42112 /* end confdefs.h.  */
42113
42114 #ifdef HAVE_DB_185_H
42115 # include <db_185.h>
42116 #else
42117 # include <db.h>
42118 #endif
42119
42120 #ifndef DB_VERSION_MAJOR
42121 # define DB_VERSION_MAJOR 1
42122 #endif
42123
42124 #ifndef NULL
42125 #define NULL ((void*)0)
42126 #endif
42127
42128 int
42129 main ()
42130 {
42131
42132 #if DB_VERSION_MAJOR > 1
42133         {
42134                 char *version;
42135                 int major, minor, patch;
42136
42137                 version = db_version( &major, &minor, &patch );
42138
42139                 if( major != DB_VERSION_MAJOR ||
42140                         minor < DB_VERSION_MINOR )
42141                 {
42142                         printf("Berkeley DB version mismatch\n"
42143                                 "\theader: %s\n\tlibrary: %s\n",
42144                                 DB_VERSION_STRING, version);
42145                         return 1;
42146                 }
42147         }
42148 #endif
42149
42150 #if DB_VERSION_MAJOR > 2
42151         db_env_create( NULL, 0 );
42152 #elif DB_VERSION_MAJOR > 1
42153         db_appexit( NULL );
42154 #else
42155         (void) dbopen( NULL, 0, 0, 0, NULL);
42156 #endif
42157
42158   ;
42159   return 0;
42160 }
42161 _ACEOF
42162 rm -f conftest.$ac_objext conftest$ac_exeext
42163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42164   (eval $ac_link) 2>conftest.er1
42165   ac_status=$?
42166   grep -v '^ *+' conftest.er1 >conftest.err
42167   rm -f conftest.er1
42168   cat conftest.err >&5
42169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42170   (exit $ac_status); } &&
42171          { ac_try='test -z "$ac_c_werror_flag"
42172                          || test ! -s conftest.err'
42173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42174   (eval $ac_try) 2>&5
42175   ac_status=$?
42176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42177   (exit $ac_status); }; } &&
42178          { ac_try='test -s conftest$ac_exeext'
42179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42180   (eval $ac_try) 2>&5
42181   ac_status=$?
42182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42183   (exit $ac_status); }; }; then
42184   ol_cv_db_db_4_1=yes
42185 else
42186   echo "$as_me: failed program was:" >&5
42187 sed 's/^/| /' conftest.$ac_ext >&5
42188
42189 ol_cv_db_db_4_1=no
42190 fi
42191 rm -f conftest.err conftest.$ac_objext \
42192       conftest$ac_exeext conftest.$ac_ext
42193
42194         LIBS="$ol_LIBS"
42195
42196 fi
42197 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_1" >&5
42198 echo "${ECHO_T}$ol_cv_db_db_4_1" >&6
42199
42200         if test $ol_cv_db_db_4_1 = yes ; then
42201                 ol_cv_lib_db=-ldb-4-1
42202         fi
42203 fi
42204
42205 if test $ol_cv_lib_db = no ; then
42206         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb3)" >&5
42207 echo $ECHO_N "checking for Berkeley DB link (-ldb3)... $ECHO_C" >&6
42208 if test "${ol_cv_db_db3+set}" = set; then
42209   echo $ECHO_N "(cached) $ECHO_C" >&6
42210 else
42211
42212         ol_DB_LIB=-ldb3
42213         ol_LIBS=$LIBS
42214         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42215
42216         cat >conftest.$ac_ext <<_ACEOF
42217 /* confdefs.h.  */
42218 _ACEOF
42219 cat confdefs.h >>conftest.$ac_ext
42220 cat >>conftest.$ac_ext <<_ACEOF
42221 /* end confdefs.h.  */
42222
42223 #ifdef HAVE_DB_185_H
42224 # include <db_185.h>
42225 #else
42226 # include <db.h>
42227 #endif
42228
42229 #ifndef DB_VERSION_MAJOR
42230 # define DB_VERSION_MAJOR 1
42231 #endif
42232
42233 #ifndef NULL
42234 #define NULL ((void*)0)
42235 #endif
42236
42237 int
42238 main ()
42239 {
42240
42241 #if DB_VERSION_MAJOR > 1
42242         {
42243                 char *version;
42244                 int major, minor, patch;
42245
42246                 version = db_version( &major, &minor, &patch );
42247
42248                 if( major != DB_VERSION_MAJOR ||
42249                         minor < DB_VERSION_MINOR )
42250                 {
42251                         printf("Berkeley DB version mismatch\n"
42252                                 "\theader: %s\n\tlibrary: %s\n",
42253                                 DB_VERSION_STRING, version);
42254                         return 1;
42255                 }
42256         }
42257 #endif
42258
42259 #if DB_VERSION_MAJOR > 2
42260         db_env_create( NULL, 0 );
42261 #elif DB_VERSION_MAJOR > 1
42262         db_appexit( NULL );
42263 #else
42264         (void) dbopen( NULL, 0, 0, 0, NULL);
42265 #endif
42266
42267   ;
42268   return 0;
42269 }
42270 _ACEOF
42271 rm -f conftest.$ac_objext conftest$ac_exeext
42272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42273   (eval $ac_link) 2>conftest.er1
42274   ac_status=$?
42275   grep -v '^ *+' conftest.er1 >conftest.err
42276   rm -f conftest.er1
42277   cat conftest.err >&5
42278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42279   (exit $ac_status); } &&
42280          { ac_try='test -z "$ac_c_werror_flag"
42281                          || test ! -s conftest.err'
42282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42283   (eval $ac_try) 2>&5
42284   ac_status=$?
42285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42286   (exit $ac_status); }; } &&
42287          { ac_try='test -s conftest$ac_exeext'
42288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42289   (eval $ac_try) 2>&5
42290   ac_status=$?
42291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42292   (exit $ac_status); }; }; then
42293   ol_cv_db_db3=yes
42294 else
42295   echo "$as_me: failed program was:" >&5
42296 sed 's/^/| /' conftest.$ac_ext >&5
42297
42298 ol_cv_db_db3=no
42299 fi
42300 rm -f conftest.err conftest.$ac_objext \
42301       conftest$ac_exeext conftest.$ac_ext
42302
42303         LIBS="$ol_LIBS"
42304
42305 fi
42306 echo "$as_me:$LINENO: result: $ol_cv_db_db3" >&5
42307 echo "${ECHO_T}$ol_cv_db_db3" >&6
42308
42309         if test $ol_cv_db_db3 = yes ; then
42310                 ol_cv_lib_db=-ldb3
42311         fi
42312 fi
42313
42314 if test $ol_cv_lib_db = no ; then
42315         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-3)" >&5
42316 echo $ECHO_N "checking for Berkeley DB link (-ldb-3)... $ECHO_C" >&6
42317 if test "${ol_cv_db_db_3+set}" = set; then
42318   echo $ECHO_N "(cached) $ECHO_C" >&6
42319 else
42320
42321         ol_DB_LIB=-ldb-3
42322         ol_LIBS=$LIBS
42323         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42324
42325         cat >conftest.$ac_ext <<_ACEOF
42326 /* confdefs.h.  */
42327 _ACEOF
42328 cat confdefs.h >>conftest.$ac_ext
42329 cat >>conftest.$ac_ext <<_ACEOF
42330 /* end confdefs.h.  */
42331
42332 #ifdef HAVE_DB_185_H
42333 # include <db_185.h>
42334 #else
42335 # include <db.h>
42336 #endif
42337
42338 #ifndef DB_VERSION_MAJOR
42339 # define DB_VERSION_MAJOR 1
42340 #endif
42341
42342 #ifndef NULL
42343 #define NULL ((void*)0)
42344 #endif
42345
42346 int
42347 main ()
42348 {
42349
42350 #if DB_VERSION_MAJOR > 1
42351         {
42352                 char *version;
42353                 int major, minor, patch;
42354
42355                 version = db_version( &major, &minor, &patch );
42356
42357                 if( major != DB_VERSION_MAJOR ||
42358                         minor < DB_VERSION_MINOR )
42359                 {
42360                         printf("Berkeley DB version mismatch\n"
42361                                 "\theader: %s\n\tlibrary: %s\n",
42362                                 DB_VERSION_STRING, version);
42363                         return 1;
42364                 }
42365         }
42366 #endif
42367
42368 #if DB_VERSION_MAJOR > 2
42369         db_env_create( NULL, 0 );
42370 #elif DB_VERSION_MAJOR > 1
42371         db_appexit( NULL );
42372 #else
42373         (void) dbopen( NULL, 0, 0, 0, NULL);
42374 #endif
42375
42376   ;
42377   return 0;
42378 }
42379 _ACEOF
42380 rm -f conftest.$ac_objext conftest$ac_exeext
42381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42382   (eval $ac_link) 2>conftest.er1
42383   ac_status=$?
42384   grep -v '^ *+' conftest.er1 >conftest.err
42385   rm -f conftest.er1
42386   cat conftest.err >&5
42387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42388   (exit $ac_status); } &&
42389          { ac_try='test -z "$ac_c_werror_flag"
42390                          || test ! -s conftest.err'
42391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42392   (eval $ac_try) 2>&5
42393   ac_status=$?
42394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42395   (exit $ac_status); }; } &&
42396          { ac_try='test -s conftest$ac_exeext'
42397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42398   (eval $ac_try) 2>&5
42399   ac_status=$?
42400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42401   (exit $ac_status); }; }; then
42402   ol_cv_db_db_3=yes
42403 else
42404   echo "$as_me: failed program was:" >&5
42405 sed 's/^/| /' conftest.$ac_ext >&5
42406
42407 ol_cv_db_db_3=no
42408 fi
42409 rm -f conftest.err conftest.$ac_objext \
42410       conftest$ac_exeext conftest.$ac_ext
42411
42412         LIBS="$ol_LIBS"
42413
42414 fi
42415 echo "$as_me:$LINENO: result: $ol_cv_db_db_3" >&5
42416 echo "${ECHO_T}$ol_cv_db_db_3" >&6
42417
42418         if test $ol_cv_db_db_3 = yes ; then
42419                 ol_cv_lib_db=-ldb-3
42420         fi
42421 fi
42422
42423 if test $ol_cv_lib_db = no ; then
42424         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb2)" >&5
42425 echo $ECHO_N "checking for Berkeley DB link (-ldb2)... $ECHO_C" >&6
42426 if test "${ol_cv_db_db2+set}" = set; then
42427   echo $ECHO_N "(cached) $ECHO_C" >&6
42428 else
42429
42430         ol_DB_LIB=-ldb2
42431         ol_LIBS=$LIBS
42432         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42433
42434         cat >conftest.$ac_ext <<_ACEOF
42435 /* confdefs.h.  */
42436 _ACEOF
42437 cat confdefs.h >>conftest.$ac_ext
42438 cat >>conftest.$ac_ext <<_ACEOF
42439 /* end confdefs.h.  */
42440
42441 #ifdef HAVE_DB_185_H
42442 # include <db_185.h>
42443 #else
42444 # include <db.h>
42445 #endif
42446
42447 #ifndef DB_VERSION_MAJOR
42448 # define DB_VERSION_MAJOR 1
42449 #endif
42450
42451 #ifndef NULL
42452 #define NULL ((void*)0)
42453 #endif
42454
42455 int
42456 main ()
42457 {
42458
42459 #if DB_VERSION_MAJOR > 1
42460         {
42461                 char *version;
42462                 int major, minor, patch;
42463
42464                 version = db_version( &major, &minor, &patch );
42465
42466                 if( major != DB_VERSION_MAJOR ||
42467                         minor < DB_VERSION_MINOR )
42468                 {
42469                         printf("Berkeley DB version mismatch\n"
42470                                 "\theader: %s\n\tlibrary: %s\n",
42471                                 DB_VERSION_STRING, version);
42472                         return 1;
42473                 }
42474         }
42475 #endif
42476
42477 #if DB_VERSION_MAJOR > 2
42478         db_env_create( NULL, 0 );
42479 #elif DB_VERSION_MAJOR > 1
42480         db_appexit( NULL );
42481 #else
42482         (void) dbopen( NULL, 0, 0, 0, NULL);
42483 #endif
42484
42485   ;
42486   return 0;
42487 }
42488 _ACEOF
42489 rm -f conftest.$ac_objext conftest$ac_exeext
42490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42491   (eval $ac_link) 2>conftest.er1
42492   ac_status=$?
42493   grep -v '^ *+' conftest.er1 >conftest.err
42494   rm -f conftest.er1
42495   cat conftest.err >&5
42496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42497   (exit $ac_status); } &&
42498          { ac_try='test -z "$ac_c_werror_flag"
42499                          || test ! -s conftest.err'
42500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42501   (eval $ac_try) 2>&5
42502   ac_status=$?
42503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42504   (exit $ac_status); }; } &&
42505          { ac_try='test -s conftest$ac_exeext'
42506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42507   (eval $ac_try) 2>&5
42508   ac_status=$?
42509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42510   (exit $ac_status); }; }; then
42511   ol_cv_db_db2=yes
42512 else
42513   echo "$as_me: failed program was:" >&5
42514 sed 's/^/| /' conftest.$ac_ext >&5
42515
42516 ol_cv_db_db2=no
42517 fi
42518 rm -f conftest.err conftest.$ac_objext \
42519       conftest$ac_exeext conftest.$ac_ext
42520
42521         LIBS="$ol_LIBS"
42522
42523 fi
42524 echo "$as_me:$LINENO: result: $ol_cv_db_db2" >&5
42525 echo "${ECHO_T}$ol_cv_db_db2" >&6
42526
42527         if test $ol_cv_db_db2 = yes ; then
42528                 ol_cv_lib_db=-ldb2
42529         fi
42530 fi
42531
42532 if test $ol_cv_lib_db = no ; then
42533         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-2)" >&5
42534 echo $ECHO_N "checking for Berkeley DB link (-ldb-2)... $ECHO_C" >&6
42535 if test "${ol_cv_db_db_2+set}" = set; then
42536   echo $ECHO_N "(cached) $ECHO_C" >&6
42537 else
42538
42539         ol_DB_LIB=-ldb-2
42540         ol_LIBS=$LIBS
42541         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42542
42543         cat >conftest.$ac_ext <<_ACEOF
42544 /* confdefs.h.  */
42545 _ACEOF
42546 cat confdefs.h >>conftest.$ac_ext
42547 cat >>conftest.$ac_ext <<_ACEOF
42548 /* end confdefs.h.  */
42549
42550 #ifdef HAVE_DB_185_H
42551 # include <db_185.h>
42552 #else
42553 # include <db.h>
42554 #endif
42555
42556 #ifndef DB_VERSION_MAJOR
42557 # define DB_VERSION_MAJOR 1
42558 #endif
42559
42560 #ifndef NULL
42561 #define NULL ((void*)0)
42562 #endif
42563
42564 int
42565 main ()
42566 {
42567
42568 #if DB_VERSION_MAJOR > 1
42569         {
42570                 char *version;
42571                 int major, minor, patch;
42572
42573                 version = db_version( &major, &minor, &patch );
42574
42575                 if( major != DB_VERSION_MAJOR ||
42576                         minor < DB_VERSION_MINOR )
42577                 {
42578                         printf("Berkeley DB version mismatch\n"
42579                                 "\theader: %s\n\tlibrary: %s\n",
42580                                 DB_VERSION_STRING, version);
42581                         return 1;
42582                 }
42583         }
42584 #endif
42585
42586 #if DB_VERSION_MAJOR > 2
42587         db_env_create( NULL, 0 );
42588 #elif DB_VERSION_MAJOR > 1
42589         db_appexit( NULL );
42590 #else
42591         (void) dbopen( NULL, 0, 0, 0, NULL);
42592 #endif
42593
42594   ;
42595   return 0;
42596 }
42597 _ACEOF
42598 rm -f conftest.$ac_objext conftest$ac_exeext
42599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42600   (eval $ac_link) 2>conftest.er1
42601   ac_status=$?
42602   grep -v '^ *+' conftest.er1 >conftest.err
42603   rm -f conftest.er1
42604   cat conftest.err >&5
42605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42606   (exit $ac_status); } &&
42607          { ac_try='test -z "$ac_c_werror_flag"
42608                          || test ! -s conftest.err'
42609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42610   (eval $ac_try) 2>&5
42611   ac_status=$?
42612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42613   (exit $ac_status); }; } &&
42614          { ac_try='test -s conftest$ac_exeext'
42615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42616   (eval $ac_try) 2>&5
42617   ac_status=$?
42618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42619   (exit $ac_status); }; }; then
42620   ol_cv_db_db_2=yes
42621 else
42622   echo "$as_me: failed program was:" >&5
42623 sed 's/^/| /' conftest.$ac_ext >&5
42624
42625 ol_cv_db_db_2=no
42626 fi
42627 rm -f conftest.err conftest.$ac_objext \
42628       conftest$ac_exeext conftest.$ac_ext
42629
42630         LIBS="$ol_LIBS"
42631
42632 fi
42633 echo "$as_me:$LINENO: result: $ol_cv_db_db_2" >&5
42634 echo "${ECHO_T}$ol_cv_db_db_2" >&6
42635
42636         if test $ol_cv_db_db_2 = yes ; then
42637                 ol_cv_lib_db=-ldb-2
42638         fi
42639 fi
42640
42641 if test $ol_cv_lib_db = no ; then
42642         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb1)" >&5
42643 echo $ECHO_N "checking for Berkeley DB link (-ldb1)... $ECHO_C" >&6
42644 if test "${ol_cv_db_db1+set}" = set; then
42645   echo $ECHO_N "(cached) $ECHO_C" >&6
42646 else
42647
42648         ol_DB_LIB=-ldb1
42649         ol_LIBS=$LIBS
42650         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42651
42652         cat >conftest.$ac_ext <<_ACEOF
42653 /* confdefs.h.  */
42654 _ACEOF
42655 cat confdefs.h >>conftest.$ac_ext
42656 cat >>conftest.$ac_ext <<_ACEOF
42657 /* end confdefs.h.  */
42658
42659 #ifdef HAVE_DB_185_H
42660 # include <db_185.h>
42661 #else
42662 # include <db.h>
42663 #endif
42664
42665 #ifndef DB_VERSION_MAJOR
42666 # define DB_VERSION_MAJOR 1
42667 #endif
42668
42669 #ifndef NULL
42670 #define NULL ((void*)0)
42671 #endif
42672
42673 int
42674 main ()
42675 {
42676
42677 #if DB_VERSION_MAJOR > 1
42678         {
42679                 char *version;
42680                 int major, minor, patch;
42681
42682                 version = db_version( &major, &minor, &patch );
42683
42684                 if( major != DB_VERSION_MAJOR ||
42685                         minor < DB_VERSION_MINOR )
42686                 {
42687                         printf("Berkeley DB version mismatch\n"
42688                                 "\theader: %s\n\tlibrary: %s\n",
42689                                 DB_VERSION_STRING, version);
42690                         return 1;
42691                 }
42692         }
42693 #endif
42694
42695 #if DB_VERSION_MAJOR > 2
42696         db_env_create( NULL, 0 );
42697 #elif DB_VERSION_MAJOR > 1
42698         db_appexit( NULL );
42699 #else
42700         (void) dbopen( NULL, 0, 0, 0, NULL);
42701 #endif
42702
42703   ;
42704   return 0;
42705 }
42706 _ACEOF
42707 rm -f conftest.$ac_objext conftest$ac_exeext
42708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42709   (eval $ac_link) 2>conftest.er1
42710   ac_status=$?
42711   grep -v '^ *+' conftest.er1 >conftest.err
42712   rm -f conftest.er1
42713   cat conftest.err >&5
42714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42715   (exit $ac_status); } &&
42716          { ac_try='test -z "$ac_c_werror_flag"
42717                          || test ! -s conftest.err'
42718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42719   (eval $ac_try) 2>&5
42720   ac_status=$?
42721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42722   (exit $ac_status); }; } &&
42723          { ac_try='test -s conftest$ac_exeext'
42724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42725   (eval $ac_try) 2>&5
42726   ac_status=$?
42727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42728   (exit $ac_status); }; }; then
42729   ol_cv_db_db1=yes
42730 else
42731   echo "$as_me: failed program was:" >&5
42732 sed 's/^/| /' conftest.$ac_ext >&5
42733
42734 ol_cv_db_db1=no
42735 fi
42736 rm -f conftest.err conftest.$ac_objext \
42737       conftest$ac_exeext conftest.$ac_ext
42738
42739         LIBS="$ol_LIBS"
42740
42741 fi
42742 echo "$as_me:$LINENO: result: $ol_cv_db_db1" >&5
42743 echo "${ECHO_T}$ol_cv_db_db1" >&6
42744
42745         if test $ol_cv_db_db1 = yes ; then
42746                 ol_cv_lib_db=-ldb1
42747         fi
42748 fi
42749
42750 if test $ol_cv_lib_db = no ; then
42751         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-1)" >&5
42752 echo $ECHO_N "checking for Berkeley DB link (-ldb-1)... $ECHO_C" >&6
42753 if test "${ol_cv_db_db_1+set}" = set; then
42754   echo $ECHO_N "(cached) $ECHO_C" >&6
42755 else
42756
42757         ol_DB_LIB=-ldb-1
42758         ol_LIBS=$LIBS
42759         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42760
42761         cat >conftest.$ac_ext <<_ACEOF
42762 /* confdefs.h.  */
42763 _ACEOF
42764 cat confdefs.h >>conftest.$ac_ext
42765 cat >>conftest.$ac_ext <<_ACEOF
42766 /* end confdefs.h.  */
42767
42768 #ifdef HAVE_DB_185_H
42769 # include <db_185.h>
42770 #else
42771 # include <db.h>
42772 #endif
42773
42774 #ifndef DB_VERSION_MAJOR
42775 # define DB_VERSION_MAJOR 1
42776 #endif
42777
42778 #ifndef NULL
42779 #define NULL ((void*)0)
42780 #endif
42781
42782 int
42783 main ()
42784 {
42785
42786 #if DB_VERSION_MAJOR > 1
42787         {
42788                 char *version;
42789                 int major, minor, patch;
42790
42791                 version = db_version( &major, &minor, &patch );
42792
42793                 if( major != DB_VERSION_MAJOR ||
42794                         minor < DB_VERSION_MINOR )
42795                 {
42796                         printf("Berkeley DB version mismatch\n"
42797                                 "\theader: %s\n\tlibrary: %s\n",
42798                                 DB_VERSION_STRING, version);
42799                         return 1;
42800                 }
42801         }
42802 #endif
42803
42804 #if DB_VERSION_MAJOR > 2
42805         db_env_create( NULL, 0 );
42806 #elif DB_VERSION_MAJOR > 1
42807         db_appexit( NULL );
42808 #else
42809         (void) dbopen( NULL, 0, 0, 0, NULL);
42810 #endif
42811
42812   ;
42813   return 0;
42814 }
42815 _ACEOF
42816 rm -f conftest.$ac_objext conftest$ac_exeext
42817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42818   (eval $ac_link) 2>conftest.er1
42819   ac_status=$?
42820   grep -v '^ *+' conftest.er1 >conftest.err
42821   rm -f conftest.er1
42822   cat conftest.err >&5
42823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42824   (exit $ac_status); } &&
42825          { ac_try='test -z "$ac_c_werror_flag"
42826                          || test ! -s conftest.err'
42827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42828   (eval $ac_try) 2>&5
42829   ac_status=$?
42830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42831   (exit $ac_status); }; } &&
42832          { ac_try='test -s conftest$ac_exeext'
42833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42834   (eval $ac_try) 2>&5
42835   ac_status=$?
42836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42837   (exit $ac_status); }; }; then
42838   ol_cv_db_db_1=yes
42839 else
42840   echo "$as_me: failed program was:" >&5
42841 sed 's/^/| /' conftest.$ac_ext >&5
42842
42843 ol_cv_db_db_1=no
42844 fi
42845 rm -f conftest.err conftest.$ac_objext \
42846       conftest$ac_exeext conftest.$ac_ext
42847
42848         LIBS="$ol_LIBS"
42849
42850 fi
42851 echo "$as_me:$LINENO: result: $ol_cv_db_db_1" >&5
42852 echo "${ECHO_T}$ol_cv_db_db_1" >&6
42853
42854         if test $ol_cv_db_db_1 = yes ; then
42855                 ol_cv_lib_db=-ldb-1
42856         fi
42857 fi
42858
42859
42860         if test "$ol_cv_lib_db" != no ; then
42861                 ol_cv_berkeley_db=yes
42862                 echo "$as_me:$LINENO: checking for Berkeley DB version match" >&5
42863 echo $ECHO_N "checking for Berkeley DB version match... $ECHO_C" >&6
42864 if test "${ol_cv_berkeley_db_version+set}" = set; then
42865   echo $ECHO_N "(cached) $ECHO_C" >&6
42866 else
42867
42868         ol_LIBS="$LIBS"
42869         LIBS="$LTHREAD_LIBS $LIBS"
42870         if test $ol_cv_lib_db != yes ; then
42871                 LIBS="$ol_cv_lib_db $LIBS"
42872         fi
42873
42874         if test "$cross_compiling" = yes; then
42875   ol_cv_berkeley_db_version=cross
42876 else
42877   cat >conftest.$ac_ext <<_ACEOF
42878 /* confdefs.h.  */
42879 _ACEOF
42880 cat confdefs.h >>conftest.$ac_ext
42881 cat >>conftest.$ac_ext <<_ACEOF
42882 /* end confdefs.h.  */
42883
42884 #ifdef HAVE_DB_185_H
42885         choke me;
42886 #else
42887 #include <db.h>
42888 #endif
42889 #ifndef DB_VERSION_MAJOR
42890 # define DB_VERSION_MAJOR 1
42891 #endif
42892 #ifndef NULL
42893 #define NULL ((void *)0)
42894 #endif
42895 main()
42896 {
42897 #if DB_VERSION_MAJOR > 1
42898         char *version;
42899         int major, minor, patch;
42900
42901         version = db_version( &major, &minor, &patch );
42902
42903         if( major != DB_VERSION_MAJOR ||
42904                 minor != DB_VERSION_MINOR ||
42905                 patch != DB_VERSION_PATCH )
42906         {
42907                 printf("Berkeley DB version mismatch\n"
42908                         "\theader: %s\n\tlibrary: %s\n",
42909                         DB_VERSION_STRING, version);
42910                 return 1;
42911         }
42912 #endif
42913
42914         return 0;
42915 }
42916 _ACEOF
42917 rm -f conftest$ac_exeext
42918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42919   (eval $ac_link) 2>&5
42920   ac_status=$?
42921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42922   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
42923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42924   (eval $ac_try) 2>&5
42925   ac_status=$?
42926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42927   (exit $ac_status); }; }; then
42928   ol_cv_berkeley_db_version=yes
42929 else
42930   echo "$as_me: program exited with status $ac_status" >&5
42931 echo "$as_me: failed program was:" >&5
42932 sed 's/^/| /' conftest.$ac_ext >&5
42933
42934 ( exit $ac_status )
42935 ol_cv_berkeley_db_version=no
42936 fi
42937 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
42938 fi
42939
42940         LIBS="$ol_LIBS"
42941
42942 fi
42943 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_version" >&5
42944 echo "${ECHO_T}$ol_cv_berkeley_db_version" >&6
42945
42946         if test $ol_cv_berkeley_db_version = no ; then
42947                 { { echo "$as_me:$LINENO: error: Berkeley DB version mismatch" >&5
42948 echo "$as_me: error: Berkeley DB version mismatch" >&2;}
42949    { (exit 1); exit 1; }; }
42950         fi
42951
42952                 echo "$as_me:$LINENO: checking for Berkeley DB thread support" >&5
42953 echo $ECHO_N "checking for Berkeley DB thread support... $ECHO_C" >&6
42954 if test "${ol_cv_berkeley_db_thread+set}" = set; then
42955   echo $ECHO_N "(cached) $ECHO_C" >&6
42956 else
42957
42958         ol_LIBS="$LIBS"
42959         LIBS="$LTHREAD_LIBS $LIBS"
42960         if test $ol_cv_lib_db != yes ; then
42961                 LIBS="$ol_cv_lib_db $LIBS"
42962         fi
42963
42964         if test "$cross_compiling" = yes; then
42965   ol_cv_berkeley_db_thread=cross
42966 else
42967   cat >conftest.$ac_ext <<_ACEOF
42968 /* confdefs.h.  */
42969 _ACEOF
42970 cat confdefs.h >>conftest.$ac_ext
42971 cat >>conftest.$ac_ext <<_ACEOF
42972 /* end confdefs.h.  */
42973
42974 #ifdef HAVE_DB_185_H
42975         choke me;
42976 #else
42977 #include <db.h>
42978 #endif
42979 #ifndef NULL
42980 #define NULL ((void *)0)
42981 #endif
42982 main()
42983 {
42984         int rc;
42985         u_int32_t flags = DB_CREATE |
42986 #ifdef DB_PRIVATE
42987                 DB_PRIVATE |
42988 #endif
42989                 DB_THREAD;
42990
42991 #if DB_VERSION_MAJOR > 2
42992         DB_ENV *env = NULL;
42993
42994         rc = db_env_create( &env, 0 );
42995
42996         flags |= DB_INIT_MPOOL;
42997 #ifdef DB_MPOOL_PRIVATE
42998         flags |= DB_MPOOL_PRIVATE;
42999 #endif
43000
43001         if( rc ) {
43002                 printf("BerkeleyDB: %s\n", db_strerror(rc) );
43003                 return rc;
43004         }
43005
43006 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
43007         rc = env->open( env, NULL, flags, 0 );
43008 #else
43009         rc = env->open( env, NULL, NULL, flags, 0 );
43010 #endif
43011
43012         if ( rc == 0 ) {
43013                 rc = env->close( env, 0 );
43014         }
43015
43016         if( rc ) {
43017                 printf("BerkeleyDB: %s\n", db_strerror(rc) );
43018                 return rc;
43019         }
43020
43021 #else
43022         DB_ENV env;
43023         memset( &env, '\0', sizeof(env) );
43024
43025         rc = db_appinit( NULL, NULL, &env, flags );
43026
43027         if( rc == 0 ) {
43028                 db_appexit( &env );
43029         }
43030
43031         unlink("__db_mpool.share");
43032         unlink("__db_lock.share");
43033 #endif
43034
43035         return rc;
43036 }
43037 _ACEOF
43038 rm -f conftest$ac_exeext
43039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43040   (eval $ac_link) 2>&5
43041   ac_status=$?
43042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43043   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
43044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43045   (eval $ac_try) 2>&5
43046   ac_status=$?
43047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43048   (exit $ac_status); }; }; then
43049   ol_cv_berkeley_db_thread=yes
43050 else
43051   echo "$as_me: program exited with status $ac_status" >&5
43052 echo "$as_me: failed program was:" >&5
43053 sed 's/^/| /' conftest.$ac_ext >&5
43054
43055 ( exit $ac_status )
43056 ol_cv_berkeley_db_thread=no
43057 fi
43058 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
43059 fi
43060
43061         LIBS="$ol_LIBS"
43062
43063 fi
43064 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_thread" >&5
43065 echo "${ECHO_T}$ol_cv_berkeley_db_thread" >&6
43066
43067         if test $ol_cv_berkeley_db_thread != no ; then
43068
43069 cat >>confdefs.h <<\_ACEOF
43070 #define HAVE_BERKELEY_DB_THREAD 1
43071 _ACEOF
43072
43073         fi
43074
43075         fi
43076 fi
43077
43078         fi
43079
43080         if test $ol_cv_berkeley_db != no ; then
43081
43082 cat >>confdefs.h <<\_ACEOF
43083 #define HAVE_BERKELEY_DB 1
43084 _ACEOF
43085
43086
43087                 ol_link_ldbm=berkeley
43088                 ol_with_ldbm_api=berkeley
43089
43090                 if test $ol_with_ldbm_type = hash ; then
43091
43092 cat >>confdefs.h <<\_ACEOF
43093 #define LDBM_USE_DBHASH 1
43094 _ACEOF
43095
43096                 else
43097
43098 cat >>confdefs.h <<\_ACEOF
43099 #define LDBM_USE_DBBTREE 1
43100 _ACEOF
43101
43102                 fi
43103
43104                                                 if test $ol_cv_lib_db != yes ; then
43105                         LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
43106                 fi
43107         fi
43108 fi
43109
43110 if test $ol_enable_bdb != no -o $ol_enable_hdb != no; then
43111         if test $ol_link_ldbm != berkeley ; then
43112                 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB not available" >&5
43113 echo "$as_me: error: BDB/HDB: BerkeleyDB not available" >&2;}
43114    { (exit 1); exit 1; }; }
43115         else
43116                 echo "$as_me:$LINENO: checking Berkeley DB version for BDB backend" >&5
43117 echo $ECHO_N "checking Berkeley DB version for BDB backend... $ECHO_C" >&6
43118 if test "${ol_cv_bdb_compat+set}" = set; then
43119   echo $ECHO_N "(cached) $ECHO_C" >&6
43120 else
43121
43122         cat >conftest.$ac_ext <<_ACEOF
43123 /* confdefs.h.  */
43124 _ACEOF
43125 cat confdefs.h >>conftest.$ac_ext
43126 cat >>conftest.$ac_ext <<_ACEOF
43127 /* end confdefs.h.  */
43128
43129 #include <db.h>
43130
43131  /* this check could be improved */
43132 #ifndef DB_VERSION_MAJOR
43133 #       define DB_VERSION_MAJOR 1
43134 #endif
43135 #ifndef DB_VERSION_MINOR
43136 #       define DB_VERSION_MINOR 0
43137 #endif
43138
43139 /* require 4.2 or later */
43140 #if (DB_VERSION_MAJOR >= 4) && (DB_VERSION_MINOR >= 2)
43141         __db_version_compat
43142 #endif
43143
43144 _ACEOF
43145 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43146   $EGREP "__db_version_compat" >/dev/null 2>&1; then
43147   ol_cv_bdb_compat=yes
43148 else
43149   ol_cv_bdb_compat=no
43150 fi
43151 rm -f conftest*
43152
43153 fi
43154 echo "$as_me:$LINENO: result: $ol_cv_bdb_compat" >&5
43155 echo "${ECHO_T}$ol_cv_bdb_compat" >&6
43156
43157
43158                 if test $ol_cv_bdb_compat != yes ; then
43159                         { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB version incompatible" >&5
43160 echo "$as_me: error: BDB/HDB: BerkeleyDB version incompatible" >&2;}
43161    { (exit 1); exit 1; }; }
43162                 fi
43163         fi
43164 fi
43165
43166 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
43167         { echo "$as_me:$LINENO: WARNING: Could not find LDBM with BTREE support" >&5
43168 echo "$as_me: WARNING: Could not find LDBM with BTREE support" >&2;}
43169         ol_with_ldbm_api=none
43170 fi
43171
43172 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
43173         echo "$as_me:$LINENO: checking for MDBM library" >&5
43174 echo $ECHO_N "checking for MDBM library... $ECHO_C" >&6
43175 if test "${ol_cv_lib_mdbm+set}" = set; then
43176   echo $ECHO_N "(cached) $ECHO_C" >&6
43177 else
43178         ol_LIBS="$LIBS"
43179         echo "$as_me:$LINENO: checking for mdbm_set_chain" >&5
43180 echo $ECHO_N "checking for mdbm_set_chain... $ECHO_C" >&6
43181 if test "${ac_cv_func_mdbm_set_chain+set}" = set; then
43182   echo $ECHO_N "(cached) $ECHO_C" >&6
43183 else
43184   cat >conftest.$ac_ext <<_ACEOF
43185 /* confdefs.h.  */
43186 _ACEOF
43187 cat confdefs.h >>conftest.$ac_ext
43188 cat >>conftest.$ac_ext <<_ACEOF
43189 /* end confdefs.h.  */
43190 /* Define mdbm_set_chain to an innocuous variant, in case <limits.h> declares mdbm_set_chain.
43191    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43192 #define mdbm_set_chain innocuous_mdbm_set_chain
43193
43194 /* System header to define __stub macros and hopefully few prototypes,
43195     which can conflict with char mdbm_set_chain (); below.
43196     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43197     <limits.h> exists even on freestanding compilers.  */
43198
43199 #ifdef __STDC__
43200 # include <limits.h>
43201 #else
43202 # include <assert.h>
43203 #endif
43204
43205 #undef mdbm_set_chain
43206
43207 /* Override any gcc2 internal prototype to avoid an error.  */
43208 #ifdef __cplusplus
43209 extern "C"
43210 {
43211 #endif
43212 /* We use char because int might match the return type of a gcc2
43213    builtin and then its argument prototype would still apply.  */
43214 char mdbm_set_chain ();
43215 /* The GNU C library defines this for functions which it implements
43216     to always fail with ENOSYS.  Some functions are actually named
43217     something starting with __ and the normal name is an alias.  */
43218 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
43219 choke me
43220 #else
43221 char (*f) () = mdbm_set_chain;
43222 #endif
43223 #ifdef __cplusplus
43224 }
43225 #endif
43226
43227 int
43228 main ()
43229 {
43230 return f != mdbm_set_chain;
43231   ;
43232   return 0;
43233 }
43234 _ACEOF
43235 rm -f conftest.$ac_objext conftest$ac_exeext
43236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43237   (eval $ac_link) 2>conftest.er1
43238   ac_status=$?
43239   grep -v '^ *+' conftest.er1 >conftest.err
43240   rm -f conftest.er1
43241   cat conftest.err >&5
43242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43243   (exit $ac_status); } &&
43244          { ac_try='test -z "$ac_c_werror_flag"
43245                          || test ! -s conftest.err'
43246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43247   (eval $ac_try) 2>&5
43248   ac_status=$?
43249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43250   (exit $ac_status); }; } &&
43251          { ac_try='test -s conftest$ac_exeext'
43252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43253   (eval $ac_try) 2>&5
43254   ac_status=$?
43255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43256   (exit $ac_status); }; }; then
43257   ac_cv_func_mdbm_set_chain=yes
43258 else
43259   echo "$as_me: failed program was:" >&5
43260 sed 's/^/| /' conftest.$ac_ext >&5
43261
43262 ac_cv_func_mdbm_set_chain=no
43263 fi
43264 rm -f conftest.err conftest.$ac_objext \
43265       conftest$ac_exeext conftest.$ac_ext
43266 fi
43267 echo "$as_me:$LINENO: result: $ac_cv_func_mdbm_set_chain" >&5
43268 echo "${ECHO_T}$ac_cv_func_mdbm_set_chain" >&6
43269 if test $ac_cv_func_mdbm_set_chain = yes; then
43270   ol_cv_lib_mdbm=yes
43271 else
43272
43273                 echo "$as_me:$LINENO: checking for mdbm_set_chain in -lmdbm" >&5
43274 echo $ECHO_N "checking for mdbm_set_chain in -lmdbm... $ECHO_C" >&6
43275 if test "${ac_cv_lib_mdbm_mdbm_set_chain+set}" = set; then
43276   echo $ECHO_N "(cached) $ECHO_C" >&6
43277 else
43278   ac_check_lib_save_LIBS=$LIBS
43279 LIBS="-lmdbm  $LIBS"
43280 cat >conftest.$ac_ext <<_ACEOF
43281 /* confdefs.h.  */
43282 _ACEOF
43283 cat confdefs.h >>conftest.$ac_ext
43284 cat >>conftest.$ac_ext <<_ACEOF
43285 /* end confdefs.h.  */
43286
43287 /* Override any gcc2 internal prototype to avoid an error.  */
43288 #ifdef __cplusplus
43289 extern "C"
43290 #endif
43291 /* We use char because int might match the return type of a gcc2
43292    builtin and then its argument prototype would still apply.  */
43293 char mdbm_set_chain ();
43294 int
43295 main ()
43296 {
43297 mdbm_set_chain ();
43298   ;
43299   return 0;
43300 }
43301 _ACEOF
43302 rm -f conftest.$ac_objext conftest$ac_exeext
43303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43304   (eval $ac_link) 2>conftest.er1
43305   ac_status=$?
43306   grep -v '^ *+' conftest.er1 >conftest.err
43307   rm -f conftest.er1
43308   cat conftest.err >&5
43309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43310   (exit $ac_status); } &&
43311          { ac_try='test -z "$ac_c_werror_flag"
43312                          || test ! -s conftest.err'
43313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43314   (eval $ac_try) 2>&5
43315   ac_status=$?
43316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43317   (exit $ac_status); }; } &&
43318          { ac_try='test -s conftest$ac_exeext'
43319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43320   (eval $ac_try) 2>&5
43321   ac_status=$?
43322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43323   (exit $ac_status); }; }; then
43324   ac_cv_lib_mdbm_mdbm_set_chain=yes
43325 else
43326   echo "$as_me: failed program was:" >&5
43327 sed 's/^/| /' conftest.$ac_ext >&5
43328
43329 ac_cv_lib_mdbm_mdbm_set_chain=no
43330 fi
43331 rm -f conftest.err conftest.$ac_objext \
43332       conftest$ac_exeext conftest.$ac_ext
43333 LIBS=$ac_check_lib_save_LIBS
43334 fi
43335 echo "$as_me:$LINENO: result: $ac_cv_lib_mdbm_mdbm_set_chain" >&5
43336 echo "${ECHO_T}$ac_cv_lib_mdbm_mdbm_set_chain" >&6
43337 if test $ac_cv_lib_mdbm_mdbm_set_chain = yes; then
43338   ol_cv_lib_mdbm=-lmdbm
43339 else
43340   ol_cv_lib_mdbm=no
43341 fi
43342
43343
43344 fi
43345
43346         LIBS="$ol_LIBS"
43347
43348 fi
43349 echo "$as_me:$LINENO: result: $ol_cv_lib_mdbm" >&5
43350 echo "${ECHO_T}$ol_cv_lib_mdbm" >&6
43351
43352
43353
43354 for ac_header in mdbm.h
43355 do
43356 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43357 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43358   echo "$as_me:$LINENO: checking for $ac_header" >&5
43359 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43360 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43361   echo $ECHO_N "(cached) $ECHO_C" >&6
43362 fi
43363 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43364 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43365 else
43366   # Is the header compilable?
43367 echo "$as_me:$LINENO: checking $ac_header usability" >&5
43368 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
43369 cat >conftest.$ac_ext <<_ACEOF
43370 /* confdefs.h.  */
43371 _ACEOF
43372 cat confdefs.h >>conftest.$ac_ext
43373 cat >>conftest.$ac_ext <<_ACEOF
43374 /* end confdefs.h.  */
43375 $ac_includes_default
43376 #include <$ac_header>
43377 _ACEOF
43378 rm -f conftest.$ac_objext
43379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43380   (eval $ac_compile) 2>conftest.er1
43381   ac_status=$?
43382   grep -v '^ *+' conftest.er1 >conftest.err
43383   rm -f conftest.er1
43384   cat conftest.err >&5
43385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43386   (exit $ac_status); } &&
43387          { ac_try='test -z "$ac_c_werror_flag"
43388                          || test ! -s conftest.err'
43389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43390   (eval $ac_try) 2>&5
43391   ac_status=$?
43392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43393   (exit $ac_status); }; } &&
43394          { ac_try='test -s conftest.$ac_objext'
43395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43396   (eval $ac_try) 2>&5
43397   ac_status=$?
43398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43399   (exit $ac_status); }; }; then
43400   ac_header_compiler=yes
43401 else
43402   echo "$as_me: failed program was:" >&5
43403 sed 's/^/| /' conftest.$ac_ext >&5
43404
43405 ac_header_compiler=no
43406 fi
43407 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43408 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43409 echo "${ECHO_T}$ac_header_compiler" >&6
43410
43411 # Is the header present?
43412 echo "$as_me:$LINENO: checking $ac_header presence" >&5
43413 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
43414 cat >conftest.$ac_ext <<_ACEOF
43415 /* confdefs.h.  */
43416 _ACEOF
43417 cat confdefs.h >>conftest.$ac_ext
43418 cat >>conftest.$ac_ext <<_ACEOF
43419 /* end confdefs.h.  */
43420 #include <$ac_header>
43421 _ACEOF
43422 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
43423   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
43424   ac_status=$?
43425   grep -v '^ *+' conftest.er1 >conftest.err
43426   rm -f conftest.er1
43427   cat conftest.err >&5
43428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43429   (exit $ac_status); } >/dev/null; then
43430   if test -s conftest.err; then
43431     ac_cpp_err=$ac_c_preproc_warn_flag
43432     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
43433   else
43434     ac_cpp_err=
43435   fi
43436 else
43437   ac_cpp_err=yes
43438 fi
43439 if test -z "$ac_cpp_err"; then
43440   ac_header_preproc=yes
43441 else
43442   echo "$as_me: failed program was:" >&5
43443 sed 's/^/| /' conftest.$ac_ext >&5
43444
43445   ac_header_preproc=no
43446 fi
43447 rm -f conftest.err conftest.$ac_ext
43448 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43449 echo "${ECHO_T}$ac_header_preproc" >&6
43450
43451 # So?  What about this header?
43452 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43453   yes:no: )
43454     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
43455 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
43456     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
43457 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
43458     ac_header_preproc=yes
43459     ;;
43460   no:yes:* )
43461     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
43462 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
43463     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
43464 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
43465     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
43466 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
43467     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
43468 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
43469     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
43470 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
43471     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
43472 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
43473     (
43474       cat <<\_ASBOX
43475 ## ------------------------------------------ ##
43476 ## Report this to the AC_PACKAGE_NAME lists.  ##
43477 ## ------------------------------------------ ##
43478 _ASBOX
43479     ) |
43480       sed "s/^/$as_me: WARNING:     /" >&2
43481     ;;
43482 esac
43483 echo "$as_me:$LINENO: checking for $ac_header" >&5
43484 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43485 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43486   echo $ECHO_N "(cached) $ECHO_C" >&6
43487 else
43488   eval "$as_ac_Header=\$ac_header_preproc"
43489 fi
43490 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43491 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43492
43493 fi
43494 if test `eval echo '${'$as_ac_Header'}'` = yes; then
43495   cat >>confdefs.h <<_ACEOF
43496 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
43497 _ACEOF
43498
43499 fi
43500
43501 done
43502
43503  echo "$as_me:$LINENO: checking for db" >&5
43504 echo $ECHO_N "checking for db... $ECHO_C" >&6
43505 if test "${ol_cv_mdbm+set}" = set; then
43506   echo $ECHO_N "(cached) $ECHO_C" >&6
43507 else
43508
43509         if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
43510                 ol_cv_mdbm=no
43511         else
43512                 ol_cv_mdbm=yes
43513         fi
43514
43515 fi
43516 echo "$as_me:$LINENO: result: $ol_cv_mdbm" >&5
43517 echo "${ECHO_T}$ol_cv_mdbm" >&6
43518  if test $ol_cv_mdbm = yes ; then
43519
43520 cat >>confdefs.h <<\_ACEOF
43521 #define HAVE_MDBM 1
43522 _ACEOF
43523
43524  fi
43525
43526
43527         if test $ol_cv_mdbm = yes ; then
43528                 ol_link_ldbm=mdbm
43529                 ol_with_ldbm_api=mdbm
43530                 if test $ol_cv_lib_mdbm != yes ; then
43531                         LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
43532                 fi
43533         fi
43534 fi
43535
43536 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
43537         echo "$as_me:$LINENO: checking for GDBM library" >&5
43538 echo $ECHO_N "checking for GDBM library... $ECHO_C" >&6
43539 if test "${ol_cv_lib_gdbm+set}" = set; then
43540   echo $ECHO_N "(cached) $ECHO_C" >&6
43541 else
43542         ol_LIBS="$LIBS"
43543         echo "$as_me:$LINENO: checking for gdbm_open" >&5
43544 echo $ECHO_N "checking for gdbm_open... $ECHO_C" >&6
43545 if test "${ac_cv_func_gdbm_open+set}" = set; then
43546   echo $ECHO_N "(cached) $ECHO_C" >&6
43547 else
43548   cat >conftest.$ac_ext <<_ACEOF
43549 /* confdefs.h.  */
43550 _ACEOF
43551 cat confdefs.h >>conftest.$ac_ext
43552 cat >>conftest.$ac_ext <<_ACEOF
43553 /* end confdefs.h.  */
43554 /* Define gdbm_open to an innocuous variant, in case <limits.h> declares gdbm_open.
43555    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43556 #define gdbm_open innocuous_gdbm_open
43557
43558 /* System header to define __stub macros and hopefully few prototypes,
43559     which can conflict with char gdbm_open (); below.
43560     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43561     <limits.h> exists even on freestanding compilers.  */
43562
43563 #ifdef __STDC__
43564 # include <limits.h>
43565 #else
43566 # include <assert.h>
43567 #endif
43568
43569 #undef gdbm_open
43570
43571 /* Override any gcc2 internal prototype to avoid an error.  */
43572 #ifdef __cplusplus
43573 extern "C"
43574 {
43575 #endif
43576 /* We use char because int might match the return type of a gcc2
43577    builtin and then its argument prototype would still apply.  */
43578 char gdbm_open ();
43579 /* The GNU C library defines this for functions which it implements
43580     to always fail with ENOSYS.  Some functions are actually named
43581     something starting with __ and the normal name is an alias.  */
43582 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
43583 choke me
43584 #else
43585 char (*f) () = gdbm_open;
43586 #endif
43587 #ifdef __cplusplus
43588 }
43589 #endif
43590
43591 int
43592 main ()
43593 {
43594 return f != gdbm_open;
43595   ;
43596   return 0;
43597 }
43598 _ACEOF
43599 rm -f conftest.$ac_objext conftest$ac_exeext
43600 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43601   (eval $ac_link) 2>conftest.er1
43602   ac_status=$?
43603   grep -v '^ *+' conftest.er1 >conftest.err
43604   rm -f conftest.er1
43605   cat conftest.err >&5
43606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43607   (exit $ac_status); } &&
43608          { ac_try='test -z "$ac_c_werror_flag"
43609                          || test ! -s conftest.err'
43610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43611   (eval $ac_try) 2>&5
43612   ac_status=$?
43613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43614   (exit $ac_status); }; } &&
43615          { ac_try='test -s conftest$ac_exeext'
43616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43617   (eval $ac_try) 2>&5
43618   ac_status=$?
43619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43620   (exit $ac_status); }; }; then
43621   ac_cv_func_gdbm_open=yes
43622 else
43623   echo "$as_me: failed program was:" >&5
43624 sed 's/^/| /' conftest.$ac_ext >&5
43625
43626 ac_cv_func_gdbm_open=no
43627 fi
43628 rm -f conftest.err conftest.$ac_objext \
43629       conftest$ac_exeext conftest.$ac_ext
43630 fi
43631 echo "$as_me:$LINENO: result: $ac_cv_func_gdbm_open" >&5
43632 echo "${ECHO_T}$ac_cv_func_gdbm_open" >&6
43633 if test $ac_cv_func_gdbm_open = yes; then
43634   ol_cv_lib_gdbm=yes
43635 else
43636
43637                 echo "$as_me:$LINENO: checking for gdbm_open in -lgdbm" >&5
43638 echo $ECHO_N "checking for gdbm_open in -lgdbm... $ECHO_C" >&6
43639 if test "${ac_cv_lib_gdbm_gdbm_open+set}" = set; then
43640   echo $ECHO_N "(cached) $ECHO_C" >&6
43641 else
43642   ac_check_lib_save_LIBS=$LIBS
43643 LIBS="-lgdbm  $LIBS"
43644 cat >conftest.$ac_ext <<_ACEOF
43645 /* confdefs.h.  */
43646 _ACEOF
43647 cat confdefs.h >>conftest.$ac_ext
43648 cat >>conftest.$ac_ext <<_ACEOF
43649 /* end confdefs.h.  */
43650
43651 /* Override any gcc2 internal prototype to avoid an error.  */
43652 #ifdef __cplusplus
43653 extern "C"
43654 #endif
43655 /* We use char because int might match the return type of a gcc2
43656    builtin and then its argument prototype would still apply.  */
43657 char gdbm_open ();
43658 int
43659 main ()
43660 {
43661 gdbm_open ();
43662   ;
43663   return 0;
43664 }
43665 _ACEOF
43666 rm -f conftest.$ac_objext conftest$ac_exeext
43667 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43668   (eval $ac_link) 2>conftest.er1
43669   ac_status=$?
43670   grep -v '^ *+' conftest.er1 >conftest.err
43671   rm -f conftest.er1
43672   cat conftest.err >&5
43673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43674   (exit $ac_status); } &&
43675          { ac_try='test -z "$ac_c_werror_flag"
43676                          || test ! -s conftest.err'
43677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43678   (eval $ac_try) 2>&5
43679   ac_status=$?
43680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43681   (exit $ac_status); }; } &&
43682          { ac_try='test -s conftest$ac_exeext'
43683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43684   (eval $ac_try) 2>&5
43685   ac_status=$?
43686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43687   (exit $ac_status); }; }; then
43688   ac_cv_lib_gdbm_gdbm_open=yes
43689 else
43690   echo "$as_me: failed program was:" >&5
43691 sed 's/^/| /' conftest.$ac_ext >&5
43692
43693 ac_cv_lib_gdbm_gdbm_open=no
43694 fi
43695 rm -f conftest.err conftest.$ac_objext \
43696       conftest$ac_exeext conftest.$ac_ext
43697 LIBS=$ac_check_lib_save_LIBS
43698 fi
43699 echo "$as_me:$LINENO: result: $ac_cv_lib_gdbm_gdbm_open" >&5
43700 echo "${ECHO_T}$ac_cv_lib_gdbm_gdbm_open" >&6
43701 if test $ac_cv_lib_gdbm_gdbm_open = yes; then
43702   ol_cv_lib_gdbm=-lgdbm
43703 else
43704   ol_cv_lib_gdbm=no
43705 fi
43706
43707
43708 fi
43709
43710         LIBS="$ol_LIBS"
43711
43712 fi
43713 echo "$as_me:$LINENO: result: $ol_cv_lib_gdbm" >&5
43714 echo "${ECHO_T}$ol_cv_lib_gdbm" >&6
43715
43716
43717
43718 for ac_header in gdbm.h
43719 do
43720 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43721 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43722   echo "$as_me:$LINENO: checking for $ac_header" >&5
43723 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43724 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43725   echo $ECHO_N "(cached) $ECHO_C" >&6
43726 fi
43727 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43728 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43729 else
43730   # Is the header compilable?
43731 echo "$as_me:$LINENO: checking $ac_header usability" >&5
43732 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
43733 cat >conftest.$ac_ext <<_ACEOF
43734 /* confdefs.h.  */
43735 _ACEOF
43736 cat confdefs.h >>conftest.$ac_ext
43737 cat >>conftest.$ac_ext <<_ACEOF
43738 /* end confdefs.h.  */
43739 $ac_includes_default
43740 #include <$ac_header>
43741 _ACEOF
43742 rm -f conftest.$ac_objext
43743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43744   (eval $ac_compile) 2>conftest.er1
43745   ac_status=$?
43746   grep -v '^ *+' conftest.er1 >conftest.err
43747   rm -f conftest.er1
43748   cat conftest.err >&5
43749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43750   (exit $ac_status); } &&
43751          { ac_try='test -z "$ac_c_werror_flag"
43752                          || test ! -s conftest.err'
43753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43754   (eval $ac_try) 2>&5
43755   ac_status=$?
43756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43757   (exit $ac_status); }; } &&
43758          { ac_try='test -s conftest.$ac_objext'
43759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43760   (eval $ac_try) 2>&5
43761   ac_status=$?
43762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43763   (exit $ac_status); }; }; then
43764   ac_header_compiler=yes
43765 else
43766   echo "$as_me: failed program was:" >&5
43767 sed 's/^/| /' conftest.$ac_ext >&5
43768
43769 ac_header_compiler=no
43770 fi
43771 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43772 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43773 echo "${ECHO_T}$ac_header_compiler" >&6
43774
43775 # Is the header present?
43776 echo "$as_me:$LINENO: checking $ac_header presence" >&5
43777 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
43778 cat >conftest.$ac_ext <<_ACEOF
43779 /* confdefs.h.  */
43780 _ACEOF
43781 cat confdefs.h >>conftest.$ac_ext
43782 cat >>conftest.$ac_ext <<_ACEOF
43783 /* end confdefs.h.  */
43784 #include <$ac_header>
43785 _ACEOF
43786 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
43787   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
43788   ac_status=$?
43789   grep -v '^ *+' conftest.er1 >conftest.err
43790   rm -f conftest.er1
43791   cat conftest.err >&5
43792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43793   (exit $ac_status); } >/dev/null; then
43794   if test -s conftest.err; then
43795     ac_cpp_err=$ac_c_preproc_warn_flag
43796     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
43797   else
43798     ac_cpp_err=
43799   fi
43800 else
43801   ac_cpp_err=yes
43802 fi
43803 if test -z "$ac_cpp_err"; then
43804   ac_header_preproc=yes
43805 else
43806   echo "$as_me: failed program was:" >&5
43807 sed 's/^/| /' conftest.$ac_ext >&5
43808
43809   ac_header_preproc=no
43810 fi
43811 rm -f conftest.err conftest.$ac_ext
43812 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43813 echo "${ECHO_T}$ac_header_preproc" >&6
43814
43815 # So?  What about this header?
43816 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43817   yes:no: )
43818     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
43819 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
43820     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
43821 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
43822     ac_header_preproc=yes
43823     ;;
43824   no:yes:* )
43825     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
43826 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
43827     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
43828 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
43829     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
43830 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
43831     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
43832 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
43833     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
43834 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
43835     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
43836 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
43837     (
43838       cat <<\_ASBOX
43839 ## ------------------------------------------ ##
43840 ## Report this to the AC_PACKAGE_NAME lists.  ##
43841 ## ------------------------------------------ ##
43842 _ASBOX
43843     ) |
43844       sed "s/^/$as_me: WARNING:     /" >&2
43845     ;;
43846 esac
43847 echo "$as_me:$LINENO: checking for $ac_header" >&5
43848 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43849 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43850   echo $ECHO_N "(cached) $ECHO_C" >&6
43851 else
43852   eval "$as_ac_Header=\$ac_header_preproc"
43853 fi
43854 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43855 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43856
43857 fi
43858 if test `eval echo '${'$as_ac_Header'}'` = yes; then
43859   cat >>confdefs.h <<_ACEOF
43860 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
43861 _ACEOF
43862
43863 fi
43864
43865 done
43866
43867  echo "$as_me:$LINENO: checking for db" >&5
43868 echo $ECHO_N "checking for db... $ECHO_C" >&6
43869 if test "${ol_cv_gdbm+set}" = set; then
43870   echo $ECHO_N "(cached) $ECHO_C" >&6
43871 else
43872
43873         if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
43874                 ol_cv_gdbm=no
43875         else
43876                 ol_cv_gdbm=yes
43877         fi
43878
43879 fi
43880 echo "$as_me:$LINENO: result: $ol_cv_gdbm" >&5
43881 echo "${ECHO_T}$ol_cv_gdbm" >&6
43882  if test $ol_cv_gdbm = yes ; then
43883
43884 cat >>confdefs.h <<\_ACEOF
43885 #define HAVE_GDBM 1
43886 _ACEOF
43887
43888  fi
43889
43890
43891         if test $ol_cv_gdbm = yes ; then
43892                 ol_link_ldbm=gdbm
43893                 ol_with_ldbm_api=gdbm
43894
43895                 if test $ol_cv_lib_gdbm != yes ; then
43896                         LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
43897                 fi
43898         fi
43899 fi
43900
43901 if test $ol_with_ldbm_api = ndbm ; then
43902         echo "$as_me:$LINENO: checking for NDBM library" >&5
43903 echo $ECHO_N "checking for NDBM library... $ECHO_C" >&6
43904 if test "${ol_cv_lib_ndbm+set}" = set; then
43905   echo $ECHO_N "(cached) $ECHO_C" >&6
43906 else
43907         ol_LIBS="$LIBS"
43908         echo "$as_me:$LINENO: checking for dbm_open" >&5
43909 echo $ECHO_N "checking for dbm_open... $ECHO_C" >&6
43910 if test "${ac_cv_func_dbm_open+set}" = set; then
43911   echo $ECHO_N "(cached) $ECHO_C" >&6
43912 else
43913   cat >conftest.$ac_ext <<_ACEOF
43914 /* confdefs.h.  */
43915 _ACEOF
43916 cat confdefs.h >>conftest.$ac_ext
43917 cat >>conftest.$ac_ext <<_ACEOF
43918 /* end confdefs.h.  */
43919 /* Define dbm_open to an innocuous variant, in case <limits.h> declares dbm_open.
43920    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43921 #define dbm_open innocuous_dbm_open
43922
43923 /* System header to define __stub macros and hopefully few prototypes,
43924     which can conflict with char dbm_open (); below.
43925     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43926     <limits.h> exists even on freestanding compilers.  */
43927
43928 #ifdef __STDC__
43929 # include <limits.h>
43930 #else
43931 # include <assert.h>
43932 #endif
43933
43934 #undef dbm_open
43935
43936 /* Override any gcc2 internal prototype to avoid an error.  */
43937 #ifdef __cplusplus
43938 extern "C"
43939 {
43940 #endif
43941 /* We use char because int might match the return type of a gcc2
43942    builtin and then its argument prototype would still apply.  */
43943 char dbm_open ();
43944 /* The GNU C library defines this for functions which it implements
43945     to always fail with ENOSYS.  Some functions are actually named
43946     something starting with __ and the normal name is an alias.  */
43947 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
43948 choke me
43949 #else
43950 char (*f) () = dbm_open;
43951 #endif
43952 #ifdef __cplusplus
43953 }
43954 #endif
43955
43956 int
43957 main ()
43958 {
43959 return f != dbm_open;
43960   ;
43961   return 0;
43962 }
43963 _ACEOF
43964 rm -f conftest.$ac_objext conftest$ac_exeext
43965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43966   (eval $ac_link) 2>conftest.er1
43967   ac_status=$?
43968   grep -v '^ *+' conftest.er1 >conftest.err
43969   rm -f conftest.er1
43970   cat conftest.err >&5
43971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43972   (exit $ac_status); } &&
43973          { ac_try='test -z "$ac_c_werror_flag"
43974                          || test ! -s conftest.err'
43975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43976   (eval $ac_try) 2>&5
43977   ac_status=$?
43978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43979   (exit $ac_status); }; } &&
43980          { ac_try='test -s conftest$ac_exeext'
43981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43982   (eval $ac_try) 2>&5
43983   ac_status=$?
43984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43985   (exit $ac_status); }; }; then
43986   ac_cv_func_dbm_open=yes
43987 else
43988   echo "$as_me: failed program was:" >&5
43989 sed 's/^/| /' conftest.$ac_ext >&5
43990
43991 ac_cv_func_dbm_open=no
43992 fi
43993 rm -f conftest.err conftest.$ac_objext \
43994       conftest$ac_exeext conftest.$ac_ext
43995 fi
43996 echo "$as_me:$LINENO: result: $ac_cv_func_dbm_open" >&5
43997 echo "${ECHO_T}$ac_cv_func_dbm_open" >&6
43998 if test $ac_cv_func_dbm_open = yes; then
43999   ol_cv_lib_ndbm=yes
44000 else
44001
44002                 echo "$as_me:$LINENO: checking for dbm_open in -lndbm" >&5
44003 echo $ECHO_N "checking for dbm_open in -lndbm... $ECHO_C" >&6
44004 if test "${ac_cv_lib_ndbm_dbm_open+set}" = set; then
44005   echo $ECHO_N "(cached) $ECHO_C" >&6
44006 else
44007   ac_check_lib_save_LIBS=$LIBS
44008 LIBS="-lndbm  $LIBS"
44009 cat >conftest.$ac_ext <<_ACEOF
44010 /* confdefs.h.  */
44011 _ACEOF
44012 cat confdefs.h >>conftest.$ac_ext
44013 cat >>conftest.$ac_ext <<_ACEOF
44014 /* end confdefs.h.  */
44015
44016 /* Override any gcc2 internal prototype to avoid an error.  */
44017 #ifdef __cplusplus
44018 extern "C"
44019 #endif
44020 /* We use char because int might match the return type of a gcc2
44021    builtin and then its argument prototype would still apply.  */
44022 char dbm_open ();
44023 int
44024 main ()
44025 {
44026 dbm_open ();
44027   ;
44028   return 0;
44029 }
44030 _ACEOF
44031 rm -f conftest.$ac_objext conftest$ac_exeext
44032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44033   (eval $ac_link) 2>conftest.er1
44034   ac_status=$?
44035   grep -v '^ *+' conftest.er1 >conftest.err
44036   rm -f conftest.er1
44037   cat conftest.err >&5
44038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44039   (exit $ac_status); } &&
44040          { ac_try='test -z "$ac_c_werror_flag"
44041                          || test ! -s conftest.err'
44042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44043   (eval $ac_try) 2>&5
44044   ac_status=$?
44045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44046   (exit $ac_status); }; } &&
44047          { ac_try='test -s conftest$ac_exeext'
44048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44049   (eval $ac_try) 2>&5
44050   ac_status=$?
44051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44052   (exit $ac_status); }; }; then
44053   ac_cv_lib_ndbm_dbm_open=yes
44054 else
44055   echo "$as_me: failed program was:" >&5
44056 sed 's/^/| /' conftest.$ac_ext >&5
44057
44058 ac_cv_lib_ndbm_dbm_open=no
44059 fi
44060 rm -f conftest.err conftest.$ac_objext \
44061       conftest$ac_exeext conftest.$ac_ext
44062 LIBS=$ac_check_lib_save_LIBS
44063 fi
44064 echo "$as_me:$LINENO: result: $ac_cv_lib_ndbm_dbm_open" >&5
44065 echo "${ECHO_T}$ac_cv_lib_ndbm_dbm_open" >&6
44066 if test $ac_cv_lib_ndbm_dbm_open = yes; then
44067   ol_cv_lib_ndbm=-lndbm
44068 else
44069
44070                         echo "$as_me:$LINENO: checking for dbm_open in -ldbm" >&5
44071 echo $ECHO_N "checking for dbm_open in -ldbm... $ECHO_C" >&6
44072 if test "${ac_cv_lib_dbm_dbm_open+set}" = set; then
44073   echo $ECHO_N "(cached) $ECHO_C" >&6
44074 else
44075   ac_check_lib_save_LIBS=$LIBS
44076 LIBS="-ldbm  $LIBS"
44077 cat >conftest.$ac_ext <<_ACEOF
44078 /* confdefs.h.  */
44079 _ACEOF
44080 cat confdefs.h >>conftest.$ac_ext
44081 cat >>conftest.$ac_ext <<_ACEOF
44082 /* end confdefs.h.  */
44083
44084 /* Override any gcc2 internal prototype to avoid an error.  */
44085 #ifdef __cplusplus
44086 extern "C"
44087 #endif
44088 /* We use char because int might match the return type of a gcc2
44089    builtin and then its argument prototype would still apply.  */
44090 char dbm_open ();
44091 int
44092 main ()
44093 {
44094 dbm_open ();
44095   ;
44096   return 0;
44097 }
44098 _ACEOF
44099 rm -f conftest.$ac_objext conftest$ac_exeext
44100 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44101   (eval $ac_link) 2>conftest.er1
44102   ac_status=$?
44103   grep -v '^ *+' conftest.er1 >conftest.err
44104   rm -f conftest.er1
44105   cat conftest.err >&5
44106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44107   (exit $ac_status); } &&
44108          { ac_try='test -z "$ac_c_werror_flag"
44109                          || test ! -s conftest.err'
44110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44111   (eval $ac_try) 2>&5
44112   ac_status=$?
44113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44114   (exit $ac_status); }; } &&
44115          { ac_try='test -s conftest$ac_exeext'
44116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44117   (eval $ac_try) 2>&5
44118   ac_status=$?
44119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44120   (exit $ac_status); }; }; then
44121   ac_cv_lib_dbm_dbm_open=yes
44122 else
44123   echo "$as_me: failed program was:" >&5
44124 sed 's/^/| /' conftest.$ac_ext >&5
44125
44126 ac_cv_lib_dbm_dbm_open=no
44127 fi
44128 rm -f conftest.err conftest.$ac_objext \
44129       conftest$ac_exeext conftest.$ac_ext
44130 LIBS=$ac_check_lib_save_LIBS
44131 fi
44132 echo "$as_me:$LINENO: result: $ac_cv_lib_dbm_dbm_open" >&5
44133 echo "${ECHO_T}$ac_cv_lib_dbm_dbm_open" >&6
44134 if test $ac_cv_lib_dbm_dbm_open = yes; then
44135   ol_cv_lib_ndbm=-ldbm
44136 else
44137   ol_cv_lib_ndbm=no
44138 fi
44139
44140 fi
44141
44142
44143 fi
44144
44145         LIBS="$ol_LIBS"
44146
44147 fi
44148 echo "$as_me:$LINENO: result: $ol_cv_lib_ndbm" >&5
44149 echo "${ECHO_T}$ol_cv_lib_ndbm" >&6
44150
44151
44152
44153 for ac_header in ndbm.h
44154 do
44155 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44156 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44157   echo "$as_me:$LINENO: checking for $ac_header" >&5
44158 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44159 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44160   echo $ECHO_N "(cached) $ECHO_C" >&6
44161 fi
44162 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44163 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44164 else
44165   # Is the header compilable?
44166 echo "$as_me:$LINENO: checking $ac_header usability" >&5
44167 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
44168 cat >conftest.$ac_ext <<_ACEOF
44169 /* confdefs.h.  */
44170 _ACEOF
44171 cat confdefs.h >>conftest.$ac_ext
44172 cat >>conftest.$ac_ext <<_ACEOF
44173 /* end confdefs.h.  */
44174 $ac_includes_default
44175 #include <$ac_header>
44176 _ACEOF
44177 rm -f conftest.$ac_objext
44178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44179   (eval $ac_compile) 2>conftest.er1
44180   ac_status=$?
44181   grep -v '^ *+' conftest.er1 >conftest.err
44182   rm -f conftest.er1
44183   cat conftest.err >&5
44184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44185   (exit $ac_status); } &&
44186          { ac_try='test -z "$ac_c_werror_flag"
44187                          || test ! -s conftest.err'
44188   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44189   (eval $ac_try) 2>&5
44190   ac_status=$?
44191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44192   (exit $ac_status); }; } &&
44193          { ac_try='test -s conftest.$ac_objext'
44194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44195   (eval $ac_try) 2>&5
44196   ac_status=$?
44197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44198   (exit $ac_status); }; }; then
44199   ac_header_compiler=yes
44200 else
44201   echo "$as_me: failed program was:" >&5
44202 sed 's/^/| /' conftest.$ac_ext >&5
44203
44204 ac_header_compiler=no
44205 fi
44206 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44207 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44208 echo "${ECHO_T}$ac_header_compiler" >&6
44209
44210 # Is the header present?
44211 echo "$as_me:$LINENO: checking $ac_header presence" >&5
44212 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
44213 cat >conftest.$ac_ext <<_ACEOF
44214 /* confdefs.h.  */
44215 _ACEOF
44216 cat confdefs.h >>conftest.$ac_ext
44217 cat >>conftest.$ac_ext <<_ACEOF
44218 /* end confdefs.h.  */
44219 #include <$ac_header>
44220 _ACEOF
44221 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
44222   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
44223   ac_status=$?
44224   grep -v '^ *+' conftest.er1 >conftest.err
44225   rm -f conftest.er1
44226   cat conftest.err >&5
44227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44228   (exit $ac_status); } >/dev/null; then
44229   if test -s conftest.err; then
44230     ac_cpp_err=$ac_c_preproc_warn_flag
44231     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
44232   else
44233     ac_cpp_err=
44234   fi
44235 else
44236   ac_cpp_err=yes
44237 fi
44238 if test -z "$ac_cpp_err"; then
44239   ac_header_preproc=yes
44240 else
44241   echo "$as_me: failed program was:" >&5
44242 sed 's/^/| /' conftest.$ac_ext >&5
44243
44244   ac_header_preproc=no
44245 fi
44246 rm -f conftest.err conftest.$ac_ext
44247 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44248 echo "${ECHO_T}$ac_header_preproc" >&6
44249
44250 # So?  What about this header?
44251 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44252   yes:no: )
44253     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44254 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
44255     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
44256 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44257     ac_header_preproc=yes
44258     ;;
44259   no:yes:* )
44260     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44261 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
44262     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
44263 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
44264     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44265 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44266     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
44267 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
44268     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44269 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44270     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44271 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
44272     (
44273       cat <<\_ASBOX
44274 ## ------------------------------------------ ##
44275 ## Report this to the AC_PACKAGE_NAME lists.  ##
44276 ## ------------------------------------------ ##
44277 _ASBOX
44278     ) |
44279       sed "s/^/$as_me: WARNING:     /" >&2
44280     ;;
44281 esac
44282 echo "$as_me:$LINENO: checking for $ac_header" >&5
44283 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44284 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44285   echo $ECHO_N "(cached) $ECHO_C" >&6
44286 else
44287   eval "$as_ac_Header=\$ac_header_preproc"
44288 fi
44289 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44290 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44291
44292 fi
44293 if test `eval echo '${'$as_ac_Header'}'` = yes; then
44294   cat >>confdefs.h <<_ACEOF
44295 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44296 _ACEOF
44297
44298 fi
44299
44300 done
44301
44302  echo "$as_me:$LINENO: checking for db" >&5
44303 echo $ECHO_N "checking for db... $ECHO_C" >&6
44304 if test "${ol_cv_ndbm+set}" = set; then
44305   echo $ECHO_N "(cached) $ECHO_C" >&6
44306 else
44307
44308         if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
44309                 ol_cv_ndbm=no
44310         else
44311                 ol_cv_ndbm=yes
44312         fi
44313
44314 fi
44315 echo "$as_me:$LINENO: result: $ol_cv_ndbm" >&5
44316 echo "${ECHO_T}$ol_cv_ndbm" >&6
44317  if test $ol_cv_ndbm = yes ; then
44318
44319 cat >>confdefs.h <<\_ACEOF
44320 #define HAVE_NDBM 1
44321 _ACEOF
44322
44323  fi
44324
44325
44326         if test $ol_cv_ndbm = yes ; then
44327                 ol_link_ldbm=ndbm
44328                 ol_with_ldbm_api=ndbm
44329
44330                 if test $ol_cv_lib_ndbm != yes ; then
44331                         LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
44332                 fi
44333         fi
44334 fi
44335
44336 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
44337         { { echo "$as_me:$LINENO: error: could not find suitable LDBM backend" >&5
44338 echo "$as_me: error: could not find suitable LDBM backend" >&2;}
44339    { (exit 1); exit 1; }; }
44340 fi
44341
44342 if test $ol_enable_bdb = yes -o \
44343         $ol_enable_hdb = yes -o \
44344         $ol_enable_ldbm = yes ; then
44345         SLAPD_LIBS="$SLAPD_LIBS \$(LDBM_LIBS)"
44346 fi
44347
44348
44349 if test $ol_enable_dynamic = yes -a $enable_shared = yes ; then
44350         BUILD_LIBS_DYNAMIC=shared
44351
44352 cat >>confdefs.h <<\_ACEOF
44353 #define LDAP_LIBS_DYNAMIC 1
44354 _ACEOF
44355
44356         LTSTATIC=""
44357 else
44358         BUILD_LIBS_DYNAMIC=static
44359         LTSTATIC="-static"
44360 fi
44361
44362 if test $ol_enable_wrappers != no ; then
44363
44364 for ac_header in tcpd.h
44365 do
44366 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44367 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44368   echo "$as_me:$LINENO: checking for $ac_header" >&5
44369 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44370 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44371   echo $ECHO_N "(cached) $ECHO_C" >&6
44372 fi
44373 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44374 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44375 else
44376   # Is the header compilable?
44377 echo "$as_me:$LINENO: checking $ac_header usability" >&5
44378 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
44379 cat >conftest.$ac_ext <<_ACEOF
44380 /* confdefs.h.  */
44381 _ACEOF
44382 cat confdefs.h >>conftest.$ac_ext
44383 cat >>conftest.$ac_ext <<_ACEOF
44384 /* end confdefs.h.  */
44385 $ac_includes_default
44386 #include <$ac_header>
44387 _ACEOF
44388 rm -f conftest.$ac_objext
44389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44390   (eval $ac_compile) 2>conftest.er1
44391   ac_status=$?
44392   grep -v '^ *+' conftest.er1 >conftest.err
44393   rm -f conftest.er1
44394   cat conftest.err >&5
44395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44396   (exit $ac_status); } &&
44397          { ac_try='test -z "$ac_c_werror_flag"
44398                          || test ! -s conftest.err'
44399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44400   (eval $ac_try) 2>&5
44401   ac_status=$?
44402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44403   (exit $ac_status); }; } &&
44404          { ac_try='test -s conftest.$ac_objext'
44405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44406   (eval $ac_try) 2>&5
44407   ac_status=$?
44408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44409   (exit $ac_status); }; }; then
44410   ac_header_compiler=yes
44411 else
44412   echo "$as_me: failed program was:" >&5
44413 sed 's/^/| /' conftest.$ac_ext >&5
44414
44415 ac_header_compiler=no
44416 fi
44417 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44418 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44419 echo "${ECHO_T}$ac_header_compiler" >&6
44420
44421 # Is the header present?
44422 echo "$as_me:$LINENO: checking $ac_header presence" >&5
44423 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
44424 cat >conftest.$ac_ext <<_ACEOF
44425 /* confdefs.h.  */
44426 _ACEOF
44427 cat confdefs.h >>conftest.$ac_ext
44428 cat >>conftest.$ac_ext <<_ACEOF
44429 /* end confdefs.h.  */
44430 #include <$ac_header>
44431 _ACEOF
44432 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
44433   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
44434   ac_status=$?
44435   grep -v '^ *+' conftest.er1 >conftest.err
44436   rm -f conftest.er1
44437   cat conftest.err >&5
44438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44439   (exit $ac_status); } >/dev/null; then
44440   if test -s conftest.err; then
44441     ac_cpp_err=$ac_c_preproc_warn_flag
44442     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
44443   else
44444     ac_cpp_err=
44445   fi
44446 else
44447   ac_cpp_err=yes
44448 fi
44449 if test -z "$ac_cpp_err"; then
44450   ac_header_preproc=yes
44451 else
44452   echo "$as_me: failed program was:" >&5
44453 sed 's/^/| /' conftest.$ac_ext >&5
44454
44455   ac_header_preproc=no
44456 fi
44457 rm -f conftest.err conftest.$ac_ext
44458 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44459 echo "${ECHO_T}$ac_header_preproc" >&6
44460
44461 # So?  What about this header?
44462 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44463   yes:no: )
44464     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44465 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
44466     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
44467 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44468     ac_header_preproc=yes
44469     ;;
44470   no:yes:* )
44471     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44472 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
44473     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
44474 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
44475     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44476 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44477     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
44478 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
44479     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44480 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44481     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44482 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
44483     (
44484       cat <<\_ASBOX
44485 ## ------------------------------------------ ##
44486 ## Report this to the AC_PACKAGE_NAME lists.  ##
44487 ## ------------------------------------------ ##
44488 _ASBOX
44489     ) |
44490       sed "s/^/$as_me: WARNING:     /" >&2
44491     ;;
44492 esac
44493 echo "$as_me:$LINENO: checking for $ac_header" >&5
44494 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44495 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44496   echo $ECHO_N "(cached) $ECHO_C" >&6
44497 else
44498   eval "$as_ac_Header=\$ac_header_preproc"
44499 fi
44500 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44501 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44502
44503 fi
44504 if test `eval echo '${'$as_ac_Header'}'` = yes; then
44505   cat >>confdefs.h <<_ACEOF
44506 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44507 _ACEOF
44508
44509                 echo "$as_me:$LINENO: checking for TCP wrappers library" >&5
44510 echo $ECHO_N "checking for TCP wrappers library... $ECHO_C" >&6
44511                 save_LIBS="$LIBS"
44512                 LIBS="$LIBS -lwrap"
44513                 cat >conftest.$ac_ext <<_ACEOF
44514 /* confdefs.h.  */
44515 _ACEOF
44516 cat confdefs.h >>conftest.$ac_ext
44517 cat >>conftest.$ac_ext <<_ACEOF
44518 /* end confdefs.h.  */
44519
44520 #include <tcpd.h>
44521 int allow_severity = 0;
44522 int deny_severity  = 0;
44523
44524 struct request_info *req;
44525
44526 int
44527 main ()
44528 {
44529
44530 hosts_access(req)
44531
44532   ;
44533   return 0;
44534 }
44535 _ACEOF
44536 rm -f conftest.$ac_objext conftest$ac_exeext
44537 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44538   (eval $ac_link) 2>conftest.er1
44539   ac_status=$?
44540   grep -v '^ *+' conftest.er1 >conftest.err
44541   rm -f conftest.er1
44542   cat conftest.err >&5
44543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44544   (exit $ac_status); } &&
44545          { ac_try='test -z "$ac_c_werror_flag"
44546                          || test ! -s conftest.err'
44547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44548   (eval $ac_try) 2>&5
44549   ac_status=$?
44550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44551   (exit $ac_status); }; } &&
44552          { ac_try='test -s conftest$ac_exeext'
44553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44554   (eval $ac_try) 2>&5
44555   ac_status=$?
44556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44557   (exit $ac_status); }; }; then
44558   echo "$as_me:$LINENO: result: -lwrap" >&5
44559 echo "${ECHO_T}-lwrap" >&6
44560                 have_wrappers=yes
44561                 LIBS="$save_LIBS"
44562 else
44563   echo "$as_me: failed program was:" >&5
44564 sed 's/^/| /' conftest.$ac_ext >&5
44565
44566
44567                                 LIBS="$LIBS -lnsl"
44568                 cat >conftest.$ac_ext <<_ACEOF
44569 /* confdefs.h.  */
44570 _ACEOF
44571 cat confdefs.h >>conftest.$ac_ext
44572 cat >>conftest.$ac_ext <<_ACEOF
44573 /* end confdefs.h.  */
44574
44575 #include <tcpd.h>
44576 int allow_severity = 0;
44577 int deny_severity  = 0;
44578
44579 struct request_info *req;
44580
44581 int
44582 main ()
44583 {
44584
44585 hosts_access(req)
44586
44587   ;
44588   return 0;
44589 }
44590 _ACEOF
44591 rm -f conftest.$ac_objext conftest$ac_exeext
44592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44593   (eval $ac_link) 2>conftest.er1
44594   ac_status=$?
44595   grep -v '^ *+' conftest.er1 >conftest.err
44596   rm -f conftest.er1
44597   cat conftest.err >&5
44598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44599   (exit $ac_status); } &&
44600          { ac_try='test -z "$ac_c_werror_flag"
44601                          || test ! -s conftest.err'
44602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44603   (eval $ac_try) 2>&5
44604   ac_status=$?
44605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44606   (exit $ac_status); }; } &&
44607          { ac_try='test -s conftest$ac_exeext'
44608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44609   (eval $ac_try) 2>&5
44610   ac_status=$?
44611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44612   (exit $ac_status); }; }; then
44613   echo "$as_me:$LINENO: result: -lwrap -lnsl" >&5
44614 echo "${ECHO_T}-lwrap -lnsl" >&6
44615                 have_wrappers=yes
44616                 LIBS="$save_LIBS -lnsl"
44617 else
44618   echo "$as_me: failed program was:" >&5
44619 sed 's/^/| /' conftest.$ac_ext >&5
44620
44621
44622                 echo "$as_me:$LINENO: result: no" >&5
44623 echo "${ECHO_T}no" >&6
44624                 have_wrappers=no
44625                 LIBS=$save_LIBS
44626 fi
44627 rm -f conftest.err conftest.$ac_objext \
44628       conftest$ac_exeext conftest.$ac_ext
44629 fi
44630 rm -f conftest.err conftest.$ac_objext \
44631       conftest$ac_exeext conftest.$ac_ext
44632 else
44633   have_wrappers=no
44634 fi
44635
44636 done
44637
44638
44639         if test $have_wrappers = yes ; then
44640
44641 cat >>confdefs.h <<\_ACEOF
44642 #define HAVE_TCPD 1
44643 _ACEOF
44644
44645                 WRAP_LIBS="-lwrap"
44646         elif test $ol_enable_wrappers = yes ; then
44647                 { { echo "$as_me:$LINENO: error: could not find TCP wrappers, select apppropriate options or disable" >&5
44648 echo "$as_me: error: could not find TCP wrappers, select apppropriate options or disable" >&2;}
44649    { (exit 1); exit 1; }; }
44650         else
44651                 { echo "$as_me:$LINENO: WARNING: could not find TCP wrappers, support disabled" >&5
44652 echo "$as_me: WARNING: could not find TCP wrappers, support disabled" >&2;}
44653                 WRAP_LIBS=""
44654         fi
44655 fi
44656
44657 if test $ol_enable_syslog != no ; then
44658         echo "$as_me:$LINENO: checking for openlog" >&5
44659 echo $ECHO_N "checking for openlog... $ECHO_C" >&6
44660 if test "${ac_cv_func_openlog+set}" = set; then
44661   echo $ECHO_N "(cached) $ECHO_C" >&6
44662 else
44663   cat >conftest.$ac_ext <<_ACEOF
44664 /* confdefs.h.  */
44665 _ACEOF
44666 cat confdefs.h >>conftest.$ac_ext
44667 cat >>conftest.$ac_ext <<_ACEOF
44668 /* end confdefs.h.  */
44669 /* Define openlog to an innocuous variant, in case <limits.h> declares openlog.
44670    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44671 #define openlog innocuous_openlog
44672
44673 /* System header to define __stub macros and hopefully few prototypes,
44674     which can conflict with char openlog (); below.
44675     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44676     <limits.h> exists even on freestanding compilers.  */
44677
44678 #ifdef __STDC__
44679 # include <limits.h>
44680 #else
44681 # include <assert.h>
44682 #endif
44683
44684 #undef openlog
44685
44686 /* Override any gcc2 internal prototype to avoid an error.  */
44687 #ifdef __cplusplus
44688 extern "C"
44689 {
44690 #endif
44691 /* We use char because int might match the return type of a gcc2
44692    builtin and then its argument prototype would still apply.  */
44693 char openlog ();
44694 /* The GNU C library defines this for functions which it implements
44695     to always fail with ENOSYS.  Some functions are actually named
44696     something starting with __ and the normal name is an alias.  */
44697 #if defined (__stub_openlog) || defined (__stub___openlog)
44698 choke me
44699 #else
44700 char (*f) () = openlog;
44701 #endif
44702 #ifdef __cplusplus
44703 }
44704 #endif
44705
44706 int
44707 main ()
44708 {
44709 return f != openlog;
44710   ;
44711   return 0;
44712 }
44713 _ACEOF
44714 rm -f conftest.$ac_objext conftest$ac_exeext
44715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44716   (eval $ac_link) 2>conftest.er1
44717   ac_status=$?
44718   grep -v '^ *+' conftest.er1 >conftest.err
44719   rm -f conftest.er1
44720   cat conftest.err >&5
44721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44722   (exit $ac_status); } &&
44723          { ac_try='test -z "$ac_c_werror_flag"
44724                          || test ! -s conftest.err'
44725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44726   (eval $ac_try) 2>&5
44727   ac_status=$?
44728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44729   (exit $ac_status); }; } &&
44730          { ac_try='test -s conftest$ac_exeext'
44731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44732   (eval $ac_try) 2>&5
44733   ac_status=$?
44734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44735   (exit $ac_status); }; }; then
44736   ac_cv_func_openlog=yes
44737 else
44738   echo "$as_me: failed program was:" >&5
44739 sed 's/^/| /' conftest.$ac_ext >&5
44740
44741 ac_cv_func_openlog=no
44742 fi
44743 rm -f conftest.err conftest.$ac_objext \
44744       conftest$ac_exeext conftest.$ac_ext
44745 fi
44746 echo "$as_me:$LINENO: result: $ac_cv_func_openlog" >&5
44747 echo "${ECHO_T}$ac_cv_func_openlog" >&6
44748
44749         if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
44750                 { { echo "$as_me:$LINENO: error: could not find syslog" >&5
44751 echo "$as_me: error: could not find syslog" >&2;}
44752    { (exit select appropriate options or disable); exit select appropriate options or disable; }; }
44753         fi
44754         ol_enable_syslog=$ac_cv_func_openlog
44755 fi
44756
44757
44758 ol_link_sql=no
44759 if test $ol_enable_sql != no ; then
44760
44761
44762 for ac_header in sql.h sqlext.h
44763 do
44764 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44765 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44766   echo "$as_me:$LINENO: checking for $ac_header" >&5
44767 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44768 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44769   echo $ECHO_N "(cached) $ECHO_C" >&6
44770 fi
44771 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44772 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44773 else
44774   # Is the header compilable?
44775 echo "$as_me:$LINENO: checking $ac_header usability" >&5
44776 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
44777 cat >conftest.$ac_ext <<_ACEOF
44778 /* confdefs.h.  */
44779 _ACEOF
44780 cat confdefs.h >>conftest.$ac_ext
44781 cat >>conftest.$ac_ext <<_ACEOF
44782 /* end confdefs.h.  */
44783 $ac_includes_default
44784 #include <$ac_header>
44785 _ACEOF
44786 rm -f conftest.$ac_objext
44787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44788   (eval $ac_compile) 2>conftest.er1
44789   ac_status=$?
44790   grep -v '^ *+' conftest.er1 >conftest.err
44791   rm -f conftest.er1
44792   cat conftest.err >&5
44793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44794   (exit $ac_status); } &&
44795          { ac_try='test -z "$ac_c_werror_flag"
44796                          || test ! -s conftest.err'
44797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44798   (eval $ac_try) 2>&5
44799   ac_status=$?
44800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44801   (exit $ac_status); }; } &&
44802          { ac_try='test -s conftest.$ac_objext'
44803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44804   (eval $ac_try) 2>&5
44805   ac_status=$?
44806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44807   (exit $ac_status); }; }; then
44808   ac_header_compiler=yes
44809 else
44810   echo "$as_me: failed program was:" >&5
44811 sed 's/^/| /' conftest.$ac_ext >&5
44812
44813 ac_header_compiler=no
44814 fi
44815 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44816 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44817 echo "${ECHO_T}$ac_header_compiler" >&6
44818
44819 # Is the header present?
44820 echo "$as_me:$LINENO: checking $ac_header presence" >&5
44821 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
44822 cat >conftest.$ac_ext <<_ACEOF
44823 /* confdefs.h.  */
44824 _ACEOF
44825 cat confdefs.h >>conftest.$ac_ext
44826 cat >>conftest.$ac_ext <<_ACEOF
44827 /* end confdefs.h.  */
44828 #include <$ac_header>
44829 _ACEOF
44830 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
44831   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
44832   ac_status=$?
44833   grep -v '^ *+' conftest.er1 >conftest.err
44834   rm -f conftest.er1
44835   cat conftest.err >&5
44836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44837   (exit $ac_status); } >/dev/null; then
44838   if test -s conftest.err; then
44839     ac_cpp_err=$ac_c_preproc_warn_flag
44840     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
44841   else
44842     ac_cpp_err=
44843   fi
44844 else
44845   ac_cpp_err=yes
44846 fi
44847 if test -z "$ac_cpp_err"; then
44848   ac_header_preproc=yes
44849 else
44850   echo "$as_me: failed program was:" >&5
44851 sed 's/^/| /' conftest.$ac_ext >&5
44852
44853   ac_header_preproc=no
44854 fi
44855 rm -f conftest.err conftest.$ac_ext
44856 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44857 echo "${ECHO_T}$ac_header_preproc" >&6
44858
44859 # So?  What about this header?
44860 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44861   yes:no: )
44862     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44863 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
44864     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
44865 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44866     ac_header_preproc=yes
44867     ;;
44868   no:yes:* )
44869     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44870 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
44871     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
44872 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
44873     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44874 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44875     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
44876 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
44877     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44878 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44879     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44880 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
44881     (
44882       cat <<\_ASBOX
44883 ## ------------------------------------------ ##
44884 ## Report this to the AC_PACKAGE_NAME lists.  ##
44885 ## ------------------------------------------ ##
44886 _ASBOX
44887     ) |
44888       sed "s/^/$as_me: WARNING:     /" >&2
44889     ;;
44890 esac
44891 echo "$as_me:$LINENO: checking for $ac_header" >&5
44892 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44893 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44894   echo $ECHO_N "(cached) $ECHO_C" >&6
44895 else
44896   eval "$as_ac_Header=\$ac_header_preproc"
44897 fi
44898 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44899 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44900
44901 fi
44902 if test `eval echo '${'$as_ac_Header'}'` = yes; then
44903   cat >>confdefs.h <<_ACEOF
44904 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44905 _ACEOF
44906
44907 else
44908
44909                 { { echo "$as_me:$LINENO: error: could not locate SQL headers" >&5
44910 echo "$as_me: error: could not locate SQL headers" >&2;}
44911    { (exit 1); exit 1; }; }
44912
44913 fi
44914
44915 done
44916
44917
44918         sql_LIBS="$LIBS"
44919         LIBS="$LTHREAD_LIBS"
44920
44921         echo "$as_me:$LINENO: checking for SQLDriverConnect in -liodbc" >&5
44922 echo $ECHO_N "checking for SQLDriverConnect in -liodbc... $ECHO_C" >&6
44923 if test "${ac_cv_lib_iodbc_SQLDriverConnect+set}" = set; then
44924   echo $ECHO_N "(cached) $ECHO_C" >&6
44925 else
44926   ac_check_lib_save_LIBS=$LIBS
44927 LIBS="-liodbc  $LIBS"
44928 cat >conftest.$ac_ext <<_ACEOF
44929 /* confdefs.h.  */
44930 _ACEOF
44931 cat confdefs.h >>conftest.$ac_ext
44932 cat >>conftest.$ac_ext <<_ACEOF
44933 /* end confdefs.h.  */
44934
44935 /* Override any gcc2 internal prototype to avoid an error.  */
44936 #ifdef __cplusplus
44937 extern "C"
44938 #endif
44939 /* We use char because int might match the return type of a gcc2
44940    builtin and then its argument prototype would still apply.  */
44941 char SQLDriverConnect ();
44942 int
44943 main ()
44944 {
44945 SQLDriverConnect ();
44946   ;
44947   return 0;
44948 }
44949 _ACEOF
44950 rm -f conftest.$ac_objext conftest$ac_exeext
44951 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44952   (eval $ac_link) 2>conftest.er1
44953   ac_status=$?
44954   grep -v '^ *+' conftest.er1 >conftest.err
44955   rm -f conftest.er1
44956   cat conftest.err >&5
44957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44958   (exit $ac_status); } &&
44959          { ac_try='test -z "$ac_c_werror_flag"
44960                          || test ! -s conftest.err'
44961   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44962   (eval $ac_try) 2>&5
44963   ac_status=$?
44964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44965   (exit $ac_status); }; } &&
44966          { ac_try='test -s conftest$ac_exeext'
44967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44968   (eval $ac_try) 2>&5
44969   ac_status=$?
44970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44971   (exit $ac_status); }; }; then
44972   ac_cv_lib_iodbc_SQLDriverConnect=yes
44973 else
44974   echo "$as_me: failed program was:" >&5
44975 sed 's/^/| /' conftest.$ac_ext >&5
44976
44977 ac_cv_lib_iodbc_SQLDriverConnect=no
44978 fi
44979 rm -f conftest.err conftest.$ac_objext \
44980       conftest$ac_exeext conftest.$ac_ext
44981 LIBS=$ac_check_lib_save_LIBS
44982 fi
44983 echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLDriverConnect" >&5
44984 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLDriverConnect" >&6
44985 if test $ac_cv_lib_iodbc_SQLDriverConnect = yes; then
44986   have_iodbc=yes
44987 else
44988   have_iodbc=no
44989 fi
44990
44991         if test $have_iodbc = yes ; then
44992                 ol_link_sql="-liodbc"
44993         else
44994                 echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc" >&5
44995 echo $ECHO_N "checking for SQLDriverConnect in -lodbc... $ECHO_C" >&6
44996 if test "${ac_cv_lib_odbc_SQLDriverConnect+set}" = set; then
44997   echo $ECHO_N "(cached) $ECHO_C" >&6
44998 else
44999   ac_check_lib_save_LIBS=$LIBS
45000 LIBS="-lodbc  $LIBS"
45001 cat >conftest.$ac_ext <<_ACEOF
45002 /* confdefs.h.  */
45003 _ACEOF
45004 cat confdefs.h >>conftest.$ac_ext
45005 cat >>conftest.$ac_ext <<_ACEOF
45006 /* end confdefs.h.  */
45007
45008 /* Override any gcc2 internal prototype to avoid an error.  */
45009 #ifdef __cplusplus
45010 extern "C"
45011 #endif
45012 /* We use char because int might match the return type of a gcc2
45013    builtin and then its argument prototype would still apply.  */
45014 char SQLDriverConnect ();
45015 int
45016 main ()
45017 {
45018 SQLDriverConnect ();
45019   ;
45020   return 0;
45021 }
45022 _ACEOF
45023 rm -f conftest.$ac_objext conftest$ac_exeext
45024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45025   (eval $ac_link) 2>conftest.er1
45026   ac_status=$?
45027   grep -v '^ *+' conftest.er1 >conftest.err
45028   rm -f conftest.er1
45029   cat conftest.err >&5
45030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45031   (exit $ac_status); } &&
45032          { ac_try='test -z "$ac_c_werror_flag"
45033                          || test ! -s conftest.err'
45034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45035   (eval $ac_try) 2>&5
45036   ac_status=$?
45037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45038   (exit $ac_status); }; } &&
45039          { ac_try='test -s conftest$ac_exeext'
45040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45041   (eval $ac_try) 2>&5
45042   ac_status=$?
45043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45044   (exit $ac_status); }; }; then
45045   ac_cv_lib_odbc_SQLDriverConnect=yes
45046 else
45047   echo "$as_me: failed program was:" >&5
45048 sed 's/^/| /' conftest.$ac_ext >&5
45049
45050 ac_cv_lib_odbc_SQLDriverConnect=no
45051 fi
45052 rm -f conftest.err conftest.$ac_objext \
45053       conftest$ac_exeext conftest.$ac_ext
45054 LIBS=$ac_check_lib_save_LIBS
45055 fi
45056 echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLDriverConnect" >&5
45057 echo "${ECHO_T}$ac_cv_lib_odbc_SQLDriverConnect" >&6
45058 if test $ac_cv_lib_odbc_SQLDriverConnect = yes; then
45059   have_odbc=yes
45060 else
45061   have_odbc=no
45062 fi
45063
45064                 if test $have_odbc = yes ; then
45065                         ol_link_sql="-lodbc"
45066                 fi
45067         fi
45068
45069         LIBS="$sql_LIBS"
45070
45071         if test $ol_link_sql != no ; then
45072                 SLAPD_SQL_LIBS="$ol_link_sql"
45073
45074         elif test $ol_enable_sql != auto ; then
45075                 { { echo "$as_me:$LINENO: error: could not locate suitable ODBC library" >&5
45076 echo "$as_me: error: could not locate suitable ODBC library" >&2;}
45077    { (exit 1); exit 1; }; }
45078         fi
45079 fi
45080
45081 WITH_SASL=no
45082 ol_link_sasl=no
45083 ol_link_spasswd=no
45084 if test $ol_with_cyrus_sasl != no ; then
45085
45086
45087 for ac_header in sasl/sasl.h sasl.h
45088 do
45089 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
45090 if eval "test \"\${$as_ac_Header+set}\" = set"; then
45091   echo "$as_me:$LINENO: checking for $ac_header" >&5
45092 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
45093 if eval "test \"\${$as_ac_Header+set}\" = set"; then
45094   echo $ECHO_N "(cached) $ECHO_C" >&6
45095 fi
45096 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
45097 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
45098 else
45099   # Is the header compilable?
45100 echo "$as_me:$LINENO: checking $ac_header usability" >&5
45101 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
45102 cat >conftest.$ac_ext <<_ACEOF
45103 /* confdefs.h.  */
45104 _ACEOF
45105 cat confdefs.h >>conftest.$ac_ext
45106 cat >>conftest.$ac_ext <<_ACEOF
45107 /* end confdefs.h.  */
45108 $ac_includes_default
45109 #include <$ac_header>
45110 _ACEOF
45111 rm -f conftest.$ac_objext
45112 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45113   (eval $ac_compile) 2>conftest.er1
45114   ac_status=$?
45115   grep -v '^ *+' conftest.er1 >conftest.err
45116   rm -f conftest.er1
45117   cat conftest.err >&5
45118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45119   (exit $ac_status); } &&
45120          { ac_try='test -z "$ac_c_werror_flag"
45121                          || test ! -s conftest.err'
45122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45123   (eval $ac_try) 2>&5
45124   ac_status=$?
45125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45126   (exit $ac_status); }; } &&
45127          { ac_try='test -s conftest.$ac_objext'
45128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45129   (eval $ac_try) 2>&5
45130   ac_status=$?
45131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45132   (exit $ac_status); }; }; then
45133   ac_header_compiler=yes
45134 else
45135   echo "$as_me: failed program was:" >&5
45136 sed 's/^/| /' conftest.$ac_ext >&5
45137
45138 ac_header_compiler=no
45139 fi
45140 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45141 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
45142 echo "${ECHO_T}$ac_header_compiler" >&6
45143
45144 # Is the header present?
45145 echo "$as_me:$LINENO: checking $ac_header presence" >&5
45146 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
45147 cat >conftest.$ac_ext <<_ACEOF
45148 /* confdefs.h.  */
45149 _ACEOF
45150 cat confdefs.h >>conftest.$ac_ext
45151 cat >>conftest.$ac_ext <<_ACEOF
45152 /* end confdefs.h.  */
45153 #include <$ac_header>
45154 _ACEOF
45155 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
45156   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
45157   ac_status=$?
45158   grep -v '^ *+' conftest.er1 >conftest.err
45159   rm -f conftest.er1
45160   cat conftest.err >&5
45161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45162   (exit $ac_status); } >/dev/null; then
45163   if test -s conftest.err; then
45164     ac_cpp_err=$ac_c_preproc_warn_flag
45165     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
45166   else
45167     ac_cpp_err=
45168   fi
45169 else
45170   ac_cpp_err=yes
45171 fi
45172 if test -z "$ac_cpp_err"; then
45173   ac_header_preproc=yes
45174 else
45175   echo "$as_me: failed program was:" >&5
45176 sed 's/^/| /' conftest.$ac_ext >&5
45177
45178   ac_header_preproc=no
45179 fi
45180 rm -f conftest.err conftest.$ac_ext
45181 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
45182 echo "${ECHO_T}$ac_header_preproc" >&6
45183
45184 # So?  What about this header?
45185 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
45186   yes:no: )
45187     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
45188 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
45189     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
45190 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
45191     ac_header_preproc=yes
45192     ;;
45193   no:yes:* )
45194     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
45195 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
45196     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
45197 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
45198     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
45199 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
45200     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
45201 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
45202     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
45203 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
45204     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
45205 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
45206     (
45207       cat <<\_ASBOX
45208 ## ------------------------------------------ ##
45209 ## Report this to the AC_PACKAGE_NAME lists.  ##
45210 ## ------------------------------------------ ##
45211 _ASBOX
45212     ) |
45213       sed "s/^/$as_me: WARNING:     /" >&2
45214     ;;
45215 esac
45216 echo "$as_me:$LINENO: checking for $ac_header" >&5
45217 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
45218 if eval "test \"\${$as_ac_Header+set}\" = set"; then
45219   echo $ECHO_N "(cached) $ECHO_C" >&6
45220 else
45221   eval "$as_ac_Header=\$ac_header_preproc"
45222 fi
45223 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
45224 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
45225
45226 fi
45227 if test `eval echo '${'$as_ac_Header'}'` = yes; then
45228   cat >>confdefs.h <<_ACEOF
45229 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
45230 _ACEOF
45231
45232 fi
45233
45234 done
45235
45236
45237         if test $ac_cv_header_sasl_sasl_h = yes -o $ac_cv_header_sasl_h = yes; then
45238                 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl2" >&5
45239 echo $ECHO_N "checking for sasl_client_init in -lsasl2... $ECHO_C" >&6
45240 if test "${ac_cv_lib_sasl2_sasl_client_init+set}" = set; then
45241   echo $ECHO_N "(cached) $ECHO_C" >&6
45242 else
45243   ac_check_lib_save_LIBS=$LIBS
45244 LIBS="-lsasl2  $LIBS"
45245 cat >conftest.$ac_ext <<_ACEOF
45246 /* confdefs.h.  */
45247 _ACEOF
45248 cat confdefs.h >>conftest.$ac_ext
45249 cat >>conftest.$ac_ext <<_ACEOF
45250 /* end confdefs.h.  */
45251
45252 /* Override any gcc2 internal prototype to avoid an error.  */
45253 #ifdef __cplusplus
45254 extern "C"
45255 #endif
45256 /* We use char because int might match the return type of a gcc2
45257    builtin and then its argument prototype would still apply.  */
45258 char sasl_client_init ();
45259 int
45260 main ()
45261 {
45262 sasl_client_init ();
45263   ;
45264   return 0;
45265 }
45266 _ACEOF
45267 rm -f conftest.$ac_objext conftest$ac_exeext
45268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45269   (eval $ac_link) 2>conftest.er1
45270   ac_status=$?
45271   grep -v '^ *+' conftest.er1 >conftest.err
45272   rm -f conftest.er1
45273   cat conftest.err >&5
45274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45275   (exit $ac_status); } &&
45276          { ac_try='test -z "$ac_c_werror_flag"
45277                          || test ! -s conftest.err'
45278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45279   (eval $ac_try) 2>&5
45280   ac_status=$?
45281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45282   (exit $ac_status); }; } &&
45283          { ac_try='test -s conftest$ac_exeext'
45284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45285   (eval $ac_try) 2>&5
45286   ac_status=$?
45287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45288   (exit $ac_status); }; }; then
45289   ac_cv_lib_sasl2_sasl_client_init=yes
45290 else
45291   echo "$as_me: failed program was:" >&5
45292 sed 's/^/| /' conftest.$ac_ext >&5
45293
45294 ac_cv_lib_sasl2_sasl_client_init=no
45295 fi
45296 rm -f conftest.err conftest.$ac_objext \
45297       conftest$ac_exeext conftest.$ac_ext
45298 LIBS=$ac_check_lib_save_LIBS
45299 fi
45300 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
45301 echo "${ECHO_T}$ac_cv_lib_sasl2_sasl_client_init" >&6
45302 if test $ac_cv_lib_sasl2_sasl_client_init = yes; then
45303   ol_link_sasl="-lsasl2"
45304 else
45305   echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl" >&5
45306 echo $ECHO_N "checking for sasl_client_init in -lsasl... $ECHO_C" >&6
45307 if test "${ac_cv_lib_sasl_sasl_client_init+set}" = set; then
45308   echo $ECHO_N "(cached) $ECHO_C" >&6
45309 else
45310   ac_check_lib_save_LIBS=$LIBS
45311 LIBS="-lsasl  $LIBS"
45312 cat >conftest.$ac_ext <<_ACEOF
45313 /* confdefs.h.  */
45314 _ACEOF
45315 cat confdefs.h >>conftest.$ac_ext
45316 cat >>conftest.$ac_ext <<_ACEOF
45317 /* end confdefs.h.  */
45318
45319 /* Override any gcc2 internal prototype to avoid an error.  */
45320 #ifdef __cplusplus
45321 extern "C"
45322 #endif
45323 /* We use char because int might match the return type of a gcc2
45324    builtin and then its argument prototype would still apply.  */
45325 char sasl_client_init ();
45326 int
45327 main ()
45328 {
45329 sasl_client_init ();
45330   ;
45331   return 0;
45332 }
45333 _ACEOF
45334 rm -f conftest.$ac_objext conftest$ac_exeext
45335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45336   (eval $ac_link) 2>conftest.er1
45337   ac_status=$?
45338   grep -v '^ *+' conftest.er1 >conftest.err
45339   rm -f conftest.er1
45340   cat conftest.err >&5
45341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45342   (exit $ac_status); } &&
45343          { ac_try='test -z "$ac_c_werror_flag"
45344                          || test ! -s conftest.err'
45345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45346   (eval $ac_try) 2>&5
45347   ac_status=$?
45348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45349   (exit $ac_status); }; } &&
45350          { ac_try='test -s conftest$ac_exeext'
45351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45352   (eval $ac_try) 2>&5
45353   ac_status=$?
45354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45355   (exit $ac_status); }; }; then
45356   ac_cv_lib_sasl_sasl_client_init=yes
45357 else
45358   echo "$as_me: failed program was:" >&5
45359 sed 's/^/| /' conftest.$ac_ext >&5
45360
45361 ac_cv_lib_sasl_sasl_client_init=no
45362 fi
45363 rm -f conftest.err conftest.$ac_objext \
45364       conftest$ac_exeext conftest.$ac_ext
45365 LIBS=$ac_check_lib_save_LIBS
45366 fi
45367 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl_sasl_client_init" >&5
45368 echo "${ECHO_T}$ac_cv_lib_sasl_sasl_client_init" >&6
45369 if test $ac_cv_lib_sasl_sasl_client_init = yes; then
45370   ol_link_sasl="-lsasl"
45371 fi
45372
45373 fi
45374
45375         fi
45376
45377         if test $ol_link_sasl = no ; then
45378                 if test $ol_with_cyrus_sasl != auto ; then
45379                         { { echo "$as_me:$LINENO: error: Could not locate Cyrus SASL" >&5
45380 echo "$as_me: error: Could not locate Cyrus SASL" >&2;}
45381    { (exit 1); exit 1; }; }
45382                 else
45383                         { echo "$as_me:$LINENO: WARNING: Could not locate Cyrus SASL" >&5
45384 echo "$as_me: WARNING: Could not locate Cyrus SASL" >&2;}
45385                         { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
45386 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
45387                         if test $ol_link_tls = no ; then
45388                                 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
45389 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
45390                         fi
45391                 fi
45392         else
45393                 echo "$as_me:$LINENO: checking Cyrus SASL library version" >&5
45394 echo $ECHO_N "checking Cyrus SASL library version... $ECHO_C" >&6
45395 if test "${ol_cv_sasl_compat+set}" = set; then
45396   echo $ECHO_N "(cached) $ECHO_C" >&6
45397 else
45398
45399         cat >conftest.$ac_ext <<_ACEOF
45400 /* confdefs.h.  */
45401 _ACEOF
45402 cat confdefs.h >>conftest.$ac_ext
45403 cat >>conftest.$ac_ext <<_ACEOF
45404 /* end confdefs.h.  */
45405
45406 #ifdef HAVE_SASL_SASL_H
45407 #include <sasl/sasl.h>
45408 #else
45409 #include <sasl.h>
45410 #endif
45411
45412 /* Require 2.1.15+ */
45413 #if SASL_VERSION_MAJOR == 2  && SASL_VERSION_MINOR > 1
45414         char *__sasl_compat = "2.2+ or better okay (we guess)";
45415 #elif SASL_VERSION_MAJOR == 2  && SASL_VERSION_MINOR == 1 \
45416         && SASL_VERSION_STEP >=15
45417         char *__sasl_compat = "2.1.15+ or better okay";
45418 #endif
45419
45420 _ACEOF
45421 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45422   $EGREP "__sasl_compat" >/dev/null 2>&1; then
45423   ol_cv_sasl_compat=yes
45424 else
45425   ol_cv_sasl_compat=no
45426 fi
45427 rm -f conftest*
45428
45429 fi
45430 echo "$as_me:$LINENO: result: $ol_cv_sasl_compat" >&5
45431 echo "${ECHO_T}$ol_cv_sasl_compat" >&6
45432
45433                 if test $ol_cv_sasl_compat = no ; then
45434                         ol_link_sasl=no
45435                         { { echo "$as_me:$LINENO: error: Cyrus SASL library located but is incompatible" >&5
45436 echo "$as_me: error: Cyrus SASL library located but is incompatible" >&2;}
45437    { (exit 1); exit 1; }; }
45438                 fi
45439
45440
45441 cat >>confdefs.h <<\_ACEOF
45442 #define HAVE_CYRUS_SASL 1
45443 _ACEOF
45444
45445                 SASL_LIBS="$ol_link_sasl"
45446                 if test $ol_enable_spasswd != no ; then
45447                         ol_link_spasswd=yes
45448                 fi
45449
45450                 ac_save_LIBS="$LIBS"
45451                 LIBS="$LIBS $ol_link_sasl"
45452                 echo "$as_me:$LINENO: checking for sasl_version" >&5
45453 echo $ECHO_N "checking for sasl_version... $ECHO_C" >&6
45454 if test "${ac_cv_func_sasl_version+set}" = set; then
45455   echo $ECHO_N "(cached) $ECHO_C" >&6
45456 else
45457   cat >conftest.$ac_ext <<_ACEOF
45458 /* confdefs.h.  */
45459 _ACEOF
45460 cat confdefs.h >>conftest.$ac_ext
45461 cat >>conftest.$ac_ext <<_ACEOF
45462 /* end confdefs.h.  */
45463 /* Define sasl_version to an innocuous variant, in case <limits.h> declares sasl_version.
45464    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45465 #define sasl_version innocuous_sasl_version
45466
45467 /* System header to define __stub macros and hopefully few prototypes,
45468     which can conflict with char sasl_version (); below.
45469     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45470     <limits.h> exists even on freestanding compilers.  */
45471
45472 #ifdef __STDC__
45473 # include <limits.h>
45474 #else
45475 # include <assert.h>
45476 #endif
45477
45478 #undef sasl_version
45479
45480 /* Override any gcc2 internal prototype to avoid an error.  */
45481 #ifdef __cplusplus
45482 extern "C"
45483 {
45484 #endif
45485 /* We use char because int might match the return type of a gcc2
45486    builtin and then its argument prototype would still apply.  */
45487 char sasl_version ();
45488 /* The GNU C library defines this for functions which it implements
45489     to always fail with ENOSYS.  Some functions are actually named
45490     something starting with __ and the normal name is an alias.  */
45491 #if defined (__stub_sasl_version) || defined (__stub___sasl_version)
45492 choke me
45493 #else
45494 char (*f) () = sasl_version;
45495 #endif
45496 #ifdef __cplusplus
45497 }
45498 #endif
45499
45500 int
45501 main ()
45502 {
45503 return f != sasl_version;
45504   ;
45505   return 0;
45506 }
45507 _ACEOF
45508 rm -f conftest.$ac_objext conftest$ac_exeext
45509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45510   (eval $ac_link) 2>conftest.er1
45511   ac_status=$?
45512   grep -v '^ *+' conftest.er1 >conftest.err
45513   rm -f conftest.er1
45514   cat conftest.err >&5
45515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45516   (exit $ac_status); } &&
45517          { ac_try='test -z "$ac_c_werror_flag"
45518                          || test ! -s conftest.err'
45519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45520   (eval $ac_try) 2>&5
45521   ac_status=$?
45522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45523   (exit $ac_status); }; } &&
45524          { ac_try='test -s conftest$ac_exeext'
45525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45526   (eval $ac_try) 2>&5
45527   ac_status=$?
45528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45529   (exit $ac_status); }; }; then
45530   ac_cv_func_sasl_version=yes
45531 else
45532   echo "$as_me: failed program was:" >&5
45533 sed 's/^/| /' conftest.$ac_ext >&5
45534
45535 ac_cv_func_sasl_version=no
45536 fi
45537 rm -f conftest.err conftest.$ac_objext \
45538       conftest$ac_exeext conftest.$ac_ext
45539 fi
45540 echo "$as_me:$LINENO: result: $ac_cv_func_sasl_version" >&5
45541 echo "${ECHO_T}$ac_cv_func_sasl_version" >&6
45542 if test $ac_cv_func_sasl_version = yes; then
45543
45544 cat >>confdefs.h <<\_ACEOF
45545 #define HAVE_SASL_VERSION 1
45546 _ACEOF
45547
45548 fi
45549
45550                 LIBS="$ac_save_LIBS"
45551
45552                 WITH_SASL=yes
45553         fi
45554
45555 else
45556         { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
45557 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
45558         if test $ol_link_tls = no ; then
45559                 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
45560 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
45561         fi
45562 fi
45563
45564 if test $cross_compiling != yes -a "$ac_cv_mingw32" != yes ; then
45565         dev=no
45566         if test -r /dev/urandom ; then
45567                 dev="/dev/urandom";
45568         elif test -r /idev/urandom ; then
45569                 dev="/idev/urandom";
45570         elif test -r /dev/srandom ; then
45571                 dev="/dev/srandom";
45572         elif test -r /dev/random ; then
45573                 dev="/dev/random";
45574         elif test -r /idev/random ; then
45575                 dev="/idev/random";
45576         fi
45577
45578         if test $dev != no ; then
45579
45580 cat >>confdefs.h <<_ACEOF
45581 #define URANDOM_DEVICE "$dev"
45582 _ACEOF
45583
45584         fi
45585 fi
45586
45587 ol_link_fetch=no
45588 if test $ol_with_fetch != no ; then
45589         ol_LIBS=$LIBS
45590 LIBS="-lfetch -lcom_err $LIBS"
45591 echo "$as_me:$LINENO: checking fetch(3) library" >&5
45592 echo $ECHO_N "checking fetch(3) library... $ECHO_C" >&6
45593 if test "${ol_cv_lib_fetch+set}" = set; then
45594   echo $ECHO_N "(cached) $ECHO_C" >&6
45595 else
45596
45597         cat >conftest.$ac_ext <<_ACEOF
45598 /* confdefs.h.  */
45599 _ACEOF
45600 cat confdefs.h >>conftest.$ac_ext
45601 cat >>conftest.$ac_ext <<_ACEOF
45602 /* end confdefs.h.  */
45603
45604 #include <sys/param.h>
45605 #include <stdio.h>
45606 #include <fetch.h>
45607 int
45608 main ()
45609 {
45610 struct url *u = fetchParseURL("file:///");
45611   ;
45612   return 0;
45613 }
45614 _ACEOF
45615 rm -f conftest.$ac_objext conftest$ac_exeext
45616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45617   (eval $ac_link) 2>conftest.er1
45618   ac_status=$?
45619   grep -v '^ *+' conftest.er1 >conftest.err
45620   rm -f conftest.er1
45621   cat conftest.err >&5
45622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45623   (exit $ac_status); } &&
45624          { ac_try='test -z "$ac_c_werror_flag"
45625                          || test ! -s conftest.err'
45626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45627   (eval $ac_try) 2>&5
45628   ac_status=$?
45629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45630   (exit $ac_status); }; } &&
45631          { ac_try='test -s conftest$ac_exeext'
45632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45633   (eval $ac_try) 2>&5
45634   ac_status=$?
45635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45636   (exit $ac_status); }; }; then
45637   ol_cv_lib_fetch=yes
45638 else
45639   echo "$as_me: failed program was:" >&5
45640 sed 's/^/| /' conftest.$ac_ext >&5
45641
45642 ol_cv_lib_fetch=no
45643 fi
45644 rm -f conftest.err conftest.$ac_objext \
45645       conftest$ac_exeext conftest.$ac_ext
45646 fi
45647 echo "$as_me:$LINENO: result: $ol_cv_lib_fetch" >&5
45648 echo "${ECHO_T}$ol_cv_lib_fetch" >&6
45649 LIBS=$ol_LIBS
45650 if test $ol_cv_lib_fetch != no ; then
45651         ol_link_fetch="-lfetch -lcom_err"
45652
45653 cat >>confdefs.h <<\_ACEOF
45654 #define HAVE_FETCH 1
45655 _ACEOF
45656
45657 fi
45658
45659
45660         if test $ol_cv_lib_fetch != no ; then
45661                 LUTIL_LIBS="$LUTIL_LIBS $ol_link_fetch"
45662                 ol_link_fetch=freebsd
45663
45664         elif test $ol_with_fetch != auto ; then
45665                 { { echo "$as_me:$LINENO: error: no suitable API for --with-fetch=$ol_with_fetch" >&5
45666 echo "$as_me: error: no suitable API for --with-fetch=$ol_with_fetch" >&2;}
45667    { (exit 1); exit 1; }; }
45668         fi
45669 fi
45670
45671 if test $ol_enable_crypt != no ; then
45672         save_LIBS="$LIBS"
45673         LIBS="$TLS_LIBS $LIBS"
45674
45675         echo "$as_me:$LINENO: checking for crypt" >&5
45676 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
45677 if test "${ac_cv_func_crypt+set}" = set; then
45678   echo $ECHO_N "(cached) $ECHO_C" >&6
45679 else
45680   cat >conftest.$ac_ext <<_ACEOF
45681 /* confdefs.h.  */
45682 _ACEOF
45683 cat confdefs.h >>conftest.$ac_ext
45684 cat >>conftest.$ac_ext <<_ACEOF
45685 /* end confdefs.h.  */
45686 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
45687    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45688 #define crypt innocuous_crypt
45689
45690 /* System header to define __stub macros and hopefully few prototypes,
45691     which can conflict with char crypt (); below.
45692     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45693     <limits.h> exists even on freestanding compilers.  */
45694
45695 #ifdef __STDC__
45696 # include <limits.h>
45697 #else
45698 # include <assert.h>
45699 #endif
45700
45701 #undef crypt
45702
45703 /* Override any gcc2 internal prototype to avoid an error.  */
45704 #ifdef __cplusplus
45705 extern "C"
45706 {
45707 #endif
45708 /* We use char because int might match the return type of a gcc2
45709    builtin and then its argument prototype would still apply.  */
45710 char crypt ();
45711 /* The GNU C library defines this for functions which it implements
45712     to always fail with ENOSYS.  Some functions are actually named
45713     something starting with __ and the normal name is an alias.  */
45714 #if defined (__stub_crypt) || defined (__stub___crypt)
45715 choke me
45716 #else
45717 char (*f) () = crypt;
45718 #endif
45719 #ifdef __cplusplus
45720 }
45721 #endif
45722
45723 int
45724 main ()
45725 {
45726 return f != crypt;
45727   ;
45728   return 0;
45729 }
45730 _ACEOF
45731 rm -f conftest.$ac_objext conftest$ac_exeext
45732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45733   (eval $ac_link) 2>conftest.er1
45734   ac_status=$?
45735   grep -v '^ *+' conftest.er1 >conftest.err
45736   rm -f conftest.er1
45737   cat conftest.err >&5
45738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45739   (exit $ac_status); } &&
45740          { ac_try='test -z "$ac_c_werror_flag"
45741                          || test ! -s conftest.err'
45742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45743   (eval $ac_try) 2>&5
45744   ac_status=$?
45745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45746   (exit $ac_status); }; } &&
45747          { ac_try='test -s conftest$ac_exeext'
45748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45749   (eval $ac_try) 2>&5
45750   ac_status=$?
45751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45752   (exit $ac_status); }; }; then
45753   ac_cv_func_crypt=yes
45754 else
45755   echo "$as_me: failed program was:" >&5
45756 sed 's/^/| /' conftest.$ac_ext >&5
45757
45758 ac_cv_func_crypt=no
45759 fi
45760 rm -f conftest.err conftest.$ac_objext \
45761       conftest$ac_exeext conftest.$ac_ext
45762 fi
45763 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
45764 echo "${ECHO_T}$ac_cv_func_crypt" >&6
45765 if test $ac_cv_func_crypt = yes; then
45766   have_crypt=yes
45767 else
45768
45769                 LIBS="$save_LIBS"
45770                 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
45771 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
45772 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
45773   echo $ECHO_N "(cached) $ECHO_C" >&6
45774 else
45775   ac_check_lib_save_LIBS=$LIBS
45776 LIBS="-lcrypt  $LIBS"
45777 cat >conftest.$ac_ext <<_ACEOF
45778 /* confdefs.h.  */
45779 _ACEOF
45780 cat confdefs.h >>conftest.$ac_ext
45781 cat >>conftest.$ac_ext <<_ACEOF
45782 /* end confdefs.h.  */
45783
45784 /* Override any gcc2 internal prototype to avoid an error.  */
45785 #ifdef __cplusplus
45786 extern "C"
45787 #endif
45788 /* We use char because int might match the return type of a gcc2
45789    builtin and then its argument prototype would still apply.  */
45790 char crypt ();
45791 int
45792 main ()
45793 {
45794 crypt ();
45795   ;
45796   return 0;
45797 }
45798 _ACEOF
45799 rm -f conftest.$ac_objext conftest$ac_exeext
45800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45801   (eval $ac_link) 2>conftest.er1
45802   ac_status=$?
45803   grep -v '^ *+' conftest.er1 >conftest.err
45804   rm -f conftest.er1
45805   cat conftest.err >&5
45806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45807   (exit $ac_status); } &&
45808          { ac_try='test -z "$ac_c_werror_flag"
45809                          || test ! -s conftest.err'
45810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45811   (eval $ac_try) 2>&5
45812   ac_status=$?
45813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45814   (exit $ac_status); }; } &&
45815          { ac_try='test -s conftest$ac_exeext'
45816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45817   (eval $ac_try) 2>&5
45818   ac_status=$?
45819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45820   (exit $ac_status); }; }; then
45821   ac_cv_lib_crypt_crypt=yes
45822 else
45823   echo "$as_me: failed program was:" >&5
45824 sed 's/^/| /' conftest.$ac_ext >&5
45825
45826 ac_cv_lib_crypt_crypt=no
45827 fi
45828 rm -f conftest.err conftest.$ac_objext \
45829       conftest$ac_exeext conftest.$ac_ext
45830 LIBS=$ac_check_lib_save_LIBS
45831 fi
45832 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
45833 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
45834 if test $ac_cv_lib_crypt_crypt = yes; then
45835   LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
45836                         have_crypt=yes
45837 else
45838   have_crypt=no
45839 fi
45840
45841 fi
45842
45843
45844         LIBS="$save_LIBS"
45845
45846         if test $have_crypt = yes ; then
45847
45848 cat >>confdefs.h <<\_ACEOF
45849 #define HAVE_CRYPT 1
45850 _ACEOF
45851
45852         else
45853                 { echo "$as_me:$LINENO: WARNING: could not find crypt" >&5
45854 echo "$as_me: WARNING: could not find crypt" >&2;}
45855                 if test $ol_enable_crypt = yes ; then
45856                         { { echo "$as_me:$LINENO: error: could not find crypt, select appropriate options or disable" >&5
45857 echo "$as_me: error: could not find crypt, select appropriate options or disable" >&2;}
45858    { (exit 1); exit 1; }; }
45859                 fi
45860
45861                 { echo "$as_me:$LINENO: WARNING: disabling crypt support" >&5
45862 echo "$as_me: WARNING: disabling crypt support" >&2;}
45863                 ol_enable_crypt=no
45864         fi
45865 fi
45866
45867 if test $ol_enable_proctitle != no ; then
45868         echo "$as_me:$LINENO: checking for setproctitle" >&5
45869 echo $ECHO_N "checking for setproctitle... $ECHO_C" >&6
45870 if test "${ac_cv_func_setproctitle+set}" = set; then
45871   echo $ECHO_N "(cached) $ECHO_C" >&6
45872 else
45873   cat >conftest.$ac_ext <<_ACEOF
45874 /* confdefs.h.  */
45875 _ACEOF
45876 cat confdefs.h >>conftest.$ac_ext
45877 cat >>conftest.$ac_ext <<_ACEOF
45878 /* end confdefs.h.  */
45879 /* Define setproctitle to an innocuous variant, in case <limits.h> declares setproctitle.
45880    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45881 #define setproctitle innocuous_setproctitle
45882
45883 /* System header to define __stub macros and hopefully few prototypes,
45884     which can conflict with char setproctitle (); below.
45885     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45886     <limits.h> exists even on freestanding compilers.  */
45887
45888 #ifdef __STDC__
45889 # include <limits.h>
45890 #else
45891 # include <assert.h>
45892 #endif
45893
45894 #undef setproctitle
45895
45896 /* Override any gcc2 internal prototype to avoid an error.  */
45897 #ifdef __cplusplus
45898 extern "C"
45899 {
45900 #endif
45901 /* We use char because int might match the return type of a gcc2
45902    builtin and then its argument prototype would still apply.  */
45903 char setproctitle ();
45904 /* The GNU C library defines this for functions which it implements
45905     to always fail with ENOSYS.  Some functions are actually named
45906     something starting with __ and the normal name is an alias.  */
45907 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
45908 choke me
45909 #else
45910 char (*f) () = setproctitle;
45911 #endif
45912 #ifdef __cplusplus
45913 }
45914 #endif
45915
45916 int
45917 main ()
45918 {
45919 return f != setproctitle;
45920   ;
45921   return 0;
45922 }
45923 _ACEOF
45924 rm -f conftest.$ac_objext conftest$ac_exeext
45925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45926   (eval $ac_link) 2>conftest.er1
45927   ac_status=$?
45928   grep -v '^ *+' conftest.er1 >conftest.err
45929   rm -f conftest.er1
45930   cat conftest.err >&5
45931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45932   (exit $ac_status); } &&
45933          { ac_try='test -z "$ac_c_werror_flag"
45934                          || test ! -s conftest.err'
45935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45936   (eval $ac_try) 2>&5
45937   ac_status=$?
45938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45939   (exit $ac_status); }; } &&
45940          { ac_try='test -s conftest$ac_exeext'
45941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45942   (eval $ac_try) 2>&5
45943   ac_status=$?
45944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45945   (exit $ac_status); }; }; then
45946   ac_cv_func_setproctitle=yes
45947 else
45948   echo "$as_me: failed program was:" >&5
45949 sed 's/^/| /' conftest.$ac_ext >&5
45950
45951 ac_cv_func_setproctitle=no
45952 fi
45953 rm -f conftest.err conftest.$ac_objext \
45954       conftest$ac_exeext conftest.$ac_ext
45955 fi
45956 echo "$as_me:$LINENO: result: $ac_cv_func_setproctitle" >&5
45957 echo "${ECHO_T}$ac_cv_func_setproctitle" >&6
45958 if test $ac_cv_func_setproctitle = yes; then
45959   have_setproctitle=yes
45960 else
45961
45962                 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
45963 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
45964 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
45965   echo $ECHO_N "(cached) $ECHO_C" >&6
45966 else
45967   ac_check_lib_save_LIBS=$LIBS
45968 LIBS="-lutil  $LIBS"
45969 cat >conftest.$ac_ext <<_ACEOF
45970 /* confdefs.h.  */
45971 _ACEOF
45972 cat confdefs.h >>conftest.$ac_ext
45973 cat >>conftest.$ac_ext <<_ACEOF
45974 /* end confdefs.h.  */
45975
45976 /* Override any gcc2 internal prototype to avoid an error.  */
45977 #ifdef __cplusplus
45978 extern "C"
45979 #endif
45980 /* We use char because int might match the return type of a gcc2
45981    builtin and then its argument prototype would still apply.  */
45982 char setproctitle ();
45983 int
45984 main ()
45985 {
45986 setproctitle ();
45987   ;
45988   return 0;
45989 }
45990 _ACEOF
45991 rm -f conftest.$ac_objext conftest$ac_exeext
45992 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45993   (eval $ac_link) 2>conftest.er1
45994   ac_status=$?
45995   grep -v '^ *+' conftest.er1 >conftest.err
45996   rm -f conftest.er1
45997   cat conftest.err >&5
45998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45999   (exit $ac_status); } &&
46000          { ac_try='test -z "$ac_c_werror_flag"
46001                          || test ! -s conftest.err'
46002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46003   (eval $ac_try) 2>&5
46004   ac_status=$?
46005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46006   (exit $ac_status); }; } &&
46007          { ac_try='test -s conftest$ac_exeext'
46008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46009   (eval $ac_try) 2>&5
46010   ac_status=$?
46011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46012   (exit $ac_status); }; }; then
46013   ac_cv_lib_util_setproctitle=yes
46014 else
46015   echo "$as_me: failed program was:" >&5
46016 sed 's/^/| /' conftest.$ac_ext >&5
46017
46018 ac_cv_lib_util_setproctitle=no
46019 fi
46020 rm -f conftest.err conftest.$ac_objext \
46021       conftest$ac_exeext conftest.$ac_ext
46022 LIBS=$ac_check_lib_save_LIBS
46023 fi
46024 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
46025 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
46026 if test $ac_cv_lib_util_setproctitle = yes; then
46027   have_setproctitle=yes
46028                         LUTIL_LIBS="$LUTIL_LIBS -lutil"
46029 else
46030   have_setproctitle=no
46031                         case $LIBOBJS in
46032     "setproctitle.$ac_objext"   | \
46033   *" setproctitle.$ac_objext"   | \
46034     "setproctitle.$ac_objext "* | \
46035   *" setproctitle.$ac_objext "* ) ;;
46036   *) LIBOBJS="$LIBOBJS setproctitle.$ac_objext" ;;
46037 esac
46038
46039                         LIBSRCS="$LIBSRCS setproctitle.c"
46040 fi
46041
46042 fi
46043
46044
46045         if test $have_setproctitle = yes ; then
46046
46047 cat >>confdefs.h <<\_ACEOF
46048 #define HAVE_SETPROCTITLE 1
46049 _ACEOF
46050
46051         fi
46052 fi
46053
46054 if test $ol_enable_slp != no ; then
46055
46056 for ac_header in slp.h
46057 do
46058 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
46059 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46060   echo "$as_me:$LINENO: checking for $ac_header" >&5
46061 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46062 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46063   echo $ECHO_N "(cached) $ECHO_C" >&6
46064 fi
46065 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46066 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46067 else
46068   # Is the header compilable?
46069 echo "$as_me:$LINENO: checking $ac_header usability" >&5
46070 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
46071 cat >conftest.$ac_ext <<_ACEOF
46072 /* confdefs.h.  */
46073 _ACEOF
46074 cat confdefs.h >>conftest.$ac_ext
46075 cat >>conftest.$ac_ext <<_ACEOF
46076 /* end confdefs.h.  */
46077 $ac_includes_default
46078 #include <$ac_header>
46079 _ACEOF
46080 rm -f conftest.$ac_objext
46081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46082   (eval $ac_compile) 2>conftest.er1
46083   ac_status=$?
46084   grep -v '^ *+' conftest.er1 >conftest.err
46085   rm -f conftest.er1
46086   cat conftest.err >&5
46087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46088   (exit $ac_status); } &&
46089          { ac_try='test -z "$ac_c_werror_flag"
46090                          || test ! -s conftest.err'
46091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46092   (eval $ac_try) 2>&5
46093   ac_status=$?
46094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46095   (exit $ac_status); }; } &&
46096          { ac_try='test -s conftest.$ac_objext'
46097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46098   (eval $ac_try) 2>&5
46099   ac_status=$?
46100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46101   (exit $ac_status); }; }; then
46102   ac_header_compiler=yes
46103 else
46104   echo "$as_me: failed program was:" >&5
46105 sed 's/^/| /' conftest.$ac_ext >&5
46106
46107 ac_header_compiler=no
46108 fi
46109 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46110 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46111 echo "${ECHO_T}$ac_header_compiler" >&6
46112
46113 # Is the header present?
46114 echo "$as_me:$LINENO: checking $ac_header presence" >&5
46115 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
46116 cat >conftest.$ac_ext <<_ACEOF
46117 /* confdefs.h.  */
46118 _ACEOF
46119 cat confdefs.h >>conftest.$ac_ext
46120 cat >>conftest.$ac_ext <<_ACEOF
46121 /* end confdefs.h.  */
46122 #include <$ac_header>
46123 _ACEOF
46124 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
46125   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
46126   ac_status=$?
46127   grep -v '^ *+' conftest.er1 >conftest.err
46128   rm -f conftest.er1
46129   cat conftest.err >&5
46130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46131   (exit $ac_status); } >/dev/null; then
46132   if test -s conftest.err; then
46133     ac_cpp_err=$ac_c_preproc_warn_flag
46134     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
46135   else
46136     ac_cpp_err=
46137   fi
46138 else
46139   ac_cpp_err=yes
46140 fi
46141 if test -z "$ac_cpp_err"; then
46142   ac_header_preproc=yes
46143 else
46144   echo "$as_me: failed program was:" >&5
46145 sed 's/^/| /' conftest.$ac_ext >&5
46146
46147   ac_header_preproc=no
46148 fi
46149 rm -f conftest.err conftest.$ac_ext
46150 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46151 echo "${ECHO_T}$ac_header_preproc" >&6
46152
46153 # So?  What about this header?
46154 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
46155   yes:no: )
46156     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
46157 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
46158     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
46159 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
46160     ac_header_preproc=yes
46161     ;;
46162   no:yes:* )
46163     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
46164 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
46165     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
46166 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
46167     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
46168 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
46169     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
46170 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
46171     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
46172 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
46173     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
46174 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
46175     (
46176       cat <<\_ASBOX
46177 ## ------------------------------------------ ##
46178 ## Report this to the AC_PACKAGE_NAME lists.  ##
46179 ## ------------------------------------------ ##
46180 _ASBOX
46181     ) |
46182       sed "s/^/$as_me: WARNING:     /" >&2
46183     ;;
46184 esac
46185 echo "$as_me:$LINENO: checking for $ac_header" >&5
46186 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46187 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46188   echo $ECHO_N "(cached) $ECHO_C" >&6
46189 else
46190   eval "$as_ac_Header=\$ac_header_preproc"
46191 fi
46192 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46193 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46194
46195 fi
46196 if test `eval echo '${'$as_ac_Header'}'` = yes; then
46197   cat >>confdefs.h <<_ACEOF
46198 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
46199 _ACEOF
46200
46201 fi
46202
46203 done
46204
46205
46206         if test $ac_cv_header_slp_h = yes ; then
46207                 echo "$as_me:$LINENO: checking for SLPOpen in -lslp" >&5
46208 echo $ECHO_N "checking for SLPOpen in -lslp... $ECHO_C" >&6
46209 if test "${ac_cv_lib_slp_SLPOpen+set}" = set; then
46210   echo $ECHO_N "(cached) $ECHO_C" >&6
46211 else
46212   ac_check_lib_save_LIBS=$LIBS
46213 LIBS="-lslp  $LIBS"
46214 cat >conftest.$ac_ext <<_ACEOF
46215 /* confdefs.h.  */
46216 _ACEOF
46217 cat confdefs.h >>conftest.$ac_ext
46218 cat >>conftest.$ac_ext <<_ACEOF
46219 /* end confdefs.h.  */
46220
46221 /* Override any gcc2 internal prototype to avoid an error.  */
46222 #ifdef __cplusplus
46223 extern "C"
46224 #endif
46225 /* We use char because int might match the return type of a gcc2
46226    builtin and then its argument prototype would still apply.  */
46227 char SLPOpen ();
46228 int
46229 main ()
46230 {
46231 SLPOpen ();
46232   ;
46233   return 0;
46234 }
46235 _ACEOF
46236 rm -f conftest.$ac_objext conftest$ac_exeext
46237 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46238   (eval $ac_link) 2>conftest.er1
46239   ac_status=$?
46240   grep -v '^ *+' conftest.er1 >conftest.err
46241   rm -f conftest.er1
46242   cat conftest.err >&5
46243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46244   (exit $ac_status); } &&
46245          { ac_try='test -z "$ac_c_werror_flag"
46246                          || test ! -s conftest.err'
46247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46248   (eval $ac_try) 2>&5
46249   ac_status=$?
46250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46251   (exit $ac_status); }; } &&
46252          { ac_try='test -s conftest$ac_exeext'
46253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46254   (eval $ac_try) 2>&5
46255   ac_status=$?
46256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46257   (exit $ac_status); }; }; then
46258   ac_cv_lib_slp_SLPOpen=yes
46259 else
46260   echo "$as_me: failed program was:" >&5
46261 sed 's/^/| /' conftest.$ac_ext >&5
46262
46263 ac_cv_lib_slp_SLPOpen=no
46264 fi
46265 rm -f conftest.err conftest.$ac_objext \
46266       conftest$ac_exeext conftest.$ac_ext
46267 LIBS=$ac_check_lib_save_LIBS
46268 fi
46269 echo "$as_me:$LINENO: result: $ac_cv_lib_slp_SLPOpen" >&5
46270 echo "${ECHO_T}$ac_cv_lib_slp_SLPOpen" >&6
46271 if test $ac_cv_lib_slp_SLPOpen = yes; then
46272   have_slp=yes
46273 else
46274   have_slp=no
46275 fi
46276
46277                 if test $have_slp = yes ; then
46278
46279 cat >>confdefs.h <<\_ACEOF
46280 #define HAVE_SLP 1
46281 _ACEOF
46282
46283                         SLAPD_SLP_LIBS=-lslp
46284                 fi
46285
46286         elif test $ol_enable_slp = yes ; then
46287                 { { echo "$as_me:$LINENO: error: SLP not found" >&5
46288 echo "$as_me: error: SLP not found" >&2;}
46289    { (exit 1); exit 1; }; }
46290         fi
46291 fi
46292
46293 if test "$ol_with_multiple_precision" != "no" ; then
46294         ol_have_bignum=no
46295         ol_have_gmp=no
46296
46297
46298
46299 for ac_header in openssl/bn.h bn.h
46300 do
46301 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
46302 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46303   echo "$as_me:$LINENO: checking for $ac_header" >&5
46304 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46305 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46306   echo $ECHO_N "(cached) $ECHO_C" >&6
46307 fi
46308 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46309 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46310 else
46311   # Is the header compilable?
46312 echo "$as_me:$LINENO: checking $ac_header usability" >&5
46313 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
46314 cat >conftest.$ac_ext <<_ACEOF
46315 /* confdefs.h.  */
46316 _ACEOF
46317 cat confdefs.h >>conftest.$ac_ext
46318 cat >>conftest.$ac_ext <<_ACEOF
46319 /* end confdefs.h.  */
46320 $ac_includes_default
46321 #include <$ac_header>
46322 _ACEOF
46323 rm -f conftest.$ac_objext
46324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46325   (eval $ac_compile) 2>conftest.er1
46326   ac_status=$?
46327   grep -v '^ *+' conftest.er1 >conftest.err
46328   rm -f conftest.er1
46329   cat conftest.err >&5
46330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46331   (exit $ac_status); } &&
46332          { ac_try='test -z "$ac_c_werror_flag"
46333                          || test ! -s conftest.err'
46334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46335   (eval $ac_try) 2>&5
46336   ac_status=$?
46337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46338   (exit $ac_status); }; } &&
46339          { ac_try='test -s conftest.$ac_objext'
46340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46341   (eval $ac_try) 2>&5
46342   ac_status=$?
46343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46344   (exit $ac_status); }; }; then
46345   ac_header_compiler=yes
46346 else
46347   echo "$as_me: failed program was:" >&5
46348 sed 's/^/| /' conftest.$ac_ext >&5
46349
46350 ac_header_compiler=no
46351 fi
46352 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46353 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46354 echo "${ECHO_T}$ac_header_compiler" >&6
46355
46356 # Is the header present?
46357 echo "$as_me:$LINENO: checking $ac_header presence" >&5
46358 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
46359 cat >conftest.$ac_ext <<_ACEOF
46360 /* confdefs.h.  */
46361 _ACEOF
46362 cat confdefs.h >>conftest.$ac_ext
46363 cat >>conftest.$ac_ext <<_ACEOF
46364 /* end confdefs.h.  */
46365 #include <$ac_header>
46366 _ACEOF
46367 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
46368   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
46369   ac_status=$?
46370   grep -v '^ *+' conftest.er1 >conftest.err
46371   rm -f conftest.er1
46372   cat conftest.err >&5
46373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46374   (exit $ac_status); } >/dev/null; then
46375   if test -s conftest.err; then
46376     ac_cpp_err=$ac_c_preproc_warn_flag
46377     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
46378   else
46379     ac_cpp_err=
46380   fi
46381 else
46382   ac_cpp_err=yes
46383 fi
46384 if test -z "$ac_cpp_err"; then
46385   ac_header_preproc=yes
46386 else
46387   echo "$as_me: failed program was:" >&5
46388 sed 's/^/| /' conftest.$ac_ext >&5
46389
46390   ac_header_preproc=no
46391 fi
46392 rm -f conftest.err conftest.$ac_ext
46393 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46394 echo "${ECHO_T}$ac_header_preproc" >&6
46395
46396 # So?  What about this header?
46397 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
46398   yes:no: )
46399     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
46400 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
46401     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
46402 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
46403     ac_header_preproc=yes
46404     ;;
46405   no:yes:* )
46406     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
46407 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
46408     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
46409 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
46410     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
46411 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
46412     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
46413 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
46414     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
46415 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
46416     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
46417 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
46418     (
46419       cat <<\_ASBOX
46420 ## ------------------------------------------ ##
46421 ## Report this to the AC_PACKAGE_NAME lists.  ##
46422 ## ------------------------------------------ ##
46423 _ASBOX
46424     ) |
46425       sed "s/^/$as_me: WARNING:     /" >&2
46426     ;;
46427 esac
46428 echo "$as_me:$LINENO: checking for $ac_header" >&5
46429 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46430 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46431   echo $ECHO_N "(cached) $ECHO_C" >&6
46432 else
46433   eval "$as_ac_Header=\$ac_header_preproc"
46434 fi
46435 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46436 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46437
46438 fi
46439 if test `eval echo '${'$as_ac_Header'}'` = yes; then
46440   cat >>confdefs.h <<_ACEOF
46441 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
46442 _ACEOF
46443
46444 fi
46445
46446 done
46447
46448
46449
46450 for ac_header in openssl/crypto.h crypto.h
46451 do
46452 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
46453 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46454   echo "$as_me:$LINENO: checking for $ac_header" >&5
46455 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46456 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46457   echo $ECHO_N "(cached) $ECHO_C" >&6
46458 fi
46459 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46460 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46461 else
46462   # Is the header compilable?
46463 echo "$as_me:$LINENO: checking $ac_header usability" >&5
46464 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
46465 cat >conftest.$ac_ext <<_ACEOF
46466 /* confdefs.h.  */
46467 _ACEOF
46468 cat confdefs.h >>conftest.$ac_ext
46469 cat >>conftest.$ac_ext <<_ACEOF
46470 /* end confdefs.h.  */
46471 $ac_includes_default
46472 #include <$ac_header>
46473 _ACEOF
46474 rm -f conftest.$ac_objext
46475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46476   (eval $ac_compile) 2>conftest.er1
46477   ac_status=$?
46478   grep -v '^ *+' conftest.er1 >conftest.err
46479   rm -f conftest.er1
46480   cat conftest.err >&5
46481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46482   (exit $ac_status); } &&
46483          { ac_try='test -z "$ac_c_werror_flag"
46484                          || test ! -s conftest.err'
46485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46486   (eval $ac_try) 2>&5
46487   ac_status=$?
46488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46489   (exit $ac_status); }; } &&
46490          { ac_try='test -s conftest.$ac_objext'
46491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46492   (eval $ac_try) 2>&5
46493   ac_status=$?
46494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46495   (exit $ac_status); }; }; then
46496   ac_header_compiler=yes
46497 else
46498   echo "$as_me: failed program was:" >&5
46499 sed 's/^/| /' conftest.$ac_ext >&5
46500
46501 ac_header_compiler=no
46502 fi
46503 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46504 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46505 echo "${ECHO_T}$ac_header_compiler" >&6
46506
46507 # Is the header present?
46508 echo "$as_me:$LINENO: checking $ac_header presence" >&5
46509 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
46510 cat >conftest.$ac_ext <<_ACEOF
46511 /* confdefs.h.  */
46512 _ACEOF
46513 cat confdefs.h >>conftest.$ac_ext
46514 cat >>conftest.$ac_ext <<_ACEOF
46515 /* end confdefs.h.  */
46516 #include <$ac_header>
46517 _ACEOF
46518 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
46519   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
46520   ac_status=$?
46521   grep -v '^ *+' conftest.er1 >conftest.err
46522   rm -f conftest.er1
46523   cat conftest.err >&5
46524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46525   (exit $ac_status); } >/dev/null; then
46526   if test -s conftest.err; then
46527     ac_cpp_err=$ac_c_preproc_warn_flag
46528     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
46529   else
46530     ac_cpp_err=
46531   fi
46532 else
46533   ac_cpp_err=yes
46534 fi
46535 if test -z "$ac_cpp_err"; then
46536   ac_header_preproc=yes
46537 else
46538   echo "$as_me: failed program was:" >&5
46539 sed 's/^/| /' conftest.$ac_ext >&5
46540
46541   ac_header_preproc=no
46542 fi
46543 rm -f conftest.err conftest.$ac_ext
46544 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46545 echo "${ECHO_T}$ac_header_preproc" >&6
46546
46547 # So?  What about this header?
46548 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
46549   yes:no: )
46550     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
46551 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
46552     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
46553 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
46554     ac_header_preproc=yes
46555     ;;
46556   no:yes:* )
46557     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
46558 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
46559     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
46560 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
46561     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
46562 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
46563     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
46564 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
46565     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
46566 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
46567     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
46568 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
46569     (
46570       cat <<\_ASBOX
46571 ## ------------------------------------------ ##
46572 ## Report this to the AC_PACKAGE_NAME lists.  ##
46573 ## ------------------------------------------ ##
46574 _ASBOX
46575     ) |
46576       sed "s/^/$as_me: WARNING:     /" >&2
46577     ;;
46578 esac
46579 echo "$as_me:$LINENO: checking for $ac_header" >&5
46580 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46581 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46582   echo $ECHO_N "(cached) $ECHO_C" >&6
46583 else
46584   eval "$as_ac_Header=\$ac_header_preproc"
46585 fi
46586 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46587 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46588
46589 fi
46590 if test `eval echo '${'$as_ac_Header'}'` = yes; then
46591   cat >>confdefs.h <<_ACEOF
46592 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
46593 _ACEOF
46594
46595 fi
46596
46597 done
46598
46599
46600 for ac_header in gmp.h
46601 do
46602 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
46603 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46604   echo "$as_me:$LINENO: checking for $ac_header" >&5
46605 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46606 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46607   echo $ECHO_N "(cached) $ECHO_C" >&6
46608 fi
46609 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46610 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46611 else
46612   # Is the header compilable?
46613 echo "$as_me:$LINENO: checking $ac_header usability" >&5
46614 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
46615 cat >conftest.$ac_ext <<_ACEOF
46616 /* confdefs.h.  */
46617 _ACEOF
46618 cat confdefs.h >>conftest.$ac_ext
46619 cat >>conftest.$ac_ext <<_ACEOF
46620 /* end confdefs.h.  */
46621 $ac_includes_default
46622 #include <$ac_header>
46623 _ACEOF
46624 rm -f conftest.$ac_objext
46625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46626   (eval $ac_compile) 2>conftest.er1
46627   ac_status=$?
46628   grep -v '^ *+' conftest.er1 >conftest.err
46629   rm -f conftest.er1
46630   cat conftest.err >&5
46631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46632   (exit $ac_status); } &&
46633          { ac_try='test -z "$ac_c_werror_flag"
46634                          || test ! -s conftest.err'
46635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46636   (eval $ac_try) 2>&5
46637   ac_status=$?
46638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46639   (exit $ac_status); }; } &&
46640          { ac_try='test -s conftest.$ac_objext'
46641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46642   (eval $ac_try) 2>&5
46643   ac_status=$?
46644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46645   (exit $ac_status); }; }; then
46646   ac_header_compiler=yes
46647 else
46648   echo "$as_me: failed program was:" >&5
46649 sed 's/^/| /' conftest.$ac_ext >&5
46650
46651 ac_header_compiler=no
46652 fi
46653 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46654 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46655 echo "${ECHO_T}$ac_header_compiler" >&6
46656
46657 # Is the header present?
46658 echo "$as_me:$LINENO: checking $ac_header presence" >&5
46659 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
46660 cat >conftest.$ac_ext <<_ACEOF
46661 /* confdefs.h.  */
46662 _ACEOF
46663 cat confdefs.h >>conftest.$ac_ext
46664 cat >>conftest.$ac_ext <<_ACEOF
46665 /* end confdefs.h.  */
46666 #include <$ac_header>
46667 _ACEOF
46668 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
46669   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
46670   ac_status=$?
46671   grep -v '^ *+' conftest.er1 >conftest.err
46672   rm -f conftest.er1
46673   cat conftest.err >&5
46674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46675   (exit $ac_status); } >/dev/null; then
46676   if test -s conftest.err; then
46677     ac_cpp_err=$ac_c_preproc_warn_flag
46678     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
46679   else
46680     ac_cpp_err=
46681   fi
46682 else
46683   ac_cpp_err=yes
46684 fi
46685 if test -z "$ac_cpp_err"; then
46686   ac_header_preproc=yes
46687 else
46688   echo "$as_me: failed program was:" >&5
46689 sed 's/^/| /' conftest.$ac_ext >&5
46690
46691   ac_header_preproc=no
46692 fi
46693 rm -f conftest.err conftest.$ac_ext
46694 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46695 echo "${ECHO_T}$ac_header_preproc" >&6
46696
46697 # So?  What about this header?
46698 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
46699   yes:no: )
46700     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
46701 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
46702     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
46703 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
46704     ac_header_preproc=yes
46705     ;;
46706   no:yes:* )
46707     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
46708 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
46709     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
46710 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
46711     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
46712 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
46713     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
46714 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
46715     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
46716 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
46717     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
46718 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
46719     (
46720       cat <<\_ASBOX
46721 ## ------------------------------------------ ##
46722 ## Report this to the AC_PACKAGE_NAME lists.  ##
46723 ## ------------------------------------------ ##
46724 _ASBOX
46725     ) |
46726       sed "s/^/$as_me: WARNING:     /" >&2
46727     ;;
46728 esac
46729 echo "$as_me:$LINENO: checking for $ac_header" >&5
46730 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46731 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46732   echo $ECHO_N "(cached) $ECHO_C" >&6
46733 else
46734   eval "$as_ac_Header=\$ac_header_preproc"
46735 fi
46736 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46737 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46738
46739 fi
46740 if test `eval echo '${'$as_ac_Header'}'` = yes; then
46741   cat >>confdefs.h <<_ACEOF
46742 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
46743 _ACEOF
46744
46745 fi
46746
46747 done
46748
46749
46750         if test "$ol_with_tls" = "found" ; then
46751                 ol_have_bn_h=no
46752                 ol_have_crypto_h=no
46753
46754                 if test "$ac_cv_header_openssl_bn_h" = "yes" \
46755                                 -o "$ac_cv_header_bn_h" = "yes" ; then
46756                         ol_have_bn_h=yes
46757                 fi
46758
46759                 if test "$ac_cv_header_openssl_crypto_h" = "yes" \
46760                                 -o "$ac_cv_header_crypto_h" = "yes" ; then
46761                         ol_have_crypto_h=yes
46762                 fi
46763
46764                 if test "$ol_have_bn_h" = "yes" \
46765                                 -a "$ol_have_crypto_h" = "yes" ; then
46766                         ol_have_bignum=yes
46767                 fi
46768         fi
46769
46770         if test $ac_cv_header_gmp_h = yes ; then
46771                 echo "$as_me:$LINENO: checking for __gmpz_add_ui in -lgmp" >&5
46772 echo $ECHO_N "checking for __gmpz_add_ui in -lgmp... $ECHO_C" >&6
46773 if test "${ac_cv_lib_gmp___gmpz_add_ui+set}" = set; then
46774   echo $ECHO_N "(cached) $ECHO_C" >&6
46775 else
46776   ac_check_lib_save_LIBS=$LIBS
46777 LIBS="-lgmp  $LIBS"
46778 cat >conftest.$ac_ext <<_ACEOF
46779 /* confdefs.h.  */
46780 _ACEOF
46781 cat confdefs.h >>conftest.$ac_ext
46782 cat >>conftest.$ac_ext <<_ACEOF
46783 /* end confdefs.h.  */
46784
46785 /* Override any gcc2 internal prototype to avoid an error.  */
46786 #ifdef __cplusplus
46787 extern "C"
46788 #endif
46789 /* We use char because int might match the return type of a gcc2
46790    builtin and then its argument prototype would still apply.  */
46791 char __gmpz_add_ui ();
46792 int
46793 main ()
46794 {
46795 __gmpz_add_ui ();
46796   ;
46797   return 0;
46798 }
46799 _ACEOF
46800 rm -f conftest.$ac_objext conftest$ac_exeext
46801 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46802   (eval $ac_link) 2>conftest.er1
46803   ac_status=$?
46804   grep -v '^ *+' conftest.er1 >conftest.err
46805   rm -f conftest.er1
46806   cat conftest.err >&5
46807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46808   (exit $ac_status); } &&
46809          { ac_try='test -z "$ac_c_werror_flag"
46810                          || test ! -s conftest.err'
46811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46812   (eval $ac_try) 2>&5
46813   ac_status=$?
46814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46815   (exit $ac_status); }; } &&
46816          { ac_try='test -s conftest$ac_exeext'
46817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46818   (eval $ac_try) 2>&5
46819   ac_status=$?
46820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46821   (exit $ac_status); }; }; then
46822   ac_cv_lib_gmp___gmpz_add_ui=yes
46823 else
46824   echo "$as_me: failed program was:" >&5
46825 sed 's/^/| /' conftest.$ac_ext >&5
46826
46827 ac_cv_lib_gmp___gmpz_add_ui=no
46828 fi
46829 rm -f conftest.err conftest.$ac_objext \
46830       conftest$ac_exeext conftest.$ac_ext
46831 LIBS=$ac_check_lib_save_LIBS
46832 fi
46833 echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmpz_add_ui" >&5
46834 echo "${ECHO_T}$ac_cv_lib_gmp___gmpz_add_ui" >&6
46835 if test $ac_cv_lib_gmp___gmpz_add_ui = yes; then
46836   have_gmp=yes
46837 else
46838   have_gmp=no
46839 fi
46840
46841                 if test $have_gmp = yes ; then
46842                         ol_have_gmp=yes
46843                 fi
46844         fi
46845
46846         echo "$as_me:$LINENO: checking for multiple precision support" >&5
46847 echo $ECHO_N "checking for multiple precision support... $ECHO_C" >&6
46848
46849         ol_mp_support="none"
46850         case "$ol_with_multiple_precision" in
46851         auto)
46852                                                                                 if test "$ol_have_bignum" = "yes" ; then
46853                         ol_mp_support="bignum"
46854                 else
46855                         if test "$ol_have_gmp" = "yes" ; then
46856                                 ol_mp_support="gmp"
46857                         fi
46858                 fi
46859                 ;;
46860         bignum)
46861                 if test "$ol_have_bignum" != "yes" ; then
46862                         { { echo "$as_me:$LINENO: error: OpenSSL's BIGNUM not available" >&5
46863 echo "$as_me: error: OpenSSL's BIGNUM not available" >&2;}
46864    { (exit 1); exit 1; }; }
46865                 fi
46866                 ol_mp_support="bignum"
46867                 ;;
46868         gmp)
46869                 if test "$ol_have_gmp" != "yes" ; then
46870                         { { echo "$as_me:$LINENO: error: GMP not available" >&5
46871 echo "$as_me: error: GMP not available" >&2;}
46872    { (exit 1); exit 1; }; }
46873                 fi
46874                 ol_mp_support="gmp"
46875                 ;;
46876         yes)
46877                 if test "$ol_have_bignum" = "yes" ; then
46878                         ol_mp_support="bignum"
46879                 elif test "$ol_have_gmp" = "yes" ; then
46880                         ol_mp_support="gmp"
46881                 else
46882                         { { echo "$as_me:$LINENO: error: not available" >&5
46883 echo "$as_me: error: not available" >&2;}
46884    { (exit 1); exit 1; }; }
46885                 fi
46886                 ;;
46887         esac
46888
46889         case "$ol_mp_support" in
46890         bignum)
46891
46892 cat >>confdefs.h <<\_ACEOF
46893 #define HAVE_BIGNUM 1
46894 _ACEOF
46895
46896                 ;;
46897         gmp)
46898
46899 cat >>confdefs.h <<\_ACEOF
46900 #define HAVE_GMP 1
46901 _ACEOF
46902
46903                 SLAPD_GMP_LIBS=-lgmp
46904                 ;;
46905         none)
46906                 ;;
46907         esac
46908
46909         echo "$as_me:$LINENO: result: $ol_mp_support" >&5
46910 echo "${ECHO_T}$ol_mp_support" >&6
46911 fi
46912
46913
46914 echo "$as_me:$LINENO: checking long long" >&5
46915 echo $ECHO_N "checking long long... $ECHO_C" >&6
46916 if test "${ol_cv_type_long_long+set}" = set; then
46917   echo $ECHO_N "(cached) $ECHO_C" >&6
46918 else
46919
46920         cat >conftest.$ac_ext <<_ACEOF
46921 /* confdefs.h.  */
46922 _ACEOF
46923 cat confdefs.h >>conftest.$ac_ext
46924 cat >>conftest.$ac_ext <<_ACEOF
46925 /* end confdefs.h.  */
46926
46927 int
46928 main ()
46929 {
46930 long long x;
46931   ;
46932   return 0;
46933 }
46934 _ACEOF
46935 rm -f conftest.$ac_objext
46936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46937   (eval $ac_compile) 2>conftest.er1
46938   ac_status=$?
46939   grep -v '^ *+' conftest.er1 >conftest.err
46940   rm -f conftest.er1
46941   cat conftest.err >&5
46942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46943   (exit $ac_status); } &&
46944          { ac_try='test -z "$ac_c_werror_flag"
46945                          || test ! -s conftest.err'
46946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46947   (eval $ac_try) 2>&5
46948   ac_status=$?
46949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46950   (exit $ac_status); }; } &&
46951          { ac_try='test -s conftest.$ac_objext'
46952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46953   (eval $ac_try) 2>&5
46954   ac_status=$?
46955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46956   (exit $ac_status); }; }; then
46957   ol_cv_type_long_long=yes
46958 else
46959   echo "$as_me: failed program was:" >&5
46960 sed 's/^/| /' conftest.$ac_ext >&5
46961
46962 ol_cv_type_long_long=no
46963 fi
46964 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46965 fi
46966 echo "$as_me:$LINENO: result: $ol_cv_type_long_long" >&5
46967 echo "${ECHO_T}$ol_cv_type_long_long" >&6
46968 if test $ol_cv_type_long_long = yes; then
46969
46970 cat >>confdefs.h <<\_ACEOF
46971 #define HAVE_LONG_LONG 1
46972 _ACEOF
46973
46974 fi
46975
46976 echo "$as_me:$LINENO: checking for mode_t" >&5
46977 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
46978 if test "${ac_cv_type_mode_t+set}" = set; then
46979   echo $ECHO_N "(cached) $ECHO_C" >&6
46980 else
46981   cat >conftest.$ac_ext <<_ACEOF
46982 /* confdefs.h.  */
46983 _ACEOF
46984 cat confdefs.h >>conftest.$ac_ext
46985 cat >>conftest.$ac_ext <<_ACEOF
46986 /* end confdefs.h.  */
46987 $ac_includes_default
46988 int
46989 main ()
46990 {
46991 if ((mode_t *) 0)
46992   return 0;
46993 if (sizeof (mode_t))
46994   return 0;
46995   ;
46996   return 0;
46997 }
46998 _ACEOF
46999 rm -f conftest.$ac_objext
47000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47001   (eval $ac_compile) 2>conftest.er1
47002   ac_status=$?
47003   grep -v '^ *+' conftest.er1 >conftest.err
47004   rm -f conftest.er1
47005   cat conftest.err >&5
47006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47007   (exit $ac_status); } &&
47008          { ac_try='test -z "$ac_c_werror_flag"
47009                          || test ! -s conftest.err'
47010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47011   (eval $ac_try) 2>&5
47012   ac_status=$?
47013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47014   (exit $ac_status); }; } &&
47015          { ac_try='test -s conftest.$ac_objext'
47016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47017   (eval $ac_try) 2>&5
47018   ac_status=$?
47019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47020   (exit $ac_status); }; }; then
47021   ac_cv_type_mode_t=yes
47022 else
47023   echo "$as_me: failed program was:" >&5
47024 sed 's/^/| /' conftest.$ac_ext >&5
47025
47026 ac_cv_type_mode_t=no
47027 fi
47028 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47029 fi
47030 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
47031 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
47032 if test $ac_cv_type_mode_t = yes; then
47033   :
47034 else
47035
47036 cat >>confdefs.h <<_ACEOF
47037 #define mode_t int
47038 _ACEOF
47039
47040 fi
47041
47042 echo "$as_me:$LINENO: checking for off_t" >&5
47043 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
47044 if test "${ac_cv_type_off_t+set}" = set; then
47045   echo $ECHO_N "(cached) $ECHO_C" >&6
47046 else
47047   cat >conftest.$ac_ext <<_ACEOF
47048 /* confdefs.h.  */
47049 _ACEOF
47050 cat confdefs.h >>conftest.$ac_ext
47051 cat >>conftest.$ac_ext <<_ACEOF
47052 /* end confdefs.h.  */
47053 $ac_includes_default
47054 int
47055 main ()
47056 {
47057 if ((off_t *) 0)
47058   return 0;
47059 if (sizeof (off_t))
47060   return 0;
47061   ;
47062   return 0;
47063 }
47064 _ACEOF
47065 rm -f conftest.$ac_objext
47066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47067   (eval $ac_compile) 2>conftest.er1
47068   ac_status=$?
47069   grep -v '^ *+' conftest.er1 >conftest.err
47070   rm -f conftest.er1
47071   cat conftest.err >&5
47072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47073   (exit $ac_status); } &&
47074          { ac_try='test -z "$ac_c_werror_flag"
47075                          || test ! -s conftest.err'
47076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47077   (eval $ac_try) 2>&5
47078   ac_status=$?
47079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47080   (exit $ac_status); }; } &&
47081          { ac_try='test -s conftest.$ac_objext'
47082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47083   (eval $ac_try) 2>&5
47084   ac_status=$?
47085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47086   (exit $ac_status); }; }; then
47087   ac_cv_type_off_t=yes
47088 else
47089   echo "$as_me: failed program was:" >&5
47090 sed 's/^/| /' conftest.$ac_ext >&5
47091
47092 ac_cv_type_off_t=no
47093 fi
47094 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47095 fi
47096 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
47097 echo "${ECHO_T}$ac_cv_type_off_t" >&6
47098 if test $ac_cv_type_off_t = yes; then
47099   :
47100 else
47101
47102 cat >>confdefs.h <<_ACEOF
47103 #define off_t long
47104 _ACEOF
47105
47106 fi
47107
47108 echo "$as_me:$LINENO: checking for pid_t" >&5
47109 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
47110 if test "${ac_cv_type_pid_t+set}" = set; then
47111   echo $ECHO_N "(cached) $ECHO_C" >&6
47112 else
47113   cat >conftest.$ac_ext <<_ACEOF
47114 /* confdefs.h.  */
47115 _ACEOF
47116 cat confdefs.h >>conftest.$ac_ext
47117 cat >>conftest.$ac_ext <<_ACEOF
47118 /* end confdefs.h.  */
47119 $ac_includes_default
47120 int
47121 main ()
47122 {
47123 if ((pid_t *) 0)
47124   return 0;
47125 if (sizeof (pid_t))
47126   return 0;
47127   ;
47128   return 0;
47129 }
47130 _ACEOF
47131 rm -f conftest.$ac_objext
47132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47133   (eval $ac_compile) 2>conftest.er1
47134   ac_status=$?
47135   grep -v '^ *+' conftest.er1 >conftest.err
47136   rm -f conftest.er1
47137   cat conftest.err >&5
47138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47139   (exit $ac_status); } &&
47140          { ac_try='test -z "$ac_c_werror_flag"
47141                          || test ! -s conftest.err'
47142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47143   (eval $ac_try) 2>&5
47144   ac_status=$?
47145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47146   (exit $ac_status); }; } &&
47147          { ac_try='test -s conftest.$ac_objext'
47148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47149   (eval $ac_try) 2>&5
47150   ac_status=$?
47151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47152   (exit $ac_status); }; }; then
47153   ac_cv_type_pid_t=yes
47154 else
47155   echo "$as_me: failed program was:" >&5
47156 sed 's/^/| /' conftest.$ac_ext >&5
47157
47158 ac_cv_type_pid_t=no
47159 fi
47160 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47161 fi
47162 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
47163 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
47164 if test $ac_cv_type_pid_t = yes; then
47165   :
47166 else
47167
47168 cat >>confdefs.h <<_ACEOF
47169 #define pid_t int
47170 _ACEOF
47171
47172 fi
47173
47174 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
47175 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
47176 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
47177   echo $ECHO_N "(cached) $ECHO_C" >&6
47178 else
47179   cat >conftest.$ac_ext <<_ACEOF
47180 /* confdefs.h.  */
47181 _ACEOF
47182 cat confdefs.h >>conftest.$ac_ext
47183 cat >>conftest.$ac_ext <<_ACEOF
47184 /* end confdefs.h.  */
47185 $ac_includes_default
47186 int
47187 main ()
47188 {
47189 if ((ptrdiff_t *) 0)
47190   return 0;
47191 if (sizeof (ptrdiff_t))
47192   return 0;
47193   ;
47194   return 0;
47195 }
47196 _ACEOF
47197 rm -f conftest.$ac_objext
47198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47199   (eval $ac_compile) 2>conftest.er1
47200   ac_status=$?
47201   grep -v '^ *+' conftest.er1 >conftest.err
47202   rm -f conftest.er1
47203   cat conftest.err >&5
47204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47205   (exit $ac_status); } &&
47206          { ac_try='test -z "$ac_c_werror_flag"
47207                          || test ! -s conftest.err'
47208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47209   (eval $ac_try) 2>&5
47210   ac_status=$?
47211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47212   (exit $ac_status); }; } &&
47213          { ac_try='test -s conftest.$ac_objext'
47214   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47215   (eval $ac_try) 2>&5
47216   ac_status=$?
47217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47218   (exit $ac_status); }; }; then
47219   ac_cv_type_ptrdiff_t=yes
47220 else
47221   echo "$as_me: failed program was:" >&5
47222 sed 's/^/| /' conftest.$ac_ext >&5
47223
47224 ac_cv_type_ptrdiff_t=no
47225 fi
47226 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47227 fi
47228 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
47229 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
47230 if test $ac_cv_type_ptrdiff_t = yes; then
47231
47232 cat >>confdefs.h <<_ACEOF
47233 #define HAVE_PTRDIFF_T 1
47234 _ACEOF
47235
47236
47237 fi
47238
47239 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
47240 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
47241 if test "${ac_cv_type_signal+set}" = set; then
47242   echo $ECHO_N "(cached) $ECHO_C" >&6
47243 else
47244   cat >conftest.$ac_ext <<_ACEOF
47245 /* confdefs.h.  */
47246 _ACEOF
47247 cat confdefs.h >>conftest.$ac_ext
47248 cat >>conftest.$ac_ext <<_ACEOF
47249 /* end confdefs.h.  */
47250 #include <sys/types.h>
47251 #include <signal.h>
47252 #ifdef signal
47253 # undef signal
47254 #endif
47255 #ifdef __cplusplus
47256 extern "C" void (*signal (int, void (*)(int)))(int);
47257 #else
47258 void (*signal ()) ();
47259 #endif
47260
47261 int
47262 main ()
47263 {
47264 int i;
47265   ;
47266   return 0;
47267 }
47268 _ACEOF
47269 rm -f conftest.$ac_objext
47270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47271   (eval $ac_compile) 2>conftest.er1
47272   ac_status=$?
47273   grep -v '^ *+' conftest.er1 >conftest.err
47274   rm -f conftest.er1
47275   cat conftest.err >&5
47276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47277   (exit $ac_status); } &&
47278          { ac_try='test -z "$ac_c_werror_flag"
47279                          || test ! -s conftest.err'
47280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47281   (eval $ac_try) 2>&5
47282   ac_status=$?
47283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47284   (exit $ac_status); }; } &&
47285          { ac_try='test -s conftest.$ac_objext'
47286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47287   (eval $ac_try) 2>&5
47288   ac_status=$?
47289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47290   (exit $ac_status); }; }; then
47291   ac_cv_type_signal=void
47292 else
47293   echo "$as_me: failed program was:" >&5
47294 sed 's/^/| /' conftest.$ac_ext >&5
47295
47296 ac_cv_type_signal=int
47297 fi
47298 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47299 fi
47300 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
47301 echo "${ECHO_T}$ac_cv_type_signal" >&6
47302
47303 cat >>confdefs.h <<_ACEOF
47304 #define RETSIGTYPE $ac_cv_type_signal
47305 _ACEOF
47306
47307
47308 echo "$as_me:$LINENO: checking for size_t" >&5
47309 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
47310 if test "${ac_cv_type_size_t+set}" = set; then
47311   echo $ECHO_N "(cached) $ECHO_C" >&6
47312 else
47313   cat >conftest.$ac_ext <<_ACEOF
47314 /* confdefs.h.  */
47315 _ACEOF
47316 cat confdefs.h >>conftest.$ac_ext
47317 cat >>conftest.$ac_ext <<_ACEOF
47318 /* end confdefs.h.  */
47319 $ac_includes_default
47320 int
47321 main ()
47322 {
47323 if ((size_t *) 0)
47324   return 0;
47325 if (sizeof (size_t))
47326   return 0;
47327   ;
47328   return 0;
47329 }
47330 _ACEOF
47331 rm -f conftest.$ac_objext
47332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47333   (eval $ac_compile) 2>conftest.er1
47334   ac_status=$?
47335   grep -v '^ *+' conftest.er1 >conftest.err
47336   rm -f conftest.er1
47337   cat conftest.err >&5
47338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47339   (exit $ac_status); } &&
47340          { ac_try='test -z "$ac_c_werror_flag"
47341                          || test ! -s conftest.err'
47342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47343   (eval $ac_try) 2>&5
47344   ac_status=$?
47345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47346   (exit $ac_status); }; } &&
47347          { ac_try='test -s conftest.$ac_objext'
47348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47349   (eval $ac_try) 2>&5
47350   ac_status=$?
47351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47352   (exit $ac_status); }; }; then
47353   ac_cv_type_size_t=yes
47354 else
47355   echo "$as_me: failed program was:" >&5
47356 sed 's/^/| /' conftest.$ac_ext >&5
47357
47358 ac_cv_type_size_t=no
47359 fi
47360 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47361 fi
47362 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
47363 echo "${ECHO_T}$ac_cv_type_size_t" >&6
47364 if test $ac_cv_type_size_t = yes; then
47365   :
47366 else
47367
47368 cat >>confdefs.h <<_ACEOF
47369 #define size_t unsigned
47370 _ACEOF
47371
47372 fi
47373
47374
47375 echo "$as_me:$LINENO: checking for ssize_t" >&5
47376 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
47377 if test "${ac_cv_type_ssize_t+set}" = set; then
47378   echo $ECHO_N "(cached) $ECHO_C" >&6
47379 else
47380   cat >conftest.$ac_ext <<_ACEOF
47381 /* confdefs.h.  */
47382 _ACEOF
47383 cat confdefs.h >>conftest.$ac_ext
47384 cat >>conftest.$ac_ext <<_ACEOF
47385 /* end confdefs.h.  */
47386 $ac_includes_default
47387 int
47388 main ()
47389 {
47390 if ((ssize_t *) 0)
47391   return 0;
47392 if (sizeof (ssize_t))
47393   return 0;
47394   ;
47395   return 0;
47396 }
47397 _ACEOF
47398 rm -f conftest.$ac_objext
47399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47400   (eval $ac_compile) 2>conftest.er1
47401   ac_status=$?
47402   grep -v '^ *+' conftest.er1 >conftest.err
47403   rm -f conftest.er1
47404   cat conftest.err >&5
47405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47406   (exit $ac_status); } &&
47407          { ac_try='test -z "$ac_c_werror_flag"
47408                          || test ! -s conftest.err'
47409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47410   (eval $ac_try) 2>&5
47411   ac_status=$?
47412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47413   (exit $ac_status); }; } &&
47414          { ac_try='test -s conftest.$ac_objext'
47415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47416   (eval $ac_try) 2>&5
47417   ac_status=$?
47418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47419   (exit $ac_status); }; }; then
47420   ac_cv_type_ssize_t=yes
47421 else
47422   echo "$as_me: failed program was:" >&5
47423 sed 's/^/| /' conftest.$ac_ext >&5
47424
47425 ac_cv_type_ssize_t=no
47426 fi
47427 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47428 fi
47429 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
47430 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
47431 if test $ac_cv_type_ssize_t = yes; then
47432   :
47433 else
47434
47435 cat >>confdefs.h <<_ACEOF
47436 #define ssize_t signed int
47437 _ACEOF
47438
47439 fi
47440
47441 echo "$as_me:$LINENO: checking for caddr_t" >&5
47442 echo $ECHO_N "checking for caddr_t... $ECHO_C" >&6
47443 if test "${ac_cv_type_caddr_t+set}" = set; then
47444   echo $ECHO_N "(cached) $ECHO_C" >&6
47445 else
47446   cat >conftest.$ac_ext <<_ACEOF
47447 /* confdefs.h.  */
47448 _ACEOF
47449 cat confdefs.h >>conftest.$ac_ext
47450 cat >>conftest.$ac_ext <<_ACEOF
47451 /* end confdefs.h.  */
47452 $ac_includes_default
47453 int
47454 main ()
47455 {
47456 if ((caddr_t *) 0)
47457   return 0;
47458 if (sizeof (caddr_t))
47459   return 0;
47460   ;
47461   return 0;
47462 }
47463 _ACEOF
47464 rm -f conftest.$ac_objext
47465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47466   (eval $ac_compile) 2>conftest.er1
47467   ac_status=$?
47468   grep -v '^ *+' conftest.er1 >conftest.err
47469   rm -f conftest.er1
47470   cat conftest.err >&5
47471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47472   (exit $ac_status); } &&
47473          { ac_try='test -z "$ac_c_werror_flag"
47474                          || test ! -s conftest.err'
47475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47476   (eval $ac_try) 2>&5
47477   ac_status=$?
47478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47479   (exit $ac_status); }; } &&
47480          { ac_try='test -s conftest.$ac_objext'
47481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47482   (eval $ac_try) 2>&5
47483   ac_status=$?
47484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47485   (exit $ac_status); }; }; then
47486   ac_cv_type_caddr_t=yes
47487 else
47488   echo "$as_me: failed program was:" >&5
47489 sed 's/^/| /' conftest.$ac_ext >&5
47490
47491 ac_cv_type_caddr_t=no
47492 fi
47493 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47494 fi
47495 echo "$as_me:$LINENO: result: $ac_cv_type_caddr_t" >&5
47496 echo "${ECHO_T}$ac_cv_type_caddr_t" >&6
47497 if test $ac_cv_type_caddr_t = yes; then
47498   :
47499 else
47500
47501 cat >>confdefs.h <<_ACEOF
47502 #define caddr_t char *
47503 _ACEOF
47504
47505 fi
47506
47507
47508 echo "$as_me:$LINENO: checking for socklen_t" >&5
47509 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
47510 if test "${ol_cv_type_socklen_t+set}" = set; then
47511   echo $ECHO_N "(cached) $ECHO_C" >&6
47512 else
47513   cat >conftest.$ac_ext <<_ACEOF
47514 /* confdefs.h.  */
47515 _ACEOF
47516 cat confdefs.h >>conftest.$ac_ext
47517 cat >>conftest.$ac_ext <<_ACEOF
47518 /* end confdefs.h.  */
47519
47520 #ifdef HAVE_SYS_TYPES_H
47521 #include <sys/types.h>
47522 #endif
47523 #ifdef HAVE_SYS_SOCKET_H
47524 #include <sys/socket.h>
47525 #endif
47526
47527 int
47528 main ()
47529 {
47530 socklen_t len;
47531   ;
47532   return 0;
47533 }
47534 _ACEOF
47535 rm -f conftest.$ac_objext
47536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47537   (eval $ac_compile) 2>conftest.er1
47538   ac_status=$?
47539   grep -v '^ *+' conftest.er1 >conftest.err
47540   rm -f conftest.er1
47541   cat conftest.err >&5
47542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47543   (exit $ac_status); } &&
47544          { ac_try='test -z "$ac_c_werror_flag"
47545                          || test ! -s conftest.err'
47546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47547   (eval $ac_try) 2>&5
47548   ac_status=$?
47549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47550   (exit $ac_status); }; } &&
47551          { ac_try='test -s conftest.$ac_objext'
47552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47553   (eval $ac_try) 2>&5
47554   ac_status=$?
47555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47556   (exit $ac_status); }; }; then
47557   ol_cv_type_socklen_t=yes
47558 else
47559   echo "$as_me: failed program was:" >&5
47560 sed 's/^/| /' conftest.$ac_ext >&5
47561
47562 ol_cv_type_socklen_t=no
47563 fi
47564 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47565 fi
47566 echo "$as_me:$LINENO: result: $ol_cv_type_socklen_t" >&5
47567 echo "${ECHO_T}$ol_cv_type_socklen_t" >&6
47568   if test $ol_cv_type_socklen_t = no; then
47569
47570 cat >>confdefs.h <<\_ACEOF
47571 #define socklen_t int
47572 _ACEOF
47573
47574   fi
47575
47576
47577 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
47578 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
47579 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
47580   echo $ECHO_N "(cached) $ECHO_C" >&6
47581 else
47582   cat >conftest.$ac_ext <<_ACEOF
47583 /* confdefs.h.  */
47584 _ACEOF
47585 cat confdefs.h >>conftest.$ac_ext
47586 cat >>conftest.$ac_ext <<_ACEOF
47587 /* end confdefs.h.  */
47588 $ac_includes_default
47589 int
47590 main ()
47591 {
47592 static struct stat ac_aggr;
47593 if (ac_aggr.st_blksize)
47594 return 0;
47595   ;
47596   return 0;
47597 }
47598 _ACEOF
47599 rm -f conftest.$ac_objext
47600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47601   (eval $ac_compile) 2>conftest.er1
47602   ac_status=$?
47603   grep -v '^ *+' conftest.er1 >conftest.err
47604   rm -f conftest.er1
47605   cat conftest.err >&5
47606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47607   (exit $ac_status); } &&
47608          { ac_try='test -z "$ac_c_werror_flag"
47609                          || test ! -s conftest.err'
47610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47611   (eval $ac_try) 2>&5
47612   ac_status=$?
47613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47614   (exit $ac_status); }; } &&
47615          { ac_try='test -s conftest.$ac_objext'
47616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47617   (eval $ac_try) 2>&5
47618   ac_status=$?
47619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47620   (exit $ac_status); }; }; then
47621   ac_cv_member_struct_stat_st_blksize=yes
47622 else
47623   echo "$as_me: failed program was:" >&5
47624 sed 's/^/| /' conftest.$ac_ext >&5
47625
47626 cat >conftest.$ac_ext <<_ACEOF
47627 /* confdefs.h.  */
47628 _ACEOF
47629 cat confdefs.h >>conftest.$ac_ext
47630 cat >>conftest.$ac_ext <<_ACEOF
47631 /* end confdefs.h.  */
47632 $ac_includes_default
47633 int
47634 main ()
47635 {
47636 static struct stat ac_aggr;
47637 if (sizeof ac_aggr.st_blksize)
47638 return 0;
47639   ;
47640   return 0;
47641 }
47642 _ACEOF
47643 rm -f conftest.$ac_objext
47644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47645   (eval $ac_compile) 2>conftest.er1
47646   ac_status=$?
47647   grep -v '^ *+' conftest.er1 >conftest.err
47648   rm -f conftest.er1
47649   cat conftest.err >&5
47650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47651   (exit $ac_status); } &&
47652          { ac_try='test -z "$ac_c_werror_flag"
47653                          || test ! -s conftest.err'
47654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47655   (eval $ac_try) 2>&5
47656   ac_status=$?
47657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47658   (exit $ac_status); }; } &&
47659          { ac_try='test -s conftest.$ac_objext'
47660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47661   (eval $ac_try) 2>&5
47662   ac_status=$?
47663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47664   (exit $ac_status); }; }; then
47665   ac_cv_member_struct_stat_st_blksize=yes
47666 else
47667   echo "$as_me: failed program was:" >&5
47668 sed 's/^/| /' conftest.$ac_ext >&5
47669
47670 ac_cv_member_struct_stat_st_blksize=no
47671 fi
47672 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47673 fi
47674 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47675 fi
47676 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
47677 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
47678 if test $ac_cv_member_struct_stat_st_blksize = yes; then
47679
47680 cat >>confdefs.h <<_ACEOF
47681 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
47682 _ACEOF
47683
47684
47685 cat >>confdefs.h <<\_ACEOF
47686 #define HAVE_ST_BLKSIZE 1
47687 _ACEOF
47688
47689 fi
47690
47691
47692 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
47693 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
47694 if test "${ac_cv_header_time+set}" = set; then
47695   echo $ECHO_N "(cached) $ECHO_C" >&6
47696 else
47697   cat >conftest.$ac_ext <<_ACEOF
47698 /* confdefs.h.  */
47699 _ACEOF
47700 cat confdefs.h >>conftest.$ac_ext
47701 cat >>conftest.$ac_ext <<_ACEOF
47702 /* end confdefs.h.  */
47703 #include <sys/types.h>
47704 #include <sys/time.h>
47705 #include <time.h>
47706
47707 int
47708 main ()
47709 {
47710 if ((struct tm *) 0)
47711 return 0;
47712   ;
47713   return 0;
47714 }
47715 _ACEOF
47716 rm -f conftest.$ac_objext
47717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47718   (eval $ac_compile) 2>conftest.er1
47719   ac_status=$?
47720   grep -v '^ *+' conftest.er1 >conftest.err
47721   rm -f conftest.er1
47722   cat conftest.err >&5
47723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47724   (exit $ac_status); } &&
47725          { ac_try='test -z "$ac_c_werror_flag"
47726                          || test ! -s conftest.err'
47727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47728   (eval $ac_try) 2>&5
47729   ac_status=$?
47730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47731   (exit $ac_status); }; } &&
47732          { ac_try='test -s conftest.$ac_objext'
47733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47734   (eval $ac_try) 2>&5
47735   ac_status=$?
47736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47737   (exit $ac_status); }; }; then
47738   ac_cv_header_time=yes
47739 else
47740   echo "$as_me: failed program was:" >&5
47741 sed 's/^/| /' conftest.$ac_ext >&5
47742
47743 ac_cv_header_time=no
47744 fi
47745 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47746 fi
47747 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
47748 echo "${ECHO_T}$ac_cv_header_time" >&6
47749 if test $ac_cv_header_time = yes; then
47750
47751 cat >>confdefs.h <<\_ACEOF
47752 #define TIME_WITH_SYS_TIME 1
47753 _ACEOF
47754
47755 fi
47756
47757 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
47758 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
47759 if test "${ac_cv_struct_tm+set}" = set; then
47760   echo $ECHO_N "(cached) $ECHO_C" >&6
47761 else
47762   cat >conftest.$ac_ext <<_ACEOF
47763 /* confdefs.h.  */
47764 _ACEOF
47765 cat confdefs.h >>conftest.$ac_ext
47766 cat >>conftest.$ac_ext <<_ACEOF
47767 /* end confdefs.h.  */
47768 #include <sys/types.h>
47769 #include <time.h>
47770
47771 int
47772 main ()
47773 {
47774 struct tm *tp; tp->tm_sec;
47775   ;
47776   return 0;
47777 }
47778 _ACEOF
47779 rm -f conftest.$ac_objext
47780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47781   (eval $ac_compile) 2>conftest.er1
47782   ac_status=$?
47783   grep -v '^ *+' conftest.er1 >conftest.err
47784   rm -f conftest.er1
47785   cat conftest.err >&5
47786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47787   (exit $ac_status); } &&
47788          { ac_try='test -z "$ac_c_werror_flag"
47789                          || test ! -s conftest.err'
47790   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47791   (eval $ac_try) 2>&5
47792   ac_status=$?
47793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47794   (exit $ac_status); }; } &&
47795          { ac_try='test -s conftest.$ac_objext'
47796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47797   (eval $ac_try) 2>&5
47798   ac_status=$?
47799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47800   (exit $ac_status); }; }; then
47801   ac_cv_struct_tm=time.h
47802 else
47803   echo "$as_me: failed program was:" >&5
47804 sed 's/^/| /' conftest.$ac_ext >&5
47805
47806 ac_cv_struct_tm=sys/time.h
47807 fi
47808 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47809 fi
47810 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
47811 echo "${ECHO_T}$ac_cv_struct_tm" >&6
47812 if test $ac_cv_struct_tm = sys/time.h; then
47813
47814 cat >>confdefs.h <<\_ACEOF
47815 #define TM_IN_SYS_TIME 1
47816 _ACEOF
47817
47818 fi
47819
47820 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
47821 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
47822 if test "${ac_cv_type_uid_t+set}" = set; then
47823   echo $ECHO_N "(cached) $ECHO_C" >&6
47824 else
47825   cat >conftest.$ac_ext <<_ACEOF
47826 /* confdefs.h.  */
47827 _ACEOF
47828 cat confdefs.h >>conftest.$ac_ext
47829 cat >>conftest.$ac_ext <<_ACEOF
47830 /* end confdefs.h.  */
47831 #include <sys/types.h>
47832
47833 _ACEOF
47834 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47835   $EGREP "uid_t" >/dev/null 2>&1; then
47836   ac_cv_type_uid_t=yes
47837 else
47838   ac_cv_type_uid_t=no
47839 fi
47840 rm -f conftest*
47841
47842 fi
47843 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
47844 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
47845 if test $ac_cv_type_uid_t = no; then
47846
47847 cat >>confdefs.h <<\_ACEOF
47848 #define uid_t int
47849 _ACEOF
47850
47851
47852 cat >>confdefs.h <<\_ACEOF
47853 #define gid_t int
47854 _ACEOF
47855
47856 fi
47857
47858 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
47859 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
47860 if test "${ol_cv_type_sig_atomic_t+set}" = set; then
47861   echo $ECHO_N "(cached) $ECHO_C" >&6
47862 else
47863   cat >conftest.$ac_ext <<_ACEOF
47864 /* confdefs.h.  */
47865 _ACEOF
47866 cat confdefs.h >>conftest.$ac_ext
47867 cat >>conftest.$ac_ext <<_ACEOF
47868 /* end confdefs.h.  */
47869 #include <signal.h>
47870 int
47871 main ()
47872 {
47873 sig_atomic_t atomic;
47874   ;
47875   return 0;
47876 }
47877 _ACEOF
47878 rm -f conftest.$ac_objext
47879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47880   (eval $ac_compile) 2>conftest.er1
47881   ac_status=$?
47882   grep -v '^ *+' conftest.er1 >conftest.err
47883   rm -f conftest.er1
47884   cat conftest.err >&5
47885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47886   (exit $ac_status); } &&
47887          { ac_try='test -z "$ac_c_werror_flag"
47888                          || test ! -s conftest.err'
47889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47890   (eval $ac_try) 2>&5
47891   ac_status=$?
47892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47893   (exit $ac_status); }; } &&
47894          { ac_try='test -s conftest.$ac_objext'
47895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47896   (eval $ac_try) 2>&5
47897   ac_status=$?
47898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47899   (exit $ac_status); }; }; then
47900   ol_cv_type_sig_atomic_t=yes
47901 else
47902   echo "$as_me: failed program was:" >&5
47903 sed 's/^/| /' conftest.$ac_ext >&5
47904
47905 ol_cv_type_sig_atomic_t=no
47906 fi
47907 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47908 fi
47909 echo "$as_me:$LINENO: result: $ol_cv_type_sig_atomic_t" >&5
47910 echo "${ECHO_T}$ol_cv_type_sig_atomic_t" >&6
47911   if test $ol_cv_type_sig_atomic_t = no; then
47912
47913 cat >>confdefs.h <<\_ACEOF
47914 #define sig_atomic_t int
47915 _ACEOF
47916
47917   fi
47918
47919
47920
47921 # test for pw_gecos in struct passwd
47922 echo "$as_me:$LINENO: checking struct passwd for pw_gecos" >&5
47923 echo $ECHO_N "checking struct passwd for pw_gecos... $ECHO_C" >&6
47924 if test "${ol_cv_struct_passwd_pw_gecos+set}" = set; then
47925   echo $ECHO_N "(cached) $ECHO_C" >&6
47926 else
47927
47928         cat >conftest.$ac_ext <<_ACEOF
47929 /* confdefs.h.  */
47930 _ACEOF
47931 cat confdefs.h >>conftest.$ac_ext
47932 cat >>conftest.$ac_ext <<_ACEOF
47933 /* end confdefs.h.  */
47934 #include <pwd.h>
47935 int
47936 main ()
47937 {
47938
47939         struct passwd pwd;
47940         pwd.pw_gecos = pwd.pw_name;
47941
47942   ;
47943   return 0;
47944 }
47945 _ACEOF
47946 rm -f conftest.$ac_objext
47947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47948   (eval $ac_compile) 2>conftest.er1
47949   ac_status=$?
47950   grep -v '^ *+' conftest.er1 >conftest.err
47951   rm -f conftest.er1
47952   cat conftest.err >&5
47953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47954   (exit $ac_status); } &&
47955          { ac_try='test -z "$ac_c_werror_flag"
47956                          || test ! -s conftest.err'
47957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47958   (eval $ac_try) 2>&5
47959   ac_status=$?
47960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47961   (exit $ac_status); }; } &&
47962          { ac_try='test -s conftest.$ac_objext'
47963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47964   (eval $ac_try) 2>&5
47965   ac_status=$?
47966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47967   (exit $ac_status); }; }; then
47968   ol_cv_struct_passwd_pw_gecos=yes
47969 else
47970   echo "$as_me: failed program was:" >&5
47971 sed 's/^/| /' conftest.$ac_ext >&5
47972
47973 ol_cv_struct_passwd_pw_gecos=no
47974 fi
47975 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47976 fi
47977 echo "$as_me:$LINENO: result: $ol_cv_struct_passwd_pw_gecos" >&5
47978 echo "${ECHO_T}$ol_cv_struct_passwd_pw_gecos" >&6
47979 if test $ol_cv_struct_passwd_pw_gecos = yes ; then
47980
47981 cat >>confdefs.h <<\_ACEOF
47982 #define HAVE_PW_GECOS 1
47983 _ACEOF
47984
47985 fi
47986
47987 # test for pw_passwd in struct passwd
47988 echo "$as_me:$LINENO: checking struct passwd for pw_passwd" >&5
47989 echo $ECHO_N "checking struct passwd for pw_passwd... $ECHO_C" >&6
47990 if test "${ol_cv_struct_passwd_pw_passwd+set}" = set; then
47991   echo $ECHO_N "(cached) $ECHO_C" >&6
47992 else
47993
47994         cat >conftest.$ac_ext <<_ACEOF
47995 /* confdefs.h.  */
47996 _ACEOF
47997 cat confdefs.h >>conftest.$ac_ext
47998 cat >>conftest.$ac_ext <<_ACEOF
47999 /* end confdefs.h.  */
48000 #include <pwd.h>
48001 int
48002 main ()
48003 {
48004
48005         struct passwd pwd;
48006         pwd.pw_passwd = pwd.pw_name;
48007
48008   ;
48009   return 0;
48010 }
48011 _ACEOF
48012 rm -f conftest.$ac_objext
48013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48014   (eval $ac_compile) 2>conftest.er1
48015   ac_status=$?
48016   grep -v '^ *+' conftest.er1 >conftest.err
48017   rm -f conftest.er1
48018   cat conftest.err >&5
48019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48020   (exit $ac_status); } &&
48021          { ac_try='test -z "$ac_c_werror_flag"
48022                          || test ! -s conftest.err'
48023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48024   (eval $ac_try) 2>&5
48025   ac_status=$?
48026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48027   (exit $ac_status); }; } &&
48028          { ac_try='test -s conftest.$ac_objext'
48029   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48030   (eval $ac_try) 2>&5
48031   ac_status=$?
48032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48033   (exit $ac_status); }; }; then
48034   ol_cv_struct_passwd_pw_passwd=yes
48035 else
48036   echo "$as_me: failed program was:" >&5
48037 sed 's/^/| /' conftest.$ac_ext >&5
48038
48039 ol_cv_struct_passwd_pw_passwd=no
48040 fi
48041 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48042 fi
48043 echo "$as_me:$LINENO: result: $ol_cv_struct_passwd_pw_passwd" >&5
48044 echo "${ECHO_T}$ol_cv_struct_passwd_pw_passwd" >&6
48045 if test $ol_cv_struct_passwd_pw_passwd = yes ; then
48046
48047 cat >>confdefs.h <<\_ACEOF
48048 #define HAVE_PW_PASSWD 1
48049 _ACEOF
48050
48051 fi
48052
48053
48054 echo "$as_me:$LINENO: checking if toupper() requires islower()" >&5
48055 echo $ECHO_N "checking if toupper() requires islower()... $ECHO_C" >&6
48056 if test "${ol_cv_c_upper_lower+set}" = set; then
48057   echo $ECHO_N "(cached) $ECHO_C" >&6
48058 else
48059
48060         if test "$cross_compiling" = yes; then
48061   ol_cv_c_upper_lower=safe
48062 else
48063   cat >conftest.$ac_ext <<_ACEOF
48064 /* confdefs.h.  */
48065 _ACEOF
48066 cat confdefs.h >>conftest.$ac_ext
48067 cat >>conftest.$ac_ext <<_ACEOF
48068 /* end confdefs.h.  */
48069
48070 #include <ctype.h>
48071 main()
48072 {
48073         if ('C' == toupper('C'))
48074                 exit(0);
48075         else
48076                 exit(1);
48077 }
48078 _ACEOF
48079 rm -f conftest$ac_exeext
48080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48081   (eval $ac_link) 2>&5
48082   ac_status=$?
48083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48084   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
48085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48086   (eval $ac_try) 2>&5
48087   ac_status=$?
48088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48089   (exit $ac_status); }; }; then
48090   ol_cv_c_upper_lower=no
48091 else
48092   echo "$as_me: program exited with status $ac_status" >&5
48093 echo "$as_me: failed program was:" >&5
48094 sed 's/^/| /' conftest.$ac_ext >&5
48095
48096 ( exit $ac_status )
48097 ol_cv_c_upper_lower=yes
48098 fi
48099 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
48100 fi
48101 fi
48102 echo "$as_me:$LINENO: result: $ol_cv_c_upper_lower" >&5
48103 echo "${ECHO_T}$ol_cv_c_upper_lower" >&6
48104 if test $ol_cv_c_upper_lower != no ; then
48105
48106 cat >>confdefs.h <<\_ACEOF
48107 #define C_UPPER_LOWER 1
48108 _ACEOF
48109
48110 fi
48111
48112 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
48113 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
48114 if test "${ac_cv_c_const+set}" = set; then
48115   echo $ECHO_N "(cached) $ECHO_C" >&6
48116 else
48117   cat >conftest.$ac_ext <<_ACEOF
48118 /* confdefs.h.  */
48119 _ACEOF
48120 cat confdefs.h >>conftest.$ac_ext
48121 cat >>conftest.$ac_ext <<_ACEOF
48122 /* end confdefs.h.  */
48123
48124 int
48125 main ()
48126 {
48127 /* FIXME: Include the comments suggested by Paul. */
48128 #ifndef __cplusplus
48129   /* Ultrix mips cc rejects this.  */
48130   typedef int charset[2];
48131   const charset x;
48132   /* SunOS 4.1.1 cc rejects this.  */
48133   char const *const *ccp;
48134   char **p;
48135   /* NEC SVR4.0.2 mips cc rejects this.  */
48136   struct point {int x, y;};
48137   static struct point const zero = {0,0};
48138   /* AIX XL C 1.02.0.0 rejects this.
48139      It does not let you subtract one const X* pointer from another in
48140      an arm of an if-expression whose if-part is not a constant
48141      expression */
48142   const char *g = "string";
48143   ccp = &g + (g ? g-g : 0);
48144   /* HPUX 7.0 cc rejects these. */
48145   ++ccp;
48146   p = (char**) ccp;
48147   ccp = (char const *const *) p;
48148   { /* SCO 3.2v4 cc rejects this.  */
48149     char *t;
48150     char const *s = 0 ? (char *) 0 : (char const *) 0;
48151
48152     *t++ = 0;
48153   }
48154   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
48155     int x[] = {25, 17};
48156     const int *foo = &x[0];
48157     ++foo;
48158   }
48159   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
48160     typedef const int *iptr;
48161     iptr p = 0;
48162     ++p;
48163   }
48164   { /* AIX XL C 1.02.0.0 rejects this saying
48165        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
48166     struct s { int j; const int *ap[3]; };
48167     struct s *b; b->j = 5;
48168   }
48169   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
48170     const int foo = 10;
48171   }
48172 #endif
48173
48174   ;
48175   return 0;
48176 }
48177 _ACEOF
48178 rm -f conftest.$ac_objext
48179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48180   (eval $ac_compile) 2>conftest.er1
48181   ac_status=$?
48182   grep -v '^ *+' conftest.er1 >conftest.err
48183   rm -f conftest.er1
48184   cat conftest.err >&5
48185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48186   (exit $ac_status); } &&
48187          { ac_try='test -z "$ac_c_werror_flag"
48188                          || test ! -s conftest.err'
48189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48190   (eval $ac_try) 2>&5
48191   ac_status=$?
48192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48193   (exit $ac_status); }; } &&
48194          { ac_try='test -s conftest.$ac_objext'
48195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48196   (eval $ac_try) 2>&5
48197   ac_status=$?
48198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48199   (exit $ac_status); }; }; then
48200   ac_cv_c_const=yes
48201 else
48202   echo "$as_me: failed program was:" >&5
48203 sed 's/^/| /' conftest.$ac_ext >&5
48204
48205 ac_cv_c_const=no
48206 fi
48207 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48208 fi
48209 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
48210 echo "${ECHO_T}$ac_cv_c_const" >&6
48211 if test $ac_cv_c_const = no; then
48212
48213 cat >>confdefs.h <<\_ACEOF
48214 #define const
48215 _ACEOF
48216
48217 fi
48218
48219 echo "$as_me:$LINENO: checking if compiler understands volatile" >&5
48220 echo $ECHO_N "checking if compiler understands volatile... $ECHO_C" >&6
48221 if test "${ol_cv_c_volatile+set}" = set; then
48222   echo $ECHO_N "(cached) $ECHO_C" >&6
48223 else
48224   cat >conftest.$ac_ext <<_ACEOF
48225 /* confdefs.h.  */
48226 _ACEOF
48227 cat confdefs.h >>conftest.$ac_ext
48228 cat >>conftest.$ac_ext <<_ACEOF
48229 /* end confdefs.h.  */
48230 int x, y, z;
48231 int
48232 main ()
48233 {
48234 volatile int a; int * volatile b = x ? &y : &z;
48235       /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
48236       *b = 0;
48237   ;
48238   return 0;
48239 }
48240 _ACEOF
48241 rm -f conftest.$ac_objext
48242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48243   (eval $ac_compile) 2>conftest.er1
48244   ac_status=$?
48245   grep -v '^ *+' conftest.er1 >conftest.err
48246   rm -f conftest.er1
48247   cat conftest.err >&5
48248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48249   (exit $ac_status); } &&
48250          { ac_try='test -z "$ac_c_werror_flag"
48251                          || test ! -s conftest.err'
48252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48253   (eval $ac_try) 2>&5
48254   ac_status=$?
48255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48256   (exit $ac_status); }; } &&
48257          { ac_try='test -s conftest.$ac_objext'
48258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48259   (eval $ac_try) 2>&5
48260   ac_status=$?
48261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48262   (exit $ac_status); }; }; then
48263   ol_cv_c_volatile=yes
48264 else
48265   echo "$as_me: failed program was:" >&5
48266 sed 's/^/| /' conftest.$ac_ext >&5
48267
48268 ol_cv_c_volatile=no
48269 fi
48270 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48271 fi
48272 echo "$as_me:$LINENO: result: $ol_cv_c_volatile" >&5
48273 echo "${ECHO_T}$ol_cv_c_volatile" >&6
48274   if test $ol_cv_c_volatile = yes; then
48275     :
48276   else
48277
48278 cat >>confdefs.h <<\_ACEOF
48279 #define volatile
48280 _ACEOF
48281
48282   fi
48283
48284
48285 if test $cross_compiling = yes ; then
48286         { echo "$as_me:$LINENO: WARNING: Crossing compiling... all bets are off!" >&5
48287 echo "$as_me: WARNING: Crossing compiling... all bets are off!" >&2;}
48288
48289 cat >>confdefs.h <<\_ACEOF
48290 #define CROSS_COMPILING 1
48291 _ACEOF
48292
48293 else
48294         echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
48295 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
48296 if test "${ac_cv_c_bigendian+set}" = set; then
48297   echo $ECHO_N "(cached) $ECHO_C" >&6
48298 else
48299   # See if sys/param.h defines the BYTE_ORDER macro.
48300 cat >conftest.$ac_ext <<_ACEOF
48301 /* confdefs.h.  */
48302 _ACEOF
48303 cat confdefs.h >>conftest.$ac_ext
48304 cat >>conftest.$ac_ext <<_ACEOF
48305 /* end confdefs.h.  */
48306 #include <sys/types.h>
48307 #include <sys/param.h>
48308
48309 int
48310 main ()
48311 {
48312 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
48313  bogus endian macros
48314 #endif
48315
48316   ;
48317   return 0;
48318 }
48319 _ACEOF
48320 rm -f conftest.$ac_objext
48321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48322   (eval $ac_compile) 2>conftest.er1
48323   ac_status=$?
48324   grep -v '^ *+' conftest.er1 >conftest.err
48325   rm -f conftest.er1
48326   cat conftest.err >&5
48327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48328   (exit $ac_status); } &&
48329          { ac_try='test -z "$ac_c_werror_flag"
48330                          || test ! -s conftest.err'
48331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48332   (eval $ac_try) 2>&5
48333   ac_status=$?
48334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48335   (exit $ac_status); }; } &&
48336          { ac_try='test -s conftest.$ac_objext'
48337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48338   (eval $ac_try) 2>&5
48339   ac_status=$?
48340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48341   (exit $ac_status); }; }; then
48342   # It does; now see whether it defined to BIG_ENDIAN or not.
48343 cat >conftest.$ac_ext <<_ACEOF
48344 /* confdefs.h.  */
48345 _ACEOF
48346 cat confdefs.h >>conftest.$ac_ext
48347 cat >>conftest.$ac_ext <<_ACEOF
48348 /* end confdefs.h.  */
48349 #include <sys/types.h>
48350 #include <sys/param.h>
48351
48352 int
48353 main ()
48354 {
48355 #if BYTE_ORDER != BIG_ENDIAN
48356  not big endian
48357 #endif
48358
48359   ;
48360   return 0;
48361 }
48362 _ACEOF
48363 rm -f conftest.$ac_objext
48364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48365   (eval $ac_compile) 2>conftest.er1
48366   ac_status=$?
48367   grep -v '^ *+' conftest.er1 >conftest.err
48368   rm -f conftest.er1
48369   cat conftest.err >&5
48370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48371   (exit $ac_status); } &&
48372          { ac_try='test -z "$ac_c_werror_flag"
48373                          || test ! -s conftest.err'
48374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48375   (eval $ac_try) 2>&5
48376   ac_status=$?
48377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48378   (exit $ac_status); }; } &&
48379          { ac_try='test -s conftest.$ac_objext'
48380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48381   (eval $ac_try) 2>&5
48382   ac_status=$?
48383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48384   (exit $ac_status); }; }; then
48385   ac_cv_c_bigendian=yes
48386 else
48387   echo "$as_me: failed program was:" >&5
48388 sed 's/^/| /' conftest.$ac_ext >&5
48389
48390 ac_cv_c_bigendian=no
48391 fi
48392 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48393 else
48394   echo "$as_me: failed program was:" >&5
48395 sed 's/^/| /' conftest.$ac_ext >&5
48396
48397 # It does not; compile a test program.
48398 if test "$cross_compiling" = yes; then
48399   # try to guess the endianness by grepping values into an object file
48400   ac_cv_c_bigendian=unknown
48401   cat >conftest.$ac_ext <<_ACEOF
48402 /* confdefs.h.  */
48403 _ACEOF
48404 cat confdefs.h >>conftest.$ac_ext
48405 cat >>conftest.$ac_ext <<_ACEOF
48406 /* end confdefs.h.  */
48407 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
48408 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
48409 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
48410 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
48411 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
48412 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
48413 int
48414 main ()
48415 {
48416  _ascii (); _ebcdic ();
48417   ;
48418   return 0;
48419 }
48420 _ACEOF
48421 rm -f conftest.$ac_objext
48422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48423   (eval $ac_compile) 2>conftest.er1
48424   ac_status=$?
48425   grep -v '^ *+' conftest.er1 >conftest.err
48426   rm -f conftest.er1
48427   cat conftest.err >&5
48428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48429   (exit $ac_status); } &&
48430          { ac_try='test -z "$ac_c_werror_flag"
48431                          || test ! -s conftest.err'
48432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48433   (eval $ac_try) 2>&5
48434   ac_status=$?
48435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48436   (exit $ac_status); }; } &&
48437          { ac_try='test -s conftest.$ac_objext'
48438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48439   (eval $ac_try) 2>&5
48440   ac_status=$?
48441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48442   (exit $ac_status); }; }; then
48443   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
48444   ac_cv_c_bigendian=yes
48445 fi
48446 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
48447   if test "$ac_cv_c_bigendian" = unknown; then
48448     ac_cv_c_bigendian=no
48449   else
48450     # finding both strings is unlikely to happen, but who knows?
48451     ac_cv_c_bigendian=unknown
48452   fi
48453 fi
48454 else
48455   echo "$as_me: failed program was:" >&5
48456 sed 's/^/| /' conftest.$ac_ext >&5
48457
48458 fi
48459 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48460 else
48461   cat >conftest.$ac_ext <<_ACEOF
48462 /* confdefs.h.  */
48463 _ACEOF
48464 cat confdefs.h >>conftest.$ac_ext
48465 cat >>conftest.$ac_ext <<_ACEOF
48466 /* end confdefs.h.  */
48467 int
48468 main ()
48469 {
48470   /* Are we little or big endian?  From Harbison&Steele.  */
48471   union
48472   {
48473     long l;
48474     char c[sizeof (long)];
48475   } u;
48476   u.l = 1;
48477   exit (u.c[sizeof (long) - 1] == 1);
48478 }
48479 _ACEOF
48480 rm -f conftest$ac_exeext
48481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48482   (eval $ac_link) 2>&5
48483   ac_status=$?
48484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48485   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
48486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48487   (eval $ac_try) 2>&5
48488   ac_status=$?
48489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48490   (exit $ac_status); }; }; then
48491   ac_cv_c_bigendian=no
48492 else
48493   echo "$as_me: program exited with status $ac_status" >&5
48494 echo "$as_me: failed program was:" >&5
48495 sed 's/^/| /' conftest.$ac_ext >&5
48496
48497 ( exit $ac_status )
48498 ac_cv_c_bigendian=yes
48499 fi
48500 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
48501 fi
48502 fi
48503 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48504 fi
48505 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
48506 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
48507 case $ac_cv_c_bigendian in
48508   yes)
48509
48510 cat >>confdefs.h <<\_ACEOF
48511 #define WORDS_BIGENDIAN 1
48512 _ACEOF
48513  ;;
48514   no)
48515      ;;
48516   *)
48517     { { echo "$as_me:$LINENO: error: unknown endianness
48518 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
48519 echo "$as_me: error: unknown endianness
48520 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
48521    { (exit 1); exit 1; }; } ;;
48522 esac
48523
48524 fi
48525
48526 echo "$as_me:$LINENO: checking size of short" >&5
48527 echo $ECHO_N "checking size of short... $ECHO_C" >&6
48528 if test "${ac_cv_sizeof_short+set}" = set; then
48529   echo $ECHO_N "(cached) $ECHO_C" >&6
48530 else
48531   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
48532   cat >conftest.$ac_ext <<_ACEOF
48533 /* confdefs.h.  */
48534 _ACEOF
48535 cat confdefs.h >>conftest.$ac_ext
48536 cat >>conftest.$ac_ext <<_ACEOF
48537 /* end confdefs.h.  */
48538 #include "confdefs.h"
48539 #include <stdlib.h>
48540 #include <sys/types.h>
48541
48542
48543 int
48544 main ()
48545 {
48546 switch (0) case 0: case (sizeof (short) == $ac_size):;
48547   ;
48548   return 0;
48549 }
48550 _ACEOF
48551 rm -f conftest.$ac_objext
48552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48553   (eval $ac_compile) 2>conftest.er1
48554   ac_status=$?
48555   grep -v '^ *+' conftest.er1 >conftest.err
48556   rm -f conftest.er1
48557   cat conftest.err >&5
48558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48559   (exit $ac_status); } &&
48560          { ac_try='test -z "$ac_c_werror_flag"
48561                          || test ! -s conftest.err'
48562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48563   (eval $ac_try) 2>&5
48564   ac_status=$?
48565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48566   (exit $ac_status); }; } &&
48567          { ac_try='test -s conftest.$ac_objext'
48568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48569   (eval $ac_try) 2>&5
48570   ac_status=$?
48571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48572   (exit $ac_status); }; }; then
48573   ac_cv_sizeof_short=$ac_size
48574 else
48575   echo "$as_me: failed program was:" >&5
48576 sed 's/^/| /' conftest.$ac_ext >&5
48577
48578 fi
48579 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48580   if test x$ac_cv_sizeof_short != x ; then break; fi
48581 done
48582
48583 fi
48584
48585 if test x$ac_cv_sizeof_short = x ; then
48586   { { echo "$as_me:$LINENO: error: cannot determine a size for short" >&5
48587 echo "$as_me: error: cannot determine a size for short" >&2;}
48588    { (exit 1); exit 1; }; }
48589 fi
48590 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
48591 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
48592
48593 cat >>confdefs.h <<_ACEOF
48594 #define SIZEOF_SHORT $ac_cv_sizeof_short
48595 _ACEOF
48596
48597
48598 echo "$as_me:$LINENO: checking size of int" >&5
48599 echo $ECHO_N "checking size of int... $ECHO_C" >&6
48600 if test "${ac_cv_sizeof_int+set}" = set; then
48601   echo $ECHO_N "(cached) $ECHO_C" >&6
48602 else
48603   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
48604   cat >conftest.$ac_ext <<_ACEOF
48605 /* confdefs.h.  */
48606 _ACEOF
48607 cat confdefs.h >>conftest.$ac_ext
48608 cat >>conftest.$ac_ext <<_ACEOF
48609 /* end confdefs.h.  */
48610 #include "confdefs.h"
48611 #include <stdlib.h>
48612 #include <sys/types.h>
48613
48614
48615 int
48616 main ()
48617 {
48618 switch (0) case 0: case (sizeof (int) == $ac_size):;
48619   ;
48620   return 0;
48621 }
48622 _ACEOF
48623 rm -f conftest.$ac_objext
48624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48625   (eval $ac_compile) 2>conftest.er1
48626   ac_status=$?
48627   grep -v '^ *+' conftest.er1 >conftest.err
48628   rm -f conftest.er1
48629   cat conftest.err >&5
48630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48631   (exit $ac_status); } &&
48632          { ac_try='test -z "$ac_c_werror_flag"
48633                          || test ! -s conftest.err'
48634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48635   (eval $ac_try) 2>&5
48636   ac_status=$?
48637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48638   (exit $ac_status); }; } &&
48639          { ac_try='test -s conftest.$ac_objext'
48640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48641   (eval $ac_try) 2>&5
48642   ac_status=$?
48643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48644   (exit $ac_status); }; }; then
48645   ac_cv_sizeof_int=$ac_size
48646 else
48647   echo "$as_me: failed program was:" >&5
48648 sed 's/^/| /' conftest.$ac_ext >&5
48649
48650 fi
48651 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48652   if test x$ac_cv_sizeof_int != x ; then break; fi
48653 done
48654
48655 fi
48656
48657 if test x$ac_cv_sizeof_int = x ; then
48658   { { echo "$as_me:$LINENO: error: cannot determine a size for int" >&5
48659 echo "$as_me: error: cannot determine a size for int" >&2;}
48660    { (exit 1); exit 1; }; }
48661 fi
48662 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
48663 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
48664
48665 cat >>confdefs.h <<_ACEOF
48666 #define SIZEOF_INT $ac_cv_sizeof_int
48667 _ACEOF
48668
48669
48670 echo "$as_me:$LINENO: checking size of long" >&5
48671 echo $ECHO_N "checking size of long... $ECHO_C" >&6
48672 if test "${ac_cv_sizeof_long+set}" = set; then
48673   echo $ECHO_N "(cached) $ECHO_C" >&6
48674 else
48675   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
48676   cat >conftest.$ac_ext <<_ACEOF
48677 /* confdefs.h.  */
48678 _ACEOF
48679 cat confdefs.h >>conftest.$ac_ext
48680 cat >>conftest.$ac_ext <<_ACEOF
48681 /* end confdefs.h.  */
48682 #include "confdefs.h"
48683 #include <stdlib.h>
48684 #include <sys/types.h>
48685
48686
48687 int
48688 main ()
48689 {
48690 switch (0) case 0: case (sizeof (long) == $ac_size):;
48691   ;
48692   return 0;
48693 }
48694 _ACEOF
48695 rm -f conftest.$ac_objext
48696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48697   (eval $ac_compile) 2>conftest.er1
48698   ac_status=$?
48699   grep -v '^ *+' conftest.er1 >conftest.err
48700   rm -f conftest.er1
48701   cat conftest.err >&5
48702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48703   (exit $ac_status); } &&
48704          { ac_try='test -z "$ac_c_werror_flag"
48705                          || test ! -s conftest.err'
48706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48707   (eval $ac_try) 2>&5
48708   ac_status=$?
48709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48710   (exit $ac_status); }; } &&
48711          { ac_try='test -s conftest.$ac_objext'
48712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48713   (eval $ac_try) 2>&5
48714   ac_status=$?
48715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48716   (exit $ac_status); }; }; then
48717   ac_cv_sizeof_long=$ac_size
48718 else
48719   echo "$as_me: failed program was:" >&5
48720 sed 's/^/| /' conftest.$ac_ext >&5
48721
48722 fi
48723 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48724   if test x$ac_cv_sizeof_long != x ; then break; fi
48725 done
48726
48727 fi
48728
48729 if test x$ac_cv_sizeof_long = x ; then
48730   { { echo "$as_me:$LINENO: error: cannot determine a size for long" >&5
48731 echo "$as_me: error: cannot determine a size for long" >&2;}
48732    { (exit 1); exit 1; }; }
48733 fi
48734 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
48735 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
48736
48737 cat >>confdefs.h <<_ACEOF
48738 #define SIZEOF_LONG $ac_cv_sizeof_long
48739 _ACEOF
48740
48741
48742 echo "$as_me:$LINENO: checking size of wchar_t" >&5
48743 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
48744 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
48745   echo $ECHO_N "(cached) $ECHO_C" >&6
48746 else
48747   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
48748   cat >conftest.$ac_ext <<_ACEOF
48749 /* confdefs.h.  */
48750 _ACEOF
48751 cat confdefs.h >>conftest.$ac_ext
48752 cat >>conftest.$ac_ext <<_ACEOF
48753 /* end confdefs.h.  */
48754 #include "confdefs.h"
48755 #include <stdlib.h>
48756 #include <sys/types.h>
48757
48758
48759 int
48760 main ()
48761 {
48762 switch (0) case 0: case (sizeof (wchar_t) == $ac_size):;
48763   ;
48764   return 0;
48765 }
48766 _ACEOF
48767 rm -f conftest.$ac_objext
48768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48769   (eval $ac_compile) 2>conftest.er1
48770   ac_status=$?
48771   grep -v '^ *+' conftest.er1 >conftest.err
48772   rm -f conftest.er1
48773   cat conftest.err >&5
48774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48775   (exit $ac_status); } &&
48776          { ac_try='test -z "$ac_c_werror_flag"
48777                          || test ! -s conftest.err'
48778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48779   (eval $ac_try) 2>&5
48780   ac_status=$?
48781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48782   (exit $ac_status); }; } &&
48783          { ac_try='test -s conftest.$ac_objext'
48784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48785   (eval $ac_try) 2>&5
48786   ac_status=$?
48787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48788   (exit $ac_status); }; }; then
48789   ac_cv_sizeof_wchar_t=$ac_size
48790 else
48791   echo "$as_me: failed program was:" >&5
48792 sed 's/^/| /' conftest.$ac_ext >&5
48793
48794 fi
48795 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48796   if test x$ac_cv_sizeof_wchar_t != x ; then break; fi
48797 done
48798
48799 fi
48800
48801 if test x$ac_cv_sizeof_wchar_t = x ; then
48802   { { echo "$as_me:$LINENO: error: cannot determine a size for wchar_t" >&5
48803 echo "$as_me: error: cannot determine a size for wchar_t" >&2;}
48804    { (exit 1); exit 1; }; }
48805 fi
48806 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
48807 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
48808
48809 cat >>confdefs.h <<_ACEOF
48810 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
48811 _ACEOF
48812
48813
48814
48815 if test "$ac_cv_sizeof_int" -lt 4 ; then
48816         { echo "$as_me:$LINENO: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&5
48817 echo "$as_me: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&2;}
48818
48819         cat >>confdefs.h <<\_ACEOF
48820 #define LBER_INT_T long
48821 _ACEOF
48822
48823 else
48824         cat >>confdefs.h <<\_ACEOF
48825 #define LBER_INT_T int
48826 _ACEOF
48827
48828 fi
48829
48830 cat >>confdefs.h <<\_ACEOF
48831 #define LBER_LEN_T long
48832 _ACEOF
48833
48834 cat >>confdefs.h <<\_ACEOF
48835 #define LBER_SOCKET_T int
48836 _ACEOF
48837
48838 cat >>confdefs.h <<\_ACEOF
48839 #define LBER_TAG_T long
48840 _ACEOF
48841
48842
48843 echo "$as_me:$LINENO: checking for working memcmp" >&5
48844 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
48845 if test "${ac_cv_func_memcmp_working+set}" = set; then
48846   echo $ECHO_N "(cached) $ECHO_C" >&6
48847 else
48848   if test "$cross_compiling" = yes; then
48849   ac_cv_func_memcmp_working=no
48850 else
48851   cat >conftest.$ac_ext <<_ACEOF
48852 /* confdefs.h.  */
48853 _ACEOF
48854 cat confdefs.h >>conftest.$ac_ext
48855 cat >>conftest.$ac_ext <<_ACEOF
48856 /* end confdefs.h.  */
48857 $ac_includes_default
48858 int
48859 main ()
48860 {
48861
48862   /* Some versions of memcmp are not 8-bit clean.  */
48863   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
48864   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
48865     exit (1);
48866
48867   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
48868      or more and with at least one buffer not starting on a 4-byte boundary.
48869      William Lewis provided this test program.   */
48870   {
48871     char foo[21];
48872     char bar[21];
48873     int i;
48874     for (i = 0; i < 4; i++)
48875       {
48876         char *a = foo + i;
48877         char *b = bar + i;
48878         strcpy (a, "--------01111111");
48879         strcpy (b, "--------10000000");
48880         if (memcmp (a, b, 16) >= 0)
48881           exit (1);
48882       }
48883     exit (0);
48884   }
48885
48886   ;
48887   return 0;
48888 }
48889 _ACEOF
48890 rm -f conftest$ac_exeext
48891 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48892   (eval $ac_link) 2>&5
48893   ac_status=$?
48894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48895   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
48896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48897   (eval $ac_try) 2>&5
48898   ac_status=$?
48899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48900   (exit $ac_status); }; }; then
48901   ac_cv_func_memcmp_working=yes
48902 else
48903   echo "$as_me: program exited with status $ac_status" >&5
48904 echo "$as_me: failed program was:" >&5
48905 sed 's/^/| /' conftest.$ac_ext >&5
48906
48907 ( exit $ac_status )
48908 ac_cv_func_memcmp_working=no
48909 fi
48910 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
48911 fi
48912 fi
48913 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
48914 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
48915 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
48916     "memcmp.$ac_objext"   | \
48917   *" memcmp.$ac_objext"   | \
48918     "memcmp.$ac_objext "* | \
48919   *" memcmp.$ac_objext "* ) ;;
48920   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
48921 esac
48922
48923
48924
48925 if test $ac_cv_func_memcmp_working = no ; then
48926
48927 cat >>confdefs.h <<\_ACEOF
48928 #define NEED_MEMCMP_REPLACEMENT 1
48929 _ACEOF
48930
48931 fi
48932
48933
48934 for ac_func in strftime
48935 do
48936 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48937 echo "$as_me:$LINENO: checking for $ac_func" >&5
48938 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
48939 if eval "test \"\${$as_ac_var+set}\" = set"; then
48940   echo $ECHO_N "(cached) $ECHO_C" >&6
48941 else
48942   cat >conftest.$ac_ext <<_ACEOF
48943 /* confdefs.h.  */
48944 _ACEOF
48945 cat confdefs.h >>conftest.$ac_ext
48946 cat >>conftest.$ac_ext <<_ACEOF
48947 /* end confdefs.h.  */
48948 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48949    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
48950 #define $ac_func innocuous_$ac_func
48951
48952 /* System header to define __stub macros and hopefully few prototypes,
48953     which can conflict with char $ac_func (); below.
48954     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48955     <limits.h> exists even on freestanding compilers.  */
48956
48957 #ifdef __STDC__
48958 # include <limits.h>
48959 #else
48960 # include <assert.h>
48961 #endif
48962
48963 #undef $ac_func
48964
48965 /* Override any gcc2 internal prototype to avoid an error.  */
48966 #ifdef __cplusplus
48967 extern "C"
48968 {
48969 #endif
48970 /* We use char because int might match the return type of a gcc2
48971    builtin and then its argument prototype would still apply.  */
48972 char $ac_func ();
48973 /* The GNU C library defines this for functions which it implements
48974     to always fail with ENOSYS.  Some functions are actually named
48975     something starting with __ and the normal name is an alias.  */
48976 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
48977 choke me
48978 #else
48979 char (*f) () = $ac_func;
48980 #endif
48981 #ifdef __cplusplus
48982 }
48983 #endif
48984
48985 int
48986 main ()
48987 {
48988 return f != $ac_func;
48989   ;
48990   return 0;
48991 }
48992 _ACEOF
48993 rm -f conftest.$ac_objext conftest$ac_exeext
48994 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48995   (eval $ac_link) 2>conftest.er1
48996   ac_status=$?
48997   grep -v '^ *+' conftest.er1 >conftest.err
48998   rm -f conftest.er1
48999   cat conftest.err >&5
49000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49001   (exit $ac_status); } &&
49002          { ac_try='test -z "$ac_c_werror_flag"
49003                          || test ! -s conftest.err'
49004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49005   (eval $ac_try) 2>&5
49006   ac_status=$?
49007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49008   (exit $ac_status); }; } &&
49009          { ac_try='test -s conftest$ac_exeext'
49010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49011   (eval $ac_try) 2>&5
49012   ac_status=$?
49013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49014   (exit $ac_status); }; }; then
49015   eval "$as_ac_var=yes"
49016 else
49017   echo "$as_me: failed program was:" >&5
49018 sed 's/^/| /' conftest.$ac_ext >&5
49019
49020 eval "$as_ac_var=no"
49021 fi
49022 rm -f conftest.err conftest.$ac_objext \
49023       conftest$ac_exeext conftest.$ac_ext
49024 fi
49025 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
49026 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
49027 if test `eval echo '${'$as_ac_var'}'` = yes; then
49028   cat >>confdefs.h <<_ACEOF
49029 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49030 _ACEOF
49031
49032 else
49033   # strftime is in -lintl on SCO UNIX.
49034 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
49035 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
49036 if test "${ac_cv_lib_intl_strftime+set}" = set; then
49037   echo $ECHO_N "(cached) $ECHO_C" >&6
49038 else
49039   ac_check_lib_save_LIBS=$LIBS
49040 LIBS="-lintl  $LIBS"
49041 cat >conftest.$ac_ext <<_ACEOF
49042 /* confdefs.h.  */
49043 _ACEOF
49044 cat confdefs.h >>conftest.$ac_ext
49045 cat >>conftest.$ac_ext <<_ACEOF
49046 /* end confdefs.h.  */
49047
49048 /* Override any gcc2 internal prototype to avoid an error.  */
49049 #ifdef __cplusplus
49050 extern "C"
49051 #endif
49052 /* We use char because int might match the return type of a gcc2
49053    builtin and then its argument prototype would still apply.  */
49054 char strftime ();
49055 int
49056 main ()
49057 {
49058 strftime ();
49059   ;
49060   return 0;
49061 }
49062 _ACEOF
49063 rm -f conftest.$ac_objext conftest$ac_exeext
49064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49065   (eval $ac_link) 2>conftest.er1
49066   ac_status=$?
49067   grep -v '^ *+' conftest.er1 >conftest.err
49068   rm -f conftest.er1
49069   cat conftest.err >&5
49070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49071   (exit $ac_status); } &&
49072          { ac_try='test -z "$ac_c_werror_flag"
49073                          || test ! -s conftest.err'
49074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49075   (eval $ac_try) 2>&5
49076   ac_status=$?
49077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49078   (exit $ac_status); }; } &&
49079          { ac_try='test -s conftest$ac_exeext'
49080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49081   (eval $ac_try) 2>&5
49082   ac_status=$?
49083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49084   (exit $ac_status); }; }; then
49085   ac_cv_lib_intl_strftime=yes
49086 else
49087   echo "$as_me: failed program was:" >&5
49088 sed 's/^/| /' conftest.$ac_ext >&5
49089
49090 ac_cv_lib_intl_strftime=no
49091 fi
49092 rm -f conftest.err conftest.$ac_objext \
49093       conftest$ac_exeext conftest.$ac_ext
49094 LIBS=$ac_check_lib_save_LIBS
49095 fi
49096 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
49097 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
49098 if test $ac_cv_lib_intl_strftime = yes; then
49099   cat >>confdefs.h <<\_ACEOF
49100 #define HAVE_STRFTIME 1
49101 _ACEOF
49102
49103 LIBS="-lintl $LIBS"
49104 fi
49105
49106 fi
49107 done
49108
49109
49110 echo "$as_me:$LINENO: checking for inet_aton()" >&5
49111 echo $ECHO_N "checking for inet_aton()... $ECHO_C" >&6
49112 if test "${ol_cv_func_inet_aton+set}" = set; then
49113   echo $ECHO_N "(cached) $ECHO_C" >&6
49114 else
49115   cat >conftest.$ac_ext <<_ACEOF
49116 /* confdefs.h.  */
49117 _ACEOF
49118 cat confdefs.h >>conftest.$ac_ext
49119 cat >>conftest.$ac_ext <<_ACEOF
49120 /* end confdefs.h.  */
49121
49122 #ifdef HAVE_SYS_TYPES_H
49123 #       include <sys/types.h>
49124 #endif
49125 #ifdef HAVE_SYS_SOCKET_H
49126 #       include <sys/socket.h>
49127 #       ifdef HAVE_SYS_SELECT_H
49128 #               include <sys/select.h>
49129 #       endif
49130 #       include <netinet/in.h>
49131 #       ifdef HAVE_ARPA_INET_H
49132 #               include <arpa/inet.h>
49133 #       endif
49134 #endif
49135
49136 int
49137 main ()
49138 {
49139 struct in_addr in;
49140 int rc = inet_aton( "255.255.255.255", &in );
49141   ;
49142   return 0;
49143 }
49144 _ACEOF
49145 rm -f conftest.$ac_objext conftest$ac_exeext
49146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49147   (eval $ac_link) 2>conftest.er1
49148   ac_status=$?
49149   grep -v '^ *+' conftest.er1 >conftest.err
49150   rm -f conftest.er1
49151   cat conftest.err >&5
49152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49153   (exit $ac_status); } &&
49154          { ac_try='test -z "$ac_c_werror_flag"
49155                          || test ! -s conftest.err'
49156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49157   (eval $ac_try) 2>&5
49158   ac_status=$?
49159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49160   (exit $ac_status); }; } &&
49161          { ac_try='test -s conftest$ac_exeext'
49162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49163   (eval $ac_try) 2>&5
49164   ac_status=$?
49165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49166   (exit $ac_status); }; }; then
49167   ol_cv_func_inet_aton=yes
49168 else
49169   echo "$as_me: failed program was:" >&5
49170 sed 's/^/| /' conftest.$ac_ext >&5
49171
49172 ol_cv_func_inet_aton=no
49173 fi
49174 rm -f conftest.err conftest.$ac_objext \
49175       conftest$ac_exeext conftest.$ac_ext
49176 fi
49177 echo "$as_me:$LINENO: result: $ol_cv_func_inet_aton" >&5
49178 echo "${ECHO_T}$ol_cv_func_inet_aton" >&6
49179   if test $ol_cv_func_inet_aton != no; then
49180
49181 cat >>confdefs.h <<\_ACEOF
49182 #define HAVE_INET_ATON 1
49183 _ACEOF
49184
49185   fi
49186
49187
49188 echo "$as_me:$LINENO: checking for _spawnlp" >&5
49189 echo $ECHO_N "checking for _spawnlp... $ECHO_C" >&6
49190 if test "${ac_cv_func__spawnlp+set}" = set; then
49191   echo $ECHO_N "(cached) $ECHO_C" >&6
49192 else
49193   cat >conftest.$ac_ext <<_ACEOF
49194 /* confdefs.h.  */
49195 _ACEOF
49196 cat confdefs.h >>conftest.$ac_ext
49197 cat >>conftest.$ac_ext <<_ACEOF
49198 /* end confdefs.h.  */
49199 /* Define _spawnlp to an innocuous variant, in case <limits.h> declares _spawnlp.
49200    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
49201 #define _spawnlp innocuous__spawnlp
49202
49203 /* System header to define __stub macros and hopefully few prototypes,
49204     which can conflict with char _spawnlp (); below.
49205     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49206     <limits.h> exists even on freestanding compilers.  */
49207
49208 #ifdef __STDC__
49209 # include <limits.h>
49210 #else
49211 # include <assert.h>
49212 #endif
49213
49214 #undef _spawnlp
49215
49216 /* Override any gcc2 internal prototype to avoid an error.  */
49217 #ifdef __cplusplus
49218 extern "C"
49219 {
49220 #endif
49221 /* We use char because int might match the return type of a gcc2
49222    builtin and then its argument prototype would still apply.  */
49223 char _spawnlp ();
49224 /* The GNU C library defines this for functions which it implements
49225     to always fail with ENOSYS.  Some functions are actually named
49226     something starting with __ and the normal name is an alias.  */
49227 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
49228 choke me
49229 #else
49230 char (*f) () = _spawnlp;
49231 #endif
49232 #ifdef __cplusplus
49233 }
49234 #endif
49235
49236 int
49237 main ()
49238 {
49239 return f != _spawnlp;
49240   ;
49241   return 0;
49242 }
49243 _ACEOF
49244 rm -f conftest.$ac_objext conftest$ac_exeext
49245 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49246   (eval $ac_link) 2>conftest.er1
49247   ac_status=$?
49248   grep -v '^ *+' conftest.er1 >conftest.err
49249   rm -f conftest.er1
49250   cat conftest.err >&5
49251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49252   (exit $ac_status); } &&
49253          { ac_try='test -z "$ac_c_werror_flag"
49254                          || test ! -s conftest.err'
49255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49256   (eval $ac_try) 2>&5
49257   ac_status=$?
49258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49259   (exit $ac_status); }; } &&
49260          { ac_try='test -s conftest$ac_exeext'
49261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49262   (eval $ac_try) 2>&5
49263   ac_status=$?
49264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49265   (exit $ac_status); }; }; then
49266   ac_cv_func__spawnlp=yes
49267 else
49268   echo "$as_me: failed program was:" >&5
49269 sed 's/^/| /' conftest.$ac_ext >&5
49270
49271 ac_cv_func__spawnlp=no
49272 fi
49273 rm -f conftest.err conftest.$ac_objext \
49274       conftest$ac_exeext conftest.$ac_ext
49275 fi
49276 echo "$as_me:$LINENO: result: $ac_cv_func__spawnlp" >&5
49277 echo "${ECHO_T}$ac_cv_func__spawnlp" >&6
49278 if test $ac_cv_func__spawnlp = yes; then
49279
49280 cat >>confdefs.h <<\_ACEOF
49281 #define HAVE_SPAWNLP 1
49282 _ACEOF
49283
49284 fi
49285
49286
49287 echo "$as_me:$LINENO: checking for _snprintf" >&5
49288 echo $ECHO_N "checking for _snprintf... $ECHO_C" >&6
49289 if test "${ac_cv_func__snprintf+set}" = set; then
49290   echo $ECHO_N "(cached) $ECHO_C" >&6
49291 else
49292   cat >conftest.$ac_ext <<_ACEOF
49293 /* confdefs.h.  */
49294 _ACEOF
49295 cat confdefs.h >>conftest.$ac_ext
49296 cat >>conftest.$ac_ext <<_ACEOF
49297 /* end confdefs.h.  */
49298 /* Define _snprintf to an innocuous variant, in case <limits.h> declares _snprintf.
49299    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
49300 #define _snprintf innocuous__snprintf
49301
49302 /* System header to define __stub macros and hopefully few prototypes,
49303     which can conflict with char _snprintf (); below.
49304     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49305     <limits.h> exists even on freestanding compilers.  */
49306
49307 #ifdef __STDC__
49308 # include <limits.h>
49309 #else
49310 # include <assert.h>
49311 #endif
49312
49313 #undef _snprintf
49314
49315 /* Override any gcc2 internal prototype to avoid an error.  */
49316 #ifdef __cplusplus
49317 extern "C"
49318 {
49319 #endif
49320 /* We use char because int might match the return type of a gcc2
49321    builtin and then its argument prototype would still apply.  */
49322 char _snprintf ();
49323 /* The GNU C library defines this for functions which it implements
49324     to always fail with ENOSYS.  Some functions are actually named
49325     something starting with __ and the normal name is an alias.  */
49326 #if defined (__stub__snprintf) || defined (__stub____snprintf)
49327 choke me
49328 #else
49329 char (*f) () = _snprintf;
49330 #endif
49331 #ifdef __cplusplus
49332 }
49333 #endif
49334
49335 int
49336 main ()
49337 {
49338 return f != _snprintf;
49339   ;
49340   return 0;
49341 }
49342 _ACEOF
49343 rm -f conftest.$ac_objext conftest$ac_exeext
49344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49345   (eval $ac_link) 2>conftest.er1
49346   ac_status=$?
49347   grep -v '^ *+' conftest.er1 >conftest.err
49348   rm -f conftest.er1
49349   cat conftest.err >&5
49350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49351   (exit $ac_status); } &&
49352          { ac_try='test -z "$ac_c_werror_flag"
49353                          || test ! -s conftest.err'
49354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49355   (eval $ac_try) 2>&5
49356   ac_status=$?
49357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49358   (exit $ac_status); }; } &&
49359          { ac_try='test -s conftest$ac_exeext'
49360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49361   (eval $ac_try) 2>&5
49362   ac_status=$?
49363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49364   (exit $ac_status); }; }; then
49365   ac_cv_func__snprintf=yes
49366 else
49367   echo "$as_me: failed program was:" >&5
49368 sed 's/^/| /' conftest.$ac_ext >&5
49369
49370 ac_cv_func__snprintf=no
49371 fi
49372 rm -f conftest.err conftest.$ac_objext \
49373       conftest$ac_exeext conftest.$ac_ext
49374 fi
49375 echo "$as_me:$LINENO: result: $ac_cv_func__snprintf" >&5
49376 echo "${ECHO_T}$ac_cv_func__snprintf" >&6
49377 if test $ac_cv_func__snprintf = yes; then
49378   ac_cv_func_snprintf=yes
49379
49380 cat >>confdefs.h <<\_ACEOF
49381 #define snprintf _snprintf
49382 _ACEOF
49383
49384
49385 fi
49386
49387
49388 echo "$as_me:$LINENO: checking for _vsnprintf" >&5
49389 echo $ECHO_N "checking for _vsnprintf... $ECHO_C" >&6
49390 if test "${ac_cv_func__vsnprintf+set}" = set; then
49391   echo $ECHO_N "(cached) $ECHO_C" >&6
49392 else
49393   cat >conftest.$ac_ext <<_ACEOF
49394 /* confdefs.h.  */
49395 _ACEOF
49396 cat confdefs.h >>conftest.$ac_ext
49397 cat >>conftest.$ac_ext <<_ACEOF
49398 /* end confdefs.h.  */
49399 /* Define _vsnprintf to an innocuous variant, in case <limits.h> declares _vsnprintf.
49400    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
49401 #define _vsnprintf innocuous__vsnprintf
49402
49403 /* System header to define __stub macros and hopefully few prototypes,
49404     which can conflict with char _vsnprintf (); below.
49405     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49406     <limits.h> exists even on freestanding compilers.  */
49407
49408 #ifdef __STDC__
49409 # include <limits.h>
49410 #else
49411 # include <assert.h>
49412 #endif
49413
49414 #undef _vsnprintf
49415
49416 /* Override any gcc2 internal prototype to avoid an error.  */
49417 #ifdef __cplusplus
49418 extern "C"
49419 {
49420 #endif
49421 /* We use char because int might match the return type of a gcc2
49422    builtin and then its argument prototype would still apply.  */
49423 char _vsnprintf ();
49424 /* The GNU C library defines this for functions which it implements
49425     to always fail with ENOSYS.  Some functions are actually named
49426     something starting with __ and the normal name is an alias.  */
49427 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
49428 choke me
49429 #else
49430 char (*f) () = _vsnprintf;
49431 #endif
49432 #ifdef __cplusplus
49433 }
49434 #endif
49435
49436 int
49437 main ()
49438 {
49439 return f != _vsnprintf;
49440   ;
49441   return 0;
49442 }
49443 _ACEOF
49444 rm -f conftest.$ac_objext conftest$ac_exeext
49445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49446   (eval $ac_link) 2>conftest.er1
49447   ac_status=$?
49448   grep -v '^ *+' conftest.er1 >conftest.err
49449   rm -f conftest.er1
49450   cat conftest.err >&5
49451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49452   (exit $ac_status); } &&
49453          { ac_try='test -z "$ac_c_werror_flag"
49454                          || test ! -s conftest.err'
49455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49456   (eval $ac_try) 2>&5
49457   ac_status=$?
49458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49459   (exit $ac_status); }; } &&
49460          { ac_try='test -s conftest$ac_exeext'
49461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49462   (eval $ac_try) 2>&5
49463   ac_status=$?
49464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49465   (exit $ac_status); }; }; then
49466   ac_cv_func__vsnprintf=yes
49467 else
49468   echo "$as_me: failed program was:" >&5
49469 sed 's/^/| /' conftest.$ac_ext >&5
49470
49471 ac_cv_func__vsnprintf=no
49472 fi
49473 rm -f conftest.err conftest.$ac_objext \
49474       conftest$ac_exeext conftest.$ac_ext
49475 fi
49476 echo "$as_me:$LINENO: result: $ac_cv_func__vsnprintf" >&5
49477 echo "${ECHO_T}$ac_cv_func__vsnprintf" >&6
49478 if test $ac_cv_func__vsnprintf = yes; then
49479   ac_cv_func_vsnprintf=yes
49480
49481 cat >>confdefs.h <<\_ACEOF
49482 #define vsnprintf _vsnprintf
49483 _ACEOF
49484
49485
49486 fi
49487
49488
49489
49490 for ac_func in vprintf
49491 do
49492 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49493 echo "$as_me:$LINENO: checking for $ac_func" >&5
49494 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
49495 if eval "test \"\${$as_ac_var+set}\" = set"; then
49496   echo $ECHO_N "(cached) $ECHO_C" >&6
49497 else
49498   cat >conftest.$ac_ext <<_ACEOF
49499 /* confdefs.h.  */
49500 _ACEOF
49501 cat confdefs.h >>conftest.$ac_ext
49502 cat >>conftest.$ac_ext <<_ACEOF
49503 /* end confdefs.h.  */
49504 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
49505    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
49506 #define $ac_func innocuous_$ac_func
49507
49508 /* System header to define __stub macros and hopefully few prototypes,
49509     which can conflict with char $ac_func (); below.
49510     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49511     <limits.h> exists even on freestanding compilers.  */
49512
49513 #ifdef __STDC__
49514 # include <limits.h>
49515 #else
49516 # include <assert.h>
49517 #endif
49518
49519 #undef $ac_func
49520
49521 /* Override any gcc2 internal prototype to avoid an error.  */
49522 #ifdef __cplusplus
49523 extern "C"
49524 {
49525 #endif
49526 /* We use char because int might match the return type of a gcc2
49527    builtin and then its argument prototype would still apply.  */
49528 char $ac_func ();
49529 /* The GNU C library defines this for functions which it implements
49530     to always fail with ENOSYS.  Some functions are actually named
49531     something starting with __ and the normal name is an alias.  */
49532 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
49533 choke me
49534 #else
49535 char (*f) () = $ac_func;
49536 #endif
49537 #ifdef __cplusplus
49538 }
49539 #endif
49540
49541 int
49542 main ()
49543 {
49544 return f != $ac_func;
49545   ;
49546   return 0;
49547 }
49548 _ACEOF
49549 rm -f conftest.$ac_objext conftest$ac_exeext
49550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49551   (eval $ac_link) 2>conftest.er1
49552   ac_status=$?
49553   grep -v '^ *+' conftest.er1 >conftest.err
49554   rm -f conftest.er1
49555   cat conftest.err >&5
49556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49557   (exit $ac_status); } &&
49558          { ac_try='test -z "$ac_c_werror_flag"
49559                          || test ! -s conftest.err'
49560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49561   (eval $ac_try) 2>&5
49562   ac_status=$?
49563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49564   (exit $ac_status); }; } &&
49565          { ac_try='test -s conftest$ac_exeext'
49566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49567   (eval $ac_try) 2>&5
49568   ac_status=$?
49569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49570   (exit $ac_status); }; }; then
49571   eval "$as_ac_var=yes"
49572 else
49573   echo "$as_me: failed program was:" >&5
49574 sed 's/^/| /' conftest.$ac_ext >&5
49575
49576 eval "$as_ac_var=no"
49577 fi
49578 rm -f conftest.err conftest.$ac_objext \
49579       conftest$ac_exeext conftest.$ac_ext
49580 fi
49581 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
49582 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
49583 if test `eval echo '${'$as_ac_var'}'` = yes; then
49584   cat >>confdefs.h <<_ACEOF
49585 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49586 _ACEOF
49587
49588 echo "$as_me:$LINENO: checking for _doprnt" >&5
49589 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
49590 if test "${ac_cv_func__doprnt+set}" = set; then
49591   echo $ECHO_N "(cached) $ECHO_C" >&6
49592 else
49593   cat >conftest.$ac_ext <<_ACEOF
49594 /* confdefs.h.  */
49595 _ACEOF
49596 cat confdefs.h >>conftest.$ac_ext
49597 cat >>conftest.$ac_ext <<_ACEOF
49598 /* end confdefs.h.  */
49599 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
49600    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
49601 #define _doprnt innocuous__doprnt
49602
49603 /* System header to define __stub macros and hopefully few prototypes,
49604     which can conflict with char _doprnt (); below.
49605     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49606     <limits.h> exists even on freestanding compilers.  */
49607
49608 #ifdef __STDC__
49609 # include <limits.h>
49610 #else
49611 # include <assert.h>
49612 #endif
49613
49614 #undef _doprnt
49615
49616 /* Override any gcc2 internal prototype to avoid an error.  */
49617 #ifdef __cplusplus
49618 extern "C"
49619 {
49620 #endif
49621 /* We use char because int might match the return type of a gcc2
49622    builtin and then its argument prototype would still apply.  */
49623 char _doprnt ();
49624 /* The GNU C library defines this for functions which it implements
49625     to always fail with ENOSYS.  Some functions are actually named
49626     something starting with __ and the normal name is an alias.  */
49627 #if defined (__stub__doprnt) || defined (__stub____doprnt)
49628 choke me
49629 #else
49630 char (*f) () = _doprnt;
49631 #endif
49632 #ifdef __cplusplus
49633 }
49634 #endif
49635
49636 int
49637 main ()
49638 {
49639 return f != _doprnt;
49640   ;
49641   return 0;
49642 }
49643 _ACEOF
49644 rm -f conftest.$ac_objext conftest$ac_exeext
49645 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49646   (eval $ac_link) 2>conftest.er1
49647   ac_status=$?
49648   grep -v '^ *+' conftest.er1 >conftest.err
49649   rm -f conftest.er1
49650   cat conftest.err >&5
49651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49652   (exit $ac_status); } &&
49653          { ac_try='test -z "$ac_c_werror_flag"
49654                          || test ! -s conftest.err'
49655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49656   (eval $ac_try) 2>&5
49657   ac_status=$?
49658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49659   (exit $ac_status); }; } &&
49660          { ac_try='test -s conftest$ac_exeext'
49661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49662   (eval $ac_try) 2>&5
49663   ac_status=$?
49664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49665   (exit $ac_status); }; }; then
49666   ac_cv_func__doprnt=yes
49667 else
49668   echo "$as_me: failed program was:" >&5
49669 sed 's/^/| /' conftest.$ac_ext >&5
49670
49671 ac_cv_func__doprnt=no
49672 fi
49673 rm -f conftest.err conftest.$ac_objext \
49674       conftest$ac_exeext conftest.$ac_ext
49675 fi
49676 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
49677 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
49678 if test $ac_cv_func__doprnt = yes; then
49679
49680 cat >>confdefs.h <<\_ACEOF
49681 #define HAVE_DOPRNT 1
49682 _ACEOF
49683
49684 fi
49685
49686 fi
49687 done
49688
49689
49690
49691 if test $ac_cv_func_vprintf = yes ; then
49692
49693
49694 for ac_func in snprintf vsnprintf
49695 do
49696 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49697 echo "$as_me:$LINENO: checking for $ac_func" >&5
49698 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
49699 if eval "test \"\${$as_ac_var+set}\" = set"; then
49700   echo $ECHO_N "(cached) $ECHO_C" >&6
49701 else
49702   cat >conftest.$ac_ext <<_ACEOF
49703 /* confdefs.h.  */
49704 _ACEOF
49705 cat confdefs.h >>conftest.$ac_ext
49706 cat >>conftest.$ac_ext <<_ACEOF
49707 /* end confdefs.h.  */
49708 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
49709    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
49710 #define $ac_func innocuous_$ac_func
49711
49712 /* System header to define __stub macros and hopefully few prototypes,
49713     which can conflict with char $ac_func (); below.
49714     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49715     <limits.h> exists even on freestanding compilers.  */
49716
49717 #ifdef __STDC__
49718 # include <limits.h>
49719 #else
49720 # include <assert.h>
49721 #endif
49722
49723 #undef $ac_func
49724
49725 /* Override any gcc2 internal prototype to avoid an error.  */
49726 #ifdef __cplusplus
49727 extern "C"
49728 {
49729 #endif
49730 /* We use char because int might match the return type of a gcc2
49731    builtin and then its argument prototype would still apply.  */
49732 char $ac_func ();
49733 /* The GNU C library defines this for functions which it implements
49734     to always fail with ENOSYS.  Some functions are actually named
49735     something starting with __ and the normal name is an alias.  */
49736 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
49737 choke me
49738 #else
49739 char (*f) () = $ac_func;
49740 #endif
49741 #ifdef __cplusplus
49742 }
49743 #endif
49744
49745 int
49746 main ()
49747 {
49748 return f != $ac_func;
49749   ;
49750   return 0;
49751 }
49752 _ACEOF
49753 rm -f conftest.$ac_objext conftest$ac_exeext
49754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49755   (eval $ac_link) 2>conftest.er1
49756   ac_status=$?
49757   grep -v '^ *+' conftest.er1 >conftest.err
49758   rm -f conftest.er1
49759   cat conftest.err >&5
49760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49761   (exit $ac_status); } &&
49762          { ac_try='test -z "$ac_c_werror_flag"
49763                          || test ! -s conftest.err'
49764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49765   (eval $ac_try) 2>&5
49766   ac_status=$?
49767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49768   (exit $ac_status); }; } &&
49769          { ac_try='test -s conftest$ac_exeext'
49770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49771   (eval $ac_try) 2>&5
49772   ac_status=$?
49773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49774   (exit $ac_status); }; }; then
49775   eval "$as_ac_var=yes"
49776 else
49777   echo "$as_me: failed program was:" >&5
49778 sed 's/^/| /' conftest.$ac_ext >&5
49779
49780 eval "$as_ac_var=no"
49781 fi
49782 rm -f conftest.err conftest.$ac_objext \
49783       conftest$ac_exeext conftest.$ac_ext
49784 fi
49785 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
49786 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
49787 if test `eval echo '${'$as_ac_var'}'` = yes; then
49788   cat >>confdefs.h <<_ACEOF
49789 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49790 _ACEOF
49791
49792 fi
49793 done
49794
49795 fi
49796
49797
49798
49799
49800
49801
49802
49803
49804
49805
49806
49807
49808
49809
49810
49811
49812
49813
49814
49815
49816
49817
49818
49819
49820
49821
49822
49823
49824
49825
49826
49827
49828
49829
49830
49831
49832
49833
49834
49835
49836
49837
49838
49839
49840
49841
49842
49843
49844
49845
49846
49847
49848
49849
49850 for ac_func in \
49851         bcopy                   \
49852         closesocket             \
49853         chroot                  \
49854         endgrent                \
49855         endpwent                \
49856         fcntl                   \
49857         flock                   \
49858         fstat                   \
49859         getdtablesize   \
49860         getgrgid                \
49861         gethostname             \
49862         getpass                 \
49863         getpassphrase   \
49864         getpwuid                \
49865         getpwnam                \
49866         getspnam                \
49867         gettimeofday    \
49868         initgroups              \
49869         lockf                   \
49870         memcpy                  \
49871         memmove                 \
49872         mkstemp                 \
49873         mktemp                  \
49874         pipe                    \
49875         read                    \
49876         recv                    \
49877         recvfrom                \
49878         setpwfile               \
49879         setgid                  \
49880         setegid                 \
49881         setsid                  \
49882         setuid                  \
49883         seteuid                 \
49884         signal                  \
49885         strdup                  \
49886         strpbrk                 \
49887         strrchr                 \
49888         strsep                  \
49889         strstr                  \
49890         strtol                  \
49891         strtoul                 \
49892         strtoq                  \
49893         strtouq                 \
49894         strtoll                 \
49895         strspn                  \
49896         sysconf                 \
49897         usleep                  \
49898         waitpid                 \
49899         wait4                   \
49900         write                   \
49901         send                    \
49902         sendmsg                 \
49903         sendto                  \
49904
49905 do
49906 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49907 echo "$as_me:$LINENO: checking for $ac_func" >&5
49908 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
49909 if eval "test \"\${$as_ac_var+set}\" = set"; then
49910   echo $ECHO_N "(cached) $ECHO_C" >&6
49911 else
49912   cat >conftest.$ac_ext <<_ACEOF
49913 /* confdefs.h.  */
49914 _ACEOF
49915 cat confdefs.h >>conftest.$ac_ext
49916 cat >>conftest.$ac_ext <<_ACEOF
49917 /* end confdefs.h.  */
49918 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
49919    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
49920 #define $ac_func innocuous_$ac_func
49921
49922 /* System header to define __stub macros and hopefully few prototypes,
49923     which can conflict with char $ac_func (); below.
49924     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49925     <limits.h> exists even on freestanding compilers.  */
49926
49927 #ifdef __STDC__
49928 # include <limits.h>
49929 #else
49930 # include <assert.h>
49931 #endif
49932
49933 #undef $ac_func
49934
49935 /* Override any gcc2 internal prototype to avoid an error.  */
49936 #ifdef __cplusplus
49937 extern "C"
49938 {
49939 #endif
49940 /* We use char because int might match the return type of a gcc2
49941    builtin and then its argument prototype would still apply.  */
49942 char $ac_func ();
49943 /* The GNU C library defines this for functions which it implements
49944     to always fail with ENOSYS.  Some functions are actually named
49945     something starting with __ and the normal name is an alias.  */
49946 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
49947 choke me
49948 #else
49949 char (*f) () = $ac_func;
49950 #endif
49951 #ifdef __cplusplus
49952 }
49953 #endif
49954
49955 int
49956 main ()
49957 {
49958 return f != $ac_func;
49959   ;
49960   return 0;
49961 }
49962 _ACEOF
49963 rm -f conftest.$ac_objext conftest$ac_exeext
49964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49965   (eval $ac_link) 2>conftest.er1
49966   ac_status=$?
49967   grep -v '^ *+' conftest.er1 >conftest.err
49968   rm -f conftest.er1
49969   cat conftest.err >&5
49970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49971   (exit $ac_status); } &&
49972          { ac_try='test -z "$ac_c_werror_flag"
49973                          || test ! -s conftest.err'
49974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49975   (eval $ac_try) 2>&5
49976   ac_status=$?
49977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49978   (exit $ac_status); }; } &&
49979          { ac_try='test -s conftest$ac_exeext'
49980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49981   (eval $ac_try) 2>&5
49982   ac_status=$?
49983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49984   (exit $ac_status); }; }; then
49985   eval "$as_ac_var=yes"
49986 else
49987   echo "$as_me: failed program was:" >&5
49988 sed 's/^/| /' conftest.$ac_ext >&5
49989
49990 eval "$as_ac_var=no"
49991 fi
49992 rm -f conftest.err conftest.$ac_objext \
49993       conftest$ac_exeext conftest.$ac_ext
49994 fi
49995 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
49996 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
49997 if test `eval echo '${'$as_ac_var'}'` = yes; then
49998   cat >>confdefs.h <<_ACEOF
49999 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
50000 _ACEOF
50001
50002 fi
50003 done
50004
50005
50006
50007
50008 for ac_func in getopt getpeereid
50009 do
50010 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
50011 echo "$as_me:$LINENO: checking for $ac_func" >&5
50012 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
50013 if eval "test \"\${$as_ac_var+set}\" = set"; then
50014   echo $ECHO_N "(cached) $ECHO_C" >&6
50015 else
50016   cat >conftest.$ac_ext <<_ACEOF
50017 /* confdefs.h.  */
50018 _ACEOF
50019 cat confdefs.h >>conftest.$ac_ext
50020 cat >>conftest.$ac_ext <<_ACEOF
50021 /* end confdefs.h.  */
50022 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
50023    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
50024 #define $ac_func innocuous_$ac_func
50025
50026 /* System header to define __stub macros and hopefully few prototypes,
50027     which can conflict with char $ac_func (); below.
50028     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50029     <limits.h> exists even on freestanding compilers.  */
50030
50031 #ifdef __STDC__
50032 # include <limits.h>
50033 #else
50034 # include <assert.h>
50035 #endif
50036
50037 #undef $ac_func
50038
50039 /* Override any gcc2 internal prototype to avoid an error.  */
50040 #ifdef __cplusplus
50041 extern "C"
50042 {
50043 #endif
50044 /* We use char because int might match the return type of a gcc2
50045    builtin and then its argument prototype would still apply.  */
50046 char $ac_func ();
50047 /* The GNU C library defines this for functions which it implements
50048     to always fail with ENOSYS.  Some functions are actually named
50049     something starting with __ and the normal name is an alias.  */
50050 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
50051 choke me
50052 #else
50053 char (*f) () = $ac_func;
50054 #endif
50055 #ifdef __cplusplus
50056 }
50057 #endif
50058
50059 int
50060 main ()
50061 {
50062 return f != $ac_func;
50063   ;
50064   return 0;
50065 }
50066 _ACEOF
50067 rm -f conftest.$ac_objext conftest$ac_exeext
50068 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50069   (eval $ac_link) 2>conftest.er1
50070   ac_status=$?
50071   grep -v '^ *+' conftest.er1 >conftest.err
50072   rm -f conftest.er1
50073   cat conftest.err >&5
50074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50075   (exit $ac_status); } &&
50076          { ac_try='test -z "$ac_c_werror_flag"
50077                          || test ! -s conftest.err'
50078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50079   (eval $ac_try) 2>&5
50080   ac_status=$?
50081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50082   (exit $ac_status); }; } &&
50083          { ac_try='test -s conftest$ac_exeext'
50084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50085   (eval $ac_try) 2>&5
50086   ac_status=$?
50087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50088   (exit $ac_status); }; }; then
50089   eval "$as_ac_var=yes"
50090 else
50091   echo "$as_me: failed program was:" >&5
50092 sed 's/^/| /' conftest.$ac_ext >&5
50093
50094 eval "$as_ac_var=no"
50095 fi
50096 rm -f conftest.err conftest.$ac_objext \
50097       conftest$ac_exeext conftest.$ac_ext
50098 fi
50099 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
50100 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
50101 if test `eval echo '${'$as_ac_var'}'` = yes; then
50102   cat >>confdefs.h <<_ACEOF
50103 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
50104 _ACEOF
50105
50106 else
50107   case $LIBOBJS in
50108     "$ac_func.$ac_objext"   | \
50109   *" $ac_func.$ac_objext"   | \
50110     "$ac_func.$ac_objext "* | \
50111   *" $ac_func.$ac_objext "* ) ;;
50112   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
50113 esac
50114
50115 fi
50116 done
50117
50118
50119
50120 if test "$ac_cv_func_getopt" != yes; then
50121         LIBSRCS="$LIBSRCS getopt.c"
50122 fi
50123 if test "$ac_cv_func_getpeereid" != yes; then
50124         echo "$as_me:$LINENO: checking for msg_accrights in msghdr" >&5
50125 echo $ECHO_N "checking for msg_accrights in msghdr... $ECHO_C" >&6
50126 if test "${ol_cv_msghdr_msg_accrights+set}" = set; then
50127   echo $ECHO_N "(cached) $ECHO_C" >&6
50128 else
50129   cat >conftest.$ac_ext <<_ACEOF
50130 /* confdefs.h.  */
50131 _ACEOF
50132 cat confdefs.h >>conftest.$ac_ext
50133 cat >>conftest.$ac_ext <<_ACEOF
50134 /* end confdefs.h.  */
50135 #include <sys/socket.h>
50136 int
50137 main ()
50138 {
50139 struct msghdr m; m.msg_accrightslen=0
50140   ;
50141   return 0;
50142 }
50143 _ACEOF
50144 rm -f conftest.$ac_objext
50145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50146   (eval $ac_compile) 2>conftest.er1
50147   ac_status=$?
50148   grep -v '^ *+' conftest.er1 >conftest.err
50149   rm -f conftest.er1
50150   cat conftest.err >&5
50151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50152   (exit $ac_status); } &&
50153          { ac_try='test -z "$ac_c_werror_flag"
50154                          || test ! -s conftest.err'
50155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50156   (eval $ac_try) 2>&5
50157   ac_status=$?
50158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50159   (exit $ac_status); }; } &&
50160          { ac_try='test -s conftest.$ac_objext'
50161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50162   (eval $ac_try) 2>&5
50163   ac_status=$?
50164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50165   (exit $ac_status); }; }; then
50166   ol_cv_msghdr_msg_accrights=yes
50167 else
50168   echo "$as_me: failed program was:" >&5
50169 sed 's/^/| /' conftest.$ac_ext >&5
50170
50171 ol_cv_msghdr_msg_accrights=no
50172 fi
50173 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50174
50175 fi
50176 echo "$as_me:$LINENO: result: $ol_cv_msghdr_msg_accrights" >&5
50177 echo "${ECHO_T}$ol_cv_msghdr_msg_accrights" >&6
50178   if test $ol_cv_msghdr_msg_accrights = "yes" ; then
50179
50180 cat >>confdefs.h <<\_ACEOF
50181 #define HAVE_MSGHDR_MSG_ACCRIGHTS 1
50182 _ACEOF
50183
50184   fi
50185
50186         if test "$ac_cv_func_getpeereid" != yes; then
50187                 echo "$as_me:$LINENO: checking for msg_control in msghdr" >&5
50188 echo $ECHO_N "checking for msg_control in msghdr... $ECHO_C" >&6
50189 if test "${ol_cv_msghdr_msg_control+set}" = set; then
50190   echo $ECHO_N "(cached) $ECHO_C" >&6
50191 else
50192   cat >conftest.$ac_ext <<_ACEOF
50193 /* confdefs.h.  */
50194 _ACEOF
50195 cat confdefs.h >>conftest.$ac_ext
50196 cat >>conftest.$ac_ext <<_ACEOF
50197 /* end confdefs.h.  */
50198 #include <sys/socket.h>
50199 int
50200 main ()
50201 {
50202 struct msghdr m; m.msg_control=(struct cmsghdr *)0
50203   ;
50204   return 0;
50205 }
50206 _ACEOF
50207 rm -f conftest.$ac_objext
50208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50209   (eval $ac_compile) 2>conftest.er1
50210   ac_status=$?
50211   grep -v '^ *+' conftest.er1 >conftest.err
50212   rm -f conftest.er1
50213   cat conftest.err >&5
50214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50215   (exit $ac_status); } &&
50216          { ac_try='test -z "$ac_c_werror_flag"
50217                          || test ! -s conftest.err'
50218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50219   (eval $ac_try) 2>&5
50220   ac_status=$?
50221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50222   (exit $ac_status); }; } &&
50223          { ac_try='test -s conftest.$ac_objext'
50224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50225   (eval $ac_try) 2>&5
50226   ac_status=$?
50227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50228   (exit $ac_status); }; }; then
50229   ol_cv_msghdr_msg_control=yes
50230 else
50231   echo "$as_me: failed program was:" >&5
50232 sed 's/^/| /' conftest.$ac_ext >&5
50233
50234 ol_cv_msghdr_msg_control=no
50235 fi
50236 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50237
50238 fi
50239 echo "$as_me:$LINENO: result: $ol_cv_msghdr_msg_control" >&5
50240 echo "${ECHO_T}$ol_cv_msghdr_msg_control" >&6
50241   if test $ol_cv_msghdr_msg_control = "yes" ; then
50242
50243 cat >>confdefs.h <<\_ACEOF
50244 #define HAVE_MSGHDR_MSG_CONTROL 1
50245 _ACEOF
50246
50247   fi
50248
50249         fi
50250         LIBSRCS="$LIBSRCS getpeereid.c"
50251 fi
50252 if test "$ac_cv_func_snprintf" != yes -o "$ac_cv_func_vsnprintf" != yes; then
50253         if test "$ac_cv_func_snprintf" != yes; then
50254
50255 cat >>confdefs.h <<\_ACEOF
50256 #define snprintf ber_pvt_snprintf
50257 _ACEOF
50258
50259         fi
50260         if test "$ac_cv_func_vsnprintf" != yes; then
50261
50262 cat >>confdefs.h <<\_ACEOF
50263 #define vsnprintf ber_pvt_vsnprintf
50264 _ACEOF
50265
50266         fi
50267 fi
50268
50269
50270 if test "$ol_enable_slapi" != no ; then
50271
50272 for ac_header in ltdl.h
50273 do
50274 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
50275 if eval "test \"\${$as_ac_Header+set}\" = set"; then
50276   echo "$as_me:$LINENO: checking for $ac_header" >&5
50277 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
50278 if eval "test \"\${$as_ac_Header+set}\" = set"; then
50279   echo $ECHO_N "(cached) $ECHO_C" >&6
50280 fi
50281 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
50282 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
50283 else
50284   # Is the header compilable?
50285 echo "$as_me:$LINENO: checking $ac_header usability" >&5
50286 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
50287 cat >conftest.$ac_ext <<_ACEOF
50288 /* confdefs.h.  */
50289 _ACEOF
50290 cat confdefs.h >>conftest.$ac_ext
50291 cat >>conftest.$ac_ext <<_ACEOF
50292 /* end confdefs.h.  */
50293 $ac_includes_default
50294 #include <$ac_header>
50295 _ACEOF
50296 rm -f conftest.$ac_objext
50297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50298   (eval $ac_compile) 2>conftest.er1
50299   ac_status=$?
50300   grep -v '^ *+' conftest.er1 >conftest.err
50301   rm -f conftest.er1
50302   cat conftest.err >&5
50303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50304   (exit $ac_status); } &&
50305          { ac_try='test -z "$ac_c_werror_flag"
50306                          || test ! -s conftest.err'
50307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50308   (eval $ac_try) 2>&5
50309   ac_status=$?
50310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50311   (exit $ac_status); }; } &&
50312          { ac_try='test -s conftest.$ac_objext'
50313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50314   (eval $ac_try) 2>&5
50315   ac_status=$?
50316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50317   (exit $ac_status); }; }; then
50318   ac_header_compiler=yes
50319 else
50320   echo "$as_me: failed program was:" >&5
50321 sed 's/^/| /' conftest.$ac_ext >&5
50322
50323 ac_header_compiler=no
50324 fi
50325 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50326 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
50327 echo "${ECHO_T}$ac_header_compiler" >&6
50328
50329 # Is the header present?
50330 echo "$as_me:$LINENO: checking $ac_header presence" >&5
50331 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
50332 cat >conftest.$ac_ext <<_ACEOF
50333 /* confdefs.h.  */
50334 _ACEOF
50335 cat confdefs.h >>conftest.$ac_ext
50336 cat >>conftest.$ac_ext <<_ACEOF
50337 /* end confdefs.h.  */
50338 #include <$ac_header>
50339 _ACEOF
50340 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
50341   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
50342   ac_status=$?
50343   grep -v '^ *+' conftest.er1 >conftest.err
50344   rm -f conftest.er1
50345   cat conftest.err >&5
50346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50347   (exit $ac_status); } >/dev/null; then
50348   if test -s conftest.err; then
50349     ac_cpp_err=$ac_c_preproc_warn_flag
50350     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
50351   else
50352     ac_cpp_err=
50353   fi
50354 else
50355   ac_cpp_err=yes
50356 fi
50357 if test -z "$ac_cpp_err"; then
50358   ac_header_preproc=yes
50359 else
50360   echo "$as_me: failed program was:" >&5
50361 sed 's/^/| /' conftest.$ac_ext >&5
50362
50363   ac_header_preproc=no
50364 fi
50365 rm -f conftest.err conftest.$ac_ext
50366 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
50367 echo "${ECHO_T}$ac_header_preproc" >&6
50368
50369 # So?  What about this header?
50370 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
50371   yes:no: )
50372     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
50373 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
50374     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
50375 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
50376     ac_header_preproc=yes
50377     ;;
50378   no:yes:* )
50379     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
50380 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
50381     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
50382 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
50383     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
50384 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
50385     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
50386 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
50387     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
50388 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
50389     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
50390 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
50391     (
50392       cat <<\_ASBOX
50393 ## ------------------------------------------ ##
50394 ## Report this to the AC_PACKAGE_NAME lists.  ##
50395 ## ------------------------------------------ ##
50396 _ASBOX
50397     ) |
50398       sed "s/^/$as_me: WARNING:     /" >&2
50399     ;;
50400 esac
50401 echo "$as_me:$LINENO: checking for $ac_header" >&5
50402 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
50403 if eval "test \"\${$as_ac_Header+set}\" = set"; then
50404   echo $ECHO_N "(cached) $ECHO_C" >&6
50405 else
50406   eval "$as_ac_Header=\$ac_header_preproc"
50407 fi
50408 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
50409 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
50410
50411 fi
50412 if test `eval echo '${'$as_ac_Header'}'` = yes; then
50413   cat >>confdefs.h <<_ACEOF
50414 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
50415 _ACEOF
50416
50417 fi
50418
50419 done
50420
50421
50422         if test $ac_cv_header_ltdl_h != yes ; then
50423                 { { echo "$as_me:$LINENO: error: could not locate <ltdl.h>" >&5
50424 echo "$as_me: error: could not locate <ltdl.h>" >&2;}
50425    { (exit 1); exit 1; }; }
50426         fi
50427         echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
50428 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
50429 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
50430   echo $ECHO_N "(cached) $ECHO_C" >&6
50431 else
50432   ac_check_lib_save_LIBS=$LIBS
50433 LIBS="-lltdl  $LIBS"
50434 cat >conftest.$ac_ext <<_ACEOF
50435 /* confdefs.h.  */
50436 _ACEOF
50437 cat confdefs.h >>conftest.$ac_ext
50438 cat >>conftest.$ac_ext <<_ACEOF
50439 /* end confdefs.h.  */
50440
50441 /* Override any gcc2 internal prototype to avoid an error.  */
50442 #ifdef __cplusplus
50443 extern "C"
50444 #endif
50445 /* We use char because int might match the return type of a gcc2
50446    builtin and then its argument prototype would still apply.  */
50447 char lt_dlinit ();
50448 int
50449 main ()
50450 {
50451 lt_dlinit ();
50452   ;
50453   return 0;
50454 }
50455 _ACEOF
50456 rm -f conftest.$ac_objext conftest$ac_exeext
50457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50458   (eval $ac_link) 2>conftest.er1
50459   ac_status=$?
50460   grep -v '^ *+' conftest.er1 >conftest.err
50461   rm -f conftest.er1
50462   cat conftest.err >&5
50463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50464   (exit $ac_status); } &&
50465          { ac_try='test -z "$ac_c_werror_flag"
50466                          || test ! -s conftest.err'
50467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50468   (eval $ac_try) 2>&5
50469   ac_status=$?
50470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50471   (exit $ac_status); }; } &&
50472          { ac_try='test -s conftest$ac_exeext'
50473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50474   (eval $ac_try) 2>&5
50475   ac_status=$?
50476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50477   (exit $ac_status); }; }; then
50478   ac_cv_lib_ltdl_lt_dlinit=yes
50479 else
50480   echo "$as_me: failed program was:" >&5
50481 sed 's/^/| /' conftest.$ac_ext >&5
50482
50483 ac_cv_lib_ltdl_lt_dlinit=no
50484 fi
50485 rm -f conftest.err conftest.$ac_objext \
50486       conftest$ac_exeext conftest.$ac_ext
50487 LIBS=$ac_check_lib_save_LIBS
50488 fi
50489 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
50490 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
50491 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
50492
50493                 SLAPI_LIBS=-lltdl
50494                 LIBSLAPI=libslapi.a
50495                 LIBSLAPITOOLS=../libslapi.a
50496
50497 cat >>confdefs.h <<\_ACEOF
50498 #define HAVE_LIBLTDL 1
50499 _ACEOF
50500
50501
50502 else
50503   { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
50504 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
50505    { (exit 1); exit 1; }; }
50506 fi
50507
50508
50509
50510 cat >>confdefs.h <<\_ACEOF
50511 #define LDAP_SLAPI 1
50512 _ACEOF
50513
50514 fi
50515
50516 if test "$ol_enable_debug" != no ; then
50517
50518 cat >>confdefs.h <<\_ACEOF
50519 #define LDAP_DEBUG 1
50520 _ACEOF
50521
50522 fi
50523 if test "$ol_enable_syslog" = yes ; then
50524
50525 cat >>confdefs.h <<\_ACEOF
50526 #define LDAP_SYSLOG 1
50527 _ACEOF
50528
50529 fi
50530 if test "$ol_link_kbind" != no ; then
50531         cat >>confdefs.h <<\_ACEOF
50532 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
50533 _ACEOF
50534
50535 fi
50536 if test "$ol_enable_proctitle" != no ; then
50537
50538 cat >>confdefs.h <<\_ACEOF
50539 #define LDAP_PROCTITLE 1
50540 _ACEOF
50541
50542 fi
50543 if test "$ol_enable_referrals" != no ; then
50544         cat >>confdefs.h <<\_ACEOF
50545 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
50546 _ACEOF
50547
50548 fi
50549 if test "$ol_enable_local" != no; then
50550
50551 cat >>confdefs.h <<\_ACEOF
50552 #define LDAP_PF_LOCAL 1
50553 _ACEOF
50554
50555 fi
50556 if test "$ol_link_ipv6" != no; then
50557
50558 cat >>confdefs.h <<\_ACEOF
50559 #define LDAP_PF_INET6 1
50560 _ACEOF
50561
50562 fi
50563 if test "$ol_enable_cleartext" != no ; then
50564
50565 cat >>confdefs.h <<\_ACEOF
50566 #define SLAPD_CLEARTEXT 1
50567 _ACEOF
50568
50569 fi
50570 if test "$ol_enable_crypt" != no ; then
50571
50572 cat >>confdefs.h <<\_ACEOF
50573 #define SLAPD_CRYPT 1
50574 _ACEOF
50575
50576 fi
50577 if test "$ol_link_spasswd" != no ; then
50578
50579 cat >>confdefs.h <<\_ACEOF
50580 #define SLAPD_SPASSWD 1
50581 _ACEOF
50582
50583 fi
50584 if test "$ol_enable_multimaster" != no ; then
50585
50586 cat >>confdefs.h <<\_ACEOF
50587 #define SLAPD_MULTIMASTER 1
50588 _ACEOF
50589
50590 fi
50591 if test "$ol_enable_rlookups" != no ; then
50592
50593 cat >>confdefs.h <<\_ACEOF
50594 #define SLAPD_RLOOKUPS 1
50595 _ACEOF
50596
50597 fi
50598 if test "$ol_enable_aci" != no ; then
50599
50600 cat >>confdefs.h <<\_ACEOF
50601 #define SLAPD_ACI_ENABLED 1
50602 _ACEOF
50603
50604 fi
50605
50606 if test "$ol_link_modules" != no ; then
50607
50608 cat >>confdefs.h <<\_ACEOF
50609 #define SLAPD_MODULES 1
50610 _ACEOF
50611
50612         BUILD_SLAPD=yes
50613         SLAPD_MODULES_LDFLAGS="-dlopen self"
50614 fi
50615
50616
50617 cat >>confdefs.h <<\_ACEOF
50618 #define SLAPD_MOD_STATIC 1
50619 _ACEOF
50620
50621
50622 cat >>confdefs.h <<\_ACEOF
50623 #define SLAPD_MOD_DYNAMIC 2
50624 _ACEOF
50625
50626
50627 if test "$ol_enable_bdb" != no ; then
50628         BUILD_SLAPD=yes
50629         BUILD_BDB=$ol_enable_bdb
50630         if test "$ol_enable_bdb" = mod ; then
50631                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
50632                 MFLAG=SLAPD_MOD_DYNAMIC
50633         else
50634                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
50635                 MFLAG=SLAPD_MOD_STATIC
50636         fi
50637
50638 cat >>confdefs.h <<_ACEOF
50639 #define SLAPD_BDB $MFLAG
50640 _ACEOF
50641
50642 fi
50643
50644 if test "$ol_enable_dnssrv" != no ; then
50645         BUILD_SLAPD=yes
50646         BUILD_DNSSRV=$ol_enable_dnssrv
50647         if test "$ol_enable_dnssrv" = mod ; then
50648                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
50649                 MFLAG=SLAPD_MOD_DYNAMIC
50650         else
50651                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
50652                 MFLAG=SLAPD_MOD_STATIC
50653         fi
50654
50655 cat >>confdefs.h <<_ACEOF
50656 #define SLAPD_DNSSRV $MFLAG
50657 _ACEOF
50658
50659 fi
50660
50661 if test "$ol_enable_hdb" != no ; then
50662         BUILD_SLAPD=yes
50663         BUILD_HDB=$ol_enable_hdb
50664         if test "$ol_enable_hdb" = mod ; then
50665                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-hdb"
50666                 MFLAG=SLAPD_MOD_DYNAMIC
50667         else
50668                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-hdb"
50669                 MFLAG=SLAPD_MOD_STATIC
50670         fi
50671
50672 cat >>confdefs.h <<_ACEOF
50673 #define SLAPD_HDB $MFLAG
50674 _ACEOF
50675
50676 fi
50677
50678 if test "$ol_enable_ldap" != no ; then
50679         BUILD_SLAPD=yes
50680         BUILD_LDAP=$ol_enable_ldap
50681         if test "$ol_enable_ldap" = mod ; then
50682                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
50683                 MFLAG=SLAPD_MOD_DYNAMIC
50684         else
50685                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
50686                 MFLAG=SLAPD_MOD_STATIC
50687         fi
50688
50689 cat >>confdefs.h <<_ACEOF
50690 #define SLAPD_LDAP $MFLAG
50691 _ACEOF
50692
50693 fi
50694
50695 if test "$ol_link_ldbm" != no -a $ol_enable_ldbm != no; then
50696         BUILD_SLAPD=yes
50697         BUILD_LDBM=$ol_enable_ldbm
50698         if test "$ol_enable_ldbm" = mod ; then
50699                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldbm"
50700                 MFLAG=SLAPD_MOD_DYNAMIC
50701         else
50702                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldbm"
50703                 MFLAG=SLAPD_MOD_STATIC
50704         fi
50705
50706 cat >>confdefs.h <<_ACEOF
50707 #define SLAPD_LDBM $MFLAG
50708 _ACEOF
50709
50710 fi
50711
50712 if test "$ol_enable_meta" != no ; then
50713         BUILD_SLAPD=yes
50714         BUILD_META=$ol_enable_meta
50715         BUILD_REWRITE=yes
50716         if test "$ol_enable_meta" = mod ; then
50717                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
50718                 MFLAG=SLAPD_MOD_DYNAMIC
50719         else
50720                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
50721                 MFLAG=SLAPD_MOD_STATIC
50722         fi
50723
50724 cat >>confdefs.h <<_ACEOF
50725 #define SLAPD_META $MFLAG
50726 _ACEOF
50727
50728 fi
50729
50730 if test "$ol_enable_monitor" != no ; then
50731         BUILD_SLAPD=yes
50732         BUILD_MONITOR=$ol_enable_monitor
50733         if test "$ol_enable_monitor" = mod ; then
50734                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
50735                 MFLAG=SLAPD_MOD_DYNAMIC
50736         else
50737                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
50738                 MFLAG=SLAPD_MOD_STATIC
50739         fi
50740
50741 cat >>confdefs.h <<_ACEOF
50742 #define SLAPD_MONITOR $MFLAG
50743 _ACEOF
50744
50745 fi
50746
50747 if test "$ol_enable_null" != no ; then
50748         BUILD_SLAPD=yes
50749         BUILD_NULL=$ol_enable_null
50750         if test "$ol_enable_null" = mod ; then
50751                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
50752                 MFLAG=SLAPD_MOD_DYNAMIC
50753         else
50754                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
50755                 MFLAG=SLAPD_MOD_STATIC
50756         fi
50757
50758 cat >>confdefs.h <<_ACEOF
50759 #define SLAPD_NULL $MFLAG
50760 _ACEOF
50761
50762 fi
50763
50764 if test "$ol_enable_passwd" != no ; then
50765         BUILD_SLAPD=yes
50766         BUILD_PASSWD=$ol_enable_passwd
50767         if test "$ol_enable_passwd" = mod ; then
50768                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
50769                 MFLAG=SLAPD_MOD_DYNAMIC
50770         else
50771                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
50772                 MFLAG=SLAPD_MOD_STATIC
50773         fi
50774
50775 cat >>confdefs.h <<_ACEOF
50776 #define SLAPD_PASSWD $MFLAG
50777 _ACEOF
50778
50779 fi
50780
50781 if test "$ol_link_perl" != no ; then
50782         BUILD_SLAPD=yes
50783         BUILD_PERL=$ol_enable_perl
50784         if test "$ol_enable_perl" = mod ; then
50785                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
50786                 MFLAG=SLAPD_MOD_DYNAMIC
50787         else
50788                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
50789                 MFLAG=SLAPD_MOD_STATIC
50790         fi
50791
50792 cat >>confdefs.h <<_ACEOF
50793 #define SLAPD_PERL $MFLAG
50794 _ACEOF
50795
50796 fi
50797
50798 if test "$ol_enable_relay" != no ; then
50799         BUILD_SLAPD=yes
50800         BUILD_RELAY=$ol_enable_relay
50801         if test "$ol_enable_relay" = mod ; then
50802                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-relay"
50803                 MFLAG=SLAPD_MOD_DYNAMIC
50804         else
50805                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-relay"
50806                 MFLAG=SLAPD_MOD_STATIC
50807         fi
50808
50809 cat >>confdefs.h <<_ACEOF
50810 #define SLAPD_RELAY $MFLAG
50811 _ACEOF
50812
50813 fi
50814
50815 if test "$ol_enable_shell" != no ; then
50816         if test "$ol_link_thread" != no ; then
50817                 { echo "$as_me:$LINENO: WARNING: Use of --without-threads is recommended with back-shell" >&5
50818 echo "$as_me: WARNING: Use of --without-threads is recommended with back-shell" >&2;}
50819         fi
50820         BUILD_SLAPD=yes
50821         BUILD_SHELL=$ol_enable_shell
50822         if test "$ol_enable_shell" = mod ; then
50823                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
50824                 MFLAG=SLAPD_MOD_DYNAMIC
50825         else
50826                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
50827                 MFLAG=SLAPD_MOD_STATIC
50828         fi
50829
50830 cat >>confdefs.h <<_ACEOF
50831 #define SLAPD_SHELL $MFLAG
50832 _ACEOF
50833
50834 fi
50835
50836 if test "$ol_link_sql" != no ; then
50837         BUILD_SLAPD=yes
50838         BUILD_SQL=$ol_enable_sql
50839         if test "$ol_enable_sql" = mod; then
50840                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
50841                 MFLAG=SLAPD_MOD_DYNAMIC
50842         else
50843                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
50844                 MFLAG=SLAPD_MOD_STATIC
50845         fi
50846
50847 cat >>confdefs.h <<_ACEOF
50848 #define SLAPD_SQL $MFLAG
50849 _ACEOF
50850
50851 fi
50852
50853 if test "$ol_enable_accesslog" != no ; then
50854         BUILD_ACCESSLOG=$ol_enable_accesslog
50855         if test "$ol_enable_accesslog" = mod ; then
50856                 MFLAG=SLAPD_MOD_DYNAMIC
50857                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS accesslog.la"
50858         else
50859                 MFLAG=SLAPD_MOD_STATIC
50860                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS accesslog.o"
50861         fi
50862
50863 cat >>confdefs.h <<_ACEOF
50864 #define SLAPD_OVER_ACCESSLOG $MFLAG
50865 _ACEOF
50866
50867 fi
50868
50869 if test "$ol_enable_denyop" != no ; then
50870         BUILD_DENYOP=$ol_enable_denyop
50871         if test "$ol_enable_denyop" = mod ; then
50872                 MFLAG=SLAPD_MOD_DYNAMIC
50873                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS denyop.la"
50874         else
50875                 MFLAG=SLAPD_MOD_STATIC
50876                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS denyop.o"
50877         fi
50878
50879 cat >>confdefs.h <<_ACEOF
50880 #define SLAPD_OVER_DENYOP $MFLAG
50881 _ACEOF
50882
50883 fi
50884
50885 if test "$ol_enable_dyngroup" != no ; then
50886         BUILD_DYNGROUP=$ol_enable_dyngroup
50887         if test "$ol_enable_dyngroup" = mod ; then
50888                 MFLAG=SLAPD_MOD_DYNAMIC
50889                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dyngroup.la"
50890         else
50891                 MFLAG=SLAPD_MOD_STATIC
50892                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dyngroup.o"
50893         fi
50894
50895 cat >>confdefs.h <<_ACEOF
50896 #define SLAPD_OVER_DYNGROUP $MFLAG
50897 _ACEOF
50898
50899 fi
50900
50901 if test "$ol_enable_dynlist" != no ; then
50902         BUILD_DYNLIST=$ol_enable_dynlist
50903         if test "$ol_enable_dynlist" = mod ; then
50904                 MFLAG=SLAPD_MOD_DYNAMIC
50905                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dynlist.la"
50906         else
50907                 MFLAG=SLAPD_MOD_STATIC
50908                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dynlist.o"
50909         fi
50910
50911 cat >>confdefs.h <<_ACEOF
50912 #define SLAPD_OVER_DYNLIST $MFLAG
50913 _ACEOF
50914
50915 fi
50916
50917 if test "$ol_enable_glue" != no ; then
50918         BUILD_GLUE=$ol_enable_glue
50919         if test "$ol_enable_glue" = mod ; then
50920                 MFLAG=SLAPD_MOD_DYNAMIC
50921                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS glue.la"
50922         else
50923                 MFLAG=SLAPD_MOD_STATIC
50924                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS glue.o"
50925         fi
50926
50927 cat >>confdefs.h <<_ACEOF
50928 #define SLAPD_OVER_GLUE $MFLAG
50929 _ACEOF
50930
50931 fi
50932
50933 if test "$ol_enable_lastmod" != no ; then
50934         BUILD_LASTMOD=$ol_enable_lastmod
50935         if test "$ol_enable_lastmod" = mod ; then
50936                 MFLAG=SLAPD_MOD_DYNAMIC
50937                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS lastmod.la"
50938         else
50939                 MFLAG=SLAPD_MOD_STATIC
50940                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS lastmod.o"
50941         fi
50942
50943 cat >>confdefs.h <<_ACEOF
50944 #define SLAPD_OVER_LASTMOD $MFLAG
50945 _ACEOF
50946
50947 fi
50948
50949 if test "$ol_enable_ppolicy" != no ; then
50950         BUILD_PPOLICY=$ol_enable_ppolicy
50951         if test "$ol_enable_ppolicy" = mod ; then
50952                 MFLAG=SLAPD_MOD_DYNAMIC
50953                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS ppolicy.la"
50954         else
50955                 MFLAG=SLAPD_MOD_STATIC
50956                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS ppolicy.o"
50957         fi
50958
50959 cat >>confdefs.h <<_ACEOF
50960 #define SLAPD_OVER_PPOLICY $MFLAG
50961 _ACEOF
50962
50963 fi
50964
50965 if test "$ol_enable_proxycache" != no ; then
50966         BUILD_PROXYCACHE=$ol_enable_proxycache
50967         if test "$ol_enable_proxycache" = mod ; then
50968                 MFLAG=SLAPD_MOD_DYNAMIC
50969                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS pcache.la"
50970         else
50971                 MFLAG=SLAPD_MOD_STATIC
50972                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS pcache.o"
50973         fi
50974
50975 cat >>confdefs.h <<_ACEOF
50976 #define SLAPD_OVER_PROXYCACHE $MFLAG
50977 _ACEOF
50978
50979 fi
50980
50981 if test "$ol_enable_refint" != no ; then
50982         BUILD_REFINT=$ol_enable_refint
50983         if test "$ol_enable_refint" = mod ; then
50984                 MFLAG=SLAPD_MOD_DYNAMIC
50985                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS refint.la"
50986         else
50987                 MFLAG=SLAPD_MOD_STATIC
50988                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS refint.o"
50989         fi
50990
50991 cat >>confdefs.h <<_ACEOF
50992 #define SLAPD_OVER_REFINT $MFLAG
50993 _ACEOF
50994
50995 fi
50996
50997 if test "$ol_enable_retcode" != no ; then
50998         BUILD_RETCODE=$ol_enable_retcode
50999         if test "$ol_enable_retcode" = mod ; then
51000                 MFLAG=SLAPD_MOD_DYNAMIC
51001                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS retcode.la"
51002         else
51003                 MFLAG=SLAPD_MOD_STATIC
51004                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS retcode.o"
51005         fi
51006
51007 cat >>confdefs.h <<_ACEOF
51008 #define SLAPD_OVER_RETCODE $MFLAG
51009 _ACEOF
51010
51011 fi
51012
51013 if test "$ol_enable_rwm" != no ; then
51014         BUILD_REWRITE=yes
51015         BUILD_RWM=$ol_enable_rwm
51016         if test "$ol_enable_rwm" = mod ; then
51017                 MFLAG=SLAPD_MOD_DYNAMIC
51018                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS rwm.la"
51019         else
51020                 MFLAG=SLAPD_MOD_STATIC
51021                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS rwm_x.o"
51022         fi
51023
51024 cat >>confdefs.h <<_ACEOF
51025 #define SLAPD_OVER_RWM $MFLAG
51026 _ACEOF
51027
51028 fi
51029
51030 if test "$ol_enable_syncprov" != no ; then
51031         BUILD_SYNCPROV=$ol_enable_syncprov
51032         if test "$ol_enable_syncprov" = mod ; then
51033                 MFLAG=SLAPD_MOD_DYNAMIC
51034                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS syncprov.la"
51035         else
51036                 MFLAG=SLAPD_MOD_STATIC
51037                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS syncprov.o"
51038         fi
51039
51040 cat >>confdefs.h <<_ACEOF
51041 #define SLAPD_OVER_SYNCPROV $MFLAG
51042 _ACEOF
51043
51044 fi
51045
51046 if test "$ol_enable_translucent" != no ; then
51047         BUILD_TRANSLUCENT=$ol_enable_translucent
51048         if test "$ol_enable_translucent" = mod ; then
51049                 MFLAG=SLAPD_MOD_DYNAMIC
51050                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS translucent.la"
51051         else
51052                 MFLAG=SLAPD_MOD_STATIC
51053                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS translucent.o"
51054         fi
51055
51056 cat >>confdefs.h <<_ACEOF
51057 #define SLAPD_OVER_TRANSLUCENT $MFLAG
51058 _ACEOF
51059
51060 fi
51061
51062 if test "$ol_enable_unique" != no ; then
51063         BUILD_UNIQUE=$ol_enable_unique
51064         if test "$ol_enable_unique" = mod ; then
51065                 MFLAG=SLAPD_MOD_DYNAMIC
51066                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS unique.la"
51067         else
51068                 MFLAG=SLAPD_MOD_STATIC
51069                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS unique.o"
51070         fi
51071
51072 cat >>confdefs.h <<_ACEOF
51073 #define SLAPD_OVER_UNIQUE $MFLAG
51074 _ACEOF
51075
51076 fi
51077
51078 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
51079         $BUILD_SLAPD = yes ; then
51080         BUILD_SLURPD=yes
51081 fi
51082
51083 if test "$ol_enable_rewrite" != no ; then
51084
51085 cat >>confdefs.h <<\_ACEOF
51086 #define ENABLE_REWRITE 1
51087 _ACEOF
51088
51089         BUILD_REWRITE=yes
51090 fi
51091
51092 if test "$ol_enable_slapi" != no ; then
51093
51094 cat >>confdefs.h <<\_ACEOF
51095 #define ENABLE_SLAPI 1
51096 _ACEOF
51097
51098         BUILD_SLAPI=yes
51099         SLAPD_SLAPI_DEPEND=libslapi.a
51100 fi
51101
51102
51103
51104 if test "$ac_cv_mingw32" = yes ; then
51105         PLAT=NT
51106         SLAPD_MODULES_LDFLAGS=
51107 else
51108         PLAT=UNIX
51109 fi
51110
51111
51112
51113
51114
51115
51116
51117
51118
51119
51120
51121
51122
51123
51124
51125
51126
51127
51128
51129
51130
51131
51132
51133
51134
51135
51136
51137
51138
51139
51140
51141
51142
51143
51144
51145
51146
51147
51148
51149
51150
51151
51152
51153
51154
51155
51156
51157
51158
51159
51160
51161
51162
51163
51164
51165
51166
51167
51168
51169
51170
51171
51172
51173
51174
51175
51176
51177
51178
51179
51180
51181
51182
51183
51184
51185
51186
51187
51188
51189 # Check whether --with-xxinstall or --without-xxinstall was given.
51190 if test "${with_xxinstall+set}" = set; then
51191   withval="$with_xxinstall"
51192
51193 fi;
51194
51195
51196                                                                                                                                                                                                                                                                                                                                                                                                                 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-shared.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"
51197           ac_config_commands="$ac_config_commands default"
51198
51199
51200 test "x$prefix" = xNONE && prefix=$ac_default_prefix
51201 # Let make expand exec_prefix.
51202 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
51203
51204 # VPATH may cause trouble with some makes, so we remove $(srcdir),
51205 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
51206 # trailing colons and then remove the whole line if VPATH becomes empty
51207 # (actually we leave an empty line to preserve line numbers).
51208 if test "x$srcdir" = x.; then
51209   ac_vpsub='/^[  ]*VPATH[        ]*=/{
51210 s/:*\$(srcdir):*/:/;
51211 s/:*\${srcdir}:*/:/;
51212 s/:*@srcdir@:*/:/;
51213 s/^\([^=]*=[     ]*\):*/\1/;
51214 s/:*$//;
51215 s/^[^=]*=[       ]*$//;
51216 }'
51217 fi
51218
51219 DEFS=-DHAVE_CONFIG_H
51220
51221 ac_libobjs=
51222 ac_ltlibobjs=
51223 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
51224   # 1. Remove the extension, and $U if already installed.
51225   ac_i=`echo "$ac_i" |
51226          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
51227   # 2. Add them.
51228   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
51229   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
51230 done
51231 LIBOBJS=$ac_libobjs
51232
51233 LTLIBOBJS=$ac_ltlibobjs
51234
51235
51236 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
51237   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
51238 Usually this means the macro was only invoked conditionally." >&5
51239 echo "$as_me: error: conditional \"AMDEP\" was never defined.
51240 Usually this means the macro was only invoked conditionally." >&2;}
51241    { (exit 1); exit 1; }; }
51242 fi
51243 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
51244   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
51245 Usually this means the macro was only invoked conditionally." >&5
51246 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
51247 Usually this means the macro was only invoked conditionally." >&2;}
51248    { (exit 1); exit 1; }; }
51249 fi
51250 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
51251   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
51252 Usually this means the macro was only invoked conditionally." >&5
51253 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
51254 Usually this means the macro was only invoked conditionally." >&2;}
51255    { (exit 1); exit 1; }; }
51256 fi
51257 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
51258   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
51259 Usually this means the macro was only invoked conditionally." >&5
51260 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
51261 Usually this means the macro was only invoked conditionally." >&2;}
51262    { (exit 1); exit 1; }; }
51263 fi
51264
51265 : ${CONFIG_STATUS=./config.status}
51266 ac_clean_files_save=$ac_clean_files
51267 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
51268 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
51269 echo "$as_me: creating $CONFIG_STATUS" >&6;}
51270 cat >$CONFIG_STATUS <<_ACEOF
51271 #! $SHELL
51272 # Generated by $as_me.
51273 # Run this file to recreate the current configuration.
51274 # Compiler output produced by configure, useful for debugging
51275 # configure, is in config.log if it exists.
51276
51277 debug=false
51278 ac_cs_recheck=false
51279 ac_cs_silent=false
51280 SHELL=\${CONFIG_SHELL-$SHELL}
51281 _ACEOF
51282
51283 cat >>$CONFIG_STATUS <<\_ACEOF
51284 ## --------------------- ##
51285 ## M4sh Initialization.  ##
51286 ## --------------------- ##
51287
51288 # Be Bourne compatible
51289 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
51290   emulate sh
51291   NULLCMD=:
51292   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
51293   # is contrary to our usage.  Disable this feature.
51294   alias -g '${1+"$@"}'='"$@"'
51295 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
51296   set -o posix
51297 fi
51298 DUALCASE=1; export DUALCASE # for MKS sh
51299
51300 # Support unset when possible.
51301 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
51302   as_unset=unset
51303 else
51304   as_unset=false
51305 fi
51306
51307
51308 # Work around bugs in pre-3.0 UWIN ksh.
51309 $as_unset ENV MAIL MAILPATH
51310 PS1='$ '
51311 PS2='> '
51312 PS4='+ '
51313
51314 # NLS nuisances.
51315 for as_var in \
51316   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
51317   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
51318   LC_TELEPHONE LC_TIME
51319 do
51320   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
51321     eval $as_var=C; export $as_var
51322   else
51323     $as_unset $as_var
51324   fi
51325 done
51326
51327 # Required to use basename.
51328 if expr a : '\(a\)' >/dev/null 2>&1; then
51329   as_expr=expr
51330 else
51331   as_expr=false
51332 fi
51333
51334 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
51335   as_basename=basename
51336 else
51337   as_basename=false
51338 fi
51339
51340
51341 # Name of the executable.
51342 as_me=`$as_basename "$0" ||
51343 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
51344          X"$0" : 'X\(//\)$' \| \
51345          X"$0" : 'X\(/\)$' \| \
51346          .     : '\(.\)' 2>/dev/null ||
51347 echo X/"$0" |
51348     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
51349           /^X\/\(\/\/\)$/{ s//\1/; q; }
51350           /^X\/\(\/\).*/{ s//\1/; q; }
51351           s/.*/./; q'`
51352
51353
51354 # PATH needs CR, and LINENO needs CR and PATH.
51355 # Avoid depending upon Character Ranges.
51356 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
51357 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
51358 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
51359 as_cr_digits='0123456789'
51360 as_cr_alnum=$as_cr_Letters$as_cr_digits
51361
51362 # The user is always right.
51363 if test "${PATH_SEPARATOR+set}" != set; then
51364   echo "#! /bin/sh" >conf$$.sh
51365   echo  "exit 0"   >>conf$$.sh
51366   chmod +x conf$$.sh
51367   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
51368     PATH_SEPARATOR=';'
51369   else
51370     PATH_SEPARATOR=:
51371   fi
51372   rm -f conf$$.sh
51373 fi
51374
51375
51376   as_lineno_1=$LINENO
51377   as_lineno_2=$LINENO
51378   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
51379   test "x$as_lineno_1" != "x$as_lineno_2" &&
51380   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
51381   # Find who we are.  Look in the path if we contain no path at all
51382   # relative or not.
51383   case $0 in
51384     *[\\/]* ) as_myself=$0 ;;
51385     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51386 for as_dir in $PATH
51387 do
51388   IFS=$as_save_IFS
51389   test -z "$as_dir" && as_dir=.
51390   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
51391 done
51392
51393        ;;
51394   esac
51395   # We did not find ourselves, most probably we were run as `sh COMMAND'
51396   # in which case we are not to be found in the path.
51397   if test "x$as_myself" = x; then
51398     as_myself=$0
51399   fi
51400   if test ! -f "$as_myself"; then
51401     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
51402 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
51403    { (exit 1); exit 1; }; }
51404   fi
51405   case $CONFIG_SHELL in
51406   '')
51407     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51408 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
51409 do
51410   IFS=$as_save_IFS
51411   test -z "$as_dir" && as_dir=.
51412   for as_base in sh bash ksh sh5; do
51413          case $as_dir in
51414          /*)
51415            if ("$as_dir/$as_base" -c '
51416   as_lineno_1=$LINENO
51417   as_lineno_2=$LINENO
51418   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
51419   test "x$as_lineno_1" != "x$as_lineno_2" &&
51420   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
51421              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
51422              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
51423              CONFIG_SHELL=$as_dir/$as_base
51424              export CONFIG_SHELL
51425              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
51426            fi;;
51427          esac
51428        done
51429 done
51430 ;;
51431   esac
51432
51433   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
51434   # uniformly replaced by the line number.  The first 'sed' inserts a
51435   # line-number line before each line; the second 'sed' does the real
51436   # work.  The second script uses 'N' to pair each line-number line
51437   # with the numbered line, and appends trailing '-' during
51438   # substitution so that $LINENO is not a special case at line end.
51439   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
51440   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
51441   sed '=' <$as_myself |
51442     sed '
51443       N
51444       s,$,-,
51445       : loop
51446       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
51447       t loop
51448       s,-$,,
51449       s,^['$as_cr_digits']*\n,,
51450     ' >$as_me.lineno &&
51451   chmod +x $as_me.lineno ||
51452     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
51453 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
51454    { (exit 1); exit 1; }; }
51455
51456   # Don't try to exec as it changes $[0], causing all sort of problems
51457   # (the dirname of $[0] is not the place where we might find the
51458   # original and so on.  Autoconf is especially sensible to this).
51459   . ./$as_me.lineno
51460   # Exit status is that of the last command.
51461   exit
51462 }
51463
51464
51465 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
51466   *c*,-n*) ECHO_N= ECHO_C='
51467 ' ECHO_T='      ' ;;
51468   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
51469   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
51470 esac
51471
51472 if expr a : '\(a\)' >/dev/null 2>&1; then
51473   as_expr=expr
51474 else
51475   as_expr=false
51476 fi
51477
51478 rm -f conf$$ conf$$.exe conf$$.file
51479 echo >conf$$.file
51480 if ln -s conf$$.file conf$$ 2>/dev/null; then
51481   # We could just check for DJGPP; but this test a) works b) is more generic
51482   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
51483   if test -f conf$$.exe; then
51484     # Don't use ln at all; we don't have any links
51485     as_ln_s='cp -p'
51486   else
51487     as_ln_s='ln -s'
51488   fi
51489 elif ln conf$$.file conf$$ 2>/dev/null; then
51490   as_ln_s=ln
51491 else
51492   as_ln_s='cp -p'
51493 fi
51494 rm -f conf$$ conf$$.exe conf$$.file
51495
51496 if mkdir -p . 2>/dev/null; then
51497   as_mkdir_p=:
51498 else
51499   test -d ./-p && rmdir ./-p
51500   as_mkdir_p=false
51501 fi
51502
51503 as_executable_p="test -f"
51504
51505 # Sed expression to map a string onto a valid CPP name.
51506 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
51507
51508 # Sed expression to map a string onto a valid variable name.
51509 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
51510
51511
51512 # IFS
51513 # We need space, tab and new line, in precisely that order.
51514 as_nl='
51515 '
51516 IFS="   $as_nl"
51517
51518 # CDPATH.
51519 $as_unset CDPATH
51520
51521 exec 6>&1
51522
51523 # Open the log real soon, to keep \$[0] and so on meaningful, and to
51524 # report actual input values of CONFIG_FILES etc. instead of their
51525 # values after options handling.  Logging --version etc. is OK.
51526 exec 5>>config.log
51527 {
51528   echo
51529   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
51530 ## Running $as_me. ##
51531 _ASBOX
51532 } >&5
51533 cat >&5 <<_CSEOF
51534
51535 This file was extended by $as_me, which was
51536 generated by GNU Autoconf 2.59.  Invocation command line was
51537
51538   CONFIG_FILES    = $CONFIG_FILES
51539   CONFIG_HEADERS  = $CONFIG_HEADERS
51540   CONFIG_LINKS    = $CONFIG_LINKS
51541   CONFIG_COMMANDS = $CONFIG_COMMANDS
51542   $ $0 $@
51543
51544 _CSEOF
51545 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
51546 echo >&5
51547 _ACEOF
51548
51549 # Files that config.status was made for.
51550 if test -n "$ac_config_files"; then
51551   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
51552 fi
51553
51554 if test -n "$ac_config_headers"; then
51555   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
51556 fi
51557
51558 if test -n "$ac_config_links"; then
51559   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
51560 fi
51561
51562 if test -n "$ac_config_commands"; then
51563   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
51564 fi
51565
51566 cat >>$CONFIG_STATUS <<\_ACEOF
51567
51568 ac_cs_usage="\
51569 \`$as_me' instantiates files from templates according to the
51570 current configuration.
51571
51572 Usage: $0 [OPTIONS] [FILE]...
51573
51574   -h, --help       print this help, then exit
51575   -V, --version    print version number, then exit
51576   -q, --quiet      do not print progress messages
51577   -d, --debug      don't remove temporary files
51578       --recheck    update $as_me by reconfiguring in the same conditions
51579   --file=FILE[:TEMPLATE]
51580                    instantiate the configuration file FILE
51581   --header=FILE[:TEMPLATE]
51582                    instantiate the configuration header FILE
51583
51584 Configuration files:
51585 $config_files
51586
51587 Configuration headers:
51588 $config_headers
51589
51590 Configuration commands:
51591 $config_commands
51592
51593 Report bugs to <bug-autoconf@gnu.org>."
51594 _ACEOF
51595
51596 cat >>$CONFIG_STATUS <<_ACEOF
51597 ac_cs_version="\\
51598 config.status
51599 configured by $0, generated by GNU Autoconf 2.59,
51600   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
51601
51602 Copyright (C) 2003 Free Software Foundation, Inc.
51603 This config.status script is free software; the Free Software Foundation
51604 gives unlimited permission to copy, distribute and modify it."
51605 srcdir=$srcdir
51606 INSTALL="$INSTALL"
51607 _ACEOF
51608
51609 cat >>$CONFIG_STATUS <<\_ACEOF
51610 # If no file are specified by the user, then we need to provide default
51611 # value.  By we need to know if files were specified by the user.
51612 ac_need_defaults=:
51613 while test $# != 0
51614 do
51615   case $1 in
51616   --*=*)
51617     ac_option=`expr "x$1" : 'x\([^=]*\)='`
51618     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
51619     ac_shift=:
51620     ;;
51621   -*)
51622     ac_option=$1
51623     ac_optarg=$2
51624     ac_shift=shift
51625     ;;
51626   *) # This is not an option, so the user has probably given explicit
51627      # arguments.
51628      ac_option=$1
51629      ac_need_defaults=false;;
51630   esac
51631
51632   case $ac_option in
51633   # Handling of the options.
51634 _ACEOF
51635 cat >>$CONFIG_STATUS <<\_ACEOF
51636   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
51637     ac_cs_recheck=: ;;
51638   --version | --vers* | -V )
51639     echo "$ac_cs_version"; exit 0 ;;
51640   --he | --h)
51641     # Conflict between --help and --header
51642     { { echo "$as_me:$LINENO: error: ambiguous option: $1
51643 Try \`$0 --help' for more information." >&5
51644 echo "$as_me: error: ambiguous option: $1
51645 Try \`$0 --help' for more information." >&2;}
51646    { (exit 1); exit 1; }; };;
51647   --help | --hel | -h )
51648     echo "$ac_cs_usage"; exit 0 ;;
51649   --debug | --d* | -d )
51650     debug=: ;;
51651   --file | --fil | --fi | --f )
51652     $ac_shift
51653     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
51654     ac_need_defaults=false;;
51655   --header | --heade | --head | --hea )
51656     $ac_shift
51657     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
51658     ac_need_defaults=false;;
51659   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
51660   | -silent | --silent | --silen | --sile | --sil | --si | --s)
51661     ac_cs_silent=: ;;
51662
51663   # This is an error.
51664   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
51665 Try \`$0 --help' for more information." >&5
51666 echo "$as_me: error: unrecognized option: $1
51667 Try \`$0 --help' for more information." >&2;}
51668    { (exit 1); exit 1; }; } ;;
51669
51670   *) ac_config_targets="$ac_config_targets $1" ;;
51671
51672   esac
51673   shift
51674 done
51675
51676 ac_configure_extra_args=
51677
51678 if $ac_cs_silent; then
51679   exec 6>/dev/null
51680   ac_configure_extra_args="$ac_configure_extra_args --silent"
51681 fi
51682
51683 _ACEOF
51684 cat >>$CONFIG_STATUS <<_ACEOF
51685 if \$ac_cs_recheck; then
51686   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
51687   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
51688 fi
51689
51690 _ACEOF
51691
51692 cat >>$CONFIG_STATUS <<_ACEOF
51693 #
51694 # INIT-COMMANDS section.
51695 #
51696
51697 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
51698 STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS"
51699
51700 _ACEOF
51701
51702
51703
51704 cat >>$CONFIG_STATUS <<\_ACEOF
51705 for ac_config_target in $ac_config_targets
51706 do
51707   case "$ac_config_target" in
51708   # Handling of arguments.
51709   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile:build/top.mk:Makefile.in:build/dir.mk" ;;
51710   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk" ;;
51711   "doc/man/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk" ;;
51712   "doc/man/man1/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk" ;;
51713   "doc/man/man3/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk" ;;
51714   "doc/man/man5/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk" ;;
51715   "doc/man/man8/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk" ;;
51716   "clients/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk" ;;
51717   "clients/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk" ;;
51718   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile:build/top.mk:include/Makefile.in" ;;
51719   "libraries/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk" ;;
51720   "libraries/liblber/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
51721   "libraries/libldap/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
51722   "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" ;;
51723   "libraries/liblunicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
51724   "libraries/liblutil/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
51725   "libraries/librewrite/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
51726   "servers/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk" ;;
51727   "servers/slapd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk" ;;
51728   "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" ;;
51729   "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" ;;
51730   "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" ;;
51731   "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" ;;
51732   "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" ;;
51733   "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" ;;
51734   "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" ;;
51735   "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" ;;
51736   "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" ;;
51737   "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" ;;
51738   "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" ;;
51739   "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" ;;
51740   "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" ;;
51741   "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" ;;
51742   "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" ;;
51743   "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" ;;
51744   "servers/slapd/overlays/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk" ;;
51745   "servers/slurpd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk" ;;
51746   "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk" ;;
51747   "tests/run" ) CONFIG_FILES="$CONFIG_FILES tests/run" ;;
51748   "tests/progs/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk" ;;
51749   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
51750   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
51751   "include/portable.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/portable.h" ;;
51752   "include/ldap_features.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ldap_features.h" ;;
51753   "include/lber_types.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/lber_types.h" ;;
51754   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
51755 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
51756    { (exit 1); exit 1; }; };;
51757   esac
51758 done
51759
51760 # If the user did not use the arguments to specify the items to instantiate,
51761 # then the envvar interface is used.  Set only those that are not.
51762 # We use the long form for the default assignment because of an extremely
51763 # bizarre bug on SunOS 4.1.3.
51764 if $ac_need_defaults; then
51765   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
51766   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
51767   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
51768 fi
51769
51770 # Have a temporary directory for convenience.  Make it in the build tree
51771 # simply because there is no reason to put it here, and in addition,
51772 # creating and moving files from /tmp can sometimes cause problems.
51773 # Create a temporary directory, and hook for its removal unless debugging.
51774 $debug ||
51775 {
51776   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
51777   trap '{ (exit 1); exit 1; }' 1 2 13 15
51778 }
51779
51780 # Create a (secure) tmp directory for tmp files.
51781
51782 {
51783   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
51784   test -n "$tmp" && test -d "$tmp"
51785 }  ||
51786 {
51787   tmp=./confstat$$-$RANDOM
51788   (umask 077 && mkdir $tmp)
51789 } ||
51790 {
51791    echo "$me: cannot create a temporary directory in ." >&2
51792    { (exit 1); exit 1; }
51793 }
51794
51795 _ACEOF
51796
51797 cat >>$CONFIG_STATUS <<_ACEOF
51798
51799 #
51800 # CONFIG_FILES section.
51801 #
51802
51803 # No need to generate the scripts if there are no CONFIG_FILES.
51804 # This happens for instance when ./config.status config.h
51805 if test -n "\$CONFIG_FILES"; then
51806   # Protect against being on the right side of a sed subst in config.status.
51807   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
51808    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
51809 s,@SHELL@,$SHELL,;t t
51810 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
51811 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
51812 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
51813 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
51814 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
51815 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
51816 s,@exec_prefix@,$exec_prefix,;t t
51817 s,@prefix@,$prefix,;t t
51818 s,@program_transform_name@,$program_transform_name,;t t
51819 s,@bindir@,$bindir,;t t
51820 s,@sbindir@,$sbindir,;t t
51821 s,@libexecdir@,$libexecdir,;t t
51822 s,@datadir@,$datadir,;t t
51823 s,@sysconfdir@,$sysconfdir,;t t
51824 s,@sharedstatedir@,$sharedstatedir,;t t
51825 s,@localstatedir@,$localstatedir,;t t
51826 s,@libdir@,$libdir,;t t
51827 s,@includedir@,$includedir,;t t
51828 s,@oldincludedir@,$oldincludedir,;t t
51829 s,@infodir@,$infodir,;t t
51830 s,@mandir@,$mandir,;t t
51831 s,@build_alias@,$build_alias,;t t
51832 s,@host_alias@,$host_alias,;t t
51833 s,@target_alias@,$target_alias,;t t
51834 s,@DEFS@,$DEFS,;t t
51835 s,@ECHO_C@,$ECHO_C,;t t
51836 s,@ECHO_N@,$ECHO_N,;t t
51837 s,@ECHO_T@,$ECHO_T,;t t
51838 s,@LIBS@,$LIBS,;t t
51839 s,@build@,$build,;t t
51840 s,@build_cpu@,$build_cpu,;t t
51841 s,@build_vendor@,$build_vendor,;t t
51842 s,@build_os@,$build_os,;t t
51843 s,@host@,$host,;t t
51844 s,@host_cpu@,$host_cpu,;t t
51845 s,@host_vendor@,$host_vendor,;t t
51846 s,@host_os@,$host_os,;t t
51847 s,@target@,$target,;t t
51848 s,@target_cpu@,$target_cpu,;t t
51849 s,@target_vendor@,$target_vendor,;t t
51850 s,@target_os@,$target_os,;t t
51851 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
51852 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
51853 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
51854 s,@CYGPATH_W@,$CYGPATH_W,;t t
51855 s,@PACKAGE@,$PACKAGE,;t t
51856 s,@VERSION@,$VERSION,;t t
51857 s,@ACLOCAL@,$ACLOCAL,;t t
51858 s,@AUTOCONF@,$AUTOCONF,;t t
51859 s,@AUTOMAKE@,$AUTOMAKE,;t t
51860 s,@AUTOHEADER@,$AUTOHEADER,;t t
51861 s,@MAKEINFO@,$MAKEINFO,;t t
51862 s,@install_sh@,$install_sh,;t t
51863 s,@STRIP@,$STRIP,;t t
51864 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
51865 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
51866 s,@mkdir_p@,$mkdir_p,;t t
51867 s,@AWK@,$AWK,;t t
51868 s,@SET_MAKE@,$SET_MAKE,;t t
51869 s,@am__leading_dot@,$am__leading_dot,;t t
51870 s,@AMTAR@,$AMTAR,;t t
51871 s,@am__tar@,$am__tar,;t t
51872 s,@am__untar@,$am__untar,;t t
51873 s,@OPENLDAP_LIBRELEASE@,$OPENLDAP_LIBRELEASE,;t t
51874 s,@OPENLDAP_LIBVERSION@,$OPENLDAP_LIBVERSION,;t t
51875 s,@OPENLDAP_RELEASE_DATE@,$OPENLDAP_RELEASE_DATE,;t t
51876 s,@top_builddir@,$top_builddir,;t t
51877 s,@ldap_subdir@,$ldap_subdir,;t t
51878 s,@CC@,$CC,;t t
51879 s,@AR@,$AR,;t t
51880 s,@CFLAGS@,$CFLAGS,;t t
51881 s,@LDFLAGS@,$LDFLAGS,;t t
51882 s,@CPPFLAGS@,$CPPFLAGS,;t t
51883 s,@ac_ct_CC@,$ac_ct_CC,;t t
51884 s,@EXEEXT@,$EXEEXT,;t t
51885 s,@OBJEXT@,$OBJEXT,;t t
51886 s,@DEPDIR@,$DEPDIR,;t t
51887 s,@am__include@,$am__include,;t t
51888 s,@am__quote@,$am__quote,;t t
51889 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
51890 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
51891 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
51892 s,@CCDEPMODE@,$CCDEPMODE,;t t
51893 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
51894 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
51895 s,@EGREP@,$EGREP,;t t
51896 s,@LN_S@,$LN_S,;t t
51897 s,@ECHO@,$ECHO,;t t
51898 s,@ac_ct_AR@,$ac_ct_AR,;t t
51899 s,@RANLIB@,$RANLIB,;t t
51900 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
51901 s,@DLLTOOL@,$DLLTOOL,;t t
51902 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
51903 s,@AS@,$AS,;t t
51904 s,@ac_ct_AS@,$ac_ct_AS,;t t
51905 s,@OBJDUMP@,$OBJDUMP,;t t
51906 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
51907 s,@CPP@,$CPP,;t t
51908 s,@CXX@,$CXX,;t t
51909 s,@CXXFLAGS@,$CXXFLAGS,;t t
51910 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
51911 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
51912 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
51913 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
51914 s,@CXXCPP@,$CXXCPP,;t t
51915 s,@F77@,$F77,;t t
51916 s,@FFLAGS@,$FFLAGS,;t t
51917 s,@ac_ct_F77@,$ac_ct_F77,;t t
51918 s,@LIBTOOL@,$LIBTOOL,;t t
51919 s,@PERLBIN@,$PERLBIN,;t t
51920 s,@OL_MKDEP@,$OL_MKDEP,;t t
51921 s,@OL_MKDEP_FLAGS@,$OL_MKDEP_FLAGS,;t t
51922 s,@LTSTATIC@,$LTSTATIC,;t t
51923 s,@LIBOBJS@,$LIBOBJS,;t t
51924 s,@LIBSRCS@,$LIBSRCS,;t t
51925 s,@PLAT@,$PLAT,;t t
51926 s,@WITH_SASL@,$WITH_SASL,;t t
51927 s,@WITH_TLS@,$WITH_TLS,;t t
51928 s,@WITH_MODULES_ENABLED@,$WITH_MODULES_ENABLED,;t t
51929 s,@BUILD_LIBS_DYNAMIC@,$BUILD_LIBS_DYNAMIC,;t t
51930 s,@BUILD_SLAPD@,$BUILD_SLAPD,;t t
51931 s,@BUILD_SLAPI@,$BUILD_SLAPI,;t t
51932 s,@SLAPD_SLAPI_DEPEND@,$SLAPD_SLAPI_DEPEND,;t t
51933 s,@BUILD_BDB@,$BUILD_BDB,;t t
51934 s,@BUILD_DNSSRV@,$BUILD_DNSSRV,;t t
51935 s,@BUILD_HDB@,$BUILD_HDB,;t t
51936 s,@BUILD_LDAP@,$BUILD_LDAP,;t t
51937 s,@BUILD_LDBM@,$BUILD_LDBM,;t t
51938 s,@BUILD_META@,$BUILD_META,;t t
51939 s,@BUILD_MONITOR@,$BUILD_MONITOR,;t t
51940 s,@BUILD_NULL@,$BUILD_NULL,;t t
51941 s,@BUILD_PASSWD@,$BUILD_PASSWD,;t t
51942 s,@BUILD_RELAY@,$BUILD_RELAY,;t t
51943 s,@BUILD_PERL@,$BUILD_PERL,;t t
51944 s,@BUILD_SHELL@,$BUILD_SHELL,;t t
51945 s,@BUILD_SQL@,$BUILD_SQL,;t t
51946 s,@BUILD_ACCESSLOG@,$BUILD_ACCESSLOG,;t t
51947 s,@BUILD_DENYOP@,$BUILD_DENYOP,;t t
51948 s,@BUILD_DYNGROUP@,$BUILD_DYNGROUP,;t t
51949 s,@BUILD_DYNLIST@,$BUILD_DYNLIST,;t t
51950 s,@BUILD_GLUE@,$BUILD_GLUE,;t t
51951 s,@BUILD_LASTMOD@,$BUILD_LASTMOD,;t t
51952 s,@BUILD_PPOLICY@,$BUILD_PPOLICY,;t t
51953 s,@BUILD_PROXYCACHE@,$BUILD_PROXYCACHE,;t t
51954 s,@BUILD_REFINT@,$BUILD_REFINT,;t t
51955 s,@BUILD_RETCODE@,$BUILD_RETCODE,;t t
51956 s,@BUILD_RWM@,$BUILD_RWM,;t t
51957 s,@BUILD_SYNCPROV@,$BUILD_SYNCPROV,;t t
51958 s,@BUILD_TRANSLUCENT@,$BUILD_TRANSLUCENT,;t t
51959 s,@BUILD_UNIQUE@,$BUILD_UNIQUE,;t t
51960 s,@BUILD_SLURPD@,$BUILD_SLURPD,;t t
51961 s,@LDAP_LIBS@,$LDAP_LIBS,;t t
51962 s,@SLAPD_LIBS@,$SLAPD_LIBS,;t t
51963 s,@SLURPD_LIBS@,$SLURPD_LIBS,;t t
51964 s,@LDBM_LIBS@,$LDBM_LIBS,;t t
51965 s,@LTHREAD_LIBS@,$LTHREAD_LIBS,;t t
51966 s,@LUTIL_LIBS@,$LUTIL_LIBS,;t t
51967 s,@WRAP_LIBS@,$WRAP_LIBS,;t t
51968 s,@SLAPD_MODULES_CPPFLAGS@,$SLAPD_MODULES_CPPFLAGS,;t t
51969 s,@SLAPD_MODULES_LDFLAGS@,$SLAPD_MODULES_LDFLAGS,;t t
51970 s,@SLAPD_NO_STATIC@,$SLAPD_NO_STATIC,;t t
51971 s,@SLAPD_STATIC_BACKENDS@,$SLAPD_STATIC_BACKENDS,;t t
51972 s,@SLAPD_DYNAMIC_BACKENDS@,$SLAPD_DYNAMIC_BACKENDS,;t t
51973 s,@SLAPD_STATIC_OVERLAYS@,$SLAPD_STATIC_OVERLAYS,;t t
51974 s,@SLAPD_DYNAMIC_OVERLAYS@,$SLAPD_DYNAMIC_OVERLAYS,;t t
51975 s,@PERL_CPPFLAGS@,$PERL_CPPFLAGS,;t t
51976 s,@SLAPD_PERL_LDFLAGS@,$SLAPD_PERL_LDFLAGS,;t t
51977 s,@MOD_PERL_LDFLAGS@,$MOD_PERL_LDFLAGS,;t t
51978 s,@KRB4_LIBS@,$KRB4_LIBS,;t t
51979 s,@KRB5_LIBS@,$KRB5_LIBS,;t t
51980 s,@SASL_LIBS@,$SASL_LIBS,;t t
51981 s,@TLS_LIBS@,$TLS_LIBS,;t t
51982 s,@MODULES_LIBS@,$MODULES_LIBS,;t t
51983 s,@SLAPI_LIBS@,$SLAPI_LIBS,;t t
51984 s,@LIBSLAPI@,$LIBSLAPI,;t t
51985 s,@LIBSLAPITOOLS@,$LIBSLAPITOOLS,;t t
51986 s,@AUTH_LIBS@,$AUTH_LIBS,;t t
51987 s,@SLAPD_SLP_LIBS@,$SLAPD_SLP_LIBS,;t t
51988 s,@SLAPD_GMP_LIBS@,$SLAPD_GMP_LIBS,;t t
51989 s,@SLAPD_SQL_LDFLAGS@,$SLAPD_SQL_LDFLAGS,;t t
51990 s,@SLAPD_SQL_LIBS@,$SLAPD_SQL_LIBS,;t t
51991 s,@SLAPD_SQL_INCLUDES@,$SLAPD_SQL_INCLUDES,;t t
51992 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
51993 CEOF
51994
51995 _ACEOF
51996
51997   cat >>$CONFIG_STATUS <<\_ACEOF
51998   # Split the substitutions into bite-sized pieces for seds with
51999   # small command number limits, like on Digital OSF/1 and HP-UX.
52000   ac_max_sed_lines=48
52001   ac_sed_frag=1 # Number of current file.
52002   ac_beg=1 # First line for current file.
52003   ac_end=$ac_max_sed_lines # Line after last line for current file.
52004   ac_more_lines=:
52005   ac_sed_cmds=
52006   while $ac_more_lines; do
52007     if test $ac_beg -gt 1; then
52008       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
52009     else
52010       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
52011     fi
52012     if test ! -s $tmp/subs.frag; then
52013       ac_more_lines=false
52014     else
52015       # The purpose of the label and of the branching condition is to
52016       # speed up the sed processing (if there are no `@' at all, there
52017       # is no need to browse any of the substitutions).
52018       # These are the two extra sed commands mentioned above.
52019       (echo ':t
52020   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
52021       if test -z "$ac_sed_cmds"; then
52022         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
52023       else
52024         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
52025       fi
52026       ac_sed_frag=`expr $ac_sed_frag + 1`
52027       ac_beg=$ac_end
52028       ac_end=`expr $ac_end + $ac_max_sed_lines`
52029     fi
52030   done
52031   if test -z "$ac_sed_cmds"; then
52032     ac_sed_cmds=cat
52033   fi
52034 fi # test -n "$CONFIG_FILES"
52035
52036 _ACEOF
52037 cat >>$CONFIG_STATUS <<\_ACEOF
52038 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
52039   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
52040   case $ac_file in
52041   - | *:- | *:-:* ) # input from stdin
52042         cat >$tmp/stdin
52043         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
52044         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
52045   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
52046         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
52047   * )   ac_file_in=$ac_file.in ;;
52048   esac
52049
52050   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
52051   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
52052 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52053          X"$ac_file" : 'X\(//\)[^/]' \| \
52054          X"$ac_file" : 'X\(//\)$' \| \
52055          X"$ac_file" : 'X\(/\)' \| \
52056          .     : '\(.\)' 2>/dev/null ||
52057 echo X"$ac_file" |
52058     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52059           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52060           /^X\(\/\/\)$/{ s//\1/; q; }
52061           /^X\(\/\).*/{ s//\1/; q; }
52062           s/.*/./; q'`
52063   { if $as_mkdir_p; then
52064     mkdir -p "$ac_dir"
52065   else
52066     as_dir="$ac_dir"
52067     as_dirs=
52068     while test ! -d "$as_dir"; do
52069       as_dirs="$as_dir $as_dirs"
52070       as_dir=`(dirname "$as_dir") 2>/dev/null ||
52071 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52072          X"$as_dir" : 'X\(//\)[^/]' \| \
52073          X"$as_dir" : 'X\(//\)$' \| \
52074          X"$as_dir" : 'X\(/\)' \| \
52075          .     : '\(.\)' 2>/dev/null ||
52076 echo X"$as_dir" |
52077     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52078           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52079           /^X\(\/\/\)$/{ s//\1/; q; }
52080           /^X\(\/\).*/{ s//\1/; q; }
52081           s/.*/./; q'`
52082     done
52083     test ! -n "$as_dirs" || mkdir $as_dirs
52084   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
52085 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
52086    { (exit 1); exit 1; }; }; }
52087
52088   ac_builddir=.
52089
52090 if test "$ac_dir" != .; then
52091   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
52092   # A "../" for each directory in $ac_dir_suffix.
52093   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
52094 else
52095   ac_dir_suffix= ac_top_builddir=
52096 fi
52097
52098 case $srcdir in
52099   .)  # No --srcdir option.  We are building in place.
52100     ac_srcdir=.
52101     if test -z "$ac_top_builddir"; then
52102        ac_top_srcdir=.
52103     else
52104        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
52105     fi ;;
52106   [\\/]* | ?:[\\/]* )  # Absolute path.
52107     ac_srcdir=$srcdir$ac_dir_suffix;
52108     ac_top_srcdir=$srcdir ;;
52109   *) # Relative path.
52110     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
52111     ac_top_srcdir=$ac_top_builddir$srcdir ;;
52112 esac
52113
52114 # Do not use `cd foo && pwd` to compute absolute paths, because
52115 # the directories may not exist.
52116 case `pwd` in
52117 .) ac_abs_builddir="$ac_dir";;
52118 *)
52119   case "$ac_dir" in
52120   .) ac_abs_builddir=`pwd`;;
52121   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
52122   *) ac_abs_builddir=`pwd`/"$ac_dir";;
52123   esac;;
52124 esac
52125 case $ac_abs_builddir in
52126 .) ac_abs_top_builddir=${ac_top_builddir}.;;
52127 *)
52128   case ${ac_top_builddir}. in
52129   .) ac_abs_top_builddir=$ac_abs_builddir;;
52130   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
52131   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
52132   esac;;
52133 esac
52134 case $ac_abs_builddir in
52135 .) ac_abs_srcdir=$ac_srcdir;;
52136 *)
52137   case $ac_srcdir in
52138   .) ac_abs_srcdir=$ac_abs_builddir;;
52139   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
52140   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
52141   esac;;
52142 esac
52143 case $ac_abs_builddir in
52144 .) ac_abs_top_srcdir=$ac_top_srcdir;;
52145 *)
52146   case $ac_top_srcdir in
52147   .) ac_abs_top_srcdir=$ac_abs_builddir;;
52148   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
52149   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
52150   esac;;
52151 esac
52152
52153
52154   case $INSTALL in
52155   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
52156   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
52157   esac
52158
52159   if test x"$ac_file" != x-; then
52160     { echo "$as_me:$LINENO: creating $ac_file" >&5
52161 echo "$as_me: creating $ac_file" >&6;}
52162     rm -f "$ac_file"
52163   fi
52164   # Let's still pretend it is `configure' which instantiates (i.e., don't
52165   # use $as_me), people would be surprised to read:
52166   #    /* config.h.  Generated by config.status.  */
52167   if test x"$ac_file" = x-; then
52168     configure_input=
52169   else
52170     configure_input="$ac_file.  "
52171   fi
52172   configure_input=$configure_input"Generated from `echo $ac_file_in |
52173                                      sed 's,.*/,,'` by configure."
52174
52175   # First look for the input files in the build tree, otherwise in the
52176   # src tree.
52177   ac_file_inputs=`IFS=:
52178     for f in $ac_file_in; do
52179       case $f in
52180       -) echo $tmp/stdin ;;
52181       [\\/$]*)
52182          # Absolute (can't be DOS-style, as IFS=:)
52183          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
52184 echo "$as_me: error: cannot find input file: $f" >&2;}
52185    { (exit 1); exit 1; }; }
52186          echo "$f";;
52187       *) # Relative
52188          if test -f "$f"; then
52189            # Build tree
52190            echo "$f"
52191          elif test -f "$srcdir/$f"; then
52192            # Source tree
52193            echo "$srcdir/$f"
52194          else
52195            # /dev/null tree
52196            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
52197 echo "$as_me: error: cannot find input file: $f" >&2;}
52198    { (exit 1); exit 1; }; }
52199          fi;;
52200       esac
52201     done` || { (exit 1); exit 1; }
52202 _ACEOF
52203 cat >>$CONFIG_STATUS <<_ACEOF
52204   sed "$ac_vpsub
52205 $extrasub
52206 _ACEOF
52207 cat >>$CONFIG_STATUS <<\_ACEOF
52208 :t
52209 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
52210 s,@configure_input@,$configure_input,;t t
52211 s,@srcdir@,$ac_srcdir,;t t
52212 s,@abs_srcdir@,$ac_abs_srcdir,;t t
52213 s,@top_srcdir@,$ac_top_srcdir,;t t
52214 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
52215 s,@builddir@,$ac_builddir,;t t
52216 s,@abs_builddir@,$ac_abs_builddir,;t t
52217 s,@top_builddir@,$ac_top_builddir,;t t
52218 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
52219 s,@INSTALL@,$ac_INSTALL,;t t
52220 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
52221   rm -f $tmp/stdin
52222   if test x"$ac_file" != x-; then
52223     mv $tmp/out $ac_file
52224   else
52225     cat $tmp/out
52226     rm -f $tmp/out
52227   fi
52228
52229 done
52230 _ACEOF
52231 cat >>$CONFIG_STATUS <<\_ACEOF
52232
52233 #
52234 # CONFIG_HEADER section.
52235 #
52236
52237 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
52238 # NAME is the cpp macro being defined and VALUE is the value it is being given.
52239 #
52240 # ac_d sets the value in "#define NAME VALUE" lines.
52241 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
52242 ac_dB='[         ].*$,\1#\2'
52243 ac_dC=' '
52244 ac_dD=',;t'
52245 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
52246 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
52247 ac_uB='$,\1#\2define\3'
52248 ac_uC=' '
52249 ac_uD=',;t'
52250
52251 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
52252   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
52253   case $ac_file in
52254   - | *:- | *:-:* ) # input from stdin
52255         cat >$tmp/stdin
52256         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
52257         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
52258   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
52259         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
52260   * )   ac_file_in=$ac_file.in ;;
52261   esac
52262
52263   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
52264 echo "$as_me: creating $ac_file" >&6;}
52265
52266   # First look for the input files in the build tree, otherwise in the
52267   # src tree.
52268   ac_file_inputs=`IFS=:
52269     for f in $ac_file_in; do
52270       case $f in
52271       -) echo $tmp/stdin ;;
52272       [\\/$]*)
52273          # Absolute (can't be DOS-style, as IFS=:)
52274          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
52275 echo "$as_me: error: cannot find input file: $f" >&2;}
52276    { (exit 1); exit 1; }; }
52277          # Do quote $f, to prevent DOS paths from being IFS'd.
52278          echo "$f";;
52279       *) # Relative
52280          if test -f "$f"; then
52281            # Build tree
52282            echo "$f"
52283          elif test -f "$srcdir/$f"; then
52284            # Source tree
52285            echo "$srcdir/$f"
52286          else
52287            # /dev/null tree
52288            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
52289 echo "$as_me: error: cannot find input file: $f" >&2;}
52290    { (exit 1); exit 1; }; }
52291          fi;;
52292       esac
52293     done` || { (exit 1); exit 1; }
52294   # Remove the trailing spaces.
52295   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
52296
52297 _ACEOF
52298
52299 # Transform confdefs.h into two sed scripts, `conftest.defines' and
52300 # `conftest.undefs', that substitutes the proper values into
52301 # config.h.in to produce config.h.  The first handles `#define'
52302 # templates, and the second `#undef' templates.
52303 # And first: Protect against being on the right side of a sed subst in
52304 # config.status.  Protect against being in an unquoted here document
52305 # in config.status.
52306 rm -f conftest.defines conftest.undefs
52307 # Using a here document instead of a string reduces the quoting nightmare.
52308 # Putting comments in sed scripts is not portable.
52309 #
52310 # `end' is used to avoid that the second main sed command (meant for
52311 # 0-ary CPP macros) applies to n-ary macro definitions.
52312 # See the Autoconf documentation for `clear'.
52313 cat >confdef2sed.sed <<\_ACEOF
52314 s/[\\&,]/\\&/g
52315 s,[\\$`],\\&,g
52316 t clear
52317 : clear
52318 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
52319 t end
52320 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
52321 : end
52322 _ACEOF
52323 # If some macros were called several times there might be several times
52324 # the same #defines, which is useless.  Nevertheless, we may not want to
52325 # sort them, since we want the *last* AC-DEFINE to be honored.
52326 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
52327 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
52328 rm -f confdef2sed.sed
52329
52330 # This sed command replaces #undef with comments.  This is necessary, for
52331 # example, in the case of _POSIX_SOURCE, which is predefined and required
52332 # on some systems where configure will not decide to define it.
52333 cat >>conftest.undefs <<\_ACEOF
52334 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
52335 _ACEOF
52336
52337 # Break up conftest.defines because some shells have a limit on the size
52338 # of here documents, and old seds have small limits too (100 cmds).
52339 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
52340 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
52341 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
52342 echo '  :' >>$CONFIG_STATUS
52343 rm -f conftest.tail
52344 while grep . conftest.defines >/dev/null
52345 do
52346   # Write a limited-size here document to $tmp/defines.sed.
52347   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
52348   # Speed up: don't consider the non `#define' lines.
52349   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
52350   # Work around the forget-to-reset-the-flag bug.
52351   echo 't clr' >>$CONFIG_STATUS
52352   echo ': clr' >>$CONFIG_STATUS
52353   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
52354   echo 'CEOF
52355   sed -f $tmp/defines.sed $tmp/in >$tmp/out
52356   rm -f $tmp/in
52357   mv $tmp/out $tmp/in
52358 ' >>$CONFIG_STATUS
52359   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
52360   rm -f conftest.defines
52361   mv conftest.tail conftest.defines
52362 done
52363 rm -f conftest.defines
52364 echo '  fi # grep' >>$CONFIG_STATUS
52365 echo >>$CONFIG_STATUS
52366
52367 # Break up conftest.undefs because some shells have a limit on the size
52368 # of here documents, and old seds have small limits too (100 cmds).
52369 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
52370 rm -f conftest.tail
52371 while grep . conftest.undefs >/dev/null
52372 do
52373   # Write a limited-size here document to $tmp/undefs.sed.
52374   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
52375   # Speed up: don't consider the non `#undef'
52376   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
52377   # Work around the forget-to-reset-the-flag bug.
52378   echo 't clr' >>$CONFIG_STATUS
52379   echo ': clr' >>$CONFIG_STATUS
52380   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
52381   echo 'CEOF
52382   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
52383   rm -f $tmp/in
52384   mv $tmp/out $tmp/in
52385 ' >>$CONFIG_STATUS
52386   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
52387   rm -f conftest.undefs
52388   mv conftest.tail conftest.undefs
52389 done
52390 rm -f conftest.undefs
52391
52392 cat >>$CONFIG_STATUS <<\_ACEOF
52393   # Let's still pretend it is `configure' which instantiates (i.e., don't
52394   # use $as_me), people would be surprised to read:
52395   #    /* config.h.  Generated by config.status.  */
52396   if test x"$ac_file" = x-; then
52397     echo "/* Generated by configure.  */" >$tmp/config.h
52398   else
52399     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
52400   fi
52401   cat $tmp/in >>$tmp/config.h
52402   rm -f $tmp/in
52403   if test x"$ac_file" != x-; then
52404     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
52405       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
52406 echo "$as_me: $ac_file is unchanged" >&6;}
52407     else
52408       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
52409 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52410          X"$ac_file" : 'X\(//\)[^/]' \| \
52411          X"$ac_file" : 'X\(//\)$' \| \
52412          X"$ac_file" : 'X\(/\)' \| \
52413          .     : '\(.\)' 2>/dev/null ||
52414 echo X"$ac_file" |
52415     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52416           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52417           /^X\(\/\/\)$/{ s//\1/; q; }
52418           /^X\(\/\).*/{ s//\1/; q; }
52419           s/.*/./; q'`
52420       { if $as_mkdir_p; then
52421     mkdir -p "$ac_dir"
52422   else
52423     as_dir="$ac_dir"
52424     as_dirs=
52425     while test ! -d "$as_dir"; do
52426       as_dirs="$as_dir $as_dirs"
52427       as_dir=`(dirname "$as_dir") 2>/dev/null ||
52428 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52429          X"$as_dir" : 'X\(//\)[^/]' \| \
52430          X"$as_dir" : 'X\(//\)$' \| \
52431          X"$as_dir" : 'X\(/\)' \| \
52432          .     : '\(.\)' 2>/dev/null ||
52433 echo X"$as_dir" |
52434     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52435           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52436           /^X\(\/\/\)$/{ s//\1/; q; }
52437           /^X\(\/\).*/{ s//\1/; q; }
52438           s/.*/./; q'`
52439     done
52440     test ! -n "$as_dirs" || mkdir $as_dirs
52441   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
52442 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
52443    { (exit 1); exit 1; }; }; }
52444
52445       rm -f $ac_file
52446       mv $tmp/config.h $ac_file
52447     fi
52448   else
52449     cat $tmp/config.h
52450     rm -f $tmp/config.h
52451   fi
52452 # Compute $ac_file's index in $config_headers.
52453 _am_stamp_count=1
52454 for _am_header in $config_headers :; do
52455   case $_am_header in
52456     $ac_file | $ac_file:* )
52457       break ;;
52458     * )
52459       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
52460   esac
52461 done
52462 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
52463 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52464          X$ac_file : 'X\(//\)[^/]' \| \
52465          X$ac_file : 'X\(//\)$' \| \
52466          X$ac_file : 'X\(/\)' \| \
52467          .     : '\(.\)' 2>/dev/null ||
52468 echo X$ac_file |
52469     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52470           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52471           /^X\(\/\/\)$/{ s//\1/; q; }
52472           /^X\(\/\).*/{ s//\1/; q; }
52473           s/.*/./; q'`/stamp-h$_am_stamp_count
52474 done
52475 _ACEOF
52476 cat >>$CONFIG_STATUS <<\_ACEOF
52477
52478 #
52479 # CONFIG_COMMANDS section.
52480 #
52481 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
52482   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
52483   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
52484   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
52485 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52486          X"$ac_dest" : 'X\(//\)[^/]' \| \
52487          X"$ac_dest" : 'X\(//\)$' \| \
52488          X"$ac_dest" : 'X\(/\)' \| \
52489          .     : '\(.\)' 2>/dev/null ||
52490 echo X"$ac_dest" |
52491     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52492           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52493           /^X\(\/\/\)$/{ s//\1/; q; }
52494           /^X\(\/\).*/{ s//\1/; q; }
52495           s/.*/./; q'`
52496   { if $as_mkdir_p; then
52497     mkdir -p "$ac_dir"
52498   else
52499     as_dir="$ac_dir"
52500     as_dirs=
52501     while test ! -d "$as_dir"; do
52502       as_dirs="$as_dir $as_dirs"
52503       as_dir=`(dirname "$as_dir") 2>/dev/null ||
52504 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52505          X"$as_dir" : 'X\(//\)[^/]' \| \
52506          X"$as_dir" : 'X\(//\)$' \| \
52507          X"$as_dir" : 'X\(/\)' \| \
52508          .     : '\(.\)' 2>/dev/null ||
52509 echo X"$as_dir" |
52510     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52511           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52512           /^X\(\/\/\)$/{ s//\1/; q; }
52513           /^X\(\/\).*/{ s//\1/; q; }
52514           s/.*/./; q'`
52515     done
52516     test ! -n "$as_dirs" || mkdir $as_dirs
52517   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
52518 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
52519    { (exit 1); exit 1; }; }; }
52520
52521   ac_builddir=.
52522
52523 if test "$ac_dir" != .; then
52524   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
52525   # A "../" for each directory in $ac_dir_suffix.
52526   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
52527 else
52528   ac_dir_suffix= ac_top_builddir=
52529 fi
52530
52531 case $srcdir in
52532   .)  # No --srcdir option.  We are building in place.
52533     ac_srcdir=.
52534     if test -z "$ac_top_builddir"; then
52535        ac_top_srcdir=.
52536     else
52537        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
52538     fi ;;
52539   [\\/]* | ?:[\\/]* )  # Absolute path.
52540     ac_srcdir=$srcdir$ac_dir_suffix;
52541     ac_top_srcdir=$srcdir ;;
52542   *) # Relative path.
52543     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
52544     ac_top_srcdir=$ac_top_builddir$srcdir ;;
52545 esac
52546
52547 # Do not use `cd foo && pwd` to compute absolute paths, because
52548 # the directories may not exist.
52549 case `pwd` in
52550 .) ac_abs_builddir="$ac_dir";;
52551 *)
52552   case "$ac_dir" in
52553   .) ac_abs_builddir=`pwd`;;
52554   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
52555   *) ac_abs_builddir=`pwd`/"$ac_dir";;
52556   esac;;
52557 esac
52558 case $ac_abs_builddir in
52559 .) ac_abs_top_builddir=${ac_top_builddir}.;;
52560 *)
52561   case ${ac_top_builddir}. in
52562   .) ac_abs_top_builddir=$ac_abs_builddir;;
52563   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
52564   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
52565   esac;;
52566 esac
52567 case $ac_abs_builddir in
52568 .) ac_abs_srcdir=$ac_srcdir;;
52569 *)
52570   case $ac_srcdir in
52571   .) ac_abs_srcdir=$ac_abs_builddir;;
52572   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
52573   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
52574   esac;;
52575 esac
52576 case $ac_abs_builddir in
52577 .) ac_abs_top_srcdir=$ac_top_srcdir;;
52578 *)
52579   case $ac_top_srcdir in
52580   .) ac_abs_top_srcdir=$ac_abs_builddir;;
52581   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
52582   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
52583   esac;;
52584 esac
52585
52586
52587   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
52588 echo "$as_me: executing $ac_dest commands" >&6;}
52589   case $ac_dest in
52590     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
52591   # Strip MF so we end up with the name of the file.
52592   mf=`echo "$mf" | sed -e 's/:.*$//'`
52593   # Check whether this is an Automake generated Makefile or not.
52594   # We used to match only the files named `Makefile.in', but
52595   # some people rename them; so instead we look at the file content.
52596   # Grep'ing the first line is not enough: some people post-process
52597   # each Makefile.in and add a new line on top of each file to say so.
52598   # So let's grep whole file.
52599   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
52600     dirpart=`(dirname "$mf") 2>/dev/null ||
52601 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52602          X"$mf" : 'X\(//\)[^/]' \| \
52603          X"$mf" : 'X\(//\)$' \| \
52604          X"$mf" : 'X\(/\)' \| \
52605          .     : '\(.\)' 2>/dev/null ||
52606 echo X"$mf" |
52607     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52608           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52609           /^X\(\/\/\)$/{ s//\1/; q; }
52610           /^X\(\/\).*/{ s//\1/; q; }
52611           s/.*/./; q'`
52612   else
52613     continue
52614   fi
52615   # Extract the definition of DEPDIR, am__include, and am__quote
52616   # from the Makefile without running `make'.
52617   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
52618   test -z "$DEPDIR" && continue
52619   am__include=`sed -n 's/^am__include = //p' < "$mf"`
52620   test -z "am__include" && continue
52621   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
52622   # When using ansi2knr, U may be empty or an underscore; expand it
52623   U=`sed -n 's/^U = //p' < "$mf"`
52624   # Find all dependency output files, they are included files with
52625   # $(DEPDIR) in their names.  We invoke sed twice because it is the
52626   # simplest approach to changing $(DEPDIR) to its actual value in the
52627   # expansion.
52628   for file in `sed -n "
52629     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
52630        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
52631     # Make sure the directory exists.
52632     test -f "$dirpart/$file" && continue
52633     fdir=`(dirname "$file") 2>/dev/null ||
52634 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52635          X"$file" : 'X\(//\)[^/]' \| \
52636          X"$file" : 'X\(//\)$' \| \
52637          X"$file" : 'X\(/\)' \| \
52638          .     : '\(.\)' 2>/dev/null ||
52639 echo X"$file" |
52640     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52641           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52642           /^X\(\/\/\)$/{ s//\1/; q; }
52643           /^X\(\/\).*/{ s//\1/; q; }
52644           s/.*/./; q'`
52645     { if $as_mkdir_p; then
52646     mkdir -p $dirpart/$fdir
52647   else
52648     as_dir=$dirpart/$fdir
52649     as_dirs=
52650     while test ! -d "$as_dir"; do
52651       as_dirs="$as_dir $as_dirs"
52652       as_dir=`(dirname "$as_dir") 2>/dev/null ||
52653 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52654          X"$as_dir" : 'X\(//\)[^/]' \| \
52655          X"$as_dir" : 'X\(//\)$' \| \
52656          X"$as_dir" : 'X\(/\)' \| \
52657          .     : '\(.\)' 2>/dev/null ||
52658 echo X"$as_dir" |
52659     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52660           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52661           /^X\(\/\/\)$/{ s//\1/; q; }
52662           /^X\(\/\).*/{ s//\1/; q; }
52663           s/.*/./; q'`
52664     done
52665     test ! -n "$as_dirs" || mkdir $as_dirs
52666   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
52667 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
52668    { (exit 1); exit 1; }; }; }
52669
52670     # echo "creating $dirpart/$file"
52671     echo '# dummy' > "$dirpart/$file"
52672   done
52673 done
52674  ;;
52675     default )
52676 chmod +x tests/run
52677 date > stamp-h
52678 BACKENDSC="servers/slapd/backends.c"
52679 echo "Making $BACKENDSC"
52680 rm -f $BACKENDSC
52681 cat > $BACKENDSC << ENDX
52682 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
52683  *
52684  * Copyright 1998-2005 The OpenLDAP Foundation.
52685  * All rights reserved.
52686  *
52687  * Redistribution and use in source and binary forms, with or without
52688  * modification, are permitted only as authorized by the OpenLDAP
52689  * Public License.
52690  *
52691  * A copy of this license is available in the file LICENSE in the
52692  * top-level directory of the distribution or, alternatively, at
52693  * <http://www.OpenLDAP.org/license.html>.
52694  */
52695 /* This file is automatically generated by configure; please do not edit. */
52696
52697 #include "portable.h"
52698 #include "slap.h"
52699
52700 ENDX
52701 if test "${STATIC_BACKENDS}"; then
52702         for b in config ${STATIC_BACKENDS}; do
52703                 bb=`echo "${b}" | sed -e 's/back-//'`
52704                 cat >> $BACKENDSC << ENDX
52705 extern BI_init ${bb}_back_initialize;
52706 ENDX
52707         done
52708
52709         cat >> $BACKENDSC << ENDX
52710
52711 BackendInfo slap_binfo[] = {
52712 ENDX
52713
52714         for b in config ${STATIC_BACKENDS}; do
52715                 bb=`echo "${b}" | sed -e 's/back-//'`
52716                 echo "    Add ${bb} ..."
52717                 cat >> $BACKENDSC << ENDX
52718         { "${bb}", ${bb}_back_initialize },
52719 ENDX
52720         done
52721
52722         cat >> $BACKENDSC << ENDX
52723         { NULL, NULL },
52724 };
52725
52726 /* end of generated file */
52727 ENDX
52728 fi
52729
52730 echo Please run \"make depend\" to build dependencies
52731  ;;
52732   esac
52733 done
52734 _ACEOF
52735
52736 cat >>$CONFIG_STATUS <<\_ACEOF
52737
52738 { (exit 0); exit 0; }
52739 _ACEOF
52740 chmod +x $CONFIG_STATUS
52741 ac_clean_files=$ac_clean_files_save
52742
52743
52744 # configure is writing to config.log, and then calls config.status.
52745 # config.status does its own redirection, appending to config.log.
52746 # Unfortunately, on DOS this fails, as config.log is still kept open
52747 # by configure, so config.status won't be able to write to it; its
52748 # output is simply discarded.  So we exec the FD to /dev/null,
52749 # effectively closing config.log, so it can be properly (re)opened and
52750 # appended to by config.status.  When coming back to configure, we
52751 # need to make the FD available again.
52752 if test "$no_create" != yes; then
52753   ac_cs_success=:
52754   ac_config_status_args=
52755   test "$silent" = yes &&
52756     ac_config_status_args="$ac_config_status_args --quiet"
52757   exec 5>/dev/null
52758   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
52759   exec 5>>config.log
52760   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
52761   # would make configure fail if this is the last instruction.
52762   $ac_cs_success || { (exit 1); exit 1; }
52763 fi
52764