]> git.sur5r.net Git - openldap/blob - configure
5beb3e59b06f3220b92da33f5c11f447013df014
[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
1555 # set unset (borrowed from autoconf 2.49c)
1556 if (OL_FOO=OL_FOO; unset OL_FOO) >/dev/null 2>&1; then
1557   ol_unset=unset
1558 else
1559   ol_unset=false
1560 fi
1561 # unset CDPATH
1562 $ol_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
1563
1564 ac_aux_dir=
1565 for ac_dir in build $srcdir/build; do
1566   if test -f $ac_dir/install-sh; then
1567     ac_aux_dir=$ac_dir
1568     ac_install_sh="$ac_aux_dir/install-sh -c"
1569     break
1570   elif test -f $ac_dir/install.sh; then
1571     ac_aux_dir=$ac_dir
1572     ac_install_sh="$ac_aux_dir/install.sh -c"
1573     break
1574   elif test -f $ac_dir/shtool; then
1575     ac_aux_dir=$ac_dir
1576     ac_install_sh="$ac_aux_dir/shtool install -c"
1577     break
1578   fi
1579 done
1580 if test -z "$ac_aux_dir"; then
1581   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build $srcdir/build" >&5
1582 echo "$as_me: error: cannot find install-sh or install.sh in build $srcdir/build" >&2;}
1583    { (exit 1); exit 1; }; }
1584 fi
1585 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1586 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1587 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1588
1589 eval `$ac_aux_dir/version.sh`
1590 if test -z "$OL_STRING"; then
1591         { { echo "$as_me:$LINENO: error: could not determine version" >&5
1592 echo "$as_me: error: could not determine version" >&2;}
1593    { (exit 1); exit 1; }; }
1594 fi
1595
1596 if test -f "$ac_aux_dir/shtool" -a ! -d $ac_aux_dir/shtool; then
1597         ac_cv_shtool="$ac_aux_dir/shtool"
1598 else
1599         { { echo "$as_me:$LINENO: error: no shtool found in $ac_aux_dir" >&5
1600 echo "$as_me: error: no shtool found in $ac_aux_dir" >&2;}
1601    { (exit 1); exit 1; }; }
1602 fi
1603
1604 SHTOOL="$ac_cv_shtool"
1605
1606 TB="`$SHTOOL echo -e '%B' 2>/dev/null`"
1607 TN="`$SHTOOL echo -e '%b' 2>/dev/null`"
1608
1609 OPENLDAP_CVS=""
1610 if test -d $ac_aux_dir/CVS; then
1611         OPENLDAP_CVS="(from CVS sources) "
1612 fi
1613
1614 echo "Configuring ${TB}${OL_STRING}${TN} ${OPENLDAP_CVS}..."
1615
1616 # Make sure we can run config.sub.
1617 $ac_config_sub sun4 >/dev/null 2>&1 ||
1618   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1619 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1620    { (exit 1); exit 1; }; }
1621
1622 echo "$as_me:$LINENO: checking build system type" >&5
1623 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1624 if test "${ac_cv_build+set}" = set; then
1625   echo $ECHO_N "(cached) $ECHO_C" >&6
1626 else
1627   ac_cv_build_alias=$build_alias
1628 test -z "$ac_cv_build_alias" &&
1629   ac_cv_build_alias=`$ac_config_guess`
1630 test -z "$ac_cv_build_alias" &&
1631   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1632 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1633    { (exit 1); exit 1; }; }
1634 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1635   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1636 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1637    { (exit 1); exit 1; }; }
1638
1639 fi
1640 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1641 echo "${ECHO_T}$ac_cv_build" >&6
1642 build=$ac_cv_build
1643 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1644 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1645 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1646
1647
1648 echo "$as_me:$LINENO: checking host system type" >&5
1649 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1650 if test "${ac_cv_host+set}" = set; then
1651   echo $ECHO_N "(cached) $ECHO_C" >&6
1652 else
1653   ac_cv_host_alias=$host_alias
1654 test -z "$ac_cv_host_alias" &&
1655   ac_cv_host_alias=$ac_cv_build_alias
1656 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1657   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1658 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1659    { (exit 1); exit 1; }; }
1660
1661 fi
1662 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1663 echo "${ECHO_T}$ac_cv_host" >&6
1664 host=$ac_cv_host
1665 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1666 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1667 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1668
1669
1670 echo "$as_me:$LINENO: checking target system type" >&5
1671 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1672 if test "${ac_cv_target+set}" = set; then
1673   echo $ECHO_N "(cached) $ECHO_C" >&6
1674 else
1675   ac_cv_target_alias=$target_alias
1676 test "x$ac_cv_target_alias" = "x" &&
1677   ac_cv_target_alias=$ac_cv_host_alias
1678 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1679   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1680 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1681    { (exit 1); exit 1; }; }
1682
1683 fi
1684 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1685 echo "${ECHO_T}$ac_cv_target" >&6
1686 target=$ac_cv_target
1687 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1688 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1689 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1690
1691
1692 # The aliases save the names the user supplied, while $host etc.
1693 # will get canonicalized.
1694 test -n "$target_alias" &&
1695   test "$program_prefix$program_suffix$program_transform_name" = \
1696     NONENONEs,x,x, &&
1697   program_prefix=${target_alias}-
1698
1699 am__api_version="1.9"
1700 # Find a good install program.  We prefer a C program (faster),
1701 # so one script is as good as another.  But avoid the broken or
1702 # incompatible versions:
1703 # SysV /etc/install, /usr/sbin/install
1704 # SunOS /usr/etc/install
1705 # IRIX /sbin/install
1706 # AIX /bin/install
1707 # AmigaOS /C/install, which installs bootblocks on floppy discs
1708 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1709 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1710 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1711 # OS/2's system install, which has a completely different semantic
1712 # ./install, which can be erroneously created by make from ./install.sh.
1713 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1714 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1715 if test -z "$INSTALL"; then
1716 if test "${ac_cv_path_install+set}" = set; then
1717   echo $ECHO_N "(cached) $ECHO_C" >&6
1718 else
1719   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1720 for as_dir in $PATH
1721 do
1722   IFS=$as_save_IFS
1723   test -z "$as_dir" && as_dir=.
1724   # Account for people who put trailing slashes in PATH elements.
1725 case $as_dir/ in
1726   ./ | .// | /cC/* | \
1727   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1728   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1729   /usr/ucb/* ) ;;
1730   *)
1731     # OSF1 and SCO ODT 3.0 have their own names for install.
1732     # Don't use installbsd from OSF since it installs stuff as root
1733     # by default.
1734     for ac_prog in ginstall scoinst install; do
1735       for ac_exec_ext in '' $ac_executable_extensions; do
1736         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1737           if test $ac_prog = install &&
1738             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1739             # AIX install.  It has an incompatible calling convention.
1740             :
1741           elif test $ac_prog = install &&
1742             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1743             # program-specific install script used by HP pwplus--don't use.
1744             :
1745           else
1746             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1747             break 3
1748           fi
1749         fi
1750       done
1751     done
1752     ;;
1753 esac
1754 done
1755
1756
1757 fi
1758   if test "${ac_cv_path_install+set}" = set; then
1759     INSTALL=$ac_cv_path_install
1760   else
1761     # As a last resort, use the slow shell script.  We don't cache a
1762     # path for INSTALL within a source directory, because that will
1763     # break other packages using the cache if that directory is
1764     # removed, or if the path is relative.
1765     INSTALL=$ac_install_sh
1766   fi
1767 fi
1768 echo "$as_me:$LINENO: result: $INSTALL" >&5
1769 echo "${ECHO_T}$INSTALL" >&6
1770
1771 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1772 # It thinks the first close brace ends the variable substitution.
1773 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1774
1775 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1776
1777 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1778
1779 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1780 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1781 # Just in case
1782 sleep 1
1783 echo timestamp > conftest.file
1784 # Do `set' in a subshell so we don't clobber the current shell's
1785 # arguments.  Must try -L first in case configure is actually a
1786 # symlink; some systems play weird games with the mod time of symlinks
1787 # (eg FreeBSD returns the mod time of the symlink's containing
1788 # directory).
1789 if (
1790    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1791    if test "$*" = "X"; then
1792       # -L didn't work.
1793       set X `ls -t $srcdir/configure conftest.file`
1794    fi
1795    rm -f conftest.file
1796    if test "$*" != "X $srcdir/configure conftest.file" \
1797       && test "$*" != "X conftest.file $srcdir/configure"; then
1798
1799       # If neither matched, then we have a broken ls.  This can happen
1800       # if, for instance, CONFIG_SHELL is bash and it inherits a
1801       # broken ls alias from the environment.  This has actually
1802       # happened.  Such a system could not be considered "sane".
1803       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1804 alias in your environment" >&5
1805 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1806 alias in your environment" >&2;}
1807    { (exit 1); exit 1; }; }
1808    fi
1809
1810    test "$2" = conftest.file
1811    )
1812 then
1813    # Ok.
1814    :
1815 else
1816    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1817 Check your system clock" >&5
1818 echo "$as_me: error: newly created file is older than distributed files!
1819 Check your system clock" >&2;}
1820    { (exit 1); exit 1; }; }
1821 fi
1822 echo "$as_me:$LINENO: result: yes" >&5
1823 echo "${ECHO_T}yes" >&6
1824 test "$program_prefix" != NONE &&
1825   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1826 # Use a double $ so make ignores it.
1827 test "$program_suffix" != NONE &&
1828   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1829 # Double any \ or $.  echo might interpret backslashes.
1830 # By default was `s,x,x', remove it if useless.
1831 cat <<\_ACEOF >conftest.sed
1832 s/[\\$]/&&/g;s/;s,x,x,$//
1833 _ACEOF
1834 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1835 rm conftest.sed
1836
1837 # expand $ac_aux_dir to an absolute path
1838 am_aux_dir=`cd $ac_aux_dir && pwd`
1839
1840 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1841 # Use eval to expand $SHELL
1842 if eval "$MISSING --run true"; then
1843   am_missing_run="$MISSING --run "
1844 else
1845   am_missing_run=
1846   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1847 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1848 fi
1849
1850 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1851   # We used to keeping the `.' as first argument, in order to
1852   # allow $(mkdir_p) to be used without argument.  As in
1853   #   $(mkdir_p) $(somedir)
1854   # where $(somedir) is conditionally defined.  However this is wrong
1855   # for two reasons:
1856   #  1. if the package is installed by a user who cannot write `.'
1857   #     make install will fail,
1858   #  2. the above comment should most certainly read
1859   #     $(mkdir_p) $(DESTDIR)$(somedir)
1860   #     so it does not work when $(somedir) is undefined and
1861   #     $(DESTDIR) is not.
1862   #  To support the latter case, we have to write
1863   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1864   #  so the `.' trick is pointless.
1865   mkdir_p='mkdir -p --'
1866 else
1867   # On NextStep and OpenStep, the `mkdir' command does not
1868   # recognize any option.  It will interpret all options as
1869   # directories to create, and then abort because `.' already
1870   # exists.
1871   for d in ./-p ./--version;
1872   do
1873     test -d $d && rmdir $d
1874   done
1875   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1876   if test -f "$ac_aux_dir/mkinstalldirs"; then
1877     mkdir_p='$(mkinstalldirs)'
1878   else
1879     mkdir_p='$(install_sh) -d'
1880   fi
1881 fi
1882
1883 for ac_prog in gawk mawk nawk awk
1884 do
1885   # Extract the first word of "$ac_prog", so it can be a program name with args.
1886 set dummy $ac_prog; ac_word=$2
1887 echo "$as_me:$LINENO: checking for $ac_word" >&5
1888 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1889 if test "${ac_cv_prog_AWK+set}" = set; then
1890   echo $ECHO_N "(cached) $ECHO_C" >&6
1891 else
1892   if test -n "$AWK"; then
1893   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1894 else
1895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1896 for as_dir in $PATH
1897 do
1898   IFS=$as_save_IFS
1899   test -z "$as_dir" && as_dir=.
1900   for ac_exec_ext in '' $ac_executable_extensions; do
1901   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1902     ac_cv_prog_AWK="$ac_prog"
1903     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1904     break 2
1905   fi
1906 done
1907 done
1908
1909 fi
1910 fi
1911 AWK=$ac_cv_prog_AWK
1912 if test -n "$AWK"; then
1913   echo "$as_me:$LINENO: result: $AWK" >&5
1914 echo "${ECHO_T}$AWK" >&6
1915 else
1916   echo "$as_me:$LINENO: result: no" >&5
1917 echo "${ECHO_T}no" >&6
1918 fi
1919
1920   test -n "$AWK" && break
1921 done
1922
1923 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1924 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1925 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1926 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1927   echo $ECHO_N "(cached) $ECHO_C" >&6
1928 else
1929   cat >conftest.make <<\_ACEOF
1930 all:
1931         @echo 'ac_maketemp="$(MAKE)"'
1932 _ACEOF
1933 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1934 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1935 if test -n "$ac_maketemp"; then
1936   eval ac_cv_prog_make_${ac_make}_set=yes
1937 else
1938   eval ac_cv_prog_make_${ac_make}_set=no
1939 fi
1940 rm -f conftest.make
1941 fi
1942 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1943   echo "$as_me:$LINENO: result: yes" >&5
1944 echo "${ECHO_T}yes" >&6
1945   SET_MAKE=
1946 else
1947   echo "$as_me:$LINENO: result: no" >&5
1948 echo "${ECHO_T}no" >&6
1949   SET_MAKE="MAKE=${MAKE-make}"
1950 fi
1951
1952 rm -rf .tst 2>/dev/null
1953 mkdir .tst 2>/dev/null
1954 if test -d .tst; then
1955   am__leading_dot=.
1956 else
1957   am__leading_dot=_
1958 fi
1959 rmdir .tst 2>/dev/null
1960
1961 # test to see if srcdir already configured
1962 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1963    test -f $srcdir/config.status; then
1964   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1965 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1966    { (exit 1); exit 1; }; }
1967 fi
1968
1969 # test whether we have cygpath
1970 if test -z "$CYGPATH_W"; then
1971   if (cygpath --version) >/dev/null 2>/dev/null; then
1972     CYGPATH_W='cygpath -w'
1973   else
1974     CYGPATH_W=echo
1975   fi
1976 fi
1977
1978
1979 # Define the identity of the package.
1980  PACKAGE=$OL_PACKAGE
1981  VERSION=$OL_VERSION
1982
1983
1984 # Some tools Automake needs.
1985
1986 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1987
1988
1989 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1990
1991
1992 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1993
1994
1995 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1996
1997
1998 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1999
2000 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2001
2002 # Installed binaries are usually stripped using `strip' when the user
2003 # run `make install-strip'.  However `strip' might not be the right
2004 # tool to use in cross-compilation environments, therefore Automake
2005 # will honor the `STRIP' environment variable to overrule this program.
2006 if test "$cross_compiling" != no; then
2007   if test -n "$ac_tool_prefix"; then
2008   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2009 set dummy ${ac_tool_prefix}strip; ac_word=$2
2010 echo "$as_me:$LINENO: checking for $ac_word" >&5
2011 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2012 if test "${ac_cv_prog_STRIP+set}" = set; then
2013   echo $ECHO_N "(cached) $ECHO_C" >&6
2014 else
2015   if test -n "$STRIP"; then
2016   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2017 else
2018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2019 for as_dir in $PATH
2020 do
2021   IFS=$as_save_IFS
2022   test -z "$as_dir" && as_dir=.
2023   for ac_exec_ext in '' $ac_executable_extensions; do
2024   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2025     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2026     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2027     break 2
2028   fi
2029 done
2030 done
2031
2032 fi
2033 fi
2034 STRIP=$ac_cv_prog_STRIP
2035 if test -n "$STRIP"; then
2036   echo "$as_me:$LINENO: result: $STRIP" >&5
2037 echo "${ECHO_T}$STRIP" >&6
2038 else
2039   echo "$as_me:$LINENO: result: no" >&5
2040 echo "${ECHO_T}no" >&6
2041 fi
2042
2043 fi
2044 if test -z "$ac_cv_prog_STRIP"; then
2045   ac_ct_STRIP=$STRIP
2046   # Extract the first word of "strip", so it can be a program name with args.
2047 set dummy strip; ac_word=$2
2048 echo "$as_me:$LINENO: checking for $ac_word" >&5
2049 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2050 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2051   echo $ECHO_N "(cached) $ECHO_C" >&6
2052 else
2053   if test -n "$ac_ct_STRIP"; then
2054   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2055 else
2056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2057 for as_dir in $PATH
2058 do
2059   IFS=$as_save_IFS
2060   test -z "$as_dir" && as_dir=.
2061   for ac_exec_ext in '' $ac_executable_extensions; do
2062   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2063     ac_cv_prog_ac_ct_STRIP="strip"
2064     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2065     break 2
2066   fi
2067 done
2068 done
2069
2070   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2071 fi
2072 fi
2073 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2074 if test -n "$ac_ct_STRIP"; then
2075   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2076 echo "${ECHO_T}$ac_ct_STRIP" >&6
2077 else
2078   echo "$as_me:$LINENO: result: no" >&5
2079 echo "${ECHO_T}no" >&6
2080 fi
2081
2082   STRIP=$ac_ct_STRIP
2083 else
2084   STRIP="$ac_cv_prog_STRIP"
2085 fi
2086
2087 fi
2088 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2089
2090 # We need awk for the "check" target.  The system "awk" is bad on
2091 # some platforms.
2092 # Always define AMTAR for backward compatibility.
2093
2094 AMTAR=${AMTAR-"${am_missing_run}tar"}
2095
2096 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2097
2098
2099
2100
2101
2102 cat >>confdefs.h <<_ACEOF
2103 #define OPENLDAP_PACKAGE "$PACKAGE"
2104 _ACEOF
2105
2106
2107 cat >>confdefs.h <<_ACEOF
2108 #define OPENLDAP_VERSION "$VERSION"
2109 _ACEOF
2110
2111
2112
2113 cat >>confdefs.h <<_ACEOF
2114 #define LDAP_VENDOR_VERSION $OL_API_INC
2115 _ACEOF
2116
2117
2118 cat >>confdefs.h <<_ACEOF
2119 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
2120 _ACEOF
2121
2122
2123 cat >>confdefs.h <<_ACEOF
2124 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
2125 _ACEOF
2126
2127
2128 cat >>confdefs.h <<_ACEOF
2129 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
2130 _ACEOF
2131
2132
2133 OPENLDAP_LIBRELEASE=$OL_API_LIB_RELEASE
2134
2135 OPENLDAP_LIBVERSION=$OL_API_LIB_VERSION
2136
2137 OPENLDAP_RELEASE_DATE="$OL_RELEASE_DATE"
2138
2139
2140
2141
2142
2143
2144
2145           ac_config_headers="$ac_config_headers include/portable.h:include/portable.hin"
2146
2147           ac_config_headers="$ac_config_headers include/ldap_features.h:include/ldap_features.hin"
2148
2149           ac_config_headers="$ac_config_headers include/lber_types.h:include/lber_types.hin"
2150
2151
2152 echo "$as_me:$LINENO: checking configure arguments" >&5
2153 echo $ECHO_N "checking configure arguments... $ECHO_C" >&6
2154
2155
2156 top_builddir=`pwd`
2157
2158 ldap_subdir="/openldap"
2159
2160
2161 # Check whether --with-subdir or --without-subdir was given.
2162 if test "${with_subdir+set}" = set; then
2163   withval="$with_subdir"
2164   case "$withval" in
2165         no) ldap_subdir=""
2166                 ;;
2167         yes)
2168                 ;;
2169         /*|\\*)
2170                 ldap_subdir="$withval"
2171                 ;;
2172         *)
2173                 ldap_subdir="/$withval"
2174                 ;;
2175 esac
2176
2177 fi;
2178
2179 # OpenLDAP --enable-debug
2180         # Check whether --enable-debug or --disable-debug was given.
2181 if test "${enable_debug+set}" = set; then
2182   enableval="$enable_debug"
2183
2184         ol_arg=invalid
2185         for ol_val in auto yes no ; do
2186                 if test "$enableval" = "$ol_val" ; then
2187                         ol_arg="$ol_val"
2188                 fi
2189         done
2190         if test "$ol_arg" = "invalid" ; then
2191                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-debug" >&5
2192 echo "$as_me: error: bad value $enableval for --enable-debug" >&2;}
2193    { (exit 1); exit 1; }; }
2194         fi
2195         ol_enable_debug="$ol_arg"
2196
2197 else
2198         ol_enable_debug="yes"
2199 fi; # end --enable-debug
2200 # OpenLDAP --enable-dynamic
2201         # Check whether --enable-dynamic or --disable-dynamic was given.
2202 if test "${enable_dynamic+set}" = set; then
2203   enableval="$enable_dynamic"
2204
2205         ol_arg=invalid
2206         for ol_val in auto yes no ; do
2207                 if test "$enableval" = "$ol_val" ; then
2208                         ol_arg="$ol_val"
2209                 fi
2210         done
2211         if test "$ol_arg" = "invalid" ; then
2212                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynamic" >&5
2213 echo "$as_me: error: bad value $enableval for --enable-dynamic" >&2;}
2214    { (exit 1); exit 1; }; }
2215         fi
2216         ol_enable_dynamic="$ol_arg"
2217
2218 else
2219         ol_enable_dynamic="no"
2220 fi; # end --enable-dynamic
2221 # OpenLDAP --enable-syslog
2222         # Check whether --enable-syslog or --disable-syslog was given.
2223 if test "${enable_syslog+set}" = set; then
2224   enableval="$enable_syslog"
2225
2226         ol_arg=invalid
2227         for ol_val in auto yes no ; do
2228                 if test "$enableval" = "$ol_val" ; then
2229                         ol_arg="$ol_val"
2230                 fi
2231         done
2232         if test "$ol_arg" = "invalid" ; then
2233                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syslog" >&5
2234 echo "$as_me: error: bad value $enableval for --enable-syslog" >&2;}
2235    { (exit 1); exit 1; }; }
2236         fi
2237         ol_enable_syslog="$ol_arg"
2238
2239 else
2240         ol_enable_syslog="auto"
2241 fi; # end --enable-syslog
2242 # OpenLDAP --enable-proctitle
2243         # Check whether --enable-proctitle or --disable-proctitle was given.
2244 if test "${enable_proctitle+set}" = set; then
2245   enableval="$enable_proctitle"
2246
2247         ol_arg=invalid
2248         for ol_val in auto yes no ; do
2249                 if test "$enableval" = "$ol_val" ; then
2250                         ol_arg="$ol_val"
2251                 fi
2252         done
2253         if test "$ol_arg" = "invalid" ; then
2254                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proctitle" >&5
2255 echo "$as_me: error: bad value $enableval for --enable-proctitle" >&2;}
2256    { (exit 1); exit 1; }; }
2257         fi
2258         ol_enable_proctitle="$ol_arg"
2259
2260 else
2261         ol_enable_proctitle="yes"
2262 fi; # end --enable-proctitle
2263 ol_enable_referrals=${ol_enable_referrals-no}
2264 ol_enable_kbind=${ol_enable_kbind-no}
2265 # OpenLDAP --enable-ipv6
2266         # Check whether --enable-ipv6 or --disable-ipv6 was given.
2267 if test "${enable_ipv6+set}" = set; then
2268   enableval="$enable_ipv6"
2269
2270         ol_arg=invalid
2271         for ol_val in auto yes no ; do
2272                 if test "$enableval" = "$ol_val" ; then
2273                         ol_arg="$ol_val"
2274                 fi
2275         done
2276         if test "$ol_arg" = "invalid" ; then
2277                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ipv6" >&5
2278 echo "$as_me: error: bad value $enableval for --enable-ipv6" >&2;}
2279    { (exit 1); exit 1; }; }
2280         fi
2281         ol_enable_ipv6="$ol_arg"
2282
2283 else
2284         ol_enable_ipv6="auto"
2285 fi; # end --enable-ipv6
2286 # OpenLDAP --enable-local
2287         # Check whether --enable-local or --disable-local was given.
2288 if test "${enable_local+set}" = set; then
2289   enableval="$enable_local"
2290
2291         ol_arg=invalid
2292         for ol_val in auto yes no ; do
2293                 if test "$enableval" = "$ol_val" ; then
2294                         ol_arg="$ol_val"
2295                 fi
2296         done
2297         if test "$ol_arg" = "invalid" ; then
2298                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-local" >&5
2299 echo "$as_me: error: bad value $enableval for --enable-local" >&2;}
2300    { (exit 1); exit 1; }; }
2301         fi
2302         ol_enable_local="$ol_arg"
2303
2304 else
2305         ol_enable_local="auto"
2306 fi; # end --enable-local
2307
2308
2309 # OpenLDAP --with-cyrus_sasl
2310
2311 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
2312 if test "${with_cyrus_sasl+set}" = set; then
2313   withval="$with_cyrus_sasl"
2314
2315         ol_arg=invalid
2316         for ol_val in auto yes no  ; do
2317                 if test "$withval" = "$ol_val" ; then
2318                         ol_arg="$ol_val"
2319                 fi
2320         done
2321         if test "$ol_arg" = "invalid" ; then
2322                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-cyrus_sasl" >&5
2323 echo "$as_me: error: bad value $withval for --with-cyrus_sasl" >&2;}
2324    { (exit 1); exit 1; }; }
2325         fi
2326         ol_with_cyrus_sasl="$ol_arg"
2327
2328 else
2329         ol_with_cyrus_sasl="auto"
2330 fi; # end --with-cyrus_sasl
2331
2332 # OpenLDAP --with-fetch
2333
2334 # Check whether --with-fetch or --without-fetch was given.
2335 if test "${with_fetch+set}" = set; then
2336   withval="$with_fetch"
2337
2338         ol_arg=invalid
2339         for ol_val in auto yes no  ; do
2340                 if test "$withval" = "$ol_val" ; then
2341                         ol_arg="$ol_val"
2342                 fi
2343         done
2344         if test "$ol_arg" = "invalid" ; then
2345                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-fetch" >&5
2346 echo "$as_me: error: bad value $withval for --with-fetch" >&2;}
2347    { (exit 1); exit 1; }; }
2348         fi
2349         ol_with_fetch="$ol_arg"
2350
2351 else
2352         ol_with_fetch="auto"
2353 fi; # end --with-fetch
2354
2355 ol_with_kerberos=${ol_with_kerberos-auto}
2356 # OpenLDAP --with-threads
2357
2358 # Check whether --with-threads or --without-threads was given.
2359 if test "${with_threads+set}" = set; then
2360   withval="$with_threads"
2361
2362         ol_arg=invalid
2363         for ol_val in auto nt posix mach pth lwp yes no manual  ; do
2364                 if test "$withval" = "$ol_val" ; then
2365                         ol_arg="$ol_val"
2366                 fi
2367         done
2368         if test "$ol_arg" = "invalid" ; then
2369                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-threads" >&5
2370 echo "$as_me: error: bad value $withval for --with-threads" >&2;}
2371    { (exit 1); exit 1; }; }
2372         fi
2373         ol_with_threads="$ol_arg"
2374
2375 else
2376         ol_with_threads="auto"
2377 fi; # end --with-threads
2378
2379 # OpenLDAP --with-tls
2380
2381 # Check whether --with-tls or --without-tls was given.
2382 if test "${with_tls+set}" = set; then
2383   withval="$with_tls"
2384
2385         ol_arg=invalid
2386         for ol_val in auto ssleay openssl yes no  ; do
2387                 if test "$withval" = "$ol_val" ; then
2388                         ol_arg="$ol_val"
2389                 fi
2390         done
2391         if test "$ol_arg" = "invalid" ; then
2392                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-tls" >&5
2393 echo "$as_me: error: bad value $withval for --with-tls" >&2;}
2394    { (exit 1); exit 1; }; }
2395         fi
2396         ol_with_tls="$ol_arg"
2397
2398 else
2399         ol_with_tls="auto"
2400 fi; # end --with-tls
2401
2402 # OpenLDAP --with-yielding_select
2403
2404 # Check whether --with-yielding_select or --without-yielding_select was given.
2405 if test "${with_yielding_select+set}" = set; then
2406   withval="$with_yielding_select"
2407
2408         ol_arg=invalid
2409         for ol_val in auto yes no manual  ; do
2410                 if test "$withval" = "$ol_val" ; then
2411                         ol_arg="$ol_val"
2412                 fi
2413         done
2414         if test "$ol_arg" = "invalid" ; then
2415                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-yielding_select" >&5
2416 echo "$as_me: error: bad value $withval for --with-yielding_select" >&2;}
2417    { (exit 1); exit 1; }; }
2418         fi
2419         ol_with_yielding_select="$ol_arg"
2420
2421 else
2422         ol_with_yielding_select="auto"
2423 fi; # end --with-yielding_select
2424
2425 # OpenLDAP --with-multiple_precision
2426
2427 # Check whether --with-multiple_precision or --without-multiple_precision was given.
2428 if test "${with_multiple_precision+set}" = set; then
2429   withval="$with_multiple_precision"
2430
2431         ol_arg=invalid
2432         for ol_val in auto bignum gmp yes no  ; do
2433                 if test "$withval" = "$ol_val" ; then
2434                         ol_arg="$ol_val"
2435                 fi
2436         done
2437         if test "$ol_arg" = "invalid" ; then
2438                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-multiple_precision" >&5
2439 echo "$as_me: error: bad value $withval for --with-multiple_precision" >&2;}
2440    { (exit 1); exit 1; }; }
2441         fi
2442         ol_with_multiple_precision="$ol_arg"
2443
2444 else
2445         ol_with_multiple_precision="auto"
2446 fi; # end --with-multiple_precision
2447
2448
2449
2450
2451 # Check whether --with-xxslapdoptions or --without-xxslapdoptions was given.
2452 if test "${with_xxslapdoptions+set}" = set; then
2453   withval="$with_xxslapdoptions"
2454
2455 fi;
2456 # OpenLDAP --enable-slapd
2457         # Check whether --enable-slapd or --disable-slapd was given.
2458 if test "${enable_slapd+set}" = set; then
2459   enableval="$enable_slapd"
2460
2461         ol_arg=invalid
2462         for ol_val in auto yes no ; do
2463                 if test "$enableval" = "$ol_val" ; then
2464                         ol_arg="$ol_val"
2465                 fi
2466         done
2467         if test "$ol_arg" = "invalid" ; then
2468                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapd" >&5
2469 echo "$as_me: error: bad value $enableval for --enable-slapd" >&2;}
2470    { (exit 1); exit 1; }; }
2471         fi
2472         ol_enable_slapd="$ol_arg"
2473
2474 else
2475         ol_enable_slapd="yes"
2476 fi; # end --enable-slapd
2477 # OpenLDAP --enable-aci
2478         # Check whether --enable-aci or --disable-aci was given.
2479 if test "${enable_aci+set}" = set; then
2480   enableval="$enable_aci"
2481
2482         ol_arg=invalid
2483         for ol_val in auto yes no ; do
2484                 if test "$enableval" = "$ol_val" ; then
2485                         ol_arg="$ol_val"
2486                 fi
2487         done
2488         if test "$ol_arg" = "invalid" ; then
2489                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-aci" >&5
2490 echo "$as_me: error: bad value $enableval for --enable-aci" >&2;}
2491    { (exit 1); exit 1; }; }
2492         fi
2493         ol_enable_aci="$ol_arg"
2494
2495 else
2496         ol_enable_aci="no"
2497 fi; # end --enable-aci
2498 # OpenLDAP --enable-cleartext
2499         # Check whether --enable-cleartext or --disable-cleartext was given.
2500 if test "${enable_cleartext+set}" = set; then
2501   enableval="$enable_cleartext"
2502
2503         ol_arg=invalid
2504         for ol_val in auto yes no ; do
2505                 if test "$enableval" = "$ol_val" ; then
2506                         ol_arg="$ol_val"
2507                 fi
2508         done
2509         if test "$ol_arg" = "invalid" ; then
2510                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-cleartext" >&5
2511 echo "$as_me: error: bad value $enableval for --enable-cleartext" >&2;}
2512    { (exit 1); exit 1; }; }
2513         fi
2514         ol_enable_cleartext="$ol_arg"
2515
2516 else
2517         ol_enable_cleartext="yes"
2518 fi; # end --enable-cleartext
2519 # OpenLDAP --enable-crypt
2520         # Check whether --enable-crypt or --disable-crypt was given.
2521 if test "${enable_crypt+set}" = set; then
2522   enableval="$enable_crypt"
2523
2524         ol_arg=invalid
2525         for ol_val in auto yes no ; do
2526                 if test "$enableval" = "$ol_val" ; then
2527                         ol_arg="$ol_val"
2528                 fi
2529         done
2530         if test "$ol_arg" = "invalid" ; then
2531                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-crypt" >&5
2532 echo "$as_me: error: bad value $enableval for --enable-crypt" >&2;}
2533    { (exit 1); exit 1; }; }
2534         fi
2535         ol_enable_crypt="$ol_arg"
2536
2537 else
2538         ol_enable_crypt="no"
2539 fi; # end --enable-crypt
2540 # OpenLDAP --enable-lmpasswd
2541         # Check whether --enable-lmpasswd or --disable-lmpasswd was given.
2542 if test "${enable_lmpasswd+set}" = set; then
2543   enableval="$enable_lmpasswd"
2544
2545         ol_arg=invalid
2546         for ol_val in auto yes no ; do
2547                 if test "$enableval" = "$ol_val" ; then
2548                         ol_arg="$ol_val"
2549                 fi
2550         done
2551         if test "$ol_arg" = "invalid" ; then
2552                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-lmpasswd" >&5
2553 echo "$as_me: error: bad value $enableval for --enable-lmpasswd" >&2;}
2554    { (exit 1); exit 1; }; }
2555         fi
2556         ol_enable_lmpasswd="$ol_arg"
2557
2558 else
2559         ol_enable_lmpasswd="no"
2560 fi; # end --enable-lmpasswd
2561 # OpenLDAP --enable-spasswd
2562         # Check whether --enable-spasswd or --disable-spasswd was given.
2563 if test "${enable_spasswd+set}" = set; then
2564   enableval="$enable_spasswd"
2565
2566         ol_arg=invalid
2567         for ol_val in auto yes no ; do
2568                 if test "$enableval" = "$ol_val" ; then
2569                         ol_arg="$ol_val"
2570                 fi
2571         done
2572         if test "$ol_arg" = "invalid" ; then
2573                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-spasswd" >&5
2574 echo "$as_me: error: bad value $enableval for --enable-spasswd" >&2;}
2575    { (exit 1); exit 1; }; }
2576         fi
2577         ol_enable_spasswd="$ol_arg"
2578
2579 else
2580         ol_enable_spasswd="no"
2581 fi; # end --enable-spasswd
2582 # OpenLDAP --enable-modules
2583         # Check whether --enable-modules or --disable-modules was given.
2584 if test "${enable_modules+set}" = set; then
2585   enableval="$enable_modules"
2586
2587         ol_arg=invalid
2588         for ol_val in auto yes no ; do
2589                 if test "$enableval" = "$ol_val" ; then
2590                         ol_arg="$ol_val"
2591                 fi
2592         done
2593         if test "$ol_arg" = "invalid" ; then
2594                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-modules" >&5
2595 echo "$as_me: error: bad value $enableval for --enable-modules" >&2;}
2596    { (exit 1); exit 1; }; }
2597         fi
2598         ol_enable_modules="$ol_arg"
2599
2600 else
2601         ol_enable_modules="no"
2602 fi; # end --enable-modules
2603 ol_enable_multimaster=${ol_enable_multimaster-no}
2604 # OpenLDAP --enable-rewrite
2605         # Check whether --enable-rewrite or --disable-rewrite was given.
2606 if test "${enable_rewrite+set}" = set; then
2607   enableval="$enable_rewrite"
2608
2609         ol_arg=invalid
2610         for ol_val in auto yes no ; do
2611                 if test "$enableval" = "$ol_val" ; then
2612                         ol_arg="$ol_val"
2613                 fi
2614         done
2615         if test "$ol_arg" = "invalid" ; then
2616                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rewrite" >&5
2617 echo "$as_me: error: bad value $enableval for --enable-rewrite" >&2;}
2618    { (exit 1); exit 1; }; }
2619         fi
2620         ol_enable_rewrite="$ol_arg"
2621
2622 else
2623         ol_enable_rewrite="auto"
2624 fi; # end --enable-rewrite
2625 # OpenLDAP --enable-rlookups
2626         # Check whether --enable-rlookups or --disable-rlookups was given.
2627 if test "${enable_rlookups+set}" = set; then
2628   enableval="$enable_rlookups"
2629
2630         ol_arg=invalid
2631         for ol_val in auto yes no ; do
2632                 if test "$enableval" = "$ol_val" ; then
2633                         ol_arg="$ol_val"
2634                 fi
2635         done
2636         if test "$ol_arg" = "invalid" ; then
2637                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rlookups" >&5
2638 echo "$as_me: error: bad value $enableval for --enable-rlookups" >&2;}
2639    { (exit 1); exit 1; }; }
2640         fi
2641         ol_enable_rlookups="$ol_arg"
2642
2643 else
2644         ol_enable_rlookups="no"
2645 fi; # end --enable-rlookups
2646 # OpenLDAP --enable-slapi
2647         # Check whether --enable-slapi or --disable-slapi was given.
2648 if test "${enable_slapi+set}" = set; then
2649   enableval="$enable_slapi"
2650
2651         ol_arg=invalid
2652         for ol_val in auto yes no ; do
2653                 if test "$enableval" = "$ol_val" ; then
2654                         ol_arg="$ol_val"
2655                 fi
2656         done
2657         if test "$ol_arg" = "invalid" ; then
2658                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapi" >&5
2659 echo "$as_me: error: bad value $enableval for --enable-slapi" >&2;}
2660    { (exit 1); exit 1; }; }
2661         fi
2662         ol_enable_slapi="$ol_arg"
2663
2664 else
2665         ol_enable_slapi="no"
2666 fi; # end --enable-slapi
2667 # OpenLDAP --enable-slp
2668         # Check whether --enable-slp or --disable-slp was given.
2669 if test "${enable_slp+set}" = set; then
2670   enableval="$enable_slp"
2671
2672         ol_arg=invalid
2673         for ol_val in auto yes no ; do
2674                 if test "$enableval" = "$ol_val" ; then
2675                         ol_arg="$ol_val"
2676                 fi
2677         done
2678         if test "$ol_arg" = "invalid" ; then
2679                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slp" >&5
2680 echo "$as_me: error: bad value $enableval for --enable-slp" >&2;}
2681    { (exit 1); exit 1; }; }
2682         fi
2683         ol_enable_slp="$ol_arg"
2684
2685 else
2686         ol_enable_slp="no"
2687 fi; # end --enable-slp
2688 # OpenLDAP --enable-wrappers
2689         # Check whether --enable-wrappers or --disable-wrappers was given.
2690 if test "${enable_wrappers+set}" = set; then
2691   enableval="$enable_wrappers"
2692
2693         ol_arg=invalid
2694         for ol_val in auto yes no ; do
2695                 if test "$enableval" = "$ol_val" ; then
2696                         ol_arg="$ol_val"
2697                 fi
2698         done
2699         if test "$ol_arg" = "invalid" ; then
2700                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-wrappers" >&5
2701 echo "$as_me: error: bad value $enableval for --enable-wrappers" >&2;}
2702    { (exit 1); exit 1; }; }
2703         fi
2704         ol_enable_wrappers="$ol_arg"
2705
2706 else
2707         ol_enable_wrappers="no"
2708 fi; # end --enable-wrappers
2709
2710 Backends="bdb dnssrv hdb ldap ldbm meta monitor null \
2711         passwd perl relay shell sql"
2712
2713
2714 # Check whether --with-xxslapbackends or --without-xxslapbackends was given.
2715 if test "${with_xxslapbackends+set}" = set; then
2716   withval="$with_xxslapbackends"
2717
2718 fi;
2719
2720 # OpenLDAP --enable-backends
2721         # Check whether --enable-backends or --disable-backends was given.
2722 if test "${enable_backends+set}" = set; then
2723   enableval="$enable_backends"
2724
2725         ol_arg=invalid
2726         for ol_val in no yes mod ; do
2727                 if test "$enableval" = "$ol_val" ; then
2728                         ol_arg="$ol_val"
2729                 fi
2730         done
2731         if test "$ol_arg" = "invalid" ; then
2732                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-backends" >&5
2733 echo "$as_me: error: bad value $enableval for --enable-backends" >&2;}
2734    { (exit 1); exit 1; }; }
2735         fi
2736         ol_enable_backends="$ol_arg"
2737
2738 fi; # end --enable-backends
2739 test -n "$ol_enable_backends" && ol_dflt_backends="$ol_enable_backends"
2740 # OpenLDAP --enable-bdb
2741         # Check whether --enable-bdb or --disable-bdb was given.
2742 if test "${enable_bdb+set}" = set; then
2743   enableval="$enable_bdb"
2744
2745         ol_arg=invalid
2746         for ol_val in no yes mod ; do
2747                 if test "$enableval" = "$ol_val" ; then
2748                         ol_arg="$ol_val"
2749                 fi
2750         done
2751         if test "$ol_arg" = "invalid" ; then
2752                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-bdb" >&5
2753 echo "$as_me: error: bad value $enableval for --enable-bdb" >&2;}
2754    { (exit 1); exit 1; }; }
2755         fi
2756         ol_enable_bdb="$ol_arg"
2757
2758 else
2759         ol_enable_bdb="${ol_dflt_backends-yes}"
2760 fi; # end --enable-bdb
2761 # OpenLDAP --enable-dnssrv
2762         # Check whether --enable-dnssrv or --disable-dnssrv was given.
2763 if test "${enable_dnssrv+set}" = set; then
2764   enableval="$enable_dnssrv"
2765
2766         ol_arg=invalid
2767         for ol_val in no yes mod ; do
2768                 if test "$enableval" = "$ol_val" ; then
2769                         ol_arg="$ol_val"
2770                 fi
2771         done
2772         if test "$ol_arg" = "invalid" ; then
2773                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dnssrv" >&5
2774 echo "$as_me: error: bad value $enableval for --enable-dnssrv" >&2;}
2775    { (exit 1); exit 1; }; }
2776         fi
2777         ol_enable_dnssrv="$ol_arg"
2778
2779 else
2780         ol_enable_dnssrv="${ol_dflt_backends-no}"
2781 fi; # end --enable-dnssrv
2782 # OpenLDAP --enable-hdb
2783         # Check whether --enable-hdb or --disable-hdb was given.
2784 if test "${enable_hdb+set}" = set; then
2785   enableval="$enable_hdb"
2786
2787         ol_arg=invalid
2788         for ol_val in no yes mod ; do
2789                 if test "$enableval" = "$ol_val" ; then
2790                         ol_arg="$ol_val"
2791                 fi
2792         done
2793         if test "$ol_arg" = "invalid" ; then
2794                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-hdb" >&5
2795 echo "$as_me: error: bad value $enableval for --enable-hdb" >&2;}
2796    { (exit 1); exit 1; }; }
2797         fi
2798         ol_enable_hdb="$ol_arg"
2799
2800 else
2801         ol_enable_hdb="${ol_dflt_backends-yes}"
2802 fi; # end --enable-hdb
2803 # OpenLDAP --enable-ldap
2804         # Check whether --enable-ldap or --disable-ldap was given.
2805 if test "${enable_ldap+set}" = set; then
2806   enableval="$enable_ldap"
2807
2808         ol_arg=invalid
2809         for ol_val in no yes mod ; do
2810                 if test "$enableval" = "$ol_val" ; then
2811                         ol_arg="$ol_val"
2812                 fi
2813         done
2814         if test "$ol_arg" = "invalid" ; then
2815                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldap" >&5
2816 echo "$as_me: error: bad value $enableval for --enable-ldap" >&2;}
2817    { (exit 1); exit 1; }; }
2818         fi
2819         ol_enable_ldap="$ol_arg"
2820
2821 else
2822         ol_enable_ldap="${ol_dflt_backends-no}"
2823 fi; # end --enable-ldap
2824 # OpenLDAP --enable-ldbm
2825         # Check whether --enable-ldbm or --disable-ldbm was given.
2826 if test "${enable_ldbm+set}" = set; then
2827   enableval="$enable_ldbm"
2828
2829         ol_arg=invalid
2830         for ol_val in no yes mod ; do
2831                 if test "$enableval" = "$ol_val" ; then
2832                         ol_arg="$ol_val"
2833                 fi
2834         done
2835         if test "$ol_arg" = "invalid" ; then
2836                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldbm" >&5
2837 echo "$as_me: error: bad value $enableval for --enable-ldbm" >&2;}
2838    { (exit 1); exit 1; }; }
2839         fi
2840         ol_enable_ldbm="$ol_arg"
2841
2842 else
2843         ol_enable_ldbm="${ol_dflt_backends-no}"
2844 fi; # end --enable-ldbm
2845 # OpenLDAP --with-ldbm_api
2846
2847 # Check whether --with-ldbm_api or --without-ldbm_api was given.
2848 if test "${with_ldbm_api+set}" = set; then
2849   withval="$with_ldbm_api"
2850
2851         ol_arg=invalid
2852         for ol_val in auto berkeley bcompat mdbm gdbm ; do
2853                 if test "$withval" = "$ol_val" ; then
2854                         ol_arg="$ol_val"
2855                 fi
2856         done
2857         if test "$ol_arg" = "invalid" ; then
2858                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-ldbm_api" >&5
2859 echo "$as_me: error: bad value $withval for --with-ldbm_api" >&2;}
2860    { (exit 1); exit 1; }; }
2861         fi
2862         ol_with_ldbm_api="$ol_arg"
2863
2864 else
2865         ol_with_ldbm_api="auto"
2866 fi; # end --with-ldbm_api
2867
2868 # OpenLDAP --with-ldbm_type
2869
2870 # Check whether --with-ldbm_type or --without-ldbm_type was given.
2871 if test "${with_ldbm_type+set}" = set; then
2872   withval="$with_ldbm_type"
2873
2874         ol_arg=invalid
2875         for ol_val in auto btree hash ; do
2876                 if test "$withval" = "$ol_val" ; then
2877                         ol_arg="$ol_val"
2878                 fi
2879         done
2880         if test "$ol_arg" = "invalid" ; then
2881                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-ldbm_type" >&5
2882 echo "$as_me: error: bad value $withval for --with-ldbm_type" >&2;}
2883    { (exit 1); exit 1; }; }
2884         fi
2885         ol_with_ldbm_type="$ol_arg"
2886
2887 else
2888         ol_with_ldbm_type="auto"
2889 fi; # end --with-ldbm_type
2890
2891 # OpenLDAP --enable-meta
2892         # Check whether --enable-meta or --disable-meta was given.
2893 if test "${enable_meta+set}" = set; then
2894   enableval="$enable_meta"
2895
2896         ol_arg=invalid
2897         for ol_val in no yes mod ; do
2898                 if test "$enableval" = "$ol_val" ; then
2899                         ol_arg="$ol_val"
2900                 fi
2901         done
2902         if test "$ol_arg" = "invalid" ; then
2903                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-meta" >&5
2904 echo "$as_me: error: bad value $enableval for --enable-meta" >&2;}
2905    { (exit 1); exit 1; }; }
2906         fi
2907         ol_enable_meta="$ol_arg"
2908
2909 else
2910         ol_enable_meta="${ol_dflt_backends-no}"
2911 fi; # end --enable-meta
2912 # OpenLDAP --enable-monitor
2913         # Check whether --enable-monitor or --disable-monitor was given.
2914 if test "${enable_monitor+set}" = set; then
2915   enableval="$enable_monitor"
2916
2917         ol_arg=invalid
2918         for ol_val in no yes mod ; do
2919                 if test "$enableval" = "$ol_val" ; then
2920                         ol_arg="$ol_val"
2921                 fi
2922         done
2923         if test "$ol_arg" = "invalid" ; then
2924                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-monitor" >&5
2925 echo "$as_me: error: bad value $enableval for --enable-monitor" >&2;}
2926    { (exit 1); exit 1; }; }
2927         fi
2928         ol_enable_monitor="$ol_arg"
2929
2930 else
2931         ol_enable_monitor="${ol_dflt_backends-yes}"
2932 fi; # end --enable-monitor
2933 # OpenLDAP --enable-null
2934         # Check whether --enable-null or --disable-null was given.
2935 if test "${enable_null+set}" = set; then
2936   enableval="$enable_null"
2937
2938         ol_arg=invalid
2939         for ol_val in no yes mod ; do
2940                 if test "$enableval" = "$ol_val" ; then
2941                         ol_arg="$ol_val"
2942                 fi
2943         done
2944         if test "$ol_arg" = "invalid" ; then
2945                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-null" >&5
2946 echo "$as_me: error: bad value $enableval for --enable-null" >&2;}
2947    { (exit 1); exit 1; }; }
2948         fi
2949         ol_enable_null="$ol_arg"
2950
2951 else
2952         ol_enable_null="${ol_dflt_backends-no}"
2953 fi; # end --enable-null
2954 # OpenLDAP --enable-passwd
2955         # Check whether --enable-passwd or --disable-passwd was given.
2956 if test "${enable_passwd+set}" = set; then
2957   enableval="$enable_passwd"
2958
2959         ol_arg=invalid
2960         for ol_val in no yes mod ; do
2961                 if test "$enableval" = "$ol_val" ; then
2962                         ol_arg="$ol_val"
2963                 fi
2964         done
2965         if test "$ol_arg" = "invalid" ; then
2966                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-passwd" >&5
2967 echo "$as_me: error: bad value $enableval for --enable-passwd" >&2;}
2968    { (exit 1); exit 1; }; }
2969         fi
2970         ol_enable_passwd="$ol_arg"
2971
2972 else
2973         ol_enable_passwd="${ol_dflt_backends-no}"
2974 fi; # end --enable-passwd
2975 # OpenLDAP --enable-perl
2976         # Check whether --enable-perl or --disable-perl was given.
2977 if test "${enable_perl+set}" = set; then
2978   enableval="$enable_perl"
2979
2980         ol_arg=invalid
2981         for ol_val in no yes mod ; do
2982                 if test "$enableval" = "$ol_val" ; then
2983                         ol_arg="$ol_val"
2984                 fi
2985         done
2986         if test "$ol_arg" = "invalid" ; then
2987                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-perl" >&5
2988 echo "$as_me: error: bad value $enableval for --enable-perl" >&2;}
2989    { (exit 1); exit 1; }; }
2990         fi
2991         ol_enable_perl="$ol_arg"
2992
2993 else
2994         ol_enable_perl="${ol_dflt_backends-no}"
2995 fi; # end --enable-perl
2996 # OpenLDAP --enable-relay
2997         # Check whether --enable-relay or --disable-relay was given.
2998 if test "${enable_relay+set}" = set; then
2999   enableval="$enable_relay"
3000
3001         ol_arg=invalid
3002         for ol_val in no yes mod ; do
3003                 if test "$enableval" = "$ol_val" ; then
3004                         ol_arg="$ol_val"
3005                 fi
3006         done
3007         if test "$ol_arg" = "invalid" ; then
3008                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-relay" >&5
3009 echo "$as_me: error: bad value $enableval for --enable-relay" >&2;}
3010    { (exit 1); exit 1; }; }
3011         fi
3012         ol_enable_relay="$ol_arg"
3013
3014 else
3015         ol_enable_relay="${ol_dflt_backends-yes}"
3016 fi; # end --enable-relay
3017 # OpenLDAP --enable-shell
3018         # Check whether --enable-shell or --disable-shell was given.
3019 if test "${enable_shell+set}" = set; then
3020   enableval="$enable_shell"
3021
3022         ol_arg=invalid
3023         for ol_val in no yes mod ; do
3024                 if test "$enableval" = "$ol_val" ; then
3025                         ol_arg="$ol_val"
3026                 fi
3027         done
3028         if test "$ol_arg" = "invalid" ; then
3029                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-shell" >&5
3030 echo "$as_me: error: bad value $enableval for --enable-shell" >&2;}
3031    { (exit 1); exit 1; }; }
3032         fi
3033         ol_enable_shell="$ol_arg"
3034
3035 else
3036         ol_enable_shell="${ol_dflt_backends-no}"
3037 fi; # end --enable-shell
3038 # OpenLDAP --enable-sql
3039         # Check whether --enable-sql or --disable-sql was given.
3040 if test "${enable_sql+set}" = set; then
3041   enableval="$enable_sql"
3042
3043         ol_arg=invalid
3044         for ol_val in no yes mod ; do
3045                 if test "$enableval" = "$ol_val" ; then
3046                         ol_arg="$ol_val"
3047                 fi
3048         done
3049         if test "$ol_arg" = "invalid" ; then
3050                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-sql" >&5
3051 echo "$as_me: error: bad value $enableval for --enable-sql" >&2;}
3052    { (exit 1); exit 1; }; }
3053         fi
3054         ol_enable_sql="$ol_arg"
3055
3056 else
3057         ol_enable_sql="${ol_dflt_backends-no}"
3058 fi; # end --enable-sql
3059
3060 Overlays="accesslog denyop dyngroup dynlist glue lastmod ppolicy proxycache \
3061         refint retcode rwm syncprov translucent unique"
3062
3063
3064 # Check whether --with-xxslapoverlays or --without-xxslapoverlays was given.
3065 if test "${with_xxslapoverlays+set}" = set; then
3066   withval="$with_xxslapoverlays"
3067
3068 fi;
3069
3070 # OpenLDAP --enable-overlays
3071         # Check whether --enable-overlays or --disable-overlays was given.
3072 if test "${enable_overlays+set}" = set; then
3073   enableval="$enable_overlays"
3074
3075         ol_arg=invalid
3076         for ol_val in no yes mod ; do
3077                 if test "$enableval" = "$ol_val" ; then
3078                         ol_arg="$ol_val"
3079                 fi
3080         done
3081         if test "$ol_arg" = "invalid" ; then
3082                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-overlays" >&5
3083 echo "$as_me: error: bad value $enableval for --enable-overlays" >&2;}
3084    { (exit 1); exit 1; }; }
3085         fi
3086         ol_enable_overlays="$ol_arg"
3087
3088 fi; # end --enable-overlays
3089 test -n "$ol_enable_overlays" && ol_dflt_overlays="$ol_enable_overlays"
3090 # OpenLDAP --enable-accesslog
3091         # Check whether --enable-accesslog or --disable-accesslog was given.
3092 if test "${enable_accesslog+set}" = set; then
3093   enableval="$enable_accesslog"
3094
3095         ol_arg=invalid
3096         for ol_val in no yes mod ; do
3097                 if test "$enableval" = "$ol_val" ; then
3098                         ol_arg="$ol_val"
3099                 fi
3100         done
3101         if test "$ol_arg" = "invalid" ; then
3102                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-accesslog" >&5
3103 echo "$as_me: error: bad value $enableval for --enable-accesslog" >&2;}
3104    { (exit 1); exit 1; }; }
3105         fi
3106         ol_enable_accesslog="$ol_arg"
3107
3108 else
3109         ol_enable_accesslog="${ol_dflt_overlays-no}"
3110 fi; # end --enable-accesslog
3111
3112 # OpenLDAP --enable-denyop
3113         # Check whether --enable-denyop or --disable-denyop was given.
3114 if test "${enable_denyop+set}" = set; then
3115   enableval="$enable_denyop"
3116
3117         ol_arg=invalid
3118         for ol_val in no yes mod ; do
3119                 if test "$enableval" = "$ol_val" ; then
3120                         ol_arg="$ol_val"
3121                 fi
3122         done
3123         if test "$ol_arg" = "invalid" ; then
3124                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-denyop" >&5
3125 echo "$as_me: error: bad value $enableval for --enable-denyop" >&2;}
3126    { (exit 1); exit 1; }; }
3127         fi
3128         ol_enable_denyop="$ol_arg"
3129
3130 else
3131         ol_enable_denyop="${ol_dflt_overlays-no}"
3132 fi; # end --enable-denyop
3133
3134 # OpenLDAP --enable-dyngroup
3135         # Check whether --enable-dyngroup or --disable-dyngroup was given.
3136 if test "${enable_dyngroup+set}" = set; then
3137   enableval="$enable_dyngroup"
3138
3139         ol_arg=invalid
3140         for ol_val in no yes mod ; do
3141                 if test "$enableval" = "$ol_val" ; then
3142                         ol_arg="$ol_val"
3143                 fi
3144         done
3145         if test "$ol_arg" = "invalid" ; then
3146                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dyngroup" >&5
3147 echo "$as_me: error: bad value $enableval for --enable-dyngroup" >&2;}
3148    { (exit 1); exit 1; }; }
3149         fi
3150         ol_enable_dyngroup="$ol_arg"
3151
3152 else
3153         ol_enable_dyngroup="${ol_dflt_overlays-no}"
3154 fi; # end --enable-dyngroup
3155
3156 # OpenLDAP --enable-dynlist
3157         # Check whether --enable-dynlist or --disable-dynlist was given.
3158 if test "${enable_dynlist+set}" = set; then
3159   enableval="$enable_dynlist"
3160
3161         ol_arg=invalid
3162         for ol_val in no yes mod ; do
3163                 if test "$enableval" = "$ol_val" ; then
3164                         ol_arg="$ol_val"
3165                 fi
3166         done
3167         if test "$ol_arg" = "invalid" ; then
3168                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynlist" >&5
3169 echo "$as_me: error: bad value $enableval for --enable-dynlist" >&2;}
3170    { (exit 1); exit 1; }; }
3171         fi
3172         ol_enable_dynlist="$ol_arg"
3173
3174 else
3175         ol_enable_dynlist="${ol_dflt_overlays-no}"
3176 fi; # end --enable-dynlist
3177
3178 # OpenLDAP --enable-glue
3179         # Check whether --enable-glue or --disable-glue was given.
3180 if test "${enable_glue+set}" = set; then
3181   enableval="$enable_glue"
3182
3183         ol_arg=invalid
3184         for ol_val in no yes mod ; do
3185                 if test "$enableval" = "$ol_val" ; then
3186                         ol_arg="$ol_val"
3187                 fi
3188         done
3189         if test "$ol_arg" = "invalid" ; then
3190                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-glue" >&5
3191 echo "$as_me: error: bad value $enableval for --enable-glue" >&2;}
3192    { (exit 1); exit 1; }; }
3193         fi
3194         ol_enable_glue="$ol_arg"
3195
3196 else
3197         ol_enable_glue="${ol_dflt_overlays-yes}"
3198 fi; # end --enable-glue
3199
3200 # OpenLDAP --enable-lastmod
3201         # Check whether --enable-lastmod or --disable-lastmod was given.
3202 if test "${enable_lastmod+set}" = set; then
3203   enableval="$enable_lastmod"
3204
3205         ol_arg=invalid
3206         for ol_val in no yes mod ; do
3207                 if test "$enableval" = "$ol_val" ; then
3208                         ol_arg="$ol_val"
3209                 fi
3210         done
3211         if test "$ol_arg" = "invalid" ; then
3212                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-lastmod" >&5
3213 echo "$as_me: error: bad value $enableval for --enable-lastmod" >&2;}
3214    { (exit 1); exit 1; }; }
3215         fi
3216         ol_enable_lastmod="$ol_arg"
3217
3218 else
3219         ol_enable_lastmod="${ol_dflt_overlays-no}"
3220 fi; # end --enable-lastmod
3221
3222 # OpenLDAP --enable-ppolicy
3223         # Check whether --enable-ppolicy or --disable-ppolicy was given.
3224 if test "${enable_ppolicy+set}" = set; then
3225   enableval="$enable_ppolicy"
3226
3227         ol_arg=invalid
3228         for ol_val in no yes mod ; do
3229                 if test "$enableval" = "$ol_val" ; then
3230                         ol_arg="$ol_val"
3231                 fi
3232         done
3233         if test "$ol_arg" = "invalid" ; then
3234                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ppolicy" >&5
3235 echo "$as_me: error: bad value $enableval for --enable-ppolicy" >&2;}
3236    { (exit 1); exit 1; }; }
3237         fi
3238         ol_enable_ppolicy="$ol_arg"
3239
3240 else
3241         ol_enable_ppolicy="${ol_dflt_overlays-no}"
3242 fi; # end --enable-ppolicy
3243
3244 # OpenLDAP --enable-proxycache
3245         # Check whether --enable-proxycache or --disable-proxycache was given.
3246 if test "${enable_proxycache+set}" = set; then
3247   enableval="$enable_proxycache"
3248
3249         ol_arg=invalid
3250         for ol_val in no yes mod ; do
3251                 if test "$enableval" = "$ol_val" ; then
3252                         ol_arg="$ol_val"
3253                 fi
3254         done
3255         if test "$ol_arg" = "invalid" ; then
3256                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proxycache" >&5
3257 echo "$as_me: error: bad value $enableval for --enable-proxycache" >&2;}
3258    { (exit 1); exit 1; }; }
3259         fi
3260         ol_enable_proxycache="$ol_arg"
3261
3262 else
3263         ol_enable_proxycache="${ol_dflt_overlays-no}"
3264 fi; # end --enable-proxycache
3265
3266 # OpenLDAP --enable-refint
3267         # Check whether --enable-refint or --disable-refint was given.
3268 if test "${enable_refint+set}" = set; then
3269   enableval="$enable_refint"
3270
3271         ol_arg=invalid
3272         for ol_val in no yes mod ; do
3273                 if test "$enableval" = "$ol_val" ; then
3274                         ol_arg="$ol_val"
3275                 fi
3276         done
3277         if test "$ol_arg" = "invalid" ; then
3278                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-refint" >&5
3279 echo "$as_me: error: bad value $enableval for --enable-refint" >&2;}
3280    { (exit 1); exit 1; }; }
3281         fi
3282         ol_enable_refint="$ol_arg"
3283
3284 else
3285         ol_enable_refint="${ol_dflt_overlays-no}"
3286 fi; # end --enable-refint
3287
3288 # OpenLDAP --enable-retcode
3289         # Check whether --enable-retcode or --disable-retcode was given.
3290 if test "${enable_retcode+set}" = set; then
3291   enableval="$enable_retcode"
3292
3293         ol_arg=invalid
3294         for ol_val in no yes mod ; do
3295                 if test "$enableval" = "$ol_val" ; then
3296                         ol_arg="$ol_val"
3297                 fi
3298         done
3299         if test "$ol_arg" = "invalid" ; then
3300                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-retcode" >&5
3301 echo "$as_me: error: bad value $enableval for --enable-retcode" >&2;}
3302    { (exit 1); exit 1; }; }
3303         fi
3304         ol_enable_retcode="$ol_arg"
3305
3306 else
3307         ol_enable_retcode="${ol_dflt_overlays-no}"
3308 fi; # end --enable-retcode
3309
3310 # OpenLDAP --enable-rwm
3311         # Check whether --enable-rwm or --disable-rwm was given.
3312 if test "${enable_rwm+set}" = set; then
3313   enableval="$enable_rwm"
3314
3315         ol_arg=invalid
3316         for ol_val in no yes mod ; do
3317                 if test "$enableval" = "$ol_val" ; then
3318                         ol_arg="$ol_val"
3319                 fi
3320         done
3321         if test "$ol_arg" = "invalid" ; then
3322                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rwm" >&5
3323 echo "$as_me: error: bad value $enableval for --enable-rwm" >&2;}
3324    { (exit 1); exit 1; }; }
3325         fi
3326         ol_enable_rwm="$ol_arg"
3327
3328 else
3329         ol_enable_rwm="${ol_dflt_overlays-no}"
3330 fi; # end --enable-rwm
3331
3332 # OpenLDAP --enable-syncprov
3333         # Check whether --enable-syncprov or --disable-syncprov was given.
3334 if test "${enable_syncprov+set}" = set; then
3335   enableval="$enable_syncprov"
3336
3337         ol_arg=invalid
3338         for ol_val in no yes mod ; do
3339                 if test "$enableval" = "$ol_val" ; then
3340                         ol_arg="$ol_val"
3341                 fi
3342         done
3343         if test "$ol_arg" = "invalid" ; then
3344                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syncprov" >&5
3345 echo "$as_me: error: bad value $enableval for --enable-syncprov" >&2;}
3346    { (exit 1); exit 1; }; }
3347         fi
3348         ol_enable_syncprov="$ol_arg"
3349
3350 else
3351         ol_enable_syncprov="${ol_dflt_overlays-yes}"
3352 fi; # end --enable-syncprov
3353
3354 # OpenLDAP --enable-translucent
3355         # Check whether --enable-translucent or --disable-translucent was given.
3356 if test "${enable_translucent+set}" = set; then
3357   enableval="$enable_translucent"
3358
3359         ol_arg=invalid
3360         for ol_val in no yes mod ; do
3361                 if test "$enableval" = "$ol_val" ; then
3362                         ol_arg="$ol_val"
3363                 fi
3364         done
3365         if test "$ol_arg" = "invalid" ; then
3366                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-translucent" >&5
3367 echo "$as_me: error: bad value $enableval for --enable-translucent" >&2;}
3368    { (exit 1); exit 1; }; }
3369         fi
3370         ol_enable_translucent="$ol_arg"
3371
3372 else
3373         ol_enable_translucent="${ol_dflt_overlays-no}"
3374 fi; # end --enable-translucent
3375
3376 # OpenLDAP --enable-unique
3377         # Check whether --enable-unique or --disable-unique was given.
3378 if test "${enable_unique+set}" = set; then
3379   enableval="$enable_unique"
3380
3381         ol_arg=invalid
3382         for ol_val in no yes mod ; do
3383                 if test "$enableval" = "$ol_val" ; then
3384                         ol_arg="$ol_val"
3385                 fi
3386         done
3387         if test "$ol_arg" = "invalid" ; then
3388                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-unique" >&5
3389 echo "$as_me: error: bad value $enableval for --enable-unique" >&2;}
3390    { (exit 1); exit 1; }; }
3391         fi
3392         ol_enable_unique="$ol_arg"
3393
3394 else
3395         ol_enable_unique="${ol_dflt_overlays-no}"
3396 fi; # end --enable-unique
3397
3398
3399
3400
3401 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
3402 if test "${with_xxslurpdoptions+set}" = set; then
3403   withval="$with_xxslurpdoptions"
3404
3405 fi;
3406 # OpenLDAP --enable-slurpd
3407         # Check whether --enable-slurpd or --disable-slurpd was given.
3408 if test "${enable_slurpd+set}" = set; then
3409   enableval="$enable_slurpd"
3410
3411         ol_arg=invalid
3412         for ol_val in auto yes no ; do
3413                 if test "$enableval" = "$ol_val" ; then
3414                         ol_arg="$ol_val"
3415                 fi
3416         done
3417         if test "$ol_arg" = "invalid" ; then
3418                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slurpd" >&5
3419 echo "$as_me: error: bad value $enableval for --enable-slurpd" >&2;}
3420    { (exit 1); exit 1; }; }
3421         fi
3422         ol_enable_slurpd="$ol_arg"
3423
3424 else
3425         ol_enable_slurpd="auto"
3426 fi; # end --enable-slurpd
3427
3428
3429 # Check whether --with-xxliboptions or --without-xxliboptions was given.
3430 if test "${with_xxliboptions+set}" = set; then
3431   withval="$with_xxliboptions"
3432
3433 fi;
3434 # Check whether --enable-static or --disable-static was given.
3435 if test "${enable_static+set}" = set; then
3436   enableval="$enable_static"
3437   p=${PACKAGE-default}
3438     case $enableval in
3439     yes) enable_static=yes ;;
3440     no) enable_static=no ;;
3441     *)
3442      enable_static=no
3443       # Look at the argument we got.  We use all the common list separators.
3444       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3445       for pkg in $enableval; do
3446         IFS="$lt_save_ifs"
3447         if test "X$pkg" = "X$p"; then
3448           enable_static=yes
3449         fi
3450       done
3451       IFS="$lt_save_ifs"
3452       ;;
3453     esac
3454 else
3455   enable_static=yes
3456 fi;
3457
3458 # Check whether --enable-shared or --disable-shared was given.
3459 if test "${enable_shared+set}" = set; then
3460   enableval="$enable_shared"
3461   p=${PACKAGE-default}
3462     case $enableval in
3463     yes) enable_shared=yes ;;
3464     no) enable_shared=no ;;
3465     *)
3466       enable_shared=no
3467       # Look at the argument we got.  We use all the common list separators.
3468       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3469       for pkg in $enableval; do
3470         IFS="$lt_save_ifs"
3471         if test "X$pkg" = "X$p"; then
3472           enable_shared=yes
3473         fi
3474       done
3475       IFS="$lt_save_ifs"
3476       ;;
3477     esac
3478 else
3479   enable_shared=yes
3480 fi;
3481
3482
3483
3484 # validate options
3485 if test $ol_enable_slapd = no ; then
3486                 if test $ol_enable_slapi = yes ; then
3487                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-slapi argument" >&5
3488 echo "$as_me: WARNING: slapd disabled, ignoring --enable-slapi argument" >&2;}
3489         fi
3490         case "$ol_enable_backends" in yes | mod)
3491                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-backends argument" >&5
3492 echo "$as_me: WARNING: slapd disabled, ignoring --enable-backends argument" >&2;}
3493         esac
3494         for i in $Backends; do
3495                 eval "ol_tmp=\$ol_enable_$i"
3496                 if test $ol_tmp != no ; then
3497                         { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3498 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3499                         eval "ol_enable_$i=no"
3500                 fi
3501         done
3502         if test $ol_enable_modules = yes ; then
3503                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-modules argument" >&5
3504 echo "$as_me: WARNING: slapd disabled, ignoring --enable-modules argument" >&2;}
3505         fi
3506         if test $ol_enable_multimaster = yes ; then
3507                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-multimaster argument" >&5
3508 echo "$as_me: WARNING: slapd disabled, ignoring --enable-multimaster argument" >&2;}
3509         fi
3510         if test $ol_enable_wrappers = yes ; then
3511                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&5
3512 echo "$as_me: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&2;}
3513         fi
3514         if test $ol_enable_rlookups = yes ; then
3515                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&5
3516 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&2;}
3517         fi
3518         if test $ol_enable_aci = yes ; then
3519                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-aci argument" >&5
3520 echo "$as_me: WARNING: slapd disabled, ignoring --enable-aci argument" >&2;}
3521         fi
3522         if test $ol_with_ldbm_api != auto ; then
3523                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --with-ldbm-api argument" >&5
3524 echo "$as_me: WARNING: slapd disabled, ignoring --with-ldbm-api argument" >&2;}
3525         fi
3526         if test $ol_with_ldbm_type != auto ; then
3527                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --with-ldbm-type argument" >&5
3528 echo "$as_me: WARNING: slapd disabled, ignoring --with-ldbm-type argument" >&2;}
3529         fi
3530         if test $ol_enable_slurpd = yes ; then
3531                 { { echo "$as_me:$LINENO: error: slurpd requires slapd" >&5
3532 echo "$as_me: error: slurpd requires slapd" >&2;}
3533    { (exit 1); exit 1; }; }
3534         fi
3535         if test $ol_enable_rewrite = yes ; then
3536                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&5
3537 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&2;}
3538         fi
3539                 case "$ol_enable_overlays" in yes | mod)
3540                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-overlays argument" >&5
3541 echo "$as_me: WARNING: slapd disabled, ignoring --enable-overlays argument" >&2;}
3542         esac
3543         for i in $Overlays; do
3544                 eval "ol_tmp=\$ol_enable_$i"
3545                 if test $ol_tmp != no ; then
3546                         { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3547 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3548                         eval "ol_enable_$i=no"
3549                 fi
3550         done
3551
3552         # force settings to no
3553         ol_enable_slapi=no
3554
3555         ol_enable_backends=
3556         ol_enable_overlays=
3557         ol_enable_modules=no
3558         ol_enable_multimaster=no
3559         ol_enable_rlookups=no
3560         ol_enable_aci=no
3561         ol_enable_wrappers=no
3562
3563         ol_with_ldbm_api=no
3564         ol_with_ldbm_type=no
3565
3566         ol_enable_slurpd=no
3567
3568         ol_enable_rewrite=no
3569
3570 elif test $ol_enable_ldbm = no ; then
3571
3572         if test $ol_with_ldbm_api != auto ; then
3573                 { echo "$as_me:$LINENO: WARNING: LDBM disabled, ignoring --with-ldbm-api argument" >&5
3574 echo "$as_me: WARNING: LDBM disabled, ignoring --with-ldbm-api argument" >&2;}
3575         fi
3576
3577         if test $ol_with_ldbm_type != auto ; then
3578                 { echo "$as_me:$LINENO: WARNING: LDBM disabled, ignoring --with-ldbm-type argument" >&5
3579 echo "$as_me: WARNING: LDBM disabled, ignoring --with-ldbm-type argument" >&2;}
3580         fi
3581
3582         if test $ol_enable_modules != yes -a \
3583                 $ol_enable_bdb = no -a \
3584                 $ol_enable_dnssrv = no -a \
3585                 $ol_enable_hdb = no -a \
3586                 $ol_enable_ldap = no -a \
3587                 $ol_enable_meta = no -a \
3588                 $ol_enable_monitor = no -a \
3589                 $ol_enable_null = no -a \
3590                 $ol_enable_passwd = no -a \
3591                 $ol_enable_perl = no -a \
3592                 $ol_enable_relay = no -a \
3593                 $ol_enable_shell = no -a \
3594                 $ol_enable_sql = no ; then
3595
3596                 if test $ol_enable_slapd = yes ; then
3597                         { { echo "$as_me:$LINENO: error: slapd requires a backend" >&5
3598 echo "$as_me: error: slapd requires a backend" >&2;}
3599    { (exit 1); exit 1; }; }
3600                 else
3601                         { echo "$as_me:$LINENO: WARNING: skipping slapd, no backend specified" >&5
3602 echo "$as_me: WARNING: skipping slapd, no backend specified" >&2;}
3603                         ol_enable_slapd=no
3604                 fi
3605         fi
3606
3607         ol_with_ldbm_api=no
3608         ol_with_ldbm_type=no
3609
3610         if test $ol_enable_bdb != no -o $ol_enable_hdb != no; then
3611                 ol_with_ldbm_api=berkeley
3612         fi
3613
3614 else
3615                 if test $ol_with_ldbm_api = gdbm -a \
3616                 $ol_with_ldbm_type = btree ; then
3617                 { { echo "$as_me:$LINENO: error: GDBM only supports LDBM type hash" >&5
3618 echo "$as_me: error: GDBM only supports LDBM type hash" >&2;}
3619    { (exit 1); exit 1; }; }
3620         fi
3621         if test $ol_with_ldbm_api = mdbm -a \
3622                 $ol_with_ldbm_type = btree ; then
3623                 { { echo "$as_me:$LINENO: error: MDBM only supports LDBM type hash" >&5
3624 echo "$as_me: error: MDBM only supports LDBM type hash" >&2;}
3625    { (exit 1); exit 1; }; }
3626         fi
3627         if test $ol_with_ldbm_api = ndbm -a \
3628                 $ol_with_ldbm_type = btree ; then
3629                 { { echo "$as_me:$LINENO: error: NDBM only supports LDBM type hash" >&5
3630 echo "$as_me: error: NDBM only supports LDBM type hash" >&2;}
3631    { (exit 1); exit 1; }; }
3632         fi
3633
3634         if test $ol_enable_bdb != no -o $ol_enable_hdb != no ; then
3635                 if test $ol_with_ldbm_api = auto ; then
3636                         ol_with_ldbm_api=berkeley
3637                 elif test $ol_with_ldbm_api != berkeley ; then
3638                         { { echo "$as_me:$LINENO: error: LDBM API not compatible with BDB/HDB" >&5
3639 echo "$as_me: error: LDBM API not compatible with BDB/HDB" >&2;}
3640    { (exit 1); exit 1; }; }
3641                 fi
3642         fi
3643 fi
3644
3645 if test $ol_enable_meta = yes -a $ol_enable_ldap = no ; then
3646         { { echo "$as_me:$LINENO: error: --enable-meta requires --enable-ldap" >&5
3647 echo "$as_me: error: --enable-meta requires --enable-ldap" >&2;}
3648    { (exit 1); exit 1; }; }
3649 fi
3650
3651 if test $ol_enable_slurpd = yes ; then
3652                 if test $ol_with_threads = no ; then
3653                 { { echo "$as_me:$LINENO: error: slurpd requires threads" >&5
3654 echo "$as_me: error: slurpd requires threads" >&2;}
3655    { (exit 1); exit 1; }; }
3656         fi
3657 fi
3658
3659 if test $ol_enable_lmpasswd = yes ; then
3660         if test $ol_with_tls = no ; then
3661                 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
3662 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
3663    { (exit 1); exit 1; }; }
3664         fi
3665 fi
3666
3667 if test $ol_enable_kbind = yes ; then
3668         if test $ol_with_kerberos = no ; then
3669                 { { echo "$as_me:$LINENO: error: options require --with-kerberos" >&5
3670 echo "$as_me: error: options require --with-kerberos" >&2;}
3671    { (exit 1); exit 1; }; }
3672         elif test $ol_with_kerberos = auto ; then
3673                 ol_with_kerberos=yes
3674         fi
3675
3676 elif test $ol_enable_kbind = no ; then
3677         if test $ol_with_kerberos = auto ; then
3678                 ol_with_kerberos=no
3679         elif test $ol_with_kerberos != no ; then
3680                 { echo "$as_me:$LINENO: WARNING: Kerberos detection enabled unnecessarily" >&5
3681 echo "$as_me: WARNING: Kerberos detection enabled unnecessarily" >&2;};
3682                 ol_with_kerberos=no
3683         fi
3684 fi
3685
3686 if test $ol_enable_spasswd = yes ; then
3687         if test $ol_with_cyrus_sasl = no ; then
3688                 { { echo "$as_me:$LINENO: error: options require --with-cyrus-sasl" >&5
3689 echo "$as_me: error: options require --with-cyrus-sasl" >&2;}
3690    { (exit 1); exit 1; }; }
3691         fi
3692         ol_with_cyrus_sasl=yes
3693 fi
3694
3695 echo "$as_me:$LINENO: result: done" >&5
3696 echo "${ECHO_T}done" >&6
3697
3698 LDAP_LIBS=
3699 LDBM_LIBS=
3700 LTHREAD_LIBS=
3701 LUTIL_LIBS=
3702
3703 SLAPD_LIBS=
3704 SLURPD_LIBS=
3705
3706 BUILD_SLAPD=no
3707 BUILD_SLURPD=no
3708
3709 BUILD_THREAD=no
3710
3711 BUILD_SLAPI=no
3712 SLAPD_SLAPI_DEPEND=
3713
3714 BUILD_BDB=no
3715 BUILD_DNSSRV=no
3716 BUILD_HDB=no
3717 BUILD_LDAP=no
3718 BUILD_LDBM=no
3719 BUILD_META=no
3720 BUILD_MONITOR=no
3721 BUILD_NULL=no
3722 BUILD_PASSWD=no
3723 BUILD_PERL=no
3724 BUILD_RELAY=no
3725 BUILD_SHELL=no
3726 BUILD_SQL=no
3727
3728 BUILD_ACCESSLOG=no
3729 BUILD_DENYOP=no
3730 BUILD_DYNGROUP=no
3731 BUILD_DYNLIST=no
3732 BUILD_GLUE=no
3733 BUILD_LASTMOD=no
3734 BUILD_PPOLICY=no
3735 BUILD_PROXYCACHE=no
3736 BUILD_REFINT=no
3737 BUILD_RETCODE=no
3738 BUILD_RWM=no
3739 BUILD_SYNCPROV=no
3740 BUILD_TRANSLUCENT=no
3741 BUILD_UNIQUE=no
3742
3743 SLAPD_STATIC_OVERLAYS=
3744 SLAPD_DYNAMIC_OVERLAYS=
3745
3746 SLAPD_MODULES_LDFLAGS=
3747 SLAPD_MODULES_CPPFLAGS=
3748
3749 SLAPD_STATIC_BACKENDS=back-ldif
3750 SLAPD_DYNAMIC_BACKENDS=
3751
3752 SLAPD_PERL_LDFLAGS=
3753 MOD_PERL_LDFLAGS=
3754 PERL_CPPFLAGS=
3755
3756 SLAPD_SQL_LDFLAGS=
3757 SLAPD_SQL_LIBS=
3758 SLAPD_SQL_INCLUDES=
3759
3760 KRB4_LIBS=
3761 KRB5_LIBS=
3762 SASL_LIBS=
3763 TLS_LIBS=
3764 MODULES_LIBS=
3765 SLAPI_LIBS=
3766 LIBSLAPI=
3767 LIBSLAPITOOLS=
3768 AUTH_LIBS=
3769
3770 SLAPD_SLP_LIBS=
3771 SLAPD_GMP_LIBS=
3772
3773
3774
3775 cat >>confdefs.h <<\_ACEOF
3776 #define HAVE_MKVERSION 1
3777 _ACEOF
3778
3779
3780
3781
3782 ol_aix_threads=no
3783 case "$target" in
3784 *-*-aix*)       if test -z "$CC" ; then
3785                 case "$ol_with_threads" in
3786                 auto | yes |  posix) ol_aix_threads=yes ;;
3787                 esac
3788         fi
3789 ;;
3790 esac
3791
3792 if test $ol_aix_threads = yes ; then
3793         if test -z "${CC}" ; then
3794                 for ac_prog in cc_r xlc_r cc
3795 do
3796   # Extract the first word of "$ac_prog", so it can be a program name with args.
3797 set dummy $ac_prog; ac_word=$2
3798 echo "$as_me:$LINENO: checking for $ac_word" >&5
3799 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3800 if test "${ac_cv_prog_CC+set}" = set; then
3801   echo $ECHO_N "(cached) $ECHO_C" >&6
3802 else
3803   if test -n "$CC"; then
3804   ac_cv_prog_CC="$CC" # Let the user override the test.
3805 else
3806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3807 for as_dir in $PATH
3808 do
3809   IFS=$as_save_IFS
3810   test -z "$as_dir" && as_dir=.
3811   for ac_exec_ext in '' $ac_executable_extensions; do
3812   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3813     ac_cv_prog_CC="$ac_prog"
3814     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3815     break 2
3816   fi
3817 done
3818 done
3819
3820 fi
3821 fi
3822 CC=$ac_cv_prog_CC
3823 if test -n "$CC"; then
3824   echo "$as_me:$LINENO: result: $CC" >&5
3825 echo "${ECHO_T}$CC" >&6
3826 else
3827   echo "$as_me:$LINENO: result: no" >&5
3828 echo "${ECHO_T}no" >&6
3829 fi
3830
3831   test -n "$CC" && break
3832 done
3833
3834
3835                 if test "$CC" = cc ; then
3836                                                 if test $ol_with_threads != auto ; then
3837                                 { { echo "$as_me:$LINENO: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&5
3838 echo "$as_me: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&2;}
3839    { (exit 1); exit 1; }; }
3840                         else
3841                                 { echo "$as_me:$LINENO: WARNING: disabling threads, no cc_r on AIX" >&5
3842 echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
3843                         fi
3844                         ol_with_threads=no
3845                 fi
3846         fi
3847
3848         if test "${CC}" = "cc_r" -o "${CC}" = "xlc_r" ; then
3849                 ol_with_threads=posix
3850                 ol_cv_pthread_create=yes
3851         fi
3852 fi
3853
3854 if test -z "${CC}"; then
3855         for ac_prog in cc gcc
3856 do
3857   # Extract the first word of "$ac_prog", so it can be a program name with args.
3858 set dummy $ac_prog; ac_word=$2
3859 echo "$as_me:$LINENO: checking for $ac_word" >&5
3860 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3861 if test "${ac_cv_prog_CC+set}" = set; then
3862   echo $ECHO_N "(cached) $ECHO_C" >&6
3863 else
3864   if test -n "$CC"; then
3865   ac_cv_prog_CC="$CC" # Let the user override the test.
3866 else
3867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3868 for as_dir in $PATH
3869 do
3870   IFS=$as_save_IFS
3871   test -z "$as_dir" && as_dir=.
3872   for ac_exec_ext in '' $ac_executable_extensions; do
3873   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3874     ac_cv_prog_CC="$ac_prog"
3875     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3876     break 2
3877   fi
3878 done
3879 done
3880
3881 fi
3882 fi
3883 CC=$ac_cv_prog_CC
3884 if test -n "$CC"; then
3885   echo "$as_me:$LINENO: result: $CC" >&5
3886 echo "${ECHO_T}$CC" >&6
3887 else
3888   echo "$as_me:$LINENO: result: no" >&5
3889 echo "${ECHO_T}no" >&6
3890 fi
3891
3892   test -n "$CC" && break
3893 done
3894 test -n "$CC" || CC="missing"
3895
3896
3897         if test "${CC}" = "missing" ; then
3898                 { { echo "$as_me:$LINENO: error: Unable to locate cc(1) or suitable replacement.  Check PATH or set CC." >&5
3899 echo "$as_me: error: Unable to locate cc(1) or suitable replacement.  Check PATH or set CC." >&2;}
3900    { (exit 1); exit 1; }; }
3901         fi
3902 fi
3903
3904 if test -z "${AR}"; then
3905         for ac_prog in ar gar
3906 do
3907   # Extract the first word of "$ac_prog", so it can be a program name with args.
3908 set dummy $ac_prog; ac_word=$2
3909 echo "$as_me:$LINENO: checking for $ac_word" >&5
3910 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3911 if test "${ac_cv_prog_AR+set}" = set; then
3912   echo $ECHO_N "(cached) $ECHO_C" >&6
3913 else
3914   if test -n "$AR"; then
3915   ac_cv_prog_AR="$AR" # Let the user override the test.
3916 else
3917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3918 for as_dir in $PATH
3919 do
3920   IFS=$as_save_IFS
3921   test -z "$as_dir" && as_dir=.
3922   for ac_exec_ext in '' $ac_executable_extensions; do
3923   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3924     ac_cv_prog_AR="$ac_prog"
3925     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3926     break 2
3927   fi
3928 done
3929 done
3930
3931 fi
3932 fi
3933 AR=$ac_cv_prog_AR
3934 if test -n "$AR"; then
3935   echo "$as_me:$LINENO: result: $AR" >&5
3936 echo "${ECHO_T}$AR" >&6
3937 else
3938   echo "$as_me:$LINENO: result: no" >&5
3939 echo "${ECHO_T}no" >&6
3940 fi
3941
3942   test -n "$AR" && break
3943 done
3944 test -n "$AR" || AR="missing"
3945
3946
3947         if test "${AR}" = "missing" ; then
3948                 { { echo "$as_me:$LINENO: error: Unable to locate ar(1) or suitable replacement.  Check PATH or set AR." >&5
3949 echo "$as_me: error: Unable to locate ar(1) or suitable replacement.  Check PATH or set AR." >&2;}
3950    { (exit 1); exit 1; }; }
3951         fi
3952 fi
3953
3954
3955
3956
3957
3958 # Check whether --enable-fast-install or --disable-fast-install was given.
3959 if test "${enable_fast_install+set}" = set; then
3960   enableval="$enable_fast_install"
3961   p=${PACKAGE-default}
3962     case $enableval in
3963     yes) enable_fast_install=yes ;;
3964     no) enable_fast_install=no ;;
3965     *)
3966       enable_fast_install=no
3967       # Look at the argument we got.  We use all the common list separators.
3968       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3969       for pkg in $enableval; do
3970         IFS="$lt_save_ifs"
3971         if test "X$pkg" = "X$p"; then
3972           enable_fast_install=yes
3973         fi
3974       done
3975       IFS="$lt_save_ifs"
3976       ;;
3977     esac
3978 else
3979   enable_fast_install=yes
3980 fi;
3981
3982 DEPDIR="${am__leading_dot}deps"
3983
3984           ac_config_commands="$ac_config_commands depfiles"
3985
3986
3987 am_make=${MAKE-make}
3988 cat > confinc << 'END'
3989 am__doit:
3990         @echo done
3991 .PHONY: am__doit
3992 END
3993 # If we don't find an include directive, just comment out the code.
3994 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3995 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3996 am__include="#"
3997 am__quote=
3998 _am_result=none
3999 # First try GNU make style include.
4000 echo "include confinc" > confmf
4001 # We grep out `Entering directory' and `Leaving directory'
4002 # messages which can occur if `w' ends up in MAKEFLAGS.
4003 # In particular we don't look at `^make:' because GNU make might
4004 # be invoked under some other name (usually "gmake"), in which
4005 # case it prints its new name instead of `make'.
4006 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4007    am__include=include
4008    am__quote=
4009    _am_result=GNU
4010 fi
4011 # Now try BSD make style include.
4012 if test "$am__include" = "#"; then
4013    echo '.include "confinc"' > confmf
4014    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4015       am__include=.include
4016       am__quote="\""
4017       _am_result=BSD
4018    fi
4019 fi
4020
4021
4022 echo "$as_me:$LINENO: result: $_am_result" >&5
4023 echo "${ECHO_T}$_am_result" >&6
4024 rm -f confinc confmf
4025
4026 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4027 if test "${enable_dependency_tracking+set}" = set; then
4028   enableval="$enable_dependency_tracking"
4029
4030 fi;
4031 if test "x$enable_dependency_tracking" != xno; then
4032   am_depcomp="$ac_aux_dir/depcomp"
4033   AMDEPBACKSLASH='\'
4034 fi
4035
4036
4037 if test "x$enable_dependency_tracking" != xno; then
4038   AMDEP_TRUE=
4039   AMDEP_FALSE='#'
4040 else
4041   AMDEP_TRUE='#'
4042   AMDEP_FALSE=
4043 fi
4044
4045
4046
4047 ac_ext=c
4048 ac_cpp='$CPP $CPPFLAGS'
4049 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4050 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4051 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4052 if test -n "$ac_tool_prefix"; then
4053   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4054 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4055 echo "$as_me:$LINENO: checking for $ac_word" >&5
4056 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4057 if test "${ac_cv_prog_CC+set}" = set; then
4058   echo $ECHO_N "(cached) $ECHO_C" >&6
4059 else
4060   if test -n "$CC"; then
4061   ac_cv_prog_CC="$CC" # Let the user override the test.
4062 else
4063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4064 for as_dir in $PATH
4065 do
4066   IFS=$as_save_IFS
4067   test -z "$as_dir" && as_dir=.
4068   for ac_exec_ext in '' $ac_executable_extensions; do
4069   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4070     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4071     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4072     break 2
4073   fi
4074 done
4075 done
4076
4077 fi
4078 fi
4079 CC=$ac_cv_prog_CC
4080 if test -n "$CC"; then
4081   echo "$as_me:$LINENO: result: $CC" >&5
4082 echo "${ECHO_T}$CC" >&6
4083 else
4084   echo "$as_me:$LINENO: result: no" >&5
4085 echo "${ECHO_T}no" >&6
4086 fi
4087
4088 fi
4089 if test -z "$ac_cv_prog_CC"; then
4090   ac_ct_CC=$CC
4091   # Extract the first word of "gcc", so it can be a program name with args.
4092 set dummy gcc; ac_word=$2
4093 echo "$as_me:$LINENO: checking for $ac_word" >&5
4094 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4095 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4096   echo $ECHO_N "(cached) $ECHO_C" >&6
4097 else
4098   if test -n "$ac_ct_CC"; then
4099   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4100 else
4101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4102 for as_dir in $PATH
4103 do
4104   IFS=$as_save_IFS
4105   test -z "$as_dir" && as_dir=.
4106   for ac_exec_ext in '' $ac_executable_extensions; do
4107   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4108     ac_cv_prog_ac_ct_CC="gcc"
4109     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4110     break 2
4111   fi
4112 done
4113 done
4114
4115 fi
4116 fi
4117 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4118 if test -n "$ac_ct_CC"; then
4119   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4120 echo "${ECHO_T}$ac_ct_CC" >&6
4121 else
4122   echo "$as_me:$LINENO: result: no" >&5
4123 echo "${ECHO_T}no" >&6
4124 fi
4125
4126   CC=$ac_ct_CC
4127 else
4128   CC="$ac_cv_prog_CC"
4129 fi
4130
4131 if test -z "$CC"; then
4132   if test -n "$ac_tool_prefix"; then
4133   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4134 set dummy ${ac_tool_prefix}cc; ac_word=$2
4135 echo "$as_me:$LINENO: checking for $ac_word" >&5
4136 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4137 if test "${ac_cv_prog_CC+set}" = set; then
4138   echo $ECHO_N "(cached) $ECHO_C" >&6
4139 else
4140   if test -n "$CC"; then
4141   ac_cv_prog_CC="$CC" # Let the user override the test.
4142 else
4143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4144 for as_dir in $PATH
4145 do
4146   IFS=$as_save_IFS
4147   test -z "$as_dir" && as_dir=.
4148   for ac_exec_ext in '' $ac_executable_extensions; do
4149   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4150     ac_cv_prog_CC="${ac_tool_prefix}cc"
4151     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4152     break 2
4153   fi
4154 done
4155 done
4156
4157 fi
4158 fi
4159 CC=$ac_cv_prog_CC
4160 if test -n "$CC"; then
4161   echo "$as_me:$LINENO: result: $CC" >&5
4162 echo "${ECHO_T}$CC" >&6
4163 else
4164   echo "$as_me:$LINENO: result: no" >&5
4165 echo "${ECHO_T}no" >&6
4166 fi
4167
4168 fi
4169 if test -z "$ac_cv_prog_CC"; then
4170   ac_ct_CC=$CC
4171   # Extract the first word of "cc", so it can be a program name with args.
4172 set dummy cc; ac_word=$2
4173 echo "$as_me:$LINENO: checking for $ac_word" >&5
4174 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4175 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4176   echo $ECHO_N "(cached) $ECHO_C" >&6
4177 else
4178   if test -n "$ac_ct_CC"; then
4179   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4180 else
4181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4182 for as_dir in $PATH
4183 do
4184   IFS=$as_save_IFS
4185   test -z "$as_dir" && as_dir=.
4186   for ac_exec_ext in '' $ac_executable_extensions; do
4187   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4188     ac_cv_prog_ac_ct_CC="cc"
4189     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4190     break 2
4191   fi
4192 done
4193 done
4194
4195 fi
4196 fi
4197 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4198 if test -n "$ac_ct_CC"; then
4199   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4200 echo "${ECHO_T}$ac_ct_CC" >&6
4201 else
4202   echo "$as_me:$LINENO: result: no" >&5
4203 echo "${ECHO_T}no" >&6
4204 fi
4205
4206   CC=$ac_ct_CC
4207 else
4208   CC="$ac_cv_prog_CC"
4209 fi
4210
4211 fi
4212 if test -z "$CC"; then
4213   # Extract the first word of "cc", so it can be a program name with args.
4214 set dummy cc; ac_word=$2
4215 echo "$as_me:$LINENO: checking for $ac_word" >&5
4216 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4217 if test "${ac_cv_prog_CC+set}" = set; then
4218   echo $ECHO_N "(cached) $ECHO_C" >&6
4219 else
4220   if test -n "$CC"; then
4221   ac_cv_prog_CC="$CC" # Let the user override the test.
4222 else
4223   ac_prog_rejected=no
4224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4225 for as_dir in $PATH
4226 do
4227   IFS=$as_save_IFS
4228   test -z "$as_dir" && as_dir=.
4229   for ac_exec_ext in '' $ac_executable_extensions; do
4230   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4231     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4232        ac_prog_rejected=yes
4233        continue
4234      fi
4235     ac_cv_prog_CC="cc"
4236     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4237     break 2
4238   fi
4239 done
4240 done
4241
4242 if test $ac_prog_rejected = yes; then
4243   # We found a bogon in the path, so make sure we never use it.
4244   set dummy $ac_cv_prog_CC
4245   shift
4246   if test $# != 0; then
4247     # We chose a different compiler from the bogus one.
4248     # However, it has the same basename, so the bogon will be chosen
4249     # first if we set CC to just the basename; use the full file name.
4250     shift
4251     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4252   fi
4253 fi
4254 fi
4255 fi
4256 CC=$ac_cv_prog_CC
4257 if test -n "$CC"; then
4258   echo "$as_me:$LINENO: result: $CC" >&5
4259 echo "${ECHO_T}$CC" >&6
4260 else
4261   echo "$as_me:$LINENO: result: no" >&5
4262 echo "${ECHO_T}no" >&6
4263 fi
4264
4265 fi
4266 if test -z "$CC"; then
4267   if test -n "$ac_tool_prefix"; then
4268   for ac_prog in cl
4269   do
4270     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4271 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4272 echo "$as_me:$LINENO: checking for $ac_word" >&5
4273 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4274 if test "${ac_cv_prog_CC+set}" = set; then
4275   echo $ECHO_N "(cached) $ECHO_C" >&6
4276 else
4277   if test -n "$CC"; then
4278   ac_cv_prog_CC="$CC" # Let the user override the test.
4279 else
4280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4281 for as_dir in $PATH
4282 do
4283   IFS=$as_save_IFS
4284   test -z "$as_dir" && as_dir=.
4285   for ac_exec_ext in '' $ac_executable_extensions; do
4286   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4287     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4288     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4289     break 2
4290   fi
4291 done
4292 done
4293
4294 fi
4295 fi
4296 CC=$ac_cv_prog_CC
4297 if test -n "$CC"; then
4298   echo "$as_me:$LINENO: result: $CC" >&5
4299 echo "${ECHO_T}$CC" >&6
4300 else
4301   echo "$as_me:$LINENO: result: no" >&5
4302 echo "${ECHO_T}no" >&6
4303 fi
4304
4305     test -n "$CC" && break
4306   done
4307 fi
4308 if test -z "$CC"; then
4309   ac_ct_CC=$CC
4310   for ac_prog in cl
4311 do
4312   # Extract the first word of "$ac_prog", so it can be a program name with args.
4313 set dummy $ac_prog; ac_word=$2
4314 echo "$as_me:$LINENO: checking for $ac_word" >&5
4315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4316 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4317   echo $ECHO_N "(cached) $ECHO_C" >&6
4318 else
4319   if test -n "$ac_ct_CC"; then
4320   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4321 else
4322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4323 for as_dir in $PATH
4324 do
4325   IFS=$as_save_IFS
4326   test -z "$as_dir" && as_dir=.
4327   for ac_exec_ext in '' $ac_executable_extensions; do
4328   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4329     ac_cv_prog_ac_ct_CC="$ac_prog"
4330     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4331     break 2
4332   fi
4333 done
4334 done
4335
4336 fi
4337 fi
4338 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4339 if test -n "$ac_ct_CC"; then
4340   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4341 echo "${ECHO_T}$ac_ct_CC" >&6
4342 else
4343   echo "$as_me:$LINENO: result: no" >&5
4344 echo "${ECHO_T}no" >&6
4345 fi
4346
4347   test -n "$ac_ct_CC" && break
4348 done
4349
4350   CC=$ac_ct_CC
4351 fi
4352
4353 fi
4354
4355
4356 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4357 See \`config.log' for more details." >&5
4358 echo "$as_me: error: no acceptable C compiler found in \$PATH
4359 See \`config.log' for more details." >&2;}
4360    { (exit 1); exit 1; }; }
4361
4362 # Provide some information about the compiler.
4363 echo "$as_me:$LINENO:" \
4364      "checking for C compiler version" >&5
4365 ac_compiler=`set X $ac_compile; echo $2`
4366 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4367   (eval $ac_compiler --version </dev/null >&5) 2>&5
4368   ac_status=$?
4369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4370   (exit $ac_status); }
4371 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4372   (eval $ac_compiler -v </dev/null >&5) 2>&5
4373   ac_status=$?
4374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4375   (exit $ac_status); }
4376 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4377   (eval $ac_compiler -V </dev/null >&5) 2>&5
4378   ac_status=$?
4379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4380   (exit $ac_status); }
4381
4382 cat >conftest.$ac_ext <<_ACEOF
4383 /* confdefs.h.  */
4384 _ACEOF
4385 cat confdefs.h >>conftest.$ac_ext
4386 cat >>conftest.$ac_ext <<_ACEOF
4387 /* end confdefs.h.  */
4388
4389 int
4390 main ()
4391 {
4392
4393   ;
4394   return 0;
4395 }
4396 _ACEOF
4397 ac_clean_files_save=$ac_clean_files
4398 ac_clean_files="$ac_clean_files a.out a.exe b.out"
4399 # Try to create an executable without -o first, disregard a.out.
4400 # It will help us diagnose broken compilers, and finding out an intuition
4401 # of exeext.
4402 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4403 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
4404 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4405 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
4406   (eval $ac_link_default) 2>&5
4407   ac_status=$?
4408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4409   (exit $ac_status); }; then
4410   # Find the output, starting from the most likely.  This scheme is
4411 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
4412 # resort.
4413
4414 # Be careful to initialize this variable, since it used to be cached.
4415 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
4416 ac_cv_exeext=
4417 # b.out is created by i960 compilers.
4418 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
4419 do
4420   test -f "$ac_file" || continue
4421   case $ac_file in
4422     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
4423         ;;
4424     conftest.$ac_ext )
4425         # This is the source file.
4426         ;;
4427     [ab].out )
4428         # We found the default executable, but exeext='' is most
4429         # certainly right.
4430         break;;
4431     *.* )
4432         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4433         # FIXME: I believe we export ac_cv_exeext for Libtool,
4434         # but it would be cool to find out if it's true.  Does anybody
4435         # maintain Libtool? --akim.
4436         export ac_cv_exeext
4437         break;;
4438     * )
4439         break;;
4440   esac
4441 done
4442 else
4443   echo "$as_me: failed program was:" >&5
4444 sed 's/^/| /' conftest.$ac_ext >&5
4445
4446 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
4447 See \`config.log' for more details." >&5
4448 echo "$as_me: error: C compiler cannot create executables
4449 See \`config.log' for more details." >&2;}
4450    { (exit 77); exit 77; }; }
4451 fi
4452
4453 ac_exeext=$ac_cv_exeext
4454 echo "$as_me:$LINENO: result: $ac_file" >&5
4455 echo "${ECHO_T}$ac_file" >&6
4456
4457 # Check the compiler produces executables we can run.  If not, either
4458 # the compiler is broken, or we cross compile.
4459 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4460 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
4461 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4462 # If not cross compiling, check that we can run a simple program.
4463 if test "$cross_compiling" != yes; then
4464   if { ac_try='./$ac_file'
4465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4466   (eval $ac_try) 2>&5
4467   ac_status=$?
4468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4469   (exit $ac_status); }; }; then
4470     cross_compiling=no
4471   else
4472     if test "$cross_compiling" = maybe; then
4473         cross_compiling=yes
4474     else
4475         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
4476 If you meant to cross compile, use \`--host'.
4477 See \`config.log' for more details." >&5
4478 echo "$as_me: error: cannot run C compiled programs.
4479 If you meant to cross compile, use \`--host'.
4480 See \`config.log' for more details." >&2;}
4481    { (exit 1); exit 1; }; }
4482     fi
4483   fi
4484 fi
4485 echo "$as_me:$LINENO: result: yes" >&5
4486 echo "${ECHO_T}yes" >&6
4487
4488 rm -f a.out a.exe conftest$ac_cv_exeext b.out
4489 ac_clean_files=$ac_clean_files_save
4490 # Check the compiler produces executables we can run.  If not, either
4491 # the compiler is broken, or we cross compile.
4492 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4493 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
4494 echo "$as_me:$LINENO: result: $cross_compiling" >&5
4495 echo "${ECHO_T}$cross_compiling" >&6
4496
4497 echo "$as_me:$LINENO: checking for suffix of executables" >&5
4498 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
4499 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4500   (eval $ac_link) 2>&5
4501   ac_status=$?
4502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4503   (exit $ac_status); }; then
4504   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4505 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4506 # work properly (i.e., refer to `conftest.exe'), while it won't with
4507 # `rm'.
4508 for ac_file in conftest.exe conftest conftest.*; do
4509   test -f "$ac_file" || continue
4510   case $ac_file in
4511     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
4512     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4513           export ac_cv_exeext
4514           break;;
4515     * ) break;;
4516   esac
4517 done
4518 else
4519   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4520 See \`config.log' for more details." >&5
4521 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4522 See \`config.log' for more details." >&2;}
4523    { (exit 1); exit 1; }; }
4524 fi
4525
4526 rm -f conftest$ac_cv_exeext
4527 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
4528 echo "${ECHO_T}$ac_cv_exeext" >&6
4529
4530 rm -f conftest.$ac_ext
4531 EXEEXT=$ac_cv_exeext
4532 ac_exeext=$EXEEXT
4533 echo "$as_me:$LINENO: checking for suffix of object files" >&5
4534 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
4535 if test "${ac_cv_objext+set}" = set; then
4536   echo $ECHO_N "(cached) $ECHO_C" >&6
4537 else
4538   cat >conftest.$ac_ext <<_ACEOF
4539 /* confdefs.h.  */
4540 _ACEOF
4541 cat confdefs.h >>conftest.$ac_ext
4542 cat >>conftest.$ac_ext <<_ACEOF
4543 /* end confdefs.h.  */
4544
4545 int
4546 main ()
4547 {
4548
4549   ;
4550   return 0;
4551 }
4552 _ACEOF
4553 rm -f conftest.o conftest.obj
4554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4555   (eval $ac_compile) 2>&5
4556   ac_status=$?
4557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4558   (exit $ac_status); }; then
4559   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
4560   case $ac_file in
4561     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
4562     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4563        break;;
4564   esac
4565 done
4566 else
4567   echo "$as_me: failed program was:" >&5
4568 sed 's/^/| /' conftest.$ac_ext >&5
4569
4570 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
4571 See \`config.log' for more details." >&5
4572 echo "$as_me: error: cannot compute suffix of object files: cannot compile
4573 See \`config.log' for more details." >&2;}
4574    { (exit 1); exit 1; }; }
4575 fi
4576
4577 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4578 fi
4579 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
4580 echo "${ECHO_T}$ac_cv_objext" >&6
4581 OBJEXT=$ac_cv_objext
4582 ac_objext=$OBJEXT
4583 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4584 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4585 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4586   echo $ECHO_N "(cached) $ECHO_C" >&6
4587 else
4588   cat >conftest.$ac_ext <<_ACEOF
4589 /* confdefs.h.  */
4590 _ACEOF
4591 cat confdefs.h >>conftest.$ac_ext
4592 cat >>conftest.$ac_ext <<_ACEOF
4593 /* end confdefs.h.  */
4594
4595 int
4596 main ()
4597 {
4598 #ifndef __GNUC__
4599        choke me
4600 #endif
4601
4602   ;
4603   return 0;
4604 }
4605 _ACEOF
4606 rm -f conftest.$ac_objext
4607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4608   (eval $ac_compile) 2>conftest.er1
4609   ac_status=$?
4610   grep -v '^ *+' conftest.er1 >conftest.err
4611   rm -f conftest.er1
4612   cat conftest.err >&5
4613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4614   (exit $ac_status); } &&
4615          { ac_try='test -z "$ac_c_werror_flag"
4616                          || test ! -s conftest.err'
4617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4618   (eval $ac_try) 2>&5
4619   ac_status=$?
4620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4621   (exit $ac_status); }; } &&
4622          { ac_try='test -s conftest.$ac_objext'
4623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4624   (eval $ac_try) 2>&5
4625   ac_status=$?
4626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4627   (exit $ac_status); }; }; then
4628   ac_compiler_gnu=yes
4629 else
4630   echo "$as_me: failed program was:" >&5
4631 sed 's/^/| /' conftest.$ac_ext >&5
4632
4633 ac_compiler_gnu=no
4634 fi
4635 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4636 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4637
4638 fi
4639 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4640 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4641 GCC=`test $ac_compiler_gnu = yes && echo yes`
4642 ac_test_CFLAGS=${CFLAGS+set}
4643 ac_save_CFLAGS=$CFLAGS
4644 CFLAGS="-g"
4645 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4646 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4647 if test "${ac_cv_prog_cc_g+set}" = set; then
4648   echo $ECHO_N "(cached) $ECHO_C" >&6
4649 else
4650   cat >conftest.$ac_ext <<_ACEOF
4651 /* confdefs.h.  */
4652 _ACEOF
4653 cat confdefs.h >>conftest.$ac_ext
4654 cat >>conftest.$ac_ext <<_ACEOF
4655 /* end confdefs.h.  */
4656
4657 int
4658 main ()
4659 {
4660
4661   ;
4662   return 0;
4663 }
4664 _ACEOF
4665 rm -f conftest.$ac_objext
4666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4667   (eval $ac_compile) 2>conftest.er1
4668   ac_status=$?
4669   grep -v '^ *+' conftest.er1 >conftest.err
4670   rm -f conftest.er1
4671   cat conftest.err >&5
4672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4673   (exit $ac_status); } &&
4674          { ac_try='test -z "$ac_c_werror_flag"
4675                          || test ! -s conftest.err'
4676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4677   (eval $ac_try) 2>&5
4678   ac_status=$?
4679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4680   (exit $ac_status); }; } &&
4681          { ac_try='test -s conftest.$ac_objext'
4682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4683   (eval $ac_try) 2>&5
4684   ac_status=$?
4685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4686   (exit $ac_status); }; }; then
4687   ac_cv_prog_cc_g=yes
4688 else
4689   echo "$as_me: failed program was:" >&5
4690 sed 's/^/| /' conftest.$ac_ext >&5
4691
4692 ac_cv_prog_cc_g=no
4693 fi
4694 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4695 fi
4696 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4697 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4698 if test "$ac_test_CFLAGS" = set; then
4699   CFLAGS=$ac_save_CFLAGS
4700 elif test $ac_cv_prog_cc_g = yes; then
4701   if test "$GCC" = yes; then
4702     CFLAGS="-g -O2"
4703   else
4704     CFLAGS="-g"
4705   fi
4706 else
4707   if test "$GCC" = yes; then
4708     CFLAGS="-O2"
4709   else
4710     CFLAGS=
4711   fi
4712 fi
4713 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4714 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4715 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4716   echo $ECHO_N "(cached) $ECHO_C" >&6
4717 else
4718   ac_cv_prog_cc_stdc=no
4719 ac_save_CC=$CC
4720 cat >conftest.$ac_ext <<_ACEOF
4721 /* confdefs.h.  */
4722 _ACEOF
4723 cat confdefs.h >>conftest.$ac_ext
4724 cat >>conftest.$ac_ext <<_ACEOF
4725 /* end confdefs.h.  */
4726 #include <stdarg.h>
4727 #include <stdio.h>
4728 #include <sys/types.h>
4729 #include <sys/stat.h>
4730 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4731 struct buf { int x; };
4732 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4733 static char *e (p, i)
4734      char **p;
4735      int i;
4736 {
4737   return p[i];
4738 }
4739 static char *f (char * (*g) (char **, int), char **p, ...)
4740 {
4741   char *s;
4742   va_list v;
4743   va_start (v,p);
4744   s = g (p, va_arg (v,int));
4745   va_end (v);
4746   return s;
4747 }
4748
4749 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4750    function prototypes and stuff, but not '\xHH' hex character constants.
4751    These don't provoke an error unfortunately, instead are silently treated
4752    as 'x'.  The following induces an error, until -std1 is added to get
4753    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4754    array size at least.  It's necessary to write '\x00'==0 to get something
4755    that's true only with -std1.  */
4756 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4757
4758 int test (int i, double x);
4759 struct s1 {int (*f) (int a);};
4760 struct s2 {int (*f) (double a);};
4761 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4762 int argc;
4763 char **argv;
4764 int
4765 main ()
4766 {
4767 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4768   ;
4769   return 0;
4770 }
4771 _ACEOF
4772 # Don't try gcc -ansi; that turns off useful extensions and
4773 # breaks some systems' header files.
4774 # AIX                   -qlanglvl=ansi
4775 # Ultrix and OSF/1      -std1
4776 # HP-UX 10.20 and later -Ae
4777 # HP-UX older versions  -Aa -D_HPUX_SOURCE
4778 # SVR4                  -Xc -D__EXTENSIONS__
4779 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4780 do
4781   CC="$ac_save_CC $ac_arg"
4782   rm -f conftest.$ac_objext
4783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4784   (eval $ac_compile) 2>conftest.er1
4785   ac_status=$?
4786   grep -v '^ *+' conftest.er1 >conftest.err
4787   rm -f conftest.er1
4788   cat conftest.err >&5
4789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4790   (exit $ac_status); } &&
4791          { ac_try='test -z "$ac_c_werror_flag"
4792                          || test ! -s conftest.err'
4793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4794   (eval $ac_try) 2>&5
4795   ac_status=$?
4796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4797   (exit $ac_status); }; } &&
4798          { ac_try='test -s conftest.$ac_objext'
4799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4800   (eval $ac_try) 2>&5
4801   ac_status=$?
4802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4803   (exit $ac_status); }; }; then
4804   ac_cv_prog_cc_stdc=$ac_arg
4805 break
4806 else
4807   echo "$as_me: failed program was:" >&5
4808 sed 's/^/| /' conftest.$ac_ext >&5
4809
4810 fi
4811 rm -f conftest.err conftest.$ac_objext
4812 done
4813 rm -f conftest.$ac_ext conftest.$ac_objext
4814 CC=$ac_save_CC
4815
4816 fi
4817
4818 case "x$ac_cv_prog_cc_stdc" in
4819   x|xno)
4820     echo "$as_me:$LINENO: result: none needed" >&5
4821 echo "${ECHO_T}none needed" >&6 ;;
4822   *)
4823     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4824 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4825     CC="$CC $ac_cv_prog_cc_stdc" ;;
4826 esac
4827
4828 # Some people use a C++ compiler to compile C.  Since we use `exit',
4829 # in C++ we need to declare it.  In case someone uses the same compiler
4830 # for both compiling C and C++ we need to have the C++ compiler decide
4831 # the declaration of exit, since it's the most demanding environment.
4832 cat >conftest.$ac_ext <<_ACEOF
4833 #ifndef __cplusplus
4834   choke me
4835 #endif
4836 _ACEOF
4837 rm -f conftest.$ac_objext
4838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4839   (eval $ac_compile) 2>conftest.er1
4840   ac_status=$?
4841   grep -v '^ *+' conftest.er1 >conftest.err
4842   rm -f conftest.er1
4843   cat conftest.err >&5
4844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4845   (exit $ac_status); } &&
4846          { ac_try='test -z "$ac_c_werror_flag"
4847                          || test ! -s conftest.err'
4848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4849   (eval $ac_try) 2>&5
4850   ac_status=$?
4851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4852   (exit $ac_status); }; } &&
4853          { ac_try='test -s conftest.$ac_objext'
4854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4855   (eval $ac_try) 2>&5
4856   ac_status=$?
4857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4858   (exit $ac_status); }; }; then
4859   for ac_declaration in \
4860    '' \
4861    'extern "C" void std::exit (int) throw (); using std::exit;' \
4862    'extern "C" void std::exit (int); using std::exit;' \
4863    'extern "C" void exit (int) throw ();' \
4864    'extern "C" void exit (int);' \
4865    'void exit (int);'
4866 do
4867   cat >conftest.$ac_ext <<_ACEOF
4868 /* confdefs.h.  */
4869 _ACEOF
4870 cat confdefs.h >>conftest.$ac_ext
4871 cat >>conftest.$ac_ext <<_ACEOF
4872 /* end confdefs.h.  */
4873 $ac_declaration
4874 #include <stdlib.h>
4875 int
4876 main ()
4877 {
4878 exit (42);
4879   ;
4880   return 0;
4881 }
4882 _ACEOF
4883 rm -f conftest.$ac_objext
4884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4885   (eval $ac_compile) 2>conftest.er1
4886   ac_status=$?
4887   grep -v '^ *+' conftest.er1 >conftest.err
4888   rm -f conftest.er1
4889   cat conftest.err >&5
4890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4891   (exit $ac_status); } &&
4892          { ac_try='test -z "$ac_c_werror_flag"
4893                          || test ! -s conftest.err'
4894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4895   (eval $ac_try) 2>&5
4896   ac_status=$?
4897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4898   (exit $ac_status); }; } &&
4899          { ac_try='test -s conftest.$ac_objext'
4900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4901   (eval $ac_try) 2>&5
4902   ac_status=$?
4903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4904   (exit $ac_status); }; }; then
4905   :
4906 else
4907   echo "$as_me: failed program was:" >&5
4908 sed 's/^/| /' conftest.$ac_ext >&5
4909
4910 continue
4911 fi
4912 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4913   cat >conftest.$ac_ext <<_ACEOF
4914 /* confdefs.h.  */
4915 _ACEOF
4916 cat confdefs.h >>conftest.$ac_ext
4917 cat >>conftest.$ac_ext <<_ACEOF
4918 /* end confdefs.h.  */
4919 $ac_declaration
4920 int
4921 main ()
4922 {
4923 exit (42);
4924   ;
4925   return 0;
4926 }
4927 _ACEOF
4928 rm -f conftest.$ac_objext
4929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4930   (eval $ac_compile) 2>conftest.er1
4931   ac_status=$?
4932   grep -v '^ *+' conftest.er1 >conftest.err
4933   rm -f conftest.er1
4934   cat conftest.err >&5
4935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4936   (exit $ac_status); } &&
4937          { ac_try='test -z "$ac_c_werror_flag"
4938                          || test ! -s conftest.err'
4939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4940   (eval $ac_try) 2>&5
4941   ac_status=$?
4942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4943   (exit $ac_status); }; } &&
4944          { ac_try='test -s conftest.$ac_objext'
4945   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4946   (eval $ac_try) 2>&5
4947   ac_status=$?
4948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4949   (exit $ac_status); }; }; then
4950   break
4951 else
4952   echo "$as_me: failed program was:" >&5
4953 sed 's/^/| /' conftest.$ac_ext >&5
4954
4955 fi
4956 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4957 done
4958 rm -f conftest*
4959 if test -n "$ac_declaration"; then
4960   echo '#ifdef __cplusplus' >>confdefs.h
4961   echo $ac_declaration      >>confdefs.h
4962   echo '#endif'             >>confdefs.h
4963 fi
4964
4965 else
4966   echo "$as_me: failed program was:" >&5
4967 sed 's/^/| /' conftest.$ac_ext >&5
4968
4969 fi
4970 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4971 ac_ext=c
4972 ac_cpp='$CPP $CPPFLAGS'
4973 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4974 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4975 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4976
4977 depcc="$CC"   am_compiler_list=
4978
4979 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4980 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4981 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4982   echo $ECHO_N "(cached) $ECHO_C" >&6
4983 else
4984   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4985   # We make a subdir and do the tests there.  Otherwise we can end up
4986   # making bogus files that we don't know about and never remove.  For
4987   # instance it was reported that on HP-UX the gcc test will end up
4988   # making a dummy file named `D' -- because `-MD' means `put the output
4989   # in D'.
4990   mkdir conftest.dir
4991   # Copy depcomp to subdir because otherwise we won't find it if we're
4992   # using a relative directory.
4993   cp "$am_depcomp" conftest.dir
4994   cd conftest.dir
4995   # We will build objects and dependencies in a subdirectory because
4996   # it helps to detect inapplicable dependency modes.  For instance
4997   # both Tru64's cc and ICC support -MD to output dependencies as a
4998   # side effect of compilation, but ICC will put the dependencies in
4999   # the current directory while Tru64 will put them in the object
5000   # directory.
5001   mkdir sub
5002
5003   am_cv_CC_dependencies_compiler_type=none
5004   if test "$am_compiler_list" = ""; then
5005      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5006   fi
5007   for depmode in $am_compiler_list; do
5008     # Setup a source with many dependencies, because some compilers
5009     # like to wrap large dependency lists on column 80 (with \), and
5010     # we should not choose a depcomp mode which is confused by this.
5011     #
5012     # We need to recreate these files for each test, as the compiler may
5013     # overwrite some of them when testing with obscure command lines.
5014     # This happens at least with the AIX C compiler.
5015     : > sub/conftest.c
5016     for i in 1 2 3 4 5 6; do
5017       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5018       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5019       # Solaris 8's {/usr,}/bin/sh.
5020       touch sub/conftst$i.h
5021     done
5022     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5023
5024     case $depmode in
5025     nosideeffect)
5026       # after this tag, mechanisms are not by side-effect, so they'll
5027       # only be used when explicitly requested
5028       if test "x$enable_dependency_tracking" = xyes; then
5029         continue
5030       else
5031         break
5032       fi
5033       ;;
5034     none) break ;;
5035     esac
5036     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5037     # mode.  It turns out that the SunPro C++ compiler does not properly
5038     # handle `-M -o', and we need to detect this.
5039     if depmode=$depmode \
5040        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5041        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5042        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5043          >/dev/null 2>conftest.err &&
5044        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5045        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5046        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5047       # icc doesn't choke on unknown options, it will just issue warnings
5048       # or remarks (even with -Werror).  So we grep stderr for any message
5049       # that says an option was ignored or not supported.
5050       # When given -MP, icc 7.0 and 7.1 complain thusly:
5051       #   icc: Command line warning: ignoring option '-M'; no argument required
5052       # The diagnosis changed in icc 8.0:
5053       #   icc: Command line remark: option '-MP' not supported
5054       if (grep 'ignoring option' conftest.err ||
5055           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5056         am_cv_CC_dependencies_compiler_type=$depmode
5057         break
5058       fi
5059     fi
5060   done
5061
5062   cd ..
5063   rm -rf conftest.dir
5064 else
5065   am_cv_CC_dependencies_compiler_type=none
5066 fi
5067
5068 fi
5069 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5070 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5071 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5072
5073
5074
5075 if
5076   test "x$enable_dependency_tracking" != xno \
5077   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5078   am__fastdepCC_TRUE=
5079   am__fastdepCC_FALSE='#'
5080 else
5081   am__fastdepCC_TRUE='#'
5082   am__fastdepCC_FALSE=
5083 fi
5084
5085
5086 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5087 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5088 if test "${lt_cv_path_SED+set}" = set; then
5089   echo $ECHO_N "(cached) $ECHO_C" >&6
5090 else
5091   # Loop through the user's path and test for sed and gsed.
5092 # Then use that list of sed's as ones to test for truncation.
5093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5094 for as_dir in $PATH
5095 do
5096   IFS=$as_save_IFS
5097   test -z "$as_dir" && as_dir=.
5098   for lt_ac_prog in sed gsed; do
5099     for ac_exec_ext in '' $ac_executable_extensions; do
5100       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5101         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5102       fi
5103     done
5104   done
5105 done
5106 lt_ac_max=0
5107 lt_ac_count=0
5108 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5109 # along with /bin/sed that truncates output.
5110 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5111   test ! -f $lt_ac_sed && continue
5112   cat /dev/null > conftest.in
5113   lt_ac_count=0
5114   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5115   # Check for GNU sed and select it if it is found.
5116   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5117     lt_cv_path_SED=$lt_ac_sed
5118     break
5119   fi
5120   while true; do
5121     cat conftest.in conftest.in >conftest.tmp
5122     mv conftest.tmp conftest.in
5123     cp conftest.in conftest.nl
5124     echo >>conftest.nl
5125     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5126     cmp -s conftest.out conftest.nl || break
5127     # 10000 chars as input seems more than enough
5128     test $lt_ac_count -gt 10 && break
5129     lt_ac_count=`expr $lt_ac_count + 1`
5130     if test $lt_ac_count -gt $lt_ac_max; then
5131       lt_ac_max=$lt_ac_count
5132       lt_cv_path_SED=$lt_ac_sed
5133     fi
5134   done
5135 done
5136
5137 fi
5138
5139 SED=$lt_cv_path_SED
5140 echo "$as_me:$LINENO: result: $SED" >&5
5141 echo "${ECHO_T}$SED" >&6
5142
5143 echo "$as_me:$LINENO: checking for egrep" >&5
5144 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5145 if test "${ac_cv_prog_egrep+set}" = set; then
5146   echo $ECHO_N "(cached) $ECHO_C" >&6
5147 else
5148   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5149     then ac_cv_prog_egrep='grep -E'
5150     else ac_cv_prog_egrep='egrep'
5151     fi
5152 fi
5153 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5154 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5155  EGREP=$ac_cv_prog_egrep
5156
5157
5158
5159 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5160 if test "${with_gnu_ld+set}" = set; then
5161   withval="$with_gnu_ld"
5162   test "$withval" = no || with_gnu_ld=yes
5163 else
5164   with_gnu_ld=no
5165 fi;
5166 ac_prog=ld
5167 if test "$GCC" = yes; then
5168   # Check if gcc -print-prog-name=ld gives a path.
5169   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5170 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5171   case $host in
5172   *-*-mingw*)
5173     # gcc leaves a trailing carriage return which upsets mingw
5174     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5175   *)
5176     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5177   esac
5178   case $ac_prog in
5179     # Accept absolute paths.
5180     [\\/]* | ?:[\\/]*)
5181       re_direlt='/[^/][^/]*/\.\./'
5182       # Canonicalize the pathname of ld
5183       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5184       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5185         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5186       done
5187       test -z "$LD" && LD="$ac_prog"
5188       ;;
5189   "")
5190     # If it fails, then pretend we aren't using GCC.
5191     ac_prog=ld
5192     ;;
5193   *)
5194     # If it is relative, then search for the first ld in PATH.
5195     with_gnu_ld=unknown
5196     ;;
5197   esac
5198 elif test "$with_gnu_ld" = yes; then
5199   echo "$as_me:$LINENO: checking for GNU ld" >&5
5200 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5201 else
5202   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5203 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5204 fi
5205 if test "${lt_cv_path_LD+set}" = set; then
5206   echo $ECHO_N "(cached) $ECHO_C" >&6
5207 else
5208   if test -z "$LD"; then
5209   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5210   for ac_dir in $PATH; do
5211     IFS="$lt_save_ifs"
5212     test -z "$ac_dir" && ac_dir=.
5213     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5214       lt_cv_path_LD="$ac_dir/$ac_prog"
5215       # Check to see if the program is GNU ld.  I'd rather use --version,
5216       # but apparently some GNU ld's only accept -v.
5217       # Break only if it was the GNU/non-GNU ld that we prefer.
5218       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5219       *GNU* | *'with BFD'*)
5220         test "$with_gnu_ld" != no && break
5221         ;;
5222       *)
5223         test "$with_gnu_ld" != yes && break
5224         ;;
5225       esac
5226     fi
5227   done
5228   IFS="$lt_save_ifs"
5229 else
5230   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5231 fi
5232 fi
5233
5234 LD="$lt_cv_path_LD"
5235 if test -n "$LD"; then
5236   echo "$as_me:$LINENO: result: $LD" >&5
5237 echo "${ECHO_T}$LD" >&6
5238 else
5239   echo "$as_me:$LINENO: result: no" >&5
5240 echo "${ECHO_T}no" >&6
5241 fi
5242 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5243 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5244    { (exit 1); exit 1; }; }
5245 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5246 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5247 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5248   echo $ECHO_N "(cached) $ECHO_C" >&6
5249 else
5250   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5251 case `$LD -v 2>&1 </dev/null` in
5252 *GNU* | *'with BFD'*)
5253   lt_cv_prog_gnu_ld=yes
5254   ;;
5255 *)
5256   lt_cv_prog_gnu_ld=no
5257   ;;
5258 esac
5259 fi
5260 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5261 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5262 with_gnu_ld=$lt_cv_prog_gnu_ld
5263
5264
5265 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5266 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5267 if test "${lt_cv_ld_reload_flag+set}" = set; then
5268   echo $ECHO_N "(cached) $ECHO_C" >&6
5269 else
5270   lt_cv_ld_reload_flag='-r'
5271 fi
5272 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5273 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5274 reload_flag=$lt_cv_ld_reload_flag
5275 case $reload_flag in
5276 "" | " "*) ;;
5277 *) reload_flag=" $reload_flag" ;;
5278 esac
5279 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5280 case $host_os in
5281   darwin*)
5282     if test "$GCC" = yes; then
5283       reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
5284     else
5285       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5286     fi
5287     ;;
5288 esac
5289
5290 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5291 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5292 if test "${lt_cv_path_NM+set}" = set; then
5293   echo $ECHO_N "(cached) $ECHO_C" >&6
5294 else
5295   if test -n "$NM"; then
5296   # Let the user override the test.
5297   lt_cv_path_NM="$NM"
5298 else
5299   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5300   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5301     IFS="$lt_save_ifs"
5302     test -z "$ac_dir" && ac_dir=.
5303     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
5304     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5305       # Check to see if the nm accepts a BSD-compat flag.
5306       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5307       #   nm: unknown option "B" ignored
5308       # Tru64's nm complains that /dev/null is an invalid object file
5309       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5310       */dev/null* | *'Invalid file or object type'*)
5311         lt_cv_path_NM="$tmp_nm -B"
5312         break
5313         ;;
5314       *)
5315         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5316         */dev/null*)
5317           lt_cv_path_NM="$tmp_nm -p"
5318           break
5319           ;;
5320         *)
5321           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5322           continue # so that we can try to find one that supports BSD flags
5323           ;;
5324         esac
5325       esac
5326     fi
5327   done
5328   IFS="$lt_save_ifs"
5329   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5330 fi
5331 fi
5332 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5333 echo "${ECHO_T}$lt_cv_path_NM" >&6
5334 NM="$lt_cv_path_NM"
5335
5336 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5337 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5338 LN_S=$as_ln_s
5339 if test "$LN_S" = "ln -s"; then
5340   echo "$as_me:$LINENO: result: yes" >&5
5341 echo "${ECHO_T}yes" >&6
5342 else
5343   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5344 echo "${ECHO_T}no, using $LN_S" >&6
5345 fi
5346
5347 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5348 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5349 if test "${lt_cv_deplibs_check_method+set}" = set; then
5350   echo $ECHO_N "(cached) $ECHO_C" >&6
5351 else
5352   lt_cv_file_magic_cmd='$MAGIC_CMD'
5353 lt_cv_file_magic_test_file=
5354 lt_cv_deplibs_check_method='unknown'
5355 # Need to set the preceding variable on all platforms that support
5356 # interlibrary dependencies.
5357 # 'none' -- dependencies not supported.
5358 # `unknown' -- same as none, but documents that we really don't know.
5359 # 'pass_all' -- all dependencies passed with no checks.
5360 # 'test_compile' -- check by making test program.
5361 # 'file_magic [[regex]]' -- check by looking for files in library path
5362 # which responds to the $file_magic_cmd with a given extended regex.
5363 # If you have `file' or equivalent on your system and you're not sure
5364 # whether `pass_all' will *always* work, you probably want this one.
5365
5366 case $host_os in
5367 aix4* | aix5*)
5368   lt_cv_deplibs_check_method=pass_all
5369   ;;
5370
5371 beos*)
5372   lt_cv_deplibs_check_method=pass_all
5373   ;;
5374
5375 bsdi[45]*)
5376   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5377   lt_cv_file_magic_cmd='/usr/bin/file -L'
5378   lt_cv_file_magic_test_file=/shlib/libc.so
5379   ;;
5380
5381 cygwin*)
5382   # func_win32_libid is a shell function defined in ltmain.sh
5383   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5384   lt_cv_file_magic_cmd='func_win32_libid'
5385   ;;
5386
5387 mingw* | pw32*)
5388   # Base MSYS/MinGW do not provide the 'file' command needed by
5389   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5390   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5391   lt_cv_file_magic_cmd='$OBJDUMP -f'
5392   ;;
5393
5394 darwin* | rhapsody*)
5395   lt_cv_deplibs_check_method=pass_all
5396   ;;
5397
5398 freebsd* | kfreebsd*-gnu | dragonfly*)
5399   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5400     case $host_cpu in
5401     i*86 )
5402       # Not sure whether the presence of OpenBSD here was a mistake.
5403       # Let's accept both of them until this is cleared up.
5404       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5405       lt_cv_file_magic_cmd=/usr/bin/file
5406       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5407       ;;
5408     esac
5409   else
5410     lt_cv_deplibs_check_method=pass_all
5411   fi
5412   ;;
5413
5414 gnu*)
5415   lt_cv_deplibs_check_method=pass_all
5416   ;;
5417
5418 hpux10.20* | hpux11*)
5419   lt_cv_file_magic_cmd=/usr/bin/file
5420   case "$host_cpu" in
5421   ia64*)
5422     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5423     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5424     ;;
5425   hppa*64*)
5426     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]'
5427     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5428     ;;
5429   *)
5430     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5431     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5432     ;;
5433   esac
5434   ;;
5435
5436 irix5* | irix6* | nonstopux*)
5437   case $LD in
5438   *-32|*"-32 ") libmagic=32-bit;;
5439   *-n32|*"-n32 ") libmagic=N32;;
5440   *-64|*"-64 ") libmagic=64-bit;;
5441   *) libmagic=never-match;;
5442   esac
5443   lt_cv_deplibs_check_method=pass_all
5444   ;;
5445
5446 # This must be Linux ELF.
5447 linux*)
5448   lt_cv_deplibs_check_method=pass_all
5449   ;;
5450
5451 netbsd*)
5452   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5453     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5454   else
5455     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5456   fi
5457   ;;
5458
5459 newos6*)
5460   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5461   lt_cv_file_magic_cmd=/usr/bin/file
5462   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5463   ;;
5464
5465 nto-qnx*)
5466   lt_cv_deplibs_check_method=unknown
5467   ;;
5468
5469 openbsd*)
5470   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5471     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5472   else
5473     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5474   fi
5475   ;;
5476
5477 osf3* | osf4* | osf5*)
5478   lt_cv_deplibs_check_method=pass_all
5479   ;;
5480
5481 sco3.2v5*)
5482   lt_cv_deplibs_check_method=pass_all
5483   ;;
5484
5485 solaris*)
5486   lt_cv_deplibs_check_method=pass_all
5487   ;;
5488
5489 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5490   case $host_vendor in
5491   motorola)
5492     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]'
5493     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5494     ;;
5495   ncr)
5496     lt_cv_deplibs_check_method=pass_all
5497     ;;
5498   sequent)
5499     lt_cv_file_magic_cmd='/bin/file'
5500     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5501     ;;
5502   sni)
5503     lt_cv_file_magic_cmd='/bin/file'
5504     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5505     lt_cv_file_magic_test_file=/lib/libc.so
5506     ;;
5507   siemens)
5508     lt_cv_deplibs_check_method=pass_all
5509     ;;
5510   esac
5511   ;;
5512
5513 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
5514   lt_cv_deplibs_check_method=pass_all
5515   ;;
5516 esac
5517
5518 fi
5519 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5520 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5521 file_magic_cmd=$lt_cv_file_magic_cmd
5522 deplibs_check_method=$lt_cv_deplibs_check_method
5523 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5524
5525
5526
5527
5528 # If no C compiler was specified, use CC.
5529 LTCC=${LTCC-"$CC"}
5530
5531 # Allow CC to be a program name with arguments.
5532 compiler=$CC
5533
5534
5535 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5536 if test "${enable_libtool_lock+set}" = set; then
5537   enableval="$enable_libtool_lock"
5538
5539 fi;
5540 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5541
5542 # Some flags need to be propagated to the compiler or linker for good
5543 # libtool support.
5544 case $host in
5545 ia64-*-hpux*)
5546   # Find out which ABI we are using.
5547   echo 'int i;' > conftest.$ac_ext
5548   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5549   (eval $ac_compile) 2>&5
5550   ac_status=$?
5551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5552   (exit $ac_status); }; then
5553     case `/usr/bin/file conftest.$ac_objext` in
5554     *ELF-32*)
5555       HPUX_IA64_MODE="32"
5556       ;;
5557     *ELF-64*)
5558       HPUX_IA64_MODE="64"
5559       ;;
5560     esac
5561   fi
5562   rm -rf conftest*
5563   ;;
5564 *-*-irix6*)
5565   # Find out which ABI we are using.
5566   echo '#line 5566 "configure"' > conftest.$ac_ext
5567   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5568   (eval $ac_compile) 2>&5
5569   ac_status=$?
5570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5571   (exit $ac_status); }; then
5572    if test "$lt_cv_prog_gnu_ld" = yes; then
5573     case `/usr/bin/file conftest.$ac_objext` in
5574     *32-bit*)
5575       LD="${LD-ld} -melf32bsmip"
5576       ;;
5577     *N32*)
5578       LD="${LD-ld} -melf32bmipn32"
5579       ;;
5580     *64-bit*)
5581       LD="${LD-ld} -melf64bmip"
5582       ;;
5583     esac
5584    else
5585     case `/usr/bin/file conftest.$ac_objext` in
5586     *32-bit*)
5587       LD="${LD-ld} -32"
5588       ;;
5589     *N32*)
5590       LD="${LD-ld} -n32"
5591       ;;
5592     *64-bit*)
5593       LD="${LD-ld} -64"
5594       ;;
5595     esac
5596    fi
5597   fi
5598   rm -rf conftest*
5599   ;;
5600
5601 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5602   # Find out which ABI we are using.
5603   echo 'int i;' > conftest.$ac_ext
5604   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5605   (eval $ac_compile) 2>&5
5606   ac_status=$?
5607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5608   (exit $ac_status); }; then
5609     case "`/usr/bin/file conftest.o`" in
5610     *32-bit*)
5611       case $host in
5612         x86_64-*linux*)
5613           LD="${LD-ld} -m elf_i386"
5614           ;;
5615         ppc64-*linux*|powerpc64-*linux*)
5616           LD="${LD-ld} -m elf32ppclinux"
5617           ;;
5618         s390x-*linux*)
5619           LD="${LD-ld} -m elf_s390"
5620           ;;
5621         sparc64-*linux*)
5622           LD="${LD-ld} -m elf32_sparc"
5623           ;;
5624       esac
5625       ;;
5626     *64-bit*)
5627       case $host in
5628         x86_64-*linux*)
5629           LD="${LD-ld} -m elf_x86_64"
5630           ;;
5631         ppc*-*linux*|powerpc*-*linux*)
5632           LD="${LD-ld} -m elf64ppc"
5633           ;;
5634         s390*-*linux*)
5635           LD="${LD-ld} -m elf64_s390"
5636           ;;
5637         sparc*-*linux*)
5638           LD="${LD-ld} -m elf64_sparc"
5639           ;;
5640       esac
5641       ;;
5642     esac
5643   fi
5644   rm -rf conftest*
5645   ;;
5646
5647 *-*-sco3.2v5*)
5648   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5649   SAVE_CFLAGS="$CFLAGS"
5650   CFLAGS="$CFLAGS -belf"
5651   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5652 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5653 if test "${lt_cv_cc_needs_belf+set}" = set; then
5654   echo $ECHO_N "(cached) $ECHO_C" >&6
5655 else
5656   ac_ext=c
5657 ac_cpp='$CPP $CPPFLAGS'
5658 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5659 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5660 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5661
5662      cat >conftest.$ac_ext <<_ACEOF
5663 /* confdefs.h.  */
5664 _ACEOF
5665 cat confdefs.h >>conftest.$ac_ext
5666 cat >>conftest.$ac_ext <<_ACEOF
5667 /* end confdefs.h.  */
5668
5669 int
5670 main ()
5671 {
5672
5673   ;
5674   return 0;
5675 }
5676 _ACEOF
5677 rm -f conftest.$ac_objext conftest$ac_exeext
5678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5679   (eval $ac_link) 2>conftest.er1
5680   ac_status=$?
5681   grep -v '^ *+' conftest.er1 >conftest.err
5682   rm -f conftest.er1
5683   cat conftest.err >&5
5684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5685   (exit $ac_status); } &&
5686          { ac_try='test -z "$ac_c_werror_flag"
5687                          || test ! -s conftest.err'
5688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5689   (eval $ac_try) 2>&5
5690   ac_status=$?
5691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5692   (exit $ac_status); }; } &&
5693          { ac_try='test -s conftest$ac_exeext'
5694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5695   (eval $ac_try) 2>&5
5696   ac_status=$?
5697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5698   (exit $ac_status); }; }; then
5699   lt_cv_cc_needs_belf=yes
5700 else
5701   echo "$as_me: failed program was:" >&5
5702 sed 's/^/| /' conftest.$ac_ext >&5
5703
5704 lt_cv_cc_needs_belf=no
5705 fi
5706 rm -f conftest.err conftest.$ac_objext \
5707       conftest$ac_exeext conftest.$ac_ext
5708      ac_ext=c
5709 ac_cpp='$CPP $CPPFLAGS'
5710 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5711 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5712 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5713
5714 fi
5715 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5716 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5717   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5718     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5719     CFLAGS="$SAVE_CFLAGS"
5720   fi
5721   ;;
5722 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
5723   if test -n "$ac_tool_prefix"; then
5724   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5725 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5726 echo "$as_me:$LINENO: checking for $ac_word" >&5
5727 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5728 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
5729   echo $ECHO_N "(cached) $ECHO_C" >&6
5730 else
5731   if test -n "$DLLTOOL"; then
5732   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5733 else
5734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5735 for as_dir in $PATH
5736 do
5737   IFS=$as_save_IFS
5738   test -z "$as_dir" && as_dir=.
5739   for ac_exec_ext in '' $ac_executable_extensions; do
5740   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5741     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5742     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5743     break 2
5744   fi
5745 done
5746 done
5747
5748 fi
5749 fi
5750 DLLTOOL=$ac_cv_prog_DLLTOOL
5751 if test -n "$DLLTOOL"; then
5752   echo "$as_me:$LINENO: result: $DLLTOOL" >&5
5753 echo "${ECHO_T}$DLLTOOL" >&6
5754 else
5755   echo "$as_me:$LINENO: result: no" >&5
5756 echo "${ECHO_T}no" >&6
5757 fi
5758
5759 fi
5760 if test -z "$ac_cv_prog_DLLTOOL"; then
5761   ac_ct_DLLTOOL=$DLLTOOL
5762   # Extract the first word of "dlltool", so it can be a program name with args.
5763 set dummy dlltool; ac_word=$2
5764 echo "$as_me:$LINENO: checking for $ac_word" >&5
5765 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5766 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
5767   echo $ECHO_N "(cached) $ECHO_C" >&6
5768 else
5769   if test -n "$ac_ct_DLLTOOL"; then
5770   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5771 else
5772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5773 for as_dir in $PATH
5774 do
5775   IFS=$as_save_IFS
5776   test -z "$as_dir" && as_dir=.
5777   for ac_exec_ext in '' $ac_executable_extensions; do
5778   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5779     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5780     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5781     break 2
5782   fi
5783 done
5784 done
5785
5786   test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
5787 fi
5788 fi
5789 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5790 if test -n "$ac_ct_DLLTOOL"; then
5791   echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
5792 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
5793 else
5794   echo "$as_me:$LINENO: result: no" >&5
5795 echo "${ECHO_T}no" >&6
5796 fi
5797
5798   DLLTOOL=$ac_ct_DLLTOOL
5799 else
5800   DLLTOOL="$ac_cv_prog_DLLTOOL"
5801 fi
5802
5803   if test -n "$ac_tool_prefix"; then
5804   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5805 set dummy ${ac_tool_prefix}as; ac_word=$2
5806 echo "$as_me:$LINENO: checking for $ac_word" >&5
5807 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5808 if test "${ac_cv_prog_AS+set}" = set; then
5809   echo $ECHO_N "(cached) $ECHO_C" >&6
5810 else
5811   if test -n "$AS"; then
5812   ac_cv_prog_AS="$AS" # Let the user override the test.
5813 else
5814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5815 for as_dir in $PATH
5816 do
5817   IFS=$as_save_IFS
5818   test -z "$as_dir" && as_dir=.
5819   for ac_exec_ext in '' $ac_executable_extensions; do
5820   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5821     ac_cv_prog_AS="${ac_tool_prefix}as"
5822     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5823     break 2
5824   fi
5825 done
5826 done
5827
5828 fi
5829 fi
5830 AS=$ac_cv_prog_AS
5831 if test -n "$AS"; then
5832   echo "$as_me:$LINENO: result: $AS" >&5
5833 echo "${ECHO_T}$AS" >&6
5834 else
5835   echo "$as_me:$LINENO: result: no" >&5
5836 echo "${ECHO_T}no" >&6
5837 fi
5838
5839 fi
5840 if test -z "$ac_cv_prog_AS"; then
5841   ac_ct_AS=$AS
5842   # Extract the first word of "as", so it can be a program name with args.
5843 set dummy as; ac_word=$2
5844 echo "$as_me:$LINENO: checking for $ac_word" >&5
5845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5846 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
5847   echo $ECHO_N "(cached) $ECHO_C" >&6
5848 else
5849   if test -n "$ac_ct_AS"; then
5850   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5851 else
5852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5853 for as_dir in $PATH
5854 do
5855   IFS=$as_save_IFS
5856   test -z "$as_dir" && as_dir=.
5857   for ac_exec_ext in '' $ac_executable_extensions; do
5858   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5859     ac_cv_prog_ac_ct_AS="as"
5860     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5861     break 2
5862   fi
5863 done
5864 done
5865
5866   test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
5867 fi
5868 fi
5869 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5870 if test -n "$ac_ct_AS"; then
5871   echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
5872 echo "${ECHO_T}$ac_ct_AS" >&6
5873 else
5874   echo "$as_me:$LINENO: result: no" >&5
5875 echo "${ECHO_T}no" >&6
5876 fi
5877
5878   AS=$ac_ct_AS
5879 else
5880   AS="$ac_cv_prog_AS"
5881 fi
5882
5883   if test -n "$ac_tool_prefix"; then
5884   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5885 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5886 echo "$as_me:$LINENO: checking for $ac_word" >&5
5887 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5888 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5889   echo $ECHO_N "(cached) $ECHO_C" >&6
5890 else
5891   if test -n "$OBJDUMP"; then
5892   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5893 else
5894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5895 for as_dir in $PATH
5896 do
5897   IFS=$as_save_IFS
5898   test -z "$as_dir" && as_dir=.
5899   for ac_exec_ext in '' $ac_executable_extensions; do
5900   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5901     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5902     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5903     break 2
5904   fi
5905 done
5906 done
5907
5908 fi
5909 fi
5910 OBJDUMP=$ac_cv_prog_OBJDUMP
5911 if test -n "$OBJDUMP"; then
5912   echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5913 echo "${ECHO_T}$OBJDUMP" >&6
5914 else
5915   echo "$as_me:$LINENO: result: no" >&5
5916 echo "${ECHO_T}no" >&6
5917 fi
5918
5919 fi
5920 if test -z "$ac_cv_prog_OBJDUMP"; then
5921   ac_ct_OBJDUMP=$OBJDUMP
5922   # Extract the first word of "objdump", so it can be a program name with args.
5923 set dummy objdump; ac_word=$2
5924 echo "$as_me:$LINENO: checking for $ac_word" >&5
5925 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5926 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5927   echo $ECHO_N "(cached) $ECHO_C" >&6
5928 else
5929   if test -n "$ac_ct_OBJDUMP"; then
5930   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5931 else
5932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5933 for as_dir in $PATH
5934 do
5935   IFS=$as_save_IFS
5936   test -z "$as_dir" && as_dir=.
5937   for ac_exec_ext in '' $ac_executable_extensions; do
5938   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5939     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5940     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5941     break 2
5942   fi
5943 done
5944 done
5945
5946   test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
5947 fi
5948 fi
5949 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5950 if test -n "$ac_ct_OBJDUMP"; then
5951   echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5952 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
5953 else
5954   echo "$as_me:$LINENO: result: no" >&5
5955 echo "${ECHO_T}no" >&6
5956 fi
5957
5958   OBJDUMP=$ac_ct_OBJDUMP
5959 else
5960   OBJDUMP="$ac_cv_prog_OBJDUMP"
5961 fi
5962
5963   ;;
5964
5965 esac
5966
5967 need_locks="$enable_libtool_lock"
5968
5969
5970 ac_ext=c
5971 ac_cpp='$CPP $CPPFLAGS'
5972 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5973 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5974 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5975 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5976 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5977 # On Suns, sometimes $CPP names a directory.
5978 if test -n "$CPP" && test -d "$CPP"; then
5979   CPP=
5980 fi
5981 if test -z "$CPP"; then
5982   if test "${ac_cv_prog_CPP+set}" = set; then
5983   echo $ECHO_N "(cached) $ECHO_C" >&6
5984 else
5985       # Double quotes because CPP needs to be expanded
5986     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5987     do
5988       ac_preproc_ok=false
5989 for ac_c_preproc_warn_flag in '' yes
5990 do
5991   # Use a header file that comes with gcc, so configuring glibc
5992   # with a fresh cross-compiler works.
5993   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5994   # <limits.h> exists even on freestanding compilers.
5995   # On the NeXT, cc -E runs the code through the compiler's parser,
5996   # not just through cpp. "Syntax error" is here to catch this case.
5997   cat >conftest.$ac_ext <<_ACEOF
5998 /* confdefs.h.  */
5999 _ACEOF
6000 cat confdefs.h >>conftest.$ac_ext
6001 cat >>conftest.$ac_ext <<_ACEOF
6002 /* end confdefs.h.  */
6003 #ifdef __STDC__
6004 # include <limits.h>
6005 #else
6006 # include <assert.h>
6007 #endif
6008                      Syntax error
6009 _ACEOF
6010 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6011   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6012   ac_status=$?
6013   grep -v '^ *+' conftest.er1 >conftest.err
6014   rm -f conftest.er1
6015   cat conftest.err >&5
6016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6017   (exit $ac_status); } >/dev/null; then
6018   if test -s conftest.err; then
6019     ac_cpp_err=$ac_c_preproc_warn_flag
6020     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6021   else
6022     ac_cpp_err=
6023   fi
6024 else
6025   ac_cpp_err=yes
6026 fi
6027 if test -z "$ac_cpp_err"; then
6028   :
6029 else
6030   echo "$as_me: failed program was:" >&5
6031 sed 's/^/| /' conftest.$ac_ext >&5
6032
6033   # Broken: fails on valid input.
6034 continue
6035 fi
6036 rm -f conftest.err conftest.$ac_ext
6037
6038   # OK, works on sane cases.  Now check whether non-existent headers
6039   # can be detected and how.
6040   cat >conftest.$ac_ext <<_ACEOF
6041 /* confdefs.h.  */
6042 _ACEOF
6043 cat confdefs.h >>conftest.$ac_ext
6044 cat >>conftest.$ac_ext <<_ACEOF
6045 /* end confdefs.h.  */
6046 #include <ac_nonexistent.h>
6047 _ACEOF
6048 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6049   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6050   ac_status=$?
6051   grep -v '^ *+' conftest.er1 >conftest.err
6052   rm -f conftest.er1
6053   cat conftest.err >&5
6054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6055   (exit $ac_status); } >/dev/null; then
6056   if test -s conftest.err; then
6057     ac_cpp_err=$ac_c_preproc_warn_flag
6058     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6059   else
6060     ac_cpp_err=
6061   fi
6062 else
6063   ac_cpp_err=yes
6064 fi
6065 if test -z "$ac_cpp_err"; then
6066   # Broken: success on invalid input.
6067 continue
6068 else
6069   echo "$as_me: failed program was:" >&5
6070 sed 's/^/| /' conftest.$ac_ext >&5
6071
6072   # Passes both tests.
6073 ac_preproc_ok=:
6074 break
6075 fi
6076 rm -f conftest.err conftest.$ac_ext
6077
6078 done
6079 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6080 rm -f conftest.err conftest.$ac_ext
6081 if $ac_preproc_ok; then
6082   break
6083 fi
6084
6085     done
6086     ac_cv_prog_CPP=$CPP
6087
6088 fi
6089   CPP=$ac_cv_prog_CPP
6090 else
6091   ac_cv_prog_CPP=$CPP
6092 fi
6093 echo "$as_me:$LINENO: result: $CPP" >&5
6094 echo "${ECHO_T}$CPP" >&6
6095 ac_preproc_ok=false
6096 for ac_c_preproc_warn_flag in '' yes
6097 do
6098   # Use a header file that comes with gcc, so configuring glibc
6099   # with a fresh cross-compiler works.
6100   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6101   # <limits.h> exists even on freestanding compilers.
6102   # On the NeXT, cc -E runs the code through the compiler's parser,
6103   # not just through cpp. "Syntax error" is here to catch this case.
6104   cat >conftest.$ac_ext <<_ACEOF
6105 /* confdefs.h.  */
6106 _ACEOF
6107 cat confdefs.h >>conftest.$ac_ext
6108 cat >>conftest.$ac_ext <<_ACEOF
6109 /* end confdefs.h.  */
6110 #ifdef __STDC__
6111 # include <limits.h>
6112 #else
6113 # include <assert.h>
6114 #endif
6115                      Syntax error
6116 _ACEOF
6117 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6118   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6119   ac_status=$?
6120   grep -v '^ *+' conftest.er1 >conftest.err
6121   rm -f conftest.er1
6122   cat conftest.err >&5
6123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6124   (exit $ac_status); } >/dev/null; then
6125   if test -s conftest.err; then
6126     ac_cpp_err=$ac_c_preproc_warn_flag
6127     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6128   else
6129     ac_cpp_err=
6130   fi
6131 else
6132   ac_cpp_err=yes
6133 fi
6134 if test -z "$ac_cpp_err"; then
6135   :
6136 else
6137   echo "$as_me: failed program was:" >&5
6138 sed 's/^/| /' conftest.$ac_ext >&5
6139
6140   # Broken: fails on valid input.
6141 continue
6142 fi
6143 rm -f conftest.err conftest.$ac_ext
6144
6145   # OK, works on sane cases.  Now check whether non-existent headers
6146   # can be detected and how.
6147   cat >conftest.$ac_ext <<_ACEOF
6148 /* confdefs.h.  */
6149 _ACEOF
6150 cat confdefs.h >>conftest.$ac_ext
6151 cat >>conftest.$ac_ext <<_ACEOF
6152 /* end confdefs.h.  */
6153 #include <ac_nonexistent.h>
6154 _ACEOF
6155 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6156   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6157   ac_status=$?
6158   grep -v '^ *+' conftest.er1 >conftest.err
6159   rm -f conftest.er1
6160   cat conftest.err >&5
6161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6162   (exit $ac_status); } >/dev/null; then
6163   if test -s conftest.err; then
6164     ac_cpp_err=$ac_c_preproc_warn_flag
6165     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6166   else
6167     ac_cpp_err=
6168   fi
6169 else
6170   ac_cpp_err=yes
6171 fi
6172 if test -z "$ac_cpp_err"; then
6173   # Broken: success on invalid input.
6174 continue
6175 else
6176   echo "$as_me: failed program was:" >&5
6177 sed 's/^/| /' conftest.$ac_ext >&5
6178
6179   # Passes both tests.
6180 ac_preproc_ok=:
6181 break
6182 fi
6183 rm -f conftest.err conftest.$ac_ext
6184
6185 done
6186 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6187 rm -f conftest.err conftest.$ac_ext
6188 if $ac_preproc_ok; then
6189   :
6190 else
6191   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6192 See \`config.log' for more details." >&5
6193 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6194 See \`config.log' for more details." >&2;}
6195    { (exit 1); exit 1; }; }
6196 fi
6197
6198 ac_ext=c
6199 ac_cpp='$CPP $CPPFLAGS'
6200 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6201 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6202 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6203
6204
6205 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6206 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6207 if test "${ac_cv_header_stdc+set}" = set; then
6208   echo $ECHO_N "(cached) $ECHO_C" >&6
6209 else
6210   cat >conftest.$ac_ext <<_ACEOF
6211 /* confdefs.h.  */
6212 _ACEOF
6213 cat confdefs.h >>conftest.$ac_ext
6214 cat >>conftest.$ac_ext <<_ACEOF
6215 /* end confdefs.h.  */
6216 #include <stdlib.h>
6217 #include <stdarg.h>
6218 #include <string.h>
6219 #include <float.h>
6220
6221 int
6222 main ()
6223 {
6224
6225   ;
6226   return 0;
6227 }
6228 _ACEOF
6229 rm -f conftest.$ac_objext
6230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6231   (eval $ac_compile) 2>conftest.er1
6232   ac_status=$?
6233   grep -v '^ *+' conftest.er1 >conftest.err
6234   rm -f conftest.er1
6235   cat conftest.err >&5
6236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6237   (exit $ac_status); } &&
6238          { ac_try='test -z "$ac_c_werror_flag"
6239                          || test ! -s conftest.err'
6240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6241   (eval $ac_try) 2>&5
6242   ac_status=$?
6243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6244   (exit $ac_status); }; } &&
6245          { ac_try='test -s conftest.$ac_objext'
6246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6247   (eval $ac_try) 2>&5
6248   ac_status=$?
6249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6250   (exit $ac_status); }; }; then
6251   ac_cv_header_stdc=yes
6252 else
6253   echo "$as_me: failed program was:" >&5
6254 sed 's/^/| /' conftest.$ac_ext >&5
6255
6256 ac_cv_header_stdc=no
6257 fi
6258 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6259
6260 if test $ac_cv_header_stdc = yes; then
6261   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6262   cat >conftest.$ac_ext <<_ACEOF
6263 /* confdefs.h.  */
6264 _ACEOF
6265 cat confdefs.h >>conftest.$ac_ext
6266 cat >>conftest.$ac_ext <<_ACEOF
6267 /* end confdefs.h.  */
6268 #include <string.h>
6269
6270 _ACEOF
6271 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6272   $EGREP "memchr" >/dev/null 2>&1; then
6273   :
6274 else
6275   ac_cv_header_stdc=no
6276 fi
6277 rm -f conftest*
6278
6279 fi
6280
6281 if test $ac_cv_header_stdc = yes; then
6282   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6283   cat >conftest.$ac_ext <<_ACEOF
6284 /* confdefs.h.  */
6285 _ACEOF
6286 cat confdefs.h >>conftest.$ac_ext
6287 cat >>conftest.$ac_ext <<_ACEOF
6288 /* end confdefs.h.  */
6289 #include <stdlib.h>
6290
6291 _ACEOF
6292 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6293   $EGREP "free" >/dev/null 2>&1; then
6294   :
6295 else
6296   ac_cv_header_stdc=no
6297 fi
6298 rm -f conftest*
6299
6300 fi
6301
6302 if test $ac_cv_header_stdc = yes; then
6303   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6304   if test "$cross_compiling" = yes; then
6305   :
6306 else
6307   cat >conftest.$ac_ext <<_ACEOF
6308 /* confdefs.h.  */
6309 _ACEOF
6310 cat confdefs.h >>conftest.$ac_ext
6311 cat >>conftest.$ac_ext <<_ACEOF
6312 /* end confdefs.h.  */
6313 #include <ctype.h>
6314 #if ((' ' & 0x0FF) == 0x020)
6315 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6316 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6317 #else
6318 # define ISLOWER(c) \
6319                    (('a' <= (c) && (c) <= 'i') \
6320                      || ('j' <= (c) && (c) <= 'r') \
6321                      || ('s' <= (c) && (c) <= 'z'))
6322 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6323 #endif
6324
6325 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6326 int
6327 main ()
6328 {
6329   int i;
6330   for (i = 0; i < 256; i++)
6331     if (XOR (islower (i), ISLOWER (i))
6332         || toupper (i) != TOUPPER (i))
6333       exit(2);
6334   exit (0);
6335 }
6336 _ACEOF
6337 rm -f conftest$ac_exeext
6338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6339   (eval $ac_link) 2>&5
6340   ac_status=$?
6341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6342   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6344   (eval $ac_try) 2>&5
6345   ac_status=$?
6346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6347   (exit $ac_status); }; }; then
6348   :
6349 else
6350   echo "$as_me: program exited with status $ac_status" >&5
6351 echo "$as_me: failed program was:" >&5
6352 sed 's/^/| /' conftest.$ac_ext >&5
6353
6354 ( exit $ac_status )
6355 ac_cv_header_stdc=no
6356 fi
6357 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6358 fi
6359 fi
6360 fi
6361 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6362 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6363 if test $ac_cv_header_stdc = yes; then
6364
6365 cat >>confdefs.h <<\_ACEOF
6366 #define STDC_HEADERS 1
6367 _ACEOF
6368
6369 fi
6370
6371 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6382                   inttypes.h stdint.h unistd.h
6383 do
6384 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6385 echo "$as_me:$LINENO: checking for $ac_header" >&5
6386 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6387 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6388   echo $ECHO_N "(cached) $ECHO_C" >&6
6389 else
6390   cat >conftest.$ac_ext <<_ACEOF
6391 /* confdefs.h.  */
6392 _ACEOF
6393 cat confdefs.h >>conftest.$ac_ext
6394 cat >>conftest.$ac_ext <<_ACEOF
6395 /* end confdefs.h.  */
6396 $ac_includes_default
6397
6398 #include <$ac_header>
6399 _ACEOF
6400 rm -f conftest.$ac_objext
6401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6402   (eval $ac_compile) 2>conftest.er1
6403   ac_status=$?
6404   grep -v '^ *+' conftest.er1 >conftest.err
6405   rm -f conftest.er1
6406   cat conftest.err >&5
6407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6408   (exit $ac_status); } &&
6409          { ac_try='test -z "$ac_c_werror_flag"
6410                          || test ! -s conftest.err'
6411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6412   (eval $ac_try) 2>&5
6413   ac_status=$?
6414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6415   (exit $ac_status); }; } &&
6416          { ac_try='test -s conftest.$ac_objext'
6417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6418   (eval $ac_try) 2>&5
6419   ac_status=$?
6420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6421   (exit $ac_status); }; }; then
6422   eval "$as_ac_Header=yes"
6423 else
6424   echo "$as_me: failed program was:" >&5
6425 sed 's/^/| /' conftest.$ac_ext >&5
6426
6427 eval "$as_ac_Header=no"
6428 fi
6429 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6430 fi
6431 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6432 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6433 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6434   cat >>confdefs.h <<_ACEOF
6435 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6436 _ACEOF
6437
6438 fi
6439
6440 done
6441
6442
6443
6444 for ac_header in dlfcn.h
6445 do
6446 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6447 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6448   echo "$as_me:$LINENO: checking for $ac_header" >&5
6449 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6450 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6451   echo $ECHO_N "(cached) $ECHO_C" >&6
6452 fi
6453 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6454 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6455 else
6456   # Is the header compilable?
6457 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6458 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6459 cat >conftest.$ac_ext <<_ACEOF
6460 /* confdefs.h.  */
6461 _ACEOF
6462 cat confdefs.h >>conftest.$ac_ext
6463 cat >>conftest.$ac_ext <<_ACEOF
6464 /* end confdefs.h.  */
6465 $ac_includes_default
6466 #include <$ac_header>
6467 _ACEOF
6468 rm -f conftest.$ac_objext
6469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6470   (eval $ac_compile) 2>conftest.er1
6471   ac_status=$?
6472   grep -v '^ *+' conftest.er1 >conftest.err
6473   rm -f conftest.er1
6474   cat conftest.err >&5
6475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6476   (exit $ac_status); } &&
6477          { ac_try='test -z "$ac_c_werror_flag"
6478                          || test ! -s conftest.err'
6479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6480   (eval $ac_try) 2>&5
6481   ac_status=$?
6482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6483   (exit $ac_status); }; } &&
6484          { ac_try='test -s conftest.$ac_objext'
6485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6486   (eval $ac_try) 2>&5
6487   ac_status=$?
6488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6489   (exit $ac_status); }; }; then
6490   ac_header_compiler=yes
6491 else
6492   echo "$as_me: failed program was:" >&5
6493 sed 's/^/| /' conftest.$ac_ext >&5
6494
6495 ac_header_compiler=no
6496 fi
6497 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6498 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6499 echo "${ECHO_T}$ac_header_compiler" >&6
6500
6501 # Is the header present?
6502 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6503 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6504 cat >conftest.$ac_ext <<_ACEOF
6505 /* confdefs.h.  */
6506 _ACEOF
6507 cat confdefs.h >>conftest.$ac_ext
6508 cat >>conftest.$ac_ext <<_ACEOF
6509 /* end confdefs.h.  */
6510 #include <$ac_header>
6511 _ACEOF
6512 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6513   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6514   ac_status=$?
6515   grep -v '^ *+' conftest.er1 >conftest.err
6516   rm -f conftest.er1
6517   cat conftest.err >&5
6518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6519   (exit $ac_status); } >/dev/null; then
6520   if test -s conftest.err; then
6521     ac_cpp_err=$ac_c_preproc_warn_flag
6522     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6523   else
6524     ac_cpp_err=
6525   fi
6526 else
6527   ac_cpp_err=yes
6528 fi
6529 if test -z "$ac_cpp_err"; then
6530   ac_header_preproc=yes
6531 else
6532   echo "$as_me: failed program was:" >&5
6533 sed 's/^/| /' conftest.$ac_ext >&5
6534
6535   ac_header_preproc=no
6536 fi
6537 rm -f conftest.err conftest.$ac_ext
6538 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6539 echo "${ECHO_T}$ac_header_preproc" >&6
6540
6541 # So?  What about this header?
6542 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6543   yes:no: )
6544     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6545 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6546     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6547 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6548     ac_header_preproc=yes
6549     ;;
6550   no:yes:* )
6551     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6552 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6553     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6554 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6555     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6556 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6557     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6558 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6559     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6560 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6561     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6562 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6563     (
6564       cat <<\_ASBOX
6565 ## ------------------------------------------ ##
6566 ## Report this to the AC_PACKAGE_NAME lists.  ##
6567 ## ------------------------------------------ ##
6568 _ASBOX
6569     ) |
6570       sed "s/^/$as_me: WARNING:     /" >&2
6571     ;;
6572 esac
6573 echo "$as_me:$LINENO: checking for $ac_header" >&5
6574 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6575 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6576   echo $ECHO_N "(cached) $ECHO_C" >&6
6577 else
6578   eval "$as_ac_Header=\$ac_header_preproc"
6579 fi
6580 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6581 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6582
6583 fi
6584 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6585   cat >>confdefs.h <<_ACEOF
6586 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6587 _ACEOF
6588
6589 fi
6590
6591 done
6592
6593 ac_ext=cc
6594 ac_cpp='$CXXCPP $CPPFLAGS'
6595 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6596 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6597 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6598 if test -n "$ac_tool_prefix"; then
6599   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
6600   do
6601     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6602 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6603 echo "$as_me:$LINENO: checking for $ac_word" >&5
6604 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6605 if test "${ac_cv_prog_CXX+set}" = set; then
6606   echo $ECHO_N "(cached) $ECHO_C" >&6
6607 else
6608   if test -n "$CXX"; then
6609   ac_cv_prog_CXX="$CXX" # Let the user override the test.
6610 else
6611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6612 for as_dir in $PATH
6613 do
6614   IFS=$as_save_IFS
6615   test -z "$as_dir" && as_dir=.
6616   for ac_exec_ext in '' $ac_executable_extensions; do
6617   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6618     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6619     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6620     break 2
6621   fi
6622 done
6623 done
6624
6625 fi
6626 fi
6627 CXX=$ac_cv_prog_CXX
6628 if test -n "$CXX"; then
6629   echo "$as_me:$LINENO: result: $CXX" >&5
6630 echo "${ECHO_T}$CXX" >&6
6631 else
6632   echo "$as_me:$LINENO: result: no" >&5
6633 echo "${ECHO_T}no" >&6
6634 fi
6635
6636     test -n "$CXX" && break
6637   done
6638 fi
6639 if test -z "$CXX"; then
6640   ac_ct_CXX=$CXX
6641   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
6642 do
6643   # Extract the first word of "$ac_prog", so it can be a program name with args.
6644 set dummy $ac_prog; ac_word=$2
6645 echo "$as_me:$LINENO: checking for $ac_word" >&5
6646 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6647 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6648   echo $ECHO_N "(cached) $ECHO_C" >&6
6649 else
6650   if test -n "$ac_ct_CXX"; then
6651   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6652 else
6653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6654 for as_dir in $PATH
6655 do
6656   IFS=$as_save_IFS
6657   test -z "$as_dir" && as_dir=.
6658   for ac_exec_ext in '' $ac_executable_extensions; do
6659   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6660     ac_cv_prog_ac_ct_CXX="$ac_prog"
6661     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6662     break 2
6663   fi
6664 done
6665 done
6666
6667 fi
6668 fi
6669 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6670 if test -n "$ac_ct_CXX"; then
6671   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6672 echo "${ECHO_T}$ac_ct_CXX" >&6
6673 else
6674   echo "$as_me:$LINENO: result: no" >&5
6675 echo "${ECHO_T}no" >&6
6676 fi
6677
6678   test -n "$ac_ct_CXX" && break
6679 done
6680 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
6681
6682   CXX=$ac_ct_CXX
6683 fi
6684
6685
6686 # Provide some information about the compiler.
6687 echo "$as_me:$LINENO:" \
6688      "checking for C++ compiler version" >&5
6689 ac_compiler=`set X $ac_compile; echo $2`
6690 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6691   (eval $ac_compiler --version </dev/null >&5) 2>&5
6692   ac_status=$?
6693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6694   (exit $ac_status); }
6695 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6696   (eval $ac_compiler -v </dev/null >&5) 2>&5
6697   ac_status=$?
6698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6699   (exit $ac_status); }
6700 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6701   (eval $ac_compiler -V </dev/null >&5) 2>&5
6702   ac_status=$?
6703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6704   (exit $ac_status); }
6705
6706 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6707 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
6708 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6709   echo $ECHO_N "(cached) $ECHO_C" >&6
6710 else
6711   cat >conftest.$ac_ext <<_ACEOF
6712 /* confdefs.h.  */
6713 _ACEOF
6714 cat confdefs.h >>conftest.$ac_ext
6715 cat >>conftest.$ac_ext <<_ACEOF
6716 /* end confdefs.h.  */
6717
6718 int
6719 main ()
6720 {
6721 #ifndef __GNUC__
6722        choke me
6723 #endif
6724
6725   ;
6726   return 0;
6727 }
6728 _ACEOF
6729 rm -f conftest.$ac_objext
6730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6731   (eval $ac_compile) 2>conftest.er1
6732   ac_status=$?
6733   grep -v '^ *+' conftest.er1 >conftest.err
6734   rm -f conftest.er1
6735   cat conftest.err >&5
6736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6737   (exit $ac_status); } &&
6738          { ac_try='test -z "$ac_cxx_werror_flag"
6739                          || test ! -s conftest.err'
6740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6741   (eval $ac_try) 2>&5
6742   ac_status=$?
6743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6744   (exit $ac_status); }; } &&
6745          { ac_try='test -s conftest.$ac_objext'
6746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6747   (eval $ac_try) 2>&5
6748   ac_status=$?
6749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6750   (exit $ac_status); }; }; then
6751   ac_compiler_gnu=yes
6752 else
6753   echo "$as_me: failed program was:" >&5
6754 sed 's/^/| /' conftest.$ac_ext >&5
6755
6756 ac_compiler_gnu=no
6757 fi
6758 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6759 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6760
6761 fi
6762 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6763 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
6764 GXX=`test $ac_compiler_gnu = yes && echo yes`
6765 ac_test_CXXFLAGS=${CXXFLAGS+set}
6766 ac_save_CXXFLAGS=$CXXFLAGS
6767 CXXFLAGS="-g"
6768 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6769 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
6770 if test "${ac_cv_prog_cxx_g+set}" = set; then
6771   echo $ECHO_N "(cached) $ECHO_C" >&6
6772 else
6773   cat >conftest.$ac_ext <<_ACEOF
6774 /* confdefs.h.  */
6775 _ACEOF
6776 cat confdefs.h >>conftest.$ac_ext
6777 cat >>conftest.$ac_ext <<_ACEOF
6778 /* end confdefs.h.  */
6779
6780 int
6781 main ()
6782 {
6783
6784   ;
6785   return 0;
6786 }
6787 _ACEOF
6788 rm -f conftest.$ac_objext
6789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6790   (eval $ac_compile) 2>conftest.er1
6791   ac_status=$?
6792   grep -v '^ *+' conftest.er1 >conftest.err
6793   rm -f conftest.er1
6794   cat conftest.err >&5
6795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6796   (exit $ac_status); } &&
6797          { ac_try='test -z "$ac_cxx_werror_flag"
6798                          || test ! -s conftest.err'
6799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6800   (eval $ac_try) 2>&5
6801   ac_status=$?
6802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6803   (exit $ac_status); }; } &&
6804          { ac_try='test -s conftest.$ac_objext'
6805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6806   (eval $ac_try) 2>&5
6807   ac_status=$?
6808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6809   (exit $ac_status); }; }; then
6810   ac_cv_prog_cxx_g=yes
6811 else
6812   echo "$as_me: failed program was:" >&5
6813 sed 's/^/| /' conftest.$ac_ext >&5
6814
6815 ac_cv_prog_cxx_g=no
6816 fi
6817 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6818 fi
6819 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6820 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
6821 if test "$ac_test_CXXFLAGS" = set; then
6822   CXXFLAGS=$ac_save_CXXFLAGS
6823 elif test $ac_cv_prog_cxx_g = yes; then
6824   if test "$GXX" = yes; then
6825     CXXFLAGS="-g -O2"
6826   else
6827     CXXFLAGS="-g"
6828   fi
6829 else
6830   if test "$GXX" = yes; then
6831     CXXFLAGS="-O2"
6832   else
6833     CXXFLAGS=
6834   fi
6835 fi
6836 for ac_declaration in \
6837    '' \
6838    'extern "C" void std::exit (int) throw (); using std::exit;' \
6839    'extern "C" void std::exit (int); using std::exit;' \
6840    'extern "C" void exit (int) throw ();' \
6841    'extern "C" void exit (int);' \
6842    'void exit (int);'
6843 do
6844   cat >conftest.$ac_ext <<_ACEOF
6845 /* confdefs.h.  */
6846 _ACEOF
6847 cat confdefs.h >>conftest.$ac_ext
6848 cat >>conftest.$ac_ext <<_ACEOF
6849 /* end confdefs.h.  */
6850 $ac_declaration
6851 #include <stdlib.h>
6852 int
6853 main ()
6854 {
6855 exit (42);
6856   ;
6857   return 0;
6858 }
6859 _ACEOF
6860 rm -f conftest.$ac_objext
6861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6862   (eval $ac_compile) 2>conftest.er1
6863   ac_status=$?
6864   grep -v '^ *+' conftest.er1 >conftest.err
6865   rm -f conftest.er1
6866   cat conftest.err >&5
6867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6868   (exit $ac_status); } &&
6869          { ac_try='test -z "$ac_cxx_werror_flag"
6870                          || test ! -s conftest.err'
6871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6872   (eval $ac_try) 2>&5
6873   ac_status=$?
6874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6875   (exit $ac_status); }; } &&
6876          { ac_try='test -s conftest.$ac_objext'
6877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6878   (eval $ac_try) 2>&5
6879   ac_status=$?
6880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6881   (exit $ac_status); }; }; then
6882   :
6883 else
6884   echo "$as_me: failed program was:" >&5
6885 sed 's/^/| /' conftest.$ac_ext >&5
6886
6887 continue
6888 fi
6889 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6890   cat >conftest.$ac_ext <<_ACEOF
6891 /* confdefs.h.  */
6892 _ACEOF
6893 cat confdefs.h >>conftest.$ac_ext
6894 cat >>conftest.$ac_ext <<_ACEOF
6895 /* end confdefs.h.  */
6896 $ac_declaration
6897 int
6898 main ()
6899 {
6900 exit (42);
6901   ;
6902   return 0;
6903 }
6904 _ACEOF
6905 rm -f conftest.$ac_objext
6906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6907   (eval $ac_compile) 2>conftest.er1
6908   ac_status=$?
6909   grep -v '^ *+' conftest.er1 >conftest.err
6910   rm -f conftest.er1
6911   cat conftest.err >&5
6912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6913   (exit $ac_status); } &&
6914          { ac_try='test -z "$ac_cxx_werror_flag"
6915                          || test ! -s conftest.err'
6916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6917   (eval $ac_try) 2>&5
6918   ac_status=$?
6919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6920   (exit $ac_status); }; } &&
6921          { ac_try='test -s conftest.$ac_objext'
6922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6923   (eval $ac_try) 2>&5
6924   ac_status=$?
6925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6926   (exit $ac_status); }; }; then
6927   break
6928 else
6929   echo "$as_me: failed program was:" >&5
6930 sed 's/^/| /' conftest.$ac_ext >&5
6931
6932 fi
6933 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6934 done
6935 rm -f conftest*
6936 if test -n "$ac_declaration"; then
6937   echo '#ifdef __cplusplus' >>confdefs.h
6938   echo $ac_declaration      >>confdefs.h
6939   echo '#endif'             >>confdefs.h
6940 fi
6941
6942 ac_ext=cc
6943 ac_cpp='$CXXCPP $CPPFLAGS'
6944 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6945 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6946 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6947
6948 depcc="$CXX"  am_compiler_list=
6949
6950 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6951 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6952 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6953   echo $ECHO_N "(cached) $ECHO_C" >&6
6954 else
6955   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6956   # We make a subdir and do the tests there.  Otherwise we can end up
6957   # making bogus files that we don't know about and never remove.  For
6958   # instance it was reported that on HP-UX the gcc test will end up
6959   # making a dummy file named `D' -- because `-MD' means `put the output
6960   # in D'.
6961   mkdir conftest.dir
6962   # Copy depcomp to subdir because otherwise we won't find it if we're
6963   # using a relative directory.
6964   cp "$am_depcomp" conftest.dir
6965   cd conftest.dir
6966   # We will build objects and dependencies in a subdirectory because
6967   # it helps to detect inapplicable dependency modes.  For instance
6968   # both Tru64's cc and ICC support -MD to output dependencies as a
6969   # side effect of compilation, but ICC will put the dependencies in
6970   # the current directory while Tru64 will put them in the object
6971   # directory.
6972   mkdir sub
6973
6974   am_cv_CXX_dependencies_compiler_type=none
6975   if test "$am_compiler_list" = ""; then
6976      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6977   fi
6978   for depmode in $am_compiler_list; do
6979     # Setup a source with many dependencies, because some compilers
6980     # like to wrap large dependency lists on column 80 (with \), and
6981     # we should not choose a depcomp mode which is confused by this.
6982     #
6983     # We need to recreate these files for each test, as the compiler may
6984     # overwrite some of them when testing with obscure command lines.
6985     # This happens at least with the AIX C compiler.
6986     : > sub/conftest.c
6987     for i in 1 2 3 4 5 6; do
6988       echo '#include "conftst'$i'.h"' >> sub/conftest.c
6989       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6990       # Solaris 8's {/usr,}/bin/sh.
6991       touch sub/conftst$i.h
6992     done
6993     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6994
6995     case $depmode in
6996     nosideeffect)
6997       # after this tag, mechanisms are not by side-effect, so they'll
6998       # only be used when explicitly requested
6999       if test "x$enable_dependency_tracking" = xyes; then
7000         continue
7001       else
7002         break
7003       fi
7004       ;;
7005     none) break ;;
7006     esac
7007     # We check with `-c' and `-o' for the sake of the "dashmstdout"
7008     # mode.  It turns out that the SunPro C++ compiler does not properly
7009     # handle `-M -o', and we need to detect this.
7010     if depmode=$depmode \
7011        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
7012        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7013        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
7014          >/dev/null 2>conftest.err &&
7015        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7016        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
7017        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7018       # icc doesn't choke on unknown options, it will just issue warnings
7019       # or remarks (even with -Werror).  So we grep stderr for any message
7020       # that says an option was ignored or not supported.
7021       # When given -MP, icc 7.0 and 7.1 complain thusly:
7022       #   icc: Command line warning: ignoring option '-M'; no argument required
7023       # The diagnosis changed in icc 8.0:
7024       #   icc: Command line remark: option '-MP' not supported
7025       if (grep 'ignoring option' conftest.err ||
7026           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7027         am_cv_CXX_dependencies_compiler_type=$depmode
7028         break
7029       fi
7030     fi
7031   done
7032
7033   cd ..
7034   rm -rf conftest.dir
7035 else
7036   am_cv_CXX_dependencies_compiler_type=none
7037 fi
7038
7039 fi
7040 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
7041 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
7042 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7043
7044
7045
7046 if
7047   test "x$enable_dependency_tracking" != xno \
7048   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7049   am__fastdepCXX_TRUE=
7050   am__fastdepCXX_FALSE='#'
7051 else
7052   am__fastdepCXX_TRUE='#'
7053   am__fastdepCXX_FALSE=
7054 fi
7055
7056
7057
7058
7059 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7060     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7061     (test "X$CXX" != "Xg++"))) ; then
7062   ac_ext=cc
7063 ac_cpp='$CXXCPP $CPPFLAGS'
7064 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7065 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7066 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7067 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7068 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
7069 if test -z "$CXXCPP"; then
7070   if test "${ac_cv_prog_CXXCPP+set}" = set; then
7071   echo $ECHO_N "(cached) $ECHO_C" >&6
7072 else
7073       # Double quotes because CXXCPP needs to be expanded
7074     for CXXCPP in "$CXX -E" "/lib/cpp"
7075     do
7076       ac_preproc_ok=false
7077 for ac_cxx_preproc_warn_flag in '' yes
7078 do
7079   # Use a header file that comes with gcc, so configuring glibc
7080   # with a fresh cross-compiler works.
7081   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7082   # <limits.h> exists even on freestanding compilers.
7083   # On the NeXT, cc -E runs the code through the compiler's parser,
7084   # not just through cpp. "Syntax error" is here to catch this case.
7085   cat >conftest.$ac_ext <<_ACEOF
7086 /* confdefs.h.  */
7087 _ACEOF
7088 cat confdefs.h >>conftest.$ac_ext
7089 cat >>conftest.$ac_ext <<_ACEOF
7090 /* end confdefs.h.  */
7091 #ifdef __STDC__
7092 # include <limits.h>
7093 #else
7094 # include <assert.h>
7095 #endif
7096                      Syntax error
7097 _ACEOF
7098 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7099   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7100   ac_status=$?
7101   grep -v '^ *+' conftest.er1 >conftest.err
7102   rm -f conftest.er1
7103   cat conftest.err >&5
7104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7105   (exit $ac_status); } >/dev/null; then
7106   if test -s conftest.err; then
7107     ac_cpp_err=$ac_cxx_preproc_warn_flag
7108     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7109   else
7110     ac_cpp_err=
7111   fi
7112 else
7113   ac_cpp_err=yes
7114 fi
7115 if test -z "$ac_cpp_err"; then
7116   :
7117 else
7118   echo "$as_me: failed program was:" >&5
7119 sed 's/^/| /' conftest.$ac_ext >&5
7120
7121   # Broken: fails on valid input.
7122 continue
7123 fi
7124 rm -f conftest.err conftest.$ac_ext
7125
7126   # OK, works on sane cases.  Now check whether non-existent headers
7127   # can be detected and how.
7128   cat >conftest.$ac_ext <<_ACEOF
7129 /* confdefs.h.  */
7130 _ACEOF
7131 cat confdefs.h >>conftest.$ac_ext
7132 cat >>conftest.$ac_ext <<_ACEOF
7133 /* end confdefs.h.  */
7134 #include <ac_nonexistent.h>
7135 _ACEOF
7136 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7137   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7138   ac_status=$?
7139   grep -v '^ *+' conftest.er1 >conftest.err
7140   rm -f conftest.er1
7141   cat conftest.err >&5
7142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7143   (exit $ac_status); } >/dev/null; then
7144   if test -s conftest.err; then
7145     ac_cpp_err=$ac_cxx_preproc_warn_flag
7146     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7147   else
7148     ac_cpp_err=
7149   fi
7150 else
7151   ac_cpp_err=yes
7152 fi
7153 if test -z "$ac_cpp_err"; then
7154   # Broken: success on invalid input.
7155 continue
7156 else
7157   echo "$as_me: failed program was:" >&5
7158 sed 's/^/| /' conftest.$ac_ext >&5
7159
7160   # Passes both tests.
7161 ac_preproc_ok=:
7162 break
7163 fi
7164 rm -f conftest.err conftest.$ac_ext
7165
7166 done
7167 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7168 rm -f conftest.err conftest.$ac_ext
7169 if $ac_preproc_ok; then
7170   break
7171 fi
7172
7173     done
7174     ac_cv_prog_CXXCPP=$CXXCPP
7175
7176 fi
7177   CXXCPP=$ac_cv_prog_CXXCPP
7178 else
7179   ac_cv_prog_CXXCPP=$CXXCPP
7180 fi
7181 echo "$as_me:$LINENO: result: $CXXCPP" >&5
7182 echo "${ECHO_T}$CXXCPP" >&6
7183 ac_preproc_ok=false
7184 for ac_cxx_preproc_warn_flag in '' yes
7185 do
7186   # Use a header file that comes with gcc, so configuring glibc
7187   # with a fresh cross-compiler works.
7188   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7189   # <limits.h> exists even on freestanding compilers.
7190   # On the NeXT, cc -E runs the code through the compiler's parser,
7191   # not just through cpp. "Syntax error" is here to catch this case.
7192   cat >conftest.$ac_ext <<_ACEOF
7193 /* confdefs.h.  */
7194 _ACEOF
7195 cat confdefs.h >>conftest.$ac_ext
7196 cat >>conftest.$ac_ext <<_ACEOF
7197 /* end confdefs.h.  */
7198 #ifdef __STDC__
7199 # include <limits.h>
7200 #else
7201 # include <assert.h>
7202 #endif
7203                      Syntax error
7204 _ACEOF
7205 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7206   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7207   ac_status=$?
7208   grep -v '^ *+' conftest.er1 >conftest.err
7209   rm -f conftest.er1
7210   cat conftest.err >&5
7211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7212   (exit $ac_status); } >/dev/null; then
7213   if test -s conftest.err; then
7214     ac_cpp_err=$ac_cxx_preproc_warn_flag
7215     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7216   else
7217     ac_cpp_err=
7218   fi
7219 else
7220   ac_cpp_err=yes
7221 fi
7222 if test -z "$ac_cpp_err"; then
7223   :
7224 else
7225   echo "$as_me: failed program was:" >&5
7226 sed 's/^/| /' conftest.$ac_ext >&5
7227
7228   # Broken: fails on valid input.
7229 continue
7230 fi
7231 rm -f conftest.err conftest.$ac_ext
7232
7233   # OK, works on sane cases.  Now check whether non-existent headers
7234   # can be detected and how.
7235   cat >conftest.$ac_ext <<_ACEOF
7236 /* confdefs.h.  */
7237 _ACEOF
7238 cat confdefs.h >>conftest.$ac_ext
7239 cat >>conftest.$ac_ext <<_ACEOF
7240 /* end confdefs.h.  */
7241 #include <ac_nonexistent.h>
7242 _ACEOF
7243 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7244   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7245   ac_status=$?
7246   grep -v '^ *+' conftest.er1 >conftest.err
7247   rm -f conftest.er1
7248   cat conftest.err >&5
7249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7250   (exit $ac_status); } >/dev/null; then
7251   if test -s conftest.err; then
7252     ac_cpp_err=$ac_cxx_preproc_warn_flag
7253     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7254   else
7255     ac_cpp_err=
7256   fi
7257 else
7258   ac_cpp_err=yes
7259 fi
7260 if test -z "$ac_cpp_err"; then
7261   # Broken: success on invalid input.
7262 continue
7263 else
7264   echo "$as_me: failed program was:" >&5
7265 sed 's/^/| /' conftest.$ac_ext >&5
7266
7267   # Passes both tests.
7268 ac_preproc_ok=:
7269 break
7270 fi
7271 rm -f conftest.err conftest.$ac_ext
7272
7273 done
7274 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7275 rm -f conftest.err conftest.$ac_ext
7276 if $ac_preproc_ok; then
7277   :
7278 else
7279   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7280 See \`config.log' for more details." >&5
7281 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7282 See \`config.log' for more details." >&2;}
7283    { (exit 1); exit 1; }; }
7284 fi
7285
7286 ac_ext=cc
7287 ac_cpp='$CXXCPP $CPPFLAGS'
7288 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7289 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7290 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7291
7292 fi
7293
7294
7295 ac_ext=f
7296 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7297 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7298 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7299 if test -n "$ac_tool_prefix"; then
7300   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
7301   do
7302     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7303 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7304 echo "$as_me:$LINENO: checking for $ac_word" >&5
7305 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7306 if test "${ac_cv_prog_F77+set}" = set; then
7307   echo $ECHO_N "(cached) $ECHO_C" >&6
7308 else
7309   if test -n "$F77"; then
7310   ac_cv_prog_F77="$F77" # Let the user override the test.
7311 else
7312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7313 for as_dir in $PATH
7314 do
7315   IFS=$as_save_IFS
7316   test -z "$as_dir" && as_dir=.
7317   for ac_exec_ext in '' $ac_executable_extensions; do
7318   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7319     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7320     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7321     break 2
7322   fi
7323 done
7324 done
7325
7326 fi
7327 fi
7328 F77=$ac_cv_prog_F77
7329 if test -n "$F77"; then
7330   echo "$as_me:$LINENO: result: $F77" >&5
7331 echo "${ECHO_T}$F77" >&6
7332 else
7333   echo "$as_me:$LINENO: result: no" >&5
7334 echo "${ECHO_T}no" >&6
7335 fi
7336
7337     test -n "$F77" && break
7338   done
7339 fi
7340 if test -z "$F77"; then
7341   ac_ct_F77=$F77
7342   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
7343 do
7344   # Extract the first word of "$ac_prog", so it can be a program name with args.
7345 set dummy $ac_prog; ac_word=$2
7346 echo "$as_me:$LINENO: checking for $ac_word" >&5
7347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7348 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7349   echo $ECHO_N "(cached) $ECHO_C" >&6
7350 else
7351   if test -n "$ac_ct_F77"; then
7352   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7353 else
7354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7355 for as_dir in $PATH
7356 do
7357   IFS=$as_save_IFS
7358   test -z "$as_dir" && as_dir=.
7359   for ac_exec_ext in '' $ac_executable_extensions; do
7360   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7361     ac_cv_prog_ac_ct_F77="$ac_prog"
7362     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7363     break 2
7364   fi
7365 done
7366 done
7367
7368 fi
7369 fi
7370 ac_ct_F77=$ac_cv_prog_ac_ct_F77
7371 if test -n "$ac_ct_F77"; then
7372   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7373 echo "${ECHO_T}$ac_ct_F77" >&6
7374 else
7375   echo "$as_me:$LINENO: result: no" >&5
7376 echo "${ECHO_T}no" >&6
7377 fi
7378
7379   test -n "$ac_ct_F77" && break
7380 done
7381
7382   F77=$ac_ct_F77
7383 fi
7384
7385
7386 # Provide some information about the compiler.
7387 echo "$as_me:7387:" \
7388      "checking for Fortran 77 compiler version" >&5
7389 ac_compiler=`set X $ac_compile; echo $2`
7390 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
7391   (eval $ac_compiler --version </dev/null >&5) 2>&5
7392   ac_status=$?
7393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7394   (exit $ac_status); }
7395 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
7396   (eval $ac_compiler -v </dev/null >&5) 2>&5
7397   ac_status=$?
7398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7399   (exit $ac_status); }
7400 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
7401   (eval $ac_compiler -V </dev/null >&5) 2>&5
7402   ac_status=$?
7403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7404   (exit $ac_status); }
7405 rm -f a.out
7406
7407 # If we don't use `.F' as extension, the preprocessor is not run on the
7408 # input file.  (Note that this only needs to work for GNU compilers.)
7409 ac_save_ext=$ac_ext
7410 ac_ext=F
7411 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7412 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
7413 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7414   echo $ECHO_N "(cached) $ECHO_C" >&6
7415 else
7416   cat >conftest.$ac_ext <<_ACEOF
7417       program main
7418 #ifndef __GNUC__
7419        choke me
7420 #endif
7421
7422       end
7423 _ACEOF
7424 rm -f conftest.$ac_objext
7425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7426   (eval $ac_compile) 2>conftest.er1
7427   ac_status=$?
7428   grep -v '^ *+' conftest.er1 >conftest.err
7429   rm -f conftest.er1
7430   cat conftest.err >&5
7431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7432   (exit $ac_status); } &&
7433          { ac_try='test -z "$ac_f77_werror_flag"
7434                          || test ! -s conftest.err'
7435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7436   (eval $ac_try) 2>&5
7437   ac_status=$?
7438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7439   (exit $ac_status); }; } &&
7440          { ac_try='test -s conftest.$ac_objext'
7441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7442   (eval $ac_try) 2>&5
7443   ac_status=$?
7444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7445   (exit $ac_status); }; }; then
7446   ac_compiler_gnu=yes
7447 else
7448   echo "$as_me: failed program was:" >&5
7449 sed 's/^/| /' conftest.$ac_ext >&5
7450
7451 ac_compiler_gnu=no
7452 fi
7453 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7454 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7455
7456 fi
7457 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7458 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
7459 ac_ext=$ac_save_ext
7460 ac_test_FFLAGS=${FFLAGS+set}
7461 ac_save_FFLAGS=$FFLAGS
7462 FFLAGS=
7463 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7464 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
7465 if test "${ac_cv_prog_f77_g+set}" = set; then
7466   echo $ECHO_N "(cached) $ECHO_C" >&6
7467 else
7468   FFLAGS=-g
7469 cat >conftest.$ac_ext <<_ACEOF
7470       program main
7471
7472       end
7473 _ACEOF
7474 rm -f conftest.$ac_objext
7475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7476   (eval $ac_compile) 2>conftest.er1
7477   ac_status=$?
7478   grep -v '^ *+' conftest.er1 >conftest.err
7479   rm -f conftest.er1
7480   cat conftest.err >&5
7481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7482   (exit $ac_status); } &&
7483          { ac_try='test -z "$ac_f77_werror_flag"
7484                          || test ! -s conftest.err'
7485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7486   (eval $ac_try) 2>&5
7487   ac_status=$?
7488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7489   (exit $ac_status); }; } &&
7490          { ac_try='test -s conftest.$ac_objext'
7491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7492   (eval $ac_try) 2>&5
7493   ac_status=$?
7494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7495   (exit $ac_status); }; }; then
7496   ac_cv_prog_f77_g=yes
7497 else
7498   echo "$as_me: failed program was:" >&5
7499 sed 's/^/| /' conftest.$ac_ext >&5
7500
7501 ac_cv_prog_f77_g=no
7502 fi
7503 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7504
7505 fi
7506 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7507 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
7508 if test "$ac_test_FFLAGS" = set; then
7509   FFLAGS=$ac_save_FFLAGS
7510 elif test $ac_cv_prog_f77_g = yes; then
7511   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7512     FFLAGS="-g -O2"
7513   else
7514     FFLAGS="-g"
7515   fi
7516 else
7517   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7518     FFLAGS="-O2"
7519   else
7520     FFLAGS=
7521   fi
7522 fi
7523
7524 G77=`test $ac_compiler_gnu = yes && echo yes`
7525 ac_ext=c
7526 ac_cpp='$CPP $CPPFLAGS'
7527 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7528 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7529 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7530
7531
7532
7533 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7534
7535 # find the maximum length of command line arguments
7536 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7537 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
7538 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7539   echo $ECHO_N "(cached) $ECHO_C" >&6
7540 else
7541     i=0
7542   teststring="ABCD"
7543
7544   case $build_os in
7545   msdosdjgpp*)
7546     # On DJGPP, this test can blow up pretty badly due to problems in libc
7547     # (any single argument exceeding 2000 bytes causes a buffer overrun
7548     # during glob expansion).  Even if it were fixed, the result of this
7549     # check would be larger than it should be.
7550     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7551     ;;
7552
7553   gnu*)
7554     # Under GNU Hurd, this test is not required because there is
7555     # no limit to the length of command line arguments.
7556     # Libtool will interpret -1 as no limit whatsoever
7557     lt_cv_sys_max_cmd_len=-1;
7558     ;;
7559
7560   cygwin* | mingw*)
7561     # On Win9x/ME, this test blows up -- it succeeds, but takes
7562     # about 5 minutes as the teststring grows exponentially.
7563     # Worse, since 9x/ME are not pre-emptively multitasking,
7564     # you end up with a "frozen" computer, even though with patience
7565     # the test eventually succeeds (with a max line length of 256k).
7566     # Instead, let's just punt: use the minimum linelength reported by
7567     # all of the supported platforms: 8192 (on NT/2K/XP).
7568     lt_cv_sys_max_cmd_len=8192;
7569     ;;
7570
7571   amigaos*)
7572     # On AmigaOS with pdksh, this test takes hours, literally.
7573     # So we just punt and use a minimum line length of 8192.
7574     lt_cv_sys_max_cmd_len=8192;
7575     ;;
7576
7577   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7578     # This has been around since 386BSD, at least.  Likely further.
7579     if test -x /sbin/sysctl; then
7580       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7581     elif test -x /usr/sbin/sysctl; then
7582       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7583     else
7584       lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
7585     fi
7586     # And add a safety zone
7587     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7588     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7589     ;;
7590   osf*)
7591     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7592     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7593     # nice to cause kernel panics so lets avoid the loop below.
7594     # First set a reasonable default.
7595     lt_cv_sys_max_cmd_len=16384
7596     #
7597     if test -x /sbin/sysconfig; then
7598       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7599         *1*) lt_cv_sys_max_cmd_len=-1 ;;
7600       esac
7601     fi
7602     ;;
7603   *)
7604     # If test is not a shell built-in, we'll probably end up computing a
7605     # maximum length that is only half of the actual maximum length, but
7606     # we can't tell.
7607     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7608     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7609                = "XX$teststring") >/dev/null 2>&1 &&
7610             new_result=`expr "X$teststring" : ".*" 2>&1` &&
7611             lt_cv_sys_max_cmd_len=$new_result &&
7612             test $i != 17 # 1/2 MB should be enough
7613     do
7614       i=`expr $i + 1`
7615       teststring=$teststring$teststring
7616     done
7617     teststring=
7618     # Add a significant safety factor because C++ compilers can tack on massive
7619     # amounts of additional arguments before passing them to the linker.
7620     # It appears as though 1/2 is a usable value.
7621     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7622     ;;
7623   esac
7624
7625 fi
7626
7627 if test -n $lt_cv_sys_max_cmd_len ; then
7628   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7629 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7630 else
7631   echo "$as_me:$LINENO: result: none" >&5
7632 echo "${ECHO_T}none" >&6
7633 fi
7634
7635
7636
7637
7638 # Check for command to grab the raw symbol name followed by C symbol from nm.
7639 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7640 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7641 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7642   echo $ECHO_N "(cached) $ECHO_C" >&6
7643 else
7644
7645 # These are sane defaults that work on at least a few old systems.
7646 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7647
7648 # Character class describing NM global symbol codes.
7649 symcode='[BCDEGRST]'
7650
7651 # Regexp to match symbols that can be accessed directly from C.
7652 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7653
7654 # Transform an extracted symbol line into a proper C declaration
7655 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7656
7657 # Transform an extracted symbol line into symbol name and symbol address
7658 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'"
7659
7660 # Define system-specific variables.
7661 case $host_os in
7662 aix*)
7663   symcode='[BCDT]'
7664   ;;
7665 cygwin* | mingw* | pw32*)
7666   symcode='[ABCDGISTW]'
7667   ;;
7668 hpux*) # Its linker distinguishes data from code symbols
7669   if test "$host_cpu" = ia64; then
7670     symcode='[ABCDEGRST]'
7671   fi
7672   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7673   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'"
7674   ;;
7675 linux*)
7676   if test "$host_cpu" = ia64; then
7677     symcode='[ABCDGIRSTW]'
7678     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7679     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'"
7680   fi
7681   ;;
7682 irix* | nonstopux*)
7683   symcode='[BCDEGRST]'
7684   ;;
7685 osf*)
7686   symcode='[BCDEGQRST]'
7687   ;;
7688 solaris* | sysv5*)
7689   symcode='[BDRT]'
7690   ;;
7691 sysv4)
7692   symcode='[DFNSTU]'
7693   ;;
7694 esac
7695
7696 # Handle CRLF in mingw tool chain
7697 opt_cr=
7698 case $build_os in
7699 mingw*)
7700   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7701   ;;
7702 esac
7703
7704 # If we're using GNU nm, then use its standard symbol codes.
7705 case `$NM -V 2>&1` in
7706 *GNU* | *'with BFD'*)
7707   symcode='[ABCDGIRSTW]' ;;
7708 esac
7709
7710 # Try without a prefix undercore, then with it.
7711 for ac_symprfx in "" "_"; do
7712
7713   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7714   symxfrm="\\1 $ac_symprfx\\2 \\2"
7715
7716   # Write the raw and C identifiers.
7717   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7718
7719   # Check to see that the pipe works correctly.
7720   pipe_works=no
7721
7722   rm -f conftest*
7723   cat > conftest.$ac_ext <<EOF
7724 #ifdef __cplusplus
7725 extern "C" {
7726 #endif
7727 char nm_test_var;
7728 void nm_test_func(){}
7729 #ifdef __cplusplus
7730 }
7731 #endif
7732 int main(){nm_test_var='a';nm_test_func();return(0);}
7733 EOF
7734
7735   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7736   (eval $ac_compile) 2>&5
7737   ac_status=$?
7738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7739   (exit $ac_status); }; then
7740     # Now try to grab the symbols.
7741     nlist=conftest.nm
7742     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7743   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7744   ac_status=$?
7745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7746   (exit $ac_status); } && test -s "$nlist"; then
7747       # Try sorting and uniquifying the output.
7748       if sort "$nlist" | uniq > "$nlist"T; then
7749         mv -f "$nlist"T "$nlist"
7750       else
7751         rm -f "$nlist"T
7752       fi
7753
7754       # Make sure that we snagged all the symbols we need.
7755       if grep ' nm_test_var$' "$nlist" >/dev/null; then
7756         if grep ' nm_test_func$' "$nlist" >/dev/null; then
7757           cat <<EOF > conftest.$ac_ext
7758 #ifdef __cplusplus
7759 extern "C" {
7760 #endif
7761
7762 EOF
7763           # Now generate the symbol file.
7764           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7765
7766           cat <<EOF >> conftest.$ac_ext
7767 #if defined (__STDC__) && __STDC__
7768 # define lt_ptr_t void *
7769 #else
7770 # define lt_ptr_t char *
7771 # define const
7772 #endif
7773
7774 /* The mapping between symbol names and symbols. */
7775 const struct {
7776   const char *name;
7777   lt_ptr_t address;
7778 }
7779 lt_preloaded_symbols[] =
7780 {
7781 EOF
7782           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7783           cat <<\EOF >> conftest.$ac_ext
7784   {0, (lt_ptr_t) 0}
7785 };
7786
7787 #ifdef __cplusplus
7788 }
7789 #endif
7790 EOF
7791           # Now try linking the two files.
7792           mv conftest.$ac_objext conftstm.$ac_objext
7793           lt_save_LIBS="$LIBS"
7794           lt_save_CFLAGS="$CFLAGS"
7795           LIBS="conftstm.$ac_objext"
7796           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7797           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7798   (eval $ac_link) 2>&5
7799   ac_status=$?
7800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7801   (exit $ac_status); } && test -s conftest${ac_exeext}; then
7802             pipe_works=yes
7803           fi
7804           LIBS="$lt_save_LIBS"
7805           CFLAGS="$lt_save_CFLAGS"
7806         else
7807           echo "cannot find nm_test_func in $nlist" >&5
7808         fi
7809       else
7810         echo "cannot find nm_test_var in $nlist" >&5
7811       fi
7812     else
7813       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7814     fi
7815   else
7816     echo "$progname: failed program was:" >&5
7817     cat conftest.$ac_ext >&5
7818   fi
7819   rm -f conftest* conftst*
7820
7821   # Do not use the global_symbol_pipe unless it works.
7822   if test "$pipe_works" = yes; then
7823     break
7824   else
7825     lt_cv_sys_global_symbol_pipe=
7826   fi
7827 done
7828
7829 fi
7830
7831 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7832   lt_cv_sys_global_symbol_to_cdecl=
7833 fi
7834 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7835   echo "$as_me:$LINENO: result: failed" >&5
7836 echo "${ECHO_T}failed" >&6
7837 else
7838   echo "$as_me:$LINENO: result: ok" >&5
7839 echo "${ECHO_T}ok" >&6
7840 fi
7841
7842 echo "$as_me:$LINENO: checking for objdir" >&5
7843 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7844 if test "${lt_cv_objdir+set}" = set; then
7845   echo $ECHO_N "(cached) $ECHO_C" >&6
7846 else
7847   rm -f .libs 2>/dev/null
7848 mkdir .libs 2>/dev/null
7849 if test -d .libs; then
7850   lt_cv_objdir=.libs
7851 else
7852   # MS-DOS does not allow filenames that begin with a dot.
7853   lt_cv_objdir=_libs
7854 fi
7855 rmdir .libs 2>/dev/null
7856 fi
7857 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7858 echo "${ECHO_T}$lt_cv_objdir" >&6
7859 objdir=$lt_cv_objdir
7860
7861
7862
7863
7864
7865 case $host_os in
7866 aix3*)
7867   # AIX sometimes has problems with the GCC collect2 program.  For some
7868   # reason, if we set the COLLECT_NAMES environment variable, the problems
7869   # vanish in a puff of smoke.
7870   if test "X${COLLECT_NAMES+set}" != Xset; then
7871     COLLECT_NAMES=
7872     export COLLECT_NAMES
7873   fi
7874   ;;
7875 esac
7876
7877 # Sed substitution that helps us do robust quoting.  It backslashifies
7878 # metacharacters that are still active within double-quoted strings.
7879 Xsed='sed -e 1s/^X//'
7880 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7881
7882 # Same as above, but do not quote variable references.
7883 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7884
7885 # Sed substitution to delay expansion of an escaped shell variable in a
7886 # double_quote_subst'ed string.
7887 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7888
7889 # Sed substitution to avoid accidental globbing in evaled expressions
7890 no_glob_subst='s/\*/\\\*/g'
7891
7892 # Constants:
7893 rm="rm -f"
7894
7895 # Global variables:
7896 default_ofile=libtool
7897 can_build_shared=yes
7898
7899 # All known linkers require a `.a' archive for static linking (except M$VC,
7900 # which needs '.lib').
7901 libext=a
7902 ltmain="$ac_aux_dir/ltmain.sh"
7903 ofile="$default_ofile"
7904 with_gnu_ld="$lt_cv_prog_gnu_ld"
7905
7906 if test -n "$ac_tool_prefix"; then
7907   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7908 set dummy ${ac_tool_prefix}ar; ac_word=$2
7909 echo "$as_me:$LINENO: checking for $ac_word" >&5
7910 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7911 if test "${ac_cv_prog_AR+set}" = set; then
7912   echo $ECHO_N "(cached) $ECHO_C" >&6
7913 else
7914   if test -n "$AR"; then
7915   ac_cv_prog_AR="$AR" # Let the user override the test.
7916 else
7917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7918 for as_dir in $PATH
7919 do
7920   IFS=$as_save_IFS
7921   test -z "$as_dir" && as_dir=.
7922   for ac_exec_ext in '' $ac_executable_extensions; do
7923   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7924     ac_cv_prog_AR="${ac_tool_prefix}ar"
7925     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7926     break 2
7927   fi
7928 done
7929 done
7930
7931 fi
7932 fi
7933 AR=$ac_cv_prog_AR
7934 if test -n "$AR"; then
7935   echo "$as_me:$LINENO: result: $AR" >&5
7936 echo "${ECHO_T}$AR" >&6
7937 else
7938   echo "$as_me:$LINENO: result: no" >&5
7939 echo "${ECHO_T}no" >&6
7940 fi
7941
7942 fi
7943 if test -z "$ac_cv_prog_AR"; then
7944   ac_ct_AR=$AR
7945   # Extract the first word of "ar", so it can be a program name with args.
7946 set dummy ar; ac_word=$2
7947 echo "$as_me:$LINENO: checking for $ac_word" >&5
7948 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7949 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7950   echo $ECHO_N "(cached) $ECHO_C" >&6
7951 else
7952   if test -n "$ac_ct_AR"; then
7953   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7954 else
7955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7956 for as_dir in $PATH
7957 do
7958   IFS=$as_save_IFS
7959   test -z "$as_dir" && as_dir=.
7960   for ac_exec_ext in '' $ac_executable_extensions; do
7961   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7962     ac_cv_prog_ac_ct_AR="ar"
7963     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7964     break 2
7965   fi
7966 done
7967 done
7968
7969   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7970 fi
7971 fi
7972 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7973 if test -n "$ac_ct_AR"; then
7974   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7975 echo "${ECHO_T}$ac_ct_AR" >&6
7976 else
7977   echo "$as_me:$LINENO: result: no" >&5
7978 echo "${ECHO_T}no" >&6
7979 fi
7980
7981   AR=$ac_ct_AR
7982 else
7983   AR="$ac_cv_prog_AR"
7984 fi
7985
7986 if test -n "$ac_tool_prefix"; then
7987   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7988 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7989 echo "$as_me:$LINENO: checking for $ac_word" >&5
7990 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7991 if test "${ac_cv_prog_RANLIB+set}" = set; then
7992   echo $ECHO_N "(cached) $ECHO_C" >&6
7993 else
7994   if test -n "$RANLIB"; then
7995   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7996 else
7997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7998 for as_dir in $PATH
7999 do
8000   IFS=$as_save_IFS
8001   test -z "$as_dir" && as_dir=.
8002   for ac_exec_ext in '' $ac_executable_extensions; do
8003   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8004     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8005     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8006     break 2
8007   fi
8008 done
8009 done
8010
8011 fi
8012 fi
8013 RANLIB=$ac_cv_prog_RANLIB
8014 if test -n "$RANLIB"; then
8015   echo "$as_me:$LINENO: result: $RANLIB" >&5
8016 echo "${ECHO_T}$RANLIB" >&6
8017 else
8018   echo "$as_me:$LINENO: result: no" >&5
8019 echo "${ECHO_T}no" >&6
8020 fi
8021
8022 fi
8023 if test -z "$ac_cv_prog_RANLIB"; then
8024   ac_ct_RANLIB=$RANLIB
8025   # Extract the first word of "ranlib", so it can be a program name with args.
8026 set dummy ranlib; ac_word=$2
8027 echo "$as_me:$LINENO: checking for $ac_word" >&5
8028 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8029 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8030   echo $ECHO_N "(cached) $ECHO_C" >&6
8031 else
8032   if test -n "$ac_ct_RANLIB"; then
8033   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8034 else
8035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8036 for as_dir in $PATH
8037 do
8038   IFS=$as_save_IFS
8039   test -z "$as_dir" && as_dir=.
8040   for ac_exec_ext in '' $ac_executable_extensions; do
8041   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8042     ac_cv_prog_ac_ct_RANLIB="ranlib"
8043     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8044     break 2
8045   fi
8046 done
8047 done
8048
8049   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
8050 fi
8051 fi
8052 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8053 if test -n "$ac_ct_RANLIB"; then
8054   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8055 echo "${ECHO_T}$ac_ct_RANLIB" >&6
8056 else
8057   echo "$as_me:$LINENO: result: no" >&5
8058 echo "${ECHO_T}no" >&6
8059 fi
8060
8061   RANLIB=$ac_ct_RANLIB
8062 else
8063   RANLIB="$ac_cv_prog_RANLIB"
8064 fi
8065
8066 if test -n "$ac_tool_prefix"; then
8067   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8068 set dummy ${ac_tool_prefix}strip; ac_word=$2
8069 echo "$as_me:$LINENO: checking for $ac_word" >&5
8070 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8071 if test "${ac_cv_prog_STRIP+set}" = set; then
8072   echo $ECHO_N "(cached) $ECHO_C" >&6
8073 else
8074   if test -n "$STRIP"; then
8075   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8076 else
8077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8078 for as_dir in $PATH
8079 do
8080   IFS=$as_save_IFS
8081   test -z "$as_dir" && as_dir=.
8082   for ac_exec_ext in '' $ac_executable_extensions; do
8083   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8084     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8085     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8086     break 2
8087   fi
8088 done
8089 done
8090
8091 fi
8092 fi
8093 STRIP=$ac_cv_prog_STRIP
8094 if test -n "$STRIP"; then
8095   echo "$as_me:$LINENO: result: $STRIP" >&5
8096 echo "${ECHO_T}$STRIP" >&6
8097 else
8098   echo "$as_me:$LINENO: result: no" >&5
8099 echo "${ECHO_T}no" >&6
8100 fi
8101
8102 fi
8103 if test -z "$ac_cv_prog_STRIP"; then
8104   ac_ct_STRIP=$STRIP
8105   # Extract the first word of "strip", so it can be a program name with args.
8106 set dummy strip; ac_word=$2
8107 echo "$as_me:$LINENO: checking for $ac_word" >&5
8108 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8109 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8110   echo $ECHO_N "(cached) $ECHO_C" >&6
8111 else
8112   if test -n "$ac_ct_STRIP"; then
8113   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8114 else
8115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8116 for as_dir in $PATH
8117 do
8118   IFS=$as_save_IFS
8119   test -z "$as_dir" && as_dir=.
8120   for ac_exec_ext in '' $ac_executable_extensions; do
8121   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8122     ac_cv_prog_ac_ct_STRIP="strip"
8123     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8124     break 2
8125   fi
8126 done
8127 done
8128
8129   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
8130 fi
8131 fi
8132 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8133 if test -n "$ac_ct_STRIP"; then
8134   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8135 echo "${ECHO_T}$ac_ct_STRIP" >&6
8136 else
8137   echo "$as_me:$LINENO: result: no" >&5
8138 echo "${ECHO_T}no" >&6
8139 fi
8140
8141   STRIP=$ac_ct_STRIP
8142 else
8143   STRIP="$ac_cv_prog_STRIP"
8144 fi
8145
8146
8147 old_CC="$CC"
8148 old_CFLAGS="$CFLAGS"
8149
8150 # Set sane defaults for various variables
8151 test -z "$AR" && AR=ar
8152 test -z "$AR_FLAGS" && AR_FLAGS=cru
8153 test -z "$AS" && AS=as
8154 test -z "$CC" && CC=cc
8155 test -z "$LTCC" && LTCC=$CC
8156 test -z "$DLLTOOL" && DLLTOOL=dlltool
8157 test -z "$LD" && LD=ld
8158 test -z "$LN_S" && LN_S="ln -s"
8159 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8160 test -z "$NM" && NM=nm
8161 test -z "$SED" && SED=sed
8162 test -z "$OBJDUMP" && OBJDUMP=objdump
8163 test -z "$RANLIB" && RANLIB=:
8164 test -z "$STRIP" && STRIP=:
8165 test -z "$ac_objext" && ac_objext=o
8166
8167 # Determine commands to create old-style static archives.
8168 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8169 old_postinstall_cmds='chmod 644 $oldlib'
8170 old_postuninstall_cmds=
8171
8172 if test -n "$RANLIB"; then
8173   case $host_os in
8174   openbsd*)
8175     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
8176     ;;
8177   *)
8178     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
8179     ;;
8180   esac
8181   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8182 fi
8183
8184 for cc_temp in $compiler""; do
8185   case $cc_temp in
8186     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8187     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8188     \-*) ;;
8189     *) break;;
8190   esac
8191 done
8192 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8193
8194
8195 # Only perform the check for file, if the check method requires it
8196 case $deplibs_check_method in
8197 file_magic*)
8198   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8199     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8200 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
8201 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8202   echo $ECHO_N "(cached) $ECHO_C" >&6
8203 else
8204   case $MAGIC_CMD in
8205 [\\/*] |  ?:[\\/]*)
8206   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8207   ;;
8208 *)
8209   lt_save_MAGIC_CMD="$MAGIC_CMD"
8210   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8211   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8212   for ac_dir in $ac_dummy; do
8213     IFS="$lt_save_ifs"
8214     test -z "$ac_dir" && ac_dir=.
8215     if test -f $ac_dir/${ac_tool_prefix}file; then
8216       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8217       if test -n "$file_magic_test_file"; then
8218         case $deplibs_check_method in
8219         "file_magic "*)
8220           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
8221           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8222           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8223             $EGREP "$file_magic_regex" > /dev/null; then
8224             :
8225           else
8226             cat <<EOF 1>&2
8227
8228 *** Warning: the command libtool uses to detect shared libraries,
8229 *** $file_magic_cmd, produces output that libtool cannot recognize.
8230 *** The result is that libtool may fail to recognize shared libraries
8231 *** as such.  This will affect the creation of libtool libraries that
8232 *** depend on shared libraries, but programs linked with such libtool
8233 *** libraries will work regardless of this problem.  Nevertheless, you
8234 *** may want to report the problem to your system manager and/or to
8235 *** bug-libtool@gnu.org
8236
8237 EOF
8238           fi ;;
8239         esac
8240       fi
8241       break
8242     fi
8243   done
8244   IFS="$lt_save_ifs"
8245   MAGIC_CMD="$lt_save_MAGIC_CMD"
8246   ;;
8247 esac
8248 fi
8249
8250 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8251 if test -n "$MAGIC_CMD"; then
8252   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8253 echo "${ECHO_T}$MAGIC_CMD" >&6
8254 else
8255   echo "$as_me:$LINENO: result: no" >&5
8256 echo "${ECHO_T}no" >&6
8257 fi
8258
8259 if test -z "$lt_cv_path_MAGIC_CMD"; then
8260   if test -n "$ac_tool_prefix"; then
8261     echo "$as_me:$LINENO: checking for file" >&5
8262 echo $ECHO_N "checking for file... $ECHO_C" >&6
8263 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8264   echo $ECHO_N "(cached) $ECHO_C" >&6
8265 else
8266   case $MAGIC_CMD in
8267 [\\/*] |  ?:[\\/]*)
8268   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8269   ;;
8270 *)
8271   lt_save_MAGIC_CMD="$MAGIC_CMD"
8272   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8273   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8274   for ac_dir in $ac_dummy; do
8275     IFS="$lt_save_ifs"
8276     test -z "$ac_dir" && ac_dir=.
8277     if test -f $ac_dir/file; then
8278       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8279       if test -n "$file_magic_test_file"; then
8280         case $deplibs_check_method in
8281         "file_magic "*)
8282           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
8283           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8284           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8285             $EGREP "$file_magic_regex" > /dev/null; then
8286             :
8287           else
8288             cat <<EOF 1>&2
8289
8290 *** Warning: the command libtool uses to detect shared libraries,
8291 *** $file_magic_cmd, produces output that libtool cannot recognize.
8292 *** The result is that libtool may fail to recognize shared libraries
8293 *** as such.  This will affect the creation of libtool libraries that
8294 *** depend on shared libraries, but programs linked with such libtool
8295 *** libraries will work regardless of this problem.  Nevertheless, you
8296 *** may want to report the problem to your system manager and/or to
8297 *** bug-libtool@gnu.org
8298
8299 EOF
8300           fi ;;
8301         esac
8302       fi
8303       break
8304     fi
8305   done
8306   IFS="$lt_save_ifs"
8307   MAGIC_CMD="$lt_save_MAGIC_CMD"
8308   ;;
8309 esac
8310 fi
8311
8312 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8313 if test -n "$MAGIC_CMD"; then
8314   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8315 echo "${ECHO_T}$MAGIC_CMD" >&6
8316 else
8317   echo "$as_me:$LINENO: result: no" >&5
8318 echo "${ECHO_T}no" >&6
8319 fi
8320
8321   else
8322     MAGIC_CMD=:
8323   fi
8324 fi
8325
8326   fi
8327   ;;
8328 esac
8329
8330 enable_dlopen=yes
8331 enable_win32_dll=yes
8332
8333 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
8334 if test "${enable_libtool_lock+set}" = set; then
8335   enableval="$enable_libtool_lock"
8336
8337 fi;
8338 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8339
8340
8341 # Check whether --with-pic or --without-pic was given.
8342 if test "${with_pic+set}" = set; then
8343   withval="$with_pic"
8344   pic_mode="$withval"
8345 else
8346   pic_mode=default
8347 fi;
8348 test -z "$pic_mode" && pic_mode=default
8349
8350 # Use C for the default configuration in the libtool script
8351 tagname=
8352 lt_save_CC="$CC"
8353 ac_ext=c
8354 ac_cpp='$CPP $CPPFLAGS'
8355 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8356 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8357 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8358
8359
8360 # Source file extension for C test sources.
8361 ac_ext=c
8362
8363 # Object file extension for compiled C test sources.
8364 objext=o
8365 objext=$objext
8366
8367 # Code to be used in simple compile tests
8368 lt_simple_compile_test_code="int some_variable = 0;\n"
8369
8370 # Code to be used in simple link tests
8371 lt_simple_link_test_code='int main(){return(0);}\n'
8372
8373
8374 # If no C compiler was specified, use CC.
8375 LTCC=${LTCC-"$CC"}
8376
8377 # Allow CC to be a program name with arguments.
8378 compiler=$CC
8379
8380
8381 # save warnings/boilerplate of simple test code
8382 ac_outfile=conftest.$ac_objext
8383 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8384 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
8385 _lt_compiler_boilerplate=`cat conftest.err`
8386 $rm conftest*
8387
8388 ac_outfile=conftest.$ac_objext
8389 printf "$lt_simple_link_test_code" >conftest.$ac_ext
8390 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
8391 _lt_linker_boilerplate=`cat conftest.err`
8392 $rm conftest*
8393
8394
8395 #
8396 # Check for any special shared library compilation flags.
8397 #
8398 lt_prog_cc_shlib=
8399 if test "$GCC" = no; then
8400   case $host_os in
8401   sco3.2v5*)
8402     lt_prog_cc_shlib='-belf'
8403     ;;
8404   esac
8405 fi
8406 if test -n "$lt_prog_cc_shlib"; then
8407   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
8408 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
8409   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
8410   else
8411     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
8412 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
8413     lt_cv_prog_cc_can_build_shared=no
8414   fi
8415 fi
8416
8417
8418 #
8419 # Check to make sure the static flag actually works.
8420 #
8421 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
8422 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
8423 if test "${lt_prog_compiler_static_works+set}" = set; then
8424   echo $ECHO_N "(cached) $ECHO_C" >&6
8425 else
8426   lt_prog_compiler_static_works=no
8427    save_LDFLAGS="$LDFLAGS"
8428    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
8429    printf "$lt_simple_link_test_code" > conftest.$ac_ext
8430    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8431      # The compiler can only warn and ignore the option if not recognized
8432      # So say no if there are warnings
8433      if test -s conftest.err; then
8434        # Append any errors to the config.log.
8435        cat conftest.err 1>&5
8436        $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
8437        $SED '/^$/d' conftest.err >conftest.er2
8438        if diff conftest.exp conftest.er2 >/dev/null; then
8439          lt_prog_compiler_static_works=yes
8440        fi
8441      else
8442        lt_prog_compiler_static_works=yes
8443      fi
8444    fi
8445    $rm conftest*
8446    LDFLAGS="$save_LDFLAGS"
8447
8448 fi
8449 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8450 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8451
8452 if test x"$lt_prog_compiler_static_works" = xyes; then
8453     :
8454 else
8455     lt_prog_compiler_static=
8456 fi
8457
8458
8459
8460
8461 lt_prog_compiler_no_builtin_flag=
8462
8463 if test "$GCC" = yes; then
8464   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8465
8466
8467 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8468 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8469 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8470   echo $ECHO_N "(cached) $ECHO_C" >&6
8471 else
8472   lt_cv_prog_compiler_rtti_exceptions=no
8473   ac_outfile=conftest.$ac_objext
8474    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8475    lt_compiler_flag="-fno-rtti -fno-exceptions"
8476    # Insert the option either (1) after the last *FLAGS variable, or
8477    # (2) before a word containing "conftest.", or (3) at the end.
8478    # Note that $ac_compile itself does not contain backslashes and begins
8479    # with a dollar sign (not a hyphen), so the echo should work correctly.
8480    # The option is referenced via a variable to avoid confusing sed.
8481    lt_compile=`echo "$ac_compile" | $SED \
8482    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8483    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8484    -e 's:$: $lt_compiler_flag:'`
8485    (eval echo "\"\$as_me:8485: $lt_compile\"" >&5)
8486    (eval "$lt_compile" 2>conftest.err)
8487    ac_status=$?
8488    cat conftest.err >&5
8489    echo "$as_me:8489: \$? = $ac_status" >&5
8490    if (exit $ac_status) && test -s "$ac_outfile"; then
8491      # The compiler can only warn and ignore the option if not recognized
8492      # So say no if there are warnings other than the usual output.
8493      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
8494      $SED '/^$/d' conftest.err >conftest.er2
8495      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
8496        lt_cv_prog_compiler_rtti_exceptions=yes
8497      fi
8498    fi
8499    $rm conftest*
8500
8501 fi
8502 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8503 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8504
8505 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8506     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8507 else
8508     :
8509 fi
8510
8511 fi
8512
8513 lt_prog_compiler_wl=
8514 lt_prog_compiler_pic=
8515 lt_prog_compiler_static=
8516
8517 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8518 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8519
8520   if test "$GCC" = yes; then
8521     lt_prog_compiler_wl='-Wl,'
8522     lt_prog_compiler_static='-static'
8523
8524     case $host_os in
8525       aix*)
8526       # All AIX code is PIC.
8527       if test "$host_cpu" = ia64; then
8528         # AIX 5 now supports IA64 processor
8529         lt_prog_compiler_static='-Bstatic'
8530       fi
8531       ;;
8532
8533     amigaos*)
8534       # FIXME: we need at least 68020 code to build shared libraries, but
8535       # adding the `-m68020' flag to GCC prevents building anything better,
8536       # like `-m68040'.
8537       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8538       ;;
8539
8540     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8541       # PIC is the default for these OSes.
8542       ;;
8543
8544     mingw* | pw32* | os2*)
8545       # This hack is so that the source file can tell whether it is being
8546       # built for inclusion in a dll (and should export symbols for example).
8547       lt_prog_compiler_pic='-DDLL_EXPORT'
8548       ;;
8549
8550     darwin* | rhapsody*)
8551       # PIC is the default on this platform
8552       # Common symbols not allowed in MH_DYLIB files
8553       lt_prog_compiler_pic='-fno-common'
8554       ;;
8555
8556     msdosdjgpp*)
8557       # Just because we use GCC doesn't mean we suddenly get shared libraries
8558       # on systems that don't support them.
8559       lt_prog_compiler_can_build_shared=no
8560       enable_shared=no
8561       ;;
8562
8563     sysv4*MP*)
8564       if test -d /usr/nec; then
8565         lt_prog_compiler_pic=-Kconform_pic
8566       fi
8567       ;;
8568
8569     hpux*)
8570       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8571       # not for PA HP-UX.
8572       case "$host_cpu" in
8573       hppa*64*|ia64*)
8574         # +Z the default
8575         ;;
8576       *)
8577         lt_prog_compiler_pic='-fPIC'
8578         ;;
8579       esac
8580       ;;
8581
8582     *)
8583       lt_prog_compiler_pic='-fPIC'
8584       ;;
8585     esac
8586   else
8587     # PORTME Check for flag to pass linker flags through the system compiler.
8588     case $host_os in
8589     aix*)
8590       lt_prog_compiler_wl='-Wl,'
8591       if test "$host_cpu" = ia64; then
8592         # AIX 5 now supports IA64 processor
8593         lt_prog_compiler_static='-Bstatic'
8594       else
8595         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8596       fi
8597       ;;
8598       darwin*)
8599         # PIC is the default on this platform
8600         # Common symbols not allowed in MH_DYLIB files
8601        case $cc_basename in
8602          xlc*)
8603          lt_prog_compiler_pic='-qnocommon'
8604          lt_prog_compiler_wl='-Wl,'
8605          ;;
8606        esac
8607        ;;
8608
8609     mingw* | pw32* | os2*)
8610       # This hack is so that the source file can tell whether it is being
8611       # built for inclusion in a dll (and should export symbols for example).
8612       lt_prog_compiler_pic='-DDLL_EXPORT'
8613       ;;
8614
8615     hpux9* | hpux10* | hpux11*)
8616       lt_prog_compiler_wl='-Wl,'
8617       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8618       # not for PA HP-UX.
8619       case "$host_cpu" in
8620       hppa*64*|ia64*)
8621         # +Z the default
8622         ;;
8623       *)
8624         lt_prog_compiler_pic='+Z'
8625         ;;
8626       esac
8627       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8628       lt_prog_compiler_static='${wl}-a ${wl}archive'
8629       ;;
8630
8631     irix5* | irix6* | nonstopux*)
8632       lt_prog_compiler_wl='-Wl,'
8633       # PIC (with -KPIC) is the default.
8634       lt_prog_compiler_static='-non_shared'
8635       ;;
8636
8637     newsos6)
8638       lt_prog_compiler_pic='-KPIC'
8639       lt_prog_compiler_static='-Bstatic'
8640       ;;
8641
8642     linux*)
8643       case $cc_basename in
8644       icc* | ecc*)
8645         lt_prog_compiler_wl='-Wl,'
8646         lt_prog_compiler_pic='-KPIC'
8647         lt_prog_compiler_static='-static'
8648         ;;
8649       pgcc* | pgf77* | pgf90*)
8650         # Portland Group compilers (*not* the Pentium gcc compiler,
8651         # which looks to be a dead project)
8652         lt_prog_compiler_wl='-Wl,'
8653         lt_prog_compiler_pic='-fpic'
8654         lt_prog_compiler_static='-static'
8655         ;;
8656       ccc*)
8657         lt_prog_compiler_wl='-Wl,'
8658         # All Alpha code is PIC.
8659         lt_prog_compiler_static='-non_shared'
8660         ;;
8661       esac
8662       ;;
8663
8664     osf3* | osf4* | osf5*)
8665       lt_prog_compiler_wl='-Wl,'
8666       # All OSF/1 code is PIC.
8667       lt_prog_compiler_static='-non_shared'
8668       ;;
8669
8670     sco3.2v5*)
8671       lt_prog_compiler_pic='-Kpic'
8672       lt_prog_compiler_static='-dn'
8673       ;;
8674
8675     solaris*)
8676       lt_prog_compiler_pic='-KPIC'
8677       lt_prog_compiler_static='-Bstatic'
8678       case $cc_basename in
8679       f77* | f90* | f95*)
8680         lt_prog_compiler_wl='-Qoption ld ';;
8681       *)
8682         lt_prog_compiler_wl='-Wl,';;
8683       esac
8684       ;;
8685
8686     sunos4*)
8687       lt_prog_compiler_wl='-Qoption ld '
8688       lt_prog_compiler_pic='-PIC'
8689       lt_prog_compiler_static='-Bstatic'
8690       ;;
8691
8692     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8693       lt_prog_compiler_wl='-Wl,'
8694       lt_prog_compiler_pic='-KPIC'
8695       lt_prog_compiler_static='-Bstatic'
8696       ;;
8697
8698     sysv4*MP*)
8699       if test -d /usr/nec ;then
8700         lt_prog_compiler_pic='-Kconform_pic'
8701         lt_prog_compiler_static='-Bstatic'
8702       fi
8703       ;;
8704
8705     unicos*)
8706       lt_prog_compiler_wl='-Wl,'
8707       lt_prog_compiler_can_build_shared=no
8708       ;;
8709
8710     uts4*)
8711       lt_prog_compiler_pic='-pic'
8712       lt_prog_compiler_static='-Bstatic'
8713       ;;
8714
8715     *)
8716       lt_prog_compiler_can_build_shared=no
8717       ;;
8718     esac
8719   fi
8720
8721 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8722 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8723
8724 #
8725 # Check to make sure the PIC flag actually works.
8726 #
8727 if test -n "$lt_prog_compiler_pic"; then
8728
8729 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8730 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8731 if test "${lt_prog_compiler_pic_works+set}" = set; then
8732   echo $ECHO_N "(cached) $ECHO_C" >&6
8733 else
8734   lt_prog_compiler_pic_works=no
8735   ac_outfile=conftest.$ac_objext
8736    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8737    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8738    # Insert the option either (1) after the last *FLAGS variable, or
8739    # (2) before a word containing "conftest.", or (3) at the end.
8740    # Note that $ac_compile itself does not contain backslashes and begins
8741    # with a dollar sign (not a hyphen), so the echo should work correctly.
8742    # The option is referenced via a variable to avoid confusing sed.
8743    lt_compile=`echo "$ac_compile" | $SED \
8744    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8745    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8746    -e 's:$: $lt_compiler_flag:'`
8747    (eval echo "\"\$as_me:8747: $lt_compile\"" >&5)
8748    (eval "$lt_compile" 2>conftest.err)
8749    ac_status=$?
8750    cat conftest.err >&5
8751    echo "$as_me:8751: \$? = $ac_status" >&5
8752    if (exit $ac_status) && test -s "$ac_outfile"; then
8753      # The compiler can only warn and ignore the option if not recognized
8754      # So say no if there are warnings other than the usual output.
8755      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
8756      $SED '/^$/d' conftest.err >conftest.er2
8757      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
8758        lt_prog_compiler_pic_works=yes
8759      fi
8760    fi
8761    $rm conftest*
8762
8763 fi
8764 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8765 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8766
8767 if test x"$lt_prog_compiler_pic_works" = xyes; then
8768     case $lt_prog_compiler_pic in
8769      "" | " "*) ;;
8770      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8771      esac
8772 else
8773     lt_prog_compiler_pic=
8774      lt_prog_compiler_can_build_shared=no
8775 fi
8776
8777 fi
8778 case "$host_os" in
8779   # For platforms which do not support PIC, -DPIC is meaningless:
8780   *djgpp*)
8781     lt_prog_compiler_pic=
8782     ;;
8783   *)
8784     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8785     ;;
8786 esac
8787
8788 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8789 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8790 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8791   echo $ECHO_N "(cached) $ECHO_C" >&6
8792 else
8793   lt_cv_prog_compiler_c_o=no
8794    $rm -r conftest 2>/dev/null
8795    mkdir conftest
8796    cd conftest
8797    mkdir out
8798    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8799
8800    lt_compiler_flag="-o out/conftest2.$ac_objext"
8801    # Insert the option either (1) after the last *FLAGS variable, or
8802    # (2) before a word containing "conftest.", or (3) at the end.
8803    # Note that $ac_compile itself does not contain backslashes and begins
8804    # with a dollar sign (not a hyphen), so the echo should work correctly.
8805    lt_compile=`echo "$ac_compile" | $SED \
8806    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8807    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8808    -e 's:$: $lt_compiler_flag:'`
8809    (eval echo "\"\$as_me:8809: $lt_compile\"" >&5)
8810    (eval "$lt_compile" 2>out/conftest.err)
8811    ac_status=$?
8812    cat out/conftest.err >&5
8813    echo "$as_me:8813: \$? = $ac_status" >&5
8814    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8815    then
8816      # The compiler can only warn and ignore the option if not recognized
8817      # So say no if there are warnings
8818      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
8819      $SED '/^$/d' out/conftest.err >out/conftest.er2
8820      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8821        lt_cv_prog_compiler_c_o=yes
8822      fi
8823    fi
8824    chmod u+w .
8825    $rm conftest*
8826    # SGI C++ compiler will create directory out/ii_files/ for
8827    # template instantiation
8828    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8829    $rm out/* && rmdir out
8830    cd ..
8831    rmdir conftest
8832    $rm conftest*
8833
8834 fi
8835 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8836 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8837
8838
8839 hard_links="nottested"
8840 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8841   # do not overwrite the value of need_locks provided by the user
8842   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8843 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8844   hard_links=yes
8845   $rm conftest*
8846   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8847   touch conftest.a
8848   ln conftest.a conftest.b 2>&5 || hard_links=no
8849   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8850   echo "$as_me:$LINENO: result: $hard_links" >&5
8851 echo "${ECHO_T}$hard_links" >&6
8852   if test "$hard_links" = no; then
8853     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8854 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8855     need_locks=warn
8856   fi
8857 else
8858   need_locks=no
8859 fi
8860
8861 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8862 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8863
8864   runpath_var=
8865   allow_undefined_flag=
8866   enable_shared_with_static_runtimes=no
8867   archive_cmds=
8868   archive_expsym_cmds=
8869   old_archive_From_new_cmds=
8870   old_archive_from_expsyms_cmds=
8871   export_dynamic_flag_spec=
8872   whole_archive_flag_spec=
8873   thread_safe_flag_spec=
8874   hardcode_libdir_flag_spec=
8875   hardcode_libdir_flag_spec_ld=
8876   hardcode_libdir_separator=
8877   hardcode_direct=no
8878   hardcode_minus_L=no
8879   hardcode_shlibpath_var=unsupported
8880   link_all_deplibs=unknown
8881   hardcode_automatic=no
8882   module_cmds=
8883   module_expsym_cmds=
8884   always_export_symbols=no
8885   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8886   # include_expsyms should be a list of space-separated symbols to be *always*
8887   # included in the symbol list
8888   include_expsyms=
8889   # exclude_expsyms can be an extended regexp of symbols to exclude
8890   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8891   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8892   # as well as any symbol that contains `d'.
8893   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8894   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8895   # platforms (ab)use it in PIC code, but their linkers get confused if
8896   # the symbol is explicitly referenced.  Since portable code cannot
8897   # rely on this symbol name, it's probably fine to never include it in
8898   # preloaded symbol tables.
8899   extract_expsyms_cmds=
8900   # Just being paranoid about ensuring that cc_basename is set.
8901   for cc_temp in $compiler""; do
8902   case $cc_temp in
8903     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8904     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8905     \-*) ;;
8906     *) break;;
8907   esac
8908 done
8909 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8910
8911   case $host_os in
8912   cygwin* | mingw* | pw32*)
8913     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8914     # When not using gcc, we currently assume that we are using
8915     # Microsoft Visual C++.
8916     if test "$GCC" != yes; then
8917       with_gnu_ld=no
8918     fi
8919     ;;
8920   openbsd*)
8921     with_gnu_ld=no
8922     ;;
8923   esac
8924
8925   ld_shlibs=yes
8926   if test "$with_gnu_ld" = yes; then
8927     # If archive_cmds runs LD, not CC, wlarc should be empty
8928     wlarc='${wl}'
8929
8930     # Set some defaults for GNU ld with shared library support. These
8931     # are reset later if shared libraries are not supported. Putting them
8932     # here allows them to be overridden if necessary.
8933     runpath_var=LD_RUN_PATH
8934     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8935     export_dynamic_flag_spec='${wl}--export-dynamic'
8936     # ancient GNU ld didn't support --whole-archive et. al.
8937     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8938         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8939       else
8940         whole_archive_flag_spec=
8941     fi
8942     supports_anon_versioning=no
8943     case `$LD -v 2>/dev/null` in
8944       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8945       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8946       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8947       *\ 2.11.*) ;; # other 2.11 versions
8948       *) supports_anon_versioning=yes ;;
8949     esac
8950
8951     # See if GNU ld supports shared libraries.
8952     case $host_os in
8953     aix3* | aix4* | aix5*)
8954       # On AIX/PPC, the GNU linker is very broken
8955       if test "$host_cpu" != ia64; then
8956         ld_shlibs=no
8957         cat <<EOF 1>&2
8958
8959 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8960 *** to be unable to reliably create shared libraries on AIX.
8961 *** Therefore, libtool is disabling shared libraries support.  If you
8962 *** really care for shared libraries, you may want to modify your PATH
8963 *** so that a non-GNU linker is found, and then restart.
8964
8965 EOF
8966       fi
8967       ;;
8968
8969     amigaos*)
8970       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)'
8971       hardcode_libdir_flag_spec='-L$libdir'
8972       hardcode_minus_L=yes
8973
8974       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8975       # that the semantics of dynamic libraries on AmigaOS, at least up
8976       # to version 4, is to share data among multiple programs linked
8977       # with the same dynamic library.  Since this doesn't match the
8978       # behavior of shared libraries on other platforms, we can't use
8979       # them.
8980       ld_shlibs=no
8981       ;;
8982
8983     beos*)
8984       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8985         allow_undefined_flag=unsupported
8986         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8987         # support --undefined.  This deserves some investigation.  FIXME
8988         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8989       else
8990         ld_shlibs=no
8991       fi
8992       ;;
8993
8994     cygwin* | mingw* | pw32*)
8995       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8996       # as there is no search path for DLLs.
8997       hardcode_libdir_flag_spec='-L$libdir'
8998       allow_undefined_flag=unsupported
8999       always_export_symbols=no
9000       enable_shared_with_static_runtimes=yes
9001       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
9002
9003       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9004         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9005         # If the export-symbols file already is a .def file (1st line
9006         # is EXPORTS), use it as is; otherwise, prepend...
9007         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9008           cp $export_symbols $output_objdir/$soname.def;
9009         else
9010           echo EXPORTS > $output_objdir/$soname.def;
9011           cat $export_symbols >> $output_objdir/$soname.def;
9012         fi~
9013         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
9014       else
9015         ld_shlibs=no
9016       fi
9017       ;;
9018
9019     linux*)
9020       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9021         tmp_addflag=
9022         case $cc_basename,$host_cpu in
9023         pgcc*)                          # Portland Group C compiler
9024           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'
9025           tmp_addflag=' $pic_flag'
9026           ;;
9027         pgf77* | pgf90* )                       # Portland Group f77 and f90 compilers
9028           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'
9029           tmp_addflag=' $pic_flag -Mnomain' ;;
9030         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
9031           tmp_addflag=' -i_dynamic' ;;
9032         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9033           tmp_addflag=' -i_dynamic -nofor_main' ;;
9034         ifc* | ifort*)                  # Intel Fortran compiler
9035           tmp_addflag=' -nofor_main' ;;
9036         esac
9037         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9038
9039         if test $supports_anon_versioning = yes; then
9040           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9041   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9042   $echo "local: *; };" >> $output_objdir/$libname.ver~
9043           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9044         fi
9045       else
9046         ld_shlibs=no
9047       fi
9048       ;;
9049
9050     netbsd*)
9051       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9052         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9053         wlarc=
9054       else
9055         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9056         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9057       fi
9058       ;;
9059
9060     solaris* | sysv5*)
9061       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9062         ld_shlibs=no
9063         cat <<EOF 1>&2
9064
9065 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9066 *** create shared libraries on Solaris systems.  Therefore, libtool
9067 *** is disabling shared libraries support.  We urge you to upgrade GNU
9068 *** binutils to release 2.9.1 or newer.  Another option is to modify
9069 *** your PATH or compiler configuration so that the native linker is
9070 *** used, and then restart.
9071
9072 EOF
9073       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9074         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9075         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9076       else
9077         ld_shlibs=no
9078       fi
9079       ;;
9080
9081     sunos4*)
9082       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9083       wlarc=
9084       hardcode_direct=yes
9085       hardcode_shlibpath_var=no
9086       ;;
9087
9088     *)
9089       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9090         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9091         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9092       else
9093         ld_shlibs=no
9094       fi
9095       ;;
9096     esac
9097
9098     if test "$ld_shlibs" = no; then
9099       runpath_var=
9100       hardcode_libdir_flag_spec=
9101       export_dynamic_flag_spec=
9102       whole_archive_flag_spec=
9103     fi
9104   else
9105     # PORTME fill in a description of your system's linker (not GNU ld)
9106     case $host_os in
9107     aix3*)
9108       allow_undefined_flag=unsupported
9109       always_export_symbols=yes
9110       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'
9111       # Note: this linker hardcodes the directories in LIBPATH if there
9112       # are no directories specified by -L.
9113       hardcode_minus_L=yes
9114       if test "$GCC" = yes && test -z "$link_static_flag"; then
9115         # Neither direct hardcoding nor static linking is supported with a
9116         # broken collect2.
9117         hardcode_direct=unsupported
9118       fi
9119       ;;
9120
9121     aix4* | aix5*)
9122       if test "$host_cpu" = ia64; then
9123         # On IA64, the linker does run time linking by default, so we don't
9124         # have to do anything special.
9125         aix_use_runtimelinking=no
9126         exp_sym_flag='-Bexport'
9127         no_entry_flag=""
9128       else
9129         # If we're using GNU nm, then we don't want the "-C" option.
9130         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9131         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9132           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'
9133         else
9134           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'
9135         fi
9136         aix_use_runtimelinking=no
9137
9138         # Test if we are trying to use run time linking or normal
9139         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9140         # need to do runtime linking.
9141         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9142           for ld_flag in $LDFLAGS; do
9143           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9144             aix_use_runtimelinking=yes
9145             break
9146           fi
9147           done
9148         esac
9149
9150         exp_sym_flag='-bexport'
9151         no_entry_flag='-bnoentry'
9152       fi
9153
9154       # When large executables or shared objects are built, AIX ld can
9155       # have problems creating the table of contents.  If linking a library
9156       # or program results in "error TOC overflow" add -mminimal-toc to
9157       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9158       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9159
9160       archive_cmds=''
9161       hardcode_direct=yes
9162       hardcode_libdir_separator=':'
9163       link_all_deplibs=yes
9164
9165       if test "$GCC" = yes; then
9166         case $host_os in aix4.[012]|aix4.[012].*)
9167         # We only want to do this on AIX 4.2 and lower, the check
9168         # below for broken collect2 doesn't work under 4.3+
9169           collect2name=`${CC} -print-prog-name=collect2`
9170           if test -f "$collect2name" && \
9171            strings "$collect2name" | grep resolve_lib_name >/dev/null
9172           then
9173           # We have reworked collect2
9174           hardcode_direct=yes
9175           else
9176           # We have old collect2
9177           hardcode_direct=unsupported
9178           # It fails to find uninstalled libraries when the uninstalled
9179           # path is not listed in the libpath.  Setting hardcode_minus_L
9180           # to unsupported forces relinking
9181           hardcode_minus_L=yes
9182           hardcode_libdir_flag_spec='-L$libdir'
9183           hardcode_libdir_separator=
9184           fi
9185         esac
9186         shared_flag='-shared'
9187         if test "$aix_use_runtimelinking" = yes; then
9188           shared_flag="$shared_flag "'${wl}-G'
9189         fi
9190       else
9191         # not using gcc
9192         if test "$host_cpu" = ia64; then
9193         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9194         # chokes on -Wl,-G. The following line is correct:
9195           shared_flag='-G'
9196         else
9197         if test "$aix_use_runtimelinking" = yes; then
9198             shared_flag='${wl}-G'
9199           else
9200             shared_flag='${wl}-bM:SRE'
9201         fi
9202         fi
9203       fi
9204
9205       # It seems that -bexpall does not export symbols beginning with
9206       # underscore (_), so it is better to generate a list of symbols to export.
9207       always_export_symbols=yes
9208       if test "$aix_use_runtimelinking" = yes; then
9209         # Warning - without using the other runtime loading flags (-brtl),
9210         # -berok will link without error, but may produce a broken library.
9211         allow_undefined_flag='-berok'
9212        # Determine the default libpath from the value encoded in an empty executable.
9213        cat >conftest.$ac_ext <<_ACEOF
9214 /* confdefs.h.  */
9215 _ACEOF
9216 cat confdefs.h >>conftest.$ac_ext
9217 cat >>conftest.$ac_ext <<_ACEOF
9218 /* end confdefs.h.  */
9219
9220 int
9221 main ()
9222 {
9223
9224   ;
9225   return 0;
9226 }
9227 _ACEOF
9228 rm -f conftest.$ac_objext conftest$ac_exeext
9229 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9230   (eval $ac_link) 2>conftest.er1
9231   ac_status=$?
9232   grep -v '^ *+' conftest.er1 >conftest.err
9233   rm -f conftest.er1
9234   cat conftest.err >&5
9235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9236   (exit $ac_status); } &&
9237          { ac_try='test -z "$ac_c_werror_flag"
9238                          || test ! -s conftest.err'
9239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9240   (eval $ac_try) 2>&5
9241   ac_status=$?
9242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9243   (exit $ac_status); }; } &&
9244          { ac_try='test -s conftest$ac_exeext'
9245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9246   (eval $ac_try) 2>&5
9247   ac_status=$?
9248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9249   (exit $ac_status); }; }; then
9250
9251 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9252 }'`
9253 # Check for a 64-bit object if we didn't find anything.
9254 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; }
9255 }'`; fi
9256 else
9257   echo "$as_me: failed program was:" >&5
9258 sed 's/^/| /' conftest.$ac_ext >&5
9259
9260 fi
9261 rm -f conftest.err conftest.$ac_objext \
9262       conftest$ac_exeext conftest.$ac_ext
9263 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9264
9265        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9266         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"
9267        else
9268         if test "$host_cpu" = ia64; then
9269           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9270           allow_undefined_flag="-z nodefs"
9271           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"
9272         else
9273          # Determine the default libpath from the value encoded in an empty executable.
9274          cat >conftest.$ac_ext <<_ACEOF
9275 /* confdefs.h.  */
9276 _ACEOF
9277 cat confdefs.h >>conftest.$ac_ext
9278 cat >>conftest.$ac_ext <<_ACEOF
9279 /* end confdefs.h.  */
9280
9281 int
9282 main ()
9283 {
9284
9285   ;
9286   return 0;
9287 }
9288 _ACEOF
9289 rm -f conftest.$ac_objext conftest$ac_exeext
9290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9291   (eval $ac_link) 2>conftest.er1
9292   ac_status=$?
9293   grep -v '^ *+' conftest.er1 >conftest.err
9294   rm -f conftest.er1
9295   cat conftest.err >&5
9296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9297   (exit $ac_status); } &&
9298          { ac_try='test -z "$ac_c_werror_flag"
9299                          || test ! -s conftest.err'
9300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9301   (eval $ac_try) 2>&5
9302   ac_status=$?
9303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9304   (exit $ac_status); }; } &&
9305          { ac_try='test -s conftest$ac_exeext'
9306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9307   (eval $ac_try) 2>&5
9308   ac_status=$?
9309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9310   (exit $ac_status); }; }; then
9311
9312 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9313 }'`
9314 # Check for a 64-bit object if we didn't find anything.
9315 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; }
9316 }'`; fi
9317 else
9318   echo "$as_me: failed program was:" >&5
9319 sed 's/^/| /' conftest.$ac_ext >&5
9320
9321 fi
9322 rm -f conftest.err conftest.$ac_objext \
9323       conftest$ac_exeext conftest.$ac_ext
9324 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9325
9326          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9327           # Warning - without using the other run time loading flags,
9328           # -berok will link without error, but may produce a broken library.
9329           no_undefined_flag=' ${wl}-bernotok'
9330           allow_undefined_flag=' ${wl}-berok'
9331           # -bexpall does not export symbols beginning with underscore (_)
9332           always_export_symbols=yes
9333           # Exported symbols can be pulled into shared objects from archives
9334           whole_archive_flag_spec=' '
9335           archive_cmds_need_lc=yes
9336           # This is similar to how AIX traditionally builds it's shared libraries.
9337           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'
9338         fi
9339       fi
9340       ;;
9341
9342     amigaos*)
9343       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)'
9344       hardcode_libdir_flag_spec='-L$libdir'
9345       hardcode_minus_L=yes
9346       # see comment about different semantics on the GNU ld section
9347       ld_shlibs=no
9348       ;;
9349
9350     bsdi[45]*)
9351       export_dynamic_flag_spec=-rdynamic
9352       ;;
9353
9354     cygwin* | mingw* | pw32*)
9355       # When not using gcc, we currently assume that we are using
9356       # Microsoft Visual C++.
9357       # hardcode_libdir_flag_spec is actually meaningless, as there is
9358       # no search path for DLLs.
9359       hardcode_libdir_flag_spec=' '
9360       allow_undefined_flag=unsupported
9361       # Tell ltmain to make .lib files, not .a files.
9362       libext=lib
9363       # Tell ltmain to make .dll files, not .so files.
9364       shrext_cmds=".dll"
9365       # FIXME: Setting linknames here is a bad hack.
9366       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9367       # The linker will automatically build a .lib file if we build a DLL.
9368       old_archive_From_new_cmds='true'
9369       # FIXME: Should let the user specify the lib program.
9370       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9371       fix_srcfile_path='`cygpath -w "$srcfile"`'
9372       enable_shared_with_static_runtimes=yes
9373       ;;
9374
9375     darwin* | rhapsody*)
9376       case "$host_os" in
9377         rhapsody* | darwin1.[012])
9378          allow_undefined_flag='${wl}-undefined ${wl}suppress'
9379          ;;
9380        *) # Darwin 1.3 on
9381          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9382            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9383          else
9384            case ${MACOSX_DEPLOYMENT_TARGET} in
9385              10.[012])
9386                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9387                ;;
9388              10.*)
9389                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9390                ;;
9391            esac
9392          fi
9393          ;;
9394       esac
9395       archive_cmds_need_lc=no
9396       hardcode_direct=no
9397       hardcode_automatic=yes
9398       hardcode_shlibpath_var=unsupported
9399       whole_archive_flag_spec=''
9400       link_all_deplibs=yes
9401     if test "$GCC" = yes ; then
9402         output_verbose_link_cmd='echo'
9403         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9404       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9405       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9406       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}'
9407       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}'
9408     else
9409       case $cc_basename in
9410         xlc*)
9411          output_verbose_link_cmd='echo'
9412          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9413          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9414           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9415          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}'
9416           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}'
9417           ;;
9418        *)
9419          ld_shlibs=no
9420           ;;
9421       esac
9422     fi
9423       ;;
9424
9425     dgux*)
9426       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9427       hardcode_libdir_flag_spec='-L$libdir'
9428       hardcode_shlibpath_var=no
9429       ;;
9430
9431     freebsd1*)
9432       ld_shlibs=no
9433       ;;
9434
9435     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9436     # support.  Future versions do this automatically, but an explicit c++rt0.o
9437     # does not break anything, and helps significantly (at the cost of a little
9438     # extra space).
9439     freebsd2.2*)
9440       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9441       hardcode_libdir_flag_spec='-R$libdir'
9442       hardcode_direct=yes
9443       hardcode_shlibpath_var=no
9444       ;;
9445
9446     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9447     freebsd2*)
9448       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9449       hardcode_direct=yes
9450       hardcode_minus_L=yes
9451       hardcode_shlibpath_var=no
9452       ;;
9453
9454     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9455     freebsd* | kfreebsd*-gnu | dragonfly*)
9456       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9457       hardcode_libdir_flag_spec='-R$libdir'
9458       hardcode_direct=yes
9459       hardcode_shlibpath_var=no
9460       ;;
9461
9462     hpux9*)
9463       if test "$GCC" = yes; then
9464         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'
9465       else
9466         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'
9467       fi
9468       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9469       hardcode_libdir_separator=:
9470       hardcode_direct=yes
9471
9472       # hardcode_minus_L: Not really in the search PATH,
9473       # but as the default location of the library.
9474       hardcode_minus_L=yes
9475       export_dynamic_flag_spec='${wl}-E'
9476       ;;
9477
9478     hpux10* | hpux11*)
9479       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9480         case "$host_cpu" in
9481         hppa*64*|ia64*)
9482           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9483           ;;
9484         *)
9485           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9486           ;;
9487         esac
9488       else
9489         case "$host_cpu" in
9490         hppa*64*|ia64*)
9491           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
9492           ;;
9493         *)
9494           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9495           ;;
9496         esac
9497       fi
9498       if test "$with_gnu_ld" = no; then
9499         case "$host_cpu" in
9500         hppa*64*)
9501           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9502           hardcode_libdir_flag_spec_ld='+b $libdir'
9503           hardcode_libdir_separator=:
9504           hardcode_direct=no
9505           hardcode_shlibpath_var=no
9506           ;;
9507         ia64*)
9508           hardcode_libdir_flag_spec='-L$libdir'
9509           hardcode_direct=no
9510           hardcode_shlibpath_var=no
9511
9512           # hardcode_minus_L: Not really in the search PATH,
9513           # but as the default location of the library.
9514           hardcode_minus_L=yes
9515           ;;
9516         *)
9517           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9518           hardcode_libdir_separator=:
9519           hardcode_direct=yes
9520           export_dynamic_flag_spec='${wl}-E'
9521
9522           # hardcode_minus_L: Not really in the search PATH,
9523           # but as the default location of the library.
9524           hardcode_minus_L=yes
9525           ;;
9526         esac
9527       fi
9528       ;;
9529
9530     irix5* | irix6* | nonstopux*)
9531       if test "$GCC" = yes; then
9532         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'
9533       else
9534         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'
9535         hardcode_libdir_flag_spec_ld='-rpath $libdir'
9536       fi
9537       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9538       hardcode_libdir_separator=:
9539       link_all_deplibs=yes
9540       ;;
9541
9542     netbsd*)
9543       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9544         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9545       else
9546         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9547       fi
9548       hardcode_libdir_flag_spec='-R$libdir'
9549       hardcode_direct=yes
9550       hardcode_shlibpath_var=no
9551       ;;
9552
9553     newsos6)
9554       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9555       hardcode_direct=yes
9556       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9557       hardcode_libdir_separator=:
9558       hardcode_shlibpath_var=no
9559       ;;
9560
9561     openbsd*)
9562       hardcode_direct=yes
9563       hardcode_shlibpath_var=no
9564       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9565         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9566         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9567         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9568         export_dynamic_flag_spec='${wl}-E'
9569       else
9570        case $host_os in
9571          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9572            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9573            hardcode_libdir_flag_spec='-R$libdir'
9574            ;;
9575          *)
9576            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9577            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9578            ;;
9579        esac
9580       fi
9581       ;;
9582
9583     os2*)
9584       hardcode_libdir_flag_spec='-L$libdir'
9585       hardcode_minus_L=yes
9586       allow_undefined_flag=unsupported
9587       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'
9588       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9589       ;;
9590
9591     osf3*)
9592       if test "$GCC" = yes; then
9593         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9594         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'
9595       else
9596         allow_undefined_flag=' -expect_unresolved \*'
9597         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'
9598       fi
9599       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9600       hardcode_libdir_separator=:
9601       ;;
9602
9603     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9604       if test "$GCC" = yes; then
9605         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9606         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'
9607         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9608       else
9609         allow_undefined_flag=' -expect_unresolved \*'
9610         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'
9611         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9612         $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'
9613
9614         # Both c and cxx compiler support -rpath directly
9615         hardcode_libdir_flag_spec='-rpath $libdir'
9616       fi
9617       hardcode_libdir_separator=:
9618       ;;
9619
9620     sco3.2v5*)
9621       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9622       hardcode_shlibpath_var=no
9623       export_dynamic_flag_spec='${wl}-Bexport'
9624       runpath_var=LD_RUN_PATH
9625       hardcode_runpath_var=yes
9626       ;;
9627
9628     solaris*)
9629       no_undefined_flag=' -z text'
9630       if test "$GCC" = yes; then
9631         wlarc='${wl}'
9632         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9633         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9634           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9635       else
9636         wlarc=''
9637         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9638         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9639         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9640       fi
9641       hardcode_libdir_flag_spec='-R$libdir'
9642       hardcode_shlibpath_var=no
9643       case $host_os in
9644       solaris2.[0-5] | solaris2.[0-5].*) ;;
9645       *)
9646         # The compiler driver will combine linker options so we
9647         # cannot just pass the convience library names through
9648         # without $wl, iff we do not link with $LD.
9649         # Luckily, gcc supports the same syntax we need for Sun Studio.
9650         # Supported since Solaris 2.6 (maybe 2.5.1?)
9651         case $wlarc in
9652         '')
9653           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9654         *)
9655           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' ;;
9656         esac ;;
9657       esac
9658       link_all_deplibs=yes
9659       ;;
9660
9661     sunos4*)
9662       if test "x$host_vendor" = xsequent; then
9663         # Use $CC to link under sequent, because it throws in some extra .o
9664         # files that make .init and .fini sections work.
9665         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9666       else
9667         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9668       fi
9669       hardcode_libdir_flag_spec='-L$libdir'
9670       hardcode_direct=yes
9671       hardcode_minus_L=yes
9672       hardcode_shlibpath_var=no
9673       ;;
9674
9675     sysv4)
9676       case $host_vendor in
9677         sni)
9678           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9679           hardcode_direct=yes # is this really true???
9680         ;;
9681         siemens)
9682           ## LD is ld it makes a PLAMLIB
9683           ## CC just makes a GrossModule.
9684           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9685           reload_cmds='$CC -r -o $output$reload_objs'
9686           hardcode_direct=no
9687         ;;
9688         motorola)
9689           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9690           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9691         ;;
9692       esac
9693       runpath_var='LD_RUN_PATH'
9694       hardcode_shlibpath_var=no
9695       ;;
9696
9697     sysv4.3*)
9698       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9699       hardcode_shlibpath_var=no
9700       export_dynamic_flag_spec='-Bexport'
9701       ;;
9702
9703     sysv4*MP*)
9704       if test -d /usr/nec; then
9705         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9706         hardcode_shlibpath_var=no
9707         runpath_var=LD_RUN_PATH
9708         hardcode_runpath_var=yes
9709         ld_shlibs=yes
9710       fi
9711       ;;
9712
9713     sysv4.2uw2*)
9714       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9715       hardcode_direct=yes
9716       hardcode_minus_L=no
9717       hardcode_shlibpath_var=no
9718       hardcode_runpath_var=yes
9719       runpath_var=LD_RUN_PATH
9720       ;;
9721
9722    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
9723       no_undefined_flag='${wl}-z ${wl}text'
9724       if test "$GCC" = yes; then
9725         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9726       else
9727         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9728       fi
9729       runpath_var='LD_RUN_PATH'
9730       hardcode_shlibpath_var=no
9731       ;;
9732
9733     sysv5*)
9734       no_undefined_flag=' -z text'
9735       # $CC -shared without GNU ld will not create a library from C++
9736       # object files and a static libstdc++, better avoid it by now
9737       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9738       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9739                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9740       hardcode_libdir_flag_spec=
9741       hardcode_shlibpath_var=no
9742       runpath_var='LD_RUN_PATH'
9743       ;;
9744
9745     uts4*)
9746       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9747       hardcode_libdir_flag_spec='-L$libdir'
9748       hardcode_shlibpath_var=no
9749       ;;
9750
9751     *)
9752       ld_shlibs=no
9753       ;;
9754     esac
9755   fi
9756
9757 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9758 echo "${ECHO_T}$ld_shlibs" >&6
9759 test "$ld_shlibs" = no && can_build_shared=no
9760
9761 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9762 if test "$GCC" = yes; then
9763   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9764 fi
9765
9766 #
9767 # Do we need to explicitly link libc?
9768 #
9769 case "x$archive_cmds_need_lc" in
9770 x|xyes)
9771   # Assume -lc should be added
9772   archive_cmds_need_lc=yes
9773
9774   if test "$enable_shared" = yes && test "$GCC" = yes; then
9775     case $archive_cmds in
9776     *'~'*)
9777       # FIXME: we may have to deal with multi-command sequences.
9778       ;;
9779     '$CC '*)
9780       # Test whether the compiler implicitly links with -lc since on some
9781       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9782       # to ld, don't add -lc before -lgcc.
9783       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9784 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9785       $rm conftest*
9786       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9787
9788       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9789   (eval $ac_compile) 2>&5
9790   ac_status=$?
9791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9792   (exit $ac_status); } 2>conftest.err; then
9793         soname=conftest
9794         lib=conftest
9795         libobjs=conftest.$ac_objext
9796         deplibs=
9797         wl=$lt_prog_compiler_wl
9798         compiler_flags=-v
9799         linker_flags=-v
9800         verstring=
9801         output_objdir=.
9802         libname=conftest
9803         lt_save_allow_undefined_flag=$allow_undefined_flag
9804         allow_undefined_flag=
9805         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9806   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9807   ac_status=$?
9808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9809   (exit $ac_status); }
9810         then
9811           archive_cmds_need_lc=no
9812         else
9813           archive_cmds_need_lc=yes
9814         fi
9815         allow_undefined_flag=$lt_save_allow_undefined_flag
9816       else
9817         cat conftest.err 1>&5
9818       fi
9819       $rm conftest*
9820       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9821 echo "${ECHO_T}$archive_cmds_need_lc" >&6
9822       ;;
9823     esac
9824   fi
9825   ;;
9826 esac
9827
9828 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9829 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9830 library_names_spec=
9831 libname_spec='lib$name'
9832 soname_spec=
9833 shrext_cmds=".so"
9834 postinstall_cmds=
9835 postuninstall_cmds=
9836 finish_cmds=
9837 finish_eval=
9838 shlibpath_var=
9839 shlibpath_overrides_runpath=unknown
9840 version_type=none
9841 dynamic_linker="$host_os ld.so"
9842 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9843 if test "$GCC" = yes; then
9844   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9845   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9846     # if the path contains ";" then we assume it to be the separator
9847     # otherwise default to the standard path separator (i.e. ":") - it is
9848     # assumed that no part of a normal pathname contains ";" but that should
9849     # okay in the real world where ";" in dirpaths is itself problematic.
9850     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9851   else
9852     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9853   fi
9854 else
9855   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9856 fi
9857 need_lib_prefix=unknown
9858 hardcode_into_libs=no
9859
9860 # when you set need_version to no, make sure it does not cause -set_version
9861 # flags to be left without arguments
9862 need_version=unknown
9863
9864 case $host_os in
9865 aix3*)
9866   version_type=linux
9867   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9868   shlibpath_var=LIBPATH
9869
9870   # AIX 3 has no versioning support, so we append a major version to the name.
9871   soname_spec='${libname}${release}${shared_ext}$major'
9872   ;;
9873
9874 aix4* | aix5*)
9875   version_type=linux
9876   need_lib_prefix=no
9877   need_version=no
9878   hardcode_into_libs=yes
9879   if test "$host_cpu" = ia64; then
9880     # AIX 5 supports IA64
9881     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9882     shlibpath_var=LD_LIBRARY_PATH
9883   else
9884     # With GCC up to 2.95.x, collect2 would create an import file
9885     # for dependence libraries.  The import file would start with
9886     # the line `#! .'.  This would cause the generated library to
9887     # depend on `.', always an invalid library.  This was fixed in
9888     # development snapshots of GCC prior to 3.0.
9889     case $host_os in
9890       aix4 | aix4.[01] | aix4.[01].*)
9891       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9892            echo ' yes '
9893            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9894         :
9895       else
9896         can_build_shared=no
9897       fi
9898       ;;
9899     esac
9900     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9901     # soname into executable. Probably we can add versioning support to
9902     # collect2, so additional links can be useful in future.
9903     if test "$aix_use_runtimelinking" = yes; then
9904       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9905       # instead of lib<name>.a to let people know that these are not
9906       # typical AIX shared libraries.
9907       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9908     else
9909       # We preserve .a as extension for shared libraries through AIX4.2
9910       # and later when we are not doing run time linking.
9911       library_names_spec='${libname}${release}.a $libname.a'
9912       soname_spec='${libname}${release}${shared_ext}$major'
9913     fi
9914     shlibpath_var=LIBPATH
9915   fi
9916   ;;
9917
9918 amigaos*)
9919   library_names_spec='$libname.ixlibrary $libname.a'
9920   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9921   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'
9922   ;;
9923
9924 beos*)
9925   library_names_spec='${libname}${shared_ext}'
9926   dynamic_linker="$host_os ld.so"
9927   shlibpath_var=LIBRARY_PATH
9928   ;;
9929
9930 bsdi[45]*)
9931   version_type=linux
9932   need_version=no
9933   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9934   soname_spec='${libname}${release}${shared_ext}$major'
9935   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9936   shlibpath_var=LD_LIBRARY_PATH
9937   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9938   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9939   # the default ld.so.conf also contains /usr/contrib/lib and
9940   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9941   # libtool to hard-code these into programs
9942   ;;
9943
9944 cygwin* | mingw* | pw32*)
9945   version_type=windows
9946   shrext_cmds=".dll"
9947   need_version=no
9948   need_lib_prefix=no
9949
9950   case $GCC,$host_os in
9951   yes,cygwin* | yes,mingw* | yes,pw32*)
9952     library_names_spec='$libname.dll.a'
9953     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9954     postinstall_cmds='base_file=`basename \${file}`~
9955       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9956       dldir=$destdir/`dirname \$dlpath`~
9957       test -d \$dldir || mkdir -p \$dldir~
9958       $install_prog $dir/$dlname \$dldir/$dlname'
9959     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9960       dlpath=$dir/\$dldll~
9961        $rm \$dlpath'
9962     shlibpath_overrides_runpath=yes
9963
9964     case $host_os in
9965     cygwin*)
9966       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9967       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9968       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9969       ;;
9970     mingw*)
9971       # MinGW DLLs use traditional 'lib' prefix
9972       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9973       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9974       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9975         # It is most probably a Windows format PATH printed by
9976         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9977         # path with ; separators, and with drive letters. We can handle the
9978         # drive letters (cygwin fileutils understands them), so leave them,
9979         # especially as we might pass files found there to a mingw objdump,
9980         # which wouldn't understand a cygwinified path. Ahh.
9981         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9982       else
9983         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9984       fi
9985       ;;
9986     pw32*)
9987       # pw32 DLLs use 'pw' prefix rather than 'lib'
9988       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9989       ;;
9990     esac
9991     ;;
9992
9993   *)
9994     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9995     ;;
9996   esac
9997   dynamic_linker='Win32 ld.exe'
9998   # FIXME: first we should search . and the directory the executable is in
9999   shlibpath_var=PATH
10000   ;;
10001
10002 darwin* | rhapsody*)
10003   dynamic_linker="$host_os dyld"
10004   version_type=darwin
10005   need_lib_prefix=no
10006   need_version=no
10007   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10008   soname_spec='${libname}${release}${major}$shared_ext'
10009   shlibpath_overrides_runpath=yes
10010   shlibpath_var=DYLD_LIBRARY_PATH
10011   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
10012   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10013   if test "$GCC" = yes; then
10014     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"`
10015   else
10016     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10017   fi
10018   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10019   ;;
10020
10021 dgux*)
10022   version_type=linux
10023   need_lib_prefix=no
10024   need_version=no
10025   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10026   soname_spec='${libname}${release}${shared_ext}$major'
10027   shlibpath_var=LD_LIBRARY_PATH
10028   ;;
10029
10030 freebsd1*)
10031   dynamic_linker=no
10032   ;;
10033
10034 kfreebsd*-gnu)
10035   version_type=linux
10036   need_lib_prefix=no
10037   need_version=no
10038   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10039   soname_spec='${libname}${release}${shared_ext}$major'
10040   shlibpath_var=LD_LIBRARY_PATH
10041   shlibpath_overrides_runpath=no
10042   hardcode_into_libs=yes
10043   dynamic_linker='GNU ld.so'
10044   ;;
10045
10046 freebsd* | dragonfly*)
10047   # DragonFly does not have aout.  When/if they implement a new
10048   # versioning mechanism, adjust this.
10049   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
10050   version_type=freebsd-$objformat
10051   case $version_type in
10052     freebsd-elf*)
10053       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10054       need_version=no
10055       need_lib_prefix=no
10056       ;;
10057     freebsd-*)
10058       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10059       need_version=yes
10060       ;;
10061   esac
10062   shlibpath_var=LD_LIBRARY_PATH
10063   case $host_os in
10064   freebsd2*)
10065     shlibpath_overrides_runpath=yes
10066     ;;
10067   freebsd3.[01]* | freebsdelf3.[01]*)
10068     shlibpath_overrides_runpath=yes
10069     hardcode_into_libs=yes
10070     ;;
10071   *) # from 3.2 on
10072     shlibpath_overrides_runpath=no
10073     hardcode_into_libs=yes
10074     ;;
10075   esac
10076   ;;
10077
10078 gnu*)
10079   version_type=linux
10080   need_lib_prefix=no
10081   need_version=no
10082   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10083   soname_spec='${libname}${release}${shared_ext}$major'
10084   shlibpath_var=LD_LIBRARY_PATH
10085   hardcode_into_libs=yes
10086   ;;
10087
10088 hpux9* | hpux10* | hpux11*)
10089   # Give a soname corresponding to the major version so that dld.sl refuses to
10090   # link against other versions.
10091   version_type=sunos
10092   need_lib_prefix=no
10093   need_version=no
10094   case "$host_cpu" in
10095   ia64*)
10096     shrext_cmds='.so'
10097     hardcode_into_libs=yes
10098     dynamic_linker="$host_os dld.so"
10099     shlibpath_var=LD_LIBRARY_PATH
10100     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10101     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10102     soname_spec='${libname}${release}${shared_ext}$major'
10103     if test "X$HPUX_IA64_MODE" = X32; then
10104       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10105     else
10106       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10107     fi
10108     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10109     ;;
10110    hppa*64*)
10111      shrext_cmds='.sl'
10112      hardcode_into_libs=yes
10113      dynamic_linker="$host_os dld.sl"
10114      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10115      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10116      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10117      soname_spec='${libname}${release}${shared_ext}$major'
10118      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10119      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10120      ;;
10121    *)
10122     shrext_cmds='.sl'
10123     dynamic_linker="$host_os dld.sl"
10124     shlibpath_var=SHLIB_PATH
10125     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10126     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10127     soname_spec='${libname}${release}${shared_ext}$major'
10128     ;;
10129   esac
10130   # HP-UX runs *really* slowly unless shared libraries are mode 555.
10131   postinstall_cmds='chmod 555 $lib'
10132   ;;
10133
10134 irix5* | irix6* | nonstopux*)
10135   case $host_os in
10136     nonstopux*) version_type=nonstopux ;;
10137     *)
10138         if test "$lt_cv_prog_gnu_ld" = yes; then
10139                 version_type=linux
10140         else
10141                 version_type=irix
10142         fi ;;
10143   esac
10144   need_lib_prefix=no
10145   need_version=no
10146   soname_spec='${libname}${release}${shared_ext}$major'
10147   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10148   case $host_os in
10149   irix5* | nonstopux*)
10150     libsuff= shlibsuff=
10151     ;;
10152   *)
10153     case $LD in # libtool.m4 will add one of these switches to LD
10154     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10155       libsuff= shlibsuff= libmagic=32-bit;;
10156     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10157       libsuff=32 shlibsuff=N32 libmagic=N32;;
10158     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10159       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10160     *) libsuff= shlibsuff= libmagic=never-match;;
10161     esac
10162     ;;
10163   esac
10164   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10165   shlibpath_overrides_runpath=no
10166   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10167   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10168   hardcode_into_libs=yes
10169   ;;
10170
10171 # No shared lib support for Linux oldld, aout, or coff.
10172 linux*oldld* | linux*aout* | linux*coff*)
10173   dynamic_linker=no
10174   ;;
10175
10176 # This must be Linux ELF.
10177 linux*)
10178   version_type=linux
10179   need_lib_prefix=no
10180   need_version=no
10181   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10182   soname_spec='${libname}${release}${shared_ext}$major'
10183   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10184   shlibpath_var=LD_LIBRARY_PATH
10185   shlibpath_overrides_runpath=no
10186   # This implies no fast_install, which is unacceptable.
10187   # Some rework will be needed to allow for fast_install
10188   # before this can be enabled.
10189   hardcode_into_libs=yes
10190
10191   # Append ld.so.conf contents to the search path
10192   if test -f /etc/ld.so.conf; then
10193     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' ' '`
10194     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10195   fi
10196
10197   # We used to test for /lib/ld.so.1 and disable shared libraries on
10198   # powerpc, because MkLinux only supported shared libraries with the
10199   # GNU dynamic linker.  Since this was broken with cross compilers,
10200   # most powerpc-linux boxes support dynamic linking these days and
10201   # people can always --disable-shared, the test was removed, and we
10202   # assume the GNU/Linux dynamic linker is in use.
10203   dynamic_linker='GNU/Linux ld.so'
10204   ;;
10205
10206 knetbsd*-gnu)
10207   version_type=linux
10208   need_lib_prefix=no
10209   need_version=no
10210   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10211   soname_spec='${libname}${release}${shared_ext}$major'
10212   shlibpath_var=LD_LIBRARY_PATH
10213   shlibpath_overrides_runpath=no
10214   hardcode_into_libs=yes
10215   dynamic_linker='GNU ld.so'
10216   ;;
10217
10218 netbsd*)
10219   version_type=sunos
10220   need_lib_prefix=no
10221   need_version=no
10222   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10223     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10224     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10225     dynamic_linker='NetBSD (a.out) ld.so'
10226   else
10227     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10228     soname_spec='${libname}${release}${shared_ext}$major'
10229     dynamic_linker='NetBSD ld.elf_so'
10230   fi
10231   shlibpath_var=LD_LIBRARY_PATH
10232   shlibpath_overrides_runpath=yes
10233   hardcode_into_libs=yes
10234   ;;
10235
10236 newsos6)
10237   version_type=linux
10238   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10239   shlibpath_var=LD_LIBRARY_PATH
10240   shlibpath_overrides_runpath=yes
10241   ;;
10242
10243 nto-qnx*)
10244   version_type=linux
10245   need_lib_prefix=no
10246   need_version=no
10247   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10248   soname_spec='${libname}${release}${shared_ext}$major'
10249   shlibpath_var=LD_LIBRARY_PATH
10250   shlibpath_overrides_runpath=yes
10251   ;;
10252
10253 openbsd*)
10254   version_type=sunos
10255   need_lib_prefix=no
10256   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10257   case $host_os in
10258     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10259     *)                         need_version=no  ;;
10260   esac
10261   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10262   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10263   shlibpath_var=LD_LIBRARY_PATH
10264   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10265     case $host_os in
10266       openbsd2.[89] | openbsd2.[89].*)
10267         shlibpath_overrides_runpath=no
10268         ;;
10269       *)
10270         shlibpath_overrides_runpath=yes
10271         ;;
10272       esac
10273   else
10274     shlibpath_overrides_runpath=yes
10275   fi
10276   ;;
10277
10278 os2*)
10279   libname_spec='$name'
10280   shrext_cmds=".dll"
10281   need_lib_prefix=no
10282   library_names_spec='$libname${shared_ext} $libname.a'
10283   dynamic_linker='OS/2 ld.exe'
10284   shlibpath_var=LIBPATH
10285   ;;
10286
10287 osf3* | osf4* | osf5*)
10288   version_type=osf
10289   need_lib_prefix=no
10290   need_version=no
10291   soname_spec='${libname}${release}${shared_ext}$major'
10292   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10293   shlibpath_var=LD_LIBRARY_PATH
10294   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10295   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10296   ;;
10297
10298 sco3.2v5*)
10299   version_type=osf
10300   soname_spec='${libname}${release}${shared_ext}$major'
10301   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10302   shlibpath_var=LD_LIBRARY_PATH
10303   ;;
10304
10305 solaris*)
10306   version_type=linux
10307   need_lib_prefix=no
10308   need_version=no
10309   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10310   soname_spec='${libname}${release}${shared_ext}$major'
10311   shlibpath_var=LD_LIBRARY_PATH
10312   shlibpath_overrides_runpath=yes
10313   hardcode_into_libs=yes
10314   # ldd complains unless libraries are executable
10315   postinstall_cmds='chmod +x $lib'
10316   ;;
10317
10318 sunos4*)
10319   version_type=sunos
10320   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10321   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10322   shlibpath_var=LD_LIBRARY_PATH
10323   shlibpath_overrides_runpath=yes
10324   if test "$with_gnu_ld" = yes; then
10325     need_lib_prefix=no
10326   fi
10327   need_version=yes
10328   ;;
10329
10330 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10331   version_type=linux
10332   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10333   soname_spec='${libname}${release}${shared_ext}$major'
10334   shlibpath_var=LD_LIBRARY_PATH
10335   case $host_vendor in
10336     sni)
10337       shlibpath_overrides_runpath=no
10338       need_lib_prefix=no
10339       export_dynamic_flag_spec='${wl}-Blargedynsym'
10340       runpath_var=LD_RUN_PATH
10341       ;;
10342     siemens)
10343       need_lib_prefix=no
10344       ;;
10345     motorola)
10346       need_lib_prefix=no
10347       need_version=no
10348       shlibpath_overrides_runpath=no
10349       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10350       ;;
10351   esac
10352   ;;
10353
10354 sysv4*MP*)
10355   if test -d /usr/nec ;then
10356     version_type=linux
10357     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10358     soname_spec='$libname${shared_ext}.$major'
10359     shlibpath_var=LD_LIBRARY_PATH
10360   fi
10361   ;;
10362
10363 uts4*)
10364   version_type=linux
10365   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10366   soname_spec='${libname}${release}${shared_ext}$major'
10367   shlibpath_var=LD_LIBRARY_PATH
10368   ;;
10369
10370 *)
10371   dynamic_linker=no
10372   ;;
10373 esac
10374 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10375 echo "${ECHO_T}$dynamic_linker" >&6
10376 test "$dynamic_linker" = no && can_build_shared=no
10377
10378 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10379 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10380 hardcode_action=
10381 if test -n "$hardcode_libdir_flag_spec" || \
10382    test -n "$runpath_var" || \
10383    test "X$hardcode_automatic" = "Xyes" ; then
10384
10385   # We can hardcode non-existant directories.
10386   if test "$hardcode_direct" != no &&
10387      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10388      # have to relink, otherwise we might link with an installed library
10389      # when we should be linking with a yet-to-be-installed one
10390      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10391      test "$hardcode_minus_L" != no; then
10392     # Linking always hardcodes the temporary library directory.
10393     hardcode_action=relink
10394   else
10395     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10396     hardcode_action=immediate
10397   fi
10398 else
10399   # We cannot hardcode anything, or else we can only hardcode existing
10400   # directories.
10401   hardcode_action=unsupported
10402 fi
10403 echo "$as_me:$LINENO: result: $hardcode_action" >&5
10404 echo "${ECHO_T}$hardcode_action" >&6
10405
10406 if test "$hardcode_action" = relink; then
10407   # Fast installation is not supported
10408   enable_fast_install=no
10409 elif test "$shlibpath_overrides_runpath" = yes ||
10410      test "$enable_shared" = no; then
10411   # Fast installation is not necessary
10412   enable_fast_install=needless
10413 fi
10414
10415 striplib=
10416 old_striplib=
10417 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10418 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10419 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10420   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10421   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10422   echo "$as_me:$LINENO: result: yes" >&5
10423 echo "${ECHO_T}yes" >&6
10424 else
10425 # FIXME - insert some real tests, host_os isn't really good enough
10426   case $host_os in
10427    darwin*)
10428        if test -n "$STRIP" ; then
10429          striplib="$STRIP -x"
10430          echo "$as_me:$LINENO: result: yes" >&5
10431 echo "${ECHO_T}yes" >&6
10432        else
10433   echo "$as_me:$LINENO: result: no" >&5
10434 echo "${ECHO_T}no" >&6
10435 fi
10436        ;;
10437    *)
10438   echo "$as_me:$LINENO: result: no" >&5
10439 echo "${ECHO_T}no" >&6
10440     ;;
10441   esac
10442 fi
10443
10444 if test "x$enable_dlopen" != xyes; then
10445   enable_dlopen=unknown
10446   enable_dlopen_self=unknown
10447   enable_dlopen_self_static=unknown
10448 else
10449   lt_cv_dlopen=no
10450   lt_cv_dlopen_libs=
10451
10452   case $host_os in
10453   beos*)
10454     lt_cv_dlopen="load_add_on"
10455     lt_cv_dlopen_libs=
10456     lt_cv_dlopen_self=yes
10457     ;;
10458
10459   mingw* | pw32*)
10460     lt_cv_dlopen="LoadLibrary"
10461     lt_cv_dlopen_libs=
10462    ;;
10463
10464   cygwin*)
10465     lt_cv_dlopen="dlopen"
10466     lt_cv_dlopen_libs=
10467    ;;
10468
10469   darwin*)
10470   # if libdl is installed we need to link against it
10471     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10472 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10473 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10474   echo $ECHO_N "(cached) $ECHO_C" >&6
10475 else
10476   ac_check_lib_save_LIBS=$LIBS
10477 LIBS="-ldl  $LIBS"
10478 cat >conftest.$ac_ext <<_ACEOF
10479 /* confdefs.h.  */
10480 _ACEOF
10481 cat confdefs.h >>conftest.$ac_ext
10482 cat >>conftest.$ac_ext <<_ACEOF
10483 /* end confdefs.h.  */
10484
10485 /* Override any gcc2 internal prototype to avoid an error.  */
10486 #ifdef __cplusplus
10487 extern "C"
10488 #endif
10489 /* We use char because int might match the return type of a gcc2
10490    builtin and then its argument prototype would still apply.  */
10491 char dlopen ();
10492 int
10493 main ()
10494 {
10495 dlopen ();
10496   ;
10497   return 0;
10498 }
10499 _ACEOF
10500 rm -f conftest.$ac_objext conftest$ac_exeext
10501 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10502   (eval $ac_link) 2>conftest.er1
10503   ac_status=$?
10504   grep -v '^ *+' conftest.er1 >conftest.err
10505   rm -f conftest.er1
10506   cat conftest.err >&5
10507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10508   (exit $ac_status); } &&
10509          { ac_try='test -z "$ac_c_werror_flag"
10510                          || test ! -s conftest.err'
10511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10512   (eval $ac_try) 2>&5
10513   ac_status=$?
10514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10515   (exit $ac_status); }; } &&
10516          { ac_try='test -s conftest$ac_exeext'
10517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10518   (eval $ac_try) 2>&5
10519   ac_status=$?
10520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10521   (exit $ac_status); }; }; then
10522   ac_cv_lib_dl_dlopen=yes
10523 else
10524   echo "$as_me: failed program was:" >&5
10525 sed 's/^/| /' conftest.$ac_ext >&5
10526
10527 ac_cv_lib_dl_dlopen=no
10528 fi
10529 rm -f conftest.err conftest.$ac_objext \
10530       conftest$ac_exeext conftest.$ac_ext
10531 LIBS=$ac_check_lib_save_LIBS
10532 fi
10533 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10534 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10535 if test $ac_cv_lib_dl_dlopen = yes; then
10536   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10537 else
10538
10539     lt_cv_dlopen="dyld"
10540     lt_cv_dlopen_libs=
10541     lt_cv_dlopen_self=yes
10542
10543 fi
10544
10545    ;;
10546
10547   *)
10548     echo "$as_me:$LINENO: checking for shl_load" >&5
10549 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10550 if test "${ac_cv_func_shl_load+set}" = set; then
10551   echo $ECHO_N "(cached) $ECHO_C" >&6
10552 else
10553   cat >conftest.$ac_ext <<_ACEOF
10554 /* confdefs.h.  */
10555 _ACEOF
10556 cat confdefs.h >>conftest.$ac_ext
10557 cat >>conftest.$ac_ext <<_ACEOF
10558 /* end confdefs.h.  */
10559 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10560    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10561 #define shl_load innocuous_shl_load
10562
10563 /* System header to define __stub macros and hopefully few prototypes,
10564     which can conflict with char shl_load (); below.
10565     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10566     <limits.h> exists even on freestanding compilers.  */
10567
10568 #ifdef __STDC__
10569 # include <limits.h>
10570 #else
10571 # include <assert.h>
10572 #endif
10573
10574 #undef shl_load
10575
10576 /* Override any gcc2 internal prototype to avoid an error.  */
10577 #ifdef __cplusplus
10578 extern "C"
10579 {
10580 #endif
10581 /* We use char because int might match the return type of a gcc2
10582    builtin and then its argument prototype would still apply.  */
10583 char shl_load ();
10584 /* The GNU C library defines this for functions which it implements
10585     to always fail with ENOSYS.  Some functions are actually named
10586     something starting with __ and the normal name is an alias.  */
10587 #if defined (__stub_shl_load) || defined (__stub___shl_load)
10588 choke me
10589 #else
10590 char (*f) () = shl_load;
10591 #endif
10592 #ifdef __cplusplus
10593 }
10594 #endif
10595
10596 int
10597 main ()
10598 {
10599 return f != shl_load;
10600   ;
10601   return 0;
10602 }
10603 _ACEOF
10604 rm -f conftest.$ac_objext conftest$ac_exeext
10605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10606   (eval $ac_link) 2>conftest.er1
10607   ac_status=$?
10608   grep -v '^ *+' conftest.er1 >conftest.err
10609   rm -f conftest.er1
10610   cat conftest.err >&5
10611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10612   (exit $ac_status); } &&
10613          { ac_try='test -z "$ac_c_werror_flag"
10614                          || test ! -s conftest.err'
10615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10616   (eval $ac_try) 2>&5
10617   ac_status=$?
10618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10619   (exit $ac_status); }; } &&
10620          { ac_try='test -s conftest$ac_exeext'
10621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10622   (eval $ac_try) 2>&5
10623   ac_status=$?
10624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10625   (exit $ac_status); }; }; then
10626   ac_cv_func_shl_load=yes
10627 else
10628   echo "$as_me: failed program was:" >&5
10629 sed 's/^/| /' conftest.$ac_ext >&5
10630
10631 ac_cv_func_shl_load=no
10632 fi
10633 rm -f conftest.err conftest.$ac_objext \
10634       conftest$ac_exeext conftest.$ac_ext
10635 fi
10636 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10637 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10638 if test $ac_cv_func_shl_load = yes; then
10639   lt_cv_dlopen="shl_load"
10640 else
10641   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10642 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10643 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10644   echo $ECHO_N "(cached) $ECHO_C" >&6
10645 else
10646   ac_check_lib_save_LIBS=$LIBS
10647 LIBS="-ldld  $LIBS"
10648 cat >conftest.$ac_ext <<_ACEOF
10649 /* confdefs.h.  */
10650 _ACEOF
10651 cat confdefs.h >>conftest.$ac_ext
10652 cat >>conftest.$ac_ext <<_ACEOF
10653 /* end confdefs.h.  */
10654
10655 /* Override any gcc2 internal prototype to avoid an error.  */
10656 #ifdef __cplusplus
10657 extern "C"
10658 #endif
10659 /* We use char because int might match the return type of a gcc2
10660    builtin and then its argument prototype would still apply.  */
10661 char shl_load ();
10662 int
10663 main ()
10664 {
10665 shl_load ();
10666   ;
10667   return 0;
10668 }
10669 _ACEOF
10670 rm -f conftest.$ac_objext conftest$ac_exeext
10671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10672   (eval $ac_link) 2>conftest.er1
10673   ac_status=$?
10674   grep -v '^ *+' conftest.er1 >conftest.err
10675   rm -f conftest.er1
10676   cat conftest.err >&5
10677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10678   (exit $ac_status); } &&
10679          { ac_try='test -z "$ac_c_werror_flag"
10680                          || test ! -s conftest.err'
10681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10682   (eval $ac_try) 2>&5
10683   ac_status=$?
10684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10685   (exit $ac_status); }; } &&
10686          { ac_try='test -s conftest$ac_exeext'
10687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10688   (eval $ac_try) 2>&5
10689   ac_status=$?
10690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10691   (exit $ac_status); }; }; then
10692   ac_cv_lib_dld_shl_load=yes
10693 else
10694   echo "$as_me: failed program was:" >&5
10695 sed 's/^/| /' conftest.$ac_ext >&5
10696
10697 ac_cv_lib_dld_shl_load=no
10698 fi
10699 rm -f conftest.err conftest.$ac_objext \
10700       conftest$ac_exeext conftest.$ac_ext
10701 LIBS=$ac_check_lib_save_LIBS
10702 fi
10703 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10704 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10705 if test $ac_cv_lib_dld_shl_load = yes; then
10706   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10707 else
10708   echo "$as_me:$LINENO: checking for dlopen" >&5
10709 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10710 if test "${ac_cv_func_dlopen+set}" = set; then
10711   echo $ECHO_N "(cached) $ECHO_C" >&6
10712 else
10713   cat >conftest.$ac_ext <<_ACEOF
10714 /* confdefs.h.  */
10715 _ACEOF
10716 cat confdefs.h >>conftest.$ac_ext
10717 cat >>conftest.$ac_ext <<_ACEOF
10718 /* end confdefs.h.  */
10719 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10720    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10721 #define dlopen innocuous_dlopen
10722
10723 /* System header to define __stub macros and hopefully few prototypes,
10724     which can conflict with char dlopen (); below.
10725     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10726     <limits.h> exists even on freestanding compilers.  */
10727
10728 #ifdef __STDC__
10729 # include <limits.h>
10730 #else
10731 # include <assert.h>
10732 #endif
10733
10734 #undef dlopen
10735
10736 /* Override any gcc2 internal prototype to avoid an error.  */
10737 #ifdef __cplusplus
10738 extern "C"
10739 {
10740 #endif
10741 /* We use char because int might match the return type of a gcc2
10742    builtin and then its argument prototype would still apply.  */
10743 char dlopen ();
10744 /* The GNU C library defines this for functions which it implements
10745     to always fail with ENOSYS.  Some functions are actually named
10746     something starting with __ and the normal name is an alias.  */
10747 #if defined (__stub_dlopen) || defined (__stub___dlopen)
10748 choke me
10749 #else
10750 char (*f) () = dlopen;
10751 #endif
10752 #ifdef __cplusplus
10753 }
10754 #endif
10755
10756 int
10757 main ()
10758 {
10759 return f != dlopen;
10760   ;
10761   return 0;
10762 }
10763 _ACEOF
10764 rm -f conftest.$ac_objext conftest$ac_exeext
10765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10766   (eval $ac_link) 2>conftest.er1
10767   ac_status=$?
10768   grep -v '^ *+' conftest.er1 >conftest.err
10769   rm -f conftest.er1
10770   cat conftest.err >&5
10771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10772   (exit $ac_status); } &&
10773          { ac_try='test -z "$ac_c_werror_flag"
10774                          || test ! -s conftest.err'
10775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10776   (eval $ac_try) 2>&5
10777   ac_status=$?
10778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10779   (exit $ac_status); }; } &&
10780          { ac_try='test -s conftest$ac_exeext'
10781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10782   (eval $ac_try) 2>&5
10783   ac_status=$?
10784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10785   (exit $ac_status); }; }; then
10786   ac_cv_func_dlopen=yes
10787 else
10788   echo "$as_me: failed program was:" >&5
10789 sed 's/^/| /' conftest.$ac_ext >&5
10790
10791 ac_cv_func_dlopen=no
10792 fi
10793 rm -f conftest.err conftest.$ac_objext \
10794       conftest$ac_exeext conftest.$ac_ext
10795 fi
10796 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10797 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10798 if test $ac_cv_func_dlopen = yes; then
10799   lt_cv_dlopen="dlopen"
10800 else
10801   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10802 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10803 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10804   echo $ECHO_N "(cached) $ECHO_C" >&6
10805 else
10806   ac_check_lib_save_LIBS=$LIBS
10807 LIBS="-ldl  $LIBS"
10808 cat >conftest.$ac_ext <<_ACEOF
10809 /* confdefs.h.  */
10810 _ACEOF
10811 cat confdefs.h >>conftest.$ac_ext
10812 cat >>conftest.$ac_ext <<_ACEOF
10813 /* end confdefs.h.  */
10814
10815 /* Override any gcc2 internal prototype to avoid an error.  */
10816 #ifdef __cplusplus
10817 extern "C"
10818 #endif
10819 /* We use char because int might match the return type of a gcc2
10820    builtin and then its argument prototype would still apply.  */
10821 char dlopen ();
10822 int
10823 main ()
10824 {
10825 dlopen ();
10826   ;
10827   return 0;
10828 }
10829 _ACEOF
10830 rm -f conftest.$ac_objext conftest$ac_exeext
10831 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10832   (eval $ac_link) 2>conftest.er1
10833   ac_status=$?
10834   grep -v '^ *+' conftest.er1 >conftest.err
10835   rm -f conftest.er1
10836   cat conftest.err >&5
10837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10838   (exit $ac_status); } &&
10839          { ac_try='test -z "$ac_c_werror_flag"
10840                          || test ! -s conftest.err'
10841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10842   (eval $ac_try) 2>&5
10843   ac_status=$?
10844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10845   (exit $ac_status); }; } &&
10846          { ac_try='test -s conftest$ac_exeext'
10847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10848   (eval $ac_try) 2>&5
10849   ac_status=$?
10850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10851   (exit $ac_status); }; }; then
10852   ac_cv_lib_dl_dlopen=yes
10853 else
10854   echo "$as_me: failed program was:" >&5
10855 sed 's/^/| /' conftest.$ac_ext >&5
10856
10857 ac_cv_lib_dl_dlopen=no
10858 fi
10859 rm -f conftest.err conftest.$ac_objext \
10860       conftest$ac_exeext conftest.$ac_ext
10861 LIBS=$ac_check_lib_save_LIBS
10862 fi
10863 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10864 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10865 if test $ac_cv_lib_dl_dlopen = yes; then
10866   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10867 else
10868   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10869 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10870 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10871   echo $ECHO_N "(cached) $ECHO_C" >&6
10872 else
10873   ac_check_lib_save_LIBS=$LIBS
10874 LIBS="-lsvld  $LIBS"
10875 cat >conftest.$ac_ext <<_ACEOF
10876 /* confdefs.h.  */
10877 _ACEOF
10878 cat confdefs.h >>conftest.$ac_ext
10879 cat >>conftest.$ac_ext <<_ACEOF
10880 /* end confdefs.h.  */
10881
10882 /* Override any gcc2 internal prototype to avoid an error.  */
10883 #ifdef __cplusplus
10884 extern "C"
10885 #endif
10886 /* We use char because int might match the return type of a gcc2
10887    builtin and then its argument prototype would still apply.  */
10888 char dlopen ();
10889 int
10890 main ()
10891 {
10892 dlopen ();
10893   ;
10894   return 0;
10895 }
10896 _ACEOF
10897 rm -f conftest.$ac_objext conftest$ac_exeext
10898 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10899   (eval $ac_link) 2>conftest.er1
10900   ac_status=$?
10901   grep -v '^ *+' conftest.er1 >conftest.err
10902   rm -f conftest.er1
10903   cat conftest.err >&5
10904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10905   (exit $ac_status); } &&
10906          { ac_try='test -z "$ac_c_werror_flag"
10907                          || test ! -s conftest.err'
10908   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10909   (eval $ac_try) 2>&5
10910   ac_status=$?
10911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10912   (exit $ac_status); }; } &&
10913          { ac_try='test -s conftest$ac_exeext'
10914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10915   (eval $ac_try) 2>&5
10916   ac_status=$?
10917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10918   (exit $ac_status); }; }; then
10919   ac_cv_lib_svld_dlopen=yes
10920 else
10921   echo "$as_me: failed program was:" >&5
10922 sed 's/^/| /' conftest.$ac_ext >&5
10923
10924 ac_cv_lib_svld_dlopen=no
10925 fi
10926 rm -f conftest.err conftest.$ac_objext \
10927       conftest$ac_exeext conftest.$ac_ext
10928 LIBS=$ac_check_lib_save_LIBS
10929 fi
10930 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10931 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10932 if test $ac_cv_lib_svld_dlopen = yes; then
10933   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10934 else
10935   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10936 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10937 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10938   echo $ECHO_N "(cached) $ECHO_C" >&6
10939 else
10940   ac_check_lib_save_LIBS=$LIBS
10941 LIBS="-ldld  $LIBS"
10942 cat >conftest.$ac_ext <<_ACEOF
10943 /* confdefs.h.  */
10944 _ACEOF
10945 cat confdefs.h >>conftest.$ac_ext
10946 cat >>conftest.$ac_ext <<_ACEOF
10947 /* end confdefs.h.  */
10948
10949 /* Override any gcc2 internal prototype to avoid an error.  */
10950 #ifdef __cplusplus
10951 extern "C"
10952 #endif
10953 /* We use char because int might match the return type of a gcc2
10954    builtin and then its argument prototype would still apply.  */
10955 char dld_link ();
10956 int
10957 main ()
10958 {
10959 dld_link ();
10960   ;
10961   return 0;
10962 }
10963 _ACEOF
10964 rm -f conftest.$ac_objext conftest$ac_exeext
10965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10966   (eval $ac_link) 2>conftest.er1
10967   ac_status=$?
10968   grep -v '^ *+' conftest.er1 >conftest.err
10969   rm -f conftest.er1
10970   cat conftest.err >&5
10971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10972   (exit $ac_status); } &&
10973          { ac_try='test -z "$ac_c_werror_flag"
10974                          || test ! -s conftest.err'
10975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10976   (eval $ac_try) 2>&5
10977   ac_status=$?
10978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10979   (exit $ac_status); }; } &&
10980          { ac_try='test -s conftest$ac_exeext'
10981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10982   (eval $ac_try) 2>&5
10983   ac_status=$?
10984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10985   (exit $ac_status); }; }; then
10986   ac_cv_lib_dld_dld_link=yes
10987 else
10988   echo "$as_me: failed program was:" >&5
10989 sed 's/^/| /' conftest.$ac_ext >&5
10990
10991 ac_cv_lib_dld_dld_link=no
10992 fi
10993 rm -f conftest.err conftest.$ac_objext \
10994       conftest$ac_exeext conftest.$ac_ext
10995 LIBS=$ac_check_lib_save_LIBS
10996 fi
10997 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10998 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10999 if test $ac_cv_lib_dld_dld_link = yes; then
11000   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11001 fi
11002
11003
11004 fi
11005
11006
11007 fi
11008
11009
11010 fi
11011
11012
11013 fi
11014
11015
11016 fi
11017
11018     ;;
11019   esac
11020
11021   if test "x$lt_cv_dlopen" != xno; then
11022     enable_dlopen=yes
11023   else
11024     enable_dlopen=no
11025   fi
11026
11027   case $lt_cv_dlopen in
11028   dlopen)
11029     save_CPPFLAGS="$CPPFLAGS"
11030     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11031
11032     save_LDFLAGS="$LDFLAGS"
11033     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11034
11035     save_LIBS="$LIBS"
11036     LIBS="$lt_cv_dlopen_libs $LIBS"
11037
11038     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11039 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11040 if test "${lt_cv_dlopen_self+set}" = set; then
11041   echo $ECHO_N "(cached) $ECHO_C" >&6
11042 else
11043           if test "$cross_compiling" = yes; then :
11044   lt_cv_dlopen_self=cross
11045 else
11046   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11047   lt_status=$lt_dlunknown
11048   cat > conftest.$ac_ext <<EOF
11049 #line 11049 "configure"
11050 #include "confdefs.h"
11051
11052 #if HAVE_DLFCN_H
11053 #include <dlfcn.h>
11054 #endif
11055
11056 #include <stdio.h>
11057
11058 #ifdef RTLD_GLOBAL
11059 #  define LT_DLGLOBAL           RTLD_GLOBAL
11060 #else
11061 #  ifdef DL_GLOBAL
11062 #    define LT_DLGLOBAL         DL_GLOBAL
11063 #  else
11064 #    define LT_DLGLOBAL         0
11065 #  endif
11066 #endif
11067
11068 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11069    find out it does not work in some platform. */
11070 #ifndef LT_DLLAZY_OR_NOW
11071 #  ifdef RTLD_LAZY
11072 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11073 #  else
11074 #    ifdef DL_LAZY
11075 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11076 #    else
11077 #      ifdef RTLD_NOW
11078 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11079 #      else
11080 #        ifdef DL_NOW
11081 #          define LT_DLLAZY_OR_NOW      DL_NOW
11082 #        else
11083 #          define LT_DLLAZY_OR_NOW      0
11084 #        endif
11085 #      endif
11086 #    endif
11087 #  endif
11088 #endif
11089
11090 #ifdef __cplusplus
11091 extern "C" void exit (int);
11092 #endif
11093
11094 void fnord() { int i=42;}
11095 int main ()
11096 {
11097   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11098   int status = $lt_dlunknown;
11099
11100   if (self)
11101     {
11102       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11103       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11104       /* dlclose (self); */
11105     }
11106
11107     exit (status);
11108 }
11109 EOF
11110   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11111   (eval $ac_link) 2>&5
11112   ac_status=$?
11113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11114   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11115     (./conftest; exit; ) 2>/dev/null
11116     lt_status=$?
11117     case x$lt_status in
11118       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11119       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11120       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
11121     esac
11122   else :
11123     # compilation failed
11124     lt_cv_dlopen_self=no
11125   fi
11126 fi
11127 rm -fr conftest*
11128
11129
11130 fi
11131 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11132 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11133
11134     if test "x$lt_cv_dlopen_self" = xyes; then
11135       LDFLAGS="$LDFLAGS $link_static_flag"
11136       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11137 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11138 if test "${lt_cv_dlopen_self_static+set}" = set; then
11139   echo $ECHO_N "(cached) $ECHO_C" >&6
11140 else
11141           if test "$cross_compiling" = yes; then :
11142   lt_cv_dlopen_self_static=cross
11143 else
11144   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11145   lt_status=$lt_dlunknown
11146   cat > conftest.$ac_ext <<EOF
11147 #line 11147 "configure"
11148 #include "confdefs.h"
11149
11150 #if HAVE_DLFCN_H
11151 #include <dlfcn.h>
11152 #endif
11153
11154 #include <stdio.h>
11155
11156 #ifdef RTLD_GLOBAL
11157 #  define LT_DLGLOBAL           RTLD_GLOBAL
11158 #else
11159 #  ifdef DL_GLOBAL
11160 #    define LT_DLGLOBAL         DL_GLOBAL
11161 #  else
11162 #    define LT_DLGLOBAL         0
11163 #  endif
11164 #endif
11165
11166 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11167    find out it does not work in some platform. */
11168 #ifndef LT_DLLAZY_OR_NOW
11169 #  ifdef RTLD_LAZY
11170 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11171 #  else
11172 #    ifdef DL_LAZY
11173 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11174 #    else
11175 #      ifdef RTLD_NOW
11176 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11177 #      else
11178 #        ifdef DL_NOW
11179 #          define LT_DLLAZY_OR_NOW      DL_NOW
11180 #        else
11181 #          define LT_DLLAZY_OR_NOW      0
11182 #        endif
11183 #      endif
11184 #    endif
11185 #  endif
11186 #endif
11187
11188 #ifdef __cplusplus
11189 extern "C" void exit (int);
11190 #endif
11191
11192 void fnord() { int i=42;}
11193 int main ()
11194 {
11195   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11196   int status = $lt_dlunknown;
11197
11198   if (self)
11199     {
11200       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11201       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11202       /* dlclose (self); */
11203     }
11204
11205     exit (status);
11206 }
11207 EOF
11208   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11209   (eval $ac_link) 2>&5
11210   ac_status=$?
11211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11212   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11213     (./conftest; exit; ) 2>/dev/null
11214     lt_status=$?
11215     case x$lt_status in
11216       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11217       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11218       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
11219     esac
11220   else :
11221     # compilation failed
11222     lt_cv_dlopen_self_static=no
11223   fi
11224 fi
11225 rm -fr conftest*
11226
11227
11228 fi
11229 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11230 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11231     fi
11232
11233     CPPFLAGS="$save_CPPFLAGS"
11234     LDFLAGS="$save_LDFLAGS"
11235     LIBS="$save_LIBS"
11236     ;;
11237   esac
11238
11239   case $lt_cv_dlopen_self in
11240   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11241   *) enable_dlopen_self=unknown ;;
11242   esac
11243
11244   case $lt_cv_dlopen_self_static in
11245   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11246   *) enable_dlopen_self_static=unknown ;;
11247   esac
11248 fi
11249
11250
11251 # Report which librarie types wil actually be built
11252 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11253 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
11254 echo "$as_me:$LINENO: result: $can_build_shared" >&5
11255 echo "${ECHO_T}$can_build_shared" >&6
11256
11257 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11258 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
11259 test "$can_build_shared" = "no" && enable_shared=no
11260
11261 # On AIX, shared libraries and static libraries use the same namespace, and
11262 # are all built from PIC.
11263 case "$host_os" in
11264 aix3*)
11265   test "$enable_shared" = yes && enable_static=no
11266   if test -n "$RANLIB"; then
11267     archive_cmds="$archive_cmds~\$RANLIB \$lib"
11268     postinstall_cmds='$RANLIB $lib'
11269   fi
11270   ;;
11271
11272 aix4* | aix5*)
11273   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11274     test "$enable_shared" = yes && enable_static=no
11275   fi
11276     ;;
11277 esac
11278 echo "$as_me:$LINENO: result: $enable_shared" >&5
11279 echo "${ECHO_T}$enable_shared" >&6
11280
11281 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11282 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
11283 # Make sure either enable_shared or enable_static is yes.
11284 test "$enable_shared" = yes || enable_static=yes
11285 echo "$as_me:$LINENO: result: $enable_static" >&5
11286 echo "${ECHO_T}$enable_static" >&6
11287
11288 # The else clause should only fire when bootstrapping the
11289 # libtool distribution, otherwise you forgot to ship ltmain.sh
11290 # with your package, and you will get complaints that there are
11291 # no rules to generate ltmain.sh.
11292 if test -f "$ltmain"; then
11293   # See if we are running on zsh, and set the options which allow our commands through
11294   # without removal of \ escapes.
11295   if test -n "${ZSH_VERSION+set}" ; then
11296     setopt NO_GLOB_SUBST
11297   fi
11298   # Now quote all the things that may contain metacharacters while being
11299   # careful not to overquote the AC_SUBSTed values.  We take copies of the
11300   # variables and quote the copies for generation of the libtool script.
11301   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11302     SED SHELL STRIP \
11303     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11304     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11305     deplibs_check_method reload_flag reload_cmds need_locks \
11306     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11307     lt_cv_sys_global_symbol_to_c_name_address \
11308     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11309     old_postinstall_cmds old_postuninstall_cmds \
11310     compiler \
11311     CC \
11312     LD \
11313     lt_prog_compiler_wl \
11314     lt_prog_compiler_pic \
11315     lt_prog_compiler_static \
11316     lt_prog_compiler_no_builtin_flag \
11317     export_dynamic_flag_spec \
11318     thread_safe_flag_spec \
11319     whole_archive_flag_spec \
11320     enable_shared_with_static_runtimes \
11321     old_archive_cmds \
11322     old_archive_from_new_cmds \
11323     predep_objects \
11324     postdep_objects \
11325     predeps \
11326     postdeps \
11327     compiler_lib_search_path \
11328     archive_cmds \
11329     archive_expsym_cmds \
11330     postinstall_cmds \
11331     postuninstall_cmds \
11332     old_archive_from_expsyms_cmds \
11333     allow_undefined_flag \
11334     no_undefined_flag \
11335     export_symbols_cmds \
11336     hardcode_libdir_flag_spec \
11337     hardcode_libdir_flag_spec_ld \
11338     hardcode_libdir_separator \
11339     hardcode_automatic \
11340     module_cmds \
11341     module_expsym_cmds \
11342     lt_cv_prog_compiler_c_o \
11343     exclude_expsyms \
11344     include_expsyms; do
11345
11346     case $var in
11347     old_archive_cmds | \
11348     old_archive_from_new_cmds | \
11349     archive_cmds | \
11350     archive_expsym_cmds | \
11351     module_cmds | \
11352     module_expsym_cmds | \
11353     old_archive_from_expsyms_cmds | \
11354     export_symbols_cmds | \
11355     extract_expsyms_cmds | reload_cmds | finish_cmds | \
11356     postinstall_cmds | postuninstall_cmds | \
11357     old_postinstall_cmds | old_postuninstall_cmds | \
11358     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11359       # Double-quote double-evaled strings.
11360       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11361       ;;
11362     *)
11363       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11364       ;;
11365     esac
11366   done
11367
11368   case $lt_echo in
11369   *'\$0 --fallback-echo"')
11370     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11371     ;;
11372   esac
11373
11374 cfgfile="${ofile}T"
11375   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11376   $rm -f "$cfgfile"
11377   { echo "$as_me:$LINENO: creating $ofile" >&5
11378 echo "$as_me: creating $ofile" >&6;}
11379
11380   cat <<__EOF__ >> "$cfgfile"
11381 #! $SHELL
11382
11383 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11384 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11385 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11386 #
11387 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
11388 # Free Software Foundation, Inc.
11389 #
11390 # This file is part of GNU Libtool:
11391 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11392 #
11393 # This program is free software; you can redistribute it and/or modify
11394 # it under the terms of the GNU General Public License as published by
11395 # the Free Software Foundation; either version 2 of the License, or
11396 # (at your option) any later version.
11397 #
11398 # This program is distributed in the hope that it will be useful, but
11399 # WITHOUT ANY WARRANTY; without even the implied warranty of
11400 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11401 # General Public License for more details.
11402 #
11403 # You should have received a copy of the GNU General Public License
11404 # along with this program; if not, write to the Free Software
11405 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11406 #
11407 # As a special exception to the GNU General Public License, if you
11408 # distribute this file as part of a program that contains a
11409 # configuration script generated by Autoconf, you may include it under
11410 # the same distribution terms that you use for the rest of that program.
11411
11412 # A sed program that does not truncate output.
11413 SED=$lt_SED
11414
11415 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11416 Xsed="$SED -e 1s/^X//"
11417
11418 # The HP-UX ksh and POSIX shell print the target directory to stdout
11419 # if CDPATH is set.
11420 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11421
11422 # The names of the tagged configurations supported by this script.
11423 available_tags=
11424
11425 # ### BEGIN LIBTOOL CONFIG
11426
11427 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11428
11429 # Shell to use when invoking shell scripts.
11430 SHELL=$lt_SHELL
11431
11432 # Whether or not to build shared libraries.
11433 build_libtool_libs=$enable_shared
11434
11435 # Whether or not to build static libraries.
11436 build_old_libs=$enable_static
11437
11438 # Whether or not to add -lc for building shared libraries.
11439 build_libtool_need_lc=$archive_cmds_need_lc
11440
11441 # Whether or not to disallow shared libs when runtime libs are static
11442 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11443
11444 # Whether or not to optimize for fast installation.
11445 fast_install=$enable_fast_install
11446
11447 # The host system.
11448 host_alias=$host_alias
11449 host=$host
11450 host_os=$host_os
11451
11452 # The build system.
11453 build_alias=$build_alias
11454 build=$build
11455 build_os=$build_os
11456
11457 # An echo program that does not interpret backslashes.
11458 echo=$lt_echo
11459
11460 # The archiver.
11461 AR=$lt_AR
11462 AR_FLAGS=$lt_AR_FLAGS
11463
11464 # A C compiler.
11465 LTCC=$lt_LTCC
11466
11467 # A language-specific compiler.
11468 CC=$lt_compiler
11469
11470 # Is the compiler the GNU C compiler?
11471 with_gcc=$GCC
11472
11473 # An ERE matcher.
11474 EGREP=$lt_EGREP
11475
11476 # The linker used to build libraries.
11477 LD=$lt_LD
11478
11479 # Whether we need hard or soft links.
11480 LN_S=$lt_LN_S
11481
11482 # A BSD-compatible nm program.
11483 NM=$lt_NM
11484
11485 # A symbol stripping program
11486 STRIP=$lt_STRIP
11487
11488 # Used to examine libraries when file_magic_cmd begins "file"
11489 MAGIC_CMD=$MAGIC_CMD
11490
11491 # Used on cygwin: DLL creation program.
11492 DLLTOOL="$DLLTOOL"
11493
11494 # Used on cygwin: object dumper.
11495 OBJDUMP="$OBJDUMP"
11496
11497 # Used on cygwin: assembler.
11498 AS="$AS"
11499
11500 # The name of the directory that contains temporary libtool files.
11501 objdir=$objdir
11502
11503 # How to create reloadable object files.
11504 reload_flag=$lt_reload_flag
11505 reload_cmds=$lt_reload_cmds
11506
11507 # How to pass a linker flag through the compiler.
11508 wl=$lt_lt_prog_compiler_wl
11509
11510 # Object file suffix (normally "o").
11511 objext="$ac_objext"
11512
11513 # Old archive suffix (normally "a").
11514 libext="$libext"
11515
11516 # Shared library suffix (normally ".so").
11517 shrext_cmds='$shrext_cmds'
11518
11519 # Executable file suffix (normally "").
11520 exeext="$exeext"
11521
11522 # Additional compiler flags for building library objects.
11523 pic_flag=$lt_lt_prog_compiler_pic
11524 pic_mode=$pic_mode
11525
11526 # What is the maximum length of a command?
11527 max_cmd_len=$lt_cv_sys_max_cmd_len
11528
11529 # Does compiler simultaneously support -c and -o options?
11530 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11531
11532 # Must we lock files when doing compilation?
11533 need_locks=$lt_need_locks
11534
11535 # Do we need the lib prefix for modules?
11536 need_lib_prefix=$need_lib_prefix
11537
11538 # Do we need a version for libraries?
11539 need_version=$need_version
11540
11541 # Whether dlopen is supported.
11542 dlopen_support=$enable_dlopen
11543
11544 # Whether dlopen of programs is supported.
11545 dlopen_self=$enable_dlopen_self
11546
11547 # Whether dlopen of statically linked programs is supported.
11548 dlopen_self_static=$enable_dlopen_self_static
11549
11550 # Compiler flag to prevent dynamic linking.
11551 link_static_flag=$lt_lt_prog_compiler_static
11552
11553 # Compiler flag to turn off builtin functions.
11554 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11555
11556 # Compiler flag to allow reflexive dlopens.
11557 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11558
11559 # Compiler flag to generate shared objects directly from archives.
11560 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11561
11562 # Compiler flag to generate thread-safe objects.
11563 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11564
11565 # Library versioning type.
11566 version_type=$version_type
11567
11568 # Format of library name prefix.
11569 libname_spec=$lt_libname_spec
11570
11571 # List of archive names.  First name is the real one, the rest are links.
11572 # The last name is the one that the linker finds with -lNAME.
11573 library_names_spec=$lt_library_names_spec
11574
11575 # The coded name of the library, if different from the real name.
11576 soname_spec=$lt_soname_spec
11577
11578 # Commands used to build and install an old-style archive.
11579 RANLIB=$lt_RANLIB
11580 old_archive_cmds=$lt_old_archive_cmds
11581 old_postinstall_cmds=$lt_old_postinstall_cmds
11582 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11583
11584 # Create an old-style archive from a shared archive.
11585 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11586
11587 # Create a temporary old-style archive to link instead of a shared archive.
11588 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11589
11590 # Commands used to build and install a shared archive.
11591 archive_cmds=$lt_archive_cmds
11592 archive_expsym_cmds=$lt_archive_expsym_cmds
11593 postinstall_cmds=$lt_postinstall_cmds
11594 postuninstall_cmds=$lt_postuninstall_cmds
11595
11596 # Commands used to build a loadable module (assumed same as above if empty)
11597 module_cmds=$lt_module_cmds
11598 module_expsym_cmds=$lt_module_expsym_cmds
11599
11600 # Commands to strip libraries.
11601 old_striplib=$lt_old_striplib
11602 striplib=$lt_striplib
11603
11604 # Dependencies to place before the objects being linked to create a
11605 # shared library.
11606 predep_objects=$lt_predep_objects
11607
11608 # Dependencies to place after the objects being linked to create a
11609 # shared library.
11610 postdep_objects=$lt_postdep_objects
11611
11612 # Dependencies to place before the objects being linked to create a
11613 # shared library.
11614 predeps=$lt_predeps
11615
11616 # Dependencies to place after the objects being linked to create a
11617 # shared library.
11618 postdeps=$lt_postdeps
11619
11620 # The library search path used internally by the compiler when linking
11621 # a shared library.
11622 compiler_lib_search_path=$lt_compiler_lib_search_path
11623
11624 # Method to check whether dependent libraries are shared objects.
11625 deplibs_check_method=$lt_deplibs_check_method
11626
11627 # Command to use when deplibs_check_method == file_magic.
11628 file_magic_cmd=$lt_file_magic_cmd
11629
11630 # Flag that allows shared libraries with undefined symbols to be built.
11631 allow_undefined_flag=$lt_allow_undefined_flag
11632
11633 # Flag that forces no undefined symbols.
11634 no_undefined_flag=$lt_no_undefined_flag
11635
11636 # Commands used to finish a libtool library installation in a directory.
11637 finish_cmds=$lt_finish_cmds
11638
11639 # Same as above, but a single script fragment to be evaled but not shown.
11640 finish_eval=$lt_finish_eval
11641
11642 # Take the output of nm and produce a listing of raw symbols and C names.
11643 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11644
11645 # Transform the output of nm in a proper C declaration
11646 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11647
11648 # Transform the output of nm in a C name address pair
11649 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11650
11651 # This is the shared library runtime path variable.
11652 runpath_var=$runpath_var
11653
11654 # This is the shared library path variable.
11655 shlibpath_var=$shlibpath_var
11656
11657 # Is shlibpath searched before the hard-coded library search path?
11658 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11659
11660 # How to hardcode a shared library path into an executable.
11661 hardcode_action=$hardcode_action
11662
11663 # Whether we should hardcode library paths into libraries.
11664 hardcode_into_libs=$hardcode_into_libs
11665
11666 # Flag to hardcode \$libdir into a binary during linking.
11667 # This must work even if \$libdir does not exist.
11668 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11669
11670 # If ld is used when linking, flag to hardcode \$libdir into
11671 # a binary during linking. This must work even if \$libdir does
11672 # not exist.
11673 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11674
11675 # Whether we need a single -rpath flag with a separated argument.
11676 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11677
11678 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11679 # resulting binary.
11680 hardcode_direct=$hardcode_direct
11681
11682 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11683 # resulting binary.
11684 hardcode_minus_L=$hardcode_minus_L
11685
11686 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11687 # the resulting binary.
11688 hardcode_shlibpath_var=$hardcode_shlibpath_var
11689
11690 # Set to yes if building a shared library automatically hardcodes DIR into the library
11691 # and all subsequent libraries and executables linked against it.
11692 hardcode_automatic=$hardcode_automatic
11693
11694 # Variables whose values should be saved in libtool wrapper scripts and
11695 # restored at relink time.
11696 variables_saved_for_relink="$variables_saved_for_relink"
11697
11698 # Whether libtool must link a program against all its dependency libraries.
11699 link_all_deplibs=$link_all_deplibs
11700
11701 # Compile-time system search path for libraries
11702 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11703
11704 # Run-time system search path for libraries
11705 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11706
11707 # Fix the shell variable \$srcfile for the compiler.
11708 fix_srcfile_path="$fix_srcfile_path"
11709
11710 # Set to yes if exported symbols are required.
11711 always_export_symbols=$always_export_symbols
11712
11713 # The commands to list exported symbols.
11714 export_symbols_cmds=$lt_export_symbols_cmds
11715
11716 # The commands to extract the exported symbol list from a shared archive.
11717 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11718
11719 # Symbols that should not be listed in the preloaded symbols.
11720 exclude_expsyms=$lt_exclude_expsyms
11721
11722 # Symbols that must always be exported.
11723 include_expsyms=$lt_include_expsyms
11724
11725 # ### END LIBTOOL CONFIG
11726
11727 __EOF__
11728
11729
11730   case $host_os in
11731   aix3*)
11732     cat <<\EOF >> "$cfgfile"
11733
11734 # AIX sometimes has problems with the GCC collect2 program.  For some
11735 # reason, if we set the COLLECT_NAMES environment variable, the problems
11736 # vanish in a puff of smoke.
11737 if test "X${COLLECT_NAMES+set}" != Xset; then
11738   COLLECT_NAMES=
11739   export COLLECT_NAMES
11740 fi
11741 EOF
11742     ;;
11743   esac
11744
11745   # We use sed instead of cat because bash on DJGPP gets confused if
11746   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
11747   # text mode, it properly converts lines to CR/LF.  This bash problem
11748   # is reportedly fixed, but why not run on old versions too?
11749   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11750
11751   mv -f "$cfgfile" "$ofile" || \
11752     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11753   chmod +x "$ofile"
11754
11755 else
11756   # If there is no Makefile yet, we rely on a make rule to execute
11757   # `config.status --recheck' to rerun these tests and create the
11758   # libtool script then.
11759   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11760   if test -f "$ltmain_in"; then
11761     test -f Makefile && make "$ltmain"
11762   fi
11763 fi
11764
11765
11766 ac_ext=c
11767 ac_cpp='$CPP $CPPFLAGS'
11768 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11769 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11770 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11771
11772 CC="$lt_save_CC"
11773
11774
11775 # Check whether --with-tags or --without-tags was given.
11776 if test "${with_tags+set}" = set; then
11777   withval="$with_tags"
11778   tagnames="$withval"
11779 fi;
11780
11781 if test -f "$ltmain" && test -n "$tagnames"; then
11782   if test ! -f "${ofile}"; then
11783     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11784 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11785   fi
11786
11787   if test -z "$LTCC"; then
11788     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11789     if test -z "$LTCC"; then
11790       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11791 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11792     else
11793       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11794 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11795     fi
11796   fi
11797
11798   # Extract list of available tagged configurations in $ofile.
11799   # Note that this assumes the entire list is on one line.
11800   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11801
11802   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11803   for tagname in $tagnames; do
11804     IFS="$lt_save_ifs"
11805     # Check whether tagname contains only valid characters
11806     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11807     "") ;;
11808     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11809 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11810    { (exit 1); exit 1; }; }
11811         ;;
11812     esac
11813
11814     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11815     then
11816       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11817 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11818    { (exit 1); exit 1; }; }
11819     fi
11820
11821     # Update the list of available tags.
11822     if test -n "$tagname"; then
11823       echo appending configuration tag \"$tagname\" to $ofile
11824
11825       case $tagname in
11826       CXX)
11827         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11828             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11829             (test "X$CXX" != "Xg++"))) ; then
11830           ac_ext=cc
11831 ac_cpp='$CXXCPP $CPPFLAGS'
11832 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11833 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11834 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11835
11836
11837
11838
11839 archive_cmds_need_lc_CXX=no
11840 allow_undefined_flag_CXX=
11841 always_export_symbols_CXX=no
11842 archive_expsym_cmds_CXX=
11843 export_dynamic_flag_spec_CXX=
11844 hardcode_direct_CXX=no
11845 hardcode_libdir_flag_spec_CXX=
11846 hardcode_libdir_flag_spec_ld_CXX=
11847 hardcode_libdir_separator_CXX=
11848 hardcode_minus_L_CXX=no
11849 hardcode_automatic_CXX=no
11850 module_cmds_CXX=
11851 module_expsym_cmds_CXX=
11852 link_all_deplibs_CXX=unknown
11853 old_archive_cmds_CXX=$old_archive_cmds
11854 no_undefined_flag_CXX=
11855 whole_archive_flag_spec_CXX=
11856 enable_shared_with_static_runtimes_CXX=no
11857
11858 # Dependencies to place before and after the object being linked:
11859 predep_objects_CXX=
11860 postdep_objects_CXX=
11861 predeps_CXX=
11862 postdeps_CXX=
11863 compiler_lib_search_path_CXX=
11864
11865 # Source file extension for C++ test sources.
11866 ac_ext=cc
11867
11868 # Object file extension for compiled C++ test sources.
11869 objext=o
11870 objext_CXX=$objext
11871
11872 # Code to be used in simple compile tests
11873 lt_simple_compile_test_code="int some_variable = 0;\n"
11874
11875 # Code to be used in simple link tests
11876 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
11877
11878 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11879
11880 # If no C compiler was specified, use CC.
11881 LTCC=${LTCC-"$CC"}
11882
11883 # Allow CC to be a program name with arguments.
11884 compiler=$CC
11885
11886
11887 # save warnings/boilerplate of simple test code
11888 ac_outfile=conftest.$ac_objext
11889 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11890 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11891 _lt_compiler_boilerplate=`cat conftest.err`
11892 $rm conftest*
11893
11894 ac_outfile=conftest.$ac_objext
11895 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11896 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11897 _lt_linker_boilerplate=`cat conftest.err`
11898 $rm conftest*
11899
11900
11901 # Allow CC to be a program name with arguments.
11902 lt_save_CC=$CC
11903 lt_save_LD=$LD
11904 lt_save_GCC=$GCC
11905 GCC=$GXX
11906 lt_save_with_gnu_ld=$with_gnu_ld
11907 lt_save_path_LD=$lt_cv_path_LD
11908 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11909   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11910 else
11911   unset lt_cv_prog_gnu_ld
11912 fi
11913 if test -n "${lt_cv_path_LDCXX+set}"; then
11914   lt_cv_path_LD=$lt_cv_path_LDCXX
11915 else
11916   unset lt_cv_path_LD
11917 fi
11918 test -z "${LDCXX+set}" || LD=$LDCXX
11919 CC=${CXX-"c++"}
11920 compiler=$CC
11921 compiler_CXX=$CC
11922 for cc_temp in $compiler""; do
11923   case $cc_temp in
11924     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11925     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11926     \-*) ;;
11927     *) break;;
11928   esac
11929 done
11930 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11931
11932
11933 # We don't want -fno-exception wen compiling C++ code, so set the
11934 # no_builtin_flag separately
11935 if test "$GXX" = yes; then
11936   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11937 else
11938   lt_prog_compiler_no_builtin_flag_CXX=
11939 fi
11940
11941 if test "$GXX" = yes; then
11942   # Set up default GNU C++ configuration
11943
11944
11945 # Check whether --with-gnu-ld or --without-gnu-ld was given.
11946 if test "${with_gnu_ld+set}" = set; then
11947   withval="$with_gnu_ld"
11948   test "$withval" = no || with_gnu_ld=yes
11949 else
11950   with_gnu_ld=no
11951 fi;
11952 ac_prog=ld
11953 if test "$GCC" = yes; then
11954   # Check if gcc -print-prog-name=ld gives a path.
11955   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11956 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
11957   case $host in
11958   *-*-mingw*)
11959     # gcc leaves a trailing carriage return which upsets mingw
11960     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11961   *)
11962     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11963   esac
11964   case $ac_prog in
11965     # Accept absolute paths.
11966     [\\/]* | ?:[\\/]*)
11967       re_direlt='/[^/][^/]*/\.\./'
11968       # Canonicalize the pathname of ld
11969       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11970       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11971         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11972       done
11973       test -z "$LD" && LD="$ac_prog"
11974       ;;
11975   "")
11976     # If it fails, then pretend we aren't using GCC.
11977     ac_prog=ld
11978     ;;
11979   *)
11980     # If it is relative, then search for the first ld in PATH.
11981     with_gnu_ld=unknown
11982     ;;
11983   esac
11984 elif test "$with_gnu_ld" = yes; then
11985   echo "$as_me:$LINENO: checking for GNU ld" >&5
11986 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
11987 else
11988   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11989 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
11990 fi
11991 if test "${lt_cv_path_LD+set}" = set; then
11992   echo $ECHO_N "(cached) $ECHO_C" >&6
11993 else
11994   if test -z "$LD"; then
11995   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11996   for ac_dir in $PATH; do
11997     IFS="$lt_save_ifs"
11998     test -z "$ac_dir" && ac_dir=.
11999     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12000       lt_cv_path_LD="$ac_dir/$ac_prog"
12001       # Check to see if the program is GNU ld.  I'd rather use --version,
12002       # but apparently some GNU ld's only accept -v.
12003       # Break only if it was the GNU/non-GNU ld that we prefer.
12004       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12005       *GNU* | *'with BFD'*)
12006         test "$with_gnu_ld" != no && break
12007         ;;
12008       *)
12009         test "$with_gnu_ld" != yes && break
12010         ;;
12011       esac
12012     fi
12013   done
12014   IFS="$lt_save_ifs"
12015 else
12016   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12017 fi
12018 fi
12019
12020 LD="$lt_cv_path_LD"
12021 if test -n "$LD"; then
12022   echo "$as_me:$LINENO: result: $LD" >&5
12023 echo "${ECHO_T}$LD" >&6
12024 else
12025   echo "$as_me:$LINENO: result: no" >&5
12026 echo "${ECHO_T}no" >&6
12027 fi
12028 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12029 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12030    { (exit 1); exit 1; }; }
12031 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12032 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
12033 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12034   echo $ECHO_N "(cached) $ECHO_C" >&6
12035 else
12036   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
12037 case `$LD -v 2>&1 </dev/null` in
12038 *GNU* | *'with BFD'*)
12039   lt_cv_prog_gnu_ld=yes
12040   ;;
12041 *)
12042   lt_cv_prog_gnu_ld=no
12043   ;;
12044 esac
12045 fi
12046 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12047 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
12048 with_gnu_ld=$lt_cv_prog_gnu_ld
12049
12050
12051
12052   # Check if GNU C++ uses GNU ld as the underlying linker, since the
12053   # archiving commands below assume that GNU ld is being used.
12054   if test "$with_gnu_ld" = yes; then
12055     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12056     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'
12057
12058     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12059     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12060
12061     # If archive_cmds runs LD, not CC, wlarc should be empty
12062     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12063     #     investigate it a little bit more. (MM)
12064     wlarc='${wl}'
12065
12066     # ancient GNU ld didn't support --whole-archive et. al.
12067     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
12068         grep 'no-whole-archive' > /dev/null; then
12069       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12070     else
12071       whole_archive_flag_spec_CXX=
12072     fi
12073   else
12074     with_gnu_ld=no
12075     wlarc=
12076
12077     # A generic and very simple default shared library creation
12078     # command for GNU C++ for the case where it uses the native
12079     # linker, instead of GNU ld.  If possible, this setting should
12080     # overridden to take advantage of the native linker features on
12081     # the platform it is being used on.
12082     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12083   fi
12084
12085   # Commands to make compiler produce verbose output that lists
12086   # what "hidden" libraries, object files and flags are used when
12087   # linking a shared library.
12088   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12089
12090 else
12091   GXX=no
12092   with_gnu_ld=no
12093   wlarc=
12094 fi
12095
12096 # PORTME: fill in a description of your system's C++ link characteristics
12097 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12098 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12099 ld_shlibs_CXX=yes
12100 case $host_os in
12101   aix3*)
12102     # FIXME: insert proper C++ library support
12103     ld_shlibs_CXX=no
12104     ;;
12105   aix4* | aix5*)
12106     if test "$host_cpu" = ia64; then
12107       # On IA64, the linker does run time linking by default, so we don't
12108       # have to do anything special.
12109       aix_use_runtimelinking=no
12110       exp_sym_flag='-Bexport'
12111       no_entry_flag=""
12112     else
12113       aix_use_runtimelinking=no
12114
12115       # Test if we are trying to use run time linking or normal
12116       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12117       # need to do runtime linking.
12118       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12119         for ld_flag in $LDFLAGS; do
12120           case $ld_flag in
12121           *-brtl*)
12122             aix_use_runtimelinking=yes
12123             break
12124             ;;
12125           esac
12126         done
12127       esac
12128
12129       exp_sym_flag='-bexport'
12130       no_entry_flag='-bnoentry'
12131     fi
12132
12133     # When large executables or shared objects are built, AIX ld can
12134     # have problems creating the table of contents.  If linking a library
12135     # or program results in "error TOC overflow" add -mminimal-toc to
12136     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12137     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12138
12139     archive_cmds_CXX=''
12140     hardcode_direct_CXX=yes
12141     hardcode_libdir_separator_CXX=':'
12142     link_all_deplibs_CXX=yes
12143
12144     if test "$GXX" = yes; then
12145       case $host_os in aix4.[012]|aix4.[012].*)
12146       # We only want to do this on AIX 4.2 and lower, the check
12147       # below for broken collect2 doesn't work under 4.3+
12148         collect2name=`${CC} -print-prog-name=collect2`
12149         if test -f "$collect2name" && \
12150            strings "$collect2name" | grep resolve_lib_name >/dev/null
12151         then
12152           # We have reworked collect2
12153           hardcode_direct_CXX=yes
12154         else
12155           # We have old collect2
12156           hardcode_direct_CXX=unsupported
12157           # It fails to find uninstalled libraries when the uninstalled
12158           # path is not listed in the libpath.  Setting hardcode_minus_L
12159           # to unsupported forces relinking
12160           hardcode_minus_L_CXX=yes
12161           hardcode_libdir_flag_spec_CXX='-L$libdir'
12162           hardcode_libdir_separator_CXX=
12163         fi
12164       esac
12165       shared_flag='-shared'
12166       if test "$aix_use_runtimelinking" = yes; then
12167         shared_flag="$shared_flag "'${wl}-G'
12168       fi
12169     else
12170       # not using gcc
12171       if test "$host_cpu" = ia64; then
12172         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12173         # chokes on -Wl,-G. The following line is correct:
12174         shared_flag='-G'
12175       else
12176         if test "$aix_use_runtimelinking" = yes; then
12177           shared_flag='${wl}-G'
12178         else
12179           shared_flag='${wl}-bM:SRE'
12180         fi
12181       fi
12182     fi
12183
12184     # It seems that -bexpall does not export symbols beginning with
12185     # underscore (_), so it is better to generate a list of symbols to export.
12186     always_export_symbols_CXX=yes
12187     if test "$aix_use_runtimelinking" = yes; then
12188       # Warning - without using the other runtime loading flags (-brtl),
12189       # -berok will link without error, but may produce a broken library.
12190       allow_undefined_flag_CXX='-berok'
12191       # Determine the default libpath from the value encoded in an empty executable.
12192       cat >conftest.$ac_ext <<_ACEOF
12193 /* confdefs.h.  */
12194 _ACEOF
12195 cat confdefs.h >>conftest.$ac_ext
12196 cat >>conftest.$ac_ext <<_ACEOF
12197 /* end confdefs.h.  */
12198
12199 int
12200 main ()
12201 {
12202
12203   ;
12204   return 0;
12205 }
12206 _ACEOF
12207 rm -f conftest.$ac_objext conftest$ac_exeext
12208 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12209   (eval $ac_link) 2>conftest.er1
12210   ac_status=$?
12211   grep -v '^ *+' conftest.er1 >conftest.err
12212   rm -f conftest.er1
12213   cat conftest.err >&5
12214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12215   (exit $ac_status); } &&
12216          { ac_try='test -z "$ac_cxx_werror_flag"
12217                          || test ! -s conftest.err'
12218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12219   (eval $ac_try) 2>&5
12220   ac_status=$?
12221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12222   (exit $ac_status); }; } &&
12223          { ac_try='test -s conftest$ac_exeext'
12224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12225   (eval $ac_try) 2>&5
12226   ac_status=$?
12227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12228   (exit $ac_status); }; }; then
12229
12230 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12231 }'`
12232 # Check for a 64-bit object if we didn't find anything.
12233 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; }
12234 }'`; fi
12235 else
12236   echo "$as_me: failed program was:" >&5
12237 sed 's/^/| /' conftest.$ac_ext >&5
12238
12239 fi
12240 rm -f conftest.err conftest.$ac_objext \
12241       conftest$ac_exeext conftest.$ac_ext
12242 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12243
12244       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12245
12246       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"
12247      else
12248       if test "$host_cpu" = ia64; then
12249         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12250         allow_undefined_flag_CXX="-z nodefs"
12251         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"
12252       else
12253         # Determine the default libpath from the value encoded in an empty executable.
12254         cat >conftest.$ac_ext <<_ACEOF
12255 /* confdefs.h.  */
12256 _ACEOF
12257 cat confdefs.h >>conftest.$ac_ext
12258 cat >>conftest.$ac_ext <<_ACEOF
12259 /* end confdefs.h.  */
12260
12261 int
12262 main ()
12263 {
12264
12265   ;
12266   return 0;
12267 }
12268 _ACEOF
12269 rm -f conftest.$ac_objext conftest$ac_exeext
12270 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12271   (eval $ac_link) 2>conftest.er1
12272   ac_status=$?
12273   grep -v '^ *+' conftest.er1 >conftest.err
12274   rm -f conftest.er1
12275   cat conftest.err >&5
12276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12277   (exit $ac_status); } &&
12278          { ac_try='test -z "$ac_cxx_werror_flag"
12279                          || test ! -s conftest.err'
12280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12281   (eval $ac_try) 2>&5
12282   ac_status=$?
12283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12284   (exit $ac_status); }; } &&
12285          { ac_try='test -s conftest$ac_exeext'
12286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12287   (eval $ac_try) 2>&5
12288   ac_status=$?
12289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12290   (exit $ac_status); }; }; then
12291
12292 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12293 }'`
12294 # Check for a 64-bit object if we didn't find anything.
12295 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; }
12296 }'`; fi
12297 else
12298   echo "$as_me: failed program was:" >&5
12299 sed 's/^/| /' conftest.$ac_ext >&5
12300
12301 fi
12302 rm -f conftest.err conftest.$ac_objext \
12303       conftest$ac_exeext conftest.$ac_ext
12304 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12305
12306         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12307         # Warning - without using the other run time loading flags,
12308         # -berok will link without error, but may produce a broken library.
12309         no_undefined_flag_CXX=' ${wl}-bernotok'
12310         allow_undefined_flag_CXX=' ${wl}-berok'
12311         # -bexpall does not export symbols beginning with underscore (_)
12312         always_export_symbols_CXX=yes
12313         # Exported symbols can be pulled into shared objects from archives
12314         whole_archive_flag_spec_CXX=' '
12315         archive_cmds_need_lc_CXX=yes
12316         # This is similar to how AIX traditionally builds it's shared libraries.
12317         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'
12318       fi
12319     fi
12320     ;;
12321   chorus*)
12322     case $cc_basename in
12323       *)
12324         # FIXME: insert proper C++ library support
12325         ld_shlibs_CXX=no
12326         ;;
12327     esac
12328     ;;
12329
12330
12331   cygwin* | mingw* | pw32*)
12332     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12333     # as there is no search path for DLLs.
12334     hardcode_libdir_flag_spec_CXX='-L$libdir'
12335     allow_undefined_flag_CXX=unsupported
12336     always_export_symbols_CXX=no
12337     enable_shared_with_static_runtimes_CXX=yes
12338
12339     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12340       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'
12341       # If the export-symbols file already is a .def file (1st line
12342       # is EXPORTS), use it as is; otherwise, prepend...
12343       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12344         cp $export_symbols $output_objdir/$soname.def;
12345       else
12346         echo EXPORTS > $output_objdir/$soname.def;
12347         cat $export_symbols >> $output_objdir/$soname.def;
12348       fi~
12349       $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'
12350     else
12351       ld_shlibs_CXX=no
12352     fi
12353   ;;
12354       darwin* | rhapsody*)
12355         case "$host_os" in
12356         rhapsody* | darwin1.[012])
12357          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
12358          ;;
12359        *) # Darwin 1.3 on
12360          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12361            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12362          else
12363            case ${MACOSX_DEPLOYMENT_TARGET} in
12364              10.[012])
12365                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12366                ;;
12367              10.*)
12368                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
12369                ;;
12370            esac
12371          fi
12372          ;;
12373         esac
12374       archive_cmds_need_lc_CXX=no
12375       hardcode_direct_CXX=no
12376       hardcode_automatic_CXX=yes
12377       hardcode_shlibpath_var_CXX=unsupported
12378       whole_archive_flag_spec_CXX=''
12379       link_all_deplibs_CXX=yes
12380
12381     if test "$GXX" = yes ; then
12382       lt_int_apple_cc_single_mod=no
12383       output_verbose_link_cmd='echo'
12384       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
12385        lt_int_apple_cc_single_mod=yes
12386       fi
12387       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12388        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12389       else
12390           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'
12391         fi
12392         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12393         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12394           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12395             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}'
12396           else
12397             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}'
12398           fi
12399             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}'
12400       else
12401       case $cc_basename in
12402         xlc*)
12403          output_verbose_link_cmd='echo'
12404           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'
12405           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12406           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12407           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}'
12408           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}'
12409           ;;
12410        *)
12411          ld_shlibs_CXX=no
12412           ;;
12413       esac
12414       fi
12415         ;;
12416
12417   dgux*)
12418     case $cc_basename in
12419       ec++*)
12420         # FIXME: insert proper C++ library support
12421         ld_shlibs_CXX=no
12422         ;;
12423       ghcx*)
12424         # Green Hills C++ Compiler
12425         # FIXME: insert proper C++ library support
12426         ld_shlibs_CXX=no
12427         ;;
12428       *)
12429         # FIXME: insert proper C++ library support
12430         ld_shlibs_CXX=no
12431         ;;
12432     esac
12433     ;;
12434   freebsd[12]*)
12435     # C++ shared libraries reported to be fairly broken before switch to ELF
12436     ld_shlibs_CXX=no
12437     ;;
12438   freebsd-elf*)
12439     archive_cmds_need_lc_CXX=no
12440     ;;
12441   freebsd* | kfreebsd*-gnu | dragonfly*)
12442     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12443     # conventions
12444     ld_shlibs_CXX=yes
12445     ;;
12446   gnu*)
12447     ;;
12448   hpux9*)
12449     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12450     hardcode_libdir_separator_CXX=:
12451     export_dynamic_flag_spec_CXX='${wl}-E'
12452     hardcode_direct_CXX=yes
12453     hardcode_minus_L_CXX=yes # Not in the search PATH,
12454                                 # but as the default
12455                                 # location of the library.
12456
12457     case $cc_basename in
12458     CC*)
12459       # FIXME: insert proper C++ library support
12460       ld_shlibs_CXX=no
12461       ;;
12462     aCC*)
12463       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'
12464       # Commands to make compiler produce verbose output that lists
12465       # what "hidden" libraries, object files and flags are used when
12466       # linking a shared library.
12467       #
12468       # There doesn't appear to be a way to prevent this compiler from
12469       # explicitly linking system object files so we need to strip them
12470       # from the output so that they don't get included in the library
12471       # dependencies.
12472       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'
12473       ;;
12474     *)
12475       if test "$GXX" = yes; then
12476         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'
12477       else
12478         # FIXME: insert proper C++ library support
12479         ld_shlibs_CXX=no
12480       fi
12481       ;;
12482     esac
12483     ;;
12484   hpux10*|hpux11*)
12485     if test $with_gnu_ld = no; then
12486       case "$host_cpu" in
12487       hppa*64*)
12488         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12489         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
12490         hardcode_libdir_separator_CXX=:
12491         ;;
12492       ia64*)
12493         hardcode_libdir_flag_spec_CXX='-L$libdir'
12494         ;;
12495       *)
12496         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12497         hardcode_libdir_separator_CXX=:
12498         export_dynamic_flag_spec_CXX='${wl}-E'
12499         ;;
12500       esac
12501     fi
12502     case "$host_cpu" in
12503     hppa*64*)
12504       hardcode_direct_CXX=no
12505       hardcode_shlibpath_var_CXX=no
12506       ;;
12507     ia64*)
12508       hardcode_direct_CXX=no
12509       hardcode_shlibpath_var_CXX=no
12510       hardcode_minus_L_CXX=yes # Not in the search PATH,
12511                                               # but as the default
12512                                               # location of the library.
12513       ;;
12514     *)
12515       hardcode_direct_CXX=yes
12516       hardcode_minus_L_CXX=yes # Not in the search PATH,
12517                                               # but as the default
12518                                               # location of the library.
12519       ;;
12520     esac
12521
12522     case $cc_basename in
12523       CC*)
12524         # FIXME: insert proper C++ library support
12525         ld_shlibs_CXX=no
12526         ;;
12527       aCC*)
12528         case "$host_cpu" in
12529         hppa*64*|ia64*)
12530           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
12531           ;;
12532         *)
12533           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12534           ;;
12535         esac
12536         # Commands to make compiler produce verbose output that lists
12537         # what "hidden" libraries, object files and flags are used when
12538         # linking a shared library.
12539         #
12540         # There doesn't appear to be a way to prevent this compiler from
12541         # explicitly linking system object files so we need to strip them
12542         # from the output so that they don't get included in the library
12543         # dependencies.
12544         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'
12545         ;;
12546       *)
12547         if test "$GXX" = yes; then
12548           if test $with_gnu_ld = no; then
12549             case "$host_cpu" in
12550             ia64*|hppa*64*)
12551               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
12552               ;;
12553             *)
12554               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'
12555               ;;
12556             esac
12557           fi
12558         else
12559           # FIXME: insert proper C++ library support
12560           ld_shlibs_CXX=no
12561         fi
12562         ;;
12563     esac
12564     ;;
12565   irix5* | irix6*)
12566     case $cc_basename in
12567       CC*)
12568         # SGI C++
12569         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'
12570
12571         # Archives containing C++ object files must be created using
12572         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12573         # necessary to make sure instantiated templates are included
12574         # in the archive.
12575         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12576         ;;
12577       *)
12578         if test "$GXX" = yes; then
12579           if test "$with_gnu_ld" = no; then
12580             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'
12581           else
12582             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'
12583           fi
12584         fi
12585         link_all_deplibs_CXX=yes
12586         ;;
12587     esac
12588     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12589     hardcode_libdir_separator_CXX=:
12590     ;;
12591   linux*)
12592     case $cc_basename in
12593       KCC*)
12594         # Kuck and Associates, Inc. (KAI) C++ Compiler
12595
12596         # KCC will only create a shared library if the output file
12597         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12598         # to its proper name (with version) after linking.
12599         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'
12600         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'
12601         # Commands to make compiler produce verbose output that lists
12602         # what "hidden" libraries, object files and flags are used when
12603         # linking a shared library.
12604         #
12605         # There doesn't appear to be a way to prevent this compiler from
12606         # explicitly linking system object files so we need to strip them
12607         # from the output so that they don't get included in the library
12608         # dependencies.
12609         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'
12610
12611         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12612         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12613
12614         # Archives containing C++ object files must be created using
12615         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12616         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12617         ;;
12618       icpc*)
12619         # Intel C++
12620         with_gnu_ld=yes
12621         # version 8.0 and above of icpc choke on multiply defined symbols
12622         # if we add $predep_objects and $postdep_objects, however 7.1 and
12623         # earlier do not add the objects themselves.
12624         case `$CC -V 2>&1` in
12625         *"Version 7."*)
12626           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12627           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'
12628           ;;
12629         *)  # Version 8.0 or newer
12630           tmp_idyn=
12631           case $host_cpu in
12632             ia64*) tmp_idyn=' -i_dynamic';;
12633           esac
12634           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12635           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'
12636           ;;
12637         esac
12638         archive_cmds_need_lc_CXX=no
12639         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12640         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12641         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12642         ;;
12643       pgCC*)
12644         # Portland Group C++ compiler
12645         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12646         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'
12647
12648         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12649         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12650         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'
12651         ;;
12652       cxx*)
12653         # Compaq C++
12654         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12655         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'
12656
12657         runpath_var=LD_RUN_PATH
12658         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12659         hardcode_libdir_separator_CXX=:
12660
12661         # Commands to make compiler produce verbose output that lists
12662         # what "hidden" libraries, object files and flags are used when
12663         # linking a shared library.
12664         #
12665         # There doesn't appear to be a way to prevent this compiler from
12666         # explicitly linking system object files so we need to strip them
12667         # from the output so that they don't get included in the library
12668         # dependencies.
12669         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'
12670         ;;
12671     esac
12672     ;;
12673   lynxos*)
12674     # FIXME: insert proper C++ library support
12675     ld_shlibs_CXX=no
12676     ;;
12677   m88k*)
12678     # FIXME: insert proper C++ library support
12679     ld_shlibs_CXX=no
12680     ;;
12681   mvs*)
12682     case $cc_basename in
12683       cxx*)
12684         # FIXME: insert proper C++ library support
12685         ld_shlibs_CXX=no
12686         ;;
12687       *)
12688         # FIXME: insert proper C++ library support
12689         ld_shlibs_CXX=no
12690         ;;
12691     esac
12692     ;;
12693   netbsd*)
12694     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12695       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12696       wlarc=
12697       hardcode_libdir_flag_spec_CXX='-R$libdir'
12698       hardcode_direct_CXX=yes
12699       hardcode_shlibpath_var_CXX=no
12700     fi
12701     # Workaround some broken pre-1.5 toolchains
12702     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12703     ;;
12704   openbsd2*)
12705     # C++ shared libraries are fairly broken
12706     ld_shlibs_CXX=no
12707     ;;
12708   openbsd*)
12709     hardcode_direct_CXX=yes
12710     hardcode_shlibpath_var_CXX=no
12711     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12712     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12713     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12714       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12715       export_dynamic_flag_spec_CXX='${wl}-E'
12716       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12717     fi
12718     output_verbose_link_cmd='echo'
12719     ;;
12720   osf3*)
12721     case $cc_basename in
12722       KCC*)
12723         # Kuck and Associates, Inc. (KAI) C++ Compiler
12724
12725         # KCC will only create a shared library if the output file
12726         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12727         # to its proper name (with version) after linking.
12728         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'
12729
12730         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12731         hardcode_libdir_separator_CXX=:
12732
12733         # Archives containing C++ object files must be created using
12734         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12735         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12736
12737         ;;
12738       RCC*)
12739         # Rational C++ 2.4.1
12740         # FIXME: insert proper C++ library support
12741         ld_shlibs_CXX=no
12742         ;;
12743       cxx*)
12744         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12745         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'
12746
12747         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12748         hardcode_libdir_separator_CXX=:
12749
12750         # Commands to make compiler produce verbose output that lists
12751         # what "hidden" libraries, object files and flags are used when
12752         # linking a shared library.
12753         #
12754         # There doesn't appear to be a way to prevent this compiler from
12755         # explicitly linking system object files so we need to strip them
12756         # from the output so that they don't get included in the library
12757         # dependencies.
12758         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'
12759         ;;
12760       *)
12761         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12762           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12763           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'
12764
12765           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12766           hardcode_libdir_separator_CXX=:
12767
12768           # Commands to make compiler produce verbose output that lists
12769           # what "hidden" libraries, object files and flags are used when
12770           # linking a shared library.
12771           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12772
12773         else
12774           # FIXME: insert proper C++ library support
12775           ld_shlibs_CXX=no
12776         fi
12777         ;;
12778     esac
12779     ;;
12780   osf4* | osf5*)
12781     case $cc_basename in
12782       KCC*)
12783         # Kuck and Associates, Inc. (KAI) C++ Compiler
12784
12785         # KCC will only create a shared library if the output file
12786         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12787         # to its proper name (with version) after linking.
12788         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'
12789
12790         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12791         hardcode_libdir_separator_CXX=:
12792
12793         # Archives containing C++ object files must be created using
12794         # the KAI C++ compiler.
12795         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12796         ;;
12797       RCC*)
12798         # Rational C++ 2.4.1
12799         # FIXME: insert proper C++ library support
12800         ld_shlibs_CXX=no
12801         ;;
12802       cxx*)
12803         allow_undefined_flag_CXX=' -expect_unresolved \*'
12804         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'
12805         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12806           echo "-hidden">> $lib.exp~
12807           $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~
12808           $rm $lib.exp'
12809
12810         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12811         hardcode_libdir_separator_CXX=:
12812
12813         # Commands to make compiler produce verbose output that lists
12814         # what "hidden" libraries, object files and flags are used when
12815         # linking a shared library.
12816         #
12817         # There doesn't appear to be a way to prevent this compiler from
12818         # explicitly linking system object files so we need to strip them
12819         # from the output so that they don't get included in the library
12820         # dependencies.
12821         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'
12822         ;;
12823       *)
12824         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12825           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12826          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'
12827
12828           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12829           hardcode_libdir_separator_CXX=:
12830
12831           # Commands to make compiler produce verbose output that lists
12832           # what "hidden" libraries, object files and flags are used when
12833           # linking a shared library.
12834           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12835
12836         else
12837           # FIXME: insert proper C++ library support
12838           ld_shlibs_CXX=no
12839         fi
12840         ;;
12841     esac
12842     ;;
12843   psos*)
12844     # FIXME: insert proper C++ library support
12845     ld_shlibs_CXX=no
12846     ;;
12847   sco*)
12848     archive_cmds_need_lc_CXX=no
12849     case $cc_basename in
12850       CC*)
12851         # FIXME: insert proper C++ library support
12852         ld_shlibs_CXX=no
12853         ;;
12854       *)
12855         # FIXME: insert proper C++ library support
12856         ld_shlibs_CXX=no
12857         ;;
12858     esac
12859     ;;
12860   sunos4*)
12861     case $cc_basename in
12862       CC*)
12863         # Sun C++ 4.x
12864         # FIXME: insert proper C++ library support
12865         ld_shlibs_CXX=no
12866         ;;
12867       lcc*)
12868         # Lucid
12869         # FIXME: insert proper C++ library support
12870         ld_shlibs_CXX=no
12871         ;;
12872       *)
12873         # FIXME: insert proper C++ library support
12874         ld_shlibs_CXX=no
12875         ;;
12876     esac
12877     ;;
12878   solaris*)
12879     case $cc_basename in
12880       CC*)
12881         # Sun C++ 4.2, 5.x and Centerline C++
12882         no_undefined_flag_CXX=' -zdefs'
12883         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12884         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12885         $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'
12886
12887         hardcode_libdir_flag_spec_CXX='-R$libdir'
12888         hardcode_shlibpath_var_CXX=no
12889         case $host_os in
12890           solaris2.[0-5] | solaris2.[0-5].*) ;;
12891           *)
12892             # The C++ compiler is used as linker so we must use $wl
12893             # flag to pass the commands to the underlying system
12894             # linker. We must also pass each convience library through
12895             # to the system linker between allextract/defaultextract.
12896             # The C++ compiler will combine linker options so we
12897             # cannot just pass the convience library names through
12898             # without $wl.
12899             # Supported since Solaris 2.6 (maybe 2.5.1?)
12900             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'
12901             ;;
12902         esac
12903         link_all_deplibs_CXX=yes
12904
12905         # Commands to make compiler produce verbose output that lists
12906         # what "hidden" libraries, object files and flags are used when
12907         # linking a shared library.
12908         #
12909         # There doesn't appear to be a way to prevent this compiler from
12910         # explicitly linking system object files so we need to strip them
12911         # from the output so that they don't get included in the library
12912         # dependencies.
12913         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'
12914
12915         # Archives containing C++ object files must be created using
12916         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12917         # necessary to make sure instantiated templates are included
12918         # in the archive.
12919         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12920         ;;
12921       gcx*)
12922         # Green Hills C++ Compiler
12923         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12924
12925         # The C++ compiler must be used to create the archive.
12926         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12927         ;;
12928       *)
12929         # GNU C++ compiler with Solaris linker
12930         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12931           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12932           if $CC --version | grep -v '^2\.7' > /dev/null; then
12933             archive_cmds_CXX='$CC -shared -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 -shared -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 -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12941           else
12942             # g++ 2.7 appears to require `-G' NOT `-shared' on this
12943             # platform.
12944             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12945             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12946                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12947
12948             # Commands to make compiler produce verbose output that lists
12949             # what "hidden" libraries, object files and flags are used when
12950             # linking a shared library.
12951             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12952           fi
12953
12954           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12955         fi
12956         ;;
12957     esac
12958     ;;
12959   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
12960     archive_cmds_need_lc_CXX=no
12961     ;;
12962   tandem*)
12963     case $cc_basename in
12964       NCC*)
12965         # NonStop-UX NCC 3.20
12966         # FIXME: insert proper C++ library support
12967         ld_shlibs_CXX=no
12968         ;;
12969       *)
12970         # FIXME: insert proper C++ library support
12971         ld_shlibs_CXX=no
12972         ;;
12973     esac
12974     ;;
12975   vxworks*)
12976     # FIXME: insert proper C++ library support
12977     ld_shlibs_CXX=no
12978     ;;
12979   *)
12980     # FIXME: insert proper C++ library support
12981     ld_shlibs_CXX=no
12982     ;;
12983 esac
12984 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12985 echo "${ECHO_T}$ld_shlibs_CXX" >&6
12986 test "$ld_shlibs_CXX" = no && can_build_shared=no
12987
12988 GCC_CXX="$GXX"
12989 LD_CXX="$LD"
12990
12991
12992 cat > conftest.$ac_ext <<EOF
12993 class Foo
12994 {
12995 public:
12996   Foo (void) { a = 0; }
12997 private:
12998   int a;
12999 };
13000 EOF
13001
13002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13003   (eval $ac_compile) 2>&5
13004   ac_status=$?
13005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13006   (exit $ac_status); }; then
13007   # Parse the compiler output and extract the necessary
13008   # objects, libraries and library flags.
13009
13010   # Sentinel used to keep track of whether or not we are before
13011   # the conftest object file.
13012   pre_test_object_deps_done=no
13013
13014   # The `*' in the case matches for architectures that use `case' in
13015   # $output_verbose_cmd can trigger glob expansion during the loop
13016   # eval without this substitution.
13017   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
13018
13019   for p in `eval $output_verbose_link_cmd`; do
13020     case $p in
13021
13022     -L* | -R* | -l*)
13023        # Some compilers place space between "-{L,R}" and the path.
13024        # Remove the space.
13025        if test $p = "-L" \
13026           || test $p = "-R"; then
13027          prev=$p
13028          continue
13029        else
13030          prev=
13031        fi
13032
13033        if test "$pre_test_object_deps_done" = no; then
13034          case $p in
13035          -L* | -R*)
13036            # Internal compiler library paths should come after those
13037            # provided the user.  The postdeps already come after the
13038            # user supplied libs so there is no need to process them.
13039            if test -z "$compiler_lib_search_path_CXX"; then
13040              compiler_lib_search_path_CXX="${prev}${p}"
13041            else
13042              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13043            fi
13044            ;;
13045          # The "-l" case would never come before the object being
13046          # linked, so don't bother handling this case.
13047          esac
13048        else
13049          if test -z "$postdeps_CXX"; then
13050            postdeps_CXX="${prev}${p}"
13051          else
13052            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13053          fi
13054        fi
13055        ;;
13056
13057     *.$objext)
13058        # This assumes that the test object file only shows up
13059        # once in the compiler output.
13060        if test "$p" = "conftest.$objext"; then
13061          pre_test_object_deps_done=yes
13062          continue
13063        fi
13064
13065        if test "$pre_test_object_deps_done" = no; then
13066          if test -z "$predep_objects_CXX"; then
13067            predep_objects_CXX="$p"
13068          else
13069            predep_objects_CXX="$predep_objects_CXX $p"
13070          fi
13071        else
13072          if test -z "$postdep_objects_CXX"; then
13073            postdep_objects_CXX="$p"
13074          else
13075            postdep_objects_CXX="$postdep_objects_CXX $p"
13076          fi
13077        fi
13078        ;;
13079
13080     *) ;; # Ignore the rest.
13081
13082     esac
13083   done
13084
13085   # Clean up.
13086   rm -f a.out a.exe
13087 else
13088   echo "libtool.m4: error: problem compiling CXX test program"
13089 fi
13090
13091 $rm -f confest.$objext
13092
13093 case " $postdeps_CXX " in
13094 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13095 esac
13096
13097 lt_prog_compiler_wl_CXX=
13098 lt_prog_compiler_pic_CXX=
13099 lt_prog_compiler_static_CXX=
13100
13101 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13102 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13103
13104   # C++ specific cases for pic, static, wl, etc.
13105   if test "$GXX" = yes; then
13106     lt_prog_compiler_wl_CXX='-Wl,'
13107     lt_prog_compiler_static_CXX='-static'
13108
13109     case $host_os in
13110     aix*)
13111       # All AIX code is PIC.
13112       if test "$host_cpu" = ia64; then
13113         # AIX 5 now supports IA64 processor
13114         lt_prog_compiler_static_CXX='-Bstatic'
13115       fi
13116       ;;
13117     amigaos*)
13118       # FIXME: we need at least 68020 code to build shared libraries, but
13119       # adding the `-m68020' flag to GCC prevents building anything better,
13120       # like `-m68040'.
13121       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13122       ;;
13123     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13124       # PIC is the default for these OSes.
13125       ;;
13126     mingw* | os2* | pw32*)
13127       # This hack is so that the source file can tell whether it is being
13128       # built for inclusion in a dll (and should export symbols for example).
13129       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13130       ;;
13131     darwin* | rhapsody*)
13132       # PIC is the default on this platform
13133       # Common symbols not allowed in MH_DYLIB files
13134       lt_prog_compiler_pic_CXX='-fno-common'
13135       ;;
13136     *djgpp*)
13137       # DJGPP does not support shared libraries at all
13138       lt_prog_compiler_pic_CXX=
13139       ;;
13140     sysv4*MP*)
13141       if test -d /usr/nec; then
13142         lt_prog_compiler_pic_CXX=-Kconform_pic
13143       fi
13144       ;;
13145     hpux*)
13146       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13147       # not for PA HP-UX.
13148       case "$host_cpu" in
13149       hppa*64*|ia64*)
13150         ;;
13151       *)
13152         lt_prog_compiler_pic_CXX='-fPIC'
13153         ;;
13154       esac
13155       ;;
13156     *)
13157       lt_prog_compiler_pic_CXX='-fPIC'
13158       ;;
13159     esac
13160   else
13161     case $host_os in
13162       aix4* | aix5*)
13163         # All AIX code is PIC.
13164         if test "$host_cpu" = ia64; then
13165           # AIX 5 now supports IA64 processor
13166           lt_prog_compiler_static_CXX='-Bstatic'
13167         else
13168           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13169         fi
13170         ;;
13171       chorus*)
13172         case $cc_basename in
13173         cxch68*)
13174           # Green Hills C++ Compiler
13175           # _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"
13176           ;;
13177         esac
13178         ;;
13179        darwin*)
13180          # PIC is the default on this platform
13181          # Common symbols not allowed in MH_DYLIB files
13182          case $cc_basename in
13183            xlc*)
13184            lt_prog_compiler_pic_CXX='-qnocommon'
13185            lt_prog_compiler_wl_CXX='-Wl,'
13186            ;;
13187          esac
13188        ;;
13189       dgux*)
13190         case $cc_basename in
13191           ec++*)
13192             lt_prog_compiler_pic_CXX='-KPIC'
13193             ;;
13194           ghcx*)
13195             # Green Hills C++ Compiler
13196             lt_prog_compiler_pic_CXX='-pic'
13197             ;;
13198           *)
13199             ;;
13200         esac
13201         ;;
13202       freebsd* | kfreebsd*-gnu | dragonfly*)
13203         # FreeBSD uses GNU C++
13204         ;;
13205       hpux9* | hpux10* | hpux11*)
13206         case $cc_basename in
13207           CC*)
13208             lt_prog_compiler_wl_CXX='-Wl,'
13209             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
13210             if test "$host_cpu" != ia64; then
13211               lt_prog_compiler_pic_CXX='+Z'
13212             fi
13213             ;;
13214           aCC*)
13215             lt_prog_compiler_wl_CXX='-Wl,'
13216             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
13217             case "$host_cpu" in
13218             hppa*64*|ia64*)
13219               # +Z the default
13220               ;;
13221             *)
13222               lt_prog_compiler_pic_CXX='+Z'
13223               ;;
13224             esac
13225             ;;
13226           *)
13227             ;;
13228         esac
13229         ;;
13230       irix5* | irix6* | nonstopux*)
13231         case $cc_basename in
13232           CC*)
13233             lt_prog_compiler_wl_CXX='-Wl,'
13234             lt_prog_compiler_static_CXX='-non_shared'
13235             # CC pic flag -KPIC is the default.
13236             ;;
13237           *)
13238             ;;
13239         esac
13240         ;;
13241       linux*)
13242         case $cc_basename in
13243           KCC*)
13244             # KAI C++ Compiler
13245             lt_prog_compiler_wl_CXX='--backend -Wl,'
13246             lt_prog_compiler_pic_CXX='-fPIC'
13247             ;;
13248           icpc* | ecpc*)
13249             # Intel C++
13250             lt_prog_compiler_wl_CXX='-Wl,'
13251             lt_prog_compiler_pic_CXX='-KPIC'
13252             lt_prog_compiler_static_CXX='-static'
13253             ;;
13254           pgCC*)
13255             # Portland Group C++ compiler.
13256             lt_prog_compiler_wl_CXX='-Wl,'
13257             lt_prog_compiler_pic_CXX='-fpic'
13258             lt_prog_compiler_static_CXX='-static'
13259             ;;
13260           cxx*)
13261             # Compaq C++
13262             # Make sure the PIC flag is empty.  It appears that all Alpha
13263             # Linux and Compaq Tru64 Unix objects are PIC.
13264             lt_prog_compiler_pic_CXX=
13265             lt_prog_compiler_static_CXX='-non_shared'
13266             ;;
13267           *)
13268             ;;
13269         esac
13270         ;;
13271       lynxos*)
13272         ;;
13273       m88k*)
13274         ;;
13275       mvs*)
13276         case $cc_basename in
13277           cxx*)
13278             lt_prog_compiler_pic_CXX='-W c,exportall'
13279             ;;
13280           *)
13281             ;;
13282         esac
13283         ;;
13284       netbsd*)
13285         ;;
13286       osf3* | osf4* | osf5*)
13287         case $cc_basename in
13288           KCC*)
13289             lt_prog_compiler_wl_CXX='--backend -Wl,'
13290             ;;
13291           RCC*)
13292             # Rational C++ 2.4.1
13293             lt_prog_compiler_pic_CXX='-pic'
13294             ;;
13295           cxx*)
13296             # Digital/Compaq C++
13297             lt_prog_compiler_wl_CXX='-Wl,'
13298             # Make sure the PIC flag is empty.  It appears that all Alpha
13299             # Linux and Compaq Tru64 Unix objects are PIC.
13300             lt_prog_compiler_pic_CXX=
13301             lt_prog_compiler_static_CXX='-non_shared'
13302             ;;
13303           *)
13304             ;;
13305         esac
13306         ;;
13307       psos*)
13308         ;;
13309       sco*)
13310         case $cc_basename in
13311           CC*)
13312             lt_prog_compiler_pic_CXX='-fPIC'
13313             ;;
13314           *)
13315             ;;
13316         esac
13317         ;;
13318       solaris*)
13319         case $cc_basename in
13320           CC*)
13321             # Sun C++ 4.2, 5.x and Centerline C++
13322             lt_prog_compiler_pic_CXX='-KPIC'
13323             lt_prog_compiler_static_CXX='-Bstatic'
13324             lt_prog_compiler_wl_CXX='-Qoption ld '
13325             ;;
13326           gcx*)
13327             # Green Hills C++ Compiler
13328             lt_prog_compiler_pic_CXX='-PIC'
13329             ;;
13330           *)
13331             ;;
13332         esac
13333         ;;
13334       sunos4*)
13335         case $cc_basename in
13336           CC*)
13337             # Sun C++ 4.x
13338             lt_prog_compiler_pic_CXX='-pic'
13339             lt_prog_compiler_static_CXX='-Bstatic'
13340             ;;
13341           lcc*)
13342             # Lucid
13343             lt_prog_compiler_pic_CXX='-pic'
13344             ;;
13345           *)
13346             ;;
13347         esac
13348         ;;
13349       tandem*)
13350         case $cc_basename in
13351           NCC*)
13352             # NonStop-UX NCC 3.20
13353             lt_prog_compiler_pic_CXX='-KPIC'
13354             ;;
13355           *)
13356             ;;
13357         esac
13358         ;;
13359       unixware*)
13360         ;;
13361       vxworks*)
13362         ;;
13363       *)
13364         lt_prog_compiler_can_build_shared_CXX=no
13365         ;;
13366     esac
13367   fi
13368
13369 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13370 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
13371
13372 #
13373 # Check to make sure the PIC flag actually works.
13374 #
13375 if test -n "$lt_prog_compiler_pic_CXX"; then
13376
13377 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13378 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
13379 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
13380   echo $ECHO_N "(cached) $ECHO_C" >&6
13381 else
13382   lt_prog_compiler_pic_works_CXX=no
13383   ac_outfile=conftest.$ac_objext
13384    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13385    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13386    # Insert the option either (1) after the last *FLAGS variable, or
13387    # (2) before a word containing "conftest.", or (3) at the end.
13388    # Note that $ac_compile itself does not contain backslashes and begins
13389    # with a dollar sign (not a hyphen), so the echo should work correctly.
13390    # The option is referenced via a variable to avoid confusing sed.
13391    lt_compile=`echo "$ac_compile" | $SED \
13392    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13393    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13394    -e 's:$: $lt_compiler_flag:'`
13395    (eval echo "\"\$as_me:13395: $lt_compile\"" >&5)
13396    (eval "$lt_compile" 2>conftest.err)
13397    ac_status=$?
13398    cat conftest.err >&5
13399    echo "$as_me:13399: \$? = $ac_status" >&5
13400    if (exit $ac_status) && test -s "$ac_outfile"; then
13401      # The compiler can only warn and ignore the option if not recognized
13402      # So say no if there are warnings other than the usual output.
13403      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
13404      $SED '/^$/d' conftest.err >conftest.er2
13405      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
13406        lt_prog_compiler_pic_works_CXX=yes
13407      fi
13408    fi
13409    $rm conftest*
13410
13411 fi
13412 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
13413 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
13414
13415 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
13416     case $lt_prog_compiler_pic_CXX in
13417      "" | " "*) ;;
13418      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13419      esac
13420 else
13421     lt_prog_compiler_pic_CXX=
13422      lt_prog_compiler_can_build_shared_CXX=no
13423 fi
13424
13425 fi
13426 case "$host_os" in
13427   # For platforms which do not support PIC, -DPIC is meaningless:
13428   *djgpp*)
13429     lt_prog_compiler_pic_CXX=
13430     ;;
13431   *)
13432     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13433     ;;
13434 esac
13435
13436 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13437 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13438 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13439   echo $ECHO_N "(cached) $ECHO_C" >&6
13440 else
13441   lt_cv_prog_compiler_c_o_CXX=no
13442    $rm -r conftest 2>/dev/null
13443    mkdir conftest
13444    cd conftest
13445    mkdir out
13446    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13447
13448    lt_compiler_flag="-o out/conftest2.$ac_objext"
13449    # Insert the option either (1) after the last *FLAGS variable, or
13450    # (2) before a word containing "conftest.", or (3) at the end.
13451    # Note that $ac_compile itself does not contain backslashes and begins
13452    # with a dollar sign (not a hyphen), so the echo should work correctly.
13453    lt_compile=`echo "$ac_compile" | $SED \
13454    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13455    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13456    -e 's:$: $lt_compiler_flag:'`
13457    (eval echo "\"\$as_me:13457: $lt_compile\"" >&5)
13458    (eval "$lt_compile" 2>out/conftest.err)
13459    ac_status=$?
13460    cat out/conftest.err >&5
13461    echo "$as_me:13461: \$? = $ac_status" >&5
13462    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13463    then
13464      # The compiler can only warn and ignore the option if not recognized
13465      # So say no if there are warnings
13466      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
13467      $SED '/^$/d' out/conftest.err >out/conftest.er2
13468      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13469        lt_cv_prog_compiler_c_o_CXX=yes
13470      fi
13471    fi
13472    chmod u+w .
13473    $rm conftest*
13474    # SGI C++ compiler will create directory out/ii_files/ for
13475    # template instantiation
13476    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13477    $rm out/* && rmdir out
13478    cd ..
13479    rmdir conftest
13480    $rm conftest*
13481
13482 fi
13483 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13484 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
13485
13486
13487 hard_links="nottested"
13488 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13489   # do not overwrite the value of need_locks provided by the user
13490   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13491 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13492   hard_links=yes
13493   $rm conftest*
13494   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13495   touch conftest.a
13496   ln conftest.a conftest.b 2>&5 || hard_links=no
13497   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13498   echo "$as_me:$LINENO: result: $hard_links" >&5
13499 echo "${ECHO_T}$hard_links" >&6
13500   if test "$hard_links" = no; then
13501     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13502 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13503     need_locks=warn
13504   fi
13505 else
13506   need_locks=no
13507 fi
13508
13509 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13510 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13511
13512   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13513   case $host_os in
13514   aix4* | aix5*)
13515     # If we're using GNU nm, then we don't want the "-C" option.
13516     # -C means demangle to AIX nm, but means don't demangle with GNU nm
13517     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13518       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'
13519     else
13520       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'
13521     fi
13522     ;;
13523   pw32*)
13524     export_symbols_cmds_CXX="$ltdll_cmds"
13525   ;;
13526   cygwin* | mingw*)
13527     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'
13528   ;;
13529   *)
13530     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13531   ;;
13532   esac
13533
13534 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13535 echo "${ECHO_T}$ld_shlibs_CXX" >&6
13536 test "$ld_shlibs_CXX" = no && can_build_shared=no
13537
13538 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13539 if test "$GCC" = yes; then
13540   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13541 fi
13542
13543 #
13544 # Do we need to explicitly link libc?
13545 #
13546 case "x$archive_cmds_need_lc_CXX" in
13547 x|xyes)
13548   # Assume -lc should be added
13549   archive_cmds_need_lc_CXX=yes
13550
13551   if test "$enable_shared" = yes && test "$GCC" = yes; then
13552     case $archive_cmds_CXX in
13553     *'~'*)
13554       # FIXME: we may have to deal with multi-command sequences.
13555       ;;
13556     '$CC '*)
13557       # Test whether the compiler implicitly links with -lc since on some
13558       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13559       # to ld, don't add -lc before -lgcc.
13560       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13561 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13562       $rm conftest*
13563       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13564
13565       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13566   (eval $ac_compile) 2>&5
13567   ac_status=$?
13568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13569   (exit $ac_status); } 2>conftest.err; then
13570         soname=conftest
13571         lib=conftest
13572         libobjs=conftest.$ac_objext
13573         deplibs=
13574         wl=$lt_prog_compiler_wl_CXX
13575         compiler_flags=-v
13576         linker_flags=-v
13577         verstring=
13578         output_objdir=.
13579         libname=conftest
13580         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13581         allow_undefined_flag_CXX=
13582         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13583   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13584   ac_status=$?
13585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13586   (exit $ac_status); }
13587         then
13588           archive_cmds_need_lc_CXX=no
13589         else
13590           archive_cmds_need_lc_CXX=yes
13591         fi
13592         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13593       else
13594         cat conftest.err 1>&5
13595       fi
13596       $rm conftest*
13597       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13598 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
13599       ;;
13600     esac
13601   fi
13602   ;;
13603 esac
13604
13605 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13606 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13607 library_names_spec=
13608 libname_spec='lib$name'
13609 soname_spec=
13610 shrext_cmds=".so"
13611 postinstall_cmds=
13612 postuninstall_cmds=
13613 finish_cmds=
13614 finish_eval=
13615 shlibpath_var=
13616 shlibpath_overrides_runpath=unknown
13617 version_type=none
13618 dynamic_linker="$host_os ld.so"
13619 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13620 if test "$GCC" = yes; then
13621   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13622   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13623     # if the path contains ";" then we assume it to be the separator
13624     # otherwise default to the standard path separator (i.e. ":") - it is
13625     # assumed that no part of a normal pathname contains ";" but that should
13626     # okay in the real world where ";" in dirpaths is itself problematic.
13627     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13628   else
13629     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13630   fi
13631 else
13632   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13633 fi
13634 need_lib_prefix=unknown
13635 hardcode_into_libs=no
13636
13637 # when you set need_version to no, make sure it does not cause -set_version
13638 # flags to be left without arguments
13639 need_version=unknown
13640
13641 case $host_os in
13642 aix3*)
13643   version_type=linux
13644   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13645   shlibpath_var=LIBPATH
13646
13647   # AIX 3 has no versioning support, so we append a major version to the name.
13648   soname_spec='${libname}${release}${shared_ext}$major'
13649   ;;
13650
13651 aix4* | aix5*)
13652   version_type=linux
13653   need_lib_prefix=no
13654   need_version=no
13655   hardcode_into_libs=yes
13656   if test "$host_cpu" = ia64; then
13657     # AIX 5 supports IA64
13658     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13659     shlibpath_var=LD_LIBRARY_PATH
13660   else
13661     # With GCC up to 2.95.x, collect2 would create an import file
13662     # for dependence libraries.  The import file would start with
13663     # the line `#! .'.  This would cause the generated library to
13664     # depend on `.', always an invalid library.  This was fixed in
13665     # development snapshots of GCC prior to 3.0.
13666     case $host_os in
13667       aix4 | aix4.[01] | aix4.[01].*)
13668       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13669            echo ' yes '
13670            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13671         :
13672       else
13673         can_build_shared=no
13674       fi
13675       ;;
13676     esac
13677     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13678     # soname into executable. Probably we can add versioning support to
13679     # collect2, so additional links can be useful in future.
13680     if test "$aix_use_runtimelinking" = yes; then
13681       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13682       # instead of lib<name>.a to let people know that these are not
13683       # typical AIX shared libraries.
13684       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13685     else
13686       # We preserve .a as extension for shared libraries through AIX4.2
13687       # and later when we are not doing run time linking.
13688       library_names_spec='${libname}${release}.a $libname.a'
13689       soname_spec='${libname}${release}${shared_ext}$major'
13690     fi
13691     shlibpath_var=LIBPATH
13692   fi
13693   ;;
13694
13695 amigaos*)
13696   library_names_spec='$libname.ixlibrary $libname.a'
13697   # Create ${libname}_ixlibrary.a entries in /sys/libs.
13698   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'
13699   ;;
13700
13701 beos*)
13702   library_names_spec='${libname}${shared_ext}'
13703   dynamic_linker="$host_os ld.so"
13704   shlibpath_var=LIBRARY_PATH
13705   ;;
13706
13707 bsdi[45]*)
13708   version_type=linux
13709   need_version=no
13710   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13711   soname_spec='${libname}${release}${shared_ext}$major'
13712   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13713   shlibpath_var=LD_LIBRARY_PATH
13714   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13715   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13716   # the default ld.so.conf also contains /usr/contrib/lib and
13717   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13718   # libtool to hard-code these into programs
13719   ;;
13720
13721 cygwin* | mingw* | pw32*)
13722   version_type=windows
13723   shrext_cmds=".dll"
13724   need_version=no
13725   need_lib_prefix=no
13726
13727   case $GCC,$host_os in
13728   yes,cygwin* | yes,mingw* | yes,pw32*)
13729     library_names_spec='$libname.dll.a'
13730     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13731     postinstall_cmds='base_file=`basename \${file}`~
13732       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13733       dldir=$destdir/`dirname \$dlpath`~
13734       test -d \$dldir || mkdir -p \$dldir~
13735       $install_prog $dir/$dlname \$dldir/$dlname'
13736     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13737       dlpath=$dir/\$dldll~
13738        $rm \$dlpath'
13739     shlibpath_overrides_runpath=yes
13740
13741     case $host_os in
13742     cygwin*)
13743       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13744       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13745       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13746       ;;
13747     mingw*)
13748       # MinGW DLLs use traditional 'lib' prefix
13749       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13750       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13751       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13752         # It is most probably a Windows format PATH printed by
13753         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13754         # path with ; separators, and with drive letters. We can handle the
13755         # drive letters (cygwin fileutils understands them), so leave them,
13756         # especially as we might pass files found there to a mingw objdump,
13757         # which wouldn't understand a cygwinified path. Ahh.
13758         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13759       else
13760         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13761       fi
13762       ;;
13763     pw32*)
13764       # pw32 DLLs use 'pw' prefix rather than 'lib'
13765       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13766       ;;
13767     esac
13768     ;;
13769
13770   *)
13771     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13772     ;;
13773   esac
13774   dynamic_linker='Win32 ld.exe'
13775   # FIXME: first we should search . and the directory the executable is in
13776   shlibpath_var=PATH
13777   ;;
13778
13779 darwin* | rhapsody*)
13780   dynamic_linker="$host_os dyld"
13781   version_type=darwin
13782   need_lib_prefix=no
13783   need_version=no
13784   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13785   soname_spec='${libname}${release}${major}$shared_ext'
13786   shlibpath_overrides_runpath=yes
13787   shlibpath_var=DYLD_LIBRARY_PATH
13788   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
13789   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13790   if test "$GCC" = yes; then
13791     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"`
13792   else
13793     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13794   fi
13795   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13796   ;;
13797
13798 dgux*)
13799   version_type=linux
13800   need_lib_prefix=no
13801   need_version=no
13802   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13803   soname_spec='${libname}${release}${shared_ext}$major'
13804   shlibpath_var=LD_LIBRARY_PATH
13805   ;;
13806
13807 freebsd1*)
13808   dynamic_linker=no
13809   ;;
13810
13811 kfreebsd*-gnu)
13812   version_type=linux
13813   need_lib_prefix=no
13814   need_version=no
13815   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13816   soname_spec='${libname}${release}${shared_ext}$major'
13817   shlibpath_var=LD_LIBRARY_PATH
13818   shlibpath_overrides_runpath=no
13819   hardcode_into_libs=yes
13820   dynamic_linker='GNU ld.so'
13821   ;;
13822
13823 freebsd* | dragonfly*)
13824   # DragonFly does not have aout.  When/if they implement a new
13825   # versioning mechanism, adjust this.
13826   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13827   version_type=freebsd-$objformat
13828   case $version_type in
13829     freebsd-elf*)
13830       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13831       need_version=no
13832       need_lib_prefix=no
13833       ;;
13834     freebsd-*)
13835       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13836       need_version=yes
13837       ;;
13838   esac
13839   shlibpath_var=LD_LIBRARY_PATH
13840   case $host_os in
13841   freebsd2*)
13842     shlibpath_overrides_runpath=yes
13843     ;;
13844   freebsd3.[01]* | freebsdelf3.[01]*)
13845     shlibpath_overrides_runpath=yes
13846     hardcode_into_libs=yes
13847     ;;
13848   *) # from 3.2 on
13849     shlibpath_overrides_runpath=no
13850     hardcode_into_libs=yes
13851     ;;
13852   esac
13853   ;;
13854
13855 gnu*)
13856   version_type=linux
13857   need_lib_prefix=no
13858   need_version=no
13859   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13860   soname_spec='${libname}${release}${shared_ext}$major'
13861   shlibpath_var=LD_LIBRARY_PATH
13862   hardcode_into_libs=yes
13863   ;;
13864
13865 hpux9* | hpux10* | hpux11*)
13866   # Give a soname corresponding to the major version so that dld.sl refuses to
13867   # link against other versions.
13868   version_type=sunos
13869   need_lib_prefix=no
13870   need_version=no
13871   case "$host_cpu" in
13872   ia64*)
13873     shrext_cmds='.so'
13874     hardcode_into_libs=yes
13875     dynamic_linker="$host_os dld.so"
13876     shlibpath_var=LD_LIBRARY_PATH
13877     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13878     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13879     soname_spec='${libname}${release}${shared_ext}$major'
13880     if test "X$HPUX_IA64_MODE" = X32; then
13881       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13882     else
13883       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13884     fi
13885     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13886     ;;
13887    hppa*64*)
13888      shrext_cmds='.sl'
13889      hardcode_into_libs=yes
13890      dynamic_linker="$host_os dld.sl"
13891      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13892      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13893      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13894      soname_spec='${libname}${release}${shared_ext}$major'
13895      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13896      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13897      ;;
13898    *)
13899     shrext_cmds='.sl'
13900     dynamic_linker="$host_os dld.sl"
13901     shlibpath_var=SHLIB_PATH
13902     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13903     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13904     soname_spec='${libname}${release}${shared_ext}$major'
13905     ;;
13906   esac
13907   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13908   postinstall_cmds='chmod 555 $lib'
13909   ;;
13910
13911 irix5* | irix6* | nonstopux*)
13912   case $host_os in
13913     nonstopux*) version_type=nonstopux ;;
13914     *)
13915         if test "$lt_cv_prog_gnu_ld" = yes; then
13916                 version_type=linux
13917         else
13918                 version_type=irix
13919         fi ;;
13920   esac
13921   need_lib_prefix=no
13922   need_version=no
13923   soname_spec='${libname}${release}${shared_ext}$major'
13924   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13925   case $host_os in
13926   irix5* | nonstopux*)
13927     libsuff= shlibsuff=
13928     ;;
13929   *)
13930     case $LD in # libtool.m4 will add one of these switches to LD
13931     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13932       libsuff= shlibsuff= libmagic=32-bit;;
13933     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13934       libsuff=32 shlibsuff=N32 libmagic=N32;;
13935     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13936       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13937     *) libsuff= shlibsuff= libmagic=never-match;;
13938     esac
13939     ;;
13940   esac
13941   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13942   shlibpath_overrides_runpath=no
13943   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13944   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13945   hardcode_into_libs=yes
13946   ;;
13947
13948 # No shared lib support for Linux oldld, aout, or coff.
13949 linux*oldld* | linux*aout* | linux*coff*)
13950   dynamic_linker=no
13951   ;;
13952
13953 # This must be Linux ELF.
13954 linux*)
13955   version_type=linux
13956   need_lib_prefix=no
13957   need_version=no
13958   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13959   soname_spec='${libname}${release}${shared_ext}$major'
13960   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13961   shlibpath_var=LD_LIBRARY_PATH
13962   shlibpath_overrides_runpath=no
13963   # This implies no fast_install, which is unacceptable.
13964   # Some rework will be needed to allow for fast_install
13965   # before this can be enabled.
13966   hardcode_into_libs=yes
13967
13968   # Append ld.so.conf contents to the search path
13969   if test -f /etc/ld.so.conf; then
13970     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' ' '`
13971     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13972   fi
13973
13974   # We used to test for /lib/ld.so.1 and disable shared libraries on
13975   # powerpc, because MkLinux only supported shared libraries with the
13976   # GNU dynamic linker.  Since this was broken with cross compilers,
13977   # most powerpc-linux boxes support dynamic linking these days and
13978   # people can always --disable-shared, the test was removed, and we
13979   # assume the GNU/Linux dynamic linker is in use.
13980   dynamic_linker='GNU/Linux ld.so'
13981   ;;
13982
13983 knetbsd*-gnu)
13984   version_type=linux
13985   need_lib_prefix=no
13986   need_version=no
13987   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13988   soname_spec='${libname}${release}${shared_ext}$major'
13989   shlibpath_var=LD_LIBRARY_PATH
13990   shlibpath_overrides_runpath=no
13991   hardcode_into_libs=yes
13992   dynamic_linker='GNU ld.so'
13993   ;;
13994
13995 netbsd*)
13996   version_type=sunos
13997   need_lib_prefix=no
13998   need_version=no
13999   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14000     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14001     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14002     dynamic_linker='NetBSD (a.out) ld.so'
14003   else
14004     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14005     soname_spec='${libname}${release}${shared_ext}$major'
14006     dynamic_linker='NetBSD ld.elf_so'
14007   fi
14008   shlibpath_var=LD_LIBRARY_PATH
14009   shlibpath_overrides_runpath=yes
14010   hardcode_into_libs=yes
14011   ;;
14012
14013 newsos6)
14014   version_type=linux
14015   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14016   shlibpath_var=LD_LIBRARY_PATH
14017   shlibpath_overrides_runpath=yes
14018   ;;
14019
14020 nto-qnx*)
14021   version_type=linux
14022   need_lib_prefix=no
14023   need_version=no
14024   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14025   soname_spec='${libname}${release}${shared_ext}$major'
14026   shlibpath_var=LD_LIBRARY_PATH
14027   shlibpath_overrides_runpath=yes
14028   ;;
14029
14030 openbsd*)
14031   version_type=sunos
14032   need_lib_prefix=no
14033   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14034   case $host_os in
14035     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14036     *)                         need_version=no  ;;
14037   esac
14038   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14039   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14040   shlibpath_var=LD_LIBRARY_PATH
14041   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14042     case $host_os in
14043       openbsd2.[89] | openbsd2.[89].*)
14044         shlibpath_overrides_runpath=no
14045         ;;
14046       *)
14047         shlibpath_overrides_runpath=yes
14048         ;;
14049       esac
14050   else
14051     shlibpath_overrides_runpath=yes
14052   fi
14053   ;;
14054
14055 os2*)
14056   libname_spec='$name'
14057   shrext_cmds=".dll"
14058   need_lib_prefix=no
14059   library_names_spec='$libname${shared_ext} $libname.a'
14060   dynamic_linker='OS/2 ld.exe'
14061   shlibpath_var=LIBPATH
14062   ;;
14063
14064 osf3* | osf4* | osf5*)
14065   version_type=osf
14066   need_lib_prefix=no
14067   need_version=no
14068   soname_spec='${libname}${release}${shared_ext}$major'
14069   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14070   shlibpath_var=LD_LIBRARY_PATH
14071   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14072   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14073   ;;
14074
14075 sco3.2v5*)
14076   version_type=osf
14077   soname_spec='${libname}${release}${shared_ext}$major'
14078   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14079   shlibpath_var=LD_LIBRARY_PATH
14080   ;;
14081
14082 solaris*)
14083   version_type=linux
14084   need_lib_prefix=no
14085   need_version=no
14086   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14087   soname_spec='${libname}${release}${shared_ext}$major'
14088   shlibpath_var=LD_LIBRARY_PATH
14089   shlibpath_overrides_runpath=yes
14090   hardcode_into_libs=yes
14091   # ldd complains unless libraries are executable
14092   postinstall_cmds='chmod +x $lib'
14093   ;;
14094
14095 sunos4*)
14096   version_type=sunos
14097   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14098   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14099   shlibpath_var=LD_LIBRARY_PATH
14100   shlibpath_overrides_runpath=yes
14101   if test "$with_gnu_ld" = yes; then
14102     need_lib_prefix=no
14103   fi
14104   need_version=yes
14105   ;;
14106
14107 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14108   version_type=linux
14109   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14110   soname_spec='${libname}${release}${shared_ext}$major'
14111   shlibpath_var=LD_LIBRARY_PATH
14112   case $host_vendor in
14113     sni)
14114       shlibpath_overrides_runpath=no
14115       need_lib_prefix=no
14116       export_dynamic_flag_spec='${wl}-Blargedynsym'
14117       runpath_var=LD_RUN_PATH
14118       ;;
14119     siemens)
14120       need_lib_prefix=no
14121       ;;
14122     motorola)
14123       need_lib_prefix=no
14124       need_version=no
14125       shlibpath_overrides_runpath=no
14126       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14127       ;;
14128   esac
14129   ;;
14130
14131 sysv4*MP*)
14132   if test -d /usr/nec ;then
14133     version_type=linux
14134     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14135     soname_spec='$libname${shared_ext}.$major'
14136     shlibpath_var=LD_LIBRARY_PATH
14137   fi
14138   ;;
14139
14140 uts4*)
14141   version_type=linux
14142   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14143   soname_spec='${libname}${release}${shared_ext}$major'
14144   shlibpath_var=LD_LIBRARY_PATH
14145   ;;
14146
14147 *)
14148   dynamic_linker=no
14149   ;;
14150 esac
14151 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14152 echo "${ECHO_T}$dynamic_linker" >&6
14153 test "$dynamic_linker" = no && can_build_shared=no
14154
14155 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14156 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14157 hardcode_action_CXX=
14158 if test -n "$hardcode_libdir_flag_spec_CXX" || \
14159    test -n "$runpath_var_CXX" || \
14160    test "X$hardcode_automatic_CXX" = "Xyes" ; then
14161
14162   # We can hardcode non-existant directories.
14163   if test "$hardcode_direct_CXX" != no &&
14164      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14165      # have to relink, otherwise we might link with an installed library
14166      # when we should be linking with a yet-to-be-installed one
14167      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14168      test "$hardcode_minus_L_CXX" != no; then
14169     # Linking always hardcodes the temporary library directory.
14170     hardcode_action_CXX=relink
14171   else
14172     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14173     hardcode_action_CXX=immediate
14174   fi
14175 else
14176   # We cannot hardcode anything, or else we can only hardcode existing
14177   # directories.
14178   hardcode_action_CXX=unsupported
14179 fi
14180 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14181 echo "${ECHO_T}$hardcode_action_CXX" >&6
14182
14183 if test "$hardcode_action_CXX" = relink; then
14184   # Fast installation is not supported
14185   enable_fast_install=no
14186 elif test "$shlibpath_overrides_runpath" = yes ||
14187      test "$enable_shared" = no; then
14188   # Fast installation is not necessary
14189   enable_fast_install=needless
14190 fi
14191
14192 striplib=
14193 old_striplib=
14194 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14195 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14196 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14197   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14198   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14199   echo "$as_me:$LINENO: result: yes" >&5
14200 echo "${ECHO_T}yes" >&6
14201 else
14202 # FIXME - insert some real tests, host_os isn't really good enough
14203   case $host_os in
14204    darwin*)
14205        if test -n "$STRIP" ; then
14206          striplib="$STRIP -x"
14207          echo "$as_me:$LINENO: result: yes" >&5
14208 echo "${ECHO_T}yes" >&6
14209        else
14210   echo "$as_me:$LINENO: result: no" >&5
14211 echo "${ECHO_T}no" >&6
14212 fi
14213        ;;
14214    *)
14215   echo "$as_me:$LINENO: result: no" >&5
14216 echo "${ECHO_T}no" >&6
14217     ;;
14218   esac
14219 fi
14220
14221 if test "x$enable_dlopen" != xyes; then
14222   enable_dlopen=unknown
14223   enable_dlopen_self=unknown
14224   enable_dlopen_self_static=unknown
14225 else
14226   lt_cv_dlopen=no
14227   lt_cv_dlopen_libs=
14228
14229   case $host_os in
14230   beos*)
14231     lt_cv_dlopen="load_add_on"
14232     lt_cv_dlopen_libs=
14233     lt_cv_dlopen_self=yes
14234     ;;
14235
14236   mingw* | pw32*)
14237     lt_cv_dlopen="LoadLibrary"
14238     lt_cv_dlopen_libs=
14239    ;;
14240
14241   cygwin*)
14242     lt_cv_dlopen="dlopen"
14243     lt_cv_dlopen_libs=
14244    ;;
14245
14246   darwin*)
14247   # if libdl is installed we need to link against it
14248     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14249 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14250 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14251   echo $ECHO_N "(cached) $ECHO_C" >&6
14252 else
14253   ac_check_lib_save_LIBS=$LIBS
14254 LIBS="-ldl  $LIBS"
14255 cat >conftest.$ac_ext <<_ACEOF
14256 /* confdefs.h.  */
14257 _ACEOF
14258 cat confdefs.h >>conftest.$ac_ext
14259 cat >>conftest.$ac_ext <<_ACEOF
14260 /* end confdefs.h.  */
14261
14262 /* Override any gcc2 internal prototype to avoid an error.  */
14263 #ifdef __cplusplus
14264 extern "C"
14265 #endif
14266 /* We use char because int might match the return type of a gcc2
14267    builtin and then its argument prototype would still apply.  */
14268 char dlopen ();
14269 int
14270 main ()
14271 {
14272 dlopen ();
14273   ;
14274   return 0;
14275 }
14276 _ACEOF
14277 rm -f conftest.$ac_objext conftest$ac_exeext
14278 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14279   (eval $ac_link) 2>conftest.er1
14280   ac_status=$?
14281   grep -v '^ *+' conftest.er1 >conftest.err
14282   rm -f conftest.er1
14283   cat conftest.err >&5
14284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14285   (exit $ac_status); } &&
14286          { ac_try='test -z "$ac_cxx_werror_flag"
14287                          || test ! -s conftest.err'
14288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14289   (eval $ac_try) 2>&5
14290   ac_status=$?
14291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14292   (exit $ac_status); }; } &&
14293          { ac_try='test -s conftest$ac_exeext'
14294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14295   (eval $ac_try) 2>&5
14296   ac_status=$?
14297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14298   (exit $ac_status); }; }; then
14299   ac_cv_lib_dl_dlopen=yes
14300 else
14301   echo "$as_me: failed program was:" >&5
14302 sed 's/^/| /' conftest.$ac_ext >&5
14303
14304 ac_cv_lib_dl_dlopen=no
14305 fi
14306 rm -f conftest.err conftest.$ac_objext \
14307       conftest$ac_exeext conftest.$ac_ext
14308 LIBS=$ac_check_lib_save_LIBS
14309 fi
14310 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14311 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14312 if test $ac_cv_lib_dl_dlopen = yes; then
14313   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14314 else
14315
14316     lt_cv_dlopen="dyld"
14317     lt_cv_dlopen_libs=
14318     lt_cv_dlopen_self=yes
14319
14320 fi
14321
14322    ;;
14323
14324   *)
14325     echo "$as_me:$LINENO: checking for shl_load" >&5
14326 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
14327 if test "${ac_cv_func_shl_load+set}" = set; then
14328   echo $ECHO_N "(cached) $ECHO_C" >&6
14329 else
14330   cat >conftest.$ac_ext <<_ACEOF
14331 /* confdefs.h.  */
14332 _ACEOF
14333 cat confdefs.h >>conftest.$ac_ext
14334 cat >>conftest.$ac_ext <<_ACEOF
14335 /* end confdefs.h.  */
14336 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
14337    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14338 #define shl_load innocuous_shl_load
14339
14340 /* System header to define __stub macros and hopefully few prototypes,
14341     which can conflict with char shl_load (); below.
14342     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14343     <limits.h> exists even on freestanding compilers.  */
14344
14345 #ifdef __STDC__
14346 # include <limits.h>
14347 #else
14348 # include <assert.h>
14349 #endif
14350
14351 #undef shl_load
14352
14353 /* Override any gcc2 internal prototype to avoid an error.  */
14354 #ifdef __cplusplus
14355 extern "C"
14356 {
14357 #endif
14358 /* We use char because int might match the return type of a gcc2
14359    builtin and then its argument prototype would still apply.  */
14360 char shl_load ();
14361 /* The GNU C library defines this for functions which it implements
14362     to always fail with ENOSYS.  Some functions are actually named
14363     something starting with __ and the normal name is an alias.  */
14364 #if defined (__stub_shl_load) || defined (__stub___shl_load)
14365 choke me
14366 #else
14367 char (*f) () = shl_load;
14368 #endif
14369 #ifdef __cplusplus
14370 }
14371 #endif
14372
14373 int
14374 main ()
14375 {
14376 return f != shl_load;
14377   ;
14378   return 0;
14379 }
14380 _ACEOF
14381 rm -f conftest.$ac_objext conftest$ac_exeext
14382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14383   (eval $ac_link) 2>conftest.er1
14384   ac_status=$?
14385   grep -v '^ *+' conftest.er1 >conftest.err
14386   rm -f conftest.er1
14387   cat conftest.err >&5
14388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14389   (exit $ac_status); } &&
14390          { ac_try='test -z "$ac_cxx_werror_flag"
14391                          || test ! -s conftest.err'
14392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14393   (eval $ac_try) 2>&5
14394   ac_status=$?
14395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14396   (exit $ac_status); }; } &&
14397          { ac_try='test -s conftest$ac_exeext'
14398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14399   (eval $ac_try) 2>&5
14400   ac_status=$?
14401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14402   (exit $ac_status); }; }; then
14403   ac_cv_func_shl_load=yes
14404 else
14405   echo "$as_me: failed program was:" >&5
14406 sed 's/^/| /' conftest.$ac_ext >&5
14407
14408 ac_cv_func_shl_load=no
14409 fi
14410 rm -f conftest.err conftest.$ac_objext \
14411       conftest$ac_exeext conftest.$ac_ext
14412 fi
14413 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
14414 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
14415 if test $ac_cv_func_shl_load = yes; then
14416   lt_cv_dlopen="shl_load"
14417 else
14418   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
14419 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
14420 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
14421   echo $ECHO_N "(cached) $ECHO_C" >&6
14422 else
14423   ac_check_lib_save_LIBS=$LIBS
14424 LIBS="-ldld  $LIBS"
14425 cat >conftest.$ac_ext <<_ACEOF
14426 /* confdefs.h.  */
14427 _ACEOF
14428 cat confdefs.h >>conftest.$ac_ext
14429 cat >>conftest.$ac_ext <<_ACEOF
14430 /* end confdefs.h.  */
14431
14432 /* Override any gcc2 internal prototype to avoid an error.  */
14433 #ifdef __cplusplus
14434 extern "C"
14435 #endif
14436 /* We use char because int might match the return type of a gcc2
14437    builtin and then its argument prototype would still apply.  */
14438 char shl_load ();
14439 int
14440 main ()
14441 {
14442 shl_load ();
14443   ;
14444   return 0;
14445 }
14446 _ACEOF
14447 rm -f conftest.$ac_objext conftest$ac_exeext
14448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14449   (eval $ac_link) 2>conftest.er1
14450   ac_status=$?
14451   grep -v '^ *+' conftest.er1 >conftest.err
14452   rm -f conftest.er1
14453   cat conftest.err >&5
14454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14455   (exit $ac_status); } &&
14456          { ac_try='test -z "$ac_cxx_werror_flag"
14457                          || test ! -s conftest.err'
14458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14459   (eval $ac_try) 2>&5
14460   ac_status=$?
14461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14462   (exit $ac_status); }; } &&
14463          { ac_try='test -s conftest$ac_exeext'
14464   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14465   (eval $ac_try) 2>&5
14466   ac_status=$?
14467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14468   (exit $ac_status); }; }; then
14469   ac_cv_lib_dld_shl_load=yes
14470 else
14471   echo "$as_me: failed program was:" >&5
14472 sed 's/^/| /' conftest.$ac_ext >&5
14473
14474 ac_cv_lib_dld_shl_load=no
14475 fi
14476 rm -f conftest.err conftest.$ac_objext \
14477       conftest$ac_exeext conftest.$ac_ext
14478 LIBS=$ac_check_lib_save_LIBS
14479 fi
14480 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
14481 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
14482 if test $ac_cv_lib_dld_shl_load = yes; then
14483   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
14484 else
14485   echo "$as_me:$LINENO: checking for dlopen" >&5
14486 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
14487 if test "${ac_cv_func_dlopen+set}" = set; then
14488   echo $ECHO_N "(cached) $ECHO_C" >&6
14489 else
14490   cat >conftest.$ac_ext <<_ACEOF
14491 /* confdefs.h.  */
14492 _ACEOF
14493 cat confdefs.h >>conftest.$ac_ext
14494 cat >>conftest.$ac_ext <<_ACEOF
14495 /* end confdefs.h.  */
14496 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
14497    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14498 #define dlopen innocuous_dlopen
14499
14500 /* System header to define __stub macros and hopefully few prototypes,
14501     which can conflict with char dlopen (); below.
14502     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14503     <limits.h> exists even on freestanding compilers.  */
14504
14505 #ifdef __STDC__
14506 # include <limits.h>
14507 #else
14508 # include <assert.h>
14509 #endif
14510
14511 #undef dlopen
14512
14513 /* Override any gcc2 internal prototype to avoid an error.  */
14514 #ifdef __cplusplus
14515 extern "C"
14516 {
14517 #endif
14518 /* We use char because int might match the return type of a gcc2
14519    builtin and then its argument prototype would still apply.  */
14520 char dlopen ();
14521 /* The GNU C library defines this for functions which it implements
14522     to always fail with ENOSYS.  Some functions are actually named
14523     something starting with __ and the normal name is an alias.  */
14524 #if defined (__stub_dlopen) || defined (__stub___dlopen)
14525 choke me
14526 #else
14527 char (*f) () = dlopen;
14528 #endif
14529 #ifdef __cplusplus
14530 }
14531 #endif
14532
14533 int
14534 main ()
14535 {
14536 return f != dlopen;
14537   ;
14538   return 0;
14539 }
14540 _ACEOF
14541 rm -f conftest.$ac_objext conftest$ac_exeext
14542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14543   (eval $ac_link) 2>conftest.er1
14544   ac_status=$?
14545   grep -v '^ *+' conftest.er1 >conftest.err
14546   rm -f conftest.er1
14547   cat conftest.err >&5
14548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14549   (exit $ac_status); } &&
14550          { ac_try='test -z "$ac_cxx_werror_flag"
14551                          || test ! -s conftest.err'
14552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14553   (eval $ac_try) 2>&5
14554   ac_status=$?
14555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14556   (exit $ac_status); }; } &&
14557          { ac_try='test -s conftest$ac_exeext'
14558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14559   (eval $ac_try) 2>&5
14560   ac_status=$?
14561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14562   (exit $ac_status); }; }; then
14563   ac_cv_func_dlopen=yes
14564 else
14565   echo "$as_me: failed program was:" >&5
14566 sed 's/^/| /' conftest.$ac_ext >&5
14567
14568 ac_cv_func_dlopen=no
14569 fi
14570 rm -f conftest.err conftest.$ac_objext \
14571       conftest$ac_exeext conftest.$ac_ext
14572 fi
14573 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
14574 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
14575 if test $ac_cv_func_dlopen = yes; then
14576   lt_cv_dlopen="dlopen"
14577 else
14578   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14579 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14580 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14581   echo $ECHO_N "(cached) $ECHO_C" >&6
14582 else
14583   ac_check_lib_save_LIBS=$LIBS
14584 LIBS="-ldl  $LIBS"
14585 cat >conftest.$ac_ext <<_ACEOF
14586 /* confdefs.h.  */
14587 _ACEOF
14588 cat confdefs.h >>conftest.$ac_ext
14589 cat >>conftest.$ac_ext <<_ACEOF
14590 /* end confdefs.h.  */
14591
14592 /* Override any gcc2 internal prototype to avoid an error.  */
14593 #ifdef __cplusplus
14594 extern "C"
14595 #endif
14596 /* We use char because int might match the return type of a gcc2
14597    builtin and then its argument prototype would still apply.  */
14598 char dlopen ();
14599 int
14600 main ()
14601 {
14602 dlopen ();
14603   ;
14604   return 0;
14605 }
14606 _ACEOF
14607 rm -f conftest.$ac_objext conftest$ac_exeext
14608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14609   (eval $ac_link) 2>conftest.er1
14610   ac_status=$?
14611   grep -v '^ *+' conftest.er1 >conftest.err
14612   rm -f conftest.er1
14613   cat conftest.err >&5
14614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14615   (exit $ac_status); } &&
14616          { ac_try='test -z "$ac_cxx_werror_flag"
14617                          || test ! -s conftest.err'
14618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14619   (eval $ac_try) 2>&5
14620   ac_status=$?
14621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14622   (exit $ac_status); }; } &&
14623          { ac_try='test -s conftest$ac_exeext'
14624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14625   (eval $ac_try) 2>&5
14626   ac_status=$?
14627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14628   (exit $ac_status); }; }; then
14629   ac_cv_lib_dl_dlopen=yes
14630 else
14631   echo "$as_me: failed program was:" >&5
14632 sed 's/^/| /' conftest.$ac_ext >&5
14633
14634 ac_cv_lib_dl_dlopen=no
14635 fi
14636 rm -f conftest.err conftest.$ac_objext \
14637       conftest$ac_exeext conftest.$ac_ext
14638 LIBS=$ac_check_lib_save_LIBS
14639 fi
14640 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14641 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14642 if test $ac_cv_lib_dl_dlopen = yes; then
14643   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14644 else
14645   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14646 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
14647 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14648   echo $ECHO_N "(cached) $ECHO_C" >&6
14649 else
14650   ac_check_lib_save_LIBS=$LIBS
14651 LIBS="-lsvld  $LIBS"
14652 cat >conftest.$ac_ext <<_ACEOF
14653 /* confdefs.h.  */
14654 _ACEOF
14655 cat confdefs.h >>conftest.$ac_ext
14656 cat >>conftest.$ac_ext <<_ACEOF
14657 /* end confdefs.h.  */
14658
14659 /* Override any gcc2 internal prototype to avoid an error.  */
14660 #ifdef __cplusplus
14661 extern "C"
14662 #endif
14663 /* We use char because int might match the return type of a gcc2
14664    builtin and then its argument prototype would still apply.  */
14665 char dlopen ();
14666 int
14667 main ()
14668 {
14669 dlopen ();
14670   ;
14671   return 0;
14672 }
14673 _ACEOF
14674 rm -f conftest.$ac_objext conftest$ac_exeext
14675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14676   (eval $ac_link) 2>conftest.er1
14677   ac_status=$?
14678   grep -v '^ *+' conftest.er1 >conftest.err
14679   rm -f conftest.er1
14680   cat conftest.err >&5
14681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14682   (exit $ac_status); } &&
14683          { ac_try='test -z "$ac_cxx_werror_flag"
14684                          || test ! -s conftest.err'
14685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14686   (eval $ac_try) 2>&5
14687   ac_status=$?
14688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14689   (exit $ac_status); }; } &&
14690          { ac_try='test -s conftest$ac_exeext'
14691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14692   (eval $ac_try) 2>&5
14693   ac_status=$?
14694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14695   (exit $ac_status); }; }; then
14696   ac_cv_lib_svld_dlopen=yes
14697 else
14698   echo "$as_me: failed program was:" >&5
14699 sed 's/^/| /' conftest.$ac_ext >&5
14700
14701 ac_cv_lib_svld_dlopen=no
14702 fi
14703 rm -f conftest.err conftest.$ac_objext \
14704       conftest$ac_exeext conftest.$ac_ext
14705 LIBS=$ac_check_lib_save_LIBS
14706 fi
14707 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14708 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14709 if test $ac_cv_lib_svld_dlopen = yes; then
14710   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14711 else
14712   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14713 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14714 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14715   echo $ECHO_N "(cached) $ECHO_C" >&6
14716 else
14717   ac_check_lib_save_LIBS=$LIBS
14718 LIBS="-ldld  $LIBS"
14719 cat >conftest.$ac_ext <<_ACEOF
14720 /* confdefs.h.  */
14721 _ACEOF
14722 cat confdefs.h >>conftest.$ac_ext
14723 cat >>conftest.$ac_ext <<_ACEOF
14724 /* end confdefs.h.  */
14725
14726 /* Override any gcc2 internal prototype to avoid an error.  */
14727 #ifdef __cplusplus
14728 extern "C"
14729 #endif
14730 /* We use char because int might match the return type of a gcc2
14731    builtin and then its argument prototype would still apply.  */
14732 char dld_link ();
14733 int
14734 main ()
14735 {
14736 dld_link ();
14737   ;
14738   return 0;
14739 }
14740 _ACEOF
14741 rm -f conftest.$ac_objext conftest$ac_exeext
14742 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14743   (eval $ac_link) 2>conftest.er1
14744   ac_status=$?
14745   grep -v '^ *+' conftest.er1 >conftest.err
14746   rm -f conftest.er1
14747   cat conftest.err >&5
14748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14749   (exit $ac_status); } &&
14750          { ac_try='test -z "$ac_cxx_werror_flag"
14751                          || test ! -s conftest.err'
14752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14753   (eval $ac_try) 2>&5
14754   ac_status=$?
14755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14756   (exit $ac_status); }; } &&
14757          { ac_try='test -s conftest$ac_exeext'
14758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14759   (eval $ac_try) 2>&5
14760   ac_status=$?
14761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14762   (exit $ac_status); }; }; then
14763   ac_cv_lib_dld_dld_link=yes
14764 else
14765   echo "$as_me: failed program was:" >&5
14766 sed 's/^/| /' conftest.$ac_ext >&5
14767
14768 ac_cv_lib_dld_dld_link=no
14769 fi
14770 rm -f conftest.err conftest.$ac_objext \
14771       conftest$ac_exeext conftest.$ac_ext
14772 LIBS=$ac_check_lib_save_LIBS
14773 fi
14774 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14775 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14776 if test $ac_cv_lib_dld_dld_link = yes; then
14777   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14778 fi
14779
14780
14781 fi
14782
14783
14784 fi
14785
14786
14787 fi
14788
14789
14790 fi
14791
14792
14793 fi
14794
14795     ;;
14796   esac
14797
14798   if test "x$lt_cv_dlopen" != xno; then
14799     enable_dlopen=yes
14800   else
14801     enable_dlopen=no
14802   fi
14803
14804   case $lt_cv_dlopen in
14805   dlopen)
14806     save_CPPFLAGS="$CPPFLAGS"
14807     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14808
14809     save_LDFLAGS="$LDFLAGS"
14810     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14811
14812     save_LIBS="$LIBS"
14813     LIBS="$lt_cv_dlopen_libs $LIBS"
14814
14815     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14816 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14817 if test "${lt_cv_dlopen_self+set}" = set; then
14818   echo $ECHO_N "(cached) $ECHO_C" >&6
14819 else
14820           if test "$cross_compiling" = yes; then :
14821   lt_cv_dlopen_self=cross
14822 else
14823   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14824   lt_status=$lt_dlunknown
14825   cat > conftest.$ac_ext <<EOF
14826 #line 14826 "configure"
14827 #include "confdefs.h"
14828
14829 #if HAVE_DLFCN_H
14830 #include <dlfcn.h>
14831 #endif
14832
14833 #include <stdio.h>
14834
14835 #ifdef RTLD_GLOBAL
14836 #  define LT_DLGLOBAL           RTLD_GLOBAL
14837 #else
14838 #  ifdef DL_GLOBAL
14839 #    define LT_DLGLOBAL         DL_GLOBAL
14840 #  else
14841 #    define LT_DLGLOBAL         0
14842 #  endif
14843 #endif
14844
14845 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14846    find out it does not work in some platform. */
14847 #ifndef LT_DLLAZY_OR_NOW
14848 #  ifdef RTLD_LAZY
14849 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14850 #  else
14851 #    ifdef DL_LAZY
14852 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14853 #    else
14854 #      ifdef RTLD_NOW
14855 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14856 #      else
14857 #        ifdef DL_NOW
14858 #          define LT_DLLAZY_OR_NOW      DL_NOW
14859 #        else
14860 #          define LT_DLLAZY_OR_NOW      0
14861 #        endif
14862 #      endif
14863 #    endif
14864 #  endif
14865 #endif
14866
14867 #ifdef __cplusplus
14868 extern "C" void exit (int);
14869 #endif
14870
14871 void fnord() { int i=42;}
14872 int main ()
14873 {
14874   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14875   int status = $lt_dlunknown;
14876
14877   if (self)
14878     {
14879       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14880       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14881       /* dlclose (self); */
14882     }
14883
14884     exit (status);
14885 }
14886 EOF
14887   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14888   (eval $ac_link) 2>&5
14889   ac_status=$?
14890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14891   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14892     (./conftest; exit; ) 2>/dev/null
14893     lt_status=$?
14894     case x$lt_status in
14895       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14896       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14897       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14898     esac
14899   else :
14900     # compilation failed
14901     lt_cv_dlopen_self=no
14902   fi
14903 fi
14904 rm -fr conftest*
14905
14906
14907 fi
14908 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14909 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14910
14911     if test "x$lt_cv_dlopen_self" = xyes; then
14912       LDFLAGS="$LDFLAGS $link_static_flag"
14913       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14914 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14915 if test "${lt_cv_dlopen_self_static+set}" = set; then
14916   echo $ECHO_N "(cached) $ECHO_C" >&6
14917 else
14918           if test "$cross_compiling" = yes; then :
14919   lt_cv_dlopen_self_static=cross
14920 else
14921   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14922   lt_status=$lt_dlunknown
14923   cat > conftest.$ac_ext <<EOF
14924 #line 14924 "configure"
14925 #include "confdefs.h"
14926
14927 #if HAVE_DLFCN_H
14928 #include <dlfcn.h>
14929 #endif
14930
14931 #include <stdio.h>
14932
14933 #ifdef RTLD_GLOBAL
14934 #  define LT_DLGLOBAL           RTLD_GLOBAL
14935 #else
14936 #  ifdef DL_GLOBAL
14937 #    define LT_DLGLOBAL         DL_GLOBAL
14938 #  else
14939 #    define LT_DLGLOBAL         0
14940 #  endif
14941 #endif
14942
14943 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14944    find out it does not work in some platform. */
14945 #ifndef LT_DLLAZY_OR_NOW
14946 #  ifdef RTLD_LAZY
14947 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14948 #  else
14949 #    ifdef DL_LAZY
14950 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14951 #    else
14952 #      ifdef RTLD_NOW
14953 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14954 #      else
14955 #        ifdef DL_NOW
14956 #          define LT_DLLAZY_OR_NOW      DL_NOW
14957 #        else
14958 #          define LT_DLLAZY_OR_NOW      0
14959 #        endif
14960 #      endif
14961 #    endif
14962 #  endif
14963 #endif
14964
14965 #ifdef __cplusplus
14966 extern "C" void exit (int);
14967 #endif
14968
14969 void fnord() { int i=42;}
14970 int main ()
14971 {
14972   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14973   int status = $lt_dlunknown;
14974
14975   if (self)
14976     {
14977       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14978       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14979       /* dlclose (self); */
14980     }
14981
14982     exit (status);
14983 }
14984 EOF
14985   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14986   (eval $ac_link) 2>&5
14987   ac_status=$?
14988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14989   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14990     (./conftest; exit; ) 2>/dev/null
14991     lt_status=$?
14992     case x$lt_status in
14993       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14994       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14995       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14996     esac
14997   else :
14998     # compilation failed
14999     lt_cv_dlopen_self_static=no
15000   fi
15001 fi
15002 rm -fr conftest*
15003
15004
15005 fi
15006 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
15007 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
15008     fi
15009
15010     CPPFLAGS="$save_CPPFLAGS"
15011     LDFLAGS="$save_LDFLAGS"
15012     LIBS="$save_LIBS"
15013     ;;
15014   esac
15015
15016   case $lt_cv_dlopen_self in
15017   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15018   *) enable_dlopen_self=unknown ;;
15019   esac
15020
15021   case $lt_cv_dlopen_self_static in
15022   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15023   *) enable_dlopen_self_static=unknown ;;
15024   esac
15025 fi
15026
15027
15028 # The else clause should only fire when bootstrapping the
15029 # libtool distribution, otherwise you forgot to ship ltmain.sh
15030 # with your package, and you will get complaints that there are
15031 # no rules to generate ltmain.sh.
15032 if test -f "$ltmain"; then
15033   # See if we are running on zsh, and set the options which allow our commands through
15034   # without removal of \ escapes.
15035   if test -n "${ZSH_VERSION+set}" ; then
15036     setopt NO_GLOB_SUBST
15037   fi
15038   # Now quote all the things that may contain metacharacters while being
15039   # careful not to overquote the AC_SUBSTed values.  We take copies of the
15040   # variables and quote the copies for generation of the libtool script.
15041   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15042     SED SHELL STRIP \
15043     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15044     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15045     deplibs_check_method reload_flag reload_cmds need_locks \
15046     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15047     lt_cv_sys_global_symbol_to_c_name_address \
15048     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15049     old_postinstall_cmds old_postuninstall_cmds \
15050     compiler_CXX \
15051     CC_CXX \
15052     LD_CXX \
15053     lt_prog_compiler_wl_CXX \
15054     lt_prog_compiler_pic_CXX \
15055     lt_prog_compiler_static_CXX \
15056     lt_prog_compiler_no_builtin_flag_CXX \
15057     export_dynamic_flag_spec_CXX \
15058     thread_safe_flag_spec_CXX \
15059     whole_archive_flag_spec_CXX \
15060     enable_shared_with_static_runtimes_CXX \
15061     old_archive_cmds_CXX \
15062     old_archive_from_new_cmds_CXX \
15063     predep_objects_CXX \
15064     postdep_objects_CXX \
15065     predeps_CXX \
15066     postdeps_CXX \
15067     compiler_lib_search_path_CXX \
15068     archive_cmds_CXX \
15069     archive_expsym_cmds_CXX \
15070     postinstall_cmds_CXX \
15071     postuninstall_cmds_CXX \
15072     old_archive_from_expsyms_cmds_CXX \
15073     allow_undefined_flag_CXX \
15074     no_undefined_flag_CXX \
15075     export_symbols_cmds_CXX \
15076     hardcode_libdir_flag_spec_CXX \
15077     hardcode_libdir_flag_spec_ld_CXX \
15078     hardcode_libdir_separator_CXX \
15079     hardcode_automatic_CXX \
15080     module_cmds_CXX \
15081     module_expsym_cmds_CXX \
15082     lt_cv_prog_compiler_c_o_CXX \
15083     exclude_expsyms_CXX \
15084     include_expsyms_CXX; do
15085
15086     case $var in
15087     old_archive_cmds_CXX | \
15088     old_archive_from_new_cmds_CXX | \
15089     archive_cmds_CXX | \
15090     archive_expsym_cmds_CXX | \
15091     module_cmds_CXX | \
15092     module_expsym_cmds_CXX | \
15093     old_archive_from_expsyms_cmds_CXX | \
15094     export_symbols_cmds_CXX | \
15095     extract_expsyms_cmds | reload_cmds | finish_cmds | \
15096     postinstall_cmds | postuninstall_cmds | \
15097     old_postinstall_cmds | old_postuninstall_cmds | \
15098     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15099       # Double-quote double-evaled strings.
15100       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15101       ;;
15102     *)
15103       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15104       ;;
15105     esac
15106   done
15107
15108   case $lt_echo in
15109   *'\$0 --fallback-echo"')
15110     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15111     ;;
15112   esac
15113
15114 cfgfile="$ofile"
15115
15116   cat <<__EOF__ >> "$cfgfile"
15117 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15118
15119 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15120
15121 # Shell to use when invoking shell scripts.
15122 SHELL=$lt_SHELL
15123
15124 # Whether or not to build shared libraries.
15125 build_libtool_libs=$enable_shared
15126
15127 # Whether or not to build static libraries.
15128 build_old_libs=$enable_static
15129
15130 # Whether or not to add -lc for building shared libraries.
15131 build_libtool_need_lc=$archive_cmds_need_lc_CXX
15132
15133 # Whether or not to disallow shared libs when runtime libs are static
15134 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
15135
15136 # Whether or not to optimize for fast installation.
15137 fast_install=$enable_fast_install
15138
15139 # The host system.
15140 host_alias=$host_alias
15141 host=$host
15142 host_os=$host_os
15143
15144 # The build system.
15145 build_alias=$build_alias
15146 build=$build
15147 build_os=$build_os
15148
15149 # An echo program that does not interpret backslashes.
15150 echo=$lt_echo
15151
15152 # The archiver.
15153 AR=$lt_AR
15154 AR_FLAGS=$lt_AR_FLAGS
15155
15156 # A C compiler.
15157 LTCC=$lt_LTCC
15158
15159 # A language-specific compiler.
15160 CC=$lt_compiler_CXX
15161
15162 # Is the compiler the GNU C compiler?
15163 with_gcc=$GCC_CXX
15164
15165 # An ERE matcher.
15166 EGREP=$lt_EGREP
15167
15168 # The linker used to build libraries.
15169 LD=$lt_LD_CXX
15170
15171 # Whether we need hard or soft links.
15172 LN_S=$lt_LN_S
15173
15174 # A BSD-compatible nm program.
15175 NM=$lt_NM
15176
15177 # A symbol stripping program
15178 STRIP=$lt_STRIP
15179
15180 # Used to examine libraries when file_magic_cmd begins "file"
15181 MAGIC_CMD=$MAGIC_CMD
15182
15183 # Used on cygwin: DLL creation program.
15184 DLLTOOL="$DLLTOOL"
15185
15186 # Used on cygwin: object dumper.
15187 OBJDUMP="$OBJDUMP"
15188
15189 # Used on cygwin: assembler.
15190 AS="$AS"
15191
15192 # The name of the directory that contains temporary libtool files.
15193 objdir=$objdir
15194
15195 # How to create reloadable object files.
15196 reload_flag=$lt_reload_flag
15197 reload_cmds=$lt_reload_cmds
15198
15199 # How to pass a linker flag through the compiler.
15200 wl=$lt_lt_prog_compiler_wl_CXX
15201
15202 # Object file suffix (normally "o").
15203 objext="$ac_objext"
15204
15205 # Old archive suffix (normally "a").
15206 libext="$libext"
15207
15208 # Shared library suffix (normally ".so").
15209 shrext_cmds='$shrext_cmds'
15210
15211 # Executable file suffix (normally "").
15212 exeext="$exeext"
15213
15214 # Additional compiler flags for building library objects.
15215 pic_flag=$lt_lt_prog_compiler_pic_CXX
15216 pic_mode=$pic_mode
15217
15218 # What is the maximum length of a command?
15219 max_cmd_len=$lt_cv_sys_max_cmd_len
15220
15221 # Does compiler simultaneously support -c and -o options?
15222 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
15223
15224 # Must we lock files when doing compilation?
15225 need_locks=$lt_need_locks
15226
15227 # Do we need the lib prefix for modules?
15228 need_lib_prefix=$need_lib_prefix
15229
15230 # Do we need a version for libraries?
15231 need_version=$need_version
15232
15233 # Whether dlopen is supported.
15234 dlopen_support=$enable_dlopen
15235
15236 # Whether dlopen of programs is supported.
15237 dlopen_self=$enable_dlopen_self
15238
15239 # Whether dlopen of statically linked programs is supported.
15240 dlopen_self_static=$enable_dlopen_self_static
15241
15242 # Compiler flag to prevent dynamic linking.
15243 link_static_flag=$lt_lt_prog_compiler_static_CXX
15244
15245 # Compiler flag to turn off builtin functions.
15246 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
15247
15248 # Compiler flag to allow reflexive dlopens.
15249 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
15250
15251 # Compiler flag to generate shared objects directly from archives.
15252 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
15253
15254 # Compiler flag to generate thread-safe objects.
15255 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
15256
15257 # Library versioning type.
15258 version_type=$version_type
15259
15260 # Format of library name prefix.
15261 libname_spec=$lt_libname_spec
15262
15263 # List of archive names.  First name is the real one, the rest are links.
15264 # The last name is the one that the linker finds with -lNAME.
15265 library_names_spec=$lt_library_names_spec
15266
15267 # The coded name of the library, if different from the real name.
15268 soname_spec=$lt_soname_spec
15269
15270 # Commands used to build and install an old-style archive.
15271 RANLIB=$lt_RANLIB
15272 old_archive_cmds=$lt_old_archive_cmds_CXX
15273 old_postinstall_cmds=$lt_old_postinstall_cmds
15274 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15275
15276 # Create an old-style archive from a shared archive.
15277 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
15278
15279 # Create a temporary old-style archive to link instead of a shared archive.
15280 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
15281
15282 # Commands used to build and install a shared archive.
15283 archive_cmds=$lt_archive_cmds_CXX
15284 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
15285 postinstall_cmds=$lt_postinstall_cmds
15286 postuninstall_cmds=$lt_postuninstall_cmds
15287
15288 # Commands used to build a loadable module (assumed same as above if empty)
15289 module_cmds=$lt_module_cmds_CXX
15290 module_expsym_cmds=$lt_module_expsym_cmds_CXX
15291
15292 # Commands to strip libraries.
15293 old_striplib=$lt_old_striplib
15294 striplib=$lt_striplib
15295
15296 # Dependencies to place before the objects being linked to create a
15297 # shared library.
15298 predep_objects=$lt_predep_objects_CXX
15299
15300 # Dependencies to place after the objects being linked to create a
15301 # shared library.
15302 postdep_objects=$lt_postdep_objects_CXX
15303
15304 # Dependencies to place before the objects being linked to create a
15305 # shared library.
15306 predeps=$lt_predeps_CXX
15307
15308 # Dependencies to place after the objects being linked to create a
15309 # shared library.
15310 postdeps=$lt_postdeps_CXX
15311
15312 # The library search path used internally by the compiler when linking
15313 # a shared library.
15314 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
15315
15316 # Method to check whether dependent libraries are shared objects.
15317 deplibs_check_method=$lt_deplibs_check_method
15318
15319 # Command to use when deplibs_check_method == file_magic.
15320 file_magic_cmd=$lt_file_magic_cmd
15321
15322 # Flag that allows shared libraries with undefined symbols to be built.
15323 allow_undefined_flag=$lt_allow_undefined_flag_CXX
15324
15325 # Flag that forces no undefined symbols.
15326 no_undefined_flag=$lt_no_undefined_flag_CXX
15327
15328 # Commands used to finish a libtool library installation in a directory.
15329 finish_cmds=$lt_finish_cmds
15330
15331 # Same as above, but a single script fragment to be evaled but not shown.
15332 finish_eval=$lt_finish_eval
15333
15334 # Take the output of nm and produce a listing of raw symbols and C names.
15335 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15336
15337 # Transform the output of nm in a proper C declaration
15338 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15339
15340 # Transform the output of nm in a C name address pair
15341 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15342
15343 # This is the shared library runtime path variable.
15344 runpath_var=$runpath_var
15345
15346 # This is the shared library path variable.
15347 shlibpath_var=$shlibpath_var
15348
15349 # Is shlibpath searched before the hard-coded library search path?
15350 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15351
15352 # How to hardcode a shared library path into an executable.
15353 hardcode_action=$hardcode_action_CXX
15354
15355 # Whether we should hardcode library paths into libraries.
15356 hardcode_into_libs=$hardcode_into_libs
15357
15358 # Flag to hardcode \$libdir into a binary during linking.
15359 # This must work even if \$libdir does not exist.
15360 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
15361
15362 # If ld is used when linking, flag to hardcode \$libdir into
15363 # a binary during linking. This must work even if \$libdir does
15364 # not exist.
15365 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
15366
15367 # Whether we need a single -rpath flag with a separated argument.
15368 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
15369
15370 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15371 # resulting binary.
15372 hardcode_direct=$hardcode_direct_CXX
15373
15374 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15375 # resulting binary.
15376 hardcode_minus_L=$hardcode_minus_L_CXX
15377
15378 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15379 # the resulting binary.
15380 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
15381
15382 # Set to yes if building a shared library automatically hardcodes DIR into the library
15383 # and all subsequent libraries and executables linked against it.
15384 hardcode_automatic=$hardcode_automatic_CXX
15385
15386 # Variables whose values should be saved in libtool wrapper scripts and
15387 # restored at relink time.
15388 variables_saved_for_relink="$variables_saved_for_relink"
15389
15390 # Whether libtool must link a program against all its dependency libraries.
15391 link_all_deplibs=$link_all_deplibs_CXX
15392
15393 # Compile-time system search path for libraries
15394 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15395
15396 # Run-time system search path for libraries
15397 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15398
15399 # Fix the shell variable \$srcfile for the compiler.
15400 fix_srcfile_path="$fix_srcfile_path_CXX"
15401
15402 # Set to yes if exported symbols are required.
15403 always_export_symbols=$always_export_symbols_CXX
15404
15405 # The commands to list exported symbols.
15406 export_symbols_cmds=$lt_export_symbols_cmds_CXX
15407
15408 # The commands to extract the exported symbol list from a shared archive.
15409 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15410
15411 # Symbols that should not be listed in the preloaded symbols.
15412 exclude_expsyms=$lt_exclude_expsyms_CXX
15413
15414 # Symbols that must always be exported.
15415 include_expsyms=$lt_include_expsyms_CXX
15416
15417 # ### END LIBTOOL TAG CONFIG: $tagname
15418
15419 __EOF__
15420
15421
15422 else
15423   # If there is no Makefile yet, we rely on a make rule to execute
15424   # `config.status --recheck' to rerun these tests and create the
15425   # libtool script then.
15426   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15427   if test -f "$ltmain_in"; then
15428     test -f Makefile && make "$ltmain"
15429   fi
15430 fi
15431
15432
15433 ac_ext=c
15434 ac_cpp='$CPP $CPPFLAGS'
15435 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15436 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15437 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15438
15439 CC=$lt_save_CC
15440 LDCXX=$LD
15441 LD=$lt_save_LD
15442 GCC=$lt_save_GCC
15443 with_gnu_ldcxx=$with_gnu_ld
15444 with_gnu_ld=$lt_save_with_gnu_ld
15445 lt_cv_path_LDCXX=$lt_cv_path_LD
15446 lt_cv_path_LD=$lt_save_path_LD
15447 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15448 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15449
15450         else
15451           tagname=""
15452         fi
15453         ;;
15454
15455       F77)
15456         if test -n "$F77" && test "X$F77" != "Xno"; then
15457
15458 ac_ext=f
15459 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
15460 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15461 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
15462
15463
15464 archive_cmds_need_lc_F77=no
15465 allow_undefined_flag_F77=
15466 always_export_symbols_F77=no
15467 archive_expsym_cmds_F77=
15468 export_dynamic_flag_spec_F77=
15469 hardcode_direct_F77=no
15470 hardcode_libdir_flag_spec_F77=
15471 hardcode_libdir_flag_spec_ld_F77=
15472 hardcode_libdir_separator_F77=
15473 hardcode_minus_L_F77=no
15474 hardcode_automatic_F77=no
15475 module_cmds_F77=
15476 module_expsym_cmds_F77=
15477 link_all_deplibs_F77=unknown
15478 old_archive_cmds_F77=$old_archive_cmds
15479 no_undefined_flag_F77=
15480 whole_archive_flag_spec_F77=
15481 enable_shared_with_static_runtimes_F77=no
15482
15483 # Source file extension for f77 test sources.
15484 ac_ext=f
15485
15486 # Object file extension for compiled f77 test sources.
15487 objext=o
15488 objext_F77=$objext
15489
15490 # Code to be used in simple compile tests
15491 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
15492
15493 # Code to be used in simple link tests
15494 lt_simple_link_test_code="      program t\n      end\n"
15495
15496 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15497
15498 # If no C compiler was specified, use CC.
15499 LTCC=${LTCC-"$CC"}
15500
15501 # Allow CC to be a program name with arguments.
15502 compiler=$CC
15503
15504
15505 # save warnings/boilerplate of simple test code
15506 ac_outfile=conftest.$ac_objext
15507 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15508 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
15509 _lt_compiler_boilerplate=`cat conftest.err`
15510 $rm conftest*
15511
15512 ac_outfile=conftest.$ac_objext
15513 printf "$lt_simple_link_test_code" >conftest.$ac_ext
15514 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
15515 _lt_linker_boilerplate=`cat conftest.err`
15516 $rm conftest*
15517
15518
15519 # Allow CC to be a program name with arguments.
15520 lt_save_CC="$CC"
15521 CC=${F77-"f77"}
15522 compiler=$CC
15523 compiler_F77=$CC
15524 for cc_temp in $compiler""; do
15525   case $cc_temp in
15526     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15527     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15528     \-*) ;;
15529     *) break;;
15530   esac
15531 done
15532 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15533
15534
15535 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
15536 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
15537 echo "$as_me:$LINENO: result: $can_build_shared" >&5
15538 echo "${ECHO_T}$can_build_shared" >&6
15539
15540 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
15541 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
15542 test "$can_build_shared" = "no" && enable_shared=no
15543
15544 # On AIX, shared libraries and static libraries use the same namespace, and
15545 # are all built from PIC.
15546 case "$host_os" in
15547 aix3*)
15548   test "$enable_shared" = yes && enable_static=no
15549   if test -n "$RANLIB"; then
15550     archive_cmds="$archive_cmds~\$RANLIB \$lib"
15551     postinstall_cmds='$RANLIB $lib'
15552   fi
15553   ;;
15554 aix4* | aix5*)
15555   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15556     test "$enable_shared" = yes && enable_static=no
15557   fi
15558   ;;
15559 esac
15560 echo "$as_me:$LINENO: result: $enable_shared" >&5
15561 echo "${ECHO_T}$enable_shared" >&6
15562
15563 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
15564 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
15565 # Make sure either enable_shared or enable_static is yes.
15566 test "$enable_shared" = yes || enable_static=yes
15567 echo "$as_me:$LINENO: result: $enable_static" >&5
15568 echo "${ECHO_T}$enable_static" >&6
15569
15570 test "$ld_shlibs_F77" = no && can_build_shared=no
15571
15572 GCC_F77="$G77"
15573 LD_F77="$LD"
15574
15575 lt_prog_compiler_wl_F77=
15576 lt_prog_compiler_pic_F77=
15577 lt_prog_compiler_static_F77=
15578
15579 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15580 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15581
15582   if test "$GCC" = yes; then
15583     lt_prog_compiler_wl_F77='-Wl,'
15584     lt_prog_compiler_static_F77='-static'
15585
15586     case $host_os in
15587       aix*)
15588       # All AIX code is PIC.
15589       if test "$host_cpu" = ia64; then
15590         # AIX 5 now supports IA64 processor
15591         lt_prog_compiler_static_F77='-Bstatic'
15592       fi
15593       ;;
15594
15595     amigaos*)
15596       # FIXME: we need at least 68020 code to build shared libraries, but
15597       # adding the `-m68020' flag to GCC prevents building anything better,
15598       # like `-m68040'.
15599       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
15600       ;;
15601
15602     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15603       # PIC is the default for these OSes.
15604       ;;
15605
15606     mingw* | pw32* | os2*)
15607       # This hack is so that the source file can tell whether it is being
15608       # built for inclusion in a dll (and should export symbols for example).
15609       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15610       ;;
15611
15612     darwin* | rhapsody*)
15613       # PIC is the default on this platform
15614       # Common symbols not allowed in MH_DYLIB files
15615       lt_prog_compiler_pic_F77='-fno-common'
15616       ;;
15617
15618     msdosdjgpp*)
15619       # Just because we use GCC doesn't mean we suddenly get shared libraries
15620       # on systems that don't support them.
15621       lt_prog_compiler_can_build_shared_F77=no
15622       enable_shared=no
15623       ;;
15624
15625     sysv4*MP*)
15626       if test -d /usr/nec; then
15627         lt_prog_compiler_pic_F77=-Kconform_pic
15628       fi
15629       ;;
15630
15631     hpux*)
15632       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15633       # not for PA HP-UX.
15634       case "$host_cpu" in
15635       hppa*64*|ia64*)
15636         # +Z the default
15637         ;;
15638       *)
15639         lt_prog_compiler_pic_F77='-fPIC'
15640         ;;
15641       esac
15642       ;;
15643
15644     *)
15645       lt_prog_compiler_pic_F77='-fPIC'
15646       ;;
15647     esac
15648   else
15649     # PORTME Check for flag to pass linker flags through the system compiler.
15650     case $host_os in
15651     aix*)
15652       lt_prog_compiler_wl_F77='-Wl,'
15653       if test "$host_cpu" = ia64; then
15654         # AIX 5 now supports IA64 processor
15655         lt_prog_compiler_static_F77='-Bstatic'
15656       else
15657         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
15658       fi
15659       ;;
15660       darwin*)
15661         # PIC is the default on this platform
15662         # Common symbols not allowed in MH_DYLIB files
15663        case $cc_basename in
15664          xlc*)
15665          lt_prog_compiler_pic_F77='-qnocommon'
15666          lt_prog_compiler_wl_F77='-Wl,'
15667          ;;
15668        esac
15669        ;;
15670
15671     mingw* | pw32* | os2*)
15672       # This hack is so that the source file can tell whether it is being
15673       # built for inclusion in a dll (and should export symbols for example).
15674       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15675       ;;
15676
15677     hpux9* | hpux10* | hpux11*)
15678       lt_prog_compiler_wl_F77='-Wl,'
15679       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15680       # not for PA HP-UX.
15681       case "$host_cpu" in
15682       hppa*64*|ia64*)
15683         # +Z the default
15684         ;;
15685       *)
15686         lt_prog_compiler_pic_F77='+Z'
15687         ;;
15688       esac
15689       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15690       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
15691       ;;
15692
15693     irix5* | irix6* | nonstopux*)
15694       lt_prog_compiler_wl_F77='-Wl,'
15695       # PIC (with -KPIC) is the default.
15696       lt_prog_compiler_static_F77='-non_shared'
15697       ;;
15698
15699     newsos6)
15700       lt_prog_compiler_pic_F77='-KPIC'
15701       lt_prog_compiler_static_F77='-Bstatic'
15702       ;;
15703
15704     linux*)
15705       case $cc_basename in
15706       icc* | ecc*)
15707         lt_prog_compiler_wl_F77='-Wl,'
15708         lt_prog_compiler_pic_F77='-KPIC'
15709         lt_prog_compiler_static_F77='-static'
15710         ;;
15711       pgcc* | pgf77* | pgf90*)
15712         # Portland Group compilers (*not* the Pentium gcc compiler,
15713         # which looks to be a dead project)
15714         lt_prog_compiler_wl_F77='-Wl,'
15715         lt_prog_compiler_pic_F77='-fpic'
15716         lt_prog_compiler_static_F77='-static'
15717         ;;
15718       ccc*)
15719         lt_prog_compiler_wl_F77='-Wl,'
15720         # All Alpha code is PIC.
15721         lt_prog_compiler_static_F77='-non_shared'
15722         ;;
15723       esac
15724       ;;
15725
15726     osf3* | osf4* | osf5*)
15727       lt_prog_compiler_wl_F77='-Wl,'
15728       # All OSF/1 code is PIC.
15729       lt_prog_compiler_static_F77='-non_shared'
15730       ;;
15731
15732     sco3.2v5*)
15733       lt_prog_compiler_pic_F77='-Kpic'
15734       lt_prog_compiler_static_F77='-dn'
15735       ;;
15736
15737     solaris*)
15738       lt_prog_compiler_pic_F77='-KPIC'
15739       lt_prog_compiler_static_F77='-Bstatic'
15740       case $cc_basename in
15741       f77* | f90* | f95*)
15742         lt_prog_compiler_wl_F77='-Qoption ld ';;
15743       *)
15744         lt_prog_compiler_wl_F77='-Wl,';;
15745       esac
15746       ;;
15747
15748     sunos4*)
15749       lt_prog_compiler_wl_F77='-Qoption ld '
15750       lt_prog_compiler_pic_F77='-PIC'
15751       lt_prog_compiler_static_F77='-Bstatic'
15752       ;;
15753
15754     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15755       lt_prog_compiler_wl_F77='-Wl,'
15756       lt_prog_compiler_pic_F77='-KPIC'
15757       lt_prog_compiler_static_F77='-Bstatic'
15758       ;;
15759
15760     sysv4*MP*)
15761       if test -d /usr/nec ;then
15762         lt_prog_compiler_pic_F77='-Kconform_pic'
15763         lt_prog_compiler_static_F77='-Bstatic'
15764       fi
15765       ;;
15766
15767     unicos*)
15768       lt_prog_compiler_wl_F77='-Wl,'
15769       lt_prog_compiler_can_build_shared_F77=no
15770       ;;
15771
15772     uts4*)
15773       lt_prog_compiler_pic_F77='-pic'
15774       lt_prog_compiler_static_F77='-Bstatic'
15775       ;;
15776
15777     *)
15778       lt_prog_compiler_can_build_shared_F77=no
15779       ;;
15780     esac
15781   fi
15782
15783 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15784 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
15785
15786 #
15787 # Check to make sure the PIC flag actually works.
15788 #
15789 if test -n "$lt_prog_compiler_pic_F77"; then
15790
15791 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15792 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
15793 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
15794   echo $ECHO_N "(cached) $ECHO_C" >&6
15795 else
15796   lt_prog_compiler_pic_works_F77=no
15797   ac_outfile=conftest.$ac_objext
15798    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15799    lt_compiler_flag="$lt_prog_compiler_pic_F77"
15800    # Insert the option either (1) after the last *FLAGS variable, or
15801    # (2) before a word containing "conftest.", or (3) at the end.
15802    # Note that $ac_compile itself does not contain backslashes and begins
15803    # with a dollar sign (not a hyphen), so the echo should work correctly.
15804    # The option is referenced via a variable to avoid confusing sed.
15805    lt_compile=`echo "$ac_compile" | $SED \
15806    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15807    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15808    -e 's:$: $lt_compiler_flag:'`
15809    (eval echo "\"\$as_me:15809: $lt_compile\"" >&5)
15810    (eval "$lt_compile" 2>conftest.err)
15811    ac_status=$?
15812    cat conftest.err >&5
15813    echo "$as_me:15813: \$? = $ac_status" >&5
15814    if (exit $ac_status) && test -s "$ac_outfile"; then
15815      # The compiler can only warn and ignore the option if not recognized
15816      # So say no if there are warnings other than the usual output.
15817      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
15818      $SED '/^$/d' conftest.err >conftest.er2
15819      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
15820        lt_prog_compiler_pic_works_F77=yes
15821      fi
15822    fi
15823    $rm conftest*
15824
15825 fi
15826 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
15827 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
15828
15829 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
15830     case $lt_prog_compiler_pic_F77 in
15831      "" | " "*) ;;
15832      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15833      esac
15834 else
15835     lt_prog_compiler_pic_F77=
15836      lt_prog_compiler_can_build_shared_F77=no
15837 fi
15838
15839 fi
15840 case "$host_os" in
15841   # For platforms which do not support PIC, -DPIC is meaningless:
15842   *djgpp*)
15843     lt_prog_compiler_pic_F77=
15844     ;;
15845   *)
15846     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
15847     ;;
15848 esac
15849
15850 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15851 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15852 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15853   echo $ECHO_N "(cached) $ECHO_C" >&6
15854 else
15855   lt_cv_prog_compiler_c_o_F77=no
15856    $rm -r conftest 2>/dev/null
15857    mkdir conftest
15858    cd conftest
15859    mkdir out
15860    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15861
15862    lt_compiler_flag="-o out/conftest2.$ac_objext"
15863    # Insert the option either (1) after the last *FLAGS variable, or
15864    # (2) before a word containing "conftest.", or (3) at the end.
15865    # Note that $ac_compile itself does not contain backslashes and begins
15866    # with a dollar sign (not a hyphen), so the echo should work correctly.
15867    lt_compile=`echo "$ac_compile" | $SED \
15868    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15869    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15870    -e 's:$: $lt_compiler_flag:'`
15871    (eval echo "\"\$as_me:15871: $lt_compile\"" >&5)
15872    (eval "$lt_compile" 2>out/conftest.err)
15873    ac_status=$?
15874    cat out/conftest.err >&5
15875    echo "$as_me:15875: \$? = $ac_status" >&5
15876    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15877    then
15878      # The compiler can only warn and ignore the option if not recognized
15879      # So say no if there are warnings
15880      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
15881      $SED '/^$/d' out/conftest.err >out/conftest.er2
15882      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15883        lt_cv_prog_compiler_c_o_F77=yes
15884      fi
15885    fi
15886    chmod u+w .
15887    $rm conftest*
15888    # SGI C++ compiler will create directory out/ii_files/ for
15889    # template instantiation
15890    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15891    $rm out/* && rmdir out
15892    cd ..
15893    rmdir conftest
15894    $rm conftest*
15895
15896 fi
15897 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15898 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
15899
15900
15901 hard_links="nottested"
15902 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15903   # do not overwrite the value of need_locks provided by the user
15904   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15905 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15906   hard_links=yes
15907   $rm conftest*
15908   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15909   touch conftest.a
15910   ln conftest.a conftest.b 2>&5 || hard_links=no
15911   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15912   echo "$as_me:$LINENO: result: $hard_links" >&5
15913 echo "${ECHO_T}$hard_links" >&6
15914   if test "$hard_links" = no; then
15915     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15916 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15917     need_locks=warn
15918   fi
15919 else
15920   need_locks=no
15921 fi
15922
15923 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15924 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15925
15926   runpath_var=
15927   allow_undefined_flag_F77=
15928   enable_shared_with_static_runtimes_F77=no
15929   archive_cmds_F77=
15930   archive_expsym_cmds_F77=
15931   old_archive_From_new_cmds_F77=
15932   old_archive_from_expsyms_cmds_F77=
15933   export_dynamic_flag_spec_F77=
15934   whole_archive_flag_spec_F77=
15935   thread_safe_flag_spec_F77=
15936   hardcode_libdir_flag_spec_F77=
15937   hardcode_libdir_flag_spec_ld_F77=
15938   hardcode_libdir_separator_F77=
15939   hardcode_direct_F77=no
15940   hardcode_minus_L_F77=no
15941   hardcode_shlibpath_var_F77=unsupported
15942   link_all_deplibs_F77=unknown
15943   hardcode_automatic_F77=no
15944   module_cmds_F77=
15945   module_expsym_cmds_F77=
15946   always_export_symbols_F77=no
15947   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15948   # include_expsyms should be a list of space-separated symbols to be *always*
15949   # included in the symbol list
15950   include_expsyms_F77=
15951   # exclude_expsyms can be an extended regexp of symbols to exclude
15952   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15953   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15954   # as well as any symbol that contains `d'.
15955   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
15956   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15957   # platforms (ab)use it in PIC code, but their linkers get confused if
15958   # the symbol is explicitly referenced.  Since portable code cannot
15959   # rely on this symbol name, it's probably fine to never include it in
15960   # preloaded symbol tables.
15961   extract_expsyms_cmds=
15962   # Just being paranoid about ensuring that cc_basename is set.
15963   for cc_temp in $compiler""; do
15964   case $cc_temp in
15965     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15966     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15967     \-*) ;;
15968     *) break;;
15969   esac
15970 done
15971 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15972
15973   case $host_os in
15974   cygwin* | mingw* | pw32*)
15975     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15976     # When not using gcc, we currently assume that we are using
15977     # Microsoft Visual C++.
15978     if test "$GCC" != yes; then
15979       with_gnu_ld=no
15980     fi
15981     ;;
15982   openbsd*)
15983     with_gnu_ld=no
15984     ;;
15985   esac
15986
15987   ld_shlibs_F77=yes
15988   if test "$with_gnu_ld" = yes; then
15989     # If archive_cmds runs LD, not CC, wlarc should be empty
15990     wlarc='${wl}'
15991
15992     # Set some defaults for GNU ld with shared library support. These
15993     # are reset later if shared libraries are not supported. Putting them
15994     # here allows them to be overridden if necessary.
15995     runpath_var=LD_RUN_PATH
15996     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15997     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15998     # ancient GNU ld didn't support --whole-archive et. al.
15999     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16000         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16001       else
16002         whole_archive_flag_spec_F77=
16003     fi
16004     supports_anon_versioning=no
16005     case `$LD -v 2>/dev/null` in
16006       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16007       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16008       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16009       *\ 2.11.*) ;; # other 2.11 versions
16010       *) supports_anon_versioning=yes ;;
16011     esac
16012
16013     # See if GNU ld supports shared libraries.
16014     case $host_os in
16015     aix3* | aix4* | aix5*)
16016       # On AIX/PPC, the GNU linker is very broken
16017       if test "$host_cpu" != ia64; then
16018         ld_shlibs_F77=no
16019         cat <<EOF 1>&2
16020
16021 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16022 *** to be unable to reliably create shared libraries on AIX.
16023 *** Therefore, libtool is disabling shared libraries support.  If you
16024 *** really care for shared libraries, you may want to modify your PATH
16025 *** so that a non-GNU linker is found, and then restart.
16026
16027 EOF
16028       fi
16029       ;;
16030
16031     amigaos*)
16032       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)'
16033       hardcode_libdir_flag_spec_F77='-L$libdir'
16034       hardcode_minus_L_F77=yes
16035
16036       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16037       # that the semantics of dynamic libraries on AmigaOS, at least up
16038       # to version 4, is to share data among multiple programs linked
16039       # with the same dynamic library.  Since this doesn't match the
16040       # behavior of shared libraries on other platforms, we can't use
16041       # them.
16042       ld_shlibs_F77=no
16043       ;;
16044
16045     beos*)
16046       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16047         allow_undefined_flag_F77=unsupported
16048         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16049         # support --undefined.  This deserves some investigation.  FIXME
16050         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16051       else
16052         ld_shlibs_F77=no
16053       fi
16054       ;;
16055
16056     cygwin* | mingw* | pw32*)
16057       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
16058       # as there is no search path for DLLs.
16059       hardcode_libdir_flag_spec_F77='-L$libdir'
16060       allow_undefined_flag_F77=unsupported
16061       always_export_symbols_F77=no
16062       enable_shared_with_static_runtimes_F77=yes
16063       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16064
16065       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16066         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16067         # If the export-symbols file already is a .def file (1st line
16068         # is EXPORTS), use it as is; otherwise, prepend...
16069         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16070           cp $export_symbols $output_objdir/$soname.def;
16071         else
16072           echo EXPORTS > $output_objdir/$soname.def;
16073           cat $export_symbols >> $output_objdir/$soname.def;
16074         fi~
16075         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
16076       else
16077         ld_shlibs_F77=no
16078       fi
16079       ;;
16080
16081     linux*)
16082       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16083         tmp_addflag=
16084         case $cc_basename,$host_cpu in
16085         pgcc*)                          # Portland Group C compiler
16086           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'
16087           tmp_addflag=' $pic_flag'
16088           ;;
16089         pgf77* | pgf90* )                       # Portland Group f77 and f90 compilers
16090           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'
16091           tmp_addflag=' $pic_flag -Mnomain' ;;
16092         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
16093           tmp_addflag=' -i_dynamic' ;;
16094         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
16095           tmp_addflag=' -i_dynamic -nofor_main' ;;
16096         ifc* | ifort*)                  # Intel Fortran compiler
16097           tmp_addflag=' -nofor_main' ;;
16098         esac
16099         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16100
16101         if test $supports_anon_versioning = yes; then
16102           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
16103   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16104   $echo "local: *; };" >> $output_objdir/$libname.ver~
16105           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16106         fi
16107       else
16108         ld_shlibs_F77=no
16109       fi
16110       ;;
16111
16112     netbsd*)
16113       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16114         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16115         wlarc=
16116       else
16117         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16118         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16119       fi
16120       ;;
16121
16122     solaris* | sysv5*)
16123       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16124         ld_shlibs_F77=no
16125         cat <<EOF 1>&2
16126
16127 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16128 *** create shared libraries on Solaris systems.  Therefore, libtool
16129 *** is disabling shared libraries support.  We urge you to upgrade GNU
16130 *** binutils to release 2.9.1 or newer.  Another option is to modify
16131 *** your PATH or compiler configuration so that the native linker is
16132 *** used, and then restart.
16133
16134 EOF
16135       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16136         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16137         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16138       else
16139         ld_shlibs_F77=no
16140       fi
16141       ;;
16142
16143     sunos4*)
16144       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16145       wlarc=
16146       hardcode_direct_F77=yes
16147       hardcode_shlibpath_var_F77=no
16148       ;;
16149
16150     *)
16151       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16152         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16153         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16154       else
16155         ld_shlibs_F77=no
16156       fi
16157       ;;
16158     esac
16159
16160     if test "$ld_shlibs_F77" = no; then
16161       runpath_var=
16162       hardcode_libdir_flag_spec_F77=
16163       export_dynamic_flag_spec_F77=
16164       whole_archive_flag_spec_F77=
16165     fi
16166   else
16167     # PORTME fill in a description of your system's linker (not GNU ld)
16168     case $host_os in
16169     aix3*)
16170       allow_undefined_flag_F77=unsupported
16171       always_export_symbols_F77=yes
16172       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'
16173       # Note: this linker hardcodes the directories in LIBPATH if there
16174       # are no directories specified by -L.
16175       hardcode_minus_L_F77=yes
16176       if test "$GCC" = yes && test -z "$link_static_flag"; then
16177         # Neither direct hardcoding nor static linking is supported with a
16178         # broken collect2.
16179         hardcode_direct_F77=unsupported
16180       fi
16181       ;;
16182
16183     aix4* | aix5*)
16184       if test "$host_cpu" = ia64; then
16185         # On IA64, the linker does run time linking by default, so we don't
16186         # have to do anything special.
16187         aix_use_runtimelinking=no
16188         exp_sym_flag='-Bexport'
16189         no_entry_flag=""
16190       else
16191         # If we're using GNU nm, then we don't want the "-C" option.
16192         # -C means demangle to AIX nm, but means don't demangle with GNU nm
16193         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16194           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'
16195         else
16196           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'
16197         fi
16198         aix_use_runtimelinking=no
16199
16200         # Test if we are trying to use run time linking or normal
16201         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16202         # need to do runtime linking.
16203         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16204           for ld_flag in $LDFLAGS; do
16205           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16206             aix_use_runtimelinking=yes
16207             break
16208           fi
16209           done
16210         esac
16211
16212         exp_sym_flag='-bexport'
16213         no_entry_flag='-bnoentry'
16214       fi
16215
16216       # When large executables or shared objects are built, AIX ld can
16217       # have problems creating the table of contents.  If linking a library
16218       # or program results in "error TOC overflow" add -mminimal-toc to
16219       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16220       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16221
16222       archive_cmds_F77=''
16223       hardcode_direct_F77=yes
16224       hardcode_libdir_separator_F77=':'
16225       link_all_deplibs_F77=yes
16226
16227       if test "$GCC" = yes; then
16228         case $host_os in aix4.[012]|aix4.[012].*)
16229         # We only want to do this on AIX 4.2 and lower, the check
16230         # below for broken collect2 doesn't work under 4.3+
16231           collect2name=`${CC} -print-prog-name=collect2`
16232           if test -f "$collect2name" && \
16233            strings "$collect2name" | grep resolve_lib_name >/dev/null
16234           then
16235           # We have reworked collect2
16236           hardcode_direct_F77=yes
16237           else
16238           # We have old collect2
16239           hardcode_direct_F77=unsupported
16240           # It fails to find uninstalled libraries when the uninstalled
16241           # path is not listed in the libpath.  Setting hardcode_minus_L
16242           # to unsupported forces relinking
16243           hardcode_minus_L_F77=yes
16244           hardcode_libdir_flag_spec_F77='-L$libdir'
16245           hardcode_libdir_separator_F77=
16246           fi
16247         esac
16248         shared_flag='-shared'
16249         if test "$aix_use_runtimelinking" = yes; then
16250           shared_flag="$shared_flag "'${wl}-G'
16251         fi
16252       else
16253         # not using gcc
16254         if test "$host_cpu" = ia64; then
16255         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16256         # chokes on -Wl,-G. The following line is correct:
16257           shared_flag='-G'
16258         else
16259         if test "$aix_use_runtimelinking" = yes; then
16260             shared_flag='${wl}-G'
16261           else
16262             shared_flag='${wl}-bM:SRE'
16263         fi
16264         fi
16265       fi
16266
16267       # It seems that -bexpall does not export symbols beginning with
16268       # underscore (_), so it is better to generate a list of symbols to export.
16269       always_export_symbols_F77=yes
16270       if test "$aix_use_runtimelinking" = yes; then
16271         # Warning - without using the other runtime loading flags (-brtl),
16272         # -berok will link without error, but may produce a broken library.
16273         allow_undefined_flag_F77='-berok'
16274        # Determine the default libpath from the value encoded in an empty executable.
16275        cat >conftest.$ac_ext <<_ACEOF
16276       program main
16277
16278       end
16279 _ACEOF
16280 rm -f conftest.$ac_objext conftest$ac_exeext
16281 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16282   (eval $ac_link) 2>conftest.er1
16283   ac_status=$?
16284   grep -v '^ *+' conftest.er1 >conftest.err
16285   rm -f conftest.er1
16286   cat conftest.err >&5
16287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16288   (exit $ac_status); } &&
16289          { ac_try='test -z "$ac_f77_werror_flag"
16290                          || test ! -s conftest.err'
16291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16292   (eval $ac_try) 2>&5
16293   ac_status=$?
16294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16295   (exit $ac_status); }; } &&
16296          { ac_try='test -s conftest$ac_exeext'
16297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16298   (eval $ac_try) 2>&5
16299   ac_status=$?
16300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16301   (exit $ac_status); }; }; then
16302
16303 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16304 }'`
16305 # Check for a 64-bit object if we didn't find anything.
16306 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; }
16307 }'`; fi
16308 else
16309   echo "$as_me: failed program was:" >&5
16310 sed 's/^/| /' conftest.$ac_ext >&5
16311
16312 fi
16313 rm -f conftest.err conftest.$ac_objext \
16314       conftest$ac_exeext conftest.$ac_ext
16315 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16316
16317        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16318         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"
16319        else
16320         if test "$host_cpu" = ia64; then
16321           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
16322           allow_undefined_flag_F77="-z nodefs"
16323           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"
16324         else
16325          # Determine the default libpath from the value encoded in an empty executable.
16326          cat >conftest.$ac_ext <<_ACEOF
16327       program main
16328
16329       end
16330 _ACEOF
16331 rm -f conftest.$ac_objext conftest$ac_exeext
16332 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16333   (eval $ac_link) 2>conftest.er1
16334   ac_status=$?
16335   grep -v '^ *+' conftest.er1 >conftest.err
16336   rm -f conftest.er1
16337   cat conftest.err >&5
16338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16339   (exit $ac_status); } &&
16340          { ac_try='test -z "$ac_f77_werror_flag"
16341                          || test ! -s conftest.err'
16342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16343   (eval $ac_try) 2>&5
16344   ac_status=$?
16345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16346   (exit $ac_status); }; } &&
16347          { ac_try='test -s conftest$ac_exeext'
16348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16349   (eval $ac_try) 2>&5
16350   ac_status=$?
16351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16352   (exit $ac_status); }; }; then
16353
16354 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16355 }'`
16356 # Check for a 64-bit object if we didn't find anything.
16357 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; }
16358 }'`; fi
16359 else
16360   echo "$as_me: failed program was:" >&5
16361 sed 's/^/| /' conftest.$ac_ext >&5
16362
16363 fi
16364 rm -f conftest.err conftest.$ac_objext \
16365       conftest$ac_exeext conftest.$ac_ext
16366 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16367
16368          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16369           # Warning - without using the other run time loading flags,
16370           # -berok will link without error, but may produce a broken library.
16371           no_undefined_flag_F77=' ${wl}-bernotok'
16372           allow_undefined_flag_F77=' ${wl}-berok'
16373           # -bexpall does not export symbols beginning with underscore (_)
16374           always_export_symbols_F77=yes
16375           # Exported symbols can be pulled into shared objects from archives
16376           whole_archive_flag_spec_F77=' '
16377           archive_cmds_need_lc_F77=yes
16378           # This is similar to how AIX traditionally builds it's shared libraries.
16379           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'
16380         fi
16381       fi
16382       ;;
16383
16384     amigaos*)
16385       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)'
16386       hardcode_libdir_flag_spec_F77='-L$libdir'
16387       hardcode_minus_L_F77=yes
16388       # see comment about different semantics on the GNU ld section
16389       ld_shlibs_F77=no
16390       ;;
16391
16392     bsdi[45]*)
16393       export_dynamic_flag_spec_F77=-rdynamic
16394       ;;
16395
16396     cygwin* | mingw* | pw32*)
16397       # When not using gcc, we currently assume that we are using
16398       # Microsoft Visual C++.
16399       # hardcode_libdir_flag_spec is actually meaningless, as there is
16400       # no search path for DLLs.
16401       hardcode_libdir_flag_spec_F77=' '
16402       allow_undefined_flag_F77=unsupported
16403       # Tell ltmain to make .lib files, not .a files.
16404       libext=lib
16405       # Tell ltmain to make .dll files, not .so files.
16406       shrext_cmds=".dll"
16407       # FIXME: Setting linknames here is a bad hack.
16408       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16409       # The linker will automatically build a .lib file if we build a DLL.
16410       old_archive_From_new_cmds_F77='true'
16411       # FIXME: Should let the user specify the lib program.
16412       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
16413       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
16414       enable_shared_with_static_runtimes_F77=yes
16415       ;;
16416
16417     darwin* | rhapsody*)
16418       case "$host_os" in
16419         rhapsody* | darwin1.[012])
16420          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
16421          ;;
16422        *) # Darwin 1.3 on
16423          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16424            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16425          else
16426            case ${MACOSX_DEPLOYMENT_TARGET} in
16427              10.[012])
16428                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16429                ;;
16430              10.*)
16431                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
16432                ;;
16433            esac
16434          fi
16435          ;;
16436       esac
16437       archive_cmds_need_lc_F77=no
16438       hardcode_direct_F77=no
16439       hardcode_automatic_F77=yes
16440       hardcode_shlibpath_var_F77=unsupported
16441       whole_archive_flag_spec_F77=''
16442       link_all_deplibs_F77=yes
16443     if test "$GCC" = yes ; then
16444         output_verbose_link_cmd='echo'
16445         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16446       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16447       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16448       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}'
16449       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}'
16450     else
16451       case $cc_basename in
16452         xlc*)
16453          output_verbose_link_cmd='echo'
16454          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16455          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16456           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16457          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}'
16458           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}'
16459           ;;
16460        *)
16461          ld_shlibs_F77=no
16462           ;;
16463       esac
16464     fi
16465       ;;
16466
16467     dgux*)
16468       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16469       hardcode_libdir_flag_spec_F77='-L$libdir'
16470       hardcode_shlibpath_var_F77=no
16471       ;;
16472
16473     freebsd1*)
16474       ld_shlibs_F77=no
16475       ;;
16476
16477     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16478     # support.  Future versions do this automatically, but an explicit c++rt0.o
16479     # does not break anything, and helps significantly (at the cost of a little
16480     # extra space).
16481     freebsd2.2*)
16482       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16483       hardcode_libdir_flag_spec_F77='-R$libdir'
16484       hardcode_direct_F77=yes
16485       hardcode_shlibpath_var_F77=no
16486       ;;
16487
16488     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16489     freebsd2*)
16490       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16491       hardcode_direct_F77=yes
16492       hardcode_minus_L_F77=yes
16493       hardcode_shlibpath_var_F77=no
16494       ;;
16495
16496     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16497     freebsd* | kfreebsd*-gnu | dragonfly*)
16498       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16499       hardcode_libdir_flag_spec_F77='-R$libdir'
16500       hardcode_direct_F77=yes
16501       hardcode_shlibpath_var_F77=no
16502       ;;
16503
16504     hpux9*)
16505       if test "$GCC" = yes; then
16506         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'
16507       else
16508         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'
16509       fi
16510       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16511       hardcode_libdir_separator_F77=:
16512       hardcode_direct_F77=yes
16513
16514       # hardcode_minus_L: Not really in the search PATH,
16515       # but as the default location of the library.
16516       hardcode_minus_L_F77=yes
16517       export_dynamic_flag_spec_F77='${wl}-E'
16518       ;;
16519
16520     hpux10* | hpux11*)
16521       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16522         case "$host_cpu" in
16523         hppa*64*|ia64*)
16524           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16525           ;;
16526         *)
16527           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16528           ;;
16529         esac
16530       else
16531         case "$host_cpu" in
16532         hppa*64*|ia64*)
16533           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16534           ;;
16535         *)
16536           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16537           ;;
16538         esac
16539       fi
16540       if test "$with_gnu_ld" = no; then
16541         case "$host_cpu" in
16542         hppa*64*)
16543           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16544           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
16545           hardcode_libdir_separator_F77=:
16546           hardcode_direct_F77=no
16547           hardcode_shlibpath_var_F77=no
16548           ;;
16549         ia64*)
16550           hardcode_libdir_flag_spec_F77='-L$libdir'
16551           hardcode_direct_F77=no
16552           hardcode_shlibpath_var_F77=no
16553
16554           # hardcode_minus_L: Not really in the search PATH,
16555           # but as the default location of the library.
16556           hardcode_minus_L_F77=yes
16557           ;;
16558         *)
16559           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16560           hardcode_libdir_separator_F77=:
16561           hardcode_direct_F77=yes
16562           export_dynamic_flag_spec_F77='${wl}-E'
16563
16564           # hardcode_minus_L: Not really in the search PATH,
16565           # but as the default location of the library.
16566           hardcode_minus_L_F77=yes
16567           ;;
16568         esac
16569       fi
16570       ;;
16571
16572     irix5* | irix6* | nonstopux*)
16573       if test "$GCC" = yes; then
16574         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'
16575       else
16576         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'
16577         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
16578       fi
16579       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16580       hardcode_libdir_separator_F77=:
16581       link_all_deplibs_F77=yes
16582       ;;
16583
16584     netbsd*)
16585       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16586         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16587       else
16588         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16589       fi
16590       hardcode_libdir_flag_spec_F77='-R$libdir'
16591       hardcode_direct_F77=yes
16592       hardcode_shlibpath_var_F77=no
16593       ;;
16594
16595     newsos6)
16596       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16597       hardcode_direct_F77=yes
16598       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16599       hardcode_libdir_separator_F77=:
16600       hardcode_shlibpath_var_F77=no
16601       ;;
16602
16603     openbsd*)
16604       hardcode_direct_F77=yes
16605       hardcode_shlibpath_var_F77=no
16606       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16607         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16608         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16609         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16610         export_dynamic_flag_spec_F77='${wl}-E'
16611       else
16612        case $host_os in
16613          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16614            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16615            hardcode_libdir_flag_spec_F77='-R$libdir'
16616            ;;
16617          *)
16618            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16619            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16620            ;;
16621        esac
16622       fi
16623       ;;
16624
16625     os2*)
16626       hardcode_libdir_flag_spec_F77='-L$libdir'
16627       hardcode_minus_L_F77=yes
16628       allow_undefined_flag_F77=unsupported
16629       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'
16630       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16631       ;;
16632
16633     osf3*)
16634       if test "$GCC" = yes; then
16635         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16636         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'
16637       else
16638         allow_undefined_flag_F77=' -expect_unresolved \*'
16639         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'
16640       fi
16641       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16642       hardcode_libdir_separator_F77=:
16643       ;;
16644
16645     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16646       if test "$GCC" = yes; then
16647         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16648         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'
16649         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16650       else
16651         allow_undefined_flag_F77=' -expect_unresolved \*'
16652         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'
16653         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~
16654         $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'
16655
16656         # Both c and cxx compiler support -rpath directly
16657         hardcode_libdir_flag_spec_F77='-rpath $libdir'
16658       fi
16659       hardcode_libdir_separator_F77=:
16660       ;;
16661
16662     sco3.2v5*)
16663       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16664       hardcode_shlibpath_var_F77=no
16665       export_dynamic_flag_spec_F77='${wl}-Bexport'
16666       runpath_var=LD_RUN_PATH
16667       hardcode_runpath_var=yes
16668       ;;
16669
16670     solaris*)
16671       no_undefined_flag_F77=' -z text'
16672       if test "$GCC" = yes; then
16673         wlarc='${wl}'
16674         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16675         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16676           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16677       else
16678         wlarc=''
16679         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16680         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16681         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16682       fi
16683       hardcode_libdir_flag_spec_F77='-R$libdir'
16684       hardcode_shlibpath_var_F77=no
16685       case $host_os in
16686       solaris2.[0-5] | solaris2.[0-5].*) ;;
16687       *)
16688         # The compiler driver will combine linker options so we
16689         # cannot just pass the convience library names through
16690         # without $wl, iff we do not link with $LD.
16691         # Luckily, gcc supports the same syntax we need for Sun Studio.
16692         # Supported since Solaris 2.6 (maybe 2.5.1?)
16693         case $wlarc in
16694         '')
16695           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
16696         *)
16697           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' ;;
16698         esac ;;
16699       esac
16700       link_all_deplibs_F77=yes
16701       ;;
16702
16703     sunos4*)
16704       if test "x$host_vendor" = xsequent; then
16705         # Use $CC to link under sequent, because it throws in some extra .o
16706         # files that make .init and .fini sections work.
16707         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16708       else
16709         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16710       fi
16711       hardcode_libdir_flag_spec_F77='-L$libdir'
16712       hardcode_direct_F77=yes
16713       hardcode_minus_L_F77=yes
16714       hardcode_shlibpath_var_F77=no
16715       ;;
16716
16717     sysv4)
16718       case $host_vendor in
16719         sni)
16720           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16721           hardcode_direct_F77=yes # is this really true???
16722         ;;
16723         siemens)
16724           ## LD is ld it makes a PLAMLIB
16725           ## CC just makes a GrossModule.
16726           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16727           reload_cmds_F77='$CC -r -o $output$reload_objs'
16728           hardcode_direct_F77=no
16729         ;;
16730         motorola)
16731           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16732           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
16733         ;;
16734       esac
16735       runpath_var='LD_RUN_PATH'
16736       hardcode_shlibpath_var_F77=no
16737       ;;
16738
16739     sysv4.3*)
16740       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16741       hardcode_shlibpath_var_F77=no
16742       export_dynamic_flag_spec_F77='-Bexport'
16743       ;;
16744
16745     sysv4*MP*)
16746       if test -d /usr/nec; then
16747         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16748         hardcode_shlibpath_var_F77=no
16749         runpath_var=LD_RUN_PATH
16750         hardcode_runpath_var=yes
16751         ld_shlibs_F77=yes
16752       fi
16753       ;;
16754
16755     sysv4.2uw2*)
16756       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16757       hardcode_direct_F77=yes
16758       hardcode_minus_L_F77=no
16759       hardcode_shlibpath_var_F77=no
16760       hardcode_runpath_var=yes
16761       runpath_var=LD_RUN_PATH
16762       ;;
16763
16764    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
16765       no_undefined_flag_F77='${wl}-z ${wl}text'
16766       if test "$GCC" = yes; then
16767         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16768       else
16769         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16770       fi
16771       runpath_var='LD_RUN_PATH'
16772       hardcode_shlibpath_var_F77=no
16773       ;;
16774
16775     sysv5*)
16776       no_undefined_flag_F77=' -z text'
16777       # $CC -shared without GNU ld will not create a library from C++
16778       # object files and a static libstdc++, better avoid it by now
16779       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16780       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16781                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16782       hardcode_libdir_flag_spec_F77=
16783       hardcode_shlibpath_var_F77=no
16784       runpath_var='LD_RUN_PATH'
16785       ;;
16786
16787     uts4*)
16788       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16789       hardcode_libdir_flag_spec_F77='-L$libdir'
16790       hardcode_shlibpath_var_F77=no
16791       ;;
16792
16793     *)
16794       ld_shlibs_F77=no
16795       ;;
16796     esac
16797   fi
16798
16799 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16800 echo "${ECHO_T}$ld_shlibs_F77" >&6
16801 test "$ld_shlibs_F77" = no && can_build_shared=no
16802
16803 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16804 if test "$GCC" = yes; then
16805   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16806 fi
16807
16808 #
16809 # Do we need to explicitly link libc?
16810 #
16811 case "x$archive_cmds_need_lc_F77" in
16812 x|xyes)
16813   # Assume -lc should be added
16814   archive_cmds_need_lc_F77=yes
16815
16816   if test "$enable_shared" = yes && test "$GCC" = yes; then
16817     case $archive_cmds_F77 in
16818     *'~'*)
16819       # FIXME: we may have to deal with multi-command sequences.
16820       ;;
16821     '$CC '*)
16822       # Test whether the compiler implicitly links with -lc since on some
16823       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16824       # to ld, don't add -lc before -lgcc.
16825       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16826 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16827       $rm conftest*
16828       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16829
16830       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16831   (eval $ac_compile) 2>&5
16832   ac_status=$?
16833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16834   (exit $ac_status); } 2>conftest.err; then
16835         soname=conftest
16836         lib=conftest
16837         libobjs=conftest.$ac_objext
16838         deplibs=
16839         wl=$lt_prog_compiler_wl_F77
16840         compiler_flags=-v
16841         linker_flags=-v
16842         verstring=
16843         output_objdir=.
16844         libname=conftest
16845         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16846         allow_undefined_flag_F77=
16847         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16848   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16849   ac_status=$?
16850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16851   (exit $ac_status); }
16852         then
16853           archive_cmds_need_lc_F77=no
16854         else
16855           archive_cmds_need_lc_F77=yes
16856         fi
16857         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16858       else
16859         cat conftest.err 1>&5
16860       fi
16861       $rm conftest*
16862       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16863 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
16864       ;;
16865     esac
16866   fi
16867   ;;
16868 esac
16869
16870 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16871 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16872 library_names_spec=
16873 libname_spec='lib$name'
16874 soname_spec=
16875 shrext_cmds=".so"
16876 postinstall_cmds=
16877 postuninstall_cmds=
16878 finish_cmds=
16879 finish_eval=
16880 shlibpath_var=
16881 shlibpath_overrides_runpath=unknown
16882 version_type=none
16883 dynamic_linker="$host_os ld.so"
16884 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16885 if test "$GCC" = yes; then
16886   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16887   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16888     # if the path contains ";" then we assume it to be the separator
16889     # otherwise default to the standard path separator (i.e. ":") - it is
16890     # assumed that no part of a normal pathname contains ";" but that should
16891     # okay in the real world where ";" in dirpaths is itself problematic.
16892     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16893   else
16894     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16895   fi
16896 else
16897   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16898 fi
16899 need_lib_prefix=unknown
16900 hardcode_into_libs=no
16901
16902 # when you set need_version to no, make sure it does not cause -set_version
16903 # flags to be left without arguments
16904 need_version=unknown
16905
16906 case $host_os in
16907 aix3*)
16908   version_type=linux
16909   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16910   shlibpath_var=LIBPATH
16911
16912   # AIX 3 has no versioning support, so we append a major version to the name.
16913   soname_spec='${libname}${release}${shared_ext}$major'
16914   ;;
16915
16916 aix4* | aix5*)
16917   version_type=linux
16918   need_lib_prefix=no
16919   need_version=no
16920   hardcode_into_libs=yes
16921   if test "$host_cpu" = ia64; then
16922     # AIX 5 supports IA64
16923     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16924     shlibpath_var=LD_LIBRARY_PATH
16925   else
16926     # With GCC up to 2.95.x, collect2 would create an import file
16927     # for dependence libraries.  The import file would start with
16928     # the line `#! .'.  This would cause the generated library to
16929     # depend on `.', always an invalid library.  This was fixed in
16930     # development snapshots of GCC prior to 3.0.
16931     case $host_os in
16932       aix4 | aix4.[01] | aix4.[01].*)
16933       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16934            echo ' yes '
16935            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16936         :
16937       else
16938         can_build_shared=no
16939       fi
16940       ;;
16941     esac
16942     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16943     # soname into executable. Probably we can add versioning support to
16944     # collect2, so additional links can be useful in future.
16945     if test "$aix_use_runtimelinking" = yes; then
16946       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16947       # instead of lib<name>.a to let people know that these are not
16948       # typical AIX shared libraries.
16949       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16950     else
16951       # We preserve .a as extension for shared libraries through AIX4.2
16952       # and later when we are not doing run time linking.
16953       library_names_spec='${libname}${release}.a $libname.a'
16954       soname_spec='${libname}${release}${shared_ext}$major'
16955     fi
16956     shlibpath_var=LIBPATH
16957   fi
16958   ;;
16959
16960 amigaos*)
16961   library_names_spec='$libname.ixlibrary $libname.a'
16962   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16963   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'
16964   ;;
16965
16966 beos*)
16967   library_names_spec='${libname}${shared_ext}'
16968   dynamic_linker="$host_os ld.so"
16969   shlibpath_var=LIBRARY_PATH
16970   ;;
16971
16972 bsdi[45]*)
16973   version_type=linux
16974   need_version=no
16975   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16976   soname_spec='${libname}${release}${shared_ext}$major'
16977   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16978   shlibpath_var=LD_LIBRARY_PATH
16979   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16980   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16981   # the default ld.so.conf also contains /usr/contrib/lib and
16982   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16983   # libtool to hard-code these into programs
16984   ;;
16985
16986 cygwin* | mingw* | pw32*)
16987   version_type=windows
16988   shrext_cmds=".dll"
16989   need_version=no
16990   need_lib_prefix=no
16991
16992   case $GCC,$host_os in
16993   yes,cygwin* | yes,mingw* | yes,pw32*)
16994     library_names_spec='$libname.dll.a'
16995     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16996     postinstall_cmds='base_file=`basename \${file}`~
16997       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16998       dldir=$destdir/`dirname \$dlpath`~
16999       test -d \$dldir || mkdir -p \$dldir~
17000       $install_prog $dir/$dlname \$dldir/$dlname'
17001     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17002       dlpath=$dir/\$dldll~
17003        $rm \$dlpath'
17004     shlibpath_overrides_runpath=yes
17005
17006     case $host_os in
17007     cygwin*)
17008       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17009       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17010       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17011       ;;
17012     mingw*)
17013       # MinGW DLLs use traditional 'lib' prefix
17014       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17015       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17016       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17017         # It is most probably a Windows format PATH printed by
17018         # mingw gcc, but we are running on Cygwin. Gcc prints its search
17019         # path with ; separators, and with drive letters. We can handle the
17020         # drive letters (cygwin fileutils understands them), so leave them,
17021         # especially as we might pass files found there to a mingw objdump,
17022         # which wouldn't understand a cygwinified path. Ahh.
17023         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17024       else
17025         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17026       fi
17027       ;;
17028     pw32*)
17029       # pw32 DLLs use 'pw' prefix rather than 'lib'
17030       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17031       ;;
17032     esac
17033     ;;
17034
17035   *)
17036     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17037     ;;
17038   esac
17039   dynamic_linker='Win32 ld.exe'
17040   # FIXME: first we should search . and the directory the executable is in
17041   shlibpath_var=PATH
17042   ;;
17043
17044 darwin* | rhapsody*)
17045   dynamic_linker="$host_os dyld"
17046   version_type=darwin
17047   need_lib_prefix=no
17048   need_version=no
17049   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17050   soname_spec='${libname}${release}${major}$shared_ext'
17051   shlibpath_overrides_runpath=yes
17052   shlibpath_var=DYLD_LIBRARY_PATH
17053   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
17054   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17055   if test "$GCC" = yes; then
17056     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"`
17057   else
17058     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17059   fi
17060   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17061   ;;
17062
17063 dgux*)
17064   version_type=linux
17065   need_lib_prefix=no
17066   need_version=no
17067   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17068   soname_spec='${libname}${release}${shared_ext}$major'
17069   shlibpath_var=LD_LIBRARY_PATH
17070   ;;
17071
17072 freebsd1*)
17073   dynamic_linker=no
17074   ;;
17075
17076 kfreebsd*-gnu)
17077   version_type=linux
17078   need_lib_prefix=no
17079   need_version=no
17080   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17081   soname_spec='${libname}${release}${shared_ext}$major'
17082   shlibpath_var=LD_LIBRARY_PATH
17083   shlibpath_overrides_runpath=no
17084   hardcode_into_libs=yes
17085   dynamic_linker='GNU ld.so'
17086   ;;
17087
17088 freebsd* | dragonfly*)
17089   # DragonFly does not have aout.  When/if they implement a new
17090   # versioning mechanism, adjust this.
17091   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17092   version_type=freebsd-$objformat
17093   case $version_type in
17094     freebsd-elf*)
17095       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17096       need_version=no
17097       need_lib_prefix=no
17098       ;;
17099     freebsd-*)
17100       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17101       need_version=yes
17102       ;;
17103   esac
17104   shlibpath_var=LD_LIBRARY_PATH
17105   case $host_os in
17106   freebsd2*)
17107     shlibpath_overrides_runpath=yes
17108     ;;
17109   freebsd3.[01]* | freebsdelf3.[01]*)
17110     shlibpath_overrides_runpath=yes
17111     hardcode_into_libs=yes
17112     ;;
17113   *) # from 3.2 on
17114     shlibpath_overrides_runpath=no
17115     hardcode_into_libs=yes
17116     ;;
17117   esac
17118   ;;
17119
17120 gnu*)
17121   version_type=linux
17122   need_lib_prefix=no
17123   need_version=no
17124   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17125   soname_spec='${libname}${release}${shared_ext}$major'
17126   shlibpath_var=LD_LIBRARY_PATH
17127   hardcode_into_libs=yes
17128   ;;
17129
17130 hpux9* | hpux10* | hpux11*)
17131   # Give a soname corresponding to the major version so that dld.sl refuses to
17132   # link against other versions.
17133   version_type=sunos
17134   need_lib_prefix=no
17135   need_version=no
17136   case "$host_cpu" in
17137   ia64*)
17138     shrext_cmds='.so'
17139     hardcode_into_libs=yes
17140     dynamic_linker="$host_os dld.so"
17141     shlibpath_var=LD_LIBRARY_PATH
17142     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17143     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17144     soname_spec='${libname}${release}${shared_ext}$major'
17145     if test "X$HPUX_IA64_MODE" = X32; then
17146       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17147     else
17148       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17149     fi
17150     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17151     ;;
17152    hppa*64*)
17153      shrext_cmds='.sl'
17154      hardcode_into_libs=yes
17155      dynamic_linker="$host_os dld.sl"
17156      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17157      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17158      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17159      soname_spec='${libname}${release}${shared_ext}$major'
17160      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17161      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17162      ;;
17163    *)
17164     shrext_cmds='.sl'
17165     dynamic_linker="$host_os dld.sl"
17166     shlibpath_var=SHLIB_PATH
17167     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17168     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17169     soname_spec='${libname}${release}${shared_ext}$major'
17170     ;;
17171   esac
17172   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17173   postinstall_cmds='chmod 555 $lib'
17174   ;;
17175
17176 irix5* | irix6* | nonstopux*)
17177   case $host_os in
17178     nonstopux*) version_type=nonstopux ;;
17179     *)
17180         if test "$lt_cv_prog_gnu_ld" = yes; then
17181                 version_type=linux
17182         else
17183                 version_type=irix
17184         fi ;;
17185   esac
17186   need_lib_prefix=no
17187   need_version=no
17188   soname_spec='${libname}${release}${shared_ext}$major'
17189   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17190   case $host_os in
17191   irix5* | nonstopux*)
17192     libsuff= shlibsuff=
17193     ;;
17194   *)
17195     case $LD in # libtool.m4 will add one of these switches to LD
17196     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17197       libsuff= shlibsuff= libmagic=32-bit;;
17198     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17199       libsuff=32 shlibsuff=N32 libmagic=N32;;
17200     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17201       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17202     *) libsuff= shlibsuff= libmagic=never-match;;
17203     esac
17204     ;;
17205   esac
17206   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17207   shlibpath_overrides_runpath=no
17208   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17209   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17210   hardcode_into_libs=yes
17211   ;;
17212
17213 # No shared lib support for Linux oldld, aout, or coff.
17214 linux*oldld* | linux*aout* | linux*coff*)
17215   dynamic_linker=no
17216   ;;
17217
17218 # This must be Linux ELF.
17219 linux*)
17220   version_type=linux
17221   need_lib_prefix=no
17222   need_version=no
17223   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17224   soname_spec='${libname}${release}${shared_ext}$major'
17225   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17226   shlibpath_var=LD_LIBRARY_PATH
17227   shlibpath_overrides_runpath=no
17228   # This implies no fast_install, which is unacceptable.
17229   # Some rework will be needed to allow for fast_install
17230   # before this can be enabled.
17231   hardcode_into_libs=yes
17232
17233   # Append ld.so.conf contents to the search path
17234   if test -f /etc/ld.so.conf; then
17235     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' ' '`
17236     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17237   fi
17238
17239   # We used to test for /lib/ld.so.1 and disable shared libraries on
17240   # powerpc, because MkLinux only supported shared libraries with the
17241   # GNU dynamic linker.  Since this was broken with cross compilers,
17242   # most powerpc-linux boxes support dynamic linking these days and
17243   # people can always --disable-shared, the test was removed, and we
17244   # assume the GNU/Linux dynamic linker is in use.
17245   dynamic_linker='GNU/Linux ld.so'
17246   ;;
17247
17248 knetbsd*-gnu)
17249   version_type=linux
17250   need_lib_prefix=no
17251   need_version=no
17252   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17253   soname_spec='${libname}${release}${shared_ext}$major'
17254   shlibpath_var=LD_LIBRARY_PATH
17255   shlibpath_overrides_runpath=no
17256   hardcode_into_libs=yes
17257   dynamic_linker='GNU ld.so'
17258   ;;
17259
17260 netbsd*)
17261   version_type=sunos
17262   need_lib_prefix=no
17263   need_version=no
17264   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17265     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17266     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17267     dynamic_linker='NetBSD (a.out) ld.so'
17268   else
17269     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17270     soname_spec='${libname}${release}${shared_ext}$major'
17271     dynamic_linker='NetBSD ld.elf_so'
17272   fi
17273   shlibpath_var=LD_LIBRARY_PATH
17274   shlibpath_overrides_runpath=yes
17275   hardcode_into_libs=yes
17276   ;;
17277
17278 newsos6)
17279   version_type=linux
17280   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17281   shlibpath_var=LD_LIBRARY_PATH
17282   shlibpath_overrides_runpath=yes
17283   ;;
17284
17285 nto-qnx*)
17286   version_type=linux
17287   need_lib_prefix=no
17288   need_version=no
17289   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17290   soname_spec='${libname}${release}${shared_ext}$major'
17291   shlibpath_var=LD_LIBRARY_PATH
17292   shlibpath_overrides_runpath=yes
17293   ;;
17294
17295 openbsd*)
17296   version_type=sunos
17297   need_lib_prefix=no
17298   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17299   case $host_os in
17300     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17301     *)                         need_version=no  ;;
17302   esac
17303   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17304   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17305   shlibpath_var=LD_LIBRARY_PATH
17306   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17307     case $host_os in
17308       openbsd2.[89] | openbsd2.[89].*)
17309         shlibpath_overrides_runpath=no
17310         ;;
17311       *)
17312         shlibpath_overrides_runpath=yes
17313         ;;
17314       esac
17315   else
17316     shlibpath_overrides_runpath=yes
17317   fi
17318   ;;
17319
17320 os2*)
17321   libname_spec='$name'
17322   shrext_cmds=".dll"
17323   need_lib_prefix=no
17324   library_names_spec='$libname${shared_ext} $libname.a'
17325   dynamic_linker='OS/2 ld.exe'
17326   shlibpath_var=LIBPATH
17327   ;;
17328
17329 osf3* | osf4* | osf5*)
17330   version_type=osf
17331   need_lib_prefix=no
17332   need_version=no
17333   soname_spec='${libname}${release}${shared_ext}$major'
17334   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17335   shlibpath_var=LD_LIBRARY_PATH
17336   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17337   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17338   ;;
17339
17340 sco3.2v5*)
17341   version_type=osf
17342   soname_spec='${libname}${release}${shared_ext}$major'
17343   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17344   shlibpath_var=LD_LIBRARY_PATH
17345   ;;
17346
17347 solaris*)
17348   version_type=linux
17349   need_lib_prefix=no
17350   need_version=no
17351   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17352   soname_spec='${libname}${release}${shared_ext}$major'
17353   shlibpath_var=LD_LIBRARY_PATH
17354   shlibpath_overrides_runpath=yes
17355   hardcode_into_libs=yes
17356   # ldd complains unless libraries are executable
17357   postinstall_cmds='chmod +x $lib'
17358   ;;
17359
17360 sunos4*)
17361   version_type=sunos
17362   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17363   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17364   shlibpath_var=LD_LIBRARY_PATH
17365   shlibpath_overrides_runpath=yes
17366   if test "$with_gnu_ld" = yes; then
17367     need_lib_prefix=no
17368   fi
17369   need_version=yes
17370   ;;
17371
17372 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17373   version_type=linux
17374   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17375   soname_spec='${libname}${release}${shared_ext}$major'
17376   shlibpath_var=LD_LIBRARY_PATH
17377   case $host_vendor in
17378     sni)
17379       shlibpath_overrides_runpath=no
17380       need_lib_prefix=no
17381       export_dynamic_flag_spec='${wl}-Blargedynsym'
17382       runpath_var=LD_RUN_PATH
17383       ;;
17384     siemens)
17385       need_lib_prefix=no
17386       ;;
17387     motorola)
17388       need_lib_prefix=no
17389       need_version=no
17390       shlibpath_overrides_runpath=no
17391       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17392       ;;
17393   esac
17394   ;;
17395
17396 sysv4*MP*)
17397   if test -d /usr/nec ;then
17398     version_type=linux
17399     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17400     soname_spec='$libname${shared_ext}.$major'
17401     shlibpath_var=LD_LIBRARY_PATH
17402   fi
17403   ;;
17404
17405 uts4*)
17406   version_type=linux
17407   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17408   soname_spec='${libname}${release}${shared_ext}$major'
17409   shlibpath_var=LD_LIBRARY_PATH
17410   ;;
17411
17412 *)
17413   dynamic_linker=no
17414   ;;
17415 esac
17416 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17417 echo "${ECHO_T}$dynamic_linker" >&6
17418 test "$dynamic_linker" = no && can_build_shared=no
17419
17420 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17421 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17422 hardcode_action_F77=
17423 if test -n "$hardcode_libdir_flag_spec_F77" || \
17424    test -n "$runpath_var_F77" || \
17425    test "X$hardcode_automatic_F77" = "Xyes" ; then
17426
17427   # We can hardcode non-existant directories.
17428   if test "$hardcode_direct_F77" != no &&
17429      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17430      # have to relink, otherwise we might link with an installed library
17431      # when we should be linking with a yet-to-be-installed one
17432      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
17433      test "$hardcode_minus_L_F77" != no; then
17434     # Linking always hardcodes the temporary library directory.
17435     hardcode_action_F77=relink
17436   else
17437     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17438     hardcode_action_F77=immediate
17439   fi
17440 else
17441   # We cannot hardcode anything, or else we can only hardcode existing
17442   # directories.
17443   hardcode_action_F77=unsupported
17444 fi
17445 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
17446 echo "${ECHO_T}$hardcode_action_F77" >&6
17447
17448 if test "$hardcode_action_F77" = relink; then
17449   # Fast installation is not supported
17450   enable_fast_install=no
17451 elif test "$shlibpath_overrides_runpath" = yes ||
17452      test "$enable_shared" = no; then
17453   # Fast installation is not necessary
17454   enable_fast_install=needless
17455 fi
17456
17457 striplib=
17458 old_striplib=
17459 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17460 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17461 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17462   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17463   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17464   echo "$as_me:$LINENO: result: yes" >&5
17465 echo "${ECHO_T}yes" >&6
17466 else
17467 # FIXME - insert some real tests, host_os isn't really good enough
17468   case $host_os in
17469    darwin*)
17470        if test -n "$STRIP" ; then
17471          striplib="$STRIP -x"
17472          echo "$as_me:$LINENO: result: yes" >&5
17473 echo "${ECHO_T}yes" >&6
17474        else
17475   echo "$as_me:$LINENO: result: no" >&5
17476 echo "${ECHO_T}no" >&6
17477 fi
17478        ;;
17479    *)
17480   echo "$as_me:$LINENO: result: no" >&5
17481 echo "${ECHO_T}no" >&6
17482     ;;
17483   esac
17484 fi
17485
17486
17487
17488 # The else clause should only fire when bootstrapping the
17489 # libtool distribution, otherwise you forgot to ship ltmain.sh
17490 # with your package, and you will get complaints that there are
17491 # no rules to generate ltmain.sh.
17492 if test -f "$ltmain"; then
17493   # See if we are running on zsh, and set the options which allow our commands through
17494   # without removal of \ escapes.
17495   if test -n "${ZSH_VERSION+set}" ; then
17496     setopt NO_GLOB_SUBST
17497   fi
17498   # Now quote all the things that may contain metacharacters while being
17499   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17500   # variables and quote the copies for generation of the libtool script.
17501   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
17502     SED SHELL STRIP \
17503     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17504     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17505     deplibs_check_method reload_flag reload_cmds need_locks \
17506     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17507     lt_cv_sys_global_symbol_to_c_name_address \
17508     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17509     old_postinstall_cmds old_postuninstall_cmds \
17510     compiler_F77 \
17511     CC_F77 \
17512     LD_F77 \
17513     lt_prog_compiler_wl_F77 \
17514     lt_prog_compiler_pic_F77 \
17515     lt_prog_compiler_static_F77 \
17516     lt_prog_compiler_no_builtin_flag_F77 \
17517     export_dynamic_flag_spec_F77 \
17518     thread_safe_flag_spec_F77 \
17519     whole_archive_flag_spec_F77 \
17520     enable_shared_with_static_runtimes_F77 \
17521     old_archive_cmds_F77 \
17522     old_archive_from_new_cmds_F77 \
17523     predep_objects_F77 \
17524     postdep_objects_F77 \
17525     predeps_F77 \
17526     postdeps_F77 \
17527     compiler_lib_search_path_F77 \
17528     archive_cmds_F77 \
17529     archive_expsym_cmds_F77 \
17530     postinstall_cmds_F77 \
17531     postuninstall_cmds_F77 \
17532     old_archive_from_expsyms_cmds_F77 \
17533     allow_undefined_flag_F77 \
17534     no_undefined_flag_F77 \
17535     export_symbols_cmds_F77 \
17536     hardcode_libdir_flag_spec_F77 \
17537     hardcode_libdir_flag_spec_ld_F77 \
17538     hardcode_libdir_separator_F77 \
17539     hardcode_automatic_F77 \
17540     module_cmds_F77 \
17541     module_expsym_cmds_F77 \
17542     lt_cv_prog_compiler_c_o_F77 \
17543     exclude_expsyms_F77 \
17544     include_expsyms_F77; do
17545
17546     case $var in
17547     old_archive_cmds_F77 | \
17548     old_archive_from_new_cmds_F77 | \
17549     archive_cmds_F77 | \
17550     archive_expsym_cmds_F77 | \
17551     module_cmds_F77 | \
17552     module_expsym_cmds_F77 | \
17553     old_archive_from_expsyms_cmds_F77 | \
17554     export_symbols_cmds_F77 | \
17555     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17556     postinstall_cmds | postuninstall_cmds | \
17557     old_postinstall_cmds | old_postuninstall_cmds | \
17558     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17559       # Double-quote double-evaled strings.
17560       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17561       ;;
17562     *)
17563       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17564       ;;
17565     esac
17566   done
17567
17568   case $lt_echo in
17569   *'\$0 --fallback-echo"')
17570     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17571     ;;
17572   esac
17573
17574 cfgfile="$ofile"
17575
17576   cat <<__EOF__ >> "$cfgfile"
17577 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17578
17579 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17580
17581 # Shell to use when invoking shell scripts.
17582 SHELL=$lt_SHELL
17583
17584 # Whether or not to build shared libraries.
17585 build_libtool_libs=$enable_shared
17586
17587 # Whether or not to build static libraries.
17588 build_old_libs=$enable_static
17589
17590 # Whether or not to add -lc for building shared libraries.
17591 build_libtool_need_lc=$archive_cmds_need_lc_F77
17592
17593 # Whether or not to disallow shared libs when runtime libs are static
17594 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
17595
17596 # Whether or not to optimize for fast installation.
17597 fast_install=$enable_fast_install
17598
17599 # The host system.
17600 host_alias=$host_alias
17601 host=$host
17602 host_os=$host_os
17603
17604 # The build system.
17605 build_alias=$build_alias
17606 build=$build
17607 build_os=$build_os
17608
17609 # An echo program that does not interpret backslashes.
17610 echo=$lt_echo
17611
17612 # The archiver.
17613 AR=$lt_AR
17614 AR_FLAGS=$lt_AR_FLAGS
17615
17616 # A C compiler.
17617 LTCC=$lt_LTCC
17618
17619 # A language-specific compiler.
17620 CC=$lt_compiler_F77
17621
17622 # Is the compiler the GNU C compiler?
17623 with_gcc=$GCC_F77
17624
17625 # An ERE matcher.
17626 EGREP=$lt_EGREP
17627
17628 # The linker used to build libraries.
17629 LD=$lt_LD_F77
17630
17631 # Whether we need hard or soft links.
17632 LN_S=$lt_LN_S
17633
17634 # A BSD-compatible nm program.
17635 NM=$lt_NM
17636
17637 # A symbol stripping program
17638 STRIP=$lt_STRIP
17639
17640 # Used to examine libraries when file_magic_cmd begins "file"
17641 MAGIC_CMD=$MAGIC_CMD
17642
17643 # Used on cygwin: DLL creation program.
17644 DLLTOOL="$DLLTOOL"
17645
17646 # Used on cygwin: object dumper.
17647 OBJDUMP="$OBJDUMP"
17648
17649 # Used on cygwin: assembler.
17650 AS="$AS"
17651
17652 # The name of the directory that contains temporary libtool files.
17653 objdir=$objdir
17654
17655 # How to create reloadable object files.
17656 reload_flag=$lt_reload_flag
17657 reload_cmds=$lt_reload_cmds
17658
17659 # How to pass a linker flag through the compiler.
17660 wl=$lt_lt_prog_compiler_wl_F77
17661
17662 # Object file suffix (normally "o").
17663 objext="$ac_objext"
17664
17665 # Old archive suffix (normally "a").
17666 libext="$libext"
17667
17668 # Shared library suffix (normally ".so").
17669 shrext_cmds='$shrext_cmds'
17670
17671 # Executable file suffix (normally "").
17672 exeext="$exeext"
17673
17674 # Additional compiler flags for building library objects.
17675 pic_flag=$lt_lt_prog_compiler_pic_F77
17676 pic_mode=$pic_mode
17677
17678 # What is the maximum length of a command?
17679 max_cmd_len=$lt_cv_sys_max_cmd_len
17680
17681 # Does compiler simultaneously support -c and -o options?
17682 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17683
17684 # Must we lock files when doing compilation?
17685 need_locks=$lt_need_locks
17686
17687 # Do we need the lib prefix for modules?
17688 need_lib_prefix=$need_lib_prefix
17689
17690 # Do we need a version for libraries?
17691 need_version=$need_version
17692
17693 # Whether dlopen is supported.
17694 dlopen_support=$enable_dlopen
17695
17696 # Whether dlopen of programs is supported.
17697 dlopen_self=$enable_dlopen_self
17698
17699 # Whether dlopen of statically linked programs is supported.
17700 dlopen_self_static=$enable_dlopen_self_static
17701
17702 # Compiler flag to prevent dynamic linking.
17703 link_static_flag=$lt_lt_prog_compiler_static_F77
17704
17705 # Compiler flag to turn off builtin functions.
17706 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17707
17708 # Compiler flag to allow reflexive dlopens.
17709 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17710
17711 # Compiler flag to generate shared objects directly from archives.
17712 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17713
17714 # Compiler flag to generate thread-safe objects.
17715 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
17716
17717 # Library versioning type.
17718 version_type=$version_type
17719
17720 # Format of library name prefix.
17721 libname_spec=$lt_libname_spec
17722
17723 # List of archive names.  First name is the real one, the rest are links.
17724 # The last name is the one that the linker finds with -lNAME.
17725 library_names_spec=$lt_library_names_spec
17726
17727 # The coded name of the library, if different from the real name.
17728 soname_spec=$lt_soname_spec
17729
17730 # Commands used to build and install an old-style archive.
17731 RANLIB=$lt_RANLIB
17732 old_archive_cmds=$lt_old_archive_cmds_F77
17733 old_postinstall_cmds=$lt_old_postinstall_cmds
17734 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17735
17736 # Create an old-style archive from a shared archive.
17737 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17738
17739 # Create a temporary old-style archive to link instead of a shared archive.
17740 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17741
17742 # Commands used to build and install a shared archive.
17743 archive_cmds=$lt_archive_cmds_F77
17744 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17745 postinstall_cmds=$lt_postinstall_cmds
17746 postuninstall_cmds=$lt_postuninstall_cmds
17747
17748 # Commands used to build a loadable module (assumed same as above if empty)
17749 module_cmds=$lt_module_cmds_F77
17750 module_expsym_cmds=$lt_module_expsym_cmds_F77
17751
17752 # Commands to strip libraries.
17753 old_striplib=$lt_old_striplib
17754 striplib=$lt_striplib
17755
17756 # Dependencies to place before the objects being linked to create a
17757 # shared library.
17758 predep_objects=$lt_predep_objects_F77
17759
17760 # Dependencies to place after the objects being linked to create a
17761 # shared library.
17762 postdep_objects=$lt_postdep_objects_F77
17763
17764 # Dependencies to place before the objects being linked to create a
17765 # shared library.
17766 predeps=$lt_predeps_F77
17767
17768 # Dependencies to place after the objects being linked to create a
17769 # shared library.
17770 postdeps=$lt_postdeps_F77
17771
17772 # The library search path used internally by the compiler when linking
17773 # a shared library.
17774 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17775
17776 # Method to check whether dependent libraries are shared objects.
17777 deplibs_check_method=$lt_deplibs_check_method
17778
17779 # Command to use when deplibs_check_method == file_magic.
17780 file_magic_cmd=$lt_file_magic_cmd
17781
17782 # Flag that allows shared libraries with undefined symbols to be built.
17783 allow_undefined_flag=$lt_allow_undefined_flag_F77
17784
17785 # Flag that forces no undefined symbols.
17786 no_undefined_flag=$lt_no_undefined_flag_F77
17787
17788 # Commands used to finish a libtool library installation in a directory.
17789 finish_cmds=$lt_finish_cmds
17790
17791 # Same as above, but a single script fragment to be evaled but not shown.
17792 finish_eval=$lt_finish_eval
17793
17794 # Take the output of nm and produce a listing of raw symbols and C names.
17795 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17796
17797 # Transform the output of nm in a proper C declaration
17798 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17799
17800 # Transform the output of nm in a C name address pair
17801 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17802
17803 # This is the shared library runtime path variable.
17804 runpath_var=$runpath_var
17805
17806 # This is the shared library path variable.
17807 shlibpath_var=$shlibpath_var
17808
17809 # Is shlibpath searched before the hard-coded library search path?
17810 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17811
17812 # How to hardcode a shared library path into an executable.
17813 hardcode_action=$hardcode_action_F77
17814
17815 # Whether we should hardcode library paths into libraries.
17816 hardcode_into_libs=$hardcode_into_libs
17817
17818 # Flag to hardcode \$libdir into a binary during linking.
17819 # This must work even if \$libdir does not exist.
17820 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17821
17822 # If ld is used when linking, flag to hardcode \$libdir into
17823 # a binary during linking. This must work even if \$libdir does
17824 # not exist.
17825 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17826
17827 # Whether we need a single -rpath flag with a separated argument.
17828 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17829
17830 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17831 # resulting binary.
17832 hardcode_direct=$hardcode_direct_F77
17833
17834 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17835 # resulting binary.
17836 hardcode_minus_L=$hardcode_minus_L_F77
17837
17838 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17839 # the resulting binary.
17840 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17841
17842 # Set to yes if building a shared library automatically hardcodes DIR into the library
17843 # and all subsequent libraries and executables linked against it.
17844 hardcode_automatic=$hardcode_automatic_F77
17845
17846 # Variables whose values should be saved in libtool wrapper scripts and
17847 # restored at relink time.
17848 variables_saved_for_relink="$variables_saved_for_relink"
17849
17850 # Whether libtool must link a program against all its dependency libraries.
17851 link_all_deplibs=$link_all_deplibs_F77
17852
17853 # Compile-time system search path for libraries
17854 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17855
17856 # Run-time system search path for libraries
17857 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17858
17859 # Fix the shell variable \$srcfile for the compiler.
17860 fix_srcfile_path="$fix_srcfile_path_F77"
17861
17862 # Set to yes if exported symbols are required.
17863 always_export_symbols=$always_export_symbols_F77
17864
17865 # The commands to list exported symbols.
17866 export_symbols_cmds=$lt_export_symbols_cmds_F77
17867
17868 # The commands to extract the exported symbol list from a shared archive.
17869 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17870
17871 # Symbols that should not be listed in the preloaded symbols.
17872 exclude_expsyms=$lt_exclude_expsyms_F77
17873
17874 # Symbols that must always be exported.
17875 include_expsyms=$lt_include_expsyms_F77
17876
17877 # ### END LIBTOOL TAG CONFIG: $tagname
17878
17879 __EOF__
17880
17881
17882 else
17883   # If there is no Makefile yet, we rely on a make rule to execute
17884   # `config.status --recheck' to rerun these tests and create the
17885   # libtool script then.
17886   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17887   if test -f "$ltmain_in"; then
17888     test -f Makefile && make "$ltmain"
17889   fi
17890 fi
17891
17892
17893 ac_ext=c
17894 ac_cpp='$CPP $CPPFLAGS'
17895 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17896 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17897 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17898
17899 CC="$lt_save_CC"
17900
17901         else
17902           tagname=""
17903         fi
17904         ;;
17905
17906       GCJ)
17907         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17908
17909
17910
17911 # Source file extension for Java test sources.
17912 ac_ext=java
17913
17914 # Object file extension for compiled Java test sources.
17915 objext=o
17916 objext_GCJ=$objext
17917
17918 # Code to be used in simple compile tests
17919 lt_simple_compile_test_code="class foo {}\n"
17920
17921 # Code to be used in simple link tests
17922 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
17923
17924 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17925
17926 # If no C compiler was specified, use CC.
17927 LTCC=${LTCC-"$CC"}
17928
17929 # Allow CC to be a program name with arguments.
17930 compiler=$CC
17931
17932
17933 # save warnings/boilerplate of simple test code
17934 ac_outfile=conftest.$ac_objext
17935 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17936 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
17937 _lt_compiler_boilerplate=`cat conftest.err`
17938 $rm conftest*
17939
17940 ac_outfile=conftest.$ac_objext
17941 printf "$lt_simple_link_test_code" >conftest.$ac_ext
17942 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
17943 _lt_linker_boilerplate=`cat conftest.err`
17944 $rm conftest*
17945
17946
17947 # Allow CC to be a program name with arguments.
17948 lt_save_CC="$CC"
17949 CC=${GCJ-"gcj"}
17950 compiler=$CC
17951 compiler_GCJ=$CC
17952 for cc_temp in $compiler""; do
17953   case $cc_temp in
17954     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17955     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17956     \-*) ;;
17957     *) break;;
17958   esac
17959 done
17960 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17961
17962
17963 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17964 archive_cmds_need_lc_GCJ=no
17965
17966 old_archive_cmds_GCJ=$old_archive_cmds
17967
17968
17969 lt_prog_compiler_no_builtin_flag_GCJ=
17970
17971 if test "$GCC" = yes; then
17972   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17973
17974
17975 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17976 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
17977 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17978   echo $ECHO_N "(cached) $ECHO_C" >&6
17979 else
17980   lt_cv_prog_compiler_rtti_exceptions=no
17981   ac_outfile=conftest.$ac_objext
17982    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17983    lt_compiler_flag="-fno-rtti -fno-exceptions"
17984    # Insert the option either (1) after the last *FLAGS variable, or
17985    # (2) before a word containing "conftest.", or (3) at the end.
17986    # Note that $ac_compile itself does not contain backslashes and begins
17987    # with a dollar sign (not a hyphen), so the echo should work correctly.
17988    # The option is referenced via a variable to avoid confusing sed.
17989    lt_compile=`echo "$ac_compile" | $SED \
17990    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17991    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17992    -e 's:$: $lt_compiler_flag:'`
17993    (eval echo "\"\$as_me:17993: $lt_compile\"" >&5)
17994    (eval "$lt_compile" 2>conftest.err)
17995    ac_status=$?
17996    cat conftest.err >&5
17997    echo "$as_me:17997: \$? = $ac_status" >&5
17998    if (exit $ac_status) && test -s "$ac_outfile"; then
17999      # The compiler can only warn and ignore the option if not recognized
18000      # So say no if there are warnings other than the usual output.
18001      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
18002      $SED '/^$/d' conftest.err >conftest.er2
18003      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
18004        lt_cv_prog_compiler_rtti_exceptions=yes
18005      fi
18006    fi
18007    $rm conftest*
18008
18009 fi
18010 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
18011 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
18012
18013 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
18014     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
18015 else
18016     :
18017 fi
18018
18019 fi
18020
18021 lt_prog_compiler_wl_GCJ=
18022 lt_prog_compiler_pic_GCJ=
18023 lt_prog_compiler_static_GCJ=
18024
18025 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18026 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
18027
18028   if test "$GCC" = yes; then
18029     lt_prog_compiler_wl_GCJ='-Wl,'
18030     lt_prog_compiler_static_GCJ='-static'
18031
18032     case $host_os in
18033       aix*)
18034       # All AIX code is PIC.
18035       if test "$host_cpu" = ia64; then
18036         # AIX 5 now supports IA64 processor
18037         lt_prog_compiler_static_GCJ='-Bstatic'
18038       fi
18039       ;;
18040
18041     amigaos*)
18042       # FIXME: we need at least 68020 code to build shared libraries, but
18043       # adding the `-m68020' flag to GCC prevents building anything better,
18044       # like `-m68040'.
18045       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
18046       ;;
18047
18048     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18049       # PIC is the default for these OSes.
18050       ;;
18051
18052     mingw* | pw32* | os2*)
18053       # This hack is so that the source file can tell whether it is being
18054       # built for inclusion in a dll (and should export symbols for example).
18055       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18056       ;;
18057
18058     darwin* | rhapsody*)
18059       # PIC is the default on this platform
18060       # Common symbols not allowed in MH_DYLIB files
18061       lt_prog_compiler_pic_GCJ='-fno-common'
18062       ;;
18063
18064     msdosdjgpp*)
18065       # Just because we use GCC doesn't mean we suddenly get shared libraries
18066       # on systems that don't support them.
18067       lt_prog_compiler_can_build_shared_GCJ=no
18068       enable_shared=no
18069       ;;
18070
18071     sysv4*MP*)
18072       if test -d /usr/nec; then
18073         lt_prog_compiler_pic_GCJ=-Kconform_pic
18074       fi
18075       ;;
18076
18077     hpux*)
18078       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18079       # not for PA HP-UX.
18080       case "$host_cpu" in
18081       hppa*64*|ia64*)
18082         # +Z the default
18083         ;;
18084       *)
18085         lt_prog_compiler_pic_GCJ='-fPIC'
18086         ;;
18087       esac
18088       ;;
18089
18090     *)
18091       lt_prog_compiler_pic_GCJ='-fPIC'
18092       ;;
18093     esac
18094   else
18095     # PORTME Check for flag to pass linker flags through the system compiler.
18096     case $host_os in
18097     aix*)
18098       lt_prog_compiler_wl_GCJ='-Wl,'
18099       if test "$host_cpu" = ia64; then
18100         # AIX 5 now supports IA64 processor
18101         lt_prog_compiler_static_GCJ='-Bstatic'
18102       else
18103         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
18104       fi
18105       ;;
18106       darwin*)
18107         # PIC is the default on this platform
18108         # Common symbols not allowed in MH_DYLIB files
18109        case $cc_basename in
18110          xlc*)
18111          lt_prog_compiler_pic_GCJ='-qnocommon'
18112          lt_prog_compiler_wl_GCJ='-Wl,'
18113          ;;
18114        esac
18115        ;;
18116
18117     mingw* | pw32* | os2*)
18118       # This hack is so that the source file can tell whether it is being
18119       # built for inclusion in a dll (and should export symbols for example).
18120       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18121       ;;
18122
18123     hpux9* | hpux10* | hpux11*)
18124       lt_prog_compiler_wl_GCJ='-Wl,'
18125       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18126       # not for PA HP-UX.
18127       case "$host_cpu" in
18128       hppa*64*|ia64*)
18129         # +Z the default
18130         ;;
18131       *)
18132         lt_prog_compiler_pic_GCJ='+Z'
18133         ;;
18134       esac
18135       # Is there a better lt_prog_compiler_static that works with the bundled CC?
18136       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
18137       ;;
18138
18139     irix5* | irix6* | nonstopux*)
18140       lt_prog_compiler_wl_GCJ='-Wl,'
18141       # PIC (with -KPIC) is the default.
18142       lt_prog_compiler_static_GCJ='-non_shared'
18143       ;;
18144
18145     newsos6)
18146       lt_prog_compiler_pic_GCJ='-KPIC'
18147       lt_prog_compiler_static_GCJ='-Bstatic'
18148       ;;
18149
18150     linux*)
18151       case $cc_basename in
18152       icc* | ecc*)
18153         lt_prog_compiler_wl_GCJ='-Wl,'
18154         lt_prog_compiler_pic_GCJ='-KPIC'
18155         lt_prog_compiler_static_GCJ='-static'
18156         ;;
18157       pgcc* | pgf77* | pgf90*)
18158         # Portland Group compilers (*not* the Pentium gcc compiler,
18159         # which looks to be a dead project)
18160         lt_prog_compiler_wl_GCJ='-Wl,'
18161         lt_prog_compiler_pic_GCJ='-fpic'
18162         lt_prog_compiler_static_GCJ='-static'
18163         ;;
18164       ccc*)
18165         lt_prog_compiler_wl_GCJ='-Wl,'
18166         # All Alpha code is PIC.
18167         lt_prog_compiler_static_GCJ='-non_shared'
18168         ;;
18169       esac
18170       ;;
18171
18172     osf3* | osf4* | osf5*)
18173       lt_prog_compiler_wl_GCJ='-Wl,'
18174       # All OSF/1 code is PIC.
18175       lt_prog_compiler_static_GCJ='-non_shared'
18176       ;;
18177
18178     sco3.2v5*)
18179       lt_prog_compiler_pic_GCJ='-Kpic'
18180       lt_prog_compiler_static_GCJ='-dn'
18181       ;;
18182
18183     solaris*)
18184       lt_prog_compiler_pic_GCJ='-KPIC'
18185       lt_prog_compiler_static_GCJ='-Bstatic'
18186       case $cc_basename in
18187       f77* | f90* | f95*)
18188         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
18189       *)
18190         lt_prog_compiler_wl_GCJ='-Wl,';;
18191       esac
18192       ;;
18193
18194     sunos4*)
18195       lt_prog_compiler_wl_GCJ='-Qoption ld '
18196       lt_prog_compiler_pic_GCJ='-PIC'
18197       lt_prog_compiler_static_GCJ='-Bstatic'
18198       ;;
18199
18200     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18201       lt_prog_compiler_wl_GCJ='-Wl,'
18202       lt_prog_compiler_pic_GCJ='-KPIC'
18203       lt_prog_compiler_static_GCJ='-Bstatic'
18204       ;;
18205
18206     sysv4*MP*)
18207       if test -d /usr/nec ;then
18208         lt_prog_compiler_pic_GCJ='-Kconform_pic'
18209         lt_prog_compiler_static_GCJ='-Bstatic'
18210       fi
18211       ;;
18212
18213     unicos*)
18214       lt_prog_compiler_wl_GCJ='-Wl,'
18215       lt_prog_compiler_can_build_shared_GCJ=no
18216       ;;
18217
18218     uts4*)
18219       lt_prog_compiler_pic_GCJ='-pic'
18220       lt_prog_compiler_static_GCJ='-Bstatic'
18221       ;;
18222
18223     *)
18224       lt_prog_compiler_can_build_shared_GCJ=no
18225       ;;
18226     esac
18227   fi
18228
18229 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
18230 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
18231
18232 #
18233 # Check to make sure the PIC flag actually works.
18234 #
18235 if test -n "$lt_prog_compiler_pic_GCJ"; then
18236
18237 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
18238 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
18239 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
18240   echo $ECHO_N "(cached) $ECHO_C" >&6
18241 else
18242   lt_prog_compiler_pic_works_GCJ=no
18243   ac_outfile=conftest.$ac_objext
18244    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18245    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
18246    # Insert the option either (1) after the last *FLAGS variable, or
18247    # (2) before a word containing "conftest.", or (3) at the end.
18248    # Note that $ac_compile itself does not contain backslashes and begins
18249    # with a dollar sign (not a hyphen), so the echo should work correctly.
18250    # The option is referenced via a variable to avoid confusing sed.
18251    lt_compile=`echo "$ac_compile" | $SED \
18252    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18253    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18254    -e 's:$: $lt_compiler_flag:'`
18255    (eval echo "\"\$as_me:18255: $lt_compile\"" >&5)
18256    (eval "$lt_compile" 2>conftest.err)
18257    ac_status=$?
18258    cat conftest.err >&5
18259    echo "$as_me:18259: \$? = $ac_status" >&5
18260    if (exit $ac_status) && test -s "$ac_outfile"; then
18261      # The compiler can only warn and ignore the option if not recognized
18262      # So say no if there are warnings other than the usual output.
18263      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
18264      $SED '/^$/d' conftest.err >conftest.er2
18265      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
18266        lt_prog_compiler_pic_works_GCJ=yes
18267      fi
18268    fi
18269    $rm conftest*
18270
18271 fi
18272 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
18273 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
18274
18275 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
18276     case $lt_prog_compiler_pic_GCJ in
18277      "" | " "*) ;;
18278      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
18279      esac
18280 else
18281     lt_prog_compiler_pic_GCJ=
18282      lt_prog_compiler_can_build_shared_GCJ=no
18283 fi
18284
18285 fi
18286 case "$host_os" in
18287   # For platforms which do not support PIC, -DPIC is meaningless:
18288   *djgpp*)
18289     lt_prog_compiler_pic_GCJ=
18290     ;;
18291   *)
18292     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
18293     ;;
18294 esac
18295
18296 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18297 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
18298 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
18299   echo $ECHO_N "(cached) $ECHO_C" >&6
18300 else
18301   lt_cv_prog_compiler_c_o_GCJ=no
18302    $rm -r conftest 2>/dev/null
18303    mkdir conftest
18304    cd conftest
18305    mkdir out
18306    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18307
18308    lt_compiler_flag="-o out/conftest2.$ac_objext"
18309    # Insert the option either (1) after the last *FLAGS variable, or
18310    # (2) before a word containing "conftest.", or (3) at the end.
18311    # Note that $ac_compile itself does not contain backslashes and begins
18312    # with a dollar sign (not a hyphen), so the echo should work correctly.
18313    lt_compile=`echo "$ac_compile" | $SED \
18314    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18315    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18316    -e 's:$: $lt_compiler_flag:'`
18317    (eval echo "\"\$as_me:18317: $lt_compile\"" >&5)
18318    (eval "$lt_compile" 2>out/conftest.err)
18319    ac_status=$?
18320    cat out/conftest.err >&5
18321    echo "$as_me:18321: \$? = $ac_status" >&5
18322    if (exit $ac_status) && test -s out/conftest2.$ac_objext
18323    then
18324      # The compiler can only warn and ignore the option if not recognized
18325      # So say no if there are warnings
18326      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
18327      $SED '/^$/d' out/conftest.err >out/conftest.er2
18328      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18329        lt_cv_prog_compiler_c_o_GCJ=yes
18330      fi
18331    fi
18332    chmod u+w .
18333    $rm conftest*
18334    # SGI C++ compiler will create directory out/ii_files/ for
18335    # template instantiation
18336    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18337    $rm out/* && rmdir out
18338    cd ..
18339    rmdir conftest
18340    $rm conftest*
18341
18342 fi
18343 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
18344 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
18345
18346
18347 hard_links="nottested"
18348 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
18349   # do not overwrite the value of need_locks provided by the user
18350   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18351 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
18352   hard_links=yes
18353   $rm conftest*
18354   ln conftest.a conftest.b 2>/dev/null && hard_links=no
18355   touch conftest.a
18356   ln conftest.a conftest.b 2>&5 || hard_links=no
18357   ln conftest.a conftest.b 2>/dev/null && hard_links=no
18358   echo "$as_me:$LINENO: result: $hard_links" >&5
18359 echo "${ECHO_T}$hard_links" >&6
18360   if test "$hard_links" = no; then
18361     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18362 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18363     need_locks=warn
18364   fi
18365 else
18366   need_locks=no
18367 fi
18368
18369 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18370 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
18371
18372   runpath_var=
18373   allow_undefined_flag_GCJ=
18374   enable_shared_with_static_runtimes_GCJ=no
18375   archive_cmds_GCJ=
18376   archive_expsym_cmds_GCJ=
18377   old_archive_From_new_cmds_GCJ=
18378   old_archive_from_expsyms_cmds_GCJ=
18379   export_dynamic_flag_spec_GCJ=
18380   whole_archive_flag_spec_GCJ=
18381   thread_safe_flag_spec_GCJ=
18382   hardcode_libdir_flag_spec_GCJ=
18383   hardcode_libdir_flag_spec_ld_GCJ=
18384   hardcode_libdir_separator_GCJ=
18385   hardcode_direct_GCJ=no
18386   hardcode_minus_L_GCJ=no
18387   hardcode_shlibpath_var_GCJ=unsupported
18388   link_all_deplibs_GCJ=unknown
18389   hardcode_automatic_GCJ=no
18390   module_cmds_GCJ=
18391   module_expsym_cmds_GCJ=
18392   always_export_symbols_GCJ=no
18393   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18394   # include_expsyms should be a list of space-separated symbols to be *always*
18395   # included in the symbol list
18396   include_expsyms_GCJ=
18397   # exclude_expsyms can be an extended regexp of symbols to exclude
18398   # it will be wrapped by ` (' and `)$', so one must not match beginning or
18399   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
18400   # as well as any symbol that contains `d'.
18401   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
18402   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
18403   # platforms (ab)use it in PIC code, but their linkers get confused if
18404   # the symbol is explicitly referenced.  Since portable code cannot
18405   # rely on this symbol name, it's probably fine to never include it in
18406   # preloaded symbol tables.
18407   extract_expsyms_cmds=
18408   # Just being paranoid about ensuring that cc_basename is set.
18409   for cc_temp in $compiler""; do
18410   case $cc_temp in
18411     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18412     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18413     \-*) ;;
18414     *) break;;
18415   esac
18416 done
18417 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18418
18419   case $host_os in
18420   cygwin* | mingw* | pw32*)
18421     # FIXME: the MSVC++ port hasn't been tested in a loooong time
18422     # When not using gcc, we currently assume that we are using
18423     # Microsoft Visual C++.
18424     if test "$GCC" != yes; then
18425       with_gnu_ld=no
18426     fi
18427     ;;
18428   openbsd*)
18429     with_gnu_ld=no
18430     ;;
18431   esac
18432
18433   ld_shlibs_GCJ=yes
18434   if test "$with_gnu_ld" = yes; then
18435     # If archive_cmds runs LD, not CC, wlarc should be empty
18436     wlarc='${wl}'
18437
18438     # Set some defaults for GNU ld with shared library support. These
18439     # are reset later if shared libraries are not supported. Putting them
18440     # here allows them to be overridden if necessary.
18441     runpath_var=LD_RUN_PATH
18442     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
18443     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
18444     # ancient GNU ld didn't support --whole-archive et. al.
18445     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
18446         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18447       else
18448         whole_archive_flag_spec_GCJ=
18449     fi
18450     supports_anon_versioning=no
18451     case `$LD -v 2>/dev/null` in
18452       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18453       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18454       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18455       *\ 2.11.*) ;; # other 2.11 versions
18456       *) supports_anon_versioning=yes ;;
18457     esac
18458
18459     # See if GNU ld supports shared libraries.
18460     case $host_os in
18461     aix3* | aix4* | aix5*)
18462       # On AIX/PPC, the GNU linker is very broken
18463       if test "$host_cpu" != ia64; then
18464         ld_shlibs_GCJ=no
18465         cat <<EOF 1>&2
18466
18467 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
18468 *** to be unable to reliably create shared libraries on AIX.
18469 *** Therefore, libtool is disabling shared libraries support.  If you
18470 *** really care for shared libraries, you may want to modify your PATH
18471 *** so that a non-GNU linker is found, and then restart.
18472
18473 EOF
18474       fi
18475       ;;
18476
18477     amigaos*)
18478       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)'
18479       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18480       hardcode_minus_L_GCJ=yes
18481
18482       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
18483       # that the semantics of dynamic libraries on AmigaOS, at least up
18484       # to version 4, is to share data among multiple programs linked
18485       # with the same dynamic library.  Since this doesn't match the
18486       # behavior of shared libraries on other platforms, we can't use
18487       # them.
18488       ld_shlibs_GCJ=no
18489       ;;
18490
18491     beos*)
18492       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18493         allow_undefined_flag_GCJ=unsupported
18494         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18495         # support --undefined.  This deserves some investigation.  FIXME
18496         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18497       else
18498         ld_shlibs_GCJ=no
18499       fi
18500       ;;
18501
18502     cygwin* | mingw* | pw32*)
18503       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
18504       # as there is no search path for DLLs.
18505       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18506       allow_undefined_flag_GCJ=unsupported
18507       always_export_symbols_GCJ=no
18508       enable_shared_with_static_runtimes_GCJ=yes
18509       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
18510
18511       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18512         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
18513         # If the export-symbols file already is a .def file (1st line
18514         # is EXPORTS), use it as is; otherwise, prepend...
18515         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18516           cp $export_symbols $output_objdir/$soname.def;
18517         else
18518           echo EXPORTS > $output_objdir/$soname.def;
18519           cat $export_symbols >> $output_objdir/$soname.def;
18520         fi~
18521         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
18522       else
18523         ld_shlibs_GCJ=no
18524       fi
18525       ;;
18526
18527     linux*)
18528       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18529         tmp_addflag=
18530         case $cc_basename,$host_cpu in
18531         pgcc*)                          # Portland Group C compiler
18532           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'
18533           tmp_addflag=' $pic_flag'
18534           ;;
18535         pgf77* | pgf90* )                       # Portland Group f77 and f90 compilers
18536           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'
18537           tmp_addflag=' $pic_flag -Mnomain' ;;
18538         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
18539           tmp_addflag=' -i_dynamic' ;;
18540         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
18541           tmp_addflag=' -i_dynamic -nofor_main' ;;
18542         ifc* | ifort*)                  # Intel Fortran compiler
18543           tmp_addflag=' -nofor_main' ;;
18544         esac
18545         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18546
18547         if test $supports_anon_versioning = yes; then
18548           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
18549   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18550   $echo "local: *; };" >> $output_objdir/$libname.ver~
18551           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18552         fi
18553       else
18554         ld_shlibs_GCJ=no
18555       fi
18556       ;;
18557
18558     netbsd*)
18559       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18560         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18561         wlarc=
18562       else
18563         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18564         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18565       fi
18566       ;;
18567
18568     solaris* | sysv5*)
18569       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
18570         ld_shlibs_GCJ=no
18571         cat <<EOF 1>&2
18572
18573 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
18574 *** create shared libraries on Solaris systems.  Therefore, libtool
18575 *** is disabling shared libraries support.  We urge you to upgrade GNU
18576 *** binutils to release 2.9.1 or newer.  Another option is to modify
18577 *** your PATH or compiler configuration so that the native linker is
18578 *** used, and then restart.
18579
18580 EOF
18581       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18582         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18583         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18584       else
18585         ld_shlibs_GCJ=no
18586       fi
18587       ;;
18588
18589     sunos4*)
18590       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18591       wlarc=
18592       hardcode_direct_GCJ=yes
18593       hardcode_shlibpath_var_GCJ=no
18594       ;;
18595
18596     *)
18597       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18598         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18599         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18600       else
18601         ld_shlibs_GCJ=no
18602       fi
18603       ;;
18604     esac
18605
18606     if test "$ld_shlibs_GCJ" = no; then
18607       runpath_var=
18608       hardcode_libdir_flag_spec_GCJ=
18609       export_dynamic_flag_spec_GCJ=
18610       whole_archive_flag_spec_GCJ=
18611     fi
18612   else
18613     # PORTME fill in a description of your system's linker (not GNU ld)
18614     case $host_os in
18615     aix3*)
18616       allow_undefined_flag_GCJ=unsupported
18617       always_export_symbols_GCJ=yes
18618       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'
18619       # Note: this linker hardcodes the directories in LIBPATH if there
18620       # are no directories specified by -L.
18621       hardcode_minus_L_GCJ=yes
18622       if test "$GCC" = yes && test -z "$link_static_flag"; then
18623         # Neither direct hardcoding nor static linking is supported with a
18624         # broken collect2.
18625         hardcode_direct_GCJ=unsupported
18626       fi
18627       ;;
18628
18629     aix4* | aix5*)
18630       if test "$host_cpu" = ia64; then
18631         # On IA64, the linker does run time linking by default, so we don't
18632         # have to do anything special.
18633         aix_use_runtimelinking=no
18634         exp_sym_flag='-Bexport'
18635         no_entry_flag=""
18636       else
18637         # If we're using GNU nm, then we don't want the "-C" option.
18638         # -C means demangle to AIX nm, but means don't demangle with GNU nm
18639         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18640           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'
18641         else
18642           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'
18643         fi
18644         aix_use_runtimelinking=no
18645
18646         # Test if we are trying to use run time linking or normal
18647         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18648         # need to do runtime linking.
18649         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18650           for ld_flag in $LDFLAGS; do
18651           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18652             aix_use_runtimelinking=yes
18653             break
18654           fi
18655           done
18656         esac
18657
18658         exp_sym_flag='-bexport'
18659         no_entry_flag='-bnoentry'
18660       fi
18661
18662       # When large executables or shared objects are built, AIX ld can
18663       # have problems creating the table of contents.  If linking a library
18664       # or program results in "error TOC overflow" add -mminimal-toc to
18665       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18666       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18667
18668       archive_cmds_GCJ=''
18669       hardcode_direct_GCJ=yes
18670       hardcode_libdir_separator_GCJ=':'
18671       link_all_deplibs_GCJ=yes
18672
18673       if test "$GCC" = yes; then
18674         case $host_os in aix4.[012]|aix4.[012].*)
18675         # We only want to do this on AIX 4.2 and lower, the check
18676         # below for broken collect2 doesn't work under 4.3+
18677           collect2name=`${CC} -print-prog-name=collect2`
18678           if test -f "$collect2name" && \
18679            strings "$collect2name" | grep resolve_lib_name >/dev/null
18680           then
18681           # We have reworked collect2
18682           hardcode_direct_GCJ=yes
18683           else
18684           # We have old collect2
18685           hardcode_direct_GCJ=unsupported
18686           # It fails to find uninstalled libraries when the uninstalled
18687           # path is not listed in the libpath.  Setting hardcode_minus_L
18688           # to unsupported forces relinking
18689           hardcode_minus_L_GCJ=yes
18690           hardcode_libdir_flag_spec_GCJ='-L$libdir'
18691           hardcode_libdir_separator_GCJ=
18692           fi
18693         esac
18694         shared_flag='-shared'
18695         if test "$aix_use_runtimelinking" = yes; then
18696           shared_flag="$shared_flag "'${wl}-G'
18697         fi
18698       else
18699         # not using gcc
18700         if test "$host_cpu" = ia64; then
18701         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18702         # chokes on -Wl,-G. The following line is correct:
18703           shared_flag='-G'
18704         else
18705         if test "$aix_use_runtimelinking" = yes; then
18706             shared_flag='${wl}-G'
18707           else
18708             shared_flag='${wl}-bM:SRE'
18709         fi
18710         fi
18711       fi
18712
18713       # It seems that -bexpall does not export symbols beginning with
18714       # underscore (_), so it is better to generate a list of symbols to export.
18715       always_export_symbols_GCJ=yes
18716       if test "$aix_use_runtimelinking" = yes; then
18717         # Warning - without using the other runtime loading flags (-brtl),
18718         # -berok will link without error, but may produce a broken library.
18719         allow_undefined_flag_GCJ='-berok'
18720        # Determine the default libpath from the value encoded in an empty executable.
18721        cat >conftest.$ac_ext <<_ACEOF
18722 /* confdefs.h.  */
18723 _ACEOF
18724 cat confdefs.h >>conftest.$ac_ext
18725 cat >>conftest.$ac_ext <<_ACEOF
18726 /* end confdefs.h.  */
18727
18728 int
18729 main ()
18730 {
18731
18732   ;
18733   return 0;
18734 }
18735 _ACEOF
18736 rm -f conftest.$ac_objext conftest$ac_exeext
18737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18738   (eval $ac_link) 2>conftest.er1
18739   ac_status=$?
18740   grep -v '^ *+' conftest.er1 >conftest.err
18741   rm -f conftest.er1
18742   cat conftest.err >&5
18743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18744   (exit $ac_status); } &&
18745          { ac_try='test -z "$ac_c_werror_flag"
18746                          || test ! -s conftest.err'
18747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18748   (eval $ac_try) 2>&5
18749   ac_status=$?
18750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18751   (exit $ac_status); }; } &&
18752          { ac_try='test -s conftest$ac_exeext'
18753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18754   (eval $ac_try) 2>&5
18755   ac_status=$?
18756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18757   (exit $ac_status); }; }; then
18758
18759 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18760 }'`
18761 # Check for a 64-bit object if we didn't find anything.
18762 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; }
18763 }'`; fi
18764 else
18765   echo "$as_me: failed program was:" >&5
18766 sed 's/^/| /' conftest.$ac_ext >&5
18767
18768 fi
18769 rm -f conftest.err conftest.$ac_objext \
18770       conftest$ac_exeext conftest.$ac_ext
18771 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18772
18773        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18774         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"
18775        else
18776         if test "$host_cpu" = ia64; then
18777           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18778           allow_undefined_flag_GCJ="-z nodefs"
18779           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"
18780         else
18781          # Determine the default libpath from the value encoded in an empty executable.
18782          cat >conftest.$ac_ext <<_ACEOF
18783 /* confdefs.h.  */
18784 _ACEOF
18785 cat confdefs.h >>conftest.$ac_ext
18786 cat >>conftest.$ac_ext <<_ACEOF
18787 /* end confdefs.h.  */
18788
18789 int
18790 main ()
18791 {
18792
18793   ;
18794   return 0;
18795 }
18796 _ACEOF
18797 rm -f conftest.$ac_objext conftest$ac_exeext
18798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18799   (eval $ac_link) 2>conftest.er1
18800   ac_status=$?
18801   grep -v '^ *+' conftest.er1 >conftest.err
18802   rm -f conftest.er1
18803   cat conftest.err >&5
18804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18805   (exit $ac_status); } &&
18806          { ac_try='test -z "$ac_c_werror_flag"
18807                          || test ! -s conftest.err'
18808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18809   (eval $ac_try) 2>&5
18810   ac_status=$?
18811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18812   (exit $ac_status); }; } &&
18813          { ac_try='test -s conftest$ac_exeext'
18814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18815   (eval $ac_try) 2>&5
18816   ac_status=$?
18817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18818   (exit $ac_status); }; }; then
18819
18820 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18821 }'`
18822 # Check for a 64-bit object if we didn't find anything.
18823 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; }
18824 }'`; fi
18825 else
18826   echo "$as_me: failed program was:" >&5
18827 sed 's/^/| /' conftest.$ac_ext >&5
18828
18829 fi
18830 rm -f conftest.err conftest.$ac_objext \
18831       conftest$ac_exeext conftest.$ac_ext
18832 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18833
18834          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18835           # Warning - without using the other run time loading flags,
18836           # -berok will link without error, but may produce a broken library.
18837           no_undefined_flag_GCJ=' ${wl}-bernotok'
18838           allow_undefined_flag_GCJ=' ${wl}-berok'
18839           # -bexpall does not export symbols beginning with underscore (_)
18840           always_export_symbols_GCJ=yes
18841           # Exported symbols can be pulled into shared objects from archives
18842           whole_archive_flag_spec_GCJ=' '
18843           archive_cmds_need_lc_GCJ=yes
18844           # This is similar to how AIX traditionally builds it's shared libraries.
18845           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'
18846         fi
18847       fi
18848       ;;
18849
18850     amigaos*)
18851       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)'
18852       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18853       hardcode_minus_L_GCJ=yes
18854       # see comment about different semantics on the GNU ld section
18855       ld_shlibs_GCJ=no
18856       ;;
18857
18858     bsdi[45]*)
18859       export_dynamic_flag_spec_GCJ=-rdynamic
18860       ;;
18861
18862     cygwin* | mingw* | pw32*)
18863       # When not using gcc, we currently assume that we are using
18864       # Microsoft Visual C++.
18865       # hardcode_libdir_flag_spec is actually meaningless, as there is
18866       # no search path for DLLs.
18867       hardcode_libdir_flag_spec_GCJ=' '
18868       allow_undefined_flag_GCJ=unsupported
18869       # Tell ltmain to make .lib files, not .a files.
18870       libext=lib
18871       # Tell ltmain to make .dll files, not .so files.
18872       shrext_cmds=".dll"
18873       # FIXME: Setting linknames here is a bad hack.
18874       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18875       # The linker will automatically build a .lib file if we build a DLL.
18876       old_archive_From_new_cmds_GCJ='true'
18877       # FIXME: Should let the user specify the lib program.
18878       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
18879       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18880       enable_shared_with_static_runtimes_GCJ=yes
18881       ;;
18882
18883     darwin* | rhapsody*)
18884       case "$host_os" in
18885         rhapsody* | darwin1.[012])
18886          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18887          ;;
18888        *) # Darwin 1.3 on
18889          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18890            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18891          else
18892            case ${MACOSX_DEPLOYMENT_TARGET} in
18893              10.[012])
18894                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18895                ;;
18896              10.*)
18897                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18898                ;;
18899            esac
18900          fi
18901          ;;
18902       esac
18903       archive_cmds_need_lc_GCJ=no
18904       hardcode_direct_GCJ=no
18905       hardcode_automatic_GCJ=yes
18906       hardcode_shlibpath_var_GCJ=unsupported
18907       whole_archive_flag_spec_GCJ=''
18908       link_all_deplibs_GCJ=yes
18909     if test "$GCC" = yes ; then
18910         output_verbose_link_cmd='echo'
18911         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18912       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18913       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
18914       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}'
18915       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}'
18916     else
18917       case $cc_basename in
18918         xlc*)
18919          output_verbose_link_cmd='echo'
18920          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
18921          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18922           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
18923          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}'
18924           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}'
18925           ;;
18926        *)
18927          ld_shlibs_GCJ=no
18928           ;;
18929       esac
18930     fi
18931       ;;
18932
18933     dgux*)
18934       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18935       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18936       hardcode_shlibpath_var_GCJ=no
18937       ;;
18938
18939     freebsd1*)
18940       ld_shlibs_GCJ=no
18941       ;;
18942
18943     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18944     # support.  Future versions do this automatically, but an explicit c++rt0.o
18945     # does not break anything, and helps significantly (at the cost of a little
18946     # extra space).
18947     freebsd2.2*)
18948       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18949       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18950       hardcode_direct_GCJ=yes
18951       hardcode_shlibpath_var_GCJ=no
18952       ;;
18953
18954     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18955     freebsd2*)
18956       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18957       hardcode_direct_GCJ=yes
18958       hardcode_minus_L_GCJ=yes
18959       hardcode_shlibpath_var_GCJ=no
18960       ;;
18961
18962     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18963     freebsd* | kfreebsd*-gnu | dragonfly*)
18964       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18965       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18966       hardcode_direct_GCJ=yes
18967       hardcode_shlibpath_var_GCJ=no
18968       ;;
18969
18970     hpux9*)
18971       if test "$GCC" = yes; then
18972         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'
18973       else
18974         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'
18975       fi
18976       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18977       hardcode_libdir_separator_GCJ=:
18978       hardcode_direct_GCJ=yes
18979
18980       # hardcode_minus_L: Not really in the search PATH,
18981       # but as the default location of the library.
18982       hardcode_minus_L_GCJ=yes
18983       export_dynamic_flag_spec_GCJ='${wl}-E'
18984       ;;
18985
18986     hpux10* | hpux11*)
18987       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18988         case "$host_cpu" in
18989         hppa*64*|ia64*)
18990           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18991           ;;
18992         *)
18993           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18994           ;;
18995         esac
18996       else
18997         case "$host_cpu" in
18998         hppa*64*|ia64*)
18999           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
19000           ;;
19001         *)
19002           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19003           ;;
19004         esac
19005       fi
19006       if test "$with_gnu_ld" = no; then
19007         case "$host_cpu" in
19008         hppa*64*)
19009           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19010           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
19011           hardcode_libdir_separator_GCJ=:
19012           hardcode_direct_GCJ=no
19013           hardcode_shlibpath_var_GCJ=no
19014           ;;
19015         ia64*)
19016           hardcode_libdir_flag_spec_GCJ='-L$libdir'
19017           hardcode_direct_GCJ=no
19018           hardcode_shlibpath_var_GCJ=no
19019
19020           # hardcode_minus_L: Not really in the search PATH,
19021           # but as the default location of the library.
19022           hardcode_minus_L_GCJ=yes
19023           ;;
19024         *)
19025           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19026           hardcode_libdir_separator_GCJ=:
19027           hardcode_direct_GCJ=yes
19028           export_dynamic_flag_spec_GCJ='${wl}-E'
19029
19030           # hardcode_minus_L: Not really in the search PATH,
19031           # but as the default location of the library.
19032           hardcode_minus_L_GCJ=yes
19033           ;;
19034         esac
19035       fi
19036       ;;
19037
19038     irix5* | irix6* | nonstopux*)
19039       if test "$GCC" = yes; then
19040         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'
19041       else
19042         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'
19043         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
19044       fi
19045       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19046       hardcode_libdir_separator_GCJ=:
19047       link_all_deplibs_GCJ=yes
19048       ;;
19049
19050     netbsd*)
19051       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19052         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
19053       else
19054         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
19055       fi
19056       hardcode_libdir_flag_spec_GCJ='-R$libdir'
19057       hardcode_direct_GCJ=yes
19058       hardcode_shlibpath_var_GCJ=no
19059       ;;
19060
19061     newsos6)
19062       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19063       hardcode_direct_GCJ=yes
19064       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19065       hardcode_libdir_separator_GCJ=:
19066       hardcode_shlibpath_var_GCJ=no
19067       ;;
19068
19069     openbsd*)
19070       hardcode_direct_GCJ=yes
19071       hardcode_shlibpath_var_GCJ=no
19072       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19073         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19074         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19075         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19076         export_dynamic_flag_spec_GCJ='${wl}-E'
19077       else
19078        case $host_os in
19079          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19080            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19081            hardcode_libdir_flag_spec_GCJ='-R$libdir'
19082            ;;
19083          *)
19084            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19085            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19086            ;;
19087        esac
19088       fi
19089       ;;
19090
19091     os2*)
19092       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19093       hardcode_minus_L_GCJ=yes
19094       allow_undefined_flag_GCJ=unsupported
19095       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'
19096       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19097       ;;
19098
19099     osf3*)
19100       if test "$GCC" = yes; then
19101         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19102         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'
19103       else
19104         allow_undefined_flag_GCJ=' -expect_unresolved \*'
19105         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'
19106       fi
19107       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19108       hardcode_libdir_separator_GCJ=:
19109       ;;
19110
19111     osf4* | osf5*)      # as osf3* with the addition of -msym flag
19112       if test "$GCC" = yes; then
19113         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19114         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'
19115         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19116       else
19117         allow_undefined_flag_GCJ=' -expect_unresolved \*'
19118         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'
19119         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~
19120         $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'
19121
19122         # Both c and cxx compiler support -rpath directly
19123         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
19124       fi
19125       hardcode_libdir_separator_GCJ=:
19126       ;;
19127
19128     sco3.2v5*)
19129       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19130       hardcode_shlibpath_var_GCJ=no
19131       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
19132       runpath_var=LD_RUN_PATH
19133       hardcode_runpath_var=yes
19134       ;;
19135
19136     solaris*)
19137       no_undefined_flag_GCJ=' -z text'
19138       if test "$GCC" = yes; then
19139         wlarc='${wl}'
19140         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19141         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19142           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19143       else
19144         wlarc=''
19145         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19146         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19147         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19148       fi
19149       hardcode_libdir_flag_spec_GCJ='-R$libdir'
19150       hardcode_shlibpath_var_GCJ=no
19151       case $host_os in
19152       solaris2.[0-5] | solaris2.[0-5].*) ;;
19153       *)
19154         # The compiler driver will combine linker options so we
19155         # cannot just pass the convience library names through
19156         # without $wl, iff we do not link with $LD.
19157         # Luckily, gcc supports the same syntax we need for Sun Studio.
19158         # Supported since Solaris 2.6 (maybe 2.5.1?)
19159         case $wlarc in
19160         '')
19161           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
19162         *)
19163           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' ;;
19164         esac ;;
19165       esac
19166       link_all_deplibs_GCJ=yes
19167       ;;
19168
19169     sunos4*)
19170       if test "x$host_vendor" = xsequent; then
19171         # Use $CC to link under sequent, because it throws in some extra .o
19172         # files that make .init and .fini sections work.
19173         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19174       else
19175         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19176       fi
19177       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19178       hardcode_direct_GCJ=yes
19179       hardcode_minus_L_GCJ=yes
19180       hardcode_shlibpath_var_GCJ=no
19181       ;;
19182
19183     sysv4)
19184       case $host_vendor in
19185         sni)
19186           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19187           hardcode_direct_GCJ=yes # is this really true???
19188         ;;
19189         siemens)
19190           ## LD is ld it makes a PLAMLIB
19191           ## CC just makes a GrossModule.
19192           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19193           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
19194           hardcode_direct_GCJ=no
19195         ;;
19196         motorola)
19197           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19198           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
19199         ;;
19200       esac
19201       runpath_var='LD_RUN_PATH'
19202       hardcode_shlibpath_var_GCJ=no
19203       ;;
19204
19205     sysv4.3*)
19206       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19207       hardcode_shlibpath_var_GCJ=no
19208       export_dynamic_flag_spec_GCJ='-Bexport'
19209       ;;
19210
19211     sysv4*MP*)
19212       if test -d /usr/nec; then
19213         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19214         hardcode_shlibpath_var_GCJ=no
19215         runpath_var=LD_RUN_PATH
19216         hardcode_runpath_var=yes
19217         ld_shlibs_GCJ=yes
19218       fi
19219       ;;
19220
19221     sysv4.2uw2*)
19222       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19223       hardcode_direct_GCJ=yes
19224       hardcode_minus_L_GCJ=no
19225       hardcode_shlibpath_var_GCJ=no
19226       hardcode_runpath_var=yes
19227       runpath_var=LD_RUN_PATH
19228       ;;
19229
19230    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
19231       no_undefined_flag_GCJ='${wl}-z ${wl}text'
19232       if test "$GCC" = yes; then
19233         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19234       else
19235         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19236       fi
19237       runpath_var='LD_RUN_PATH'
19238       hardcode_shlibpath_var_GCJ=no
19239       ;;
19240
19241     sysv5*)
19242       no_undefined_flag_GCJ=' -z text'
19243       # $CC -shared without GNU ld will not create a library from C++
19244       # object files and a static libstdc++, better avoid it by now
19245       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19246       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19247                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19248       hardcode_libdir_flag_spec_GCJ=
19249       hardcode_shlibpath_var_GCJ=no
19250       runpath_var='LD_RUN_PATH'
19251       ;;
19252
19253     uts4*)
19254       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19255       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19256       hardcode_shlibpath_var_GCJ=no
19257       ;;
19258
19259     *)
19260       ld_shlibs_GCJ=no
19261       ;;
19262     esac
19263   fi
19264
19265 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
19266 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
19267 test "$ld_shlibs_GCJ" = no && can_build_shared=no
19268
19269 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19270 if test "$GCC" = yes; then
19271   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19272 fi
19273
19274 #
19275 # Do we need to explicitly link libc?
19276 #
19277 case "x$archive_cmds_need_lc_GCJ" in
19278 x|xyes)
19279   # Assume -lc should be added
19280   archive_cmds_need_lc_GCJ=yes
19281
19282   if test "$enable_shared" = yes && test "$GCC" = yes; then
19283     case $archive_cmds_GCJ in
19284     *'~'*)
19285       # FIXME: we may have to deal with multi-command sequences.
19286       ;;
19287     '$CC '*)
19288       # Test whether the compiler implicitly links with -lc since on some
19289       # systems, -lgcc has to come before -lc. If gcc already passes -lc
19290       # to ld, don't add -lc before -lgcc.
19291       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19292 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
19293       $rm conftest*
19294       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19295
19296       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19297   (eval $ac_compile) 2>&5
19298   ac_status=$?
19299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19300   (exit $ac_status); } 2>conftest.err; then
19301         soname=conftest
19302         lib=conftest
19303         libobjs=conftest.$ac_objext
19304         deplibs=
19305         wl=$lt_prog_compiler_wl_GCJ
19306         compiler_flags=-v
19307         linker_flags=-v
19308         verstring=
19309         output_objdir=.
19310         libname=conftest
19311         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
19312         allow_undefined_flag_GCJ=
19313         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19314   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19315   ac_status=$?
19316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19317   (exit $ac_status); }
19318         then
19319           archive_cmds_need_lc_GCJ=no
19320         else
19321           archive_cmds_need_lc_GCJ=yes
19322         fi
19323         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
19324       else
19325         cat conftest.err 1>&5
19326       fi
19327       $rm conftest*
19328       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
19329 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
19330       ;;
19331     esac
19332   fi
19333   ;;
19334 esac
19335
19336 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19337 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
19338 library_names_spec=
19339 libname_spec='lib$name'
19340 soname_spec=
19341 shrext_cmds=".so"
19342 postinstall_cmds=
19343 postuninstall_cmds=
19344 finish_cmds=
19345 finish_eval=
19346 shlibpath_var=
19347 shlibpath_overrides_runpath=unknown
19348 version_type=none
19349 dynamic_linker="$host_os ld.so"
19350 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19351 if test "$GCC" = yes; then
19352   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19353   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19354     # if the path contains ";" then we assume it to be the separator
19355     # otherwise default to the standard path separator (i.e. ":") - it is
19356     # assumed that no part of a normal pathname contains ";" but that should
19357     # okay in the real world where ";" in dirpaths is itself problematic.
19358     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19359   else
19360     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19361   fi
19362 else
19363   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19364 fi
19365 need_lib_prefix=unknown
19366 hardcode_into_libs=no
19367
19368 # when you set need_version to no, make sure it does not cause -set_version
19369 # flags to be left without arguments
19370 need_version=unknown
19371
19372 case $host_os in
19373 aix3*)
19374   version_type=linux
19375   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19376   shlibpath_var=LIBPATH
19377
19378   # AIX 3 has no versioning support, so we append a major version to the name.
19379   soname_spec='${libname}${release}${shared_ext}$major'
19380   ;;
19381
19382 aix4* | aix5*)
19383   version_type=linux
19384   need_lib_prefix=no
19385   need_version=no
19386   hardcode_into_libs=yes
19387   if test "$host_cpu" = ia64; then
19388     # AIX 5 supports IA64
19389     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19390     shlibpath_var=LD_LIBRARY_PATH
19391   else
19392     # With GCC up to 2.95.x, collect2 would create an import file
19393     # for dependence libraries.  The import file would start with
19394     # the line `#! .'.  This would cause the generated library to
19395     # depend on `.', always an invalid library.  This was fixed in
19396     # development snapshots of GCC prior to 3.0.
19397     case $host_os in
19398       aix4 | aix4.[01] | aix4.[01].*)
19399       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19400            echo ' yes '
19401            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19402         :
19403       else
19404         can_build_shared=no
19405       fi
19406       ;;
19407     esac
19408     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19409     # soname into executable. Probably we can add versioning support to
19410     # collect2, so additional links can be useful in future.
19411     if test "$aix_use_runtimelinking" = yes; then
19412       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19413       # instead of lib<name>.a to let people know that these are not
19414       # typical AIX shared libraries.
19415       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19416     else
19417       # We preserve .a as extension for shared libraries through AIX4.2
19418       # and later when we are not doing run time linking.
19419       library_names_spec='${libname}${release}.a $libname.a'
19420       soname_spec='${libname}${release}${shared_ext}$major'
19421     fi
19422     shlibpath_var=LIBPATH
19423   fi
19424   ;;
19425
19426 amigaos*)
19427   library_names_spec='$libname.ixlibrary $libname.a'
19428   # Create ${libname}_ixlibrary.a entries in /sys/libs.
19429   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'
19430   ;;
19431
19432 beos*)
19433   library_names_spec='${libname}${shared_ext}'
19434   dynamic_linker="$host_os ld.so"
19435   shlibpath_var=LIBRARY_PATH
19436   ;;
19437
19438 bsdi[45]*)
19439   version_type=linux
19440   need_version=no
19441   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19442   soname_spec='${libname}${release}${shared_ext}$major'
19443   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19444   shlibpath_var=LD_LIBRARY_PATH
19445   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19446   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19447   # the default ld.so.conf also contains /usr/contrib/lib and
19448   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19449   # libtool to hard-code these into programs
19450   ;;
19451
19452 cygwin* | mingw* | pw32*)
19453   version_type=windows
19454   shrext_cmds=".dll"
19455   need_version=no
19456   need_lib_prefix=no
19457
19458   case $GCC,$host_os in
19459   yes,cygwin* | yes,mingw* | yes,pw32*)
19460     library_names_spec='$libname.dll.a'
19461     # DLL is installed to $(libdir)/../bin by postinstall_cmds
19462     postinstall_cmds='base_file=`basename \${file}`~
19463       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19464       dldir=$destdir/`dirname \$dlpath`~
19465       test -d \$dldir || mkdir -p \$dldir~
19466       $install_prog $dir/$dlname \$dldir/$dlname'
19467     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19468       dlpath=$dir/\$dldll~
19469        $rm \$dlpath'
19470     shlibpath_overrides_runpath=yes
19471
19472     case $host_os in
19473     cygwin*)
19474       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19475       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19476       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19477       ;;
19478     mingw*)
19479       # MinGW DLLs use traditional 'lib' prefix
19480       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19481       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19482       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19483         # It is most probably a Windows format PATH printed by
19484         # mingw gcc, but we are running on Cygwin. Gcc prints its search
19485         # path with ; separators, and with drive letters. We can handle the
19486         # drive letters (cygwin fileutils understands them), so leave them,
19487         # especially as we might pass files found there to a mingw objdump,
19488         # which wouldn't understand a cygwinified path. Ahh.
19489         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19490       else
19491         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19492       fi
19493       ;;
19494     pw32*)
19495       # pw32 DLLs use 'pw' prefix rather than 'lib'
19496       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19497       ;;
19498     esac
19499     ;;
19500
19501   *)
19502     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19503     ;;
19504   esac
19505   dynamic_linker='Win32 ld.exe'
19506   # FIXME: first we should search . and the directory the executable is in
19507   shlibpath_var=PATH
19508   ;;
19509
19510 darwin* | rhapsody*)
19511   dynamic_linker="$host_os dyld"
19512   version_type=darwin
19513   need_lib_prefix=no
19514   need_version=no
19515   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19516   soname_spec='${libname}${release}${major}$shared_ext'
19517   shlibpath_overrides_runpath=yes
19518   shlibpath_var=DYLD_LIBRARY_PATH
19519   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
19520   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
19521   if test "$GCC" = yes; then
19522     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"`
19523   else
19524     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
19525   fi
19526   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19527   ;;
19528
19529 dgux*)
19530   version_type=linux
19531   need_lib_prefix=no
19532   need_version=no
19533   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19534   soname_spec='${libname}${release}${shared_ext}$major'
19535   shlibpath_var=LD_LIBRARY_PATH
19536   ;;
19537
19538 freebsd1*)
19539   dynamic_linker=no
19540   ;;
19541
19542 kfreebsd*-gnu)
19543   version_type=linux
19544   need_lib_prefix=no
19545   need_version=no
19546   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19547   soname_spec='${libname}${release}${shared_ext}$major'
19548   shlibpath_var=LD_LIBRARY_PATH
19549   shlibpath_overrides_runpath=no
19550   hardcode_into_libs=yes
19551   dynamic_linker='GNU ld.so'
19552   ;;
19553
19554 freebsd* | dragonfly*)
19555   # DragonFly does not have aout.  When/if they implement a new
19556   # versioning mechanism, adjust this.
19557   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
19558   version_type=freebsd-$objformat
19559   case $version_type in
19560     freebsd-elf*)
19561       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19562       need_version=no
19563       need_lib_prefix=no
19564       ;;
19565     freebsd-*)
19566       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19567       need_version=yes
19568       ;;
19569   esac
19570   shlibpath_var=LD_LIBRARY_PATH
19571   case $host_os in
19572   freebsd2*)
19573     shlibpath_overrides_runpath=yes
19574     ;;
19575   freebsd3.[01]* | freebsdelf3.[01]*)
19576     shlibpath_overrides_runpath=yes
19577     hardcode_into_libs=yes
19578     ;;
19579   *) # from 3.2 on
19580     shlibpath_overrides_runpath=no
19581     hardcode_into_libs=yes
19582     ;;
19583   esac
19584   ;;
19585
19586 gnu*)
19587   version_type=linux
19588   need_lib_prefix=no
19589   need_version=no
19590   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19591   soname_spec='${libname}${release}${shared_ext}$major'
19592   shlibpath_var=LD_LIBRARY_PATH
19593   hardcode_into_libs=yes
19594   ;;
19595
19596 hpux9* | hpux10* | hpux11*)
19597   # Give a soname corresponding to the major version so that dld.sl refuses to
19598   # link against other versions.
19599   version_type=sunos
19600   need_lib_prefix=no
19601   need_version=no
19602   case "$host_cpu" in
19603   ia64*)
19604     shrext_cmds='.so'
19605     hardcode_into_libs=yes
19606     dynamic_linker="$host_os dld.so"
19607     shlibpath_var=LD_LIBRARY_PATH
19608     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19609     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19610     soname_spec='${libname}${release}${shared_ext}$major'
19611     if test "X$HPUX_IA64_MODE" = X32; then
19612       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19613     else
19614       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19615     fi
19616     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19617     ;;
19618    hppa*64*)
19619      shrext_cmds='.sl'
19620      hardcode_into_libs=yes
19621      dynamic_linker="$host_os dld.sl"
19622      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19623      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19624      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19625      soname_spec='${libname}${release}${shared_ext}$major'
19626      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19627      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19628      ;;
19629    *)
19630     shrext_cmds='.sl'
19631     dynamic_linker="$host_os dld.sl"
19632     shlibpath_var=SHLIB_PATH
19633     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19634     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19635     soname_spec='${libname}${release}${shared_ext}$major'
19636     ;;
19637   esac
19638   # HP-UX runs *really* slowly unless shared libraries are mode 555.
19639   postinstall_cmds='chmod 555 $lib'
19640   ;;
19641
19642 irix5* | irix6* | nonstopux*)
19643   case $host_os in
19644     nonstopux*) version_type=nonstopux ;;
19645     *)
19646         if test "$lt_cv_prog_gnu_ld" = yes; then
19647                 version_type=linux
19648         else
19649                 version_type=irix
19650         fi ;;
19651   esac
19652   need_lib_prefix=no
19653   need_version=no
19654   soname_spec='${libname}${release}${shared_ext}$major'
19655   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19656   case $host_os in
19657   irix5* | nonstopux*)
19658     libsuff= shlibsuff=
19659     ;;
19660   *)
19661     case $LD in # libtool.m4 will add one of these switches to LD
19662     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19663       libsuff= shlibsuff= libmagic=32-bit;;
19664     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19665       libsuff=32 shlibsuff=N32 libmagic=N32;;
19666     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19667       libsuff=64 shlibsuff=64 libmagic=64-bit;;
19668     *) libsuff= shlibsuff= libmagic=never-match;;
19669     esac
19670     ;;
19671   esac
19672   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19673   shlibpath_overrides_runpath=no
19674   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19675   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19676   hardcode_into_libs=yes
19677   ;;
19678
19679 # No shared lib support for Linux oldld, aout, or coff.
19680 linux*oldld* | linux*aout* | linux*coff*)
19681   dynamic_linker=no
19682   ;;
19683
19684 # This must be Linux ELF.
19685 linux*)
19686   version_type=linux
19687   need_lib_prefix=no
19688   need_version=no
19689   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19690   soname_spec='${libname}${release}${shared_ext}$major'
19691   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19692   shlibpath_var=LD_LIBRARY_PATH
19693   shlibpath_overrides_runpath=no
19694   # This implies no fast_install, which is unacceptable.
19695   # Some rework will be needed to allow for fast_install
19696   # before this can be enabled.
19697   hardcode_into_libs=yes
19698
19699   # Append ld.so.conf contents to the search path
19700   if test -f /etc/ld.so.conf; then
19701     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' ' '`
19702     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19703   fi
19704
19705   # We used to test for /lib/ld.so.1 and disable shared libraries on
19706   # powerpc, because MkLinux only supported shared libraries with the
19707   # GNU dynamic linker.  Since this was broken with cross compilers,
19708   # most powerpc-linux boxes support dynamic linking these days and
19709   # people can always --disable-shared, the test was removed, and we
19710   # assume the GNU/Linux dynamic linker is in use.
19711   dynamic_linker='GNU/Linux ld.so'
19712   ;;
19713
19714 knetbsd*-gnu)
19715   version_type=linux
19716   need_lib_prefix=no
19717   need_version=no
19718   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19719   soname_spec='${libname}${release}${shared_ext}$major'
19720   shlibpath_var=LD_LIBRARY_PATH
19721   shlibpath_overrides_runpath=no
19722   hardcode_into_libs=yes
19723   dynamic_linker='GNU ld.so'
19724   ;;
19725
19726 netbsd*)
19727   version_type=sunos
19728   need_lib_prefix=no
19729   need_version=no
19730   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19731     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19732     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19733     dynamic_linker='NetBSD (a.out) ld.so'
19734   else
19735     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19736     soname_spec='${libname}${release}${shared_ext}$major'
19737     dynamic_linker='NetBSD ld.elf_so'
19738   fi
19739   shlibpath_var=LD_LIBRARY_PATH
19740   shlibpath_overrides_runpath=yes
19741   hardcode_into_libs=yes
19742   ;;
19743
19744 newsos6)
19745   version_type=linux
19746   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19747   shlibpath_var=LD_LIBRARY_PATH
19748   shlibpath_overrides_runpath=yes
19749   ;;
19750
19751 nto-qnx*)
19752   version_type=linux
19753   need_lib_prefix=no
19754   need_version=no
19755   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19756   soname_spec='${libname}${release}${shared_ext}$major'
19757   shlibpath_var=LD_LIBRARY_PATH
19758   shlibpath_overrides_runpath=yes
19759   ;;
19760
19761 openbsd*)
19762   version_type=sunos
19763   need_lib_prefix=no
19764   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19765   case $host_os in
19766     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19767     *)                         need_version=no  ;;
19768   esac
19769   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19770   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19771   shlibpath_var=LD_LIBRARY_PATH
19772   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19773     case $host_os in
19774       openbsd2.[89] | openbsd2.[89].*)
19775         shlibpath_overrides_runpath=no
19776         ;;
19777       *)
19778         shlibpath_overrides_runpath=yes
19779         ;;
19780       esac
19781   else
19782     shlibpath_overrides_runpath=yes
19783   fi
19784   ;;
19785
19786 os2*)
19787   libname_spec='$name'
19788   shrext_cmds=".dll"
19789   need_lib_prefix=no
19790   library_names_spec='$libname${shared_ext} $libname.a'
19791   dynamic_linker='OS/2 ld.exe'
19792   shlibpath_var=LIBPATH
19793   ;;
19794
19795 osf3* | osf4* | osf5*)
19796   version_type=osf
19797   need_lib_prefix=no
19798   need_version=no
19799   soname_spec='${libname}${release}${shared_ext}$major'
19800   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19801   shlibpath_var=LD_LIBRARY_PATH
19802   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19803   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19804   ;;
19805
19806 sco3.2v5*)
19807   version_type=osf
19808   soname_spec='${libname}${release}${shared_ext}$major'
19809   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19810   shlibpath_var=LD_LIBRARY_PATH
19811   ;;
19812
19813 solaris*)
19814   version_type=linux
19815   need_lib_prefix=no
19816   need_version=no
19817   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19818   soname_spec='${libname}${release}${shared_ext}$major'
19819   shlibpath_var=LD_LIBRARY_PATH
19820   shlibpath_overrides_runpath=yes
19821   hardcode_into_libs=yes
19822   # ldd complains unless libraries are executable
19823   postinstall_cmds='chmod +x $lib'
19824   ;;
19825
19826 sunos4*)
19827   version_type=sunos
19828   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19829   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19830   shlibpath_var=LD_LIBRARY_PATH
19831   shlibpath_overrides_runpath=yes
19832   if test "$with_gnu_ld" = yes; then
19833     need_lib_prefix=no
19834   fi
19835   need_version=yes
19836   ;;
19837
19838 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
19839   version_type=linux
19840   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19841   soname_spec='${libname}${release}${shared_ext}$major'
19842   shlibpath_var=LD_LIBRARY_PATH
19843   case $host_vendor in
19844     sni)
19845       shlibpath_overrides_runpath=no
19846       need_lib_prefix=no
19847       export_dynamic_flag_spec='${wl}-Blargedynsym'
19848       runpath_var=LD_RUN_PATH
19849       ;;
19850     siemens)
19851       need_lib_prefix=no
19852       ;;
19853     motorola)
19854       need_lib_prefix=no
19855       need_version=no
19856       shlibpath_overrides_runpath=no
19857       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19858       ;;
19859   esac
19860   ;;
19861
19862 sysv4*MP*)
19863   if test -d /usr/nec ;then
19864     version_type=linux
19865     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19866     soname_spec='$libname${shared_ext}.$major'
19867     shlibpath_var=LD_LIBRARY_PATH
19868   fi
19869   ;;
19870
19871 uts4*)
19872   version_type=linux
19873   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19874   soname_spec='${libname}${release}${shared_ext}$major'
19875   shlibpath_var=LD_LIBRARY_PATH
19876   ;;
19877
19878 *)
19879   dynamic_linker=no
19880   ;;
19881 esac
19882 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19883 echo "${ECHO_T}$dynamic_linker" >&6
19884 test "$dynamic_linker" = no && can_build_shared=no
19885
19886 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19887 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
19888 hardcode_action_GCJ=
19889 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19890    test -n "$runpath_var_GCJ" || \
19891    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19892
19893   # We can hardcode non-existant directories.
19894   if test "$hardcode_direct_GCJ" != no &&
19895      # If the only mechanism to avoid hardcoding is shlibpath_var, we
19896      # have to relink, otherwise we might link with an installed library
19897      # when we should be linking with a yet-to-be-installed one
19898      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19899      test "$hardcode_minus_L_GCJ" != no; then
19900     # Linking always hardcodes the temporary library directory.
19901     hardcode_action_GCJ=relink
19902   else
19903     # We can link without hardcoding, and we can hardcode nonexisting dirs.
19904     hardcode_action_GCJ=immediate
19905   fi
19906 else
19907   # We cannot hardcode anything, or else we can only hardcode existing
19908   # directories.
19909   hardcode_action_GCJ=unsupported
19910 fi
19911 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19912 echo "${ECHO_T}$hardcode_action_GCJ" >&6
19913
19914 if test "$hardcode_action_GCJ" = relink; then
19915   # Fast installation is not supported
19916   enable_fast_install=no
19917 elif test "$shlibpath_overrides_runpath" = yes ||
19918      test "$enable_shared" = no; then
19919   # Fast installation is not necessary
19920   enable_fast_install=needless
19921 fi
19922
19923 striplib=
19924 old_striplib=
19925 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
19926 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
19927 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
19928   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
19929   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
19930   echo "$as_me:$LINENO: result: yes" >&5
19931 echo "${ECHO_T}yes" >&6
19932 else
19933 # FIXME - insert some real tests, host_os isn't really good enough
19934   case $host_os in
19935    darwin*)
19936        if test -n "$STRIP" ; then
19937          striplib="$STRIP -x"
19938          echo "$as_me:$LINENO: result: yes" >&5
19939 echo "${ECHO_T}yes" >&6
19940        else
19941   echo "$as_me:$LINENO: result: no" >&5
19942 echo "${ECHO_T}no" >&6
19943 fi
19944        ;;
19945    *)
19946   echo "$as_me:$LINENO: result: no" >&5
19947 echo "${ECHO_T}no" >&6
19948     ;;
19949   esac
19950 fi
19951
19952 if test "x$enable_dlopen" != xyes; then
19953   enable_dlopen=unknown
19954   enable_dlopen_self=unknown
19955   enable_dlopen_self_static=unknown
19956 else
19957   lt_cv_dlopen=no
19958   lt_cv_dlopen_libs=
19959
19960   case $host_os in
19961   beos*)
19962     lt_cv_dlopen="load_add_on"
19963     lt_cv_dlopen_libs=
19964     lt_cv_dlopen_self=yes
19965     ;;
19966
19967   mingw* | pw32*)
19968     lt_cv_dlopen="LoadLibrary"
19969     lt_cv_dlopen_libs=
19970    ;;
19971
19972   cygwin*)
19973     lt_cv_dlopen="dlopen"
19974     lt_cv_dlopen_libs=
19975    ;;
19976
19977   darwin*)
19978   # if libdl is installed we need to link against it
19979     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19980 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19981 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19982   echo $ECHO_N "(cached) $ECHO_C" >&6
19983 else
19984   ac_check_lib_save_LIBS=$LIBS
19985 LIBS="-ldl  $LIBS"
19986 cat >conftest.$ac_ext <<_ACEOF
19987 /* confdefs.h.  */
19988 _ACEOF
19989 cat confdefs.h >>conftest.$ac_ext
19990 cat >>conftest.$ac_ext <<_ACEOF
19991 /* end confdefs.h.  */
19992
19993 /* Override any gcc2 internal prototype to avoid an error.  */
19994 #ifdef __cplusplus
19995 extern "C"
19996 #endif
19997 /* We use char because int might match the return type of a gcc2
19998    builtin and then its argument prototype would still apply.  */
19999 char dlopen ();
20000 int
20001 main ()
20002 {
20003 dlopen ();
20004   ;
20005   return 0;
20006 }
20007 _ACEOF
20008 rm -f conftest.$ac_objext conftest$ac_exeext
20009 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20010   (eval $ac_link) 2>conftest.er1
20011   ac_status=$?
20012   grep -v '^ *+' conftest.er1 >conftest.err
20013   rm -f conftest.er1
20014   cat conftest.err >&5
20015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20016   (exit $ac_status); } &&
20017          { ac_try='test -z "$ac_c_werror_flag"
20018                          || test ! -s conftest.err'
20019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20020   (eval $ac_try) 2>&5
20021   ac_status=$?
20022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20023   (exit $ac_status); }; } &&
20024          { ac_try='test -s conftest$ac_exeext'
20025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20026   (eval $ac_try) 2>&5
20027   ac_status=$?
20028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20029   (exit $ac_status); }; }; then
20030   ac_cv_lib_dl_dlopen=yes
20031 else
20032   echo "$as_me: failed program was:" >&5
20033 sed 's/^/| /' conftest.$ac_ext >&5
20034
20035 ac_cv_lib_dl_dlopen=no
20036 fi
20037 rm -f conftest.err conftest.$ac_objext \
20038       conftest$ac_exeext conftest.$ac_ext
20039 LIBS=$ac_check_lib_save_LIBS
20040 fi
20041 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
20042 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
20043 if test $ac_cv_lib_dl_dlopen = yes; then
20044   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
20045 else
20046
20047     lt_cv_dlopen="dyld"
20048     lt_cv_dlopen_libs=
20049     lt_cv_dlopen_self=yes
20050
20051 fi
20052
20053    ;;
20054
20055   *)
20056     echo "$as_me:$LINENO: checking for shl_load" >&5
20057 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
20058 if test "${ac_cv_func_shl_load+set}" = set; then
20059   echo $ECHO_N "(cached) $ECHO_C" >&6
20060 else
20061   cat >conftest.$ac_ext <<_ACEOF
20062 /* confdefs.h.  */
20063 _ACEOF
20064 cat confdefs.h >>conftest.$ac_ext
20065 cat >>conftest.$ac_ext <<_ACEOF
20066 /* end confdefs.h.  */
20067 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
20068    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20069 #define shl_load innocuous_shl_load
20070
20071 /* System header to define __stub macros and hopefully few prototypes,
20072     which can conflict with char shl_load (); below.
20073     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20074     <limits.h> exists even on freestanding compilers.  */
20075
20076 #ifdef __STDC__
20077 # include <limits.h>
20078 #else
20079 # include <assert.h>
20080 #endif
20081
20082 #undef shl_load
20083
20084 /* Override any gcc2 internal prototype to avoid an error.  */
20085 #ifdef __cplusplus
20086 extern "C"
20087 {
20088 #endif
20089 /* We use char because int might match the return type of a gcc2
20090    builtin and then its argument prototype would still apply.  */
20091 char shl_load ();
20092 /* The GNU C library defines this for functions which it implements
20093     to always fail with ENOSYS.  Some functions are actually named
20094     something starting with __ and the normal name is an alias.  */
20095 #if defined (__stub_shl_load) || defined (__stub___shl_load)
20096 choke me
20097 #else
20098 char (*f) () = shl_load;
20099 #endif
20100 #ifdef __cplusplus
20101 }
20102 #endif
20103
20104 int
20105 main ()
20106 {
20107 return f != shl_load;
20108   ;
20109   return 0;
20110 }
20111 _ACEOF
20112 rm -f conftest.$ac_objext conftest$ac_exeext
20113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20114   (eval $ac_link) 2>conftest.er1
20115   ac_status=$?
20116   grep -v '^ *+' conftest.er1 >conftest.err
20117   rm -f conftest.er1
20118   cat conftest.err >&5
20119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20120   (exit $ac_status); } &&
20121          { ac_try='test -z "$ac_c_werror_flag"
20122                          || test ! -s conftest.err'
20123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20124   (eval $ac_try) 2>&5
20125   ac_status=$?
20126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20127   (exit $ac_status); }; } &&
20128          { ac_try='test -s conftest$ac_exeext'
20129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20130   (eval $ac_try) 2>&5
20131   ac_status=$?
20132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20133   (exit $ac_status); }; }; then
20134   ac_cv_func_shl_load=yes
20135 else
20136   echo "$as_me: failed program was:" >&5
20137 sed 's/^/| /' conftest.$ac_ext >&5
20138
20139 ac_cv_func_shl_load=no
20140 fi
20141 rm -f conftest.err conftest.$ac_objext \
20142       conftest$ac_exeext conftest.$ac_ext
20143 fi
20144 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
20145 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
20146 if test $ac_cv_func_shl_load = yes; then
20147   lt_cv_dlopen="shl_load"
20148 else
20149   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
20150 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
20151 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
20152   echo $ECHO_N "(cached) $ECHO_C" >&6
20153 else
20154   ac_check_lib_save_LIBS=$LIBS
20155 LIBS="-ldld  $LIBS"
20156 cat >conftest.$ac_ext <<_ACEOF
20157 /* confdefs.h.  */
20158 _ACEOF
20159 cat confdefs.h >>conftest.$ac_ext
20160 cat >>conftest.$ac_ext <<_ACEOF
20161 /* end confdefs.h.  */
20162
20163 /* Override any gcc2 internal prototype to avoid an error.  */
20164 #ifdef __cplusplus
20165 extern "C"
20166 #endif
20167 /* We use char because int might match the return type of a gcc2
20168    builtin and then its argument prototype would still apply.  */
20169 char shl_load ();
20170 int
20171 main ()
20172 {
20173 shl_load ();
20174   ;
20175   return 0;
20176 }
20177 _ACEOF
20178 rm -f conftest.$ac_objext conftest$ac_exeext
20179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20180   (eval $ac_link) 2>conftest.er1
20181   ac_status=$?
20182   grep -v '^ *+' conftest.er1 >conftest.err
20183   rm -f conftest.er1
20184   cat conftest.err >&5
20185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20186   (exit $ac_status); } &&
20187          { ac_try='test -z "$ac_c_werror_flag"
20188                          || test ! -s conftest.err'
20189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20190   (eval $ac_try) 2>&5
20191   ac_status=$?
20192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20193   (exit $ac_status); }; } &&
20194          { ac_try='test -s conftest$ac_exeext'
20195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20196   (eval $ac_try) 2>&5
20197   ac_status=$?
20198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20199   (exit $ac_status); }; }; then
20200   ac_cv_lib_dld_shl_load=yes
20201 else
20202   echo "$as_me: failed program was:" >&5
20203 sed 's/^/| /' conftest.$ac_ext >&5
20204
20205 ac_cv_lib_dld_shl_load=no
20206 fi
20207 rm -f conftest.err conftest.$ac_objext \
20208       conftest$ac_exeext conftest.$ac_ext
20209 LIBS=$ac_check_lib_save_LIBS
20210 fi
20211 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
20212 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
20213 if test $ac_cv_lib_dld_shl_load = yes; then
20214   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
20215 else
20216   echo "$as_me:$LINENO: checking for dlopen" >&5
20217 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
20218 if test "${ac_cv_func_dlopen+set}" = set; then
20219   echo $ECHO_N "(cached) $ECHO_C" >&6
20220 else
20221   cat >conftest.$ac_ext <<_ACEOF
20222 /* confdefs.h.  */
20223 _ACEOF
20224 cat confdefs.h >>conftest.$ac_ext
20225 cat >>conftest.$ac_ext <<_ACEOF
20226 /* end confdefs.h.  */
20227 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
20228    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20229 #define dlopen innocuous_dlopen
20230
20231 /* System header to define __stub macros and hopefully few prototypes,
20232     which can conflict with char dlopen (); below.
20233     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20234     <limits.h> exists even on freestanding compilers.  */
20235
20236 #ifdef __STDC__
20237 # include <limits.h>
20238 #else
20239 # include <assert.h>
20240 #endif
20241
20242 #undef dlopen
20243
20244 /* Override any gcc2 internal prototype to avoid an error.  */
20245 #ifdef __cplusplus
20246 extern "C"
20247 {
20248 #endif
20249 /* We use char because int might match the return type of a gcc2
20250    builtin and then its argument prototype would still apply.  */
20251 char dlopen ();
20252 /* The GNU C library defines this for functions which it implements
20253     to always fail with ENOSYS.  Some functions are actually named
20254     something starting with __ and the normal name is an alias.  */
20255 #if defined (__stub_dlopen) || defined (__stub___dlopen)
20256 choke me
20257 #else
20258 char (*f) () = dlopen;
20259 #endif
20260 #ifdef __cplusplus
20261 }
20262 #endif
20263
20264 int
20265 main ()
20266 {
20267 return f != dlopen;
20268   ;
20269   return 0;
20270 }
20271 _ACEOF
20272 rm -f conftest.$ac_objext conftest$ac_exeext
20273 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20274   (eval $ac_link) 2>conftest.er1
20275   ac_status=$?
20276   grep -v '^ *+' conftest.er1 >conftest.err
20277   rm -f conftest.er1
20278   cat conftest.err >&5
20279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20280   (exit $ac_status); } &&
20281          { ac_try='test -z "$ac_c_werror_flag"
20282                          || test ! -s conftest.err'
20283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20284   (eval $ac_try) 2>&5
20285   ac_status=$?
20286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20287   (exit $ac_status); }; } &&
20288          { ac_try='test -s conftest$ac_exeext'
20289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20290   (eval $ac_try) 2>&5
20291   ac_status=$?
20292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20293   (exit $ac_status); }; }; then
20294   ac_cv_func_dlopen=yes
20295 else
20296   echo "$as_me: failed program was:" >&5
20297 sed 's/^/| /' conftest.$ac_ext >&5
20298
20299 ac_cv_func_dlopen=no
20300 fi
20301 rm -f conftest.err conftest.$ac_objext \
20302       conftest$ac_exeext conftest.$ac_ext
20303 fi
20304 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
20305 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
20306 if test $ac_cv_func_dlopen = yes; then
20307   lt_cv_dlopen="dlopen"
20308 else
20309   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
20310 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
20311 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
20312   echo $ECHO_N "(cached) $ECHO_C" >&6
20313 else
20314   ac_check_lib_save_LIBS=$LIBS
20315 LIBS="-ldl  $LIBS"
20316 cat >conftest.$ac_ext <<_ACEOF
20317 /* confdefs.h.  */
20318 _ACEOF
20319 cat confdefs.h >>conftest.$ac_ext
20320 cat >>conftest.$ac_ext <<_ACEOF
20321 /* end confdefs.h.  */
20322
20323 /* Override any gcc2 internal prototype to avoid an error.  */
20324 #ifdef __cplusplus
20325 extern "C"
20326 #endif
20327 /* We use char because int might match the return type of a gcc2
20328    builtin and then its argument prototype would still apply.  */
20329 char dlopen ();
20330 int
20331 main ()
20332 {
20333 dlopen ();
20334   ;
20335   return 0;
20336 }
20337 _ACEOF
20338 rm -f conftest.$ac_objext conftest$ac_exeext
20339 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20340   (eval $ac_link) 2>conftest.er1
20341   ac_status=$?
20342   grep -v '^ *+' conftest.er1 >conftest.err
20343   rm -f conftest.er1
20344   cat conftest.err >&5
20345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20346   (exit $ac_status); } &&
20347          { ac_try='test -z "$ac_c_werror_flag"
20348                          || test ! -s conftest.err'
20349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20350   (eval $ac_try) 2>&5
20351   ac_status=$?
20352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20353   (exit $ac_status); }; } &&
20354          { ac_try='test -s conftest$ac_exeext'
20355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20356   (eval $ac_try) 2>&5
20357   ac_status=$?
20358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20359   (exit $ac_status); }; }; then
20360   ac_cv_lib_dl_dlopen=yes
20361 else
20362   echo "$as_me: failed program was:" >&5
20363 sed 's/^/| /' conftest.$ac_ext >&5
20364
20365 ac_cv_lib_dl_dlopen=no
20366 fi
20367 rm -f conftest.err conftest.$ac_objext \
20368       conftest$ac_exeext conftest.$ac_ext
20369 LIBS=$ac_check_lib_save_LIBS
20370 fi
20371 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
20372 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
20373 if test $ac_cv_lib_dl_dlopen = yes; then
20374   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
20375 else
20376   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
20377 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
20378 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
20379   echo $ECHO_N "(cached) $ECHO_C" >&6
20380 else
20381   ac_check_lib_save_LIBS=$LIBS
20382 LIBS="-lsvld  $LIBS"
20383 cat >conftest.$ac_ext <<_ACEOF
20384 /* confdefs.h.  */
20385 _ACEOF
20386 cat confdefs.h >>conftest.$ac_ext
20387 cat >>conftest.$ac_ext <<_ACEOF
20388 /* end confdefs.h.  */
20389
20390 /* Override any gcc2 internal prototype to avoid an error.  */
20391 #ifdef __cplusplus
20392 extern "C"
20393 #endif
20394 /* We use char because int might match the return type of a gcc2
20395    builtin and then its argument prototype would still apply.  */
20396 char dlopen ();
20397 int
20398 main ()
20399 {
20400 dlopen ();
20401   ;
20402   return 0;
20403 }
20404 _ACEOF
20405 rm -f conftest.$ac_objext conftest$ac_exeext
20406 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20407   (eval $ac_link) 2>conftest.er1
20408   ac_status=$?
20409   grep -v '^ *+' conftest.er1 >conftest.err
20410   rm -f conftest.er1
20411   cat conftest.err >&5
20412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20413   (exit $ac_status); } &&
20414          { ac_try='test -z "$ac_c_werror_flag"
20415                          || test ! -s conftest.err'
20416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20417   (eval $ac_try) 2>&5
20418   ac_status=$?
20419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20420   (exit $ac_status); }; } &&
20421          { ac_try='test -s conftest$ac_exeext'
20422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20423   (eval $ac_try) 2>&5
20424   ac_status=$?
20425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20426   (exit $ac_status); }; }; then
20427   ac_cv_lib_svld_dlopen=yes
20428 else
20429   echo "$as_me: failed program was:" >&5
20430 sed 's/^/| /' conftest.$ac_ext >&5
20431
20432 ac_cv_lib_svld_dlopen=no
20433 fi
20434 rm -f conftest.err conftest.$ac_objext \
20435       conftest$ac_exeext conftest.$ac_ext
20436 LIBS=$ac_check_lib_save_LIBS
20437 fi
20438 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
20439 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
20440 if test $ac_cv_lib_svld_dlopen = yes; then
20441   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
20442 else
20443   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
20444 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
20445 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
20446   echo $ECHO_N "(cached) $ECHO_C" >&6
20447 else
20448   ac_check_lib_save_LIBS=$LIBS
20449 LIBS="-ldld  $LIBS"
20450 cat >conftest.$ac_ext <<_ACEOF
20451 /* confdefs.h.  */
20452 _ACEOF
20453 cat confdefs.h >>conftest.$ac_ext
20454 cat >>conftest.$ac_ext <<_ACEOF
20455 /* end confdefs.h.  */
20456
20457 /* Override any gcc2 internal prototype to avoid an error.  */
20458 #ifdef __cplusplus
20459 extern "C"
20460 #endif
20461 /* We use char because int might match the return type of a gcc2
20462    builtin and then its argument prototype would still apply.  */
20463 char dld_link ();
20464 int
20465 main ()
20466 {
20467 dld_link ();
20468   ;
20469   return 0;
20470 }
20471 _ACEOF
20472 rm -f conftest.$ac_objext conftest$ac_exeext
20473 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20474   (eval $ac_link) 2>conftest.er1
20475   ac_status=$?
20476   grep -v '^ *+' conftest.er1 >conftest.err
20477   rm -f conftest.er1
20478   cat conftest.err >&5
20479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20480   (exit $ac_status); } &&
20481          { ac_try='test -z "$ac_c_werror_flag"
20482                          || test ! -s conftest.err'
20483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20484   (eval $ac_try) 2>&5
20485   ac_status=$?
20486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20487   (exit $ac_status); }; } &&
20488          { ac_try='test -s conftest$ac_exeext'
20489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20490   (eval $ac_try) 2>&5
20491   ac_status=$?
20492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20493   (exit $ac_status); }; }; then
20494   ac_cv_lib_dld_dld_link=yes
20495 else
20496   echo "$as_me: failed program was:" >&5
20497 sed 's/^/| /' conftest.$ac_ext >&5
20498
20499 ac_cv_lib_dld_dld_link=no
20500 fi
20501 rm -f conftest.err conftest.$ac_objext \
20502       conftest$ac_exeext conftest.$ac_ext
20503 LIBS=$ac_check_lib_save_LIBS
20504 fi
20505 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
20506 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
20507 if test $ac_cv_lib_dld_dld_link = yes; then
20508   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
20509 fi
20510
20511
20512 fi
20513
20514
20515 fi
20516
20517
20518 fi
20519
20520
20521 fi
20522
20523
20524 fi
20525
20526     ;;
20527   esac
20528
20529   if test "x$lt_cv_dlopen" != xno; then
20530     enable_dlopen=yes
20531   else
20532     enable_dlopen=no
20533   fi
20534
20535   case $lt_cv_dlopen in
20536   dlopen)
20537     save_CPPFLAGS="$CPPFLAGS"
20538     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
20539
20540     save_LDFLAGS="$LDFLAGS"
20541     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
20542
20543     save_LIBS="$LIBS"
20544     LIBS="$lt_cv_dlopen_libs $LIBS"
20545
20546     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
20547 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
20548 if test "${lt_cv_dlopen_self+set}" = set; then
20549   echo $ECHO_N "(cached) $ECHO_C" >&6
20550 else
20551           if test "$cross_compiling" = yes; then :
20552   lt_cv_dlopen_self=cross
20553 else
20554   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20555   lt_status=$lt_dlunknown
20556   cat > conftest.$ac_ext <<EOF
20557 #line 20557 "configure"
20558 #include "confdefs.h"
20559
20560 #if HAVE_DLFCN_H
20561 #include <dlfcn.h>
20562 #endif
20563
20564 #include <stdio.h>
20565
20566 #ifdef RTLD_GLOBAL
20567 #  define LT_DLGLOBAL           RTLD_GLOBAL
20568 #else
20569 #  ifdef DL_GLOBAL
20570 #    define LT_DLGLOBAL         DL_GLOBAL
20571 #  else
20572 #    define LT_DLGLOBAL         0
20573 #  endif
20574 #endif
20575
20576 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20577    find out it does not work in some platform. */
20578 #ifndef LT_DLLAZY_OR_NOW
20579 #  ifdef RTLD_LAZY
20580 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
20581 #  else
20582 #    ifdef DL_LAZY
20583 #      define LT_DLLAZY_OR_NOW          DL_LAZY
20584 #    else
20585 #      ifdef RTLD_NOW
20586 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
20587 #      else
20588 #        ifdef DL_NOW
20589 #          define LT_DLLAZY_OR_NOW      DL_NOW
20590 #        else
20591 #          define LT_DLLAZY_OR_NOW      0
20592 #        endif
20593 #      endif
20594 #    endif
20595 #  endif
20596 #endif
20597
20598 #ifdef __cplusplus
20599 extern "C" void exit (int);
20600 #endif
20601
20602 void fnord() { int i=42;}
20603 int main ()
20604 {
20605   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20606   int status = $lt_dlunknown;
20607
20608   if (self)
20609     {
20610       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
20611       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20612       /* dlclose (self); */
20613     }
20614
20615     exit (status);
20616 }
20617 EOF
20618   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20619   (eval $ac_link) 2>&5
20620   ac_status=$?
20621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20622   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
20623     (./conftest; exit; ) 2>/dev/null
20624     lt_status=$?
20625     case x$lt_status in
20626       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
20627       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
20628       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
20629     esac
20630   else :
20631     # compilation failed
20632     lt_cv_dlopen_self=no
20633   fi
20634 fi
20635 rm -fr conftest*
20636
20637
20638 fi
20639 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
20640 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
20641
20642     if test "x$lt_cv_dlopen_self" = xyes; then
20643       LDFLAGS="$LDFLAGS $link_static_flag"
20644       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
20645 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
20646 if test "${lt_cv_dlopen_self_static+set}" = set; then
20647   echo $ECHO_N "(cached) $ECHO_C" >&6
20648 else
20649           if test "$cross_compiling" = yes; then :
20650   lt_cv_dlopen_self_static=cross
20651 else
20652   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20653   lt_status=$lt_dlunknown
20654   cat > conftest.$ac_ext <<EOF
20655 #line 20655 "configure"
20656 #include "confdefs.h"
20657
20658 #if HAVE_DLFCN_H
20659 #include <dlfcn.h>
20660 #endif
20661
20662 #include <stdio.h>
20663
20664 #ifdef RTLD_GLOBAL
20665 #  define LT_DLGLOBAL           RTLD_GLOBAL
20666 #else
20667 #  ifdef DL_GLOBAL
20668 #    define LT_DLGLOBAL         DL_GLOBAL
20669 #  else
20670 #    define LT_DLGLOBAL         0
20671 #  endif
20672 #endif
20673
20674 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20675    find out it does not work in some platform. */
20676 #ifndef LT_DLLAZY_OR_NOW
20677 #  ifdef RTLD_LAZY
20678 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
20679 #  else
20680 #    ifdef DL_LAZY
20681 #      define LT_DLLAZY_OR_NOW          DL_LAZY
20682 #    else
20683 #      ifdef RTLD_NOW
20684 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
20685 #      else
20686 #        ifdef DL_NOW
20687 #          define LT_DLLAZY_OR_NOW      DL_NOW
20688 #        else
20689 #          define LT_DLLAZY_OR_NOW      0
20690 #        endif
20691 #      endif
20692 #    endif
20693 #  endif
20694 #endif
20695
20696 #ifdef __cplusplus
20697 extern "C" void exit (int);
20698 #endif
20699
20700 void fnord() { int i=42;}
20701 int main ()
20702 {
20703   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20704   int status = $lt_dlunknown;
20705
20706   if (self)
20707     {
20708       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
20709       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20710       /* dlclose (self); */
20711     }
20712
20713     exit (status);
20714 }
20715 EOF
20716   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20717   (eval $ac_link) 2>&5
20718   ac_status=$?
20719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20720   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
20721     (./conftest; exit; ) 2>/dev/null
20722     lt_status=$?
20723     case x$lt_status in
20724       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
20725       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
20726       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
20727     esac
20728   else :
20729     # compilation failed
20730     lt_cv_dlopen_self_static=no
20731   fi
20732 fi
20733 rm -fr conftest*
20734
20735
20736 fi
20737 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
20738 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
20739     fi
20740
20741     CPPFLAGS="$save_CPPFLAGS"
20742     LDFLAGS="$save_LDFLAGS"
20743     LIBS="$save_LIBS"
20744     ;;
20745   esac
20746
20747   case $lt_cv_dlopen_self in
20748   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
20749   *) enable_dlopen_self=unknown ;;
20750   esac
20751
20752   case $lt_cv_dlopen_self_static in
20753   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
20754   *) enable_dlopen_self_static=unknown ;;
20755   esac
20756 fi
20757
20758
20759 # The else clause should only fire when bootstrapping the
20760 # libtool distribution, otherwise you forgot to ship ltmain.sh
20761 # with your package, and you will get complaints that there are
20762 # no rules to generate ltmain.sh.
20763 if test -f "$ltmain"; then
20764   # See if we are running on zsh, and set the options which allow our commands through
20765   # without removal of \ escapes.
20766   if test -n "${ZSH_VERSION+set}" ; then
20767     setopt NO_GLOB_SUBST
20768   fi
20769   # Now quote all the things that may contain metacharacters while being
20770   # careful not to overquote the AC_SUBSTed values.  We take copies of the
20771   # variables and quote the copies for generation of the libtool script.
20772   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20773     SED SHELL STRIP \
20774     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20775     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20776     deplibs_check_method reload_flag reload_cmds need_locks \
20777     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20778     lt_cv_sys_global_symbol_to_c_name_address \
20779     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20780     old_postinstall_cmds old_postuninstall_cmds \
20781     compiler_GCJ \
20782     CC_GCJ \
20783     LD_GCJ \
20784     lt_prog_compiler_wl_GCJ \
20785     lt_prog_compiler_pic_GCJ \
20786     lt_prog_compiler_static_GCJ \
20787     lt_prog_compiler_no_builtin_flag_GCJ \
20788     export_dynamic_flag_spec_GCJ \
20789     thread_safe_flag_spec_GCJ \
20790     whole_archive_flag_spec_GCJ \
20791     enable_shared_with_static_runtimes_GCJ \
20792     old_archive_cmds_GCJ \
20793     old_archive_from_new_cmds_GCJ \
20794     predep_objects_GCJ \
20795     postdep_objects_GCJ \
20796     predeps_GCJ \
20797     postdeps_GCJ \
20798     compiler_lib_search_path_GCJ \
20799     archive_cmds_GCJ \
20800     archive_expsym_cmds_GCJ \
20801     postinstall_cmds_GCJ \
20802     postuninstall_cmds_GCJ \
20803     old_archive_from_expsyms_cmds_GCJ \
20804     allow_undefined_flag_GCJ \
20805     no_undefined_flag_GCJ \
20806     export_symbols_cmds_GCJ \
20807     hardcode_libdir_flag_spec_GCJ \
20808     hardcode_libdir_flag_spec_ld_GCJ \
20809     hardcode_libdir_separator_GCJ \
20810     hardcode_automatic_GCJ \
20811     module_cmds_GCJ \
20812     module_expsym_cmds_GCJ \
20813     lt_cv_prog_compiler_c_o_GCJ \
20814     exclude_expsyms_GCJ \
20815     include_expsyms_GCJ; do
20816
20817     case $var in
20818     old_archive_cmds_GCJ | \
20819     old_archive_from_new_cmds_GCJ | \
20820     archive_cmds_GCJ | \
20821     archive_expsym_cmds_GCJ | \
20822     module_cmds_GCJ | \
20823     module_expsym_cmds_GCJ | \
20824     old_archive_from_expsyms_cmds_GCJ | \
20825     export_symbols_cmds_GCJ | \
20826     extract_expsyms_cmds | reload_cmds | finish_cmds | \
20827     postinstall_cmds | postuninstall_cmds | \
20828     old_postinstall_cmds | old_postuninstall_cmds | \
20829     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20830       # Double-quote double-evaled strings.
20831       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20832       ;;
20833     *)
20834       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20835       ;;
20836     esac
20837   done
20838
20839   case $lt_echo in
20840   *'\$0 --fallback-echo"')
20841     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20842     ;;
20843   esac
20844
20845 cfgfile="$ofile"
20846
20847   cat <<__EOF__ >> "$cfgfile"
20848 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20849
20850 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20851
20852 # Shell to use when invoking shell scripts.
20853 SHELL=$lt_SHELL
20854
20855 # Whether or not to build shared libraries.
20856 build_libtool_libs=$enable_shared
20857
20858 # Whether or not to build static libraries.
20859 build_old_libs=$enable_static
20860
20861 # Whether or not to add -lc for building shared libraries.
20862 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
20863
20864 # Whether or not to disallow shared libs when runtime libs are static
20865 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
20866
20867 # Whether or not to optimize for fast installation.
20868 fast_install=$enable_fast_install
20869
20870 # The host system.
20871 host_alias=$host_alias
20872 host=$host
20873 host_os=$host_os
20874
20875 # The build system.
20876 build_alias=$build_alias
20877 build=$build
20878 build_os=$build_os
20879
20880 # An echo program that does not interpret backslashes.
20881 echo=$lt_echo
20882
20883 # The archiver.
20884 AR=$lt_AR
20885 AR_FLAGS=$lt_AR_FLAGS
20886
20887 # A C compiler.
20888 LTCC=$lt_LTCC
20889
20890 # A language-specific compiler.
20891 CC=$lt_compiler_GCJ
20892
20893 # Is the compiler the GNU C compiler?
20894 with_gcc=$GCC_GCJ
20895
20896 # An ERE matcher.
20897 EGREP=$lt_EGREP
20898
20899 # The linker used to build libraries.
20900 LD=$lt_LD_GCJ
20901
20902 # Whether we need hard or soft links.
20903 LN_S=$lt_LN_S
20904
20905 # A BSD-compatible nm program.
20906 NM=$lt_NM
20907
20908 # A symbol stripping program
20909 STRIP=$lt_STRIP
20910
20911 # Used to examine libraries when file_magic_cmd begins "file"
20912 MAGIC_CMD=$MAGIC_CMD
20913
20914 # Used on cygwin: DLL creation program.
20915 DLLTOOL="$DLLTOOL"
20916
20917 # Used on cygwin: object dumper.
20918 OBJDUMP="$OBJDUMP"
20919
20920 # Used on cygwin: assembler.
20921 AS="$AS"
20922
20923 # The name of the directory that contains temporary libtool files.
20924 objdir=$objdir
20925
20926 # How to create reloadable object files.
20927 reload_flag=$lt_reload_flag
20928 reload_cmds=$lt_reload_cmds
20929
20930 # How to pass a linker flag through the compiler.
20931 wl=$lt_lt_prog_compiler_wl_GCJ
20932
20933 # Object file suffix (normally "o").
20934 objext="$ac_objext"
20935
20936 # Old archive suffix (normally "a").
20937 libext="$libext"
20938
20939 # Shared library suffix (normally ".so").
20940 shrext_cmds='$shrext_cmds'
20941
20942 # Executable file suffix (normally "").
20943 exeext="$exeext"
20944
20945 # Additional compiler flags for building library objects.
20946 pic_flag=$lt_lt_prog_compiler_pic_GCJ
20947 pic_mode=$pic_mode
20948
20949 # What is the maximum length of a command?
20950 max_cmd_len=$lt_cv_sys_max_cmd_len
20951
20952 # Does compiler simultaneously support -c and -o options?
20953 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
20954
20955 # Must we lock files when doing compilation?
20956 need_locks=$lt_need_locks
20957
20958 # Do we need the lib prefix for modules?
20959 need_lib_prefix=$need_lib_prefix
20960
20961 # Do we need a version for libraries?
20962 need_version=$need_version
20963
20964 # Whether dlopen is supported.
20965 dlopen_support=$enable_dlopen
20966
20967 # Whether dlopen of programs is supported.
20968 dlopen_self=$enable_dlopen_self
20969
20970 # Whether dlopen of statically linked programs is supported.
20971 dlopen_self_static=$enable_dlopen_self_static
20972
20973 # Compiler flag to prevent dynamic linking.
20974 link_static_flag=$lt_lt_prog_compiler_static_GCJ
20975
20976 # Compiler flag to turn off builtin functions.
20977 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
20978
20979 # Compiler flag to allow reflexive dlopens.
20980 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
20981
20982 # Compiler flag to generate shared objects directly from archives.
20983 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
20984
20985 # Compiler flag to generate thread-safe objects.
20986 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
20987
20988 # Library versioning type.
20989 version_type=$version_type
20990
20991 # Format of library name prefix.
20992 libname_spec=$lt_libname_spec
20993
20994 # List of archive names.  First name is the real one, the rest are links.
20995 # The last name is the one that the linker finds with -lNAME.
20996 library_names_spec=$lt_library_names_spec
20997
20998 # The coded name of the library, if different from the real name.
20999 soname_spec=$lt_soname_spec
21000
21001 # Commands used to build and install an old-style archive.
21002 RANLIB=$lt_RANLIB
21003 old_archive_cmds=$lt_old_archive_cmds_GCJ
21004 old_postinstall_cmds=$lt_old_postinstall_cmds
21005 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21006
21007 # Create an old-style archive from a shared archive.
21008 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
21009
21010 # Create a temporary old-style archive to link instead of a shared archive.
21011 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
21012
21013 # Commands used to build and install a shared archive.
21014 archive_cmds=$lt_archive_cmds_GCJ
21015 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
21016 postinstall_cmds=$lt_postinstall_cmds
21017 postuninstall_cmds=$lt_postuninstall_cmds
21018
21019 # Commands used to build a loadable module (assumed same as above if empty)
21020 module_cmds=$lt_module_cmds_GCJ
21021 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
21022
21023 # Commands to strip libraries.
21024 old_striplib=$lt_old_striplib
21025 striplib=$lt_striplib
21026
21027 # Dependencies to place before the objects being linked to create a
21028 # shared library.
21029 predep_objects=$lt_predep_objects_GCJ
21030
21031 # Dependencies to place after the objects being linked to create a
21032 # shared library.
21033 postdep_objects=$lt_postdep_objects_GCJ
21034
21035 # Dependencies to place before the objects being linked to create a
21036 # shared library.
21037 predeps=$lt_predeps_GCJ
21038
21039 # Dependencies to place after the objects being linked to create a
21040 # shared library.
21041 postdeps=$lt_postdeps_GCJ
21042
21043 # The library search path used internally by the compiler when linking
21044 # a shared library.
21045 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
21046
21047 # Method to check whether dependent libraries are shared objects.
21048 deplibs_check_method=$lt_deplibs_check_method
21049
21050 # Command to use when deplibs_check_method == file_magic.
21051 file_magic_cmd=$lt_file_magic_cmd
21052
21053 # Flag that allows shared libraries with undefined symbols to be built.
21054 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
21055
21056 # Flag that forces no undefined symbols.
21057 no_undefined_flag=$lt_no_undefined_flag_GCJ
21058
21059 # Commands used to finish a libtool library installation in a directory.
21060 finish_cmds=$lt_finish_cmds
21061
21062 # Same as above, but a single script fragment to be evaled but not shown.
21063 finish_eval=$lt_finish_eval
21064
21065 # Take the output of nm and produce a listing of raw symbols and C names.
21066 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21067
21068 # Transform the output of nm in a proper C declaration
21069 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21070
21071 # Transform the output of nm in a C name address pair
21072 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21073
21074 # This is the shared library runtime path variable.
21075 runpath_var=$runpath_var
21076
21077 # This is the shared library path variable.
21078 shlibpath_var=$shlibpath_var
21079
21080 # Is shlibpath searched before the hard-coded library search path?
21081 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21082
21083 # How to hardcode a shared library path into an executable.
21084 hardcode_action=$hardcode_action_GCJ
21085
21086 # Whether we should hardcode library paths into libraries.
21087 hardcode_into_libs=$hardcode_into_libs
21088
21089 # Flag to hardcode \$libdir into a binary during linking.
21090 # This must work even if \$libdir does not exist.
21091 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
21092
21093 # If ld is used when linking, flag to hardcode \$libdir into
21094 # a binary during linking. This must work even if \$libdir does
21095 # not exist.
21096 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
21097
21098 # Whether we need a single -rpath flag with a separated argument.
21099 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
21100
21101 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21102 # resulting binary.
21103 hardcode_direct=$hardcode_direct_GCJ
21104
21105 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21106 # resulting binary.
21107 hardcode_minus_L=$hardcode_minus_L_GCJ
21108
21109 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21110 # the resulting binary.
21111 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
21112
21113 # Set to yes if building a shared library automatically hardcodes DIR into the library
21114 # and all subsequent libraries and executables linked against it.
21115 hardcode_automatic=$hardcode_automatic_GCJ
21116
21117 # Variables whose values should be saved in libtool wrapper scripts and
21118 # restored at relink time.
21119 variables_saved_for_relink="$variables_saved_for_relink"
21120
21121 # Whether libtool must link a program against all its dependency libraries.
21122 link_all_deplibs=$link_all_deplibs_GCJ
21123
21124 # Compile-time system search path for libraries
21125 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21126
21127 # Run-time system search path for libraries
21128 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21129
21130 # Fix the shell variable \$srcfile for the compiler.
21131 fix_srcfile_path="$fix_srcfile_path_GCJ"
21132
21133 # Set to yes if exported symbols are required.
21134 always_export_symbols=$always_export_symbols_GCJ
21135
21136 # The commands to list exported symbols.
21137 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
21138
21139 # The commands to extract the exported symbol list from a shared archive.
21140 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21141
21142 # Symbols that should not be listed in the preloaded symbols.
21143 exclude_expsyms=$lt_exclude_expsyms_GCJ
21144
21145 # Symbols that must always be exported.
21146 include_expsyms=$lt_include_expsyms_GCJ
21147
21148 # ### END LIBTOOL TAG CONFIG: $tagname
21149
21150 __EOF__
21151
21152
21153 else
21154   # If there is no Makefile yet, we rely on a make rule to execute
21155   # `config.status --recheck' to rerun these tests and create the
21156   # libtool script then.
21157   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21158   if test -f "$ltmain_in"; then
21159     test -f Makefile && make "$ltmain"
21160   fi
21161 fi
21162
21163
21164 ac_ext=c
21165 ac_cpp='$CPP $CPPFLAGS'
21166 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21167 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21168 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21169
21170 CC="$lt_save_CC"
21171
21172         else
21173           tagname=""
21174         fi
21175         ;;
21176
21177       RC)
21178
21179
21180
21181 # Source file extension for RC test sources.
21182 ac_ext=rc
21183
21184 # Object file extension for compiled RC test sources.
21185 objext=o
21186 objext_RC=$objext
21187
21188 # Code to be used in simple compile tests
21189 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
21190
21191 # Code to be used in simple link tests
21192 lt_simple_link_test_code="$lt_simple_compile_test_code"
21193
21194 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21195
21196 # If no C compiler was specified, use CC.
21197 LTCC=${LTCC-"$CC"}
21198
21199 # Allow CC to be a program name with arguments.
21200 compiler=$CC
21201
21202
21203 # save warnings/boilerplate of simple test code
21204 ac_outfile=conftest.$ac_objext
21205 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21206 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
21207 _lt_compiler_boilerplate=`cat conftest.err`
21208 $rm conftest*
21209
21210 ac_outfile=conftest.$ac_objext
21211 printf "$lt_simple_link_test_code" >conftest.$ac_ext
21212 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
21213 _lt_linker_boilerplate=`cat conftest.err`
21214 $rm conftest*
21215
21216
21217 # Allow CC to be a program name with arguments.
21218 lt_save_CC="$CC"
21219 CC=${RC-"windres"}
21220 compiler=$CC
21221 compiler_RC=$CC
21222 for cc_temp in $compiler""; do
21223   case $cc_temp in
21224     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21225     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21226     \-*) ;;
21227     *) break;;
21228   esac
21229 done
21230 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21231
21232 lt_cv_prog_compiler_c_o_RC=yes
21233
21234 # The else clause should only fire when bootstrapping the
21235 # libtool distribution, otherwise you forgot to ship ltmain.sh
21236 # with your package, and you will get complaints that there are
21237 # no rules to generate ltmain.sh.
21238 if test -f "$ltmain"; then
21239   # See if we are running on zsh, and set the options which allow our commands through
21240   # without removal of \ escapes.
21241   if test -n "${ZSH_VERSION+set}" ; then
21242     setopt NO_GLOB_SUBST
21243   fi
21244   # Now quote all the things that may contain metacharacters while being
21245   # careful not to overquote the AC_SUBSTed values.  We take copies of the
21246   # variables and quote the copies for generation of the libtool script.
21247   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
21248     SED SHELL STRIP \
21249     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
21250     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
21251     deplibs_check_method reload_flag reload_cmds need_locks \
21252     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
21253     lt_cv_sys_global_symbol_to_c_name_address \
21254     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
21255     old_postinstall_cmds old_postuninstall_cmds \
21256     compiler_RC \
21257     CC_RC \
21258     LD_RC \
21259     lt_prog_compiler_wl_RC \
21260     lt_prog_compiler_pic_RC \
21261     lt_prog_compiler_static_RC \
21262     lt_prog_compiler_no_builtin_flag_RC \
21263     export_dynamic_flag_spec_RC \
21264     thread_safe_flag_spec_RC \
21265     whole_archive_flag_spec_RC \
21266     enable_shared_with_static_runtimes_RC \
21267     old_archive_cmds_RC \
21268     old_archive_from_new_cmds_RC \
21269     predep_objects_RC \
21270     postdep_objects_RC \
21271     predeps_RC \
21272     postdeps_RC \
21273     compiler_lib_search_path_RC \
21274     archive_cmds_RC \
21275     archive_expsym_cmds_RC \
21276     postinstall_cmds_RC \
21277     postuninstall_cmds_RC \
21278     old_archive_from_expsyms_cmds_RC \
21279     allow_undefined_flag_RC \
21280     no_undefined_flag_RC \
21281     export_symbols_cmds_RC \
21282     hardcode_libdir_flag_spec_RC \
21283     hardcode_libdir_flag_spec_ld_RC \
21284     hardcode_libdir_separator_RC \
21285     hardcode_automatic_RC \
21286     module_cmds_RC \
21287     module_expsym_cmds_RC \
21288     lt_cv_prog_compiler_c_o_RC \
21289     exclude_expsyms_RC \
21290     include_expsyms_RC; do
21291
21292     case $var in
21293     old_archive_cmds_RC | \
21294     old_archive_from_new_cmds_RC | \
21295     archive_cmds_RC | \
21296     archive_expsym_cmds_RC | \
21297     module_cmds_RC | \
21298     module_expsym_cmds_RC | \
21299     old_archive_from_expsyms_cmds_RC | \
21300     export_symbols_cmds_RC | \
21301     extract_expsyms_cmds | reload_cmds | finish_cmds | \
21302     postinstall_cmds | postuninstall_cmds | \
21303     old_postinstall_cmds | old_postuninstall_cmds | \
21304     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21305       # Double-quote double-evaled strings.
21306       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
21307       ;;
21308     *)
21309       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21310       ;;
21311     esac
21312   done
21313
21314   case $lt_echo in
21315   *'\$0 --fallback-echo"')
21316     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21317     ;;
21318   esac
21319
21320 cfgfile="$ofile"
21321
21322   cat <<__EOF__ >> "$cfgfile"
21323 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
21324
21325 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21326
21327 # Shell to use when invoking shell scripts.
21328 SHELL=$lt_SHELL
21329
21330 # Whether or not to build shared libraries.
21331 build_libtool_libs=$enable_shared
21332
21333 # Whether or not to build static libraries.
21334 build_old_libs=$enable_static
21335
21336 # Whether or not to add -lc for building shared libraries.
21337 build_libtool_need_lc=$archive_cmds_need_lc_RC
21338
21339 # Whether or not to disallow shared libs when runtime libs are static
21340 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
21341
21342 # Whether or not to optimize for fast installation.
21343 fast_install=$enable_fast_install
21344
21345 # The host system.
21346 host_alias=$host_alias
21347 host=$host
21348 host_os=$host_os
21349
21350 # The build system.
21351 build_alias=$build_alias
21352 build=$build
21353 build_os=$build_os
21354
21355 # An echo program that does not interpret backslashes.
21356 echo=$lt_echo
21357
21358 # The archiver.
21359 AR=$lt_AR
21360 AR_FLAGS=$lt_AR_FLAGS
21361
21362 # A C compiler.
21363 LTCC=$lt_LTCC
21364
21365 # A language-specific compiler.
21366 CC=$lt_compiler_RC
21367
21368 # Is the compiler the GNU C compiler?
21369 with_gcc=$GCC_RC
21370
21371 # An ERE matcher.
21372 EGREP=$lt_EGREP
21373
21374 # The linker used to build libraries.
21375 LD=$lt_LD_RC
21376
21377 # Whether we need hard or soft links.
21378 LN_S=$lt_LN_S
21379
21380 # A BSD-compatible nm program.
21381 NM=$lt_NM
21382
21383 # A symbol stripping program
21384 STRIP=$lt_STRIP
21385
21386 # Used to examine libraries when file_magic_cmd begins "file"
21387 MAGIC_CMD=$MAGIC_CMD
21388
21389 # Used on cygwin: DLL creation program.
21390 DLLTOOL="$DLLTOOL"
21391
21392 # Used on cygwin: object dumper.
21393 OBJDUMP="$OBJDUMP"
21394
21395 # Used on cygwin: assembler.
21396 AS="$AS"
21397
21398 # The name of the directory that contains temporary libtool files.
21399 objdir=$objdir
21400
21401 # How to create reloadable object files.
21402 reload_flag=$lt_reload_flag
21403 reload_cmds=$lt_reload_cmds
21404
21405 # How to pass a linker flag through the compiler.
21406 wl=$lt_lt_prog_compiler_wl_RC
21407
21408 # Object file suffix (normally "o").
21409 objext="$ac_objext"
21410
21411 # Old archive suffix (normally "a").
21412 libext="$libext"
21413
21414 # Shared library suffix (normally ".so").
21415 shrext_cmds='$shrext_cmds'
21416
21417 # Executable file suffix (normally "").
21418 exeext="$exeext"
21419
21420 # Additional compiler flags for building library objects.
21421 pic_flag=$lt_lt_prog_compiler_pic_RC
21422 pic_mode=$pic_mode
21423
21424 # What is the maximum length of a command?
21425 max_cmd_len=$lt_cv_sys_max_cmd_len
21426
21427 # Does compiler simultaneously support -c and -o options?
21428 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
21429
21430 # Must we lock files when doing compilation?
21431 need_locks=$lt_need_locks
21432
21433 # Do we need the lib prefix for modules?
21434 need_lib_prefix=$need_lib_prefix
21435
21436 # Do we need a version for libraries?
21437 need_version=$need_version
21438
21439 # Whether dlopen is supported.
21440 dlopen_support=$enable_dlopen
21441
21442 # Whether dlopen of programs is supported.
21443 dlopen_self=$enable_dlopen_self
21444
21445 # Whether dlopen of statically linked programs is supported.
21446 dlopen_self_static=$enable_dlopen_self_static
21447
21448 # Compiler flag to prevent dynamic linking.
21449 link_static_flag=$lt_lt_prog_compiler_static_RC
21450
21451 # Compiler flag to turn off builtin functions.
21452 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
21453
21454 # Compiler flag to allow reflexive dlopens.
21455 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
21456
21457 # Compiler flag to generate shared objects directly from archives.
21458 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
21459
21460 # Compiler flag to generate thread-safe objects.
21461 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
21462
21463 # Library versioning type.
21464 version_type=$version_type
21465
21466 # Format of library name prefix.
21467 libname_spec=$lt_libname_spec
21468
21469 # List of archive names.  First name is the real one, the rest are links.
21470 # The last name is the one that the linker finds with -lNAME.
21471 library_names_spec=$lt_library_names_spec
21472
21473 # The coded name of the library, if different from the real name.
21474 soname_spec=$lt_soname_spec
21475
21476 # Commands used to build and install an old-style archive.
21477 RANLIB=$lt_RANLIB
21478 old_archive_cmds=$lt_old_archive_cmds_RC
21479 old_postinstall_cmds=$lt_old_postinstall_cmds
21480 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21481
21482 # Create an old-style archive from a shared archive.
21483 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
21484
21485 # Create a temporary old-style archive to link instead of a shared archive.
21486 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
21487
21488 # Commands used to build and install a shared archive.
21489 archive_cmds=$lt_archive_cmds_RC
21490 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
21491 postinstall_cmds=$lt_postinstall_cmds
21492 postuninstall_cmds=$lt_postuninstall_cmds
21493
21494 # Commands used to build a loadable module (assumed same as above if empty)
21495 module_cmds=$lt_module_cmds_RC
21496 module_expsym_cmds=$lt_module_expsym_cmds_RC
21497
21498 # Commands to strip libraries.
21499 old_striplib=$lt_old_striplib
21500 striplib=$lt_striplib
21501
21502 # Dependencies to place before the objects being linked to create a
21503 # shared library.
21504 predep_objects=$lt_predep_objects_RC
21505
21506 # Dependencies to place after the objects being linked to create a
21507 # shared library.
21508 postdep_objects=$lt_postdep_objects_RC
21509
21510 # Dependencies to place before the objects being linked to create a
21511 # shared library.
21512 predeps=$lt_predeps_RC
21513
21514 # Dependencies to place after the objects being linked to create a
21515 # shared library.
21516 postdeps=$lt_postdeps_RC
21517
21518 # The library search path used internally by the compiler when linking
21519 # a shared library.
21520 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
21521
21522 # Method to check whether dependent libraries are shared objects.
21523 deplibs_check_method=$lt_deplibs_check_method
21524
21525 # Command to use when deplibs_check_method == file_magic.
21526 file_magic_cmd=$lt_file_magic_cmd
21527
21528 # Flag that allows shared libraries with undefined symbols to be built.
21529 allow_undefined_flag=$lt_allow_undefined_flag_RC
21530
21531 # Flag that forces no undefined symbols.
21532 no_undefined_flag=$lt_no_undefined_flag_RC
21533
21534 # Commands used to finish a libtool library installation in a directory.
21535 finish_cmds=$lt_finish_cmds
21536
21537 # Same as above, but a single script fragment to be evaled but not shown.
21538 finish_eval=$lt_finish_eval
21539
21540 # Take the output of nm and produce a listing of raw symbols and C names.
21541 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21542
21543 # Transform the output of nm in a proper C declaration
21544 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21545
21546 # Transform the output of nm in a C name address pair
21547 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21548
21549 # This is the shared library runtime path variable.
21550 runpath_var=$runpath_var
21551
21552 # This is the shared library path variable.
21553 shlibpath_var=$shlibpath_var
21554
21555 # Is shlibpath searched before the hard-coded library search path?
21556 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21557
21558 # How to hardcode a shared library path into an executable.
21559 hardcode_action=$hardcode_action_RC
21560
21561 # Whether we should hardcode library paths into libraries.
21562 hardcode_into_libs=$hardcode_into_libs
21563
21564 # Flag to hardcode \$libdir into a binary during linking.
21565 # This must work even if \$libdir does not exist.
21566 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
21567
21568 # If ld is used when linking, flag to hardcode \$libdir into
21569 # a binary during linking. This must work even if \$libdir does
21570 # not exist.
21571 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
21572
21573 # Whether we need a single -rpath flag with a separated argument.
21574 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
21575
21576 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21577 # resulting binary.
21578 hardcode_direct=$hardcode_direct_RC
21579
21580 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21581 # resulting binary.
21582 hardcode_minus_L=$hardcode_minus_L_RC
21583
21584 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21585 # the resulting binary.
21586 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
21587
21588 # Set to yes if building a shared library automatically hardcodes DIR into the library
21589 # and all subsequent libraries and executables linked against it.
21590 hardcode_automatic=$hardcode_automatic_RC
21591
21592 # Variables whose values should be saved in libtool wrapper scripts and
21593 # restored at relink time.
21594 variables_saved_for_relink="$variables_saved_for_relink"
21595
21596 # Whether libtool must link a program against all its dependency libraries.
21597 link_all_deplibs=$link_all_deplibs_RC
21598
21599 # Compile-time system search path for libraries
21600 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21601
21602 # Run-time system search path for libraries
21603 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21604
21605 # Fix the shell variable \$srcfile for the compiler.
21606 fix_srcfile_path="$fix_srcfile_path_RC"
21607
21608 # Set to yes if exported symbols are required.
21609 always_export_symbols=$always_export_symbols_RC
21610
21611 # The commands to list exported symbols.
21612 export_symbols_cmds=$lt_export_symbols_cmds_RC
21613
21614 # The commands to extract the exported symbol list from a shared archive.
21615 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21616
21617 # Symbols that should not be listed in the preloaded symbols.
21618 exclude_expsyms=$lt_exclude_expsyms_RC
21619
21620 # Symbols that must always be exported.
21621 include_expsyms=$lt_include_expsyms_RC
21622
21623 # ### END LIBTOOL TAG CONFIG: $tagname
21624
21625 __EOF__
21626
21627
21628 else
21629   # If there is no Makefile yet, we rely on a make rule to execute
21630   # `config.status --recheck' to rerun these tests and create the
21631   # libtool script then.
21632   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21633   if test -f "$ltmain_in"; then
21634     test -f Makefile && make "$ltmain"
21635   fi
21636 fi
21637
21638
21639 ac_ext=c
21640 ac_cpp='$CPP $CPPFLAGS'
21641 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21642 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21643 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21644
21645 CC="$lt_save_CC"
21646
21647         ;;
21648
21649       *)
21650         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
21651 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
21652    { (exit 1); exit 1; }; }
21653         ;;
21654       esac
21655
21656       # Append the new tag name to the list of available tags.
21657       if test -n "$tagname" ; then
21658       available_tags="$available_tags $tagname"
21659     fi
21660     fi
21661   done
21662   IFS="$lt_save_ifs"
21663
21664   # Now substitute the updated list of available tags.
21665   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
21666     mv "${ofile}T" "$ofile"
21667     chmod +x "$ofile"
21668   else
21669     rm -f "${ofile}T"
21670     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
21671 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
21672    { (exit 1); exit 1; }; }
21673   fi
21674 fi
21675
21676
21677
21678 # This can be used to rebuild libtool when needed
21679 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
21680
21681 # Always use our own libtool.
21682 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
21683
21684 # Prevent multiple expansion
21685
21686
21687
21688
21689
21690
21691
21692
21693
21694
21695
21696
21697
21698
21699
21700
21701
21702
21703
21704
21705
21706 ol_link_perl=no
21707 if test $ol_enable_perl != no ; then
21708         # Extract the first word of "perl", so it can be a program name with args.
21709 set dummy perl; ac_word=$2
21710 echo "$as_me:$LINENO: checking for $ac_word" >&5
21711 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21712 if test "${ac_cv_path_PERLBIN+set}" = set; then
21713   echo $ECHO_N "(cached) $ECHO_C" >&6
21714 else
21715   case $PERLBIN in
21716   [\\/]* | ?:[\\/]*)
21717   ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
21718   ;;
21719   *)
21720   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21721 for as_dir in $PATH
21722 do
21723   IFS=$as_save_IFS
21724   test -z "$as_dir" && as_dir=.
21725   for ac_exec_ext in '' $ac_executable_extensions; do
21726   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21727     ac_cv_path_PERLBIN="$as_dir/$ac_word$ac_exec_ext"
21728     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21729     break 2
21730   fi
21731 done
21732 done
21733
21734   test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
21735   ;;
21736 esac
21737 fi
21738 PERLBIN=$ac_cv_path_PERLBIN
21739
21740 if test -n "$PERLBIN"; then
21741   echo "$as_me:$LINENO: result: $PERLBIN" >&5
21742 echo "${ECHO_T}$PERLBIN" >&6
21743 else
21744   echo "$as_me:$LINENO: result: no" >&5
21745 echo "${ECHO_T}no" >&6
21746 fi
21747
21748
21749         if test "no$PERLBIN" = "no" ; then
21750                 if test $ol_enable_perl = yes ; then
21751                         { { echo "$as_me:$LINENO: error: could not locate perl" >&5
21752 echo "$as_me: error: could not locate perl" >&2;}
21753    { (exit 1); exit 1; }; }
21754                 fi
21755
21756         else
21757                 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
21758                 PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e 's/ -lc / /' -e 's/ -lc$//'`"
21759
21760                 if test x"$ol_enable_perl" = "xyes" ; then
21761                         SLAPD_PERL_LDFLAGS="$PERL_LDFLAGS"
21762                 else
21763                         MOD_PERL_LDFLAGS="$PERL_LDFLAGS"
21764                 fi
21765                                 ol_link_perl=yes
21766         fi
21767 fi
21768
21769 ac_ext=c
21770 ac_cpp='$CPP $CPPFLAGS'
21771 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21772 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21773 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21774 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
21775 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
21776 # On Suns, sometimes $CPP names a directory.
21777 if test -n "$CPP" && test -d "$CPP"; then
21778   CPP=
21779 fi
21780 if test -z "$CPP"; then
21781   if test "${ac_cv_prog_CPP+set}" = set; then
21782   echo $ECHO_N "(cached) $ECHO_C" >&6
21783 else
21784       # Double quotes because CPP needs to be expanded
21785     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
21786     do
21787       ac_preproc_ok=false
21788 for ac_c_preproc_warn_flag in '' yes
21789 do
21790   # Use a header file that comes with gcc, so configuring glibc
21791   # with a fresh cross-compiler works.
21792   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21793   # <limits.h> exists even on freestanding compilers.
21794   # On the NeXT, cc -E runs the code through the compiler's parser,
21795   # not just through cpp. "Syntax error" is here to catch this case.
21796   cat >conftest.$ac_ext <<_ACEOF
21797 /* confdefs.h.  */
21798 _ACEOF
21799 cat confdefs.h >>conftest.$ac_ext
21800 cat >>conftest.$ac_ext <<_ACEOF
21801 /* end confdefs.h.  */
21802 #ifdef __STDC__
21803 # include <limits.h>
21804 #else
21805 # include <assert.h>
21806 #endif
21807                      Syntax error
21808 _ACEOF
21809 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21810   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21811   ac_status=$?
21812   grep -v '^ *+' conftest.er1 >conftest.err
21813   rm -f conftest.er1
21814   cat conftest.err >&5
21815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21816   (exit $ac_status); } >/dev/null; then
21817   if test -s conftest.err; then
21818     ac_cpp_err=$ac_c_preproc_warn_flag
21819     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21820   else
21821     ac_cpp_err=
21822   fi
21823 else
21824   ac_cpp_err=yes
21825 fi
21826 if test -z "$ac_cpp_err"; then
21827   :
21828 else
21829   echo "$as_me: failed program was:" >&5
21830 sed 's/^/| /' conftest.$ac_ext >&5
21831
21832   # Broken: fails on valid input.
21833 continue
21834 fi
21835 rm -f conftest.err conftest.$ac_ext
21836
21837   # OK, works on sane cases.  Now check whether non-existent headers
21838   # can be detected and how.
21839   cat >conftest.$ac_ext <<_ACEOF
21840 /* confdefs.h.  */
21841 _ACEOF
21842 cat confdefs.h >>conftest.$ac_ext
21843 cat >>conftest.$ac_ext <<_ACEOF
21844 /* end confdefs.h.  */
21845 #include <ac_nonexistent.h>
21846 _ACEOF
21847 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21848   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21849   ac_status=$?
21850   grep -v '^ *+' conftest.er1 >conftest.err
21851   rm -f conftest.er1
21852   cat conftest.err >&5
21853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21854   (exit $ac_status); } >/dev/null; then
21855   if test -s conftest.err; then
21856     ac_cpp_err=$ac_c_preproc_warn_flag
21857     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21858   else
21859     ac_cpp_err=
21860   fi
21861 else
21862   ac_cpp_err=yes
21863 fi
21864 if test -z "$ac_cpp_err"; then
21865   # Broken: success on invalid input.
21866 continue
21867 else
21868   echo "$as_me: failed program was:" >&5
21869 sed 's/^/| /' conftest.$ac_ext >&5
21870
21871   # Passes both tests.
21872 ac_preproc_ok=:
21873 break
21874 fi
21875 rm -f conftest.err conftest.$ac_ext
21876
21877 done
21878 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
21879 rm -f conftest.err conftest.$ac_ext
21880 if $ac_preproc_ok; then
21881   break
21882 fi
21883
21884     done
21885     ac_cv_prog_CPP=$CPP
21886
21887 fi
21888   CPP=$ac_cv_prog_CPP
21889 else
21890   ac_cv_prog_CPP=$CPP
21891 fi
21892 echo "$as_me:$LINENO: result: $CPP" >&5
21893 echo "${ECHO_T}$CPP" >&6
21894 ac_preproc_ok=false
21895 for ac_c_preproc_warn_flag in '' yes
21896 do
21897   # Use a header file that comes with gcc, so configuring glibc
21898   # with a fresh cross-compiler works.
21899   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21900   # <limits.h> exists even on freestanding compilers.
21901   # On the NeXT, cc -E runs the code through the compiler's parser,
21902   # not just through cpp. "Syntax error" is here to catch this case.
21903   cat >conftest.$ac_ext <<_ACEOF
21904 /* confdefs.h.  */
21905 _ACEOF
21906 cat confdefs.h >>conftest.$ac_ext
21907 cat >>conftest.$ac_ext <<_ACEOF
21908 /* end confdefs.h.  */
21909 #ifdef __STDC__
21910 # include <limits.h>
21911 #else
21912 # include <assert.h>
21913 #endif
21914                      Syntax error
21915 _ACEOF
21916 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21917   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21918   ac_status=$?
21919   grep -v '^ *+' conftest.er1 >conftest.err
21920   rm -f conftest.er1
21921   cat conftest.err >&5
21922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21923   (exit $ac_status); } >/dev/null; then
21924   if test -s conftest.err; then
21925     ac_cpp_err=$ac_c_preproc_warn_flag
21926     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21927   else
21928     ac_cpp_err=
21929   fi
21930 else
21931   ac_cpp_err=yes
21932 fi
21933 if test -z "$ac_cpp_err"; then
21934   :
21935 else
21936   echo "$as_me: failed program was:" >&5
21937 sed 's/^/| /' conftest.$ac_ext >&5
21938
21939   # Broken: fails on valid input.
21940 continue
21941 fi
21942 rm -f conftest.err conftest.$ac_ext
21943
21944   # OK, works on sane cases.  Now check whether non-existent headers
21945   # can be detected and how.
21946   cat >conftest.$ac_ext <<_ACEOF
21947 /* confdefs.h.  */
21948 _ACEOF
21949 cat confdefs.h >>conftest.$ac_ext
21950 cat >>conftest.$ac_ext <<_ACEOF
21951 /* end confdefs.h.  */
21952 #include <ac_nonexistent.h>
21953 _ACEOF
21954 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21955   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21956   ac_status=$?
21957   grep -v '^ *+' conftest.er1 >conftest.err
21958   rm -f conftest.er1
21959   cat conftest.err >&5
21960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21961   (exit $ac_status); } >/dev/null; then
21962   if test -s conftest.err; then
21963     ac_cpp_err=$ac_c_preproc_warn_flag
21964     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21965   else
21966     ac_cpp_err=
21967   fi
21968 else
21969   ac_cpp_err=yes
21970 fi
21971 if test -z "$ac_cpp_err"; then
21972   # Broken: success on invalid input.
21973 continue
21974 else
21975   echo "$as_me: failed program was:" >&5
21976 sed 's/^/| /' conftest.$ac_ext >&5
21977
21978   # Passes both tests.
21979 ac_preproc_ok=:
21980 break
21981 fi
21982 rm -f conftest.err conftest.$ac_ext
21983
21984 done
21985 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
21986 rm -f conftest.err conftest.$ac_ext
21987 if $ac_preproc_ok; then
21988   :
21989 else
21990   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
21991 See \`config.log' for more details." >&5
21992 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
21993 See \`config.log' for more details." >&2;}
21994    { (exit 1); exit 1; }; }
21995 fi
21996
21997 ac_ext=c
21998 ac_cpp='$CPP $CPPFLAGS'
21999 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22000 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22001 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22002
22003
22004
22005
22006
22007
22008 cat >>confdefs.h <<_ACEOF
22009 #define EXEEXT "${EXEEXT}"
22010 _ACEOF
22011
22012
22013 echo "$as_me:$LINENO: checking for be_app in -lbe" >&5
22014 echo $ECHO_N "checking for be_app in -lbe... $ECHO_C" >&6
22015 if test "${ac_cv_lib_be_be_app+set}" = set; then
22016   echo $ECHO_N "(cached) $ECHO_C" >&6
22017 else
22018   ac_check_lib_save_LIBS=$LIBS
22019 LIBS="-lbe -lroot -lnet $LIBS"
22020 cat >conftest.$ac_ext <<_ACEOF
22021 /* confdefs.h.  */
22022 _ACEOF
22023 cat confdefs.h >>conftest.$ac_ext
22024 cat >>conftest.$ac_ext <<_ACEOF
22025 /* end confdefs.h.  */
22026
22027 /* Override any gcc2 internal prototype to avoid an error.  */
22028 #ifdef __cplusplus
22029 extern "C"
22030 #endif
22031 /* We use char because int might match the return type of a gcc2
22032    builtin and then its argument prototype would still apply.  */
22033 char be_app ();
22034 int
22035 main ()
22036 {
22037 be_app ();
22038   ;
22039   return 0;
22040 }
22041 _ACEOF
22042 rm -f conftest.$ac_objext conftest$ac_exeext
22043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22044   (eval $ac_link) 2>conftest.er1
22045   ac_status=$?
22046   grep -v '^ *+' conftest.er1 >conftest.err
22047   rm -f conftest.er1
22048   cat conftest.err >&5
22049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22050   (exit $ac_status); } &&
22051          { ac_try='test -z "$ac_c_werror_flag"
22052                          || test ! -s conftest.err'
22053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22054   (eval $ac_try) 2>&5
22055   ac_status=$?
22056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22057   (exit $ac_status); }; } &&
22058          { ac_try='test -s conftest$ac_exeext'
22059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22060   (eval $ac_try) 2>&5
22061   ac_status=$?
22062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22063   (exit $ac_status); }; }; then
22064   ac_cv_lib_be_be_app=yes
22065 else
22066   echo "$as_me: failed program was:" >&5
22067 sed 's/^/| /' conftest.$ac_ext >&5
22068
22069 ac_cv_lib_be_be_app=no
22070 fi
22071 rm -f conftest.err conftest.$ac_objext \
22072       conftest$ac_exeext conftest.$ac_ext
22073 LIBS=$ac_check_lib_save_LIBS
22074 fi
22075 echo "$as_me:$LINENO: result: $ac_cv_lib_be_be_app" >&5
22076 echo "${ECHO_T}$ac_cv_lib_be_be_app" >&6
22077 if test $ac_cv_lib_be_be_app = yes; then
22078   LIBS="$LIBS -lbe -lroot -lnet"
22079 else
22080   :
22081 fi
22082
22083
22084 ac_ext=c
22085 ac_cpp='$CPP $CPPFLAGS'
22086 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22087 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22088 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22089 if test -n "$ac_tool_prefix"; then
22090   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
22091 set dummy ${ac_tool_prefix}gcc; ac_word=$2
22092 echo "$as_me:$LINENO: checking for $ac_word" >&5
22093 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22094 if test "${ac_cv_prog_CC+set}" = set; then
22095   echo $ECHO_N "(cached) $ECHO_C" >&6
22096 else
22097   if test -n "$CC"; then
22098   ac_cv_prog_CC="$CC" # Let the user override the test.
22099 else
22100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22101 for as_dir in $PATH
22102 do
22103   IFS=$as_save_IFS
22104   test -z "$as_dir" && as_dir=.
22105   for ac_exec_ext in '' $ac_executable_extensions; do
22106   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22107     ac_cv_prog_CC="${ac_tool_prefix}gcc"
22108     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22109     break 2
22110   fi
22111 done
22112 done
22113
22114 fi
22115 fi
22116 CC=$ac_cv_prog_CC
22117 if test -n "$CC"; then
22118   echo "$as_me:$LINENO: result: $CC" >&5
22119 echo "${ECHO_T}$CC" >&6
22120 else
22121   echo "$as_me:$LINENO: result: no" >&5
22122 echo "${ECHO_T}no" >&6
22123 fi
22124
22125 fi
22126 if test -z "$ac_cv_prog_CC"; then
22127   ac_ct_CC=$CC
22128   # Extract the first word of "gcc", so it can be a program name with args.
22129 set dummy gcc; ac_word=$2
22130 echo "$as_me:$LINENO: checking for $ac_word" >&5
22131 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22132 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
22133   echo $ECHO_N "(cached) $ECHO_C" >&6
22134 else
22135   if test -n "$ac_ct_CC"; then
22136   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
22137 else
22138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22139 for as_dir in $PATH
22140 do
22141   IFS=$as_save_IFS
22142   test -z "$as_dir" && as_dir=.
22143   for ac_exec_ext in '' $ac_executable_extensions; do
22144   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22145     ac_cv_prog_ac_ct_CC="gcc"
22146     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22147     break 2
22148   fi
22149 done
22150 done
22151
22152 fi
22153 fi
22154 ac_ct_CC=$ac_cv_prog_ac_ct_CC
22155 if test -n "$ac_ct_CC"; then
22156   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
22157 echo "${ECHO_T}$ac_ct_CC" >&6
22158 else
22159   echo "$as_me:$LINENO: result: no" >&5
22160 echo "${ECHO_T}no" >&6
22161 fi
22162
22163   CC=$ac_ct_CC
22164 else
22165   CC="$ac_cv_prog_CC"
22166 fi
22167
22168 if test -z "$CC"; then
22169   if test -n "$ac_tool_prefix"; then
22170   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
22171 set dummy ${ac_tool_prefix}cc; ac_word=$2
22172 echo "$as_me:$LINENO: checking for $ac_word" >&5
22173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22174 if test "${ac_cv_prog_CC+set}" = set; then
22175   echo $ECHO_N "(cached) $ECHO_C" >&6
22176 else
22177   if test -n "$CC"; then
22178   ac_cv_prog_CC="$CC" # Let the user override the test.
22179 else
22180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22181 for as_dir in $PATH
22182 do
22183   IFS=$as_save_IFS
22184   test -z "$as_dir" && as_dir=.
22185   for ac_exec_ext in '' $ac_executable_extensions; do
22186   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22187     ac_cv_prog_CC="${ac_tool_prefix}cc"
22188     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22189     break 2
22190   fi
22191 done
22192 done
22193
22194 fi
22195 fi
22196 CC=$ac_cv_prog_CC
22197 if test -n "$CC"; then
22198   echo "$as_me:$LINENO: result: $CC" >&5
22199 echo "${ECHO_T}$CC" >&6
22200 else
22201   echo "$as_me:$LINENO: result: no" >&5
22202 echo "${ECHO_T}no" >&6
22203 fi
22204
22205 fi
22206 if test -z "$ac_cv_prog_CC"; then
22207   ac_ct_CC=$CC
22208   # Extract the first word of "cc", so it can be a program name with args.
22209 set dummy cc; ac_word=$2
22210 echo "$as_me:$LINENO: checking for $ac_word" >&5
22211 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22212 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
22213   echo $ECHO_N "(cached) $ECHO_C" >&6
22214 else
22215   if test -n "$ac_ct_CC"; then
22216   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
22217 else
22218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22219 for as_dir in $PATH
22220 do
22221   IFS=$as_save_IFS
22222   test -z "$as_dir" && as_dir=.
22223   for ac_exec_ext in '' $ac_executable_extensions; do
22224   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22225     ac_cv_prog_ac_ct_CC="cc"
22226     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22227     break 2
22228   fi
22229 done
22230 done
22231
22232 fi
22233 fi
22234 ac_ct_CC=$ac_cv_prog_ac_ct_CC
22235 if test -n "$ac_ct_CC"; then
22236   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
22237 echo "${ECHO_T}$ac_ct_CC" >&6
22238 else
22239   echo "$as_me:$LINENO: result: no" >&5
22240 echo "${ECHO_T}no" >&6
22241 fi
22242
22243   CC=$ac_ct_CC
22244 else
22245   CC="$ac_cv_prog_CC"
22246 fi
22247
22248 fi
22249 if test -z "$CC"; then
22250   # Extract the first word of "cc", so it can be a program name with args.
22251 set dummy cc; ac_word=$2
22252 echo "$as_me:$LINENO: checking for $ac_word" >&5
22253 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22254 if test "${ac_cv_prog_CC+set}" = set; then
22255   echo $ECHO_N "(cached) $ECHO_C" >&6
22256 else
22257   if test -n "$CC"; then
22258   ac_cv_prog_CC="$CC" # Let the user override the test.
22259 else
22260   ac_prog_rejected=no
22261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22262 for as_dir in $PATH
22263 do
22264   IFS=$as_save_IFS
22265   test -z "$as_dir" && as_dir=.
22266   for ac_exec_ext in '' $ac_executable_extensions; do
22267   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22268     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
22269        ac_prog_rejected=yes
22270        continue
22271      fi
22272     ac_cv_prog_CC="cc"
22273     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22274     break 2
22275   fi
22276 done
22277 done
22278
22279 if test $ac_prog_rejected = yes; then
22280   # We found a bogon in the path, so make sure we never use it.
22281   set dummy $ac_cv_prog_CC
22282   shift
22283   if test $# != 0; then
22284     # We chose a different compiler from the bogus one.
22285     # However, it has the same basename, so the bogon will be chosen
22286     # first if we set CC to just the basename; use the full file name.
22287     shift
22288     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
22289   fi
22290 fi
22291 fi
22292 fi
22293 CC=$ac_cv_prog_CC
22294 if test -n "$CC"; then
22295   echo "$as_me:$LINENO: result: $CC" >&5
22296 echo "${ECHO_T}$CC" >&6
22297 else
22298   echo "$as_me:$LINENO: result: no" >&5
22299 echo "${ECHO_T}no" >&6
22300 fi
22301
22302 fi
22303 if test -z "$CC"; then
22304   if test -n "$ac_tool_prefix"; then
22305   for ac_prog in cl
22306   do
22307     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
22308 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
22309 echo "$as_me:$LINENO: checking for $ac_word" >&5
22310 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22311 if test "${ac_cv_prog_CC+set}" = set; then
22312   echo $ECHO_N "(cached) $ECHO_C" >&6
22313 else
22314   if test -n "$CC"; then
22315   ac_cv_prog_CC="$CC" # Let the user override the test.
22316 else
22317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22318 for as_dir in $PATH
22319 do
22320   IFS=$as_save_IFS
22321   test -z "$as_dir" && as_dir=.
22322   for ac_exec_ext in '' $ac_executable_extensions; do
22323   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22324     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
22325     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22326     break 2
22327   fi
22328 done
22329 done
22330
22331 fi
22332 fi
22333 CC=$ac_cv_prog_CC
22334 if test -n "$CC"; then
22335   echo "$as_me:$LINENO: result: $CC" >&5
22336 echo "${ECHO_T}$CC" >&6
22337 else
22338   echo "$as_me:$LINENO: result: no" >&5
22339 echo "${ECHO_T}no" >&6
22340 fi
22341
22342     test -n "$CC" && break
22343   done
22344 fi
22345 if test -z "$CC"; then
22346   ac_ct_CC=$CC
22347   for ac_prog in cl
22348 do
22349   # Extract the first word of "$ac_prog", so it can be a program name with args.
22350 set dummy $ac_prog; ac_word=$2
22351 echo "$as_me:$LINENO: checking for $ac_word" >&5
22352 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22353 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
22354   echo $ECHO_N "(cached) $ECHO_C" >&6
22355 else
22356   if test -n "$ac_ct_CC"; then
22357   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
22358 else
22359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22360 for as_dir in $PATH
22361 do
22362   IFS=$as_save_IFS
22363   test -z "$as_dir" && as_dir=.
22364   for ac_exec_ext in '' $ac_executable_extensions; do
22365   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22366     ac_cv_prog_ac_ct_CC="$ac_prog"
22367     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22368     break 2
22369   fi
22370 done
22371 done
22372
22373 fi
22374 fi
22375 ac_ct_CC=$ac_cv_prog_ac_ct_CC
22376 if test -n "$ac_ct_CC"; then
22377   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
22378 echo "${ECHO_T}$ac_ct_CC" >&6
22379 else
22380   echo "$as_me:$LINENO: result: no" >&5
22381 echo "${ECHO_T}no" >&6
22382 fi
22383
22384   test -n "$ac_ct_CC" && break
22385 done
22386
22387   CC=$ac_ct_CC
22388 fi
22389
22390 fi
22391
22392
22393 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
22394 See \`config.log' for more details." >&5
22395 echo "$as_me: error: no acceptable C compiler found in \$PATH
22396 See \`config.log' for more details." >&2;}
22397    { (exit 1); exit 1; }; }
22398
22399 # Provide some information about the compiler.
22400 echo "$as_me:$LINENO:" \
22401      "checking for C compiler version" >&5
22402 ac_compiler=`set X $ac_compile; echo $2`
22403 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
22404   (eval $ac_compiler --version </dev/null >&5) 2>&5
22405   ac_status=$?
22406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22407   (exit $ac_status); }
22408 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
22409   (eval $ac_compiler -v </dev/null >&5) 2>&5
22410   ac_status=$?
22411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22412   (exit $ac_status); }
22413 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
22414   (eval $ac_compiler -V </dev/null >&5) 2>&5
22415   ac_status=$?
22416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22417   (exit $ac_status); }
22418
22419 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
22420 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
22421 if test "${ac_cv_c_compiler_gnu+set}" = set; then
22422   echo $ECHO_N "(cached) $ECHO_C" >&6
22423 else
22424   cat >conftest.$ac_ext <<_ACEOF
22425 /* confdefs.h.  */
22426 _ACEOF
22427 cat confdefs.h >>conftest.$ac_ext
22428 cat >>conftest.$ac_ext <<_ACEOF
22429 /* end confdefs.h.  */
22430
22431 int
22432 main ()
22433 {
22434 #ifndef __GNUC__
22435        choke me
22436 #endif
22437
22438   ;
22439   return 0;
22440 }
22441 _ACEOF
22442 rm -f conftest.$ac_objext
22443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22444   (eval $ac_compile) 2>conftest.er1
22445   ac_status=$?
22446   grep -v '^ *+' conftest.er1 >conftest.err
22447   rm -f conftest.er1
22448   cat conftest.err >&5
22449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22450   (exit $ac_status); } &&
22451          { ac_try='test -z "$ac_c_werror_flag"
22452                          || test ! -s conftest.err'
22453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22454   (eval $ac_try) 2>&5
22455   ac_status=$?
22456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22457   (exit $ac_status); }; } &&
22458          { ac_try='test -s conftest.$ac_objext'
22459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22460   (eval $ac_try) 2>&5
22461   ac_status=$?
22462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22463   (exit $ac_status); }; }; then
22464   ac_compiler_gnu=yes
22465 else
22466   echo "$as_me: failed program was:" >&5
22467 sed 's/^/| /' conftest.$ac_ext >&5
22468
22469 ac_compiler_gnu=no
22470 fi
22471 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22472 ac_cv_c_compiler_gnu=$ac_compiler_gnu
22473
22474 fi
22475 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
22476 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
22477 GCC=`test $ac_compiler_gnu = yes && echo yes`
22478 ac_test_CFLAGS=${CFLAGS+set}
22479 ac_save_CFLAGS=$CFLAGS
22480 CFLAGS="-g"
22481 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
22482 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
22483 if test "${ac_cv_prog_cc_g+set}" = set; then
22484   echo $ECHO_N "(cached) $ECHO_C" >&6
22485 else
22486   cat >conftest.$ac_ext <<_ACEOF
22487 /* confdefs.h.  */
22488 _ACEOF
22489 cat confdefs.h >>conftest.$ac_ext
22490 cat >>conftest.$ac_ext <<_ACEOF
22491 /* end confdefs.h.  */
22492
22493 int
22494 main ()
22495 {
22496
22497   ;
22498   return 0;
22499 }
22500 _ACEOF
22501 rm -f conftest.$ac_objext
22502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22503   (eval $ac_compile) 2>conftest.er1
22504   ac_status=$?
22505   grep -v '^ *+' conftest.er1 >conftest.err
22506   rm -f conftest.er1
22507   cat conftest.err >&5
22508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22509   (exit $ac_status); } &&
22510          { ac_try='test -z "$ac_c_werror_flag"
22511                          || test ! -s conftest.err'
22512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22513   (eval $ac_try) 2>&5
22514   ac_status=$?
22515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22516   (exit $ac_status); }; } &&
22517          { ac_try='test -s conftest.$ac_objext'
22518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22519   (eval $ac_try) 2>&5
22520   ac_status=$?
22521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22522   (exit $ac_status); }; }; then
22523   ac_cv_prog_cc_g=yes
22524 else
22525   echo "$as_me: failed program was:" >&5
22526 sed 's/^/| /' conftest.$ac_ext >&5
22527
22528 ac_cv_prog_cc_g=no
22529 fi
22530 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22531 fi
22532 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
22533 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
22534 if test "$ac_test_CFLAGS" = set; then
22535   CFLAGS=$ac_save_CFLAGS
22536 elif test $ac_cv_prog_cc_g = yes; then
22537   if test "$GCC" = yes; then
22538     CFLAGS="-g -O2"
22539   else
22540     CFLAGS="-g"
22541   fi
22542 else
22543   if test "$GCC" = yes; then
22544     CFLAGS="-O2"
22545   else
22546     CFLAGS=
22547   fi
22548 fi
22549 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
22550 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
22551 if test "${ac_cv_prog_cc_stdc+set}" = set; then
22552   echo $ECHO_N "(cached) $ECHO_C" >&6
22553 else
22554   ac_cv_prog_cc_stdc=no
22555 ac_save_CC=$CC
22556 cat >conftest.$ac_ext <<_ACEOF
22557 /* confdefs.h.  */
22558 _ACEOF
22559 cat confdefs.h >>conftest.$ac_ext
22560 cat >>conftest.$ac_ext <<_ACEOF
22561 /* end confdefs.h.  */
22562 #include <stdarg.h>
22563 #include <stdio.h>
22564 #include <sys/types.h>
22565 #include <sys/stat.h>
22566 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
22567 struct buf { int x; };
22568 FILE * (*rcsopen) (struct buf *, struct stat *, int);
22569 static char *e (p, i)
22570      char **p;
22571      int i;
22572 {
22573   return p[i];
22574 }
22575 static char *f (char * (*g) (char **, int), char **p, ...)
22576 {
22577   char *s;
22578   va_list v;
22579   va_start (v,p);
22580   s = g (p, va_arg (v,int));
22581   va_end (v);
22582   return s;
22583 }
22584
22585 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
22586    function prototypes and stuff, but not '\xHH' hex character constants.
22587    These don't provoke an error unfortunately, instead are silently treated
22588    as 'x'.  The following induces an error, until -std1 is added to get
22589    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
22590    array size at least.  It's necessary to write '\x00'==0 to get something
22591    that's true only with -std1.  */
22592 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
22593
22594 int test (int i, double x);
22595 struct s1 {int (*f) (int a);};
22596 struct s2 {int (*f) (double a);};
22597 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
22598 int argc;
22599 char **argv;
22600 int
22601 main ()
22602 {
22603 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
22604   ;
22605   return 0;
22606 }
22607 _ACEOF
22608 # Don't try gcc -ansi; that turns off useful extensions and
22609 # breaks some systems' header files.
22610 # AIX                   -qlanglvl=ansi
22611 # Ultrix and OSF/1      -std1
22612 # HP-UX 10.20 and later -Ae
22613 # HP-UX older versions  -Aa -D_HPUX_SOURCE
22614 # SVR4                  -Xc -D__EXTENSIONS__
22615 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
22616 do
22617   CC="$ac_save_CC $ac_arg"
22618   rm -f conftest.$ac_objext
22619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22620   (eval $ac_compile) 2>conftest.er1
22621   ac_status=$?
22622   grep -v '^ *+' conftest.er1 >conftest.err
22623   rm -f conftest.er1
22624   cat conftest.err >&5
22625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22626   (exit $ac_status); } &&
22627          { ac_try='test -z "$ac_c_werror_flag"
22628                          || test ! -s conftest.err'
22629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22630   (eval $ac_try) 2>&5
22631   ac_status=$?
22632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22633   (exit $ac_status); }; } &&
22634          { ac_try='test -s conftest.$ac_objext'
22635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22636   (eval $ac_try) 2>&5
22637   ac_status=$?
22638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22639   (exit $ac_status); }; }; then
22640   ac_cv_prog_cc_stdc=$ac_arg
22641 break
22642 else
22643   echo "$as_me: failed program was:" >&5
22644 sed 's/^/| /' conftest.$ac_ext >&5
22645
22646 fi
22647 rm -f conftest.err conftest.$ac_objext
22648 done
22649 rm -f conftest.$ac_ext conftest.$ac_objext
22650 CC=$ac_save_CC
22651
22652 fi
22653
22654 case "x$ac_cv_prog_cc_stdc" in
22655   x|xno)
22656     echo "$as_me:$LINENO: result: none needed" >&5
22657 echo "${ECHO_T}none needed" >&6 ;;
22658   *)
22659     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
22660 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
22661     CC="$CC $ac_cv_prog_cc_stdc" ;;
22662 esac
22663
22664 # Some people use a C++ compiler to compile C.  Since we use `exit',
22665 # in C++ we need to declare it.  In case someone uses the same compiler
22666 # for both compiling C and C++ we need to have the C++ compiler decide
22667 # the declaration of exit, since it's the most demanding environment.
22668 cat >conftest.$ac_ext <<_ACEOF
22669 #ifndef __cplusplus
22670   choke me
22671 #endif
22672 _ACEOF
22673 rm -f conftest.$ac_objext
22674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22675   (eval $ac_compile) 2>conftest.er1
22676   ac_status=$?
22677   grep -v '^ *+' conftest.er1 >conftest.err
22678   rm -f conftest.er1
22679   cat conftest.err >&5
22680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22681   (exit $ac_status); } &&
22682          { ac_try='test -z "$ac_c_werror_flag"
22683                          || test ! -s conftest.err'
22684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22685   (eval $ac_try) 2>&5
22686   ac_status=$?
22687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22688   (exit $ac_status); }; } &&
22689          { ac_try='test -s conftest.$ac_objext'
22690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22691   (eval $ac_try) 2>&5
22692   ac_status=$?
22693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22694   (exit $ac_status); }; }; then
22695   for ac_declaration in \
22696    '' \
22697    'extern "C" void std::exit (int) throw (); using std::exit;' \
22698    'extern "C" void std::exit (int); using std::exit;' \
22699    'extern "C" void exit (int) throw ();' \
22700    'extern "C" void exit (int);' \
22701    'void exit (int);'
22702 do
22703   cat >conftest.$ac_ext <<_ACEOF
22704 /* confdefs.h.  */
22705 _ACEOF
22706 cat confdefs.h >>conftest.$ac_ext
22707 cat >>conftest.$ac_ext <<_ACEOF
22708 /* end confdefs.h.  */
22709 $ac_declaration
22710 #include <stdlib.h>
22711 int
22712 main ()
22713 {
22714 exit (42);
22715   ;
22716   return 0;
22717 }
22718 _ACEOF
22719 rm -f conftest.$ac_objext
22720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22721   (eval $ac_compile) 2>conftest.er1
22722   ac_status=$?
22723   grep -v '^ *+' conftest.er1 >conftest.err
22724   rm -f conftest.er1
22725   cat conftest.err >&5
22726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22727   (exit $ac_status); } &&
22728          { ac_try='test -z "$ac_c_werror_flag"
22729                          || test ! -s conftest.err'
22730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22731   (eval $ac_try) 2>&5
22732   ac_status=$?
22733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22734   (exit $ac_status); }; } &&
22735          { ac_try='test -s conftest.$ac_objext'
22736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22737   (eval $ac_try) 2>&5
22738   ac_status=$?
22739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22740   (exit $ac_status); }; }; then
22741   :
22742 else
22743   echo "$as_me: failed program was:" >&5
22744 sed 's/^/| /' conftest.$ac_ext >&5
22745
22746 continue
22747 fi
22748 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22749   cat >conftest.$ac_ext <<_ACEOF
22750 /* confdefs.h.  */
22751 _ACEOF
22752 cat confdefs.h >>conftest.$ac_ext
22753 cat >>conftest.$ac_ext <<_ACEOF
22754 /* end confdefs.h.  */
22755 $ac_declaration
22756 int
22757 main ()
22758 {
22759 exit (42);
22760   ;
22761   return 0;
22762 }
22763 _ACEOF
22764 rm -f conftest.$ac_objext
22765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22766   (eval $ac_compile) 2>conftest.er1
22767   ac_status=$?
22768   grep -v '^ *+' conftest.er1 >conftest.err
22769   rm -f conftest.er1
22770   cat conftest.err >&5
22771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22772   (exit $ac_status); } &&
22773          { ac_try='test -z "$ac_c_werror_flag"
22774                          || test ! -s conftest.err'
22775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22776   (eval $ac_try) 2>&5
22777   ac_status=$?
22778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22779   (exit $ac_status); }; } &&
22780          { ac_try='test -s conftest.$ac_objext'
22781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22782   (eval $ac_try) 2>&5
22783   ac_status=$?
22784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22785   (exit $ac_status); }; }; then
22786   break
22787 else
22788   echo "$as_me: failed program was:" >&5
22789 sed 's/^/| /' conftest.$ac_ext >&5
22790
22791 fi
22792 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22793 done
22794 rm -f conftest*
22795 if test -n "$ac_declaration"; then
22796   echo '#ifdef __cplusplus' >>confdefs.h
22797   echo $ac_declaration      >>confdefs.h
22798   echo '#endif'             >>confdefs.h
22799 fi
22800
22801 else
22802   echo "$as_me: failed program was:" >&5
22803 sed 's/^/| /' conftest.$ac_ext >&5
22804
22805 fi
22806 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22807 ac_ext=c
22808 ac_cpp='$CPP $CPPFLAGS'
22809 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22810 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22811 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22812
22813 depcc="$CC"   am_compiler_list=
22814
22815 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
22816 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
22817 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
22818   echo $ECHO_N "(cached) $ECHO_C" >&6
22819 else
22820   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
22821   # We make a subdir and do the tests there.  Otherwise we can end up
22822   # making bogus files that we don't know about and never remove.  For
22823   # instance it was reported that on HP-UX the gcc test will end up
22824   # making a dummy file named `D' -- because `-MD' means `put the output
22825   # in D'.
22826   mkdir conftest.dir
22827   # Copy depcomp to subdir because otherwise we won't find it if we're
22828   # using a relative directory.
22829   cp "$am_depcomp" conftest.dir
22830   cd conftest.dir
22831   # We will build objects and dependencies in a subdirectory because
22832   # it helps to detect inapplicable dependency modes.  For instance
22833   # both Tru64's cc and ICC support -MD to output dependencies as a
22834   # side effect of compilation, but ICC will put the dependencies in
22835   # the current directory while Tru64 will put them in the object
22836   # directory.
22837   mkdir sub
22838
22839   am_cv_CC_dependencies_compiler_type=none
22840   if test "$am_compiler_list" = ""; then
22841      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
22842   fi
22843   for depmode in $am_compiler_list; do
22844     # Setup a source with many dependencies, because some compilers
22845     # like to wrap large dependency lists on column 80 (with \), and
22846     # we should not choose a depcomp mode which is confused by this.
22847     #
22848     # We need to recreate these files for each test, as the compiler may
22849     # overwrite some of them when testing with obscure command lines.
22850     # This happens at least with the AIX C compiler.
22851     : > sub/conftest.c
22852     for i in 1 2 3 4 5 6; do
22853       echo '#include "conftst'$i'.h"' >> sub/conftest.c
22854       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
22855       # Solaris 8's {/usr,}/bin/sh.
22856       touch sub/conftst$i.h
22857     done
22858     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
22859
22860     case $depmode in
22861     nosideeffect)
22862       # after this tag, mechanisms are not by side-effect, so they'll
22863       # only be used when explicitly requested
22864       if test "x$enable_dependency_tracking" = xyes; then
22865         continue
22866       else
22867         break
22868       fi
22869       ;;
22870     none) break ;;
22871     esac
22872     # We check with `-c' and `-o' for the sake of the "dashmstdout"
22873     # mode.  It turns out that the SunPro C++ compiler does not properly
22874     # handle `-M -o', and we need to detect this.
22875     if depmode=$depmode \
22876        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
22877        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
22878        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
22879          >/dev/null 2>conftest.err &&
22880        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
22881        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
22882        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
22883       # icc doesn't choke on unknown options, it will just issue warnings
22884       # or remarks (even with -Werror).  So we grep stderr for any message
22885       # that says an option was ignored or not supported.
22886       # When given -MP, icc 7.0 and 7.1 complain thusly:
22887       #   icc: Command line warning: ignoring option '-M'; no argument required
22888       # The diagnosis changed in icc 8.0:
22889       #   icc: Command line remark: option '-MP' not supported
22890       if (grep 'ignoring option' conftest.err ||
22891           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
22892         am_cv_CC_dependencies_compiler_type=$depmode
22893         break
22894       fi
22895     fi
22896   done
22897
22898   cd ..
22899   rm -rf conftest.dir
22900 else
22901   am_cv_CC_dependencies_compiler_type=none
22902 fi
22903
22904 fi
22905 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
22906 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
22907 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
22908
22909
22910
22911 if
22912   test "x$enable_dependency_tracking" != xno \
22913   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
22914   am__fastdepCC_TRUE=
22915   am__fastdepCC_FALSE='#'
22916 else
22917   am__fastdepCC_TRUE='#'
22918   am__fastdepCC_FALSE=
22919 fi
22920
22921
22922 if test "X${ac_cv_prog_cc_stdc}" = "Xno" ; then
22923         { { echo "$as_me:$LINENO: error: OpenLDAP requires compiler to support STDC constructs." >&5
22924 echo "$as_me: error: OpenLDAP requires compiler to support STDC constructs." >&2;}
22925    { (exit 1); exit 1; }; }
22926 fi
22927
22928 # test for make depend flag
22929 OL_MKDEP=
22930 OL_MKDEP_FLAGS=
22931 if test -z "${MKDEP}"; then
22932         OL_MKDEP="${CC-cc}"
22933         if test -z "${MKDEP_FLAGS}"; then
22934                 echo "$as_me:$LINENO: checking for ${OL_MKDEP} depend flag" >&5
22935 echo $ECHO_N "checking for ${OL_MKDEP} depend flag... $ECHO_C" >&6
22936 if test "${ol_cv_mkdep+set}" = set; then
22937   echo $ECHO_N "(cached) $ECHO_C" >&6
22938 else
22939
22940                         ol_cv_mkdep=no
22941                         for flag in "-M" "-xM"; do
22942                                 cat > conftest.c <<EOF
22943  noCode;
22944 EOF
22945                                 if { ac_try='$OL_MKDEP $flag conftest.c'
22946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22947   (eval $ac_try) 2>&5
22948   ac_status=$?
22949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22950   (exit $ac_status); }; } \
22951                                         | egrep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
22952                                 then
22953                                         if test ! -f conftest."${ac_object}" ; then
22954                                                 ol_cv_mkdep=$flag
22955                                                 OL_MKDEP_FLAGS="$flag"
22956                                                 break
22957                                         fi
22958                                 fi
22959                         done
22960                         rm -f conftest*
22961
22962 fi
22963 echo "$as_me:$LINENO: result: $ol_cv_mkdep" >&5
22964 echo "${ECHO_T}$ol_cv_mkdep" >&6
22965         else
22966                 cc_cv_mkdep=yes
22967                 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
22968         fi
22969 else
22970         cc_cv_mkdep=yes
22971         OL_MKDEP="${MKDEP}"
22972         OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
22973 fi
22974
22975
22976
22977 if test "${ol_cv_mkdep}" = no ; then
22978         # this will soon become an error
22979         { echo "$as_me:$LINENO: WARNING: do not know how to generate dependencies" >&5
22980 echo "$as_me: WARNING: do not know how to generate dependencies" >&2;}
22981 fi
22982
22983 echo "$as_me:$LINENO: checking for afopen in -ls" >&5
22984 echo $ECHO_N "checking for afopen in -ls... $ECHO_C" >&6
22985 if test "${ac_cv_lib_s_afopen+set}" = set; then
22986   echo $ECHO_N "(cached) $ECHO_C" >&6
22987 else
22988   ac_check_lib_save_LIBS=$LIBS
22989 LIBS="-ls  $LIBS"
22990 cat >conftest.$ac_ext <<_ACEOF
22991 /* confdefs.h.  */
22992 _ACEOF
22993 cat confdefs.h >>conftest.$ac_ext
22994 cat >>conftest.$ac_ext <<_ACEOF
22995 /* end confdefs.h.  */
22996
22997 /* Override any gcc2 internal prototype to avoid an error.  */
22998 #ifdef __cplusplus
22999 extern "C"
23000 #endif
23001 /* We use char because int might match the return type of a gcc2
23002    builtin and then its argument prototype would still apply.  */
23003 char afopen ();
23004 int
23005 main ()
23006 {
23007 afopen ();
23008   ;
23009   return 0;
23010 }
23011 _ACEOF
23012 rm -f conftest.$ac_objext conftest$ac_exeext
23013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23014   (eval $ac_link) 2>conftest.er1
23015   ac_status=$?
23016   grep -v '^ *+' conftest.er1 >conftest.err
23017   rm -f conftest.er1
23018   cat conftest.err >&5
23019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23020   (exit $ac_status); } &&
23021          { ac_try='test -z "$ac_c_werror_flag"
23022                          || test ! -s conftest.err'
23023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23024   (eval $ac_try) 2>&5
23025   ac_status=$?
23026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23027   (exit $ac_status); }; } &&
23028          { ac_try='test -s conftest$ac_exeext'
23029   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23030   (eval $ac_try) 2>&5
23031   ac_status=$?
23032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23033   (exit $ac_status); }; }; then
23034   ac_cv_lib_s_afopen=yes
23035 else
23036   echo "$as_me: failed program was:" >&5
23037 sed 's/^/| /' conftest.$ac_ext >&5
23038
23039 ac_cv_lib_s_afopen=no
23040 fi
23041 rm -f conftest.err conftest.$ac_objext \
23042       conftest$ac_exeext conftest.$ac_ext
23043 LIBS=$ac_check_lib_save_LIBS
23044 fi
23045 echo "$as_me:$LINENO: result: $ac_cv_lib_s_afopen" >&5
23046 echo "${ECHO_T}$ac_cv_lib_s_afopen" >&6
23047 if test $ac_cv_lib_s_afopen = yes; then
23048
23049         AUTH_LIBS=-ls
23050
23051 cat >>confdefs.h <<\_ACEOF
23052 #define HAVE_AIX_SECURITY 1
23053 _ACEOF
23054
23055
23056 fi
23057
23058
23059 case "$target" in
23060 *-ibm-openedition)
23061         ac_cv_func_getopt=no
23062
23063 cat >>confdefs.h <<\_ACEOF
23064 #define BOTH_STRINGS_H 1
23065 _ACEOF
23066
23067         ;;
23068 esac
23069
23070 ol_link_modules=no
23071 WITH_MODULES_ENABLED=no
23072 if test $ol_enable_modules != no ; then
23073
23074 for ac_header in ltdl.h
23075 do
23076 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23077 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23078   echo "$as_me:$LINENO: checking for $ac_header" >&5
23079 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23080 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23081   echo $ECHO_N "(cached) $ECHO_C" >&6
23082 fi
23083 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23084 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23085 else
23086   # Is the header compilable?
23087 echo "$as_me:$LINENO: checking $ac_header usability" >&5
23088 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23089 cat >conftest.$ac_ext <<_ACEOF
23090 /* confdefs.h.  */
23091 _ACEOF
23092 cat confdefs.h >>conftest.$ac_ext
23093 cat >>conftest.$ac_ext <<_ACEOF
23094 /* end confdefs.h.  */
23095 $ac_includes_default
23096 #include <$ac_header>
23097 _ACEOF
23098 rm -f conftest.$ac_objext
23099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23100   (eval $ac_compile) 2>conftest.er1
23101   ac_status=$?
23102   grep -v '^ *+' conftest.er1 >conftest.err
23103   rm -f conftest.er1
23104   cat conftest.err >&5
23105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23106   (exit $ac_status); } &&
23107          { ac_try='test -z "$ac_c_werror_flag"
23108                          || test ! -s conftest.err'
23109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23110   (eval $ac_try) 2>&5
23111   ac_status=$?
23112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23113   (exit $ac_status); }; } &&
23114          { ac_try='test -s conftest.$ac_objext'
23115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23116   (eval $ac_try) 2>&5
23117   ac_status=$?
23118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23119   (exit $ac_status); }; }; then
23120   ac_header_compiler=yes
23121 else
23122   echo "$as_me: failed program was:" >&5
23123 sed 's/^/| /' conftest.$ac_ext >&5
23124
23125 ac_header_compiler=no
23126 fi
23127 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23128 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23129 echo "${ECHO_T}$ac_header_compiler" >&6
23130
23131 # Is the header present?
23132 echo "$as_me:$LINENO: checking $ac_header presence" >&5
23133 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23134 cat >conftest.$ac_ext <<_ACEOF
23135 /* confdefs.h.  */
23136 _ACEOF
23137 cat confdefs.h >>conftest.$ac_ext
23138 cat >>conftest.$ac_ext <<_ACEOF
23139 /* end confdefs.h.  */
23140 #include <$ac_header>
23141 _ACEOF
23142 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23143   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23144   ac_status=$?
23145   grep -v '^ *+' conftest.er1 >conftest.err
23146   rm -f conftest.er1
23147   cat conftest.err >&5
23148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23149   (exit $ac_status); } >/dev/null; then
23150   if test -s conftest.err; then
23151     ac_cpp_err=$ac_c_preproc_warn_flag
23152     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23153   else
23154     ac_cpp_err=
23155   fi
23156 else
23157   ac_cpp_err=yes
23158 fi
23159 if test -z "$ac_cpp_err"; then
23160   ac_header_preproc=yes
23161 else
23162   echo "$as_me: failed program was:" >&5
23163 sed 's/^/| /' conftest.$ac_ext >&5
23164
23165   ac_header_preproc=no
23166 fi
23167 rm -f conftest.err conftest.$ac_ext
23168 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23169 echo "${ECHO_T}$ac_header_preproc" >&6
23170
23171 # So?  What about this header?
23172 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23173   yes:no: )
23174     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23175 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23176     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23177 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23178     ac_header_preproc=yes
23179     ;;
23180   no:yes:* )
23181     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23182 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23183     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23184 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23185     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23186 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23187     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23188 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23189     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23190 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23191     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23192 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23193     (
23194       cat <<\_ASBOX
23195 ## ------------------------------------------ ##
23196 ## Report this to the AC_PACKAGE_NAME lists.  ##
23197 ## ------------------------------------------ ##
23198 _ASBOX
23199     ) |
23200       sed "s/^/$as_me: WARNING:     /" >&2
23201     ;;
23202 esac
23203 echo "$as_me:$LINENO: checking for $ac_header" >&5
23204 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23205 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23206   echo $ECHO_N "(cached) $ECHO_C" >&6
23207 else
23208   eval "$as_ac_Header=\$ac_header_preproc"
23209 fi
23210 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23211 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23212
23213 fi
23214 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23215   cat >>confdefs.h <<_ACEOF
23216 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23217 _ACEOF
23218
23219 fi
23220
23221 done
23222
23223
23224         if test $ac_cv_header_ltdl_h = no ; then
23225                 { { echo "$as_me:$LINENO: error: could not locate libtool ltdl.h" >&5
23226 echo "$as_me: error: could not locate libtool ltdl.h" >&2;}
23227    { (exit 1); exit 1; }; }
23228         fi
23229
23230         echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
23231 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
23232 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
23233   echo $ECHO_N "(cached) $ECHO_C" >&6
23234 else
23235   ac_check_lib_save_LIBS=$LIBS
23236 LIBS="-lltdl  $LIBS"
23237 cat >conftest.$ac_ext <<_ACEOF
23238 /* confdefs.h.  */
23239 _ACEOF
23240 cat confdefs.h >>conftest.$ac_ext
23241 cat >>conftest.$ac_ext <<_ACEOF
23242 /* end confdefs.h.  */
23243
23244 /* Override any gcc2 internal prototype to avoid an error.  */
23245 #ifdef __cplusplus
23246 extern "C"
23247 #endif
23248 /* We use char because int might match the return type of a gcc2
23249    builtin and then its argument prototype would still apply.  */
23250 char lt_dlinit ();
23251 int
23252 main ()
23253 {
23254 lt_dlinit ();
23255   ;
23256   return 0;
23257 }
23258 _ACEOF
23259 rm -f conftest.$ac_objext conftest$ac_exeext
23260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23261   (eval $ac_link) 2>conftest.er1
23262   ac_status=$?
23263   grep -v '^ *+' conftest.er1 >conftest.err
23264   rm -f conftest.er1
23265   cat conftest.err >&5
23266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23267   (exit $ac_status); } &&
23268          { ac_try='test -z "$ac_c_werror_flag"
23269                          || test ! -s conftest.err'
23270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23271   (eval $ac_try) 2>&5
23272   ac_status=$?
23273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23274   (exit $ac_status); }; } &&
23275          { ac_try='test -s conftest$ac_exeext'
23276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23277   (eval $ac_try) 2>&5
23278   ac_status=$?
23279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23280   (exit $ac_status); }; }; then
23281   ac_cv_lib_ltdl_lt_dlinit=yes
23282 else
23283   echo "$as_me: failed program was:" >&5
23284 sed 's/^/| /' conftest.$ac_ext >&5
23285
23286 ac_cv_lib_ltdl_lt_dlinit=no
23287 fi
23288 rm -f conftest.err conftest.$ac_objext \
23289       conftest$ac_exeext conftest.$ac_ext
23290 LIBS=$ac_check_lib_save_LIBS
23291 fi
23292 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
23293 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
23294 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
23295
23296                 MODULES_LIBS=-lltdl
23297
23298 cat >>confdefs.h <<\_ACEOF
23299 #define HAVE_LIBLTDL 1
23300 _ACEOF
23301
23302
23303 fi
23304
23305
23306         if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
23307                 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
23308 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
23309    { (exit 1); exit 1; }; }
23310         fi
23311         ol_link_modules=yes
23312         WITH_MODULES_ENABLED=yes
23313
23314 else
23315         for i in $Backends; do
23316                 eval "ol_tmp=\$ol_enable_$i"
23317                 if test $ol_tmp = mod ; then
23318                         { echo "$as_me:$LINENO: WARNING: building static $i backend" >&5
23319 echo "$as_me: WARNING: building static $i backend" >&2;}
23320                         eval "ol_enable_$i=yes"
23321                 fi
23322         done
23323         for i in $Overlays; do
23324                 eval "ol_tmp=\$ol_enable_$i"
23325                 if test $ol_tmp = mod ; then
23326                         { echo "$as_me:$LINENO: WARNING: building static $i overlay" >&5
23327 echo "$as_me: WARNING: building static $i overlay" >&2;}
23328                         eval "ol_enable_$i=yes"
23329                 fi
23330         done
23331 fi
23332
23333 # test for EBCDIC
23334 echo "$as_me:$LINENO: checking for EBCDIC" >&5
23335 echo $ECHO_N "checking for EBCDIC... $ECHO_C" >&6
23336 if test "${ol_cv_cpp_ebcdic+set}" = set; then
23337   echo $ECHO_N "(cached) $ECHO_C" >&6
23338 else
23339
23340         cat >conftest.$ac_ext <<_ACEOF
23341 /* confdefs.h.  */
23342 _ACEOF
23343 cat confdefs.h >>conftest.$ac_ext
23344 cat >>conftest.$ac_ext <<_ACEOF
23345 /* end confdefs.h.  */
23346
23347 #if !('M' == 0xd4)
23348 #include <__ASCII__/generate_error.h>
23349 #endif
23350
23351 _ACEOF
23352 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23353   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23354   ac_status=$?
23355   grep -v '^ *+' conftest.er1 >conftest.err
23356   rm -f conftest.er1
23357   cat conftest.err >&5
23358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23359   (exit $ac_status); } >/dev/null; then
23360   if test -s conftest.err; then
23361     ac_cpp_err=$ac_c_preproc_warn_flag
23362     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23363   else
23364     ac_cpp_err=
23365   fi
23366 else
23367   ac_cpp_err=yes
23368 fi
23369 if test -z "$ac_cpp_err"; then
23370   ol_cv_cpp_ebcdic=yes
23371 else
23372   echo "$as_me: failed program was:" >&5
23373 sed 's/^/| /' conftest.$ac_ext >&5
23374
23375   ol_cv_cpp_ebcdic=no
23376 fi
23377 rm -f conftest.err conftest.$ac_ext
23378 fi
23379 echo "$as_me:$LINENO: result: $ol_cv_cpp_ebcdic" >&5
23380 echo "${ECHO_T}$ol_cv_cpp_ebcdic" >&6
23381 if test $ol_cv_cpp_ebcdic = yes ; then
23382
23383 cat >>confdefs.h <<\_ACEOF
23384 #define HAVE_EBCDIC 1
23385 _ACEOF
23386
23387 fi
23388
23389 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
23390 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
23391 if test "${ol_cv_header_stdc+set}" = set; then
23392   echo $ECHO_N "(cached) $ECHO_C" >&6
23393 else
23394   cat >conftest.$ac_ext <<_ACEOF
23395 /* confdefs.h.  */
23396 _ACEOF
23397 cat confdefs.h >>conftest.$ac_ext
23398 cat >>conftest.$ac_ext <<_ACEOF
23399 /* end confdefs.h.  */
23400 #include <stdlib.h>
23401 #include <stdarg.h>
23402 #include <string.h>
23403 #include <float.h>
23404 _ACEOF
23405 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23406   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23407   ac_status=$?
23408   grep -v '^ *+' conftest.er1 >conftest.err
23409   rm -f conftest.er1
23410   cat conftest.err >&5
23411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23412   (exit $ac_status); } >/dev/null; then
23413   if test -s conftest.err; then
23414     ac_cpp_err=$ac_c_preproc_warn_flag
23415     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23416   else
23417     ac_cpp_err=
23418   fi
23419 else
23420   ac_cpp_err=yes
23421 fi
23422 if test -z "$ac_cpp_err"; then
23423   ol_cv_header_stdc=yes
23424 else
23425   echo "$as_me: failed program was:" >&5
23426 sed 's/^/| /' conftest.$ac_ext >&5
23427
23428   ol_cv_header_stdc=no
23429 fi
23430 rm -f conftest.err conftest.$ac_ext
23431
23432 if test $ol_cv_header_stdc = yes; then
23433   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
23434 cat >conftest.$ac_ext <<_ACEOF
23435 /* confdefs.h.  */
23436 _ACEOF
23437 cat confdefs.h >>conftest.$ac_ext
23438 cat >>conftest.$ac_ext <<_ACEOF
23439 /* end confdefs.h.  */
23440 #include <string.h>
23441
23442 _ACEOF
23443 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23444   $EGREP "memchr" >/dev/null 2>&1; then
23445   :
23446 else
23447   ol_cv_header_stdc=no
23448 fi
23449 rm -f conftest*
23450
23451 fi
23452
23453 if test $ol_cv_header_stdc = yes; then
23454   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
23455 cat >conftest.$ac_ext <<_ACEOF
23456 /* confdefs.h.  */
23457 _ACEOF
23458 cat confdefs.h >>conftest.$ac_ext
23459 cat >>conftest.$ac_ext <<_ACEOF
23460 /* end confdefs.h.  */
23461 #include <stdlib.h>
23462
23463 _ACEOF
23464 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23465   $EGREP "free" >/dev/null 2>&1; then
23466   :
23467 else
23468   ol_cv_header_stdc=no
23469 fi
23470 rm -f conftest*
23471
23472 fi
23473
23474 if test $ol_cv_header_stdc = yes; then
23475   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
23476 if test "$cross_compiling" = yes; then
23477   :
23478 else
23479   cat >conftest.$ac_ext <<_ACEOF
23480 /* confdefs.h.  */
23481 _ACEOF
23482 cat confdefs.h >>conftest.$ac_ext
23483 cat >>conftest.$ac_ext <<_ACEOF
23484 /* end confdefs.h.  */
23485 #include <ctype.h>
23486 #ifndef HAVE_EBCDIC
23487 #       define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
23488 #       define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
23489 #else
23490 #       define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
23491                 || ('j' <= (c) && (c) <= 'r') \
23492                 || ('s' <= (c) && (c) <= 'z'))
23493 #       define TOUPPER(c)       (ISLOWER(c) ? ((c) | 0x40) : (c))
23494 #endif
23495 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
23496 int main () { int i; for (i = 0; i < 256; i++)
23497 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
23498 exit (0); }
23499
23500 _ACEOF
23501 rm -f conftest$ac_exeext
23502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23503   (eval $ac_link) 2>&5
23504   ac_status=$?
23505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23506   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23508   (eval $ac_try) 2>&5
23509   ac_status=$?
23510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23511   (exit $ac_status); }; }; then
23512   :
23513 else
23514   echo "$as_me: program exited with status $ac_status" >&5
23515 echo "$as_me: failed program was:" >&5
23516 sed 's/^/| /' conftest.$ac_ext >&5
23517
23518 ( exit $ac_status )
23519 ol_cv_header_stdc=no
23520 fi
23521 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23522 fi
23523 fi
23524 fi
23525 echo "$as_me:$LINENO: result: $ol_cv_header_stdc" >&5
23526 echo "${ECHO_T}$ol_cv_header_stdc" >&6
23527 if test $ol_cv_header_stdc = yes; then
23528   cat >>confdefs.h <<\_ACEOF
23529 #define STDC_HEADERS 1
23530 _ACEOF
23531
23532 fi
23533 ac_cv_header_stdc=disable
23534
23535
23536 if test $ol_cv_header_stdc != yes; then
23537         { echo "$as_me:$LINENO: WARNING: could not locate Standard C compliant headers" >&5
23538 echo "$as_me: WARNING: could not locate Standard C compliant headers" >&2;}
23539 fi
23540
23541
23542
23543
23544
23545
23546 ac_header_dirent=no
23547 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
23548   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
23549 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
23550 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
23551 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23552   echo $ECHO_N "(cached) $ECHO_C" >&6
23553 else
23554   cat >conftest.$ac_ext <<_ACEOF
23555 /* confdefs.h.  */
23556 _ACEOF
23557 cat confdefs.h >>conftest.$ac_ext
23558 cat >>conftest.$ac_ext <<_ACEOF
23559 /* end confdefs.h.  */
23560 #include <sys/types.h>
23561 #include <$ac_hdr>
23562
23563 int
23564 main ()
23565 {
23566 if ((DIR *) 0)
23567 return 0;
23568   ;
23569   return 0;
23570 }
23571 _ACEOF
23572 rm -f conftest.$ac_objext
23573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23574   (eval $ac_compile) 2>conftest.er1
23575   ac_status=$?
23576   grep -v '^ *+' conftest.er1 >conftest.err
23577   rm -f conftest.er1
23578   cat conftest.err >&5
23579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23580   (exit $ac_status); } &&
23581          { ac_try='test -z "$ac_c_werror_flag"
23582                          || test ! -s conftest.err'
23583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23584   (eval $ac_try) 2>&5
23585   ac_status=$?
23586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23587   (exit $ac_status); }; } &&
23588          { ac_try='test -s conftest.$ac_objext'
23589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23590   (eval $ac_try) 2>&5
23591   ac_status=$?
23592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23593   (exit $ac_status); }; }; then
23594   eval "$as_ac_Header=yes"
23595 else
23596   echo "$as_me: failed program was:" >&5
23597 sed 's/^/| /' conftest.$ac_ext >&5
23598
23599 eval "$as_ac_Header=no"
23600 fi
23601 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23602 fi
23603 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23604 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23605 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23606   cat >>confdefs.h <<_ACEOF
23607 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
23608 _ACEOF
23609
23610 ac_header_dirent=$ac_hdr; break
23611 fi
23612
23613 done
23614 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
23615 if test $ac_header_dirent = dirent.h; then
23616   echo "$as_me:$LINENO: checking for library containing opendir" >&5
23617 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
23618 if test "${ac_cv_search_opendir+set}" = set; then
23619   echo $ECHO_N "(cached) $ECHO_C" >&6
23620 else
23621   ac_func_search_save_LIBS=$LIBS
23622 ac_cv_search_opendir=no
23623 cat >conftest.$ac_ext <<_ACEOF
23624 /* confdefs.h.  */
23625 _ACEOF
23626 cat confdefs.h >>conftest.$ac_ext
23627 cat >>conftest.$ac_ext <<_ACEOF
23628 /* end confdefs.h.  */
23629
23630 /* Override any gcc2 internal prototype to avoid an error.  */
23631 #ifdef __cplusplus
23632 extern "C"
23633 #endif
23634 /* We use char because int might match the return type of a gcc2
23635    builtin and then its argument prototype would still apply.  */
23636 char opendir ();
23637 int
23638 main ()
23639 {
23640 opendir ();
23641   ;
23642   return 0;
23643 }
23644 _ACEOF
23645 rm -f conftest.$ac_objext conftest$ac_exeext
23646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23647   (eval $ac_link) 2>conftest.er1
23648   ac_status=$?
23649   grep -v '^ *+' conftest.er1 >conftest.err
23650   rm -f conftest.er1
23651   cat conftest.err >&5
23652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23653   (exit $ac_status); } &&
23654          { ac_try='test -z "$ac_c_werror_flag"
23655                          || test ! -s conftest.err'
23656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23657   (eval $ac_try) 2>&5
23658   ac_status=$?
23659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23660   (exit $ac_status); }; } &&
23661          { ac_try='test -s conftest$ac_exeext'
23662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23663   (eval $ac_try) 2>&5
23664   ac_status=$?
23665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23666   (exit $ac_status); }; }; then
23667   ac_cv_search_opendir="none required"
23668 else
23669   echo "$as_me: failed program was:" >&5
23670 sed 's/^/| /' conftest.$ac_ext >&5
23671
23672 fi
23673 rm -f conftest.err conftest.$ac_objext \
23674       conftest$ac_exeext conftest.$ac_ext
23675 if test "$ac_cv_search_opendir" = no; then
23676   for ac_lib in dir; do
23677     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
23678     cat >conftest.$ac_ext <<_ACEOF
23679 /* confdefs.h.  */
23680 _ACEOF
23681 cat confdefs.h >>conftest.$ac_ext
23682 cat >>conftest.$ac_ext <<_ACEOF
23683 /* end confdefs.h.  */
23684
23685 /* Override any gcc2 internal prototype to avoid an error.  */
23686 #ifdef __cplusplus
23687 extern "C"
23688 #endif
23689 /* We use char because int might match the return type of a gcc2
23690    builtin and then its argument prototype would still apply.  */
23691 char opendir ();
23692 int
23693 main ()
23694 {
23695 opendir ();
23696   ;
23697   return 0;
23698 }
23699 _ACEOF
23700 rm -f conftest.$ac_objext conftest$ac_exeext
23701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23702   (eval $ac_link) 2>conftest.er1
23703   ac_status=$?
23704   grep -v '^ *+' conftest.er1 >conftest.err
23705   rm -f conftest.er1
23706   cat conftest.err >&5
23707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23708   (exit $ac_status); } &&
23709          { ac_try='test -z "$ac_c_werror_flag"
23710                          || test ! -s conftest.err'
23711   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23712   (eval $ac_try) 2>&5
23713   ac_status=$?
23714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23715   (exit $ac_status); }; } &&
23716          { ac_try='test -s conftest$ac_exeext'
23717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23718   (eval $ac_try) 2>&5
23719   ac_status=$?
23720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23721   (exit $ac_status); }; }; then
23722   ac_cv_search_opendir="-l$ac_lib"
23723 break
23724 else
23725   echo "$as_me: failed program was:" >&5
23726 sed 's/^/| /' conftest.$ac_ext >&5
23727
23728 fi
23729 rm -f conftest.err conftest.$ac_objext \
23730       conftest$ac_exeext conftest.$ac_ext
23731   done
23732 fi
23733 LIBS=$ac_func_search_save_LIBS
23734 fi
23735 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
23736 echo "${ECHO_T}$ac_cv_search_opendir" >&6
23737 if test "$ac_cv_search_opendir" != no; then
23738   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
23739
23740 fi
23741
23742 else
23743   echo "$as_me:$LINENO: checking for library containing opendir" >&5
23744 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
23745 if test "${ac_cv_search_opendir+set}" = set; then
23746   echo $ECHO_N "(cached) $ECHO_C" >&6
23747 else
23748   ac_func_search_save_LIBS=$LIBS
23749 ac_cv_search_opendir=no
23750 cat >conftest.$ac_ext <<_ACEOF
23751 /* confdefs.h.  */
23752 _ACEOF
23753 cat confdefs.h >>conftest.$ac_ext
23754 cat >>conftest.$ac_ext <<_ACEOF
23755 /* end confdefs.h.  */
23756
23757 /* Override any gcc2 internal prototype to avoid an error.  */
23758 #ifdef __cplusplus
23759 extern "C"
23760 #endif
23761 /* We use char because int might match the return type of a gcc2
23762    builtin and then its argument prototype would still apply.  */
23763 char opendir ();
23764 int
23765 main ()
23766 {
23767 opendir ();
23768   ;
23769   return 0;
23770 }
23771 _ACEOF
23772 rm -f conftest.$ac_objext conftest$ac_exeext
23773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23774   (eval $ac_link) 2>conftest.er1
23775   ac_status=$?
23776   grep -v '^ *+' conftest.er1 >conftest.err
23777   rm -f conftest.er1
23778   cat conftest.err >&5
23779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23780   (exit $ac_status); } &&
23781          { ac_try='test -z "$ac_c_werror_flag"
23782                          || test ! -s conftest.err'
23783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23784   (eval $ac_try) 2>&5
23785   ac_status=$?
23786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23787   (exit $ac_status); }; } &&
23788          { ac_try='test -s conftest$ac_exeext'
23789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23790   (eval $ac_try) 2>&5
23791   ac_status=$?
23792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23793   (exit $ac_status); }; }; then
23794   ac_cv_search_opendir="none required"
23795 else
23796   echo "$as_me: failed program was:" >&5
23797 sed 's/^/| /' conftest.$ac_ext >&5
23798
23799 fi
23800 rm -f conftest.err conftest.$ac_objext \
23801       conftest$ac_exeext conftest.$ac_ext
23802 if test "$ac_cv_search_opendir" = no; then
23803   for ac_lib in x; do
23804     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
23805     cat >conftest.$ac_ext <<_ACEOF
23806 /* confdefs.h.  */
23807 _ACEOF
23808 cat confdefs.h >>conftest.$ac_ext
23809 cat >>conftest.$ac_ext <<_ACEOF
23810 /* end confdefs.h.  */
23811
23812 /* Override any gcc2 internal prototype to avoid an error.  */
23813 #ifdef __cplusplus
23814 extern "C"
23815 #endif
23816 /* We use char because int might match the return type of a gcc2
23817    builtin and then its argument prototype would still apply.  */
23818 char opendir ();
23819 int
23820 main ()
23821 {
23822 opendir ();
23823   ;
23824   return 0;
23825 }
23826 _ACEOF
23827 rm -f conftest.$ac_objext conftest$ac_exeext
23828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23829   (eval $ac_link) 2>conftest.er1
23830   ac_status=$?
23831   grep -v '^ *+' conftest.er1 >conftest.err
23832   rm -f conftest.er1
23833   cat conftest.err >&5
23834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23835   (exit $ac_status); } &&
23836          { ac_try='test -z "$ac_c_werror_flag"
23837                          || test ! -s conftest.err'
23838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23839   (eval $ac_try) 2>&5
23840   ac_status=$?
23841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23842   (exit $ac_status); }; } &&
23843          { ac_try='test -s conftest$ac_exeext'
23844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23845   (eval $ac_try) 2>&5
23846   ac_status=$?
23847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23848   (exit $ac_status); }; }; then
23849   ac_cv_search_opendir="-l$ac_lib"
23850 break
23851 else
23852   echo "$as_me: failed program was:" >&5
23853 sed 's/^/| /' conftest.$ac_ext >&5
23854
23855 fi
23856 rm -f conftest.err conftest.$ac_objext \
23857       conftest$ac_exeext conftest.$ac_ext
23858   done
23859 fi
23860 LIBS=$ac_func_search_save_LIBS
23861 fi
23862 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
23863 echo "${ECHO_T}$ac_cv_search_opendir" >&6
23864 if test "$ac_cv_search_opendir" != no; then
23865   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
23866
23867 fi
23868
23869 fi
23870
23871 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
23872 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
23873 if test "${ac_cv_header_sys_wait_h+set}" = set; then
23874   echo $ECHO_N "(cached) $ECHO_C" >&6
23875 else
23876   cat >conftest.$ac_ext <<_ACEOF
23877 /* confdefs.h.  */
23878 _ACEOF
23879 cat confdefs.h >>conftest.$ac_ext
23880 cat >>conftest.$ac_ext <<_ACEOF
23881 /* end confdefs.h.  */
23882 #include <sys/types.h>
23883 #include <sys/wait.h>
23884 #ifndef WEXITSTATUS
23885 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
23886 #endif
23887 #ifndef WIFEXITED
23888 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
23889 #endif
23890
23891 int
23892 main ()
23893 {
23894   int s;
23895   wait (&s);
23896   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
23897   ;
23898   return 0;
23899 }
23900 _ACEOF
23901 rm -f conftest.$ac_objext
23902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23903   (eval $ac_compile) 2>conftest.er1
23904   ac_status=$?
23905   grep -v '^ *+' conftest.er1 >conftest.err
23906   rm -f conftest.er1
23907   cat conftest.err >&5
23908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23909   (exit $ac_status); } &&
23910          { ac_try='test -z "$ac_c_werror_flag"
23911                          || test ! -s conftest.err'
23912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23913   (eval $ac_try) 2>&5
23914   ac_status=$?
23915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23916   (exit $ac_status); }; } &&
23917          { ac_try='test -s conftest.$ac_objext'
23918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23919   (eval $ac_try) 2>&5
23920   ac_status=$?
23921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23922   (exit $ac_status); }; }; then
23923   ac_cv_header_sys_wait_h=yes
23924 else
23925   echo "$as_me: failed program was:" >&5
23926 sed 's/^/| /' conftest.$ac_ext >&5
23927
23928 ac_cv_header_sys_wait_h=no
23929 fi
23930 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23931 fi
23932 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
23933 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
23934 if test $ac_cv_header_sys_wait_h = yes; then
23935
23936 cat >>confdefs.h <<\_ACEOF
23937 #define HAVE_SYS_WAIT_H 1
23938 _ACEOF
23939
23940 fi
23941
23942 echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
23943 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6
23944 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
23945   echo $ECHO_N "(cached) $ECHO_C" >&6
23946 else
23947   cat >conftest.$ac_ext <<_ACEOF
23948 /* confdefs.h.  */
23949 _ACEOF
23950 cat confdefs.h >>conftest.$ac_ext
23951 cat >>conftest.$ac_ext <<_ACEOF
23952 /* end confdefs.h.  */
23953 #include <sys/types.h>
23954 #include <termios.h>
23955 #ifdef TIOCGWINSZ
23956   yes
23957 #endif
23958
23959 _ACEOF
23960 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23961   $EGREP "yes" >/dev/null 2>&1; then
23962   ac_cv_sys_tiocgwinsz_in_termios_h=yes
23963 else
23964   ac_cv_sys_tiocgwinsz_in_termios_h=no
23965 fi
23966 rm -f conftest*
23967
23968 fi
23969 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
23970 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6
23971
23972 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
23973   echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
23974 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6
23975 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
23976   echo $ECHO_N "(cached) $ECHO_C" >&6
23977 else
23978   cat >conftest.$ac_ext <<_ACEOF
23979 /* confdefs.h.  */
23980 _ACEOF
23981 cat confdefs.h >>conftest.$ac_ext
23982 cat >>conftest.$ac_ext <<_ACEOF
23983 /* end confdefs.h.  */
23984 #include <sys/types.h>
23985 #include <sys/ioctl.h>
23986 #ifdef TIOCGWINSZ
23987   yes
23988 #endif
23989
23990 _ACEOF
23991 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23992   $EGREP "yes" >/dev/null 2>&1; then
23993   ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
23994 else
23995   ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
23996 fi
23997 rm -f conftest*
23998
23999 fi
24000 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
24001 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6
24002
24003   if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
24004
24005 cat >>confdefs.h <<\_ACEOF
24006 #define GWINSZ_IN_SYS_IOCTL 1
24007 _ACEOF
24008
24009   fi
24010 fi
24011
24012
24013
24014
24015
24016
24017
24018
24019
24020
24021
24022
24023
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 for ac_header in \
24063         arpa/inet.h             \
24064         arpa/nameser.h          \
24065         assert.h                \
24066         bits/types.h            \
24067         conio.h                 \
24068         crypt.h                 \
24069         direct.h                \
24070         errno.h                 \
24071         fcntl.h                 \
24072         filio.h                 \
24073         getopt.h                \
24074         grp.h                   \
24075         io.h                    \
24076         libutil.h               \
24077         limits.h                \
24078         locale.h                \
24079         netinet/tcp.h           \
24080         malloc.h                \
24081         memory.h                \
24082         psap.h                  \
24083         pwd.h                   \
24084         process.h               \
24085         resolv.h                \
24086         sgtty.h                 \
24087         shadow.h                \
24088         stddef.h                \
24089         string.h                \
24090         strings.h               \
24091         sysexits.h              \
24092         sys/file.h              \
24093         sys/filio.h             \
24094         sys/errno.h             \
24095         sys/ioctl.h             \
24096         sys/param.h             \
24097         sys/resource.h          \
24098         sys/select.h            \
24099         sys/socket.h            \
24100         sys/stat.h              \
24101         sys/syslog.h            \
24102         sys/time.h              \
24103         sys/types.h             \
24104         sys/ucred.h             \
24105         sys/uio.h               \
24106         syslog.h                \
24107         termios.h               \
24108         unistd.h                \
24109         utime.h                 \
24110         winsock.h               \
24111         winsock2.h              \
24112
24113 do
24114 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24115 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24116   echo "$as_me:$LINENO: checking for $ac_header" >&5
24117 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24118 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24119   echo $ECHO_N "(cached) $ECHO_C" >&6
24120 fi
24121 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24122 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24123 else
24124   # Is the header compilable?
24125 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24126 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24127 cat >conftest.$ac_ext <<_ACEOF
24128 /* confdefs.h.  */
24129 _ACEOF
24130 cat confdefs.h >>conftest.$ac_ext
24131 cat >>conftest.$ac_ext <<_ACEOF
24132 /* end confdefs.h.  */
24133 $ac_includes_default
24134 #include <$ac_header>
24135 _ACEOF
24136 rm -f conftest.$ac_objext
24137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24138   (eval $ac_compile) 2>conftest.er1
24139   ac_status=$?
24140   grep -v '^ *+' conftest.er1 >conftest.err
24141   rm -f conftest.er1
24142   cat conftest.err >&5
24143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24144   (exit $ac_status); } &&
24145          { ac_try='test -z "$ac_c_werror_flag"
24146                          || test ! -s conftest.err'
24147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24148   (eval $ac_try) 2>&5
24149   ac_status=$?
24150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24151   (exit $ac_status); }; } &&
24152          { ac_try='test -s conftest.$ac_objext'
24153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24154   (eval $ac_try) 2>&5
24155   ac_status=$?
24156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24157   (exit $ac_status); }; }; then
24158   ac_header_compiler=yes
24159 else
24160   echo "$as_me: failed program was:" >&5
24161 sed 's/^/| /' conftest.$ac_ext >&5
24162
24163 ac_header_compiler=no
24164 fi
24165 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24166 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24167 echo "${ECHO_T}$ac_header_compiler" >&6
24168
24169 # Is the header present?
24170 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24171 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24172 cat >conftest.$ac_ext <<_ACEOF
24173 /* confdefs.h.  */
24174 _ACEOF
24175 cat confdefs.h >>conftest.$ac_ext
24176 cat >>conftest.$ac_ext <<_ACEOF
24177 /* end confdefs.h.  */
24178 #include <$ac_header>
24179 _ACEOF
24180 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24181   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24182   ac_status=$?
24183   grep -v '^ *+' conftest.er1 >conftest.err
24184   rm -f conftest.er1
24185   cat conftest.err >&5
24186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24187   (exit $ac_status); } >/dev/null; then
24188   if test -s conftest.err; then
24189     ac_cpp_err=$ac_c_preproc_warn_flag
24190     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24191   else
24192     ac_cpp_err=
24193   fi
24194 else
24195   ac_cpp_err=yes
24196 fi
24197 if test -z "$ac_cpp_err"; then
24198   ac_header_preproc=yes
24199 else
24200   echo "$as_me: failed program was:" >&5
24201 sed 's/^/| /' conftest.$ac_ext >&5
24202
24203   ac_header_preproc=no
24204 fi
24205 rm -f conftest.err conftest.$ac_ext
24206 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24207 echo "${ECHO_T}$ac_header_preproc" >&6
24208
24209 # So?  What about this header?
24210 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24211   yes:no: )
24212     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24213 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24214     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24215 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24216     ac_header_preproc=yes
24217     ;;
24218   no:yes:* )
24219     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24220 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24221     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24222 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24223     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24224 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24225     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24226 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24227     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24228 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24229     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24230 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24231     (
24232       cat <<\_ASBOX
24233 ## ------------------------------------------ ##
24234 ## Report this to the AC_PACKAGE_NAME lists.  ##
24235 ## ------------------------------------------ ##
24236 _ASBOX
24237     ) |
24238       sed "s/^/$as_me: WARNING:     /" >&2
24239     ;;
24240 esac
24241 echo "$as_me:$LINENO: checking for $ac_header" >&5
24242 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24243 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24244   echo $ECHO_N "(cached) $ECHO_C" >&6
24245 else
24246   eval "$as_ac_Header=\$ac_header_preproc"
24247 fi
24248 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24249 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24250
24251 fi
24252 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24253   cat >>confdefs.h <<_ACEOF
24254 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24255 _ACEOF
24256
24257 fi
24258
24259 done
24260
24261
24262
24263
24264
24265 for ac_func in sigaction sigset
24266 do
24267 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24268 echo "$as_me:$LINENO: checking for $ac_func" >&5
24269 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24270 if eval "test \"\${$as_ac_var+set}\" = set"; then
24271   echo $ECHO_N "(cached) $ECHO_C" >&6
24272 else
24273   cat >conftest.$ac_ext <<_ACEOF
24274 /* confdefs.h.  */
24275 _ACEOF
24276 cat confdefs.h >>conftest.$ac_ext
24277 cat >>conftest.$ac_ext <<_ACEOF
24278 /* end confdefs.h.  */
24279 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24280    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24281 #define $ac_func innocuous_$ac_func
24282
24283 /* System header to define __stub macros and hopefully few prototypes,
24284     which can conflict with char $ac_func (); below.
24285     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24286     <limits.h> exists even on freestanding compilers.  */
24287
24288 #ifdef __STDC__
24289 # include <limits.h>
24290 #else
24291 # include <assert.h>
24292 #endif
24293
24294 #undef $ac_func
24295
24296 /* Override any gcc2 internal prototype to avoid an error.  */
24297 #ifdef __cplusplus
24298 extern "C"
24299 {
24300 #endif
24301 /* We use char because int might match the return type of a gcc2
24302    builtin and then its argument prototype would still apply.  */
24303 char $ac_func ();
24304 /* The GNU C library defines this for functions which it implements
24305     to always fail with ENOSYS.  Some functions are actually named
24306     something starting with __ and the normal name is an alias.  */
24307 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24308 choke me
24309 #else
24310 char (*f) () = $ac_func;
24311 #endif
24312 #ifdef __cplusplus
24313 }
24314 #endif
24315
24316 int
24317 main ()
24318 {
24319 return f != $ac_func;
24320   ;
24321   return 0;
24322 }
24323 _ACEOF
24324 rm -f conftest.$ac_objext conftest$ac_exeext
24325 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24326   (eval $ac_link) 2>conftest.er1
24327   ac_status=$?
24328   grep -v '^ *+' conftest.er1 >conftest.err
24329   rm -f conftest.er1
24330   cat conftest.err >&5
24331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24332   (exit $ac_status); } &&
24333          { ac_try='test -z "$ac_c_werror_flag"
24334                          || test ! -s conftest.err'
24335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24336   (eval $ac_try) 2>&5
24337   ac_status=$?
24338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24339   (exit $ac_status); }; } &&
24340          { ac_try='test -s conftest$ac_exeext'
24341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24342   (eval $ac_try) 2>&5
24343   ac_status=$?
24344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24345   (exit $ac_status); }; }; then
24346   eval "$as_ac_var=yes"
24347 else
24348   echo "$as_me: failed program was:" >&5
24349 sed 's/^/| /' conftest.$ac_ext >&5
24350
24351 eval "$as_ac_var=no"
24352 fi
24353 rm -f conftest.err conftest.$ac_objext \
24354       conftest$ac_exeext conftest.$ac_ext
24355 fi
24356 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24357 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24358 if test `eval echo '${'$as_ac_var'}'` = yes; then
24359   cat >>confdefs.h <<_ACEOF
24360 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24361 _ACEOF
24362
24363 fi
24364 done
24365
24366
24367 if test $ac_cv_func_sigaction = no && test $ac_cv_func_sigaction = no ; then
24368
24369 echo "$as_me:$LINENO: checking for sigset in -lV3" >&5
24370 echo $ECHO_N "checking for sigset in -lV3... $ECHO_C" >&6
24371 if test "${ac_cv_lib_V3_sigset+set}" = set; then
24372   echo $ECHO_N "(cached) $ECHO_C" >&6
24373 else
24374   ac_check_lib_save_LIBS=$LIBS
24375 LIBS="-lV3  $LIBS"
24376 cat >conftest.$ac_ext <<_ACEOF
24377 /* confdefs.h.  */
24378 _ACEOF
24379 cat confdefs.h >>conftest.$ac_ext
24380 cat >>conftest.$ac_ext <<_ACEOF
24381 /* end confdefs.h.  */
24382
24383 /* Override any gcc2 internal prototype to avoid an error.  */
24384 #ifdef __cplusplus
24385 extern "C"
24386 #endif
24387 /* We use char because int might match the return type of a gcc2
24388    builtin and then its argument prototype would still apply.  */
24389 char sigset ();
24390 int
24391 main ()
24392 {
24393 sigset ();
24394   ;
24395   return 0;
24396 }
24397 _ACEOF
24398 rm -f conftest.$ac_objext conftest$ac_exeext
24399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24400   (eval $ac_link) 2>conftest.er1
24401   ac_status=$?
24402   grep -v '^ *+' conftest.er1 >conftest.err
24403   rm -f conftest.er1
24404   cat conftest.err >&5
24405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24406   (exit $ac_status); } &&
24407          { ac_try='test -z "$ac_c_werror_flag"
24408                          || test ! -s conftest.err'
24409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24410   (eval $ac_try) 2>&5
24411   ac_status=$?
24412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24413   (exit $ac_status); }; } &&
24414          { ac_try='test -s conftest$ac_exeext'
24415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24416   (eval $ac_try) 2>&5
24417   ac_status=$?
24418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24419   (exit $ac_status); }; }; then
24420   ac_cv_lib_V3_sigset=yes
24421 else
24422   echo "$as_me: failed program was:" >&5
24423 sed 's/^/| /' conftest.$ac_ext >&5
24424
24425 ac_cv_lib_V3_sigset=no
24426 fi
24427 rm -f conftest.err conftest.$ac_objext \
24428       conftest$ac_exeext conftest.$ac_ext
24429 LIBS=$ac_check_lib_save_LIBS
24430 fi
24431 echo "$as_me:$LINENO: result: $ac_cv_lib_V3_sigset" >&5
24432 echo "${ECHO_T}$ac_cv_lib_V3_sigset" >&6
24433 if test $ac_cv_lib_V3_sigset = yes; then
24434   cat >>confdefs.h <<_ACEOF
24435 #define HAVE_LIBV3 1
24436 _ACEOF
24437
24438   LIBS="-lV3 $LIBS"
24439
24440 fi
24441
24442 fi
24443
24444 if test "$ac_cv_cygwin" != yes && test "$ac_cv_header_winsock_h" = yes; then
24445 echo "$as_me:$LINENO: checking for winsock" >&5
24446 echo $ECHO_N "checking for winsock... $ECHO_C" >&6
24447 if test "${ol_cv_winsock+set}" = set; then
24448   echo $ECHO_N "(cached) $ECHO_C" >&6
24449 else
24450   save_LIBS="$LIBS"
24451 for curlib in ws2_32 wsock32; do
24452         LIBS="$LIBS -l$curlib"
24453         cat >conftest.$ac_ext <<_ACEOF
24454 /* confdefs.h.  */
24455 _ACEOF
24456 cat confdefs.h >>conftest.$ac_ext
24457 cat >>conftest.$ac_ext <<_ACEOF
24458 /* end confdefs.h.  */
24459 #include <winsock.h>
24460
24461 int
24462 main ()
24463 {
24464
24465                         socket(0,0,0);
24466                         select(0,NULL,NULL,NULL,NULL);
24467                         closesocket(0);
24468                         gethostname(NULL,0);
24469
24470   ;
24471   return 0;
24472 }
24473 _ACEOF
24474 rm -f conftest.$ac_objext conftest$ac_exeext
24475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24476   (eval $ac_link) 2>conftest.er1
24477   ac_status=$?
24478   grep -v '^ *+' conftest.er1 >conftest.err
24479   rm -f conftest.er1
24480   cat conftest.err >&5
24481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24482   (exit $ac_status); } &&
24483          { ac_try='test -z "$ac_c_werror_flag"
24484                          || test ! -s conftest.err'
24485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24486   (eval $ac_try) 2>&5
24487   ac_status=$?
24488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24489   (exit $ac_status); }; } &&
24490          { ac_try='test -s conftest$ac_exeext'
24491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24492   (eval $ac_try) 2>&5
24493   ac_status=$?
24494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24495   (exit $ac_status); }; }; then
24496   ol_cv_winsock=yes
24497 else
24498   echo "$as_me: failed program was:" >&5
24499 sed 's/^/| /' conftest.$ac_ext >&5
24500
24501 ol_cv_winsock=no
24502 fi
24503 rm -f conftest.err conftest.$ac_objext \
24504       conftest$ac_exeext conftest.$ac_ext
24505
24506         if test $ol_cv_winsock = yes; then
24507
24508 cat >>confdefs.h <<\_ACEOF
24509 #define HAVE_WINSOCK 1
24510 _ACEOF
24511
24512                 ac_cv_func_socket=yes
24513                 ac_cv_func_select=yes
24514                 ac_cv_func_closesocket=yes
24515                 ac_cv_func_gethostname=yes
24516                 if test $curlib = ws2_32; then
24517                         ol_cv_winsock=winsock2
24518
24519 cat >>confdefs.h <<\_ACEOF
24520 #define HAVE_WINSOCK2 1
24521 _ACEOF
24522
24523                 fi
24524                 break
24525         fi
24526         LIBS="$save_LIBS"
24527 done
24528 fi
24529 echo "$as_me:$LINENO: result: $ol_cv_winsock" >&5
24530 echo "${ECHO_T}$ol_cv_winsock" >&6
24531 fi
24532
24533
24534 echo "$as_me:$LINENO: checking for socket" >&5
24535 echo $ECHO_N "checking for socket... $ECHO_C" >&6
24536 if test "${ac_cv_func_socket+set}" = set; then
24537   echo $ECHO_N "(cached) $ECHO_C" >&6
24538 else
24539   cat >conftest.$ac_ext <<_ACEOF
24540 /* confdefs.h.  */
24541 _ACEOF
24542 cat confdefs.h >>conftest.$ac_ext
24543 cat >>conftest.$ac_ext <<_ACEOF
24544 /* end confdefs.h.  */
24545 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
24546    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24547 #define socket innocuous_socket
24548
24549 /* System header to define __stub macros and hopefully few prototypes,
24550     which can conflict with char socket (); below.
24551     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24552     <limits.h> exists even on freestanding compilers.  */
24553
24554 #ifdef __STDC__
24555 # include <limits.h>
24556 #else
24557 # include <assert.h>
24558 #endif
24559
24560 #undef socket
24561
24562 /* Override any gcc2 internal prototype to avoid an error.  */
24563 #ifdef __cplusplus
24564 extern "C"
24565 {
24566 #endif
24567 /* We use char because int might match the return type of a gcc2
24568    builtin and then its argument prototype would still apply.  */
24569 char socket ();
24570 /* The GNU C library defines this for functions which it implements
24571     to always fail with ENOSYS.  Some functions are actually named
24572     something starting with __ and the normal name is an alias.  */
24573 #if defined (__stub_socket) || defined (__stub___socket)
24574 choke me
24575 #else
24576 char (*f) () = socket;
24577 #endif
24578 #ifdef __cplusplus
24579 }
24580 #endif
24581
24582 int
24583 main ()
24584 {
24585 return f != socket;
24586   ;
24587   return 0;
24588 }
24589 _ACEOF
24590 rm -f conftest.$ac_objext conftest$ac_exeext
24591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24592   (eval $ac_link) 2>conftest.er1
24593   ac_status=$?
24594   grep -v '^ *+' conftest.er1 >conftest.err
24595   rm -f conftest.er1
24596   cat conftest.err >&5
24597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24598   (exit $ac_status); } &&
24599          { ac_try='test -z "$ac_c_werror_flag"
24600                          || test ! -s conftest.err'
24601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24602   (eval $ac_try) 2>&5
24603   ac_status=$?
24604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24605   (exit $ac_status); }; } &&
24606          { ac_try='test -s conftest$ac_exeext'
24607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24608   (eval $ac_try) 2>&5
24609   ac_status=$?
24610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24611   (exit $ac_status); }; }; then
24612   ac_cv_func_socket=yes
24613 else
24614   echo "$as_me: failed program was:" >&5
24615 sed 's/^/| /' conftest.$ac_ext >&5
24616
24617 ac_cv_func_socket=no
24618 fi
24619 rm -f conftest.err conftest.$ac_objext \
24620       conftest$ac_exeext conftest.$ac_ext
24621 fi
24622 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
24623 echo "${ECHO_T}$ac_cv_func_socket" >&6
24624 if test $ac_cv_func_socket = yes; then
24625   :
24626 else
24627
24628
24629 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
24630 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
24631 if test "${ac_cv_lib_socket_main+set}" = set; then
24632   echo $ECHO_N "(cached) $ECHO_C" >&6
24633 else
24634   ac_check_lib_save_LIBS=$LIBS
24635 LIBS="-lsocket  $LIBS"
24636 cat >conftest.$ac_ext <<_ACEOF
24637 /* confdefs.h.  */
24638 _ACEOF
24639 cat confdefs.h >>conftest.$ac_ext
24640 cat >>conftest.$ac_ext <<_ACEOF
24641 /* end confdefs.h.  */
24642
24643
24644 int
24645 main ()
24646 {
24647 main ();
24648   ;
24649   return 0;
24650 }
24651 _ACEOF
24652 rm -f conftest.$ac_objext conftest$ac_exeext
24653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24654   (eval $ac_link) 2>conftest.er1
24655   ac_status=$?
24656   grep -v '^ *+' conftest.er1 >conftest.err
24657   rm -f conftest.er1
24658   cat conftest.err >&5
24659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24660   (exit $ac_status); } &&
24661          { ac_try='test -z "$ac_c_werror_flag"
24662                          || test ! -s conftest.err'
24663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24664   (eval $ac_try) 2>&5
24665   ac_status=$?
24666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24667   (exit $ac_status); }; } &&
24668          { ac_try='test -s conftest$ac_exeext'
24669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24670   (eval $ac_try) 2>&5
24671   ac_status=$?
24672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24673   (exit $ac_status); }; }; then
24674   ac_cv_lib_socket_main=yes
24675 else
24676   echo "$as_me: failed program was:" >&5
24677 sed 's/^/| /' conftest.$ac_ext >&5
24678
24679 ac_cv_lib_socket_main=no
24680 fi
24681 rm -f conftest.err conftest.$ac_objext \
24682       conftest$ac_exeext conftest.$ac_ext
24683 LIBS=$ac_check_lib_save_LIBS
24684 fi
24685 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
24686 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
24687 if test $ac_cv_lib_socket_main = yes; then
24688   cat >>confdefs.h <<_ACEOF
24689 #define HAVE_LIBSOCKET 1
24690 _ACEOF
24691
24692   LIBS="-lsocket $LIBS"
24693
24694 fi
24695
24696
24697 echo "$as_me:$LINENO: checking for main in -lnet" >&5
24698 echo $ECHO_N "checking for main in -lnet... $ECHO_C" >&6
24699 if test "${ac_cv_lib_net_main+set}" = set; then
24700   echo $ECHO_N "(cached) $ECHO_C" >&6
24701 else
24702   ac_check_lib_save_LIBS=$LIBS
24703 LIBS="-lnet  $LIBS"
24704 cat >conftest.$ac_ext <<_ACEOF
24705 /* confdefs.h.  */
24706 _ACEOF
24707 cat confdefs.h >>conftest.$ac_ext
24708 cat >>conftest.$ac_ext <<_ACEOF
24709 /* end confdefs.h.  */
24710
24711
24712 int
24713 main ()
24714 {
24715 main ();
24716   ;
24717   return 0;
24718 }
24719 _ACEOF
24720 rm -f conftest.$ac_objext conftest$ac_exeext
24721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24722   (eval $ac_link) 2>conftest.er1
24723   ac_status=$?
24724   grep -v '^ *+' conftest.er1 >conftest.err
24725   rm -f conftest.er1
24726   cat conftest.err >&5
24727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24728   (exit $ac_status); } &&
24729          { ac_try='test -z "$ac_c_werror_flag"
24730                          || test ! -s conftest.err'
24731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24732   (eval $ac_try) 2>&5
24733   ac_status=$?
24734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24735   (exit $ac_status); }; } &&
24736          { ac_try='test -s conftest$ac_exeext'
24737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24738   (eval $ac_try) 2>&5
24739   ac_status=$?
24740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24741   (exit $ac_status); }; }; then
24742   ac_cv_lib_net_main=yes
24743 else
24744   echo "$as_me: failed program was:" >&5
24745 sed 's/^/| /' conftest.$ac_ext >&5
24746
24747 ac_cv_lib_net_main=no
24748 fi
24749 rm -f conftest.err conftest.$ac_objext \
24750       conftest$ac_exeext conftest.$ac_ext
24751 LIBS=$ac_check_lib_save_LIBS
24752 fi
24753 echo "$as_me:$LINENO: result: $ac_cv_lib_net_main" >&5
24754 echo "${ECHO_T}$ac_cv_lib_net_main" >&6
24755 if test $ac_cv_lib_net_main = yes; then
24756   cat >>confdefs.h <<_ACEOF
24757 #define HAVE_LIBNET 1
24758 _ACEOF
24759
24760   LIBS="-lnet $LIBS"
24761
24762 fi
24763
24764
24765 echo "$as_me:$LINENO: checking for main in -lnsl_s" >&5
24766 echo $ECHO_N "checking for main in -lnsl_s... $ECHO_C" >&6
24767 if test "${ac_cv_lib_nsl_s_main+set}" = set; then
24768   echo $ECHO_N "(cached) $ECHO_C" >&6
24769 else
24770   ac_check_lib_save_LIBS=$LIBS
24771 LIBS="-lnsl_s  $LIBS"
24772 cat >conftest.$ac_ext <<_ACEOF
24773 /* confdefs.h.  */
24774 _ACEOF
24775 cat confdefs.h >>conftest.$ac_ext
24776 cat >>conftest.$ac_ext <<_ACEOF
24777 /* end confdefs.h.  */
24778
24779
24780 int
24781 main ()
24782 {
24783 main ();
24784   ;
24785   return 0;
24786 }
24787 _ACEOF
24788 rm -f conftest.$ac_objext conftest$ac_exeext
24789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24790   (eval $ac_link) 2>conftest.er1
24791   ac_status=$?
24792   grep -v '^ *+' conftest.er1 >conftest.err
24793   rm -f conftest.er1
24794   cat conftest.err >&5
24795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24796   (exit $ac_status); } &&
24797          { ac_try='test -z "$ac_c_werror_flag"
24798                          || test ! -s conftest.err'
24799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24800   (eval $ac_try) 2>&5
24801   ac_status=$?
24802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24803   (exit $ac_status); }; } &&
24804          { ac_try='test -s conftest$ac_exeext'
24805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24806   (eval $ac_try) 2>&5
24807   ac_status=$?
24808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24809   (exit $ac_status); }; }; then
24810   ac_cv_lib_nsl_s_main=yes
24811 else
24812   echo "$as_me: failed program was:" >&5
24813 sed 's/^/| /' conftest.$ac_ext >&5
24814
24815 ac_cv_lib_nsl_s_main=no
24816 fi
24817 rm -f conftest.err conftest.$ac_objext \
24818       conftest$ac_exeext conftest.$ac_ext
24819 LIBS=$ac_check_lib_save_LIBS
24820 fi
24821 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_s_main" >&5
24822 echo "${ECHO_T}$ac_cv_lib_nsl_s_main" >&6
24823 if test $ac_cv_lib_nsl_s_main = yes; then
24824   cat >>confdefs.h <<_ACEOF
24825 #define HAVE_LIBNSL_S 1
24826 _ACEOF
24827
24828   LIBS="-lnsl_s $LIBS"
24829
24830 fi
24831
24832
24833 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
24834 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
24835 if test "${ac_cv_lib_nsl_main+set}" = set; then
24836   echo $ECHO_N "(cached) $ECHO_C" >&6
24837 else
24838   ac_check_lib_save_LIBS=$LIBS
24839 LIBS="-lnsl  $LIBS"
24840 cat >conftest.$ac_ext <<_ACEOF
24841 /* confdefs.h.  */
24842 _ACEOF
24843 cat confdefs.h >>conftest.$ac_ext
24844 cat >>conftest.$ac_ext <<_ACEOF
24845 /* end confdefs.h.  */
24846
24847
24848 int
24849 main ()
24850 {
24851 main ();
24852   ;
24853   return 0;
24854 }
24855 _ACEOF
24856 rm -f conftest.$ac_objext conftest$ac_exeext
24857 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24858   (eval $ac_link) 2>conftest.er1
24859   ac_status=$?
24860   grep -v '^ *+' conftest.er1 >conftest.err
24861   rm -f conftest.er1
24862   cat conftest.err >&5
24863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24864   (exit $ac_status); } &&
24865          { ac_try='test -z "$ac_c_werror_flag"
24866                          || test ! -s conftest.err'
24867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24868   (eval $ac_try) 2>&5
24869   ac_status=$?
24870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24871   (exit $ac_status); }; } &&
24872          { ac_try='test -s conftest$ac_exeext'
24873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24874   (eval $ac_try) 2>&5
24875   ac_status=$?
24876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24877   (exit $ac_status); }; }; then
24878   ac_cv_lib_nsl_main=yes
24879 else
24880   echo "$as_me: failed program was:" >&5
24881 sed 's/^/| /' conftest.$ac_ext >&5
24882
24883 ac_cv_lib_nsl_main=no
24884 fi
24885 rm -f conftest.err conftest.$ac_objext \
24886       conftest$ac_exeext conftest.$ac_ext
24887 LIBS=$ac_check_lib_save_LIBS
24888 fi
24889 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
24890 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
24891 if test $ac_cv_lib_nsl_main = yes; then
24892   cat >>confdefs.h <<_ACEOF
24893 #define HAVE_LIBNSL 1
24894 _ACEOF
24895
24896   LIBS="-lnsl $LIBS"
24897
24898 fi
24899
24900
24901 echo "$as_me:$LINENO: checking for socket in -linet" >&5
24902 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
24903 if test "${ac_cv_lib_inet_socket+set}" = set; then
24904   echo $ECHO_N "(cached) $ECHO_C" >&6
24905 else
24906   ac_check_lib_save_LIBS=$LIBS
24907 LIBS="-linet  $LIBS"
24908 cat >conftest.$ac_ext <<_ACEOF
24909 /* confdefs.h.  */
24910 _ACEOF
24911 cat confdefs.h >>conftest.$ac_ext
24912 cat >>conftest.$ac_ext <<_ACEOF
24913 /* end confdefs.h.  */
24914
24915 /* Override any gcc2 internal prototype to avoid an error.  */
24916 #ifdef __cplusplus
24917 extern "C"
24918 #endif
24919 /* We use char because int might match the return type of a gcc2
24920    builtin and then its argument prototype would still apply.  */
24921 char socket ();
24922 int
24923 main ()
24924 {
24925 socket ();
24926   ;
24927   return 0;
24928 }
24929 _ACEOF
24930 rm -f conftest.$ac_objext conftest$ac_exeext
24931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24932   (eval $ac_link) 2>conftest.er1
24933   ac_status=$?
24934   grep -v '^ *+' conftest.er1 >conftest.err
24935   rm -f conftest.er1
24936   cat conftest.err >&5
24937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24938   (exit $ac_status); } &&
24939          { ac_try='test -z "$ac_c_werror_flag"
24940                          || test ! -s conftest.err'
24941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24942   (eval $ac_try) 2>&5
24943   ac_status=$?
24944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24945   (exit $ac_status); }; } &&
24946          { ac_try='test -s conftest$ac_exeext'
24947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24948   (eval $ac_try) 2>&5
24949   ac_status=$?
24950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24951   (exit $ac_status); }; }; then
24952   ac_cv_lib_inet_socket=yes
24953 else
24954   echo "$as_me: failed program was:" >&5
24955 sed 's/^/| /' conftest.$ac_ext >&5
24956
24957 ac_cv_lib_inet_socket=no
24958 fi
24959 rm -f conftest.err conftest.$ac_objext \
24960       conftest$ac_exeext conftest.$ac_ext
24961 LIBS=$ac_check_lib_save_LIBS
24962 fi
24963 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
24964 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
24965 if test $ac_cv_lib_inet_socket = yes; then
24966   cat >>confdefs.h <<_ACEOF
24967 #define HAVE_LIBINET 1
24968 _ACEOF
24969
24970   LIBS="-linet $LIBS"
24971
24972 fi
24973
24974
24975 echo "$as_me:$LINENO: checking for main in -lgen" >&5
24976 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
24977 if test "${ac_cv_lib_gen_main+set}" = set; then
24978   echo $ECHO_N "(cached) $ECHO_C" >&6
24979 else
24980   ac_check_lib_save_LIBS=$LIBS
24981 LIBS="-lgen  $LIBS"
24982 cat >conftest.$ac_ext <<_ACEOF
24983 /* confdefs.h.  */
24984 _ACEOF
24985 cat confdefs.h >>conftest.$ac_ext
24986 cat >>conftest.$ac_ext <<_ACEOF
24987 /* end confdefs.h.  */
24988
24989
24990 int
24991 main ()
24992 {
24993 main ();
24994   ;
24995   return 0;
24996 }
24997 _ACEOF
24998 rm -f conftest.$ac_objext conftest$ac_exeext
24999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25000   (eval $ac_link) 2>conftest.er1
25001   ac_status=$?
25002   grep -v '^ *+' conftest.er1 >conftest.err
25003   rm -f conftest.er1
25004   cat conftest.err >&5
25005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25006   (exit $ac_status); } &&
25007          { ac_try='test -z "$ac_c_werror_flag"
25008                          || test ! -s conftest.err'
25009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25010   (eval $ac_try) 2>&5
25011   ac_status=$?
25012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25013   (exit $ac_status); }; } &&
25014          { ac_try='test -s conftest$ac_exeext'
25015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25016   (eval $ac_try) 2>&5
25017   ac_status=$?
25018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25019   (exit $ac_status); }; }; then
25020   ac_cv_lib_gen_main=yes
25021 else
25022   echo "$as_me: failed program was:" >&5
25023 sed 's/^/| /' conftest.$ac_ext >&5
25024
25025 ac_cv_lib_gen_main=no
25026 fi
25027 rm -f conftest.err conftest.$ac_objext \
25028       conftest$ac_exeext conftest.$ac_ext
25029 LIBS=$ac_check_lib_save_LIBS
25030 fi
25031 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
25032 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
25033 if test $ac_cv_lib_gen_main = yes; then
25034   cat >>confdefs.h <<_ACEOF
25035 #define HAVE_LIBGEN 1
25036 _ACEOF
25037
25038   LIBS="-lgen $LIBS"
25039
25040 fi
25041
25042
25043 fi
25044
25045
25046 echo "$as_me:$LINENO: checking for select" >&5
25047 echo $ECHO_N "checking for select... $ECHO_C" >&6
25048 if test "${ac_cv_func_select+set}" = set; then
25049   echo $ECHO_N "(cached) $ECHO_C" >&6
25050 else
25051   cat >conftest.$ac_ext <<_ACEOF
25052 /* confdefs.h.  */
25053 _ACEOF
25054 cat confdefs.h >>conftest.$ac_ext
25055 cat >>conftest.$ac_ext <<_ACEOF
25056 /* end confdefs.h.  */
25057 /* Define select to an innocuous variant, in case <limits.h> declares select.
25058    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25059 #define select innocuous_select
25060
25061 /* System header to define __stub macros and hopefully few prototypes,
25062     which can conflict with char select (); below.
25063     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25064     <limits.h> exists even on freestanding compilers.  */
25065
25066 #ifdef __STDC__
25067 # include <limits.h>
25068 #else
25069 # include <assert.h>
25070 #endif
25071
25072 #undef select
25073
25074 /* Override any gcc2 internal prototype to avoid an error.  */
25075 #ifdef __cplusplus
25076 extern "C"
25077 {
25078 #endif
25079 /* We use char because int might match the return type of a gcc2
25080    builtin and then its argument prototype would still apply.  */
25081 char select ();
25082 /* The GNU C library defines this for functions which it implements
25083     to always fail with ENOSYS.  Some functions are actually named
25084     something starting with __ and the normal name is an alias.  */
25085 #if defined (__stub_select) || defined (__stub___select)
25086 choke me
25087 #else
25088 char (*f) () = select;
25089 #endif
25090 #ifdef __cplusplus
25091 }
25092 #endif
25093
25094 int
25095 main ()
25096 {
25097 return f != select;
25098   ;
25099   return 0;
25100 }
25101 _ACEOF
25102 rm -f conftest.$ac_objext conftest$ac_exeext
25103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25104   (eval $ac_link) 2>conftest.er1
25105   ac_status=$?
25106   grep -v '^ *+' conftest.er1 >conftest.err
25107   rm -f conftest.er1
25108   cat conftest.err >&5
25109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25110   (exit $ac_status); } &&
25111          { ac_try='test -z "$ac_c_werror_flag"
25112                          || test ! -s conftest.err'
25113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25114   (eval $ac_try) 2>&5
25115   ac_status=$?
25116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25117   (exit $ac_status); }; } &&
25118          { ac_try='test -s conftest$ac_exeext'
25119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25120   (eval $ac_try) 2>&5
25121   ac_status=$?
25122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25123   (exit $ac_status); }; }; then
25124   ac_cv_func_select=yes
25125 else
25126   echo "$as_me: failed program was:" >&5
25127 sed 's/^/| /' conftest.$ac_ext >&5
25128
25129 ac_cv_func_select=no
25130 fi
25131 rm -f conftest.err conftest.$ac_objext \
25132       conftest$ac_exeext conftest.$ac_ext
25133 fi
25134 echo "$as_me:$LINENO: result: $ac_cv_func_select" >&5
25135 echo "${ECHO_T}$ac_cv_func_select" >&6
25136 if test $ac_cv_func_select = yes; then
25137   :
25138 else
25139   { { echo "$as_me:$LINENO: error: select() required." >&5
25140 echo "$as_me: error: select() required." >&2;}
25141    { (exit 1); exit 1; }; }
25142 fi
25143
25144
25145 if test "${ac_cv_header_winsock_h}" != yes; then
25146
25147
25148 for ac_header in sys/select.h sys/socket.h
25149 do
25150 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25151 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25152   echo "$as_me:$LINENO: checking for $ac_header" >&5
25153 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25154 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25155   echo $ECHO_N "(cached) $ECHO_C" >&6
25156 fi
25157 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25158 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25159 else
25160   # Is the header compilable?
25161 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25162 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25163 cat >conftest.$ac_ext <<_ACEOF
25164 /* confdefs.h.  */
25165 _ACEOF
25166 cat confdefs.h >>conftest.$ac_ext
25167 cat >>conftest.$ac_ext <<_ACEOF
25168 /* end confdefs.h.  */
25169 $ac_includes_default
25170 #include <$ac_header>
25171 _ACEOF
25172 rm -f conftest.$ac_objext
25173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25174   (eval $ac_compile) 2>conftest.er1
25175   ac_status=$?
25176   grep -v '^ *+' conftest.er1 >conftest.err
25177   rm -f conftest.er1
25178   cat conftest.err >&5
25179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25180   (exit $ac_status); } &&
25181          { ac_try='test -z "$ac_c_werror_flag"
25182                          || test ! -s conftest.err'
25183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25184   (eval $ac_try) 2>&5
25185   ac_status=$?
25186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25187   (exit $ac_status); }; } &&
25188          { ac_try='test -s conftest.$ac_objext'
25189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25190   (eval $ac_try) 2>&5
25191   ac_status=$?
25192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25193   (exit $ac_status); }; }; then
25194   ac_header_compiler=yes
25195 else
25196   echo "$as_me: failed program was:" >&5
25197 sed 's/^/| /' conftest.$ac_ext >&5
25198
25199 ac_header_compiler=no
25200 fi
25201 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25202 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25203 echo "${ECHO_T}$ac_header_compiler" >&6
25204
25205 # Is the header present?
25206 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25207 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25208 cat >conftest.$ac_ext <<_ACEOF
25209 /* confdefs.h.  */
25210 _ACEOF
25211 cat confdefs.h >>conftest.$ac_ext
25212 cat >>conftest.$ac_ext <<_ACEOF
25213 /* end confdefs.h.  */
25214 #include <$ac_header>
25215 _ACEOF
25216 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25217   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25218   ac_status=$?
25219   grep -v '^ *+' conftest.er1 >conftest.err
25220   rm -f conftest.er1
25221   cat conftest.err >&5
25222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25223   (exit $ac_status); } >/dev/null; then
25224   if test -s conftest.err; then
25225     ac_cpp_err=$ac_c_preproc_warn_flag
25226     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25227   else
25228     ac_cpp_err=
25229   fi
25230 else
25231   ac_cpp_err=yes
25232 fi
25233 if test -z "$ac_cpp_err"; then
25234   ac_header_preproc=yes
25235 else
25236   echo "$as_me: failed program was:" >&5
25237 sed 's/^/| /' conftest.$ac_ext >&5
25238
25239   ac_header_preproc=no
25240 fi
25241 rm -f conftest.err conftest.$ac_ext
25242 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25243 echo "${ECHO_T}$ac_header_preproc" >&6
25244
25245 # So?  What about this header?
25246 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25247   yes:no: )
25248     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25249 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25250     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25251 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25252     ac_header_preproc=yes
25253     ;;
25254   no:yes:* )
25255     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25256 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25257     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25258 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25259     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25260 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25261     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25262 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25263     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25264 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25265     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25266 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25267     (
25268       cat <<\_ASBOX
25269 ## ------------------------------------------ ##
25270 ## Report this to the AC_PACKAGE_NAME lists.  ##
25271 ## ------------------------------------------ ##
25272 _ASBOX
25273     ) |
25274       sed "s/^/$as_me: WARNING:     /" >&2
25275     ;;
25276 esac
25277 echo "$as_me:$LINENO: checking for $ac_header" >&5
25278 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25279 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25280   echo $ECHO_N "(cached) $ECHO_C" >&6
25281 else
25282   eval "$as_ac_Header=\$ac_header_preproc"
25283 fi
25284 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25285 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25286
25287 fi
25288 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25289   cat >>confdefs.h <<_ACEOF
25290 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25291 _ACEOF
25292
25293 fi
25294
25295 done
25296
25297 echo "$as_me:$LINENO: checking types of arguments for select" >&5
25298 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
25299 if test "${ac_cv_func_select_args+set}" = set; then
25300   echo $ECHO_N "(cached) $ECHO_C" >&6
25301 else
25302   for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
25303  for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
25304   for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
25305    cat >conftest.$ac_ext <<_ACEOF
25306 /* confdefs.h.  */
25307 _ACEOF
25308 cat confdefs.h >>conftest.$ac_ext
25309 cat >>conftest.$ac_ext <<_ACEOF
25310 /* end confdefs.h.  */
25311 $ac_includes_default
25312 #if HAVE_SYS_SELECT_H
25313 # include <sys/select.h>
25314 #endif
25315 #if HAVE_SYS_SOCKET_H
25316 # include <sys/socket.h>
25317 #endif
25318
25319 int
25320 main ()
25321 {
25322 extern int select ($ac_arg1,
25323                                             $ac_arg234, $ac_arg234, $ac_arg234,
25324                                             $ac_arg5);
25325   ;
25326   return 0;
25327 }
25328 _ACEOF
25329 rm -f conftest.$ac_objext
25330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25331   (eval $ac_compile) 2>conftest.er1
25332   ac_status=$?
25333   grep -v '^ *+' conftest.er1 >conftest.err
25334   rm -f conftest.er1
25335   cat conftest.err >&5
25336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25337   (exit $ac_status); } &&
25338          { ac_try='test -z "$ac_c_werror_flag"
25339                          || test ! -s conftest.err'
25340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25341   (eval $ac_try) 2>&5
25342   ac_status=$?
25343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25344   (exit $ac_status); }; } &&
25345          { ac_try='test -s conftest.$ac_objext'
25346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25347   (eval $ac_try) 2>&5
25348   ac_status=$?
25349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25350   (exit $ac_status); }; }; then
25351   ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
25352 else
25353   echo "$as_me: failed program was:" >&5
25354 sed 's/^/| /' conftest.$ac_ext >&5
25355
25356 fi
25357 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25358   done
25359  done
25360 done
25361 # Provide a safe default value.
25362 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
25363
25364 fi
25365 echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
25366 echo "${ECHO_T}$ac_cv_func_select_args" >&6
25367 ac_save_IFS=$IFS; IFS=','
25368 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
25369 IFS=$ac_save_IFS
25370 shift
25371
25372 cat >>confdefs.h <<_ACEOF
25373 #define SELECT_TYPE_ARG1 $1
25374 _ACEOF
25375
25376
25377 cat >>confdefs.h <<_ACEOF
25378 #define SELECT_TYPE_ARG234 ($2)
25379 _ACEOF
25380
25381
25382 cat >>confdefs.h <<_ACEOF
25383 #define SELECT_TYPE_ARG5 ($3)
25384 _ACEOF
25385
25386 rm -f conftest*
25387
25388 fi
25389
25390
25391
25392 for ac_func in poll
25393 do
25394 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25395 echo "$as_me:$LINENO: checking for $ac_func" >&5
25396 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25397 if eval "test \"\${$as_ac_var+set}\" = set"; then
25398   echo $ECHO_N "(cached) $ECHO_C" >&6
25399 else
25400   cat >conftest.$ac_ext <<_ACEOF
25401 /* confdefs.h.  */
25402 _ACEOF
25403 cat confdefs.h >>conftest.$ac_ext
25404 cat >>conftest.$ac_ext <<_ACEOF
25405 /* end confdefs.h.  */
25406 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25407    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25408 #define $ac_func innocuous_$ac_func
25409
25410 /* System header to define __stub macros and hopefully few prototypes,
25411     which can conflict with char $ac_func (); below.
25412     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25413     <limits.h> exists even on freestanding compilers.  */
25414
25415 #ifdef __STDC__
25416 # include <limits.h>
25417 #else
25418 # include <assert.h>
25419 #endif
25420
25421 #undef $ac_func
25422
25423 /* Override any gcc2 internal prototype to avoid an error.  */
25424 #ifdef __cplusplus
25425 extern "C"
25426 {
25427 #endif
25428 /* We use char because int might match the return type of a gcc2
25429    builtin and then its argument prototype would still apply.  */
25430 char $ac_func ();
25431 /* The GNU C library defines this for functions which it implements
25432     to always fail with ENOSYS.  Some functions are actually named
25433     something starting with __ and the normal name is an alias.  */
25434 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25435 choke me
25436 #else
25437 char (*f) () = $ac_func;
25438 #endif
25439 #ifdef __cplusplus
25440 }
25441 #endif
25442
25443 int
25444 main ()
25445 {
25446 return f != $ac_func;
25447   ;
25448   return 0;
25449 }
25450 _ACEOF
25451 rm -f conftest.$ac_objext conftest$ac_exeext
25452 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25453   (eval $ac_link) 2>conftest.er1
25454   ac_status=$?
25455   grep -v '^ *+' conftest.er1 >conftest.err
25456   rm -f conftest.er1
25457   cat conftest.err >&5
25458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25459   (exit $ac_status); } &&
25460          { ac_try='test -z "$ac_c_werror_flag"
25461                          || test ! -s conftest.err'
25462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25463   (eval $ac_try) 2>&5
25464   ac_status=$?
25465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25466   (exit $ac_status); }; } &&
25467          { ac_try='test -s conftest$ac_exeext'
25468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25469   (eval $ac_try) 2>&5
25470   ac_status=$?
25471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25472   (exit $ac_status); }; }; then
25473   eval "$as_ac_var=yes"
25474 else
25475   echo "$as_me: failed program was:" >&5
25476 sed 's/^/| /' conftest.$ac_ext >&5
25477
25478 eval "$as_ac_var=no"
25479 fi
25480 rm -f conftest.err conftest.$ac_objext \
25481       conftest$ac_exeext conftest.$ac_ext
25482 fi
25483 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25484 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25485 if test `eval echo '${'$as_ac_var'}'` = yes; then
25486   cat >>confdefs.h <<_ACEOF
25487 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25488 _ACEOF
25489
25490 fi
25491 done
25492
25493
25494 for ac_header in poll.h
25495 do
25496 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25497 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25498   echo "$as_me:$LINENO: checking for $ac_header" >&5
25499 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25500 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25501   echo $ECHO_N "(cached) $ECHO_C" >&6
25502 fi
25503 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25504 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25505 else
25506   # Is the header compilable?
25507 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25508 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25509 cat >conftest.$ac_ext <<_ACEOF
25510 /* confdefs.h.  */
25511 _ACEOF
25512 cat confdefs.h >>conftest.$ac_ext
25513 cat >>conftest.$ac_ext <<_ACEOF
25514 /* end confdefs.h.  */
25515 $ac_includes_default
25516 #include <$ac_header>
25517 _ACEOF
25518 rm -f conftest.$ac_objext
25519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25520   (eval $ac_compile) 2>conftest.er1
25521   ac_status=$?
25522   grep -v '^ *+' conftest.er1 >conftest.err
25523   rm -f conftest.er1
25524   cat conftest.err >&5
25525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25526   (exit $ac_status); } &&
25527          { ac_try='test -z "$ac_c_werror_flag"
25528                          || test ! -s conftest.err'
25529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25530   (eval $ac_try) 2>&5
25531   ac_status=$?
25532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25533   (exit $ac_status); }; } &&
25534          { ac_try='test -s conftest.$ac_objext'
25535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25536   (eval $ac_try) 2>&5
25537   ac_status=$?
25538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25539   (exit $ac_status); }; }; then
25540   ac_header_compiler=yes
25541 else
25542   echo "$as_me: failed program was:" >&5
25543 sed 's/^/| /' conftest.$ac_ext >&5
25544
25545 ac_header_compiler=no
25546 fi
25547 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25548 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25549 echo "${ECHO_T}$ac_header_compiler" >&6
25550
25551 # Is the header present?
25552 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25553 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25554 cat >conftest.$ac_ext <<_ACEOF
25555 /* confdefs.h.  */
25556 _ACEOF
25557 cat confdefs.h >>conftest.$ac_ext
25558 cat >>conftest.$ac_ext <<_ACEOF
25559 /* end confdefs.h.  */
25560 #include <$ac_header>
25561 _ACEOF
25562 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25563   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25564   ac_status=$?
25565   grep -v '^ *+' conftest.er1 >conftest.err
25566   rm -f conftest.er1
25567   cat conftest.err >&5
25568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25569   (exit $ac_status); } >/dev/null; then
25570   if test -s conftest.err; then
25571     ac_cpp_err=$ac_c_preproc_warn_flag
25572     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25573   else
25574     ac_cpp_err=
25575   fi
25576 else
25577   ac_cpp_err=yes
25578 fi
25579 if test -z "$ac_cpp_err"; then
25580   ac_header_preproc=yes
25581 else
25582   echo "$as_me: failed program was:" >&5
25583 sed 's/^/| /' conftest.$ac_ext >&5
25584
25585   ac_header_preproc=no
25586 fi
25587 rm -f conftest.err conftest.$ac_ext
25588 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25589 echo "${ECHO_T}$ac_header_preproc" >&6
25590
25591 # So?  What about this header?
25592 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25593   yes:no: )
25594     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25595 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25596     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25597 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25598     ac_header_preproc=yes
25599     ;;
25600   no:yes:* )
25601     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25602 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25603     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25604 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25605     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25606 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25607     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25608 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25609     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25610 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25611     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25612 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25613     (
25614       cat <<\_ASBOX
25615 ## ------------------------------------------ ##
25616 ## Report this to the AC_PACKAGE_NAME lists.  ##
25617 ## ------------------------------------------ ##
25618 _ASBOX
25619     ) |
25620       sed "s/^/$as_me: WARNING:     /" >&2
25621     ;;
25622 esac
25623 echo "$as_me:$LINENO: checking for $ac_header" >&5
25624 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25625 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25626   echo $ECHO_N "(cached) $ECHO_C" >&6
25627 else
25628   eval "$as_ac_Header=\$ac_header_preproc"
25629 fi
25630 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25631 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25632
25633 fi
25634 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25635   cat >>confdefs.h <<_ACEOF
25636 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25637 _ACEOF
25638
25639 fi
25640
25641 done
25642
25643
25644
25645 for ac_header in sys/epoll.h
25646 do
25647 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25648 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25649   echo "$as_me:$LINENO: checking for $ac_header" >&5
25650 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25651 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25652   echo $ECHO_N "(cached) $ECHO_C" >&6
25653 fi
25654 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25655 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25656 else
25657   # Is the header compilable?
25658 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25659 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25660 cat >conftest.$ac_ext <<_ACEOF
25661 /* confdefs.h.  */
25662 _ACEOF
25663 cat confdefs.h >>conftest.$ac_ext
25664 cat >>conftest.$ac_ext <<_ACEOF
25665 /* end confdefs.h.  */
25666 $ac_includes_default
25667 #include <$ac_header>
25668 _ACEOF
25669 rm -f conftest.$ac_objext
25670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25671   (eval $ac_compile) 2>conftest.er1
25672   ac_status=$?
25673   grep -v '^ *+' conftest.er1 >conftest.err
25674   rm -f conftest.er1
25675   cat conftest.err >&5
25676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25677   (exit $ac_status); } &&
25678          { ac_try='test -z "$ac_c_werror_flag"
25679                          || test ! -s conftest.err'
25680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25681   (eval $ac_try) 2>&5
25682   ac_status=$?
25683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25684   (exit $ac_status); }; } &&
25685          { ac_try='test -s conftest.$ac_objext'
25686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25687   (eval $ac_try) 2>&5
25688   ac_status=$?
25689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25690   (exit $ac_status); }; }; then
25691   ac_header_compiler=yes
25692 else
25693   echo "$as_me: failed program was:" >&5
25694 sed 's/^/| /' conftest.$ac_ext >&5
25695
25696 ac_header_compiler=no
25697 fi
25698 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25699 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25700 echo "${ECHO_T}$ac_header_compiler" >&6
25701
25702 # Is the header present?
25703 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25704 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25705 cat >conftest.$ac_ext <<_ACEOF
25706 /* confdefs.h.  */
25707 _ACEOF
25708 cat confdefs.h >>conftest.$ac_ext
25709 cat >>conftest.$ac_ext <<_ACEOF
25710 /* end confdefs.h.  */
25711 #include <$ac_header>
25712 _ACEOF
25713 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25714   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25715   ac_status=$?
25716   grep -v '^ *+' conftest.er1 >conftest.err
25717   rm -f conftest.er1
25718   cat conftest.err >&5
25719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25720   (exit $ac_status); } >/dev/null; then
25721   if test -s conftest.err; then
25722     ac_cpp_err=$ac_c_preproc_warn_flag
25723     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25724   else
25725     ac_cpp_err=
25726   fi
25727 else
25728   ac_cpp_err=yes
25729 fi
25730 if test -z "$ac_cpp_err"; then
25731   ac_header_preproc=yes
25732 else
25733   echo "$as_me: failed program was:" >&5
25734 sed 's/^/| /' conftest.$ac_ext >&5
25735
25736   ac_header_preproc=no
25737 fi
25738 rm -f conftest.err conftest.$ac_ext
25739 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25740 echo "${ECHO_T}$ac_header_preproc" >&6
25741
25742 # So?  What about this header?
25743 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25744   yes:no: )
25745     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25746 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25747     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25748 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25749     ac_header_preproc=yes
25750     ;;
25751   no:yes:* )
25752     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25753 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25754     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25755 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25756     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25757 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25758     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25759 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25760     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25761 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25762     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25763 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25764     (
25765       cat <<\_ASBOX
25766 ## ------------------------------------------ ##
25767 ## Report this to the AC_PACKAGE_NAME lists.  ##
25768 ## ------------------------------------------ ##
25769 _ASBOX
25770     ) |
25771       sed "s/^/$as_me: WARNING:     /" >&2
25772     ;;
25773 esac
25774 echo "$as_me:$LINENO: checking for $ac_header" >&5
25775 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25776 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25777   echo $ECHO_N "(cached) $ECHO_C" >&6
25778 else
25779   eval "$as_ac_Header=\$ac_header_preproc"
25780 fi
25781 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25782 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25783
25784 fi
25785 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25786   cat >>confdefs.h <<_ACEOF
25787 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25788 _ACEOF
25789
25790 fi
25791
25792 done
25793
25794 if test "${ac_cv_header_sys_epoll_h}" = yes; then
25795 echo "$as_me:$LINENO: checking for epoll system call" >&5
25796 echo $ECHO_N "checking for epoll system call... $ECHO_C" >&6
25797 if test "$cross_compiling" = yes; then
25798   echo "$as_me:$LINENO: result: no" >&5
25799 echo "${ECHO_T}no" >&6
25800 else
25801   cat >conftest.$ac_ext <<_ACEOF
25802 /* confdefs.h.  */
25803 _ACEOF
25804 cat confdefs.h >>conftest.$ac_ext
25805 cat >>conftest.$ac_ext <<_ACEOF
25806 /* end confdefs.h.  */
25807 int main(int argc, char *argv)
25808 {
25809         int epfd = epoll_create(256);
25810         exit (epfd == -1 ? 1 : 0);
25811 }
25812 _ACEOF
25813 rm -f conftest$ac_exeext
25814 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25815   (eval $ac_link) 2>&5
25816   ac_status=$?
25817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25818   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25820   (eval $ac_try) 2>&5
25821   ac_status=$?
25822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25823   (exit $ac_status); }; }; then
25824   echo "$as_me:$LINENO: result: yes" >&5
25825 echo "${ECHO_T}yes" >&6
25826
25827 cat >>confdefs.h <<\_ACEOF
25828 #define HAVE_EPOLL 1
25829 _ACEOF
25830
25831 else
25832   echo "$as_me: program exited with status $ac_status" >&5
25833 echo "$as_me: failed program was:" >&5
25834 sed 's/^/| /' conftest.$ac_ext >&5
25835
25836 ( exit $ac_status )
25837 echo "$as_me:$LINENO: result: no" >&5
25838 echo "${ECHO_T}no" >&6
25839 fi
25840 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25841 fi
25842 fi
25843
25844 # strerror checks
25845 echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
25846 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
25847 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
25848   echo $ECHO_N "(cached) $ECHO_C" >&6
25849 else
25850
25851         cat >conftest.$ac_ext <<_ACEOF
25852 /* confdefs.h.  */
25853 _ACEOF
25854 cat confdefs.h >>conftest.$ac_ext
25855 cat >>conftest.$ac_ext <<_ACEOF
25856 /* end confdefs.h.  */
25857
25858 #include <stdio.h>
25859 #include <sys/types.h>
25860 #include <errno.h>
25861 #ifdef WINNT
25862 #include <stdlib.h>
25863 #endif
25864 int
25865 main ()
25866 {
25867 char *c = (char *) *sys_errlist
25868   ;
25869   return 0;
25870 }
25871 _ACEOF
25872 rm -f conftest.$ac_objext
25873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25874   (eval $ac_compile) 2>conftest.er1
25875   ac_status=$?
25876   grep -v '^ *+' conftest.er1 >conftest.err
25877   rm -f conftest.er1
25878   cat conftest.err >&5
25879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25880   (exit $ac_status); } &&
25881          { ac_try='test -z "$ac_c_werror_flag"
25882                          || test ! -s conftest.err'
25883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25884   (eval $ac_try) 2>&5
25885   ac_status=$?
25886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25887   (exit $ac_status); }; } &&
25888          { ac_try='test -s conftest.$ac_objext'
25889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25890   (eval $ac_try) 2>&5
25891   ac_status=$?
25892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25893   (exit $ac_status); }; }; then
25894   ol_cv_dcl_sys_errlist=yes
25895         ol_cv_have_sys_errlist=yes
25896 else
25897   echo "$as_me: failed program was:" >&5
25898 sed 's/^/| /' conftest.$ac_ext >&5
25899
25900 ol_cv_dcl_sys_errlist=no
25901 fi
25902 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25903 fi
25904 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
25905 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
25906 #
25907 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
25908 if test $ol_cv_dcl_sys_errlist = no ; then
25909
25910 cat >>confdefs.h <<\_ACEOF
25911 #define DECL_SYS_ERRLIST 1
25912 _ACEOF
25913
25914
25915         echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
25916 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
25917 if test "${ol_cv_have_sys_errlist+set}" = set; then
25918   echo $ECHO_N "(cached) $ECHO_C" >&6
25919 else
25920
25921                 cat >conftest.$ac_ext <<_ACEOF
25922 /* confdefs.h.  */
25923 _ACEOF
25924 cat confdefs.h >>conftest.$ac_ext
25925 cat >>conftest.$ac_ext <<_ACEOF
25926 /* end confdefs.h.  */
25927 #include <errno.h>
25928 int
25929 main ()
25930 {
25931 char *c = (char *) *sys_errlist
25932   ;
25933   return 0;
25934 }
25935 _ACEOF
25936 rm -f conftest.$ac_objext conftest$ac_exeext
25937 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25938   (eval $ac_link) 2>conftest.er1
25939   ac_status=$?
25940   grep -v '^ *+' conftest.er1 >conftest.err
25941   rm -f conftest.er1
25942   cat conftest.err >&5
25943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25944   (exit $ac_status); } &&
25945          { ac_try='test -z "$ac_c_werror_flag"
25946                          || test ! -s conftest.err'
25947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25948   (eval $ac_try) 2>&5
25949   ac_status=$?
25950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25951   (exit $ac_status); }; } &&
25952          { ac_try='test -s conftest$ac_exeext'
25953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25954   (eval $ac_try) 2>&5
25955   ac_status=$?
25956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25957   (exit $ac_status); }; }; then
25958   ol_cv_have_sys_errlist=yes
25959 else
25960   echo "$as_me: failed program was:" >&5
25961 sed 's/^/| /' conftest.$ac_ext >&5
25962
25963 ol_cv_have_sys_errlist=no
25964 fi
25965 rm -f conftest.err conftest.$ac_objext \
25966       conftest$ac_exeext conftest.$ac_ext
25967 fi
25968 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
25969 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
25970 fi
25971 if test $ol_cv_have_sys_errlist = yes ; then
25972
25973 cat >>confdefs.h <<\_ACEOF
25974 #define HAVE_SYS_ERRLIST 1
25975 _ACEOF
25976
25977 fi
25978
25979
25980 for ac_func in strerror strerror_r
25981 do
25982 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25983 echo "$as_me:$LINENO: checking for $ac_func" >&5
25984 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25985 if eval "test \"\${$as_ac_var+set}\" = set"; then
25986   echo $ECHO_N "(cached) $ECHO_C" >&6
25987 else
25988   cat >conftest.$ac_ext <<_ACEOF
25989 /* confdefs.h.  */
25990 _ACEOF
25991 cat confdefs.h >>conftest.$ac_ext
25992 cat >>conftest.$ac_ext <<_ACEOF
25993 /* end confdefs.h.  */
25994 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25995    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25996 #define $ac_func innocuous_$ac_func
25997
25998 /* System header to define __stub macros and hopefully few prototypes,
25999     which can conflict with char $ac_func (); below.
26000     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26001     <limits.h> exists even on freestanding compilers.  */
26002
26003 #ifdef __STDC__
26004 # include <limits.h>
26005 #else
26006 # include <assert.h>
26007 #endif
26008
26009 #undef $ac_func
26010
26011 /* Override any gcc2 internal prototype to avoid an error.  */
26012 #ifdef __cplusplus
26013 extern "C"
26014 {
26015 #endif
26016 /* We use char because int might match the return type of a gcc2
26017    builtin and then its argument prototype would still apply.  */
26018 char $ac_func ();
26019 /* The GNU C library defines this for functions which it implements
26020     to always fail with ENOSYS.  Some functions are actually named
26021     something starting with __ and the normal name is an alias.  */
26022 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26023 choke me
26024 #else
26025 char (*f) () = $ac_func;
26026 #endif
26027 #ifdef __cplusplus
26028 }
26029 #endif
26030
26031 int
26032 main ()
26033 {
26034 return f != $ac_func;
26035   ;
26036   return 0;
26037 }
26038 _ACEOF
26039 rm -f conftest.$ac_objext conftest$ac_exeext
26040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26041   (eval $ac_link) 2>conftest.er1
26042   ac_status=$?
26043   grep -v '^ *+' conftest.er1 >conftest.err
26044   rm -f conftest.er1
26045   cat conftest.err >&5
26046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26047   (exit $ac_status); } &&
26048          { ac_try='test -z "$ac_c_werror_flag"
26049                          || test ! -s conftest.err'
26050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26051   (eval $ac_try) 2>&5
26052   ac_status=$?
26053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26054   (exit $ac_status); }; } &&
26055          { ac_try='test -s conftest$ac_exeext'
26056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26057   (eval $ac_try) 2>&5
26058   ac_status=$?
26059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26060   (exit $ac_status); }; }; then
26061   eval "$as_ac_var=yes"
26062 else
26063   echo "$as_me: failed program was:" >&5
26064 sed 's/^/| /' conftest.$ac_ext >&5
26065
26066 eval "$as_ac_var=no"
26067 fi
26068 rm -f conftest.err conftest.$ac_objext \
26069       conftest$ac_exeext conftest.$ac_ext
26070 fi
26071 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26072 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26073 if test `eval echo '${'$as_ac_var'}'` = yes; then
26074   cat >>confdefs.h <<_ACEOF
26075 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26076 _ACEOF
26077
26078 fi
26079 done
26080
26081 ol_cv_func_strerror_r=no
26082 if test "${ac_cv_func_strerror_r}" = yes ; then
26083         echo "$as_me:$LINENO: checking non-posix strerror_r" >&5
26084 echo $ECHO_N "checking non-posix strerror_r... $ECHO_C" >&6
26085 if test "${ol_cv_nonposix_strerror_r+set}" = set; then
26086   echo $ECHO_N "(cached) $ECHO_C" >&6
26087 else
26088
26089         cat >conftest.$ac_ext <<_ACEOF
26090 /* confdefs.h.  */
26091 _ACEOF
26092 cat confdefs.h >>conftest.$ac_ext
26093 cat >>conftest.$ac_ext <<_ACEOF
26094 /* end confdefs.h.  */
26095 #include <string.h>
26096 _ACEOF
26097 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26098   $EGREP "strerror_r" >/dev/null 2>&1; then
26099   ol_decl_strerror_r=yes
26100 else
26101   ol_decl_strerror_r=no
26102 fi
26103 rm -f conftest*
26104
26105         if test $ol_decl_strerror_r = yes ; then
26106                 cat >conftest.$ac_ext <<_ACEOF
26107 /* confdefs.h.  */
26108 _ACEOF
26109 cat confdefs.h >>conftest.$ac_ext
26110 cat >>conftest.$ac_ext <<_ACEOF
26111 /* end confdefs.h.  */
26112 #include <string.h>
26113 int
26114 main ()
26115 {
26116    /* from autoconf 2.59 */
26117                                 char buf[100];
26118                                 char x = *strerror_r (0, buf, sizeof buf);
26119                                 char *p = strerror_r (0, buf, sizeof buf);
26120
26121   ;
26122   return 0;
26123 }
26124 _ACEOF
26125 rm -f conftest.$ac_objext
26126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26127   (eval $ac_compile) 2>conftest.er1
26128   ac_status=$?
26129   grep -v '^ *+' conftest.er1 >conftest.err
26130   rm -f conftest.er1
26131   cat conftest.err >&5
26132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26133   (exit $ac_status); } &&
26134          { ac_try='test -z "$ac_c_werror_flag"
26135                          || test ! -s conftest.err'
26136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26137   (eval $ac_try) 2>&5
26138   ac_status=$?
26139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26140   (exit $ac_status); }; } &&
26141          { ac_try='test -s conftest.$ac_objext'
26142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26143   (eval $ac_try) 2>&5
26144   ac_status=$?
26145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26146   (exit $ac_status); }; }; then
26147   ol_cv_nonposix_strerror_r=yes
26148 else
26149   echo "$as_me: failed program was:" >&5
26150 sed 's/^/| /' conftest.$ac_ext >&5
26151
26152 ol_cv_nonposix_strerror_r=no
26153 fi
26154 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26155         else
26156                 if test "$cross_compiling" = yes; then
26157   ol_cv_nonposix_strerror=no
26158 else
26159   cat >conftest.$ac_ext <<_ACEOF
26160 /* confdefs.h.  */
26161 _ACEOF
26162 cat confdefs.h >>conftest.$ac_ext
26163 cat >>conftest.$ac_ext <<_ACEOF
26164 /* end confdefs.h.  */
26165
26166                         main() {
26167                                 char buf[100];
26168                                 buf[0] = 0;
26169                                 strerror_r( 1, buf, sizeof buf );
26170                                 exit( buf[0] == 0 );
26171                         }
26172
26173 _ACEOF
26174 rm -f conftest$ac_exeext
26175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26176   (eval $ac_link) 2>&5
26177   ac_status=$?
26178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26179   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26181   (eval $ac_try) 2>&5
26182   ac_status=$?
26183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26184   (exit $ac_status); }; }; then
26185   ol_cv_nonposix_strerror_r=yes
26186 else
26187   echo "$as_me: program exited with status $ac_status" >&5
26188 echo "$as_me: failed program was:" >&5
26189 sed 's/^/| /' conftest.$ac_ext >&5
26190
26191 ( exit $ac_status )
26192 ol_cv_nonposix_strerror=no
26193 fi
26194 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26195 fi
26196         fi
26197
26198 fi
26199 echo "$as_me:$LINENO: result: $ol_cv_nonposix_strerror_r" >&5
26200 echo "${ECHO_T}$ol_cv_nonposix_strerror_r" >&6
26201 if test $ol_cv_nonposix_strerror_r = yes ; then
26202
26203 cat >>confdefs.h <<\_ACEOF
26204 #define HAVE_NONPOSIX_STRERROR_R 1
26205 _ACEOF
26206
26207 fi
26208
26209 elif test "${ac_cv_func_strerror}" = no ; then
26210         echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
26211 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
26212 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
26213   echo $ECHO_N "(cached) $ECHO_C" >&6
26214 else
26215
26216         cat >conftest.$ac_ext <<_ACEOF
26217 /* confdefs.h.  */
26218 _ACEOF
26219 cat confdefs.h >>conftest.$ac_ext
26220 cat >>conftest.$ac_ext <<_ACEOF
26221 /* end confdefs.h.  */
26222
26223 #include <stdio.h>
26224 #include <sys/types.h>
26225 #include <errno.h>
26226 #ifdef WINNT
26227 #include <stdlib.h>
26228 #endif
26229 int
26230 main ()
26231 {
26232 char *c = (char *) *sys_errlist
26233   ;
26234   return 0;
26235 }
26236 _ACEOF
26237 rm -f conftest.$ac_objext
26238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26239   (eval $ac_compile) 2>conftest.er1
26240   ac_status=$?
26241   grep -v '^ *+' conftest.er1 >conftest.err
26242   rm -f conftest.er1
26243   cat conftest.err >&5
26244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26245   (exit $ac_status); } &&
26246          { ac_try='test -z "$ac_c_werror_flag"
26247                          || test ! -s conftest.err'
26248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26249   (eval $ac_try) 2>&5
26250   ac_status=$?
26251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26252   (exit $ac_status); }; } &&
26253          { ac_try='test -s conftest.$ac_objext'
26254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26255   (eval $ac_try) 2>&5
26256   ac_status=$?
26257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26258   (exit $ac_status); }; }; then
26259   ol_cv_dcl_sys_errlist=yes
26260         ol_cv_have_sys_errlist=yes
26261 else
26262   echo "$as_me: failed program was:" >&5
26263 sed 's/^/| /' conftest.$ac_ext >&5
26264
26265 ol_cv_dcl_sys_errlist=no
26266 fi
26267 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26268 fi
26269 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
26270 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
26271 #
26272 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
26273 if test $ol_cv_dcl_sys_errlist = no ; then
26274
26275 cat >>confdefs.h <<\_ACEOF
26276 #define DECL_SYS_ERRLIST 1
26277 _ACEOF
26278
26279
26280         echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
26281 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
26282 if test "${ol_cv_have_sys_errlist+set}" = set; then
26283   echo $ECHO_N "(cached) $ECHO_C" >&6
26284 else
26285
26286                 cat >conftest.$ac_ext <<_ACEOF
26287 /* confdefs.h.  */
26288 _ACEOF
26289 cat confdefs.h >>conftest.$ac_ext
26290 cat >>conftest.$ac_ext <<_ACEOF
26291 /* end confdefs.h.  */
26292 #include <errno.h>
26293 int
26294 main ()
26295 {
26296 char *c = (char *) *sys_errlist
26297   ;
26298   return 0;
26299 }
26300 _ACEOF
26301 rm -f conftest.$ac_objext conftest$ac_exeext
26302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26303   (eval $ac_link) 2>conftest.er1
26304   ac_status=$?
26305   grep -v '^ *+' conftest.er1 >conftest.err
26306   rm -f conftest.er1
26307   cat conftest.err >&5
26308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26309   (exit $ac_status); } &&
26310          { ac_try='test -z "$ac_c_werror_flag"
26311                          || test ! -s conftest.err'
26312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26313   (eval $ac_try) 2>&5
26314   ac_status=$?
26315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26316   (exit $ac_status); }; } &&
26317          { ac_try='test -s conftest$ac_exeext'
26318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26319   (eval $ac_try) 2>&5
26320   ac_status=$?
26321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26322   (exit $ac_status); }; }; then
26323   ol_cv_have_sys_errlist=yes
26324 else
26325   echo "$as_me: failed program was:" >&5
26326 sed 's/^/| /' conftest.$ac_ext >&5
26327
26328 ol_cv_have_sys_errlist=no
26329 fi
26330 rm -f conftest.err conftest.$ac_objext \
26331       conftest$ac_exeext conftest.$ac_ext
26332 fi
26333 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
26334 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
26335 fi
26336 if test $ol_cv_have_sys_errlist = yes ; then
26337
26338 cat >>confdefs.h <<\_ACEOF
26339 #define HAVE_SYS_ERRLIST 1
26340 _ACEOF
26341
26342 fi
26343
26344 fi
26345
26346
26347
26348 for ac_header in regex.h
26349 do
26350 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26351 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26352   echo "$as_me:$LINENO: checking for $ac_header" >&5
26353 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26354 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26355   echo $ECHO_N "(cached) $ECHO_C" >&6
26356 fi
26357 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26358 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26359 else
26360   # Is the header compilable?
26361 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26362 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26363 cat >conftest.$ac_ext <<_ACEOF
26364 /* confdefs.h.  */
26365 _ACEOF
26366 cat confdefs.h >>conftest.$ac_ext
26367 cat >>conftest.$ac_ext <<_ACEOF
26368 /* end confdefs.h.  */
26369 $ac_includes_default
26370 #include <$ac_header>
26371 _ACEOF
26372 rm -f conftest.$ac_objext
26373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26374   (eval $ac_compile) 2>conftest.er1
26375   ac_status=$?
26376   grep -v '^ *+' conftest.er1 >conftest.err
26377   rm -f conftest.er1
26378   cat conftest.err >&5
26379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26380   (exit $ac_status); } &&
26381          { ac_try='test -z "$ac_c_werror_flag"
26382                          || test ! -s conftest.err'
26383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26384   (eval $ac_try) 2>&5
26385   ac_status=$?
26386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26387   (exit $ac_status); }; } &&
26388          { ac_try='test -s conftest.$ac_objext'
26389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26390   (eval $ac_try) 2>&5
26391   ac_status=$?
26392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26393   (exit $ac_status); }; }; then
26394   ac_header_compiler=yes
26395 else
26396   echo "$as_me: failed program was:" >&5
26397 sed 's/^/| /' conftest.$ac_ext >&5
26398
26399 ac_header_compiler=no
26400 fi
26401 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26402 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26403 echo "${ECHO_T}$ac_header_compiler" >&6
26404
26405 # Is the header present?
26406 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26407 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26408 cat >conftest.$ac_ext <<_ACEOF
26409 /* confdefs.h.  */
26410 _ACEOF
26411 cat confdefs.h >>conftest.$ac_ext
26412 cat >>conftest.$ac_ext <<_ACEOF
26413 /* end confdefs.h.  */
26414 #include <$ac_header>
26415 _ACEOF
26416 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26417   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26418   ac_status=$?
26419   grep -v '^ *+' conftest.er1 >conftest.err
26420   rm -f conftest.er1
26421   cat conftest.err >&5
26422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26423   (exit $ac_status); } >/dev/null; then
26424   if test -s conftest.err; then
26425     ac_cpp_err=$ac_c_preproc_warn_flag
26426     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26427   else
26428     ac_cpp_err=
26429   fi
26430 else
26431   ac_cpp_err=yes
26432 fi
26433 if test -z "$ac_cpp_err"; then
26434   ac_header_preproc=yes
26435 else
26436   echo "$as_me: failed program was:" >&5
26437 sed 's/^/| /' conftest.$ac_ext >&5
26438
26439   ac_header_preproc=no
26440 fi
26441 rm -f conftest.err conftest.$ac_ext
26442 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26443 echo "${ECHO_T}$ac_header_preproc" >&6
26444
26445 # So?  What about this header?
26446 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26447   yes:no: )
26448     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26449 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26450     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26451 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26452     ac_header_preproc=yes
26453     ;;
26454   no:yes:* )
26455     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26456 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26457     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26458 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26459     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26460 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26461     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26462 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26463     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26464 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26465     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26466 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26467     (
26468       cat <<\_ASBOX
26469 ## ------------------------------------------ ##
26470 ## Report this to the AC_PACKAGE_NAME lists.  ##
26471 ## ------------------------------------------ ##
26472 _ASBOX
26473     ) |
26474       sed "s/^/$as_me: WARNING:     /" >&2
26475     ;;
26476 esac
26477 echo "$as_me:$LINENO: checking for $ac_header" >&5
26478 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26479 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26480   echo $ECHO_N "(cached) $ECHO_C" >&6
26481 else
26482   eval "$as_ac_Header=\$ac_header_preproc"
26483 fi
26484 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26485 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26486
26487 fi
26488 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26489   cat >>confdefs.h <<_ACEOF
26490 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26491 _ACEOF
26492
26493 fi
26494
26495 done
26496
26497 if test "$ac_cv_header_regex_h" != yes ; then
26498         { { echo "$as_me:$LINENO: error: POSIX regex.h required." >&5
26499 echo "$as_me: error: POSIX regex.h required." >&2;}
26500    { (exit 1); exit 1; }; }
26501 fi
26502 echo "$as_me:$LINENO: checking for library containing regfree" >&5
26503 echo $ECHO_N "checking for library containing regfree... $ECHO_C" >&6
26504 if test "${ac_cv_search_regfree+set}" = set; then
26505   echo $ECHO_N "(cached) $ECHO_C" >&6
26506 else
26507   ac_func_search_save_LIBS=$LIBS
26508 ac_cv_search_regfree=no
26509 cat >conftest.$ac_ext <<_ACEOF
26510 /* confdefs.h.  */
26511 _ACEOF
26512 cat confdefs.h >>conftest.$ac_ext
26513 cat >>conftest.$ac_ext <<_ACEOF
26514 /* end confdefs.h.  */
26515
26516 /* Override any gcc2 internal prototype to avoid an error.  */
26517 #ifdef __cplusplus
26518 extern "C"
26519 #endif
26520 /* We use char because int might match the return type of a gcc2
26521    builtin and then its argument prototype would still apply.  */
26522 char regfree ();
26523 int
26524 main ()
26525 {
26526 regfree ();
26527   ;
26528   return 0;
26529 }
26530 _ACEOF
26531 rm -f conftest.$ac_objext conftest$ac_exeext
26532 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26533   (eval $ac_link) 2>conftest.er1
26534   ac_status=$?
26535   grep -v '^ *+' conftest.er1 >conftest.err
26536   rm -f conftest.er1
26537   cat conftest.err >&5
26538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26539   (exit $ac_status); } &&
26540          { ac_try='test -z "$ac_c_werror_flag"
26541                          || test ! -s conftest.err'
26542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26543   (eval $ac_try) 2>&5
26544   ac_status=$?
26545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26546   (exit $ac_status); }; } &&
26547          { ac_try='test -s conftest$ac_exeext'
26548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26549   (eval $ac_try) 2>&5
26550   ac_status=$?
26551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26552   (exit $ac_status); }; }; then
26553   ac_cv_search_regfree="none required"
26554 else
26555   echo "$as_me: failed program was:" >&5
26556 sed 's/^/| /' conftest.$ac_ext >&5
26557
26558 fi
26559 rm -f conftest.err conftest.$ac_objext \
26560       conftest$ac_exeext conftest.$ac_ext
26561 if test "$ac_cv_search_regfree" = no; then
26562   for ac_lib in regex gnuregex; do
26563     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26564     cat >conftest.$ac_ext <<_ACEOF
26565 /* confdefs.h.  */
26566 _ACEOF
26567 cat confdefs.h >>conftest.$ac_ext
26568 cat >>conftest.$ac_ext <<_ACEOF
26569 /* end confdefs.h.  */
26570
26571 /* Override any gcc2 internal prototype to avoid an error.  */
26572 #ifdef __cplusplus
26573 extern "C"
26574 #endif
26575 /* We use char because int might match the return type of a gcc2
26576    builtin and then its argument prototype would still apply.  */
26577 char regfree ();
26578 int
26579 main ()
26580 {
26581 regfree ();
26582   ;
26583   return 0;
26584 }
26585 _ACEOF
26586 rm -f conftest.$ac_objext conftest$ac_exeext
26587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26588   (eval $ac_link) 2>conftest.er1
26589   ac_status=$?
26590   grep -v '^ *+' conftest.er1 >conftest.err
26591   rm -f conftest.er1
26592   cat conftest.err >&5
26593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26594   (exit $ac_status); } &&
26595          { ac_try='test -z "$ac_c_werror_flag"
26596                          || test ! -s conftest.err'
26597   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26598   (eval $ac_try) 2>&5
26599   ac_status=$?
26600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26601   (exit $ac_status); }; } &&
26602          { ac_try='test -s conftest$ac_exeext'
26603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26604   (eval $ac_try) 2>&5
26605   ac_status=$?
26606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26607   (exit $ac_status); }; }; then
26608   ac_cv_search_regfree="-l$ac_lib"
26609 break
26610 else
26611   echo "$as_me: failed program was:" >&5
26612 sed 's/^/| /' conftest.$ac_ext >&5
26613
26614 fi
26615 rm -f conftest.err conftest.$ac_objext \
26616       conftest$ac_exeext conftest.$ac_ext
26617   done
26618 fi
26619 LIBS=$ac_func_search_save_LIBS
26620 fi
26621 echo "$as_me:$LINENO: result: $ac_cv_search_regfree" >&5
26622 echo "${ECHO_T}$ac_cv_search_regfree" >&6
26623 if test "$ac_cv_search_regfree" != no; then
26624   test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
26625   :
26626 else
26627   { { echo "$as_me:$LINENO: error: POSIX regex required." >&5
26628 echo "$as_me: error: POSIX regex required." >&2;}
26629    { (exit 1); exit 1; }; }
26630 fi
26631
26632
26633
26634 echo "$as_me:$LINENO: checking for compatible POSIX regex" >&5
26635 echo $ECHO_N "checking for compatible POSIX regex... $ECHO_C" >&6
26636 if test "${ol_cv_c_posix_regex+set}" = set; then
26637   echo $ECHO_N "(cached) $ECHO_C" >&6
26638 else
26639
26640         if test "$cross_compiling" = yes; then
26641   ol_cv_c_posix_regex=cross
26642 else
26643   cat >conftest.$ac_ext <<_ACEOF
26644 /* confdefs.h.  */
26645 _ACEOF
26646 cat confdefs.h >>conftest.$ac_ext
26647 cat >>conftest.$ac_ext <<_ACEOF
26648 /* end confdefs.h.  */
26649
26650 #include <sys/types.h>
26651 #include <regex.h>
26652 static char *pattern, *string;
26653 main()
26654 {
26655         int rc;
26656         regex_t re;
26657
26658         pattern = "^A";
26659
26660         if(regcomp(&re, pattern, 0)) {
26661                 return -1;
26662         }
26663
26664         string = "ALL MATCH";
26665
26666         rc = regexec(&re, string, 0, (void*)0, 0);
26667
26668         regfree(&re);
26669
26670         return rc;
26671 }
26672 _ACEOF
26673 rm -f conftest$ac_exeext
26674 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26675   (eval $ac_link) 2>&5
26676   ac_status=$?
26677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26678   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26680   (eval $ac_try) 2>&5
26681   ac_status=$?
26682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26683   (exit $ac_status); }; }; then
26684   ol_cv_c_posix_regex=yes
26685 else
26686   echo "$as_me: program exited with status $ac_status" >&5
26687 echo "$as_me: failed program was:" >&5
26688 sed 's/^/| /' conftest.$ac_ext >&5
26689
26690 ( exit $ac_status )
26691 ol_cv_c_posix_regex=no
26692 fi
26693 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26694 fi
26695 fi
26696 echo "$as_me:$LINENO: result: $ol_cv_c_posix_regex" >&5
26697 echo "${ECHO_T}$ol_cv_c_posix_regex" >&6
26698
26699 if test "$ol_cv_c_posix_regex" = no ; then
26700         { { echo "$as_me:$LINENO: error: broken POSIX regex!" >&5
26701 echo "$as_me: error: broken POSIX regex!" >&2;}
26702    { (exit 1); exit 1; }; }
26703 fi
26704
26705
26706 have_uuid=no
26707
26708 for ac_header in sys/uuid.h
26709 do
26710 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26711 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26712   echo "$as_me:$LINENO: checking for $ac_header" >&5
26713 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26714 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26715   echo $ECHO_N "(cached) $ECHO_C" >&6
26716 fi
26717 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26718 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26719 else
26720   # Is the header compilable?
26721 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26722 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26723 cat >conftest.$ac_ext <<_ACEOF
26724 /* confdefs.h.  */
26725 _ACEOF
26726 cat confdefs.h >>conftest.$ac_ext
26727 cat >>conftest.$ac_ext <<_ACEOF
26728 /* end confdefs.h.  */
26729 $ac_includes_default
26730 #include <$ac_header>
26731 _ACEOF
26732 rm -f conftest.$ac_objext
26733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26734   (eval $ac_compile) 2>conftest.er1
26735   ac_status=$?
26736   grep -v '^ *+' conftest.er1 >conftest.err
26737   rm -f conftest.er1
26738   cat conftest.err >&5
26739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26740   (exit $ac_status); } &&
26741          { ac_try='test -z "$ac_c_werror_flag"
26742                          || test ! -s conftest.err'
26743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26744   (eval $ac_try) 2>&5
26745   ac_status=$?
26746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26747   (exit $ac_status); }; } &&
26748          { ac_try='test -s conftest.$ac_objext'
26749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26750   (eval $ac_try) 2>&5
26751   ac_status=$?
26752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26753   (exit $ac_status); }; }; then
26754   ac_header_compiler=yes
26755 else
26756   echo "$as_me: failed program was:" >&5
26757 sed 's/^/| /' conftest.$ac_ext >&5
26758
26759 ac_header_compiler=no
26760 fi
26761 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26762 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26763 echo "${ECHO_T}$ac_header_compiler" >&6
26764
26765 # Is the header present?
26766 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26767 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26768 cat >conftest.$ac_ext <<_ACEOF
26769 /* confdefs.h.  */
26770 _ACEOF
26771 cat confdefs.h >>conftest.$ac_ext
26772 cat >>conftest.$ac_ext <<_ACEOF
26773 /* end confdefs.h.  */
26774 #include <$ac_header>
26775 _ACEOF
26776 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26777   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26778   ac_status=$?
26779   grep -v '^ *+' conftest.er1 >conftest.err
26780   rm -f conftest.er1
26781   cat conftest.err >&5
26782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26783   (exit $ac_status); } >/dev/null; then
26784   if test -s conftest.err; then
26785     ac_cpp_err=$ac_c_preproc_warn_flag
26786     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26787   else
26788     ac_cpp_err=
26789   fi
26790 else
26791   ac_cpp_err=yes
26792 fi
26793 if test -z "$ac_cpp_err"; then
26794   ac_header_preproc=yes
26795 else
26796   echo "$as_me: failed program was:" >&5
26797 sed 's/^/| /' conftest.$ac_ext >&5
26798
26799   ac_header_preproc=no
26800 fi
26801 rm -f conftest.err conftest.$ac_ext
26802 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26803 echo "${ECHO_T}$ac_header_preproc" >&6
26804
26805 # So?  What about this header?
26806 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26807   yes:no: )
26808     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26809 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26810     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26811 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26812     ac_header_preproc=yes
26813     ;;
26814   no:yes:* )
26815     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26816 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26817     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26818 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26819     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26820 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26821     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26822 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26823     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26824 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26825     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26826 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26827     (
26828       cat <<\_ASBOX
26829 ## ------------------------------------------ ##
26830 ## Report this to the AC_PACKAGE_NAME lists.  ##
26831 ## ------------------------------------------ ##
26832 _ASBOX
26833     ) |
26834       sed "s/^/$as_me: WARNING:     /" >&2
26835     ;;
26836 esac
26837 echo "$as_me:$LINENO: checking for $ac_header" >&5
26838 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26839 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26840   echo $ECHO_N "(cached) $ECHO_C" >&6
26841 else
26842   eval "$as_ac_Header=\$ac_header_preproc"
26843 fi
26844 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26845 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26846
26847 fi
26848 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26849   cat >>confdefs.h <<_ACEOF
26850 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26851 _ACEOF
26852
26853 fi
26854
26855 done
26856
26857 if test $ac_cv_header_sys_uuid_h = yes ; then
26858         save_LIBS="$LIBS"
26859         echo "$as_me:$LINENO: checking for library containing uuid_to_str" >&5
26860 echo $ECHO_N "checking for library containing uuid_to_str... $ECHO_C" >&6
26861 if test "${ac_cv_search_uuid_to_str+set}" = set; then
26862   echo $ECHO_N "(cached) $ECHO_C" >&6
26863 else
26864   ac_func_search_save_LIBS=$LIBS
26865 ac_cv_search_uuid_to_str=no
26866 cat >conftest.$ac_ext <<_ACEOF
26867 /* confdefs.h.  */
26868 _ACEOF
26869 cat confdefs.h >>conftest.$ac_ext
26870 cat >>conftest.$ac_ext <<_ACEOF
26871 /* end confdefs.h.  */
26872
26873 /* Override any gcc2 internal prototype to avoid an error.  */
26874 #ifdef __cplusplus
26875 extern "C"
26876 #endif
26877 /* We use char because int might match the return type of a gcc2
26878    builtin and then its argument prototype would still apply.  */
26879 char uuid_to_str ();
26880 int
26881 main ()
26882 {
26883 uuid_to_str ();
26884   ;
26885   return 0;
26886 }
26887 _ACEOF
26888 rm -f conftest.$ac_objext conftest$ac_exeext
26889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26890   (eval $ac_link) 2>conftest.er1
26891   ac_status=$?
26892   grep -v '^ *+' conftest.er1 >conftest.err
26893   rm -f conftest.er1
26894   cat conftest.err >&5
26895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26896   (exit $ac_status); } &&
26897          { ac_try='test -z "$ac_c_werror_flag"
26898                          || test ! -s conftest.err'
26899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26900   (eval $ac_try) 2>&5
26901   ac_status=$?
26902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26903   (exit $ac_status); }; } &&
26904          { ac_try='test -s conftest$ac_exeext'
26905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26906   (eval $ac_try) 2>&5
26907   ac_status=$?
26908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26909   (exit $ac_status); }; }; then
26910   ac_cv_search_uuid_to_str="none required"
26911 else
26912   echo "$as_me: failed program was:" >&5
26913 sed 's/^/| /' conftest.$ac_ext >&5
26914
26915 fi
26916 rm -f conftest.err conftest.$ac_objext \
26917       conftest$ac_exeext conftest.$ac_ext
26918 if test "$ac_cv_search_uuid_to_str" = no; then
26919   for ac_lib in uuid; do
26920     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26921     cat >conftest.$ac_ext <<_ACEOF
26922 /* confdefs.h.  */
26923 _ACEOF
26924 cat confdefs.h >>conftest.$ac_ext
26925 cat >>conftest.$ac_ext <<_ACEOF
26926 /* end confdefs.h.  */
26927
26928 /* Override any gcc2 internal prototype to avoid an error.  */
26929 #ifdef __cplusplus
26930 extern "C"
26931 #endif
26932 /* We use char because int might match the return type of a gcc2
26933    builtin and then its argument prototype would still apply.  */
26934 char uuid_to_str ();
26935 int
26936 main ()
26937 {
26938 uuid_to_str ();
26939   ;
26940   return 0;
26941 }
26942 _ACEOF
26943 rm -f conftest.$ac_objext conftest$ac_exeext
26944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26945   (eval $ac_link) 2>conftest.er1
26946   ac_status=$?
26947   grep -v '^ *+' conftest.er1 >conftest.err
26948   rm -f conftest.er1
26949   cat conftest.err >&5
26950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26951   (exit $ac_status); } &&
26952          { ac_try='test -z "$ac_c_werror_flag"
26953                          || test ! -s conftest.err'
26954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26955   (eval $ac_try) 2>&5
26956   ac_status=$?
26957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26958   (exit $ac_status); }; } &&
26959          { ac_try='test -s conftest$ac_exeext'
26960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26961   (eval $ac_try) 2>&5
26962   ac_status=$?
26963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26964   (exit $ac_status); }; }; then
26965   ac_cv_search_uuid_to_str="-l$ac_lib"
26966 break
26967 else
26968   echo "$as_me: failed program was:" >&5
26969 sed 's/^/| /' conftest.$ac_ext >&5
26970
26971 fi
26972 rm -f conftest.err conftest.$ac_objext \
26973       conftest$ac_exeext conftest.$ac_ext
26974   done
26975 fi
26976 LIBS=$ac_func_search_save_LIBS
26977 fi
26978 echo "$as_me:$LINENO: result: $ac_cv_search_uuid_to_str" >&5
26979 echo "${ECHO_T}$ac_cv_search_uuid_to_str" >&6
26980 if test "$ac_cv_search_uuid_to_str" != no; then
26981   test "$ac_cv_search_uuid_to_str" = "none required" || LIBS="$ac_cv_search_uuid_to_str $LIBS"
26982   have_uuid=yes
26983 else
26984   :
26985 fi
26986
26987         LIBS="$save_LIBS"
26988
26989         if test have_uuid = yes ; then
26990
26991 cat >>confdefs.h <<\_ACEOF
26992 #define HAVE_UUID_TO_STR 1
26993 _ACEOF
26994
26995
26996                 test "$ac_cv_search_uuid_to_str" = "none required" || \
26997                         SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
26998         fi
26999 fi
27000
27001 if test $have_uuid = no ; then
27002         echo "$as_me:$LINENO: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
27003 echo $ECHO_N "checking to see if -lrpcrt4 is needed for win32 UUID support... $ECHO_C" >&6
27004         save_LIBS="$LIBS"
27005         LIBS="$LIBS -lrpcrt4"
27006         cat >conftest.$ac_ext <<_ACEOF
27007 /* confdefs.h.  */
27008 _ACEOF
27009 cat confdefs.h >>conftest.$ac_ext
27010 cat >>conftest.$ac_ext <<_ACEOF
27011 /* end confdefs.h.  */
27012
27013                 int __stdcall UuidCreate(void *);
27014                 int __stdcall UuidToStringA(void *,void **);
27015
27016 int
27017 main ()
27018 {
27019
27020                 UuidCreate(0);
27021                 UuidToStringA(0,0);
27022
27023   ;
27024   return 0;
27025 }
27026 _ACEOF
27027 rm -f conftest.$ac_objext conftest$ac_exeext
27028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27029   (eval $ac_link) 2>conftest.er1
27030   ac_status=$?
27031   grep -v '^ *+' conftest.er1 >conftest.err
27032   rm -f conftest.er1
27033   cat conftest.err >&5
27034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27035   (exit $ac_status); } &&
27036          { ac_try='test -z "$ac_c_werror_flag"
27037                          || test ! -s conftest.err'
27038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27039   (eval $ac_try) 2>&5
27040   ac_status=$?
27041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27042   (exit $ac_status); }; } &&
27043          { ac_try='test -s conftest$ac_exeext'
27044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27045   (eval $ac_try) 2>&5
27046   ac_status=$?
27047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27048   (exit $ac_status); }; }; then
27049   need_rpcrt=yes
27050 else
27051   echo "$as_me: failed program was:" >&5
27052 sed 's/^/| /' conftest.$ac_ext >&5
27053
27054 need_rpcrt=no
27055 fi
27056 rm -f conftest.err conftest.$ac_objext \
27057       conftest$ac_exeext conftest.$ac_ext
27058         if test $need_rpcrt = yes; then
27059                 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
27060         fi
27061         LIBS="$save_LIBS"
27062         echo "$as_me:$LINENO: result: $need_rpcrt" >&5
27063 echo "${ECHO_T}$need_rpcrt" >&6
27064 fi
27065
27066 ol_cv_lib_resolver=no
27067 if test $ol_cv_lib_resolver = no ; then
27068         echo "$as_me:$LINENO: checking for resolver link (default)" >&5
27069 echo $ECHO_N "checking for resolver link (default)... $ECHO_C" >&6
27070 if test "${ol_cv_resolver_none+set}" = set; then
27071   echo $ECHO_N "(cached) $ECHO_C" >&6
27072 else
27073
27074         ol_RESOLVER_LIB=
27075         ol_LIBS=$LIBS
27076         LIBS="$ol_RESOLVER_LIB $LIBS"
27077
27078         cat >conftest.$ac_ext <<_ACEOF
27079 /* confdefs.h.  */
27080 _ACEOF
27081 cat confdefs.h >>conftest.$ac_ext
27082 cat >>conftest.$ac_ext <<_ACEOF
27083 /* end confdefs.h.  */
27084
27085 #ifdef HAVE_SYS_TYPES_H
27086 #       include <sys/types.h>
27087 #endif
27088 #include <netinet/in.h>
27089 #ifdef HAVE_ARPA_NAMESER_H
27090 #       include <arpa/nameser.h>
27091 #endif
27092 #ifdef HAVE_RESOLV_H
27093 #       include <resolv.h>
27094 #endif
27095
27096 int
27097 main ()
27098 {
27099 {
27100         int len, status;
27101         char *request = NULL;
27102         unsigned char reply[64*1024];
27103         unsigned char host[64*1024];
27104         unsigned char *p;
27105
27106 #ifdef NS_HFIXEDSZ
27107         /* Bind 8/9 interface */
27108         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
27109 #else
27110         /* Bind 4 interface */
27111 # ifndef T_SRV
27112 #  define T_SRV 33
27113 # endif
27114         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
27115 #endif
27116         p = reply;
27117 #ifdef NS_HFIXEDSZ
27118         /* Bind 8/9 interface */
27119         p += NS_HFIXEDSZ;
27120 #elif defined(HFIXEDSZ)
27121         /* Bind 4 interface w/ HFIXEDSZ */
27122         p += HFIXEDSZ;
27123 #else
27124         /* Bind 4 interface w/o HFIXEDSZ */
27125         p += sizeof(HEADER);
27126 #endif
27127         status = dn_expand( reply, reply+len, p, host, sizeof(host));
27128 }
27129   ;
27130   return 0;
27131 }
27132 _ACEOF
27133 rm -f conftest.$ac_objext conftest$ac_exeext
27134 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27135   (eval $ac_link) 2>conftest.er1
27136   ac_status=$?
27137   grep -v '^ *+' conftest.er1 >conftest.err
27138   rm -f conftest.er1
27139   cat conftest.err >&5
27140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27141   (exit $ac_status); } &&
27142          { ac_try='test -z "$ac_c_werror_flag"
27143                          || test ! -s conftest.err'
27144   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27145   (eval $ac_try) 2>&5
27146   ac_status=$?
27147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27148   (exit $ac_status); }; } &&
27149          { ac_try='test -s conftest$ac_exeext'
27150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27151   (eval $ac_try) 2>&5
27152   ac_status=$?
27153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27154   (exit $ac_status); }; }; then
27155   ol_cv_resolver_none=yes
27156 else
27157   echo "$as_me: failed program was:" >&5
27158 sed 's/^/| /' conftest.$ac_ext >&5
27159
27160 ol_cv_resolver_none=no
27161 fi
27162 rm -f conftest.err conftest.$ac_objext \
27163       conftest$ac_exeext conftest.$ac_ext
27164
27165         LIBS="$ol_LIBS"
27166
27167 fi
27168 echo "$as_me:$LINENO: result: $ol_cv_resolver_none" >&5
27169 echo "${ECHO_T}$ol_cv_resolver_none" >&6
27170
27171         if test $ol_cv_resolver_none = yes ; then
27172                 ol_cv_lib_resolver=yes
27173         fi
27174 fi
27175
27176 if test $ol_cv_lib_resolver = no ; then
27177         echo "$as_me:$LINENO: checking for resolver link (-lresolv)" >&5
27178 echo $ECHO_N "checking for resolver link (-lresolv)... $ECHO_C" >&6
27179 if test "${ol_cv_resolver_resolv+set}" = set; then
27180   echo $ECHO_N "(cached) $ECHO_C" >&6
27181 else
27182
27183         ol_RESOLVER_LIB=-lresolv
27184         ol_LIBS=$LIBS
27185         LIBS="$ol_RESOLVER_LIB $LIBS"
27186
27187         cat >conftest.$ac_ext <<_ACEOF
27188 /* confdefs.h.  */
27189 _ACEOF
27190 cat confdefs.h >>conftest.$ac_ext
27191 cat >>conftest.$ac_ext <<_ACEOF
27192 /* end confdefs.h.  */
27193
27194 #ifdef HAVE_SYS_TYPES_H
27195 #       include <sys/types.h>
27196 #endif
27197 #include <netinet/in.h>
27198 #ifdef HAVE_ARPA_NAMESER_H
27199 #       include <arpa/nameser.h>
27200 #endif
27201 #ifdef HAVE_RESOLV_H
27202 #       include <resolv.h>
27203 #endif
27204
27205 int
27206 main ()
27207 {
27208 {
27209         int len, status;
27210         char *request = NULL;
27211         unsigned char reply[64*1024];
27212         unsigned char host[64*1024];
27213         unsigned char *p;
27214
27215 #ifdef NS_HFIXEDSZ
27216         /* Bind 8/9 interface */
27217         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
27218 #else
27219         /* Bind 4 interface */
27220 # ifndef T_SRV
27221 #  define T_SRV 33
27222 # endif
27223         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
27224 #endif
27225         p = reply;
27226 #ifdef NS_HFIXEDSZ
27227         /* Bind 8/9 interface */
27228         p += NS_HFIXEDSZ;
27229 #elif defined(HFIXEDSZ)
27230         /* Bind 4 interface w/ HFIXEDSZ */
27231         p += HFIXEDSZ;
27232 #else
27233         /* Bind 4 interface w/o HFIXEDSZ */
27234         p += sizeof(HEADER);
27235 #endif
27236         status = dn_expand( reply, reply+len, p, host, sizeof(host));
27237 }
27238   ;
27239   return 0;
27240 }
27241 _ACEOF
27242 rm -f conftest.$ac_objext conftest$ac_exeext
27243 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27244   (eval $ac_link) 2>conftest.er1
27245   ac_status=$?
27246   grep -v '^ *+' conftest.er1 >conftest.err
27247   rm -f conftest.er1
27248   cat conftest.err >&5
27249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27250   (exit $ac_status); } &&
27251          { ac_try='test -z "$ac_c_werror_flag"
27252                          || test ! -s conftest.err'
27253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27254   (eval $ac_try) 2>&5
27255   ac_status=$?
27256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27257   (exit $ac_status); }; } &&
27258          { ac_try='test -s conftest$ac_exeext'
27259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27260   (eval $ac_try) 2>&5
27261   ac_status=$?
27262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27263   (exit $ac_status); }; }; then
27264   ol_cv_resolver_resolv=yes
27265 else
27266   echo "$as_me: failed program was:" >&5
27267 sed 's/^/| /' conftest.$ac_ext >&5
27268
27269 ol_cv_resolver_resolv=no
27270 fi
27271 rm -f conftest.err conftest.$ac_objext \
27272       conftest$ac_exeext conftest.$ac_ext
27273
27274         LIBS="$ol_LIBS"
27275
27276 fi
27277 echo "$as_me:$LINENO: result: $ol_cv_resolver_resolv" >&5
27278 echo "${ECHO_T}$ol_cv_resolver_resolv" >&6
27279
27280         if test $ol_cv_resolver_resolv = yes ; then
27281                 ol_cv_lib_resolver=-lresolv
27282         fi
27283 fi
27284
27285 if test $ol_cv_lib_resolver = no ; then
27286         echo "$as_me:$LINENO: checking for resolver link (-lbind)" >&5
27287 echo $ECHO_N "checking for resolver link (-lbind)... $ECHO_C" >&6
27288 if test "${ol_cv_resolver_bind+set}" = set; then
27289   echo $ECHO_N "(cached) $ECHO_C" >&6
27290 else
27291
27292         ol_RESOLVER_LIB=-lbind
27293         ol_LIBS=$LIBS
27294         LIBS="$ol_RESOLVER_LIB $LIBS"
27295
27296         cat >conftest.$ac_ext <<_ACEOF
27297 /* confdefs.h.  */
27298 _ACEOF
27299 cat confdefs.h >>conftest.$ac_ext
27300 cat >>conftest.$ac_ext <<_ACEOF
27301 /* end confdefs.h.  */
27302
27303 #ifdef HAVE_SYS_TYPES_H
27304 #       include <sys/types.h>
27305 #endif
27306 #include <netinet/in.h>
27307 #ifdef HAVE_ARPA_NAMESER_H
27308 #       include <arpa/nameser.h>
27309 #endif
27310 #ifdef HAVE_RESOLV_H
27311 #       include <resolv.h>
27312 #endif
27313
27314 int
27315 main ()
27316 {
27317 {
27318         int len, status;
27319         char *request = NULL;
27320         unsigned char reply[64*1024];
27321         unsigned char host[64*1024];
27322         unsigned char *p;
27323
27324 #ifdef NS_HFIXEDSZ
27325         /* Bind 8/9 interface */
27326         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
27327 #else
27328         /* Bind 4 interface */
27329 # ifndef T_SRV
27330 #  define T_SRV 33
27331 # endif
27332         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
27333 #endif
27334         p = reply;
27335 #ifdef NS_HFIXEDSZ
27336         /* Bind 8/9 interface */
27337         p += NS_HFIXEDSZ;
27338 #elif defined(HFIXEDSZ)
27339         /* Bind 4 interface w/ HFIXEDSZ */
27340         p += HFIXEDSZ;
27341 #else
27342         /* Bind 4 interface w/o HFIXEDSZ */
27343         p += sizeof(HEADER);
27344 #endif
27345         status = dn_expand( reply, reply+len, p, host, sizeof(host));
27346 }
27347   ;
27348   return 0;
27349 }
27350 _ACEOF
27351 rm -f conftest.$ac_objext conftest$ac_exeext
27352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27353   (eval $ac_link) 2>conftest.er1
27354   ac_status=$?
27355   grep -v '^ *+' conftest.er1 >conftest.err
27356   rm -f conftest.er1
27357   cat conftest.err >&5
27358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27359   (exit $ac_status); } &&
27360          { ac_try='test -z "$ac_c_werror_flag"
27361                          || test ! -s conftest.err'
27362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27363   (eval $ac_try) 2>&5
27364   ac_status=$?
27365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27366   (exit $ac_status); }; } &&
27367          { ac_try='test -s conftest$ac_exeext'
27368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27369   (eval $ac_try) 2>&5
27370   ac_status=$?
27371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27372   (exit $ac_status); }; }; then
27373   ol_cv_resolver_bind=yes
27374 else
27375   echo "$as_me: failed program was:" >&5
27376 sed 's/^/| /' conftest.$ac_ext >&5
27377
27378 ol_cv_resolver_bind=no
27379 fi
27380 rm -f conftest.err conftest.$ac_objext \
27381       conftest$ac_exeext conftest.$ac_ext
27382
27383         LIBS="$ol_LIBS"
27384
27385 fi
27386 echo "$as_me:$LINENO: result: $ol_cv_resolver_bind" >&5
27387 echo "${ECHO_T}$ol_cv_resolver_bind" >&6
27388
27389         if test $ol_cv_resolver_bind = yes ; then
27390                 ol_cv_lib_resolver=-lbind
27391         fi
27392 fi
27393
27394
27395
27396 ol_link_dnssrv=no
27397 if test "$ol_cv_lib_resolver" != no ; then
27398
27399 cat >>confdefs.h <<\_ACEOF
27400 #define HAVE_RES_QUERY 1
27401 _ACEOF
27402
27403
27404         if test "$ol_enable_dnssrv" != no ; then
27405                 ol_link_dnssrv=yes
27406         fi
27407
27408         if test "$ol_cv_lib_resolver" != yes ; then
27409                 LIBS="$ol_cv_lib_resolver $LIBS"
27410         fi
27411 fi
27412
27413 if test "$ol_enable_dnssrv" = yes -o "$ol_enable_dnssrv" = mod ; then
27414         if test "$ol_link_dnssrv" = no ; then
27415                 { { echo "$as_me:$LINENO: error: DNSSRV requires res_query()" >&5
27416 echo "$as_me: error: DNSSRV requires res_query()" >&2;}
27417    { (exit 1); exit 1; }; }
27418         fi
27419 else
27420         ol_enable_dnssrv=no
27421 fi
27422
27423
27424 for ac_func in hstrerror
27425 do
27426 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27427 echo "$as_me:$LINENO: checking for $ac_func" >&5
27428 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27429 if eval "test \"\${$as_ac_var+set}\" = set"; then
27430   echo $ECHO_N "(cached) $ECHO_C" >&6
27431 else
27432   cat >conftest.$ac_ext <<_ACEOF
27433 /* confdefs.h.  */
27434 _ACEOF
27435 cat confdefs.h >>conftest.$ac_ext
27436 cat >>conftest.$ac_ext <<_ACEOF
27437 /* end confdefs.h.  */
27438 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27439    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27440 #define $ac_func innocuous_$ac_func
27441
27442 /* System header to define __stub macros and hopefully few prototypes,
27443     which can conflict with char $ac_func (); below.
27444     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27445     <limits.h> exists even on freestanding compilers.  */
27446
27447 #ifdef __STDC__
27448 # include <limits.h>
27449 #else
27450 # include <assert.h>
27451 #endif
27452
27453 #undef $ac_func
27454
27455 /* Override any gcc2 internal prototype to avoid an error.  */
27456 #ifdef __cplusplus
27457 extern "C"
27458 {
27459 #endif
27460 /* We use char because int might match the return type of a gcc2
27461    builtin and then its argument prototype would still apply.  */
27462 char $ac_func ();
27463 /* The GNU C library defines this for functions which it implements
27464     to always fail with ENOSYS.  Some functions are actually named
27465     something starting with __ and the normal name is an alias.  */
27466 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27467 choke me
27468 #else
27469 char (*f) () = $ac_func;
27470 #endif
27471 #ifdef __cplusplus
27472 }
27473 #endif
27474
27475 int
27476 main ()
27477 {
27478 return f != $ac_func;
27479   ;
27480   return 0;
27481 }
27482 _ACEOF
27483 rm -f conftest.$ac_objext conftest$ac_exeext
27484 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27485   (eval $ac_link) 2>conftest.er1
27486   ac_status=$?
27487   grep -v '^ *+' conftest.er1 >conftest.err
27488   rm -f conftest.er1
27489   cat conftest.err >&5
27490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27491   (exit $ac_status); } &&
27492          { ac_try='test -z "$ac_c_werror_flag"
27493                          || test ! -s conftest.err'
27494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27495   (eval $ac_try) 2>&5
27496   ac_status=$?
27497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27498   (exit $ac_status); }; } &&
27499          { ac_try='test -s conftest$ac_exeext'
27500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27501   (eval $ac_try) 2>&5
27502   ac_status=$?
27503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27504   (exit $ac_status); }; }; then
27505   eval "$as_ac_var=yes"
27506 else
27507   echo "$as_me: failed program was:" >&5
27508 sed 's/^/| /' conftest.$ac_ext >&5
27509
27510 eval "$as_ac_var=no"
27511 fi
27512 rm -f conftest.err conftest.$ac_objext \
27513       conftest$ac_exeext conftest.$ac_ext
27514 fi
27515 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27516 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27517 if test `eval echo '${'$as_ac_var'}'` = yes; then
27518   cat >>confdefs.h <<_ACEOF
27519 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27520 _ACEOF
27521
27522 fi
27523 done
27524
27525
27526
27527
27528
27529
27530 for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
27531 do
27532 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27533 echo "$as_me:$LINENO: checking for $ac_func" >&5
27534 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27535 if eval "test \"\${$as_ac_var+set}\" = set"; then
27536   echo $ECHO_N "(cached) $ECHO_C" >&6
27537 else
27538   cat >conftest.$ac_ext <<_ACEOF
27539 /* confdefs.h.  */
27540 _ACEOF
27541 cat confdefs.h >>conftest.$ac_ext
27542 cat >>conftest.$ac_ext <<_ACEOF
27543 /* end confdefs.h.  */
27544 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27545    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27546 #define $ac_func innocuous_$ac_func
27547
27548 /* System header to define __stub macros and hopefully few prototypes,
27549     which can conflict with char $ac_func (); below.
27550     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27551     <limits.h> exists even on freestanding compilers.  */
27552
27553 #ifdef __STDC__
27554 # include <limits.h>
27555 #else
27556 # include <assert.h>
27557 #endif
27558
27559 #undef $ac_func
27560
27561 /* Override any gcc2 internal prototype to avoid an error.  */
27562 #ifdef __cplusplus
27563 extern "C"
27564 {
27565 #endif
27566 /* We use char because int might match the return type of a gcc2
27567    builtin and then its argument prototype would still apply.  */
27568 char $ac_func ();
27569 /* The GNU C library defines this for functions which it implements
27570     to always fail with ENOSYS.  Some functions are actually named
27571     something starting with __ and the normal name is an alias.  */
27572 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27573 choke me
27574 #else
27575 char (*f) () = $ac_func;
27576 #endif
27577 #ifdef __cplusplus
27578 }
27579 #endif
27580
27581 int
27582 main ()
27583 {
27584 return f != $ac_func;
27585   ;
27586   return 0;
27587 }
27588 _ACEOF
27589 rm -f conftest.$ac_objext conftest$ac_exeext
27590 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27591   (eval $ac_link) 2>conftest.er1
27592   ac_status=$?
27593   grep -v '^ *+' conftest.er1 >conftest.err
27594   rm -f conftest.er1
27595   cat conftest.err >&5
27596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27597   (exit $ac_status); } &&
27598          { ac_try='test -z "$ac_c_werror_flag"
27599                          || test ! -s conftest.err'
27600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27601   (eval $ac_try) 2>&5
27602   ac_status=$?
27603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27604   (exit $ac_status); }; } &&
27605          { ac_try='test -s conftest$ac_exeext'
27606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27607   (eval $ac_try) 2>&5
27608   ac_status=$?
27609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27610   (exit $ac_status); }; }; then
27611   eval "$as_ac_var=yes"
27612 else
27613   echo "$as_me: failed program was:" >&5
27614 sed 's/^/| /' conftest.$ac_ext >&5
27615
27616 eval "$as_ac_var=no"
27617 fi
27618 rm -f conftest.err conftest.$ac_objext \
27619       conftest$ac_exeext conftest.$ac_ext
27620 fi
27621 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27622 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27623 if test `eval echo '${'$as_ac_var'}'` = yes; then
27624   cat >>confdefs.h <<_ACEOF
27625 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27626 _ACEOF
27627
27628 fi
27629 done
27630
27631
27632 ol_link_ipv6=no
27633 if test $ac_cv_func_getaddrinfo = no -o $ac_cv_func_inet_ntop = no ; then
27634         if test $ol_enable_ipv6 = yes ; then
27635                 { { echo "$as_me:$LINENO: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&5
27636 echo "$as_me: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&2;}
27637    { (exit 1); exit 1; }; }
27638         fi
27639 elif test $ol_enable_ipv6 != no ; then
27640         echo "$as_me:$LINENO: checking INET6_ADDRSTRLEN" >&5
27641 echo $ECHO_N "checking INET6_ADDRSTRLEN... $ECHO_C" >&6
27642 if test "${ol_cv_inet6_addrstrlen+set}" = set; then
27643   echo $ECHO_N "(cached) $ECHO_C" >&6
27644 else
27645
27646                 cat >conftest.$ac_ext <<_ACEOF
27647 /* confdefs.h.  */
27648 _ACEOF
27649 cat confdefs.h >>conftest.$ac_ext
27650 cat >>conftest.$ac_ext <<_ACEOF
27651 /* end confdefs.h.  */
27652
27653 #                       include <netinet/in.h>
27654 #                       ifdef INET6_ADDRSTRLEN
27655                                 __has_inet6_addrstrlen__;
27656 #                       endif
27657
27658 _ACEOF
27659 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27660   $EGREP "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
27661   ol_cv_inet6_addrstrlen=yes
27662 else
27663   ol_cv_inet6_addrstrlen=no
27664 fi
27665 rm -f conftest*
27666
27667 fi
27668 echo "$as_me:$LINENO: result: $ol_cv_inet6_addrstrlen" >&5
27669 echo "${ECHO_T}$ol_cv_inet6_addrstrlen" >&6
27670
27671
27672         echo "$as_me:$LINENO: checking struct sockaddr_storage" >&5
27673 echo $ECHO_N "checking struct sockaddr_storage... $ECHO_C" >&6
27674 if test "${ol_cv_struct_sockaddr_storage+set}" = set; then
27675   echo $ECHO_N "(cached) $ECHO_C" >&6
27676 else
27677
27678                 cat >conftest.$ac_ext <<_ACEOF
27679 /* confdefs.h.  */
27680 _ACEOF
27681 cat confdefs.h >>conftest.$ac_ext
27682 cat >>conftest.$ac_ext <<_ACEOF
27683 /* end confdefs.h.  */
27684
27685 #include <sys/types.h>
27686 #include <sys/socket.h>
27687
27688 int
27689 main ()
27690 {
27691
27692                         struct sockaddr_storage ss;
27693
27694   ;
27695   return 0;
27696 }
27697 _ACEOF
27698 rm -f conftest.$ac_objext
27699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27700   (eval $ac_compile) 2>conftest.er1
27701   ac_status=$?
27702   grep -v '^ *+' conftest.er1 >conftest.err
27703   rm -f conftest.er1
27704   cat conftest.err >&5
27705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27706   (exit $ac_status); } &&
27707          { ac_try='test -z "$ac_c_werror_flag"
27708                          || test ! -s conftest.err'
27709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27710   (eval $ac_try) 2>&5
27711   ac_status=$?
27712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27713   (exit $ac_status); }; } &&
27714          { ac_try='test -s conftest.$ac_objext'
27715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27716   (eval $ac_try) 2>&5
27717   ac_status=$?
27718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27719   (exit $ac_status); }; }; then
27720   ol_cv_struct_sockaddr_storage=yes
27721 else
27722   echo "$as_me: failed program was:" >&5
27723 sed 's/^/| /' conftest.$ac_ext >&5
27724
27725 ol_cv_struct_sockaddr_storage=no
27726 fi
27727 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27728 fi
27729 echo "$as_me:$LINENO: result: $ol_cv_struct_sockaddr_storage" >&5
27730 echo "${ECHO_T}$ol_cv_struct_sockaddr_storage" >&6
27731
27732         if test $ol_cv_inet6_addrstrlen = yes \
27733                 -a $ol_cv_struct_sockaddr_storage = yes ; then
27734                 ol_link_ipv6=yes
27735         elif test $ol_enable_ipv6 = yes \
27736                         -a $ol_cv_inet6_addrstrlen = no ; then
27737                 { { echo "$as_me:$LINENO: error: IPv6 support requires INET6_ADDRSTRLEN" >&5
27738 echo "$as_me: error: IPv6 support requires INET6_ADDRSTRLEN" >&2;}
27739    { (exit 1); exit 1; }; }
27740         elif test $ol_enable_ipv6 = yes \
27741                         -a $ol_cv_struct_sockaddr_storage = no ; then
27742                 { { echo "$as_me:$LINENO: error: IPv6 support requires struct sockaddr_storage" >&5
27743 echo "$as_me: error: IPv6 support requires struct sockaddr_storage" >&2;}
27744    { (exit 1); exit 1; }; }
27745         fi
27746 fi
27747
27748 if test $ol_enable_local != no ; then
27749
27750 for ac_header in sys/un.h
27751 do
27752 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27753 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27754   echo "$as_me:$LINENO: checking for $ac_header" >&5
27755 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27756 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27757   echo $ECHO_N "(cached) $ECHO_C" >&6
27758 fi
27759 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27760 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27761 else
27762   # Is the header compilable?
27763 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27764 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27765 cat >conftest.$ac_ext <<_ACEOF
27766 /* confdefs.h.  */
27767 _ACEOF
27768 cat confdefs.h >>conftest.$ac_ext
27769 cat >>conftest.$ac_ext <<_ACEOF
27770 /* end confdefs.h.  */
27771 $ac_includes_default
27772 #include <$ac_header>
27773 _ACEOF
27774 rm -f conftest.$ac_objext
27775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27776   (eval $ac_compile) 2>conftest.er1
27777   ac_status=$?
27778   grep -v '^ *+' conftest.er1 >conftest.err
27779   rm -f conftest.er1
27780   cat conftest.err >&5
27781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27782   (exit $ac_status); } &&
27783          { ac_try='test -z "$ac_c_werror_flag"
27784                          || test ! -s conftest.err'
27785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27786   (eval $ac_try) 2>&5
27787   ac_status=$?
27788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27789   (exit $ac_status); }; } &&
27790          { ac_try='test -s conftest.$ac_objext'
27791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27792   (eval $ac_try) 2>&5
27793   ac_status=$?
27794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27795   (exit $ac_status); }; }; then
27796   ac_header_compiler=yes
27797 else
27798   echo "$as_me: failed program was:" >&5
27799 sed 's/^/| /' conftest.$ac_ext >&5
27800
27801 ac_header_compiler=no
27802 fi
27803 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27804 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27805 echo "${ECHO_T}$ac_header_compiler" >&6
27806
27807 # Is the header present?
27808 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27809 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27810 cat >conftest.$ac_ext <<_ACEOF
27811 /* confdefs.h.  */
27812 _ACEOF
27813 cat confdefs.h >>conftest.$ac_ext
27814 cat >>conftest.$ac_ext <<_ACEOF
27815 /* end confdefs.h.  */
27816 #include <$ac_header>
27817 _ACEOF
27818 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27819   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27820   ac_status=$?
27821   grep -v '^ *+' conftest.er1 >conftest.err
27822   rm -f conftest.er1
27823   cat conftest.err >&5
27824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27825   (exit $ac_status); } >/dev/null; then
27826   if test -s conftest.err; then
27827     ac_cpp_err=$ac_c_preproc_warn_flag
27828     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27829   else
27830     ac_cpp_err=
27831   fi
27832 else
27833   ac_cpp_err=yes
27834 fi
27835 if test -z "$ac_cpp_err"; then
27836   ac_header_preproc=yes
27837 else
27838   echo "$as_me: failed program was:" >&5
27839 sed 's/^/| /' conftest.$ac_ext >&5
27840
27841   ac_header_preproc=no
27842 fi
27843 rm -f conftest.err conftest.$ac_ext
27844 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27845 echo "${ECHO_T}$ac_header_preproc" >&6
27846
27847 # So?  What about this header?
27848 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27849   yes:no: )
27850     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27851 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27852     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27853 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27854     ac_header_preproc=yes
27855     ;;
27856   no:yes:* )
27857     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27858 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27859     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27860 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27861     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27862 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27863     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27864 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27865     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27866 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27867     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27868 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27869     (
27870       cat <<\_ASBOX
27871 ## ------------------------------------------ ##
27872 ## Report this to the AC_PACKAGE_NAME lists.  ##
27873 ## ------------------------------------------ ##
27874 _ASBOX
27875     ) |
27876       sed "s/^/$as_me: WARNING:     /" >&2
27877     ;;
27878 esac
27879 echo "$as_me:$LINENO: checking for $ac_header" >&5
27880 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27881 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27882   echo $ECHO_N "(cached) $ECHO_C" >&6
27883 else
27884   eval "$as_ac_Header=\$ac_header_preproc"
27885 fi
27886 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27887 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27888
27889 fi
27890 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27891   cat >>confdefs.h <<_ACEOF
27892 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27893 _ACEOF
27894
27895 fi
27896
27897 done
27898
27899
27900         if test $ol_enable_local = auto ; then
27901                 ol_enable_local=$ac_cv_header_sys_un_h
27902         elif test $ac_cv_header_sys_un_h = no ; then
27903                 { { echo "$as_me:$LINENO: error: AF_LOCAL domain support requires sys/un.h" >&5
27904 echo "$as_me: error: AF_LOCAL domain support requires sys/un.h" >&2;}
27905    { (exit 1); exit 1; }; }
27906         fi
27907 fi
27908
27909 ol_link_kbind=no
27910 ol_link_krb5=no
27911 ol_link_krb4=no
27912
27913 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
27914         -o $ol_with_kerberos = k5 -o $ol_with_kerberos = k5only \
27915         -o $ol_with_kerberos = k425 ; then
27916
27917
27918 for ac_header in krb5.h
27919 do
27920 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27921 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27922   echo "$as_me:$LINENO: checking for $ac_header" >&5
27923 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27924 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27925   echo $ECHO_N "(cached) $ECHO_C" >&6
27926 fi
27927 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27928 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27929 else
27930   # Is the header compilable?
27931 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27932 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27933 cat >conftest.$ac_ext <<_ACEOF
27934 /* confdefs.h.  */
27935 _ACEOF
27936 cat confdefs.h >>conftest.$ac_ext
27937 cat >>conftest.$ac_ext <<_ACEOF
27938 /* end confdefs.h.  */
27939 $ac_includes_default
27940 #include <$ac_header>
27941 _ACEOF
27942 rm -f conftest.$ac_objext
27943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27944   (eval $ac_compile) 2>conftest.er1
27945   ac_status=$?
27946   grep -v '^ *+' conftest.er1 >conftest.err
27947   rm -f conftest.er1
27948   cat conftest.err >&5
27949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27950   (exit $ac_status); } &&
27951          { ac_try='test -z "$ac_c_werror_flag"
27952                          || test ! -s conftest.err'
27953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27954   (eval $ac_try) 2>&5
27955   ac_status=$?
27956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27957   (exit $ac_status); }; } &&
27958          { ac_try='test -s conftest.$ac_objext'
27959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27960   (eval $ac_try) 2>&5
27961   ac_status=$?
27962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27963   (exit $ac_status); }; }; then
27964   ac_header_compiler=yes
27965 else
27966   echo "$as_me: failed program was:" >&5
27967 sed 's/^/| /' conftest.$ac_ext >&5
27968
27969 ac_header_compiler=no
27970 fi
27971 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27972 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27973 echo "${ECHO_T}$ac_header_compiler" >&6
27974
27975 # Is the header present?
27976 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27977 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27978 cat >conftest.$ac_ext <<_ACEOF
27979 /* confdefs.h.  */
27980 _ACEOF
27981 cat confdefs.h >>conftest.$ac_ext
27982 cat >>conftest.$ac_ext <<_ACEOF
27983 /* end confdefs.h.  */
27984 #include <$ac_header>
27985 _ACEOF
27986 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27987   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27988   ac_status=$?
27989   grep -v '^ *+' conftest.er1 >conftest.err
27990   rm -f conftest.er1
27991   cat conftest.err >&5
27992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27993   (exit $ac_status); } >/dev/null; then
27994   if test -s conftest.err; then
27995     ac_cpp_err=$ac_c_preproc_warn_flag
27996     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27997   else
27998     ac_cpp_err=
27999   fi
28000 else
28001   ac_cpp_err=yes
28002 fi
28003 if test -z "$ac_cpp_err"; then
28004   ac_header_preproc=yes
28005 else
28006   echo "$as_me: failed program was:" >&5
28007 sed 's/^/| /' conftest.$ac_ext >&5
28008
28009   ac_header_preproc=no
28010 fi
28011 rm -f conftest.err conftest.$ac_ext
28012 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28013 echo "${ECHO_T}$ac_header_preproc" >&6
28014
28015 # So?  What about this header?
28016 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28017   yes:no: )
28018     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28019 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28020     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28021 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28022     ac_header_preproc=yes
28023     ;;
28024   no:yes:* )
28025     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28026 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28027     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28028 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28029     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28030 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28031     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28032 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28033     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28034 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28035     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28036 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28037     (
28038       cat <<\_ASBOX
28039 ## ------------------------------------------ ##
28040 ## Report this to the AC_PACKAGE_NAME lists.  ##
28041 ## ------------------------------------------ ##
28042 _ASBOX
28043     ) |
28044       sed "s/^/$as_me: WARNING:     /" >&2
28045     ;;
28046 esac
28047 echo "$as_me:$LINENO: checking for $ac_header" >&5
28048 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28049 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28050   echo $ECHO_N "(cached) $ECHO_C" >&6
28051 else
28052   eval "$as_ac_Header=\$ac_header_preproc"
28053 fi
28054 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28055 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28056
28057 fi
28058 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28059   cat >>confdefs.h <<_ACEOF
28060 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28061 _ACEOF
28062
28063 fi
28064
28065 done
28066
28067
28068         if test $ac_cv_header_krb5_h = yes ; then
28069
28070 for ac_header in heim_err.h
28071 do
28072 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28073 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28074   echo "$as_me:$LINENO: checking for $ac_header" >&5
28075 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28076 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28077   echo $ECHO_N "(cached) $ECHO_C" >&6
28078 fi
28079 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28080 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28081 else
28082   # Is the header compilable?
28083 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28084 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28085 cat >conftest.$ac_ext <<_ACEOF
28086 /* confdefs.h.  */
28087 _ACEOF
28088 cat confdefs.h >>conftest.$ac_ext
28089 cat >>conftest.$ac_ext <<_ACEOF
28090 /* end confdefs.h.  */
28091 $ac_includes_default
28092 #include <$ac_header>
28093 _ACEOF
28094 rm -f conftest.$ac_objext
28095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28096   (eval $ac_compile) 2>conftest.er1
28097   ac_status=$?
28098   grep -v '^ *+' conftest.er1 >conftest.err
28099   rm -f conftest.er1
28100   cat conftest.err >&5
28101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28102   (exit $ac_status); } &&
28103          { ac_try='test -z "$ac_c_werror_flag"
28104                          || test ! -s conftest.err'
28105   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28106   (eval $ac_try) 2>&5
28107   ac_status=$?
28108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28109   (exit $ac_status); }; } &&
28110          { ac_try='test -s conftest.$ac_objext'
28111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28112   (eval $ac_try) 2>&5
28113   ac_status=$?
28114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28115   (exit $ac_status); }; }; then
28116   ac_header_compiler=yes
28117 else
28118   echo "$as_me: failed program was:" >&5
28119 sed 's/^/| /' conftest.$ac_ext >&5
28120
28121 ac_header_compiler=no
28122 fi
28123 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28124 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28125 echo "${ECHO_T}$ac_header_compiler" >&6
28126
28127 # Is the header present?
28128 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28129 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28130 cat >conftest.$ac_ext <<_ACEOF
28131 /* confdefs.h.  */
28132 _ACEOF
28133 cat confdefs.h >>conftest.$ac_ext
28134 cat >>conftest.$ac_ext <<_ACEOF
28135 /* end confdefs.h.  */
28136 #include <$ac_header>
28137 _ACEOF
28138 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28139   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28140   ac_status=$?
28141   grep -v '^ *+' conftest.er1 >conftest.err
28142   rm -f conftest.er1
28143   cat conftest.err >&5
28144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28145   (exit $ac_status); } >/dev/null; then
28146   if test -s conftest.err; then
28147     ac_cpp_err=$ac_c_preproc_warn_flag
28148     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28149   else
28150     ac_cpp_err=
28151   fi
28152 else
28153   ac_cpp_err=yes
28154 fi
28155 if test -z "$ac_cpp_err"; then
28156   ac_header_preproc=yes
28157 else
28158   echo "$as_me: failed program was:" >&5
28159 sed 's/^/| /' conftest.$ac_ext >&5
28160
28161   ac_header_preproc=no
28162 fi
28163 rm -f conftest.err conftest.$ac_ext
28164 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28165 echo "${ECHO_T}$ac_header_preproc" >&6
28166
28167 # So?  What about this header?
28168 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28169   yes:no: )
28170     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28171 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28172     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28173 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28174     ac_header_preproc=yes
28175     ;;
28176   no:yes:* )
28177     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28178 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28179     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28180 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28181     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28182 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28183     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28184 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28185     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28186 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28187     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28188 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28189     (
28190       cat <<\_ASBOX
28191 ## ------------------------------------------ ##
28192 ## Report this to the AC_PACKAGE_NAME lists.  ##
28193 ## ------------------------------------------ ##
28194 _ASBOX
28195     ) |
28196       sed "s/^/$as_me: WARNING:     /" >&2
28197     ;;
28198 esac
28199 echo "$as_me:$LINENO: checking for $ac_header" >&5
28200 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28201 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28202   echo $ECHO_N "(cached) $ECHO_C" >&6
28203 else
28204   eval "$as_ac_Header=\$ac_header_preproc"
28205 fi
28206 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28207 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28208
28209 fi
28210 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28211   cat >>confdefs.h <<_ACEOF
28212 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28213 _ACEOF
28214
28215 fi
28216
28217 done
28218
28219                 if test $ac_cv_header_heim_err_h = yes ; then
28220                         krb5_impl=heimdal
28221                 else
28222                         krb5_impl=mit
28223                 fi
28224
28225                 if test $krb5_impl = mit; then
28226                         echo "$as_me:$LINENO: checking for main in -lk5crypto" >&5
28227 echo $ECHO_N "checking for main in -lk5crypto... $ECHO_C" >&6
28228 if test "${ac_cv_lib_k5crypto_main+set}" = set; then
28229   echo $ECHO_N "(cached) $ECHO_C" >&6
28230 else
28231   ac_check_lib_save_LIBS=$LIBS
28232 LIBS="-lk5crypto  $LIBS"
28233 cat >conftest.$ac_ext <<_ACEOF
28234 /* confdefs.h.  */
28235 _ACEOF
28236 cat confdefs.h >>conftest.$ac_ext
28237 cat >>conftest.$ac_ext <<_ACEOF
28238 /* end confdefs.h.  */
28239
28240
28241 int
28242 main ()
28243 {
28244 main ();
28245   ;
28246   return 0;
28247 }
28248 _ACEOF
28249 rm -f conftest.$ac_objext conftest$ac_exeext
28250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28251   (eval $ac_link) 2>conftest.er1
28252   ac_status=$?
28253   grep -v '^ *+' conftest.er1 >conftest.err
28254   rm -f conftest.er1
28255   cat conftest.err >&5
28256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28257   (exit $ac_status); } &&
28258          { ac_try='test -z "$ac_c_werror_flag"
28259                          || test ! -s conftest.err'
28260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28261   (eval $ac_try) 2>&5
28262   ac_status=$?
28263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28264   (exit $ac_status); }; } &&
28265          { ac_try='test -s conftest$ac_exeext'
28266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28267   (eval $ac_try) 2>&5
28268   ac_status=$?
28269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28270   (exit $ac_status); }; }; then
28271   ac_cv_lib_k5crypto_main=yes
28272 else
28273   echo "$as_me: failed program was:" >&5
28274 sed 's/^/| /' conftest.$ac_ext >&5
28275
28276 ac_cv_lib_k5crypto_main=no
28277 fi
28278 rm -f conftest.err conftest.$ac_objext \
28279       conftest$ac_exeext conftest.$ac_ext
28280 LIBS=$ac_check_lib_save_LIBS
28281 fi
28282 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_main" >&5
28283 echo "${ECHO_T}$ac_cv_lib_k5crypto_main" >&6
28284 if test $ac_cv_lib_k5crypto_main = yes; then
28285   krb5crypto=k5crypto
28286 else
28287   krb5crypto=crypto
28288 fi
28289
28290
28291                         echo "$as_me:$LINENO: checking for main in -lkrb5" >&5
28292 echo $ECHO_N "checking for main in -lkrb5... $ECHO_C" >&6
28293 if test "${ac_cv_lib_krb5_main+set}" = set; then
28294   echo $ECHO_N "(cached) $ECHO_C" >&6
28295 else
28296   ac_check_lib_save_LIBS=$LIBS
28297 LIBS="-lkrb5 -l$krb5crypto -lcom_err $LIBS"
28298 cat >conftest.$ac_ext <<_ACEOF
28299 /* confdefs.h.  */
28300 _ACEOF
28301 cat confdefs.h >>conftest.$ac_ext
28302 cat >>conftest.$ac_ext <<_ACEOF
28303 /* end confdefs.h.  */
28304
28305
28306 int
28307 main ()
28308 {
28309 main ();
28310   ;
28311   return 0;
28312 }
28313 _ACEOF
28314 rm -f conftest.$ac_objext conftest$ac_exeext
28315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28316   (eval $ac_link) 2>conftest.er1
28317   ac_status=$?
28318   grep -v '^ *+' conftest.er1 >conftest.err
28319   rm -f conftest.er1
28320   cat conftest.err >&5
28321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28322   (exit $ac_status); } &&
28323          { ac_try='test -z "$ac_c_werror_flag"
28324                          || test ! -s conftest.err'
28325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28326   (eval $ac_try) 2>&5
28327   ac_status=$?
28328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28329   (exit $ac_status); }; } &&
28330          { ac_try='test -s conftest$ac_exeext'
28331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28332   (eval $ac_try) 2>&5
28333   ac_status=$?
28334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28335   (exit $ac_status); }; }; then
28336   ac_cv_lib_krb5_main=yes
28337 else
28338   echo "$as_me: failed program was:" >&5
28339 sed 's/^/| /' conftest.$ac_ext >&5
28340
28341 ac_cv_lib_krb5_main=no
28342 fi
28343 rm -f conftest.err conftest.$ac_objext \
28344       conftest$ac_exeext conftest.$ac_ext
28345 LIBS=$ac_check_lib_save_LIBS
28346 fi
28347 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_main" >&5
28348 echo "${ECHO_T}$ac_cv_lib_krb5_main" >&6
28349 if test $ac_cv_lib_krb5_main = yes; then
28350   have_krb5=yes
28351                                 KRB5_LIBS="-lkrb5 -l$krb5crypto -lcom_err"
28352 else
28353   have_krb5=no
28354 fi
28355
28356
28357                 elif test $krb5_impl = heimdal; then
28358                         echo "$as_me:$LINENO: checking for main in -ldes" >&5
28359 echo $ECHO_N "checking for main in -ldes... $ECHO_C" >&6
28360 if test "${ac_cv_lib_des_main+set}" = set; then
28361   echo $ECHO_N "(cached) $ECHO_C" >&6
28362 else
28363   ac_check_lib_save_LIBS=$LIBS
28364 LIBS="-ldes  $LIBS"
28365 cat >conftest.$ac_ext <<_ACEOF
28366 /* confdefs.h.  */
28367 _ACEOF
28368 cat confdefs.h >>conftest.$ac_ext
28369 cat >>conftest.$ac_ext <<_ACEOF
28370 /* end confdefs.h.  */
28371
28372
28373 int
28374 main ()
28375 {
28376 main ();
28377   ;
28378   return 0;
28379 }
28380 _ACEOF
28381 rm -f conftest.$ac_objext conftest$ac_exeext
28382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28383   (eval $ac_link) 2>conftest.er1
28384   ac_status=$?
28385   grep -v '^ *+' conftest.er1 >conftest.err
28386   rm -f conftest.er1
28387   cat conftest.err >&5
28388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28389   (exit $ac_status); } &&
28390          { ac_try='test -z "$ac_c_werror_flag"
28391                          || test ! -s conftest.err'
28392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28393   (eval $ac_try) 2>&5
28394   ac_status=$?
28395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28396   (exit $ac_status); }; } &&
28397          { ac_try='test -s conftest$ac_exeext'
28398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28399   (eval $ac_try) 2>&5
28400   ac_status=$?
28401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28402   (exit $ac_status); }; }; then
28403   ac_cv_lib_des_main=yes
28404 else
28405   echo "$as_me: failed program was:" >&5
28406 sed 's/^/| /' conftest.$ac_ext >&5
28407
28408 ac_cv_lib_des_main=no
28409 fi
28410 rm -f conftest.err conftest.$ac_objext \
28411       conftest$ac_exeext conftest.$ac_ext
28412 LIBS=$ac_check_lib_save_LIBS
28413 fi
28414 echo "$as_me:$LINENO: result: $ac_cv_lib_des_main" >&5
28415 echo "${ECHO_T}$ac_cv_lib_des_main" >&6
28416 if test $ac_cv_lib_des_main = yes; then
28417   krb5crypto=des
28418 else
28419   krb5crypto=crypto
28420 fi
28421
28422
28423                         echo "$as_me:$LINENO: checking for main in -lkrb5" >&5
28424 echo $ECHO_N "checking for main in -lkrb5... $ECHO_C" >&6
28425 if test "${ac_cv_lib_krb5_main+set}" = set; then
28426   echo $ECHO_N "(cached) $ECHO_C" >&6
28427 else
28428   ac_check_lib_save_LIBS=$LIBS
28429 LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
28430 cat >conftest.$ac_ext <<_ACEOF
28431 /* confdefs.h.  */
28432 _ACEOF
28433 cat confdefs.h >>conftest.$ac_ext
28434 cat >>conftest.$ac_ext <<_ACEOF
28435 /* end confdefs.h.  */
28436
28437
28438 int
28439 main ()
28440 {
28441 main ();
28442   ;
28443   return 0;
28444 }
28445 _ACEOF
28446 rm -f conftest.$ac_objext conftest$ac_exeext
28447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28448   (eval $ac_link) 2>conftest.er1
28449   ac_status=$?
28450   grep -v '^ *+' conftest.er1 >conftest.err
28451   rm -f conftest.er1
28452   cat conftest.err >&5
28453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28454   (exit $ac_status); } &&
28455          { ac_try='test -z "$ac_c_werror_flag"
28456                          || test ! -s conftest.err'
28457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28458   (eval $ac_try) 2>&5
28459   ac_status=$?
28460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28461   (exit $ac_status); }; } &&
28462          { ac_try='test -s conftest$ac_exeext'
28463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28464   (eval $ac_try) 2>&5
28465   ac_status=$?
28466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28467   (exit $ac_status); }; }; then
28468   ac_cv_lib_krb5_main=yes
28469 else
28470   echo "$as_me: failed program was:" >&5
28471 sed 's/^/| /' conftest.$ac_ext >&5
28472
28473 ac_cv_lib_krb5_main=no
28474 fi
28475 rm -f conftest.err conftest.$ac_objext \
28476       conftest$ac_exeext conftest.$ac_ext
28477 LIBS=$ac_check_lib_save_LIBS
28478 fi
28479 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_main" >&5
28480 echo "${ECHO_T}$ac_cv_lib_krb5_main" >&6
28481 if test $ac_cv_lib_krb5_main = yes; then
28482   have_krb5=yes
28483                                 KRB5_LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err"
28484 else
28485   have_krb5=no
28486 fi
28487
28488
28489
28490 cat >>confdefs.h <<\_ACEOF
28491 #define HAVE_HEIMDAL_KERBEROS 1
28492 _ACEOF
28493
28494
28495                 else
28496                         have_krb5=no
28497                         { echo "$as_me:$LINENO: WARNING: Unrecognized Kerberos5 Implementation" >&5
28498 echo "$as_me: WARNING: Unrecognized Kerberos5 Implementation" >&2;}
28499                 fi
28500
28501                 if test $have_krb5 = yes ; then
28502                         ol_link_krb5=yes
28503
28504
28505 cat >>confdefs.h <<\_ACEOF
28506 #define HAVE_KRB5 1
28507 _ACEOF
28508
28509
28510                         if test $ol_with_kerberos = k5only ; then
28511                                 ol_with_kerberos=found
28512                         fi
28513
28514                 elif test $ol_with_kerberos != auto ; then
28515                         { { echo "$as_me:$LINENO: error: Required Kerberos 5 support not available" >&5
28516 echo "$as_me: error: Required Kerberos 5 support not available" >&2;}
28517    { (exit 1); exit 1; }; }
28518                 fi
28519
28520         fi
28521 fi
28522
28523 if test $ol_link_krb5 = yes -a \( $ol_with_kerberos = yes -o \
28524         $ol_with_kerberos = auto -o $ol_with_kerberos = k425 \) ; then
28525
28526
28527
28528 for ac_header in kerberosIV/krb.h kerberosIV/des.h
28529 do
28530 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28531 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28532   echo "$as_me:$LINENO: checking for $ac_header" >&5
28533 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28534 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28535   echo $ECHO_N "(cached) $ECHO_C" >&6
28536 fi
28537 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28538 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28539 else
28540   # Is the header compilable?
28541 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28542 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28543 cat >conftest.$ac_ext <<_ACEOF
28544 /* confdefs.h.  */
28545 _ACEOF
28546 cat confdefs.h >>conftest.$ac_ext
28547 cat >>conftest.$ac_ext <<_ACEOF
28548 /* end confdefs.h.  */
28549 $ac_includes_default
28550 #include <$ac_header>
28551 _ACEOF
28552 rm -f conftest.$ac_objext
28553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28554   (eval $ac_compile) 2>conftest.er1
28555   ac_status=$?
28556   grep -v '^ *+' conftest.er1 >conftest.err
28557   rm -f conftest.er1
28558   cat conftest.err >&5
28559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28560   (exit $ac_status); } &&
28561          { ac_try='test -z "$ac_c_werror_flag"
28562                          || test ! -s conftest.err'
28563   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28564   (eval $ac_try) 2>&5
28565   ac_status=$?
28566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28567   (exit $ac_status); }; } &&
28568          { ac_try='test -s conftest.$ac_objext'
28569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28570   (eval $ac_try) 2>&5
28571   ac_status=$?
28572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28573   (exit $ac_status); }; }; then
28574   ac_header_compiler=yes
28575 else
28576   echo "$as_me: failed program was:" >&5
28577 sed 's/^/| /' conftest.$ac_ext >&5
28578
28579 ac_header_compiler=no
28580 fi
28581 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28582 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28583 echo "${ECHO_T}$ac_header_compiler" >&6
28584
28585 # Is the header present?
28586 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28587 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28588 cat >conftest.$ac_ext <<_ACEOF
28589 /* confdefs.h.  */
28590 _ACEOF
28591 cat confdefs.h >>conftest.$ac_ext
28592 cat >>conftest.$ac_ext <<_ACEOF
28593 /* end confdefs.h.  */
28594 #include <$ac_header>
28595 _ACEOF
28596 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28597   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28598   ac_status=$?
28599   grep -v '^ *+' conftest.er1 >conftest.err
28600   rm -f conftest.er1
28601   cat conftest.err >&5
28602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28603   (exit $ac_status); } >/dev/null; then
28604   if test -s conftest.err; then
28605     ac_cpp_err=$ac_c_preproc_warn_flag
28606     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28607   else
28608     ac_cpp_err=
28609   fi
28610 else
28611   ac_cpp_err=yes
28612 fi
28613 if test -z "$ac_cpp_err"; then
28614   ac_header_preproc=yes
28615 else
28616   echo "$as_me: failed program was:" >&5
28617 sed 's/^/| /' conftest.$ac_ext >&5
28618
28619   ac_header_preproc=no
28620 fi
28621 rm -f conftest.err conftest.$ac_ext
28622 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28623 echo "${ECHO_T}$ac_header_preproc" >&6
28624
28625 # So?  What about this header?
28626 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28627   yes:no: )
28628     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28629 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28630     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28631 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28632     ac_header_preproc=yes
28633     ;;
28634   no:yes:* )
28635     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28636 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28637     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28638 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28639     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28640 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28641     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28642 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28643     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28644 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28645     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28646 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28647     (
28648       cat <<\_ASBOX
28649 ## ------------------------------------------ ##
28650 ## Report this to the AC_PACKAGE_NAME lists.  ##
28651 ## ------------------------------------------ ##
28652 _ASBOX
28653     ) |
28654       sed "s/^/$as_me: WARNING:     /" >&2
28655     ;;
28656 esac
28657 echo "$as_me:$LINENO: checking for $ac_header" >&5
28658 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28659 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28660   echo $ECHO_N "(cached) $ECHO_C" >&6
28661 else
28662   eval "$as_ac_Header=\$ac_header_preproc"
28663 fi
28664 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28665 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28666
28667 fi
28668 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28669   cat >>confdefs.h <<_ACEOF
28670 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28671 _ACEOF
28672
28673 fi
28674
28675 done
28676
28677
28678         if test $ac_cv_header_kerberosIV_krb_h = yes ; then
28679                 if test $krb5_impl = mit; then
28680                         echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
28681 echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6
28682 if test "${ac_cv_lib_krb4_main+set}" = set; then
28683   echo $ECHO_N "(cached) $ECHO_C" >&6
28684 else
28685   ac_check_lib_save_LIBS=$LIBS
28686 LIBS="-lkrb4 -ldes425 -lkrb5 -l$krb5crypto -lcom_err $LIBS"
28687 cat >conftest.$ac_ext <<_ACEOF
28688 /* confdefs.h.  */
28689 _ACEOF
28690 cat confdefs.h >>conftest.$ac_ext
28691 cat >>conftest.$ac_ext <<_ACEOF
28692 /* end confdefs.h.  */
28693
28694
28695 int
28696 main ()
28697 {
28698 main ();
28699   ;
28700   return 0;
28701 }
28702 _ACEOF
28703 rm -f conftest.$ac_objext conftest$ac_exeext
28704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28705   (eval $ac_link) 2>conftest.er1
28706   ac_status=$?
28707   grep -v '^ *+' conftest.er1 >conftest.err
28708   rm -f conftest.er1
28709   cat conftest.err >&5
28710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28711   (exit $ac_status); } &&
28712          { ac_try='test -z "$ac_c_werror_flag"
28713                          || test ! -s conftest.err'
28714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28715   (eval $ac_try) 2>&5
28716   ac_status=$?
28717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28718   (exit $ac_status); }; } &&
28719          { ac_try='test -s conftest$ac_exeext'
28720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28721   (eval $ac_try) 2>&5
28722   ac_status=$?
28723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28724   (exit $ac_status); }; }; then
28725   ac_cv_lib_krb4_main=yes
28726 else
28727   echo "$as_me: failed program was:" >&5
28728 sed 's/^/| /' conftest.$ac_ext >&5
28729
28730 ac_cv_lib_krb4_main=no
28731 fi
28732 rm -f conftest.err conftest.$ac_objext \
28733       conftest$ac_exeext conftest.$ac_ext
28734 LIBS=$ac_check_lib_save_LIBS
28735 fi
28736 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_main" >&5
28737 echo "${ECHO_T}$ac_cv_lib_krb4_main" >&6
28738 if test $ac_cv_lib_krb4_main = yes; then
28739   have_k425=yes
28740                                 KRB4_LIBS="-lkrb4 -ldes425"
28741 else
28742   have_k425=no
28743 fi
28744
28745
28746                 elif test $krb5_impl = heimdal; then
28747                         echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
28748 echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6
28749 if test "${ac_cv_lib_krb4_main+set}" = set; then
28750   echo $ECHO_N "(cached) $ECHO_C" >&6
28751 else
28752   ac_check_lib_save_LIBS=$LIBS
28753 LIBS="-lkrb4 -lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
28754 cat >conftest.$ac_ext <<_ACEOF
28755 /* confdefs.h.  */
28756 _ACEOF
28757 cat confdefs.h >>conftest.$ac_ext
28758 cat >>conftest.$ac_ext <<_ACEOF
28759 /* end confdefs.h.  */
28760
28761
28762 int
28763 main ()
28764 {
28765 main ();
28766   ;
28767   return 0;
28768 }
28769 _ACEOF
28770 rm -f conftest.$ac_objext conftest$ac_exeext
28771 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28772   (eval $ac_link) 2>conftest.er1
28773   ac_status=$?
28774   grep -v '^ *+' conftest.er1 >conftest.err
28775   rm -f conftest.er1
28776   cat conftest.err >&5
28777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28778   (exit $ac_status); } &&
28779          { ac_try='test -z "$ac_c_werror_flag"
28780                          || test ! -s conftest.err'
28781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28782   (eval $ac_try) 2>&5
28783   ac_status=$?
28784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28785   (exit $ac_status); }; } &&
28786          { ac_try='test -s conftest$ac_exeext'
28787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28788   (eval $ac_try) 2>&5
28789   ac_status=$?
28790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28791   (exit $ac_status); }; }; then
28792   ac_cv_lib_krb4_main=yes
28793 else
28794   echo "$as_me: failed program was:" >&5
28795 sed 's/^/| /' conftest.$ac_ext >&5
28796
28797 ac_cv_lib_krb4_main=no
28798 fi
28799 rm -f conftest.err conftest.$ac_objext \
28800       conftest$ac_exeext conftest.$ac_ext
28801 LIBS=$ac_check_lib_save_LIBS
28802 fi
28803 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_main" >&5
28804 echo "${ECHO_T}$ac_cv_lib_krb4_main" >&6
28805 if test $ac_cv_lib_krb4_main = yes; then
28806   have_k425=yes
28807                                 KRB4_LIBS="-lkrb4"
28808 else
28809   have_k425=no
28810 fi
28811
28812
28813                 else
28814                         have_425=no
28815                         { echo "$as_me:$LINENO: WARNING: Unrecongized Kerberos V Implementation" >&5
28816 echo "$as_me: WARNING: Unrecongized Kerberos V Implementation" >&2;}
28817                 fi
28818
28819                 if test $have_k425 = yes ; then
28820                         ol_with_kerberos=found
28821                         ol_link_krb4=yes
28822
28823
28824 cat >>confdefs.h <<\_ACEOF
28825 #define HAVE_KRB425 1
28826 _ACEOF
28827
28828
28829 cat >>confdefs.h <<\_ACEOF
28830 #define HAVE_KRB4 1
28831 _ACEOF
28832
28833
28834                         echo "$as_me:$LINENO: checking for des_debug in Kerberos libraries" >&5
28835 echo $ECHO_N "checking for des_debug in Kerberos libraries... $ECHO_C" >&6
28836 if test "${ol_cv_var_des_debug+set}" = set; then
28837   echo $ECHO_N "(cached) $ECHO_C" >&6
28838 else
28839
28840                                                                 save_LIBS="$LIBS"
28841                                 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
28842                                 cat >conftest.$ac_ext <<_ACEOF
28843 /* confdefs.h.  */
28844 _ACEOF
28845 cat confdefs.h >>conftest.$ac_ext
28846 cat >>conftest.$ac_ext <<_ACEOF
28847 /* end confdefs.h.  */
28848
28849 #include <kerberosIV/krb.h>
28850 #include <kerberosIV/des.h>
28851 extern int des_debug;
28852
28853 int
28854 main ()
28855 {
28856
28857 des_debug = 1;
28858
28859   ;
28860   return 0;
28861 }
28862 _ACEOF
28863 rm -f conftest.$ac_objext conftest$ac_exeext
28864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28865   (eval $ac_link) 2>conftest.er1
28866   ac_status=$?
28867   grep -v '^ *+' conftest.er1 >conftest.err
28868   rm -f conftest.er1
28869   cat conftest.err >&5
28870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28871   (exit $ac_status); } &&
28872          { ac_try='test -z "$ac_c_werror_flag"
28873                          || test ! -s conftest.err'
28874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28875   (eval $ac_try) 2>&5
28876   ac_status=$?
28877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28878   (exit $ac_status); }; } &&
28879          { ac_try='test -s conftest$ac_exeext'
28880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28881   (eval $ac_try) 2>&5
28882   ac_status=$?
28883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28884   (exit $ac_status); }; }; then
28885   ol_cv_var_des_debug=yes
28886 else
28887   echo "$as_me: failed program was:" >&5
28888 sed 's/^/| /' conftest.$ac_ext >&5
28889
28890 ol_cv_var_des_debug=no
28891 fi
28892 rm -f conftest.err conftest.$ac_objext \
28893       conftest$ac_exeext conftest.$ac_ext
28894                                                                 LIBS="$save_LIBS"
28895
28896 fi
28897 echo "$as_me:$LINENO: result: $ol_cv_var_des_debug" >&5
28898 echo "${ECHO_T}$ol_cv_var_des_debug" >&6
28899
28900                         if test $ol_cv_var_des_debug = yes ; then
28901
28902 cat >>confdefs.h <<\_ACEOF
28903 #define HAVE_DES_DEBUG 1
28904 _ACEOF
28905
28906                         fi
28907
28908                         LIBS="$save_LIBS"
28909                 fi
28910         fi
28911 fi
28912
28913 if test $ol_link_krb5 = yes ; then
28914         ol_with_kerberos=found
28915 fi
28916
28917 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
28918         -o $ol_with_kerberos = k4 -o $ol_with_kerberos = kth ; then
28919
28920
28921
28922
28923 for ac_header in krb.h des.h krb-archaeology.h
28924 do
28925 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28926 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28927   echo "$as_me:$LINENO: checking for $ac_header" >&5
28928 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28929 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28930   echo $ECHO_N "(cached) $ECHO_C" >&6
28931 fi
28932 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28933 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28934 else
28935   # Is the header compilable?
28936 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28937 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28938 cat >conftest.$ac_ext <<_ACEOF
28939 /* confdefs.h.  */
28940 _ACEOF
28941 cat confdefs.h >>conftest.$ac_ext
28942 cat >>conftest.$ac_ext <<_ACEOF
28943 /* end confdefs.h.  */
28944 $ac_includes_default
28945 #include <$ac_header>
28946 _ACEOF
28947 rm -f conftest.$ac_objext
28948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28949   (eval $ac_compile) 2>conftest.er1
28950   ac_status=$?
28951   grep -v '^ *+' conftest.er1 >conftest.err
28952   rm -f conftest.er1
28953   cat conftest.err >&5
28954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28955   (exit $ac_status); } &&
28956          { ac_try='test -z "$ac_c_werror_flag"
28957                          || test ! -s conftest.err'
28958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28959   (eval $ac_try) 2>&5
28960   ac_status=$?
28961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28962   (exit $ac_status); }; } &&
28963          { ac_try='test -s conftest.$ac_objext'
28964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28965   (eval $ac_try) 2>&5
28966   ac_status=$?
28967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28968   (exit $ac_status); }; }; then
28969   ac_header_compiler=yes
28970 else
28971   echo "$as_me: failed program was:" >&5
28972 sed 's/^/| /' conftest.$ac_ext >&5
28973
28974 ac_header_compiler=no
28975 fi
28976 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28977 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28978 echo "${ECHO_T}$ac_header_compiler" >&6
28979
28980 # Is the header present?
28981 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28982 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28983 cat >conftest.$ac_ext <<_ACEOF
28984 /* confdefs.h.  */
28985 _ACEOF
28986 cat confdefs.h >>conftest.$ac_ext
28987 cat >>conftest.$ac_ext <<_ACEOF
28988 /* end confdefs.h.  */
28989 #include <$ac_header>
28990 _ACEOF
28991 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28992   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28993   ac_status=$?
28994   grep -v '^ *+' conftest.er1 >conftest.err
28995   rm -f conftest.er1
28996   cat conftest.err >&5
28997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28998   (exit $ac_status); } >/dev/null; then
28999   if test -s conftest.err; then
29000     ac_cpp_err=$ac_c_preproc_warn_flag
29001     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29002   else
29003     ac_cpp_err=
29004   fi
29005 else
29006   ac_cpp_err=yes
29007 fi
29008 if test -z "$ac_cpp_err"; then
29009   ac_header_preproc=yes
29010 else
29011   echo "$as_me: failed program was:" >&5
29012 sed 's/^/| /' conftest.$ac_ext >&5
29013
29014   ac_header_preproc=no
29015 fi
29016 rm -f conftest.err conftest.$ac_ext
29017 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29018 echo "${ECHO_T}$ac_header_preproc" >&6
29019
29020 # So?  What about this header?
29021 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29022   yes:no: )
29023     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29024 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29025     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29026 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29027     ac_header_preproc=yes
29028     ;;
29029   no:yes:* )
29030     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29031 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29032     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29033 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29034     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29035 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29036     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29037 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29038     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29039 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29040     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29041 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29042     (
29043       cat <<\_ASBOX
29044 ## ------------------------------------------ ##
29045 ## Report this to the AC_PACKAGE_NAME lists.  ##
29046 ## ------------------------------------------ ##
29047 _ASBOX
29048     ) |
29049       sed "s/^/$as_me: WARNING:     /" >&2
29050     ;;
29051 esac
29052 echo "$as_me:$LINENO: checking for $ac_header" >&5
29053 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29054 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29055   echo $ECHO_N "(cached) $ECHO_C" >&6
29056 else
29057   eval "$as_ac_Header=\$ac_header_preproc"
29058 fi
29059 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29060 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29061
29062 fi
29063 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29064   cat >>confdefs.h <<_ACEOF
29065 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29066 _ACEOF
29067
29068 fi
29069
29070 done
29071
29072
29073         if test $ac_cv_header_krb_h = yes ; then
29074                 echo "$as_me:$LINENO: checking for main in -lkrb" >&5
29075 echo $ECHO_N "checking for main in -lkrb... $ECHO_C" >&6
29076 if test "${ac_cv_lib_krb_main+set}" = set; then
29077   echo $ECHO_N "(cached) $ECHO_C" >&6
29078 else
29079   ac_check_lib_save_LIBS=$LIBS
29080 LIBS="-lkrb -ldes $LIBS"
29081 cat >conftest.$ac_ext <<_ACEOF
29082 /* confdefs.h.  */
29083 _ACEOF
29084 cat confdefs.h >>conftest.$ac_ext
29085 cat >>conftest.$ac_ext <<_ACEOF
29086 /* end confdefs.h.  */
29087
29088
29089 int
29090 main ()
29091 {
29092 main ();
29093   ;
29094   return 0;
29095 }
29096 _ACEOF
29097 rm -f conftest.$ac_objext conftest$ac_exeext
29098 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29099   (eval $ac_link) 2>conftest.er1
29100   ac_status=$?
29101   grep -v '^ *+' conftest.er1 >conftest.err
29102   rm -f conftest.er1
29103   cat conftest.err >&5
29104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29105   (exit $ac_status); } &&
29106          { ac_try='test -z "$ac_c_werror_flag"
29107                          || test ! -s conftest.err'
29108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29109   (eval $ac_try) 2>&5
29110   ac_status=$?
29111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29112   (exit $ac_status); }; } &&
29113          { ac_try='test -s conftest$ac_exeext'
29114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29115   (eval $ac_try) 2>&5
29116   ac_status=$?
29117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29118   (exit $ac_status); }; }; then
29119   ac_cv_lib_krb_main=yes
29120 else
29121   echo "$as_me: failed program was:" >&5
29122 sed 's/^/| /' conftest.$ac_ext >&5
29123
29124 ac_cv_lib_krb_main=no
29125 fi
29126 rm -f conftest.err conftest.$ac_objext \
29127       conftest$ac_exeext conftest.$ac_ext
29128 LIBS=$ac_check_lib_save_LIBS
29129 fi
29130 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_main" >&5
29131 echo "${ECHO_T}$ac_cv_lib_krb_main" >&6
29132 if test $ac_cv_lib_krb_main = yes; then
29133   have_k4=yes
29134 else
29135   have_k4=no
29136 fi
29137
29138
29139                 if test $have_k4 = yes ; then
29140                         ol_with_kerberos=found
29141                         ol_link_krb4=yes
29142
29143
29144 cat >>confdefs.h <<\_ACEOF
29145 #define HAVE_KRB4 1
29146 _ACEOF
29147
29148
29149                         KRB4_LIBS="-lkrb -ldes"
29150
29151                         if test $ac_cv_header_krb_archaeology_h = yes ; then
29152
29153 cat >>confdefs.h <<\_ACEOF
29154 #define HAVE_KTH_KERBEROS 1
29155 _ACEOF
29156
29157                         fi
29158                 fi
29159         fi
29160 fi
29161
29162 if test $ol_link_krb4 = yes -a $ol_enable_kbind != no ; then
29163         ol_link_kbind=yes
29164
29165 elif test $ol_enable_kbind = yes ; then
29166         { { echo "$as_me:$LINENO: error: Kerberos IV detection failed" >&5
29167 echo "$as_me: error: Kerberos IV detection failed" >&2;}
29168    { (exit 1); exit 1; }; }
29169 fi
29170
29171 if test $ol_link_krb4 = yes -o $ol_link_krb5 = yes ; then
29172
29173 cat >>confdefs.h <<\_ACEOF
29174 #define HAVE_KERBEROS 1
29175 _ACEOF
29176
29177
29178 elif test $ol_with_kerberos != auto -a $ol_with_kerberos != no ; then
29179         { { echo "$as_me:$LINENO: error: Kerberos detection failed" >&5
29180 echo "$as_me: error: Kerberos detection failed" >&2;}
29181    { (exit 1); exit 1; }; }
29182 fi
29183
29184
29185 ol_link_tls=no
29186 if test $ol_with_tls != no ; then
29187
29188
29189 for ac_header in openssl/ssl.h ssl.h
29190 do
29191 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29192 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29193   echo "$as_me:$LINENO: checking for $ac_header" >&5
29194 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29195 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29196   echo $ECHO_N "(cached) $ECHO_C" >&6
29197 fi
29198 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29199 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29200 else
29201   # Is the header compilable?
29202 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29203 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29204 cat >conftest.$ac_ext <<_ACEOF
29205 /* confdefs.h.  */
29206 _ACEOF
29207 cat confdefs.h >>conftest.$ac_ext
29208 cat >>conftest.$ac_ext <<_ACEOF
29209 /* end confdefs.h.  */
29210 $ac_includes_default
29211 #include <$ac_header>
29212 _ACEOF
29213 rm -f conftest.$ac_objext
29214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29215   (eval $ac_compile) 2>conftest.er1
29216   ac_status=$?
29217   grep -v '^ *+' conftest.er1 >conftest.err
29218   rm -f conftest.er1
29219   cat conftest.err >&5
29220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29221   (exit $ac_status); } &&
29222          { ac_try='test -z "$ac_c_werror_flag"
29223                          || test ! -s conftest.err'
29224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29225   (eval $ac_try) 2>&5
29226   ac_status=$?
29227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29228   (exit $ac_status); }; } &&
29229          { ac_try='test -s conftest.$ac_objext'
29230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29231   (eval $ac_try) 2>&5
29232   ac_status=$?
29233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29234   (exit $ac_status); }; }; then
29235   ac_header_compiler=yes
29236 else
29237   echo "$as_me: failed program was:" >&5
29238 sed 's/^/| /' conftest.$ac_ext >&5
29239
29240 ac_header_compiler=no
29241 fi
29242 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29243 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29244 echo "${ECHO_T}$ac_header_compiler" >&6
29245
29246 # Is the header present?
29247 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29248 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29249 cat >conftest.$ac_ext <<_ACEOF
29250 /* confdefs.h.  */
29251 _ACEOF
29252 cat confdefs.h >>conftest.$ac_ext
29253 cat >>conftest.$ac_ext <<_ACEOF
29254 /* end confdefs.h.  */
29255 #include <$ac_header>
29256 _ACEOF
29257 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29258   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29259   ac_status=$?
29260   grep -v '^ *+' conftest.er1 >conftest.err
29261   rm -f conftest.er1
29262   cat conftest.err >&5
29263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29264   (exit $ac_status); } >/dev/null; then
29265   if test -s conftest.err; then
29266     ac_cpp_err=$ac_c_preproc_warn_flag
29267     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29268   else
29269     ac_cpp_err=
29270   fi
29271 else
29272   ac_cpp_err=yes
29273 fi
29274 if test -z "$ac_cpp_err"; then
29275   ac_header_preproc=yes
29276 else
29277   echo "$as_me: failed program was:" >&5
29278 sed 's/^/| /' conftest.$ac_ext >&5
29279
29280   ac_header_preproc=no
29281 fi
29282 rm -f conftest.err conftest.$ac_ext
29283 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29284 echo "${ECHO_T}$ac_header_preproc" >&6
29285
29286 # So?  What about this header?
29287 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29288   yes:no: )
29289     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29290 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29291     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29292 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29293     ac_header_preproc=yes
29294     ;;
29295   no:yes:* )
29296     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29297 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29298     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29299 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29300     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29301 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29302     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29303 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29304     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29305 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29306     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29307 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29308     (
29309       cat <<\_ASBOX
29310 ## ------------------------------------------ ##
29311 ## Report this to the AC_PACKAGE_NAME lists.  ##
29312 ## ------------------------------------------ ##
29313 _ASBOX
29314     ) |
29315       sed "s/^/$as_me: WARNING:     /" >&2
29316     ;;
29317 esac
29318 echo "$as_me:$LINENO: checking for $ac_header" >&5
29319 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29320 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29321   echo $ECHO_N "(cached) $ECHO_C" >&6
29322 else
29323   eval "$as_ac_Header=\$ac_header_preproc"
29324 fi
29325 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29326 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29327
29328 fi
29329 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29330   cat >>confdefs.h <<_ACEOF
29331 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29332 _ACEOF
29333
29334 fi
29335
29336 done
29337
29338
29339         if test $ac_cv_header_openssl_ssl_h = yes \
29340                 -o $ac_cv_header_ssl_h = yes ; then
29341                 echo "$as_me:$LINENO: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
29342 echo $ECHO_N "checking for SSLeay_add_ssl_algorithms in -lssl... $ECHO_C" >&6
29343 if test "${ac_cv_lib_ssl_SSLeay_add_ssl_algorithms+set}" = set; then
29344   echo $ECHO_N "(cached) $ECHO_C" >&6
29345 else
29346   ac_check_lib_save_LIBS=$LIBS
29347 LIBS="-lssl -lcrypto $LIBS"
29348 cat >conftest.$ac_ext <<_ACEOF
29349 /* confdefs.h.  */
29350 _ACEOF
29351 cat confdefs.h >>conftest.$ac_ext
29352 cat >>conftest.$ac_ext <<_ACEOF
29353 /* end confdefs.h.  */
29354
29355 /* Override any gcc2 internal prototype to avoid an error.  */
29356 #ifdef __cplusplus
29357 extern "C"
29358 #endif
29359 /* We use char because int might match the return type of a gcc2
29360    builtin and then its argument prototype would still apply.  */
29361 char SSLeay_add_ssl_algorithms ();
29362 int
29363 main ()
29364 {
29365 SSLeay_add_ssl_algorithms ();
29366   ;
29367   return 0;
29368 }
29369 _ACEOF
29370 rm -f conftest.$ac_objext conftest$ac_exeext
29371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29372   (eval $ac_link) 2>conftest.er1
29373   ac_status=$?
29374   grep -v '^ *+' conftest.er1 >conftest.err
29375   rm -f conftest.er1
29376   cat conftest.err >&5
29377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29378   (exit $ac_status); } &&
29379          { ac_try='test -z "$ac_c_werror_flag"
29380                          || test ! -s conftest.err'
29381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29382   (eval $ac_try) 2>&5
29383   ac_status=$?
29384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29385   (exit $ac_status); }; } &&
29386          { ac_try='test -s conftest$ac_exeext'
29387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29388   (eval $ac_try) 2>&5
29389   ac_status=$?
29390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29391   (exit $ac_status); }; }; then
29392   ac_cv_lib_ssl_SSLeay_add_ssl_algorithms=yes
29393 else
29394   echo "$as_me: failed program was:" >&5
29395 sed 's/^/| /' conftest.$ac_ext >&5
29396
29397 ac_cv_lib_ssl_SSLeay_add_ssl_algorithms=no
29398 fi
29399 rm -f conftest.err conftest.$ac_objext \
29400       conftest$ac_exeext conftest.$ac_ext
29401 LIBS=$ac_check_lib_save_LIBS
29402 fi
29403 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSLeay_add_ssl_algorithms" >&5
29404 echo "${ECHO_T}$ac_cv_lib_ssl_SSLeay_add_ssl_algorithms" >&6
29405 if test $ac_cv_lib_ssl_SSLeay_add_ssl_algorithms = yes; then
29406   have_ssleay=yes
29407                         need_rsaref=no
29408 else
29409   have_ssleay=no
29410 fi
29411
29412
29413                 if test $have_ssleay = no ; then
29414                         echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
29415 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
29416 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
29417   echo $ECHO_N "(cached) $ECHO_C" >&6
29418 else
29419   ac_check_lib_save_LIBS=$LIBS
29420 LIBS="-lssl -lcrypto $LIBS"
29421 cat >conftest.$ac_ext <<_ACEOF
29422 /* confdefs.h.  */
29423 _ACEOF
29424 cat confdefs.h >>conftest.$ac_ext
29425 cat >>conftest.$ac_ext <<_ACEOF
29426 /* end confdefs.h.  */
29427
29428 /* Override any gcc2 internal prototype to avoid an error.  */
29429 #ifdef __cplusplus
29430 extern "C"
29431 #endif
29432 /* We use char because int might match the return type of a gcc2
29433    builtin and then its argument prototype would still apply.  */
29434 char SSL_library_init ();
29435 int
29436 main ()
29437 {
29438 SSL_library_init ();
29439   ;
29440   return 0;
29441 }
29442 _ACEOF
29443 rm -f conftest.$ac_objext conftest$ac_exeext
29444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29445   (eval $ac_link) 2>conftest.er1
29446   ac_status=$?
29447   grep -v '^ *+' conftest.er1 >conftest.err
29448   rm -f conftest.er1
29449   cat conftest.err >&5
29450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29451   (exit $ac_status); } &&
29452          { ac_try='test -z "$ac_c_werror_flag"
29453                          || test ! -s conftest.err'
29454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29455   (eval $ac_try) 2>&5
29456   ac_status=$?
29457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29458   (exit $ac_status); }; } &&
29459          { ac_try='test -s conftest$ac_exeext'
29460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29461   (eval $ac_try) 2>&5
29462   ac_status=$?
29463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29464   (exit $ac_status); }; }; then
29465   ac_cv_lib_ssl_SSL_library_init=yes
29466 else
29467   echo "$as_me: failed program was:" >&5
29468 sed 's/^/| /' conftest.$ac_ext >&5
29469
29470 ac_cv_lib_ssl_SSL_library_init=no
29471 fi
29472 rm -f conftest.err conftest.$ac_objext \
29473       conftest$ac_exeext conftest.$ac_ext
29474 LIBS=$ac_check_lib_save_LIBS
29475 fi
29476 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
29477 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
29478 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
29479   have_ssleay=yes
29480                                 need_rsaref=no
29481 else
29482   have_ssleay=no
29483 fi
29484
29485                 fi
29486
29487                 if test $have_ssleay = no ; then
29488                         echo "$as_me:$LINENO: checking for ssl3_accept in -lssl" >&5
29489 echo $ECHO_N "checking for ssl3_accept in -lssl... $ECHO_C" >&6
29490 if test "${ac_cv_lib_ssl_ssl3_accept+set}" = set; then
29491   echo $ECHO_N "(cached) $ECHO_C" >&6
29492 else
29493   ac_check_lib_save_LIBS=$LIBS
29494 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
29495 cat >conftest.$ac_ext <<_ACEOF
29496 /* confdefs.h.  */
29497 _ACEOF
29498 cat confdefs.h >>conftest.$ac_ext
29499 cat >>conftest.$ac_ext <<_ACEOF
29500 /* end confdefs.h.  */
29501
29502 /* Override any gcc2 internal prototype to avoid an error.  */
29503 #ifdef __cplusplus
29504 extern "C"
29505 #endif
29506 /* We use char because int might match the return type of a gcc2
29507    builtin and then its argument prototype would still apply.  */
29508 char ssl3_accept ();
29509 int
29510 main ()
29511 {
29512 ssl3_accept ();
29513   ;
29514   return 0;
29515 }
29516 _ACEOF
29517 rm -f conftest.$ac_objext conftest$ac_exeext
29518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29519   (eval $ac_link) 2>conftest.er1
29520   ac_status=$?
29521   grep -v '^ *+' conftest.er1 >conftest.err
29522   rm -f conftest.er1
29523   cat conftest.err >&5
29524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29525   (exit $ac_status); } &&
29526          { ac_try='test -z "$ac_c_werror_flag"
29527                          || test ! -s conftest.err'
29528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29529   (eval $ac_try) 2>&5
29530   ac_status=$?
29531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29532   (exit $ac_status); }; } &&
29533          { ac_try='test -s conftest$ac_exeext'
29534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29535   (eval $ac_try) 2>&5
29536   ac_status=$?
29537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29538   (exit $ac_status); }; }; then
29539   ac_cv_lib_ssl_ssl3_accept=yes
29540 else
29541   echo "$as_me: failed program was:" >&5
29542 sed 's/^/| /' conftest.$ac_ext >&5
29543
29544 ac_cv_lib_ssl_ssl3_accept=no
29545 fi
29546 rm -f conftest.err conftest.$ac_objext \
29547       conftest$ac_exeext conftest.$ac_ext
29548 LIBS=$ac_check_lib_save_LIBS
29549 fi
29550 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl3_accept" >&5
29551 echo "${ECHO_T}$ac_cv_lib_ssl_ssl3_accept" >&6
29552 if test $ac_cv_lib_ssl_ssl3_accept = yes; then
29553   have_ssleay=yes
29554                                 need_rsaref=yes
29555 else
29556   have_ssleay=no
29557 fi
29558
29559                 fi
29560
29561                 if test $have_ssleay = yes ; then
29562                         ol_with_tls=found
29563                         ol_link_tls=yes
29564
29565
29566 cat >>confdefs.h <<\_ACEOF
29567 #define HAVE_SSLEAY 1
29568 _ACEOF
29569
29570
29571                         if test $need_rsaref = yes; then
29572
29573 cat >>confdefs.h <<\_ACEOF
29574 #define HAVE_RSAREF 1
29575 _ACEOF
29576
29577
29578                                 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
29579                         else
29580                                 TLS_LIBS="-lssl -lcrypto"
29581                         fi
29582                 fi
29583                 echo "$as_me:$LINENO: checking OpenSSL library version (CRL checking capability)" >&5
29584 echo $ECHO_N "checking OpenSSL library version (CRL checking capability)... $ECHO_C" >&6
29585 if test "${ol_cv_ssl_crl_compat+set}" = set; then
29586   echo $ECHO_N "(cached) $ECHO_C" >&6
29587 else
29588
29589         cat >conftest.$ac_ext <<_ACEOF
29590 /* confdefs.h.  */
29591 _ACEOF
29592 cat confdefs.h >>conftest.$ac_ext
29593 cat >>conftest.$ac_ext <<_ACEOF
29594 /* end confdefs.h.  */
29595
29596 #ifdef HAVE_OPENSSL_SSL_H
29597 #include <openssl/ssl.h>
29598 #else
29599 #include <ssl.h>
29600 #endif
29601
29602 /* Require 0.9.7d+ */
29603 #if OPENSSL_VERSION_NUMBER >= 0x0090704fL
29604         char *__ssl_compat = "0.9.7d";
29605 #endif
29606
29607 _ACEOF
29608 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29609   $EGREP "__ssl_compat" >/dev/null 2>&1; then
29610   ol_cv_ssl_crl_compat=yes
29611 else
29612   ol_cv_ssl_crl_compat=no
29613 fi
29614 rm -f conftest*
29615
29616 fi
29617 echo "$as_me:$LINENO: result: $ol_cv_ssl_crl_compat" >&5
29618 echo "${ECHO_T}$ol_cv_ssl_crl_compat" >&6
29619
29620                 if test $ol_cv_ssl_crl_compat = no ; then
29621                         ol_link_ssl=no
29622                 else
29623
29624 cat >>confdefs.h <<\_ACEOF
29625 #define HAVE_OPENSSL_CRL 1
29626 _ACEOF
29627
29628                 fi
29629         fi
29630
29631 else
29632         { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
29633 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
29634 fi
29635
29636 WITH_TLS=no
29637 if test $ol_link_tls = yes ; then
29638
29639 cat >>confdefs.h <<\_ACEOF
29640 #define HAVE_TLS 1
29641 _ACEOF
29642
29643         WITH_TLS=yes
29644
29645 elif test $ol_with_tls = auto ; then
29646         { echo "$as_me:$LINENO: WARNING: Could not locate TLS/SSL package" >&5
29647 echo "$as_me: WARNING: Could not locate TLS/SSL package" >&2;}
29648         { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
29649 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
29650
29651 elif test $ol_with_tls != no ; then
29652         { { echo "$as_me:$LINENO: error: Could not locate TLS/SSL package" >&5
29653 echo "$as_me: error: Could not locate TLS/SSL package" >&2;}
29654    { (exit 1); exit 1; }; }
29655 fi
29656
29657 if test $ol_enable_lmpasswd != no; then
29658         if test $ol_link_tls != yes ; then
29659                 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
29660 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
29661    { (exit 1); exit 1; }; }
29662         fi
29663
29664
29665 cat >>confdefs.h <<\_ACEOF
29666 #define SLAPD_LMHASH 1
29667 _ACEOF
29668
29669 fi
29670
29671 ol_link_threads=no
29672
29673 if test $ol_with_threads = auto -o $ol_with_threads = yes \
29674         -o $ol_with_threads = nt ; then
29675
29676
29677         echo "$as_me:$LINENO: checking for _beginthread" >&5
29678 echo $ECHO_N "checking for _beginthread... $ECHO_C" >&6
29679 if test "${ac_cv_func__beginthread+set}" = set; then
29680   echo $ECHO_N "(cached) $ECHO_C" >&6
29681 else
29682   cat >conftest.$ac_ext <<_ACEOF
29683 /* confdefs.h.  */
29684 _ACEOF
29685 cat confdefs.h >>conftest.$ac_ext
29686 cat >>conftest.$ac_ext <<_ACEOF
29687 /* end confdefs.h.  */
29688 /* Define _beginthread to an innocuous variant, in case <limits.h> declares _beginthread.
29689    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29690 #define _beginthread innocuous__beginthread
29691
29692 /* System header to define __stub macros and hopefully few prototypes,
29693     which can conflict with char _beginthread (); below.
29694     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29695     <limits.h> exists even on freestanding compilers.  */
29696
29697 #ifdef __STDC__
29698 # include <limits.h>
29699 #else
29700 # include <assert.h>
29701 #endif
29702
29703 #undef _beginthread
29704
29705 /* Override any gcc2 internal prototype to avoid an error.  */
29706 #ifdef __cplusplus
29707 extern "C"
29708 {
29709 #endif
29710 /* We use char because int might match the return type of a gcc2
29711    builtin and then its argument prototype would still apply.  */
29712 char _beginthread ();
29713 /* The GNU C library defines this for functions which it implements
29714     to always fail with ENOSYS.  Some functions are actually named
29715     something starting with __ and the normal name is an alias.  */
29716 #if defined (__stub__beginthread) || defined (__stub____beginthread)
29717 choke me
29718 #else
29719 char (*f) () = _beginthread;
29720 #endif
29721 #ifdef __cplusplus
29722 }
29723 #endif
29724
29725 int
29726 main ()
29727 {
29728 return f != _beginthread;
29729   ;
29730   return 0;
29731 }
29732 _ACEOF
29733 rm -f conftest.$ac_objext conftest$ac_exeext
29734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29735   (eval $ac_link) 2>conftest.er1
29736   ac_status=$?
29737   grep -v '^ *+' conftest.er1 >conftest.err
29738   rm -f conftest.er1
29739   cat conftest.err >&5
29740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29741   (exit $ac_status); } &&
29742          { ac_try='test -z "$ac_c_werror_flag"
29743                          || test ! -s conftest.err'
29744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29745   (eval $ac_try) 2>&5
29746   ac_status=$?
29747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29748   (exit $ac_status); }; } &&
29749          { ac_try='test -s conftest$ac_exeext'
29750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29751   (eval $ac_try) 2>&5
29752   ac_status=$?
29753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29754   (exit $ac_status); }; }; then
29755   ac_cv_func__beginthread=yes
29756 else
29757   echo "$as_me: failed program was:" >&5
29758 sed 's/^/| /' conftest.$ac_ext >&5
29759
29760 ac_cv_func__beginthread=no
29761 fi
29762 rm -f conftest.err conftest.$ac_objext \
29763       conftest$ac_exeext conftest.$ac_ext
29764 fi
29765 echo "$as_me:$LINENO: result: $ac_cv_func__beginthread" >&5
29766 echo "${ECHO_T}$ac_cv_func__beginthread" >&6
29767
29768
29769         if test $ac_cv_func__beginthread = yes ; then
29770
29771 cat >>confdefs.h <<\_ACEOF
29772 #define HAVE_NT_THREADS 1
29773 _ACEOF
29774
29775                 ol_cv_nt_threads=yes
29776         fi
29777
29778
29779         if test "$ol_cv_nt_threads" = yes ; then
29780                 ol_link_threads=nt
29781                 ol_with_threads=found
29782                 ol_with_yielding_select=yes
29783
29784
29785 cat >>confdefs.h <<\_ACEOF
29786 #define HAVE_NT_SERVICE_MANAGER 1
29787 _ACEOF
29788
29789
29790 cat >>confdefs.h <<\_ACEOF
29791 #define HAVE_NT_EVENT_LOG 1
29792 _ACEOF
29793
29794         fi
29795
29796         if test $ol_with_threads = nt ; then
29797                 { { echo "$as_me:$LINENO: error: could not locate NT Threads" >&5
29798 echo "$as_me: error: could not locate NT Threads" >&2;}
29799    { (exit 1); exit 1; }; }
29800         fi
29801 fi
29802
29803 if test $ol_with_threads = auto -o $ol_with_threads = yes \
29804         -o $ol_with_threads = posix ; then
29805
29806
29807 for ac_header in pthread.h
29808 do
29809 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29810 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29811   echo "$as_me:$LINENO: checking for $ac_header" >&5
29812 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29813 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29814   echo $ECHO_N "(cached) $ECHO_C" >&6
29815 fi
29816 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29817 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29818 else
29819   # Is the header compilable?
29820 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29821 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29822 cat >conftest.$ac_ext <<_ACEOF
29823 /* confdefs.h.  */
29824 _ACEOF
29825 cat confdefs.h >>conftest.$ac_ext
29826 cat >>conftest.$ac_ext <<_ACEOF
29827 /* end confdefs.h.  */
29828 $ac_includes_default
29829 #include <$ac_header>
29830 _ACEOF
29831 rm -f conftest.$ac_objext
29832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29833   (eval $ac_compile) 2>conftest.er1
29834   ac_status=$?
29835   grep -v '^ *+' conftest.er1 >conftest.err
29836   rm -f conftest.er1
29837   cat conftest.err >&5
29838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29839   (exit $ac_status); } &&
29840          { ac_try='test -z "$ac_c_werror_flag"
29841                          || test ! -s conftest.err'
29842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29843   (eval $ac_try) 2>&5
29844   ac_status=$?
29845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29846   (exit $ac_status); }; } &&
29847          { ac_try='test -s conftest.$ac_objext'
29848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29849   (eval $ac_try) 2>&5
29850   ac_status=$?
29851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29852   (exit $ac_status); }; }; then
29853   ac_header_compiler=yes
29854 else
29855   echo "$as_me: failed program was:" >&5
29856 sed 's/^/| /' conftest.$ac_ext >&5
29857
29858 ac_header_compiler=no
29859 fi
29860 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29861 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29862 echo "${ECHO_T}$ac_header_compiler" >&6
29863
29864 # Is the header present?
29865 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29866 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29867 cat >conftest.$ac_ext <<_ACEOF
29868 /* confdefs.h.  */
29869 _ACEOF
29870 cat confdefs.h >>conftest.$ac_ext
29871 cat >>conftest.$ac_ext <<_ACEOF
29872 /* end confdefs.h.  */
29873 #include <$ac_header>
29874 _ACEOF
29875 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29876   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29877   ac_status=$?
29878   grep -v '^ *+' conftest.er1 >conftest.err
29879   rm -f conftest.er1
29880   cat conftest.err >&5
29881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29882   (exit $ac_status); } >/dev/null; then
29883   if test -s conftest.err; then
29884     ac_cpp_err=$ac_c_preproc_warn_flag
29885     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29886   else
29887     ac_cpp_err=
29888   fi
29889 else
29890   ac_cpp_err=yes
29891 fi
29892 if test -z "$ac_cpp_err"; then
29893   ac_header_preproc=yes
29894 else
29895   echo "$as_me: failed program was:" >&5
29896 sed 's/^/| /' conftest.$ac_ext >&5
29897
29898   ac_header_preproc=no
29899 fi
29900 rm -f conftest.err conftest.$ac_ext
29901 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29902 echo "${ECHO_T}$ac_header_preproc" >&6
29903
29904 # So?  What about this header?
29905 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29906   yes:no: )
29907     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29908 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29909     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29910 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29911     ac_header_preproc=yes
29912     ;;
29913   no:yes:* )
29914     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29915 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29916     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29917 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29918     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29919 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29920     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29921 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29922     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29923 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29924     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29925 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29926     (
29927       cat <<\_ASBOX
29928 ## ------------------------------------------ ##
29929 ## Report this to the AC_PACKAGE_NAME lists.  ##
29930 ## ------------------------------------------ ##
29931 _ASBOX
29932     ) |
29933       sed "s/^/$as_me: WARNING:     /" >&2
29934     ;;
29935 esac
29936 echo "$as_me:$LINENO: checking for $ac_header" >&5
29937 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29938 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29939   echo $ECHO_N "(cached) $ECHO_C" >&6
29940 else
29941   eval "$as_ac_Header=\$ac_header_preproc"
29942 fi
29943 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29944 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29945
29946 fi
29947 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29948   cat >>confdefs.h <<_ACEOF
29949 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29950 _ACEOF
29951
29952 fi
29953
29954 done
29955
29956
29957         if test $ac_cv_header_pthread_h = yes ; then
29958                 echo "$as_me:$LINENO: checking POSIX thread version" >&5
29959 echo $ECHO_N "checking POSIX thread version... $ECHO_C" >&6
29960 if test "${ol_cv_pthread_version+set}" = set; then
29961   echo $ECHO_N "(cached) $ECHO_C" >&6
29962 else
29963
29964         cat >conftest.$ac_ext <<_ACEOF
29965 /* confdefs.h.  */
29966 _ACEOF
29967 cat confdefs.h >>conftest.$ac_ext
29968 cat >>conftest.$ac_ext <<_ACEOF
29969 /* end confdefs.h.  */
29970
29971 #               include <pthread.h>
29972
29973 int
29974 main ()
29975 {
29976
29977                 int i = PTHREAD_CREATE_JOINABLE;
29978
29979   ;
29980   return 0;
29981 }
29982 _ACEOF
29983 rm -f conftest.$ac_objext
29984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29985   (eval $ac_compile) 2>conftest.er1
29986   ac_status=$?
29987   grep -v '^ *+' conftest.er1 >conftest.err
29988   rm -f conftest.er1
29989   cat conftest.err >&5
29990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29991   (exit $ac_status); } &&
29992          { ac_try='test -z "$ac_c_werror_flag"
29993                          || test ! -s conftest.err'
29994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29995   (eval $ac_try) 2>&5
29996   ac_status=$?
29997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29998   (exit $ac_status); }; } &&
29999          { ac_try='test -s conftest.$ac_objext'
30000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30001   (eval $ac_try) 2>&5
30002   ac_status=$?
30003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30004   (exit $ac_status); }; }; then
30005
30006         cat >conftest.$ac_ext <<_ACEOF
30007 /* confdefs.h.  */
30008 _ACEOF
30009 cat confdefs.h >>conftest.$ac_ext
30010 cat >>conftest.$ac_ext <<_ACEOF
30011 /* end confdefs.h.  */
30012 #include <pthread.h>
30013
30014 _ACEOF
30015 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30016   $EGREP "pthread_detach" >/dev/null 2>&1; then
30017   ol_cv_pthread_version=10
30018 else
30019   ol_cv_pthread_version=8
30020 fi
30021 rm -f conftest*
30022
30023 else
30024   echo "$as_me: failed program was:" >&5
30025 sed 's/^/| /' conftest.$ac_ext >&5
30026
30027
30028         cat >conftest.$ac_ext <<_ACEOF
30029 /* confdefs.h.  */
30030 _ACEOF
30031 cat confdefs.h >>conftest.$ac_ext
30032 cat >>conftest.$ac_ext <<_ACEOF
30033 /* end confdefs.h.  */
30034
30035 #               include <pthread.h>
30036 #               ifdef PTHREAD_CREATE_UNDETACHED
30037                 draft7
30038 #               endif
30039
30040 _ACEOF
30041 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30042   $EGREP "draft7" >/dev/null 2>&1; then
30043   ol_cv_pthread_version=7
30044 else
30045
30046         cat >conftest.$ac_ext <<_ACEOF
30047 /* confdefs.h.  */
30048 _ACEOF
30049 cat confdefs.h >>conftest.$ac_ext
30050 cat >>conftest.$ac_ext <<_ACEOF
30051 /* end confdefs.h.  */
30052 #include <pthread.h>
30053
30054 _ACEOF
30055 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30056   $EGREP "pthread_attr_init" >/dev/null 2>&1; then
30057   ol_cv_pthread_version=6
30058 else
30059
30060         cat >conftest.$ac_ext <<_ACEOF
30061 /* confdefs.h.  */
30062 _ACEOF
30063 cat confdefs.h >>conftest.$ac_ext
30064 cat >>conftest.$ac_ext <<_ACEOF
30065 /* end confdefs.h.  */
30066
30067 #               include <pthread.h>
30068 #ifdef          PTHREAD_MUTEX_INITIALIZER
30069                 draft5
30070 #endif
30071
30072 _ACEOF
30073 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30074   $EGREP "draft5" >/dev/null 2>&1; then
30075   ol_cv_pthread_version=5
30076 else
30077   ol_cv_pthread_version=4
30078 fi
30079 rm -f conftest*
30080
30081 fi
30082 rm -f conftest*
30083
30084 fi
30085 rm -f conftest*
30086
30087 fi
30088 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30089
30090 fi
30091 echo "$as_me:$LINENO: result: $ol_cv_pthread_version" >&5
30092 echo "${ECHO_T}$ol_cv_pthread_version" >&6
30093
30094
30095                 if test $ol_cv_pthread_version != 0 ; then
30096
30097 cat >>confdefs.h <<_ACEOF
30098 #define HAVE_PTHREADS $ol_cv_pthread_version
30099 _ACEOF
30100
30101                 else
30102                         { { echo "$as_me:$LINENO: error: unknown pthread version" >&5
30103 echo "$as_me: error: unknown pthread version" >&2;}
30104    { (exit 1); exit 1; }; }
30105                 fi
30106
30107                 # consider threads found
30108                 ol_with_threads=found
30109
30110
30111         echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
30112 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
30113 if test "${ol_cv_header_linux_threads+set}" = set; then
30114   echo $ECHO_N "(cached) $ECHO_C" >&6
30115 else
30116   cat >conftest.$ac_ext <<_ACEOF
30117 /* confdefs.h.  */
30118 _ACEOF
30119 cat confdefs.h >>conftest.$ac_ext
30120 cat >>conftest.$ac_ext <<_ACEOF
30121 /* end confdefs.h.  */
30122 #include <pthread.h>
30123 _ACEOF
30124 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30125   $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
30126   ol_cv_header_linux_threads=yes
30127 else
30128   ol_cv_header_linux_threads=no
30129 fi
30130 rm -f conftest*
30131
30132
30133 fi
30134 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
30135 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
30136         if test $ol_cv_header_linux_threads = yes; then
30137
30138 cat >>confdefs.h <<\_ACEOF
30139 #define HAVE_LINUX_THREADS 1
30140 _ACEOF
30141
30142         fi
30143
30144
30145         echo "$as_me:$LINENO: checking for GNU Pth pthread.h" >&5
30146 echo $ECHO_N "checking for GNU Pth pthread.h... $ECHO_C" >&6
30147 if test "${ol_cv_header_gnu_pth_pthread_h+set}" = set; then
30148   echo $ECHO_N "(cached) $ECHO_C" >&6
30149 else
30150   cat >conftest.$ac_ext <<_ACEOF
30151 /* confdefs.h.  */
30152 _ACEOF
30153 cat confdefs.h >>conftest.$ac_ext
30154 cat >>conftest.$ac_ext <<_ACEOF
30155 /* end confdefs.h.  */
30156 #include <pthread.h>
30157 #ifdef _POSIX_THREAD_IS_GNU_PTH
30158         __gnu_pth__;
30159 #endif
30160
30161 _ACEOF
30162 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30163   $EGREP "__gnu_pth__" >/dev/null 2>&1; then
30164   ol_cv_header_gnu_pth_pthread_h=yes
30165 else
30166   ol_cv_header_gnu_pth_pthread_h=no
30167 fi
30168 rm -f conftest*
30169
30170
30171 fi
30172 echo "$as_me:$LINENO: result: $ol_cv_header_gnu_pth_pthread_h" >&5
30173 echo "${ECHO_T}$ol_cv_header_gnu_pth_pthread_h" >&6
30174
30175
30176                 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
30177
30178 for ac_header in sched.h
30179 do
30180 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30181 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30182   echo "$as_me:$LINENO: checking for $ac_header" >&5
30183 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30184 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30185   echo $ECHO_N "(cached) $ECHO_C" >&6
30186 fi
30187 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30188 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30189 else
30190   # Is the header compilable?
30191 echo "$as_me:$LINENO: checking $ac_header usability" >&5
30192 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30193 cat >conftest.$ac_ext <<_ACEOF
30194 /* confdefs.h.  */
30195 _ACEOF
30196 cat confdefs.h >>conftest.$ac_ext
30197 cat >>conftest.$ac_ext <<_ACEOF
30198 /* end confdefs.h.  */
30199 $ac_includes_default
30200 #include <$ac_header>
30201 _ACEOF
30202 rm -f conftest.$ac_objext
30203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30204   (eval $ac_compile) 2>conftest.er1
30205   ac_status=$?
30206   grep -v '^ *+' conftest.er1 >conftest.err
30207   rm -f conftest.er1
30208   cat conftest.err >&5
30209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30210   (exit $ac_status); } &&
30211          { ac_try='test -z "$ac_c_werror_flag"
30212                          || test ! -s conftest.err'
30213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30214   (eval $ac_try) 2>&5
30215   ac_status=$?
30216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30217   (exit $ac_status); }; } &&
30218          { ac_try='test -s conftest.$ac_objext'
30219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30220   (eval $ac_try) 2>&5
30221   ac_status=$?
30222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30223   (exit $ac_status); }; }; then
30224   ac_header_compiler=yes
30225 else
30226   echo "$as_me: failed program was:" >&5
30227 sed 's/^/| /' conftest.$ac_ext >&5
30228
30229 ac_header_compiler=no
30230 fi
30231 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30232 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30233 echo "${ECHO_T}$ac_header_compiler" >&6
30234
30235 # Is the header present?
30236 echo "$as_me:$LINENO: checking $ac_header presence" >&5
30237 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30238 cat >conftest.$ac_ext <<_ACEOF
30239 /* confdefs.h.  */
30240 _ACEOF
30241 cat confdefs.h >>conftest.$ac_ext
30242 cat >>conftest.$ac_ext <<_ACEOF
30243 /* end confdefs.h.  */
30244 #include <$ac_header>
30245 _ACEOF
30246 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30247   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30248   ac_status=$?
30249   grep -v '^ *+' conftest.er1 >conftest.err
30250   rm -f conftest.er1
30251   cat conftest.err >&5
30252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30253   (exit $ac_status); } >/dev/null; then
30254   if test -s conftest.err; then
30255     ac_cpp_err=$ac_c_preproc_warn_flag
30256     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30257   else
30258     ac_cpp_err=
30259   fi
30260 else
30261   ac_cpp_err=yes
30262 fi
30263 if test -z "$ac_cpp_err"; then
30264   ac_header_preproc=yes
30265 else
30266   echo "$as_me: failed program was:" >&5
30267 sed 's/^/| /' conftest.$ac_ext >&5
30268
30269   ac_header_preproc=no
30270 fi
30271 rm -f conftest.err conftest.$ac_ext
30272 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30273 echo "${ECHO_T}$ac_header_preproc" >&6
30274
30275 # So?  What about this header?
30276 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30277   yes:no: )
30278     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30279 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30280     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30281 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30282     ac_header_preproc=yes
30283     ;;
30284   no:yes:* )
30285     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30286 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30287     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30288 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30289     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30290 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30291     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30292 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30293     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30294 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30295     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30296 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30297     (
30298       cat <<\_ASBOX
30299 ## ------------------------------------------ ##
30300 ## Report this to the AC_PACKAGE_NAME lists.  ##
30301 ## ------------------------------------------ ##
30302 _ASBOX
30303     ) |
30304       sed "s/^/$as_me: WARNING:     /" >&2
30305     ;;
30306 esac
30307 echo "$as_me:$LINENO: checking for $ac_header" >&5
30308 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30309 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30310   echo $ECHO_N "(cached) $ECHO_C" >&6
30311 else
30312   eval "$as_ac_Header=\$ac_header_preproc"
30313 fi
30314 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30315 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30316
30317 fi
30318 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30319   cat >>confdefs.h <<_ACEOF
30320 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30321 _ACEOF
30322
30323 fi
30324
30325 done
30326
30327                 fi
30328
30329
30330                                 echo "$as_me:$LINENO: checking for pthread_create in default libraries" >&5
30331 echo $ECHO_N "checking for pthread_create in default libraries... $ECHO_C" >&6
30332 if test "${ol_cv_pthread_create+set}" = set; then
30333   echo $ECHO_N "(cached) $ECHO_C" >&6
30334 else
30335
30336                 if test "$cross_compiling" = yes; then
30337   cat >conftest.$ac_ext <<_ACEOF
30338 /* confdefs.h.  */
30339 _ACEOF
30340 cat confdefs.h >>conftest.$ac_ext
30341 cat >>conftest.$ac_ext <<_ACEOF
30342 /* end confdefs.h.  */
30343 /* pthread test headers */
30344 #include <pthread.h>
30345 #if HAVE_PTHREADS < 7
30346 #include <errno.h>
30347 #endif
30348 #ifndef NULL
30349 #define NULL (void*)0
30350 #endif
30351
30352 static void *task(p)
30353         void *p;
30354 {
30355         return (void *) (p == NULL);
30356 }
30357
30358 int
30359 main ()
30360 {
30361
30362         /* pthread test function */
30363 #ifndef PTHREAD_CREATE_DETACHED
30364 #define PTHREAD_CREATE_DETACHED 1
30365 #endif
30366         pthread_t t;
30367         int status;
30368         int detach = PTHREAD_CREATE_DETACHED;
30369
30370 #if HAVE_PTHREADS > 4
30371         /* Final pthreads */
30372         pthread_attr_t attr;
30373
30374         status = pthread_attr_init(&attr);
30375         if( status ) return status;
30376
30377 #if HAVE_PTHREADS < 7
30378         status = pthread_attr_setdetachstate(&attr, &detach);
30379         if( status < 0 ) status = errno;
30380 #else
30381         status = pthread_attr_setdetachstate(&attr, detach);
30382 #endif
30383         if( status ) return status;
30384         status = pthread_create( &t, &attr, task, NULL );
30385 #if HAVE_PTHREADS < 7
30386         if( status < 0 ) status = errno;
30387 #endif
30388         if( status ) return status;
30389 #else
30390         /* Draft 4 pthreads */
30391         status = pthread_create( &t, pthread_attr_default, task, NULL );
30392         if( status ) return errno;
30393
30394         /* give thread a chance to complete */
30395         /* it should remain joinable and hence detachable */
30396         sleep( 1 );
30397
30398         status = pthread_detach( &t );
30399         if( status ) return errno;
30400 #endif
30401
30402 #ifdef HAVE_LINUX_THREADS
30403         pthread_kill_other_threads_np();
30404 #endif
30405
30406         return 0;
30407
30408   ;
30409   return 0;
30410 }
30411 _ACEOF
30412 rm -f conftest.$ac_objext conftest$ac_exeext
30413 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30414   (eval $ac_link) 2>conftest.er1
30415   ac_status=$?
30416   grep -v '^ *+' conftest.er1 >conftest.err
30417   rm -f conftest.er1
30418   cat conftest.err >&5
30419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30420   (exit $ac_status); } &&
30421          { ac_try='test -z "$ac_c_werror_flag"
30422                          || test ! -s conftest.err'
30423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30424   (eval $ac_try) 2>&5
30425   ac_status=$?
30426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30427   (exit $ac_status); }; } &&
30428          { ac_try='test -s conftest$ac_exeext'
30429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30430   (eval $ac_try) 2>&5
30431   ac_status=$?
30432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30433   (exit $ac_status); }; }; then
30434   ol_cv_pthread_create=yes
30435 else
30436   echo "$as_me: failed program was:" >&5
30437 sed 's/^/| /' conftest.$ac_ext >&5
30438
30439 ol_cv_pthread_create=no
30440 fi
30441 rm -f conftest.err conftest.$ac_objext \
30442       conftest$ac_exeext conftest.$ac_ext
30443 else
30444   cat >conftest.$ac_ext <<_ACEOF
30445 /* confdefs.h.  */
30446 _ACEOF
30447 cat confdefs.h >>conftest.$ac_ext
30448 cat >>conftest.$ac_ext <<_ACEOF
30449 /* end confdefs.h.  */
30450 /* pthread test headers */
30451 #include <pthread.h>
30452 #if HAVE_PTHREADS < 7
30453 #include <errno.h>
30454 #endif
30455 #ifndef NULL
30456 #define NULL (void*)0
30457 #endif
30458
30459 static void *task(p)
30460         void *p;
30461 {
30462         return (void *) (p == NULL);
30463 }
30464
30465
30466 int main(argc, argv)
30467         int argc;
30468         char **argv;
30469 {
30470
30471         /* pthread test function */
30472 #ifndef PTHREAD_CREATE_DETACHED
30473 #define PTHREAD_CREATE_DETACHED 1
30474 #endif
30475         pthread_t t;
30476         int status;
30477         int detach = PTHREAD_CREATE_DETACHED;
30478
30479 #if HAVE_PTHREADS > 4
30480         /* Final pthreads */
30481         pthread_attr_t attr;
30482
30483         status = pthread_attr_init(&attr);
30484         if( status ) return status;
30485
30486 #if HAVE_PTHREADS < 7
30487         status = pthread_attr_setdetachstate(&attr, &detach);
30488         if( status < 0 ) status = errno;
30489 #else
30490         status = pthread_attr_setdetachstate(&attr, detach);
30491 #endif
30492         if( status ) return status;
30493         status = pthread_create( &t, &attr, task, NULL );
30494 #if HAVE_PTHREADS < 7
30495         if( status < 0 ) status = errno;
30496 #endif
30497         if( status ) return status;
30498 #else
30499         /* Draft 4 pthreads */
30500         status = pthread_create( &t, pthread_attr_default, task, NULL );
30501         if( status ) return errno;
30502
30503         /* give thread a chance to complete */
30504         /* it should remain joinable and hence detachable */
30505         sleep( 1 );
30506
30507         status = pthread_detach( &t );
30508         if( status ) return errno;
30509 #endif
30510
30511 #ifdef HAVE_LINUX_THREADS
30512         pthread_kill_other_threads_np();
30513 #endif
30514
30515         return 0;
30516
30517 }
30518
30519 _ACEOF
30520 rm -f conftest$ac_exeext
30521 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30522   (eval $ac_link) 2>&5
30523   ac_status=$?
30524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30525   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30527   (eval $ac_try) 2>&5
30528   ac_status=$?
30529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30530   (exit $ac_status); }; }; then
30531   ol_cv_pthread_create=yes
30532 else
30533   echo "$as_me: program exited with status $ac_status" >&5
30534 echo "$as_me: failed program was:" >&5
30535 sed 's/^/| /' conftest.$ac_ext >&5
30536
30537 ( exit $ac_status )
30538 ol_cv_pthread_create=no
30539 fi
30540 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30541 fi
30542 fi
30543 echo "$as_me:$LINENO: result: $ol_cv_pthread_create" >&5
30544 echo "${ECHO_T}$ol_cv_pthread_create" >&6
30545
30546                 if test $ol_cv_pthread_create != no ; then
30547                         ol_link_threads=posix
30548                         ol_link_pthreads=""
30549                 fi
30550
30551                 # Pthread try link: -kthread (ol_cv_pthread_kthread)
30552 if test "$ol_link_threads" = no ; then
30553         # try -kthread
30554         echo "$as_me:$LINENO: checking for pthread link with -kthread" >&5
30555 echo $ECHO_N "checking for pthread link with -kthread... $ECHO_C" >&6
30556 if test "${ol_cv_pthread_kthread+set}" = set; then
30557   echo $ECHO_N "(cached) $ECHO_C" >&6
30558 else
30559
30560                 # save the flags
30561                 ol_LIBS="$LIBS"
30562                 LIBS="-kthread $LIBS"
30563
30564                 if test "$cross_compiling" = yes; then
30565   cat >conftest.$ac_ext <<_ACEOF
30566 /* confdefs.h.  */
30567 _ACEOF
30568 cat confdefs.h >>conftest.$ac_ext
30569 cat >>conftest.$ac_ext <<_ACEOF
30570 /* end confdefs.h.  */
30571 /* pthread test headers */
30572 #include <pthread.h>
30573 #if HAVE_PTHREADS < 7
30574 #include <errno.h>
30575 #endif
30576 #ifndef NULL
30577 #define NULL (void*)0
30578 #endif
30579
30580 static void *task(p)
30581         void *p;
30582 {
30583         return (void *) (p == NULL);
30584 }
30585
30586 int
30587 main ()
30588 {
30589
30590         /* pthread test function */
30591 #ifndef PTHREAD_CREATE_DETACHED
30592 #define PTHREAD_CREATE_DETACHED 1
30593 #endif
30594         pthread_t t;
30595         int status;
30596         int detach = PTHREAD_CREATE_DETACHED;
30597
30598 #if HAVE_PTHREADS > 4
30599         /* Final pthreads */
30600         pthread_attr_t attr;
30601
30602         status = pthread_attr_init(&attr);
30603         if( status ) return status;
30604
30605 #if HAVE_PTHREADS < 7
30606         status = pthread_attr_setdetachstate(&attr, &detach);
30607         if( status < 0 ) status = errno;
30608 #else
30609         status = pthread_attr_setdetachstate(&attr, detach);
30610 #endif
30611         if( status ) return status;
30612         status = pthread_create( &t, &attr, task, NULL );
30613 #if HAVE_PTHREADS < 7
30614         if( status < 0 ) status = errno;
30615 #endif
30616         if( status ) return status;
30617 #else
30618         /* Draft 4 pthreads */
30619         status = pthread_create( &t, pthread_attr_default, task, NULL );
30620         if( status ) return errno;
30621
30622         /* give thread a chance to complete */
30623         /* it should remain joinable and hence detachable */
30624         sleep( 1 );
30625
30626         status = pthread_detach( &t );
30627         if( status ) return errno;
30628 #endif
30629
30630 #ifdef HAVE_LINUX_THREADS
30631         pthread_kill_other_threads_np();
30632 #endif
30633
30634         return 0;
30635
30636   ;
30637   return 0;
30638 }
30639 _ACEOF
30640 rm -f conftest.$ac_objext conftest$ac_exeext
30641 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30642   (eval $ac_link) 2>conftest.er1
30643   ac_status=$?
30644   grep -v '^ *+' conftest.er1 >conftest.err
30645   rm -f conftest.er1
30646   cat conftest.err >&5
30647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30648   (exit $ac_status); } &&
30649          { ac_try='test -z "$ac_c_werror_flag"
30650                          || test ! -s conftest.err'
30651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30652   (eval $ac_try) 2>&5
30653   ac_status=$?
30654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30655   (exit $ac_status); }; } &&
30656          { ac_try='test -s conftest$ac_exeext'
30657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30658   (eval $ac_try) 2>&5
30659   ac_status=$?
30660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30661   (exit $ac_status); }; }; then
30662   ol_cv_pthread_kthread=yes
30663 else
30664   echo "$as_me: failed program was:" >&5
30665 sed 's/^/| /' conftest.$ac_ext >&5
30666
30667 ol_cv_pthread_kthread=no
30668 fi
30669 rm -f conftest.err conftest.$ac_objext \
30670       conftest$ac_exeext conftest.$ac_ext
30671 else
30672   cat >conftest.$ac_ext <<_ACEOF
30673 /* confdefs.h.  */
30674 _ACEOF
30675 cat confdefs.h >>conftest.$ac_ext
30676 cat >>conftest.$ac_ext <<_ACEOF
30677 /* end confdefs.h.  */
30678 /* pthread test headers */
30679 #include <pthread.h>
30680 #if HAVE_PTHREADS < 7
30681 #include <errno.h>
30682 #endif
30683 #ifndef NULL
30684 #define NULL (void*)0
30685 #endif
30686
30687 static void *task(p)
30688         void *p;
30689 {
30690         return (void *) (p == NULL);
30691 }
30692
30693
30694 int main(argc, argv)
30695         int argc;
30696         char **argv;
30697 {
30698
30699         /* pthread test function */
30700 #ifndef PTHREAD_CREATE_DETACHED
30701 #define PTHREAD_CREATE_DETACHED 1
30702 #endif
30703         pthread_t t;
30704         int status;
30705         int detach = PTHREAD_CREATE_DETACHED;
30706
30707 #if HAVE_PTHREADS > 4
30708         /* Final pthreads */
30709         pthread_attr_t attr;
30710
30711         status = pthread_attr_init(&attr);
30712         if( status ) return status;
30713
30714 #if HAVE_PTHREADS < 7
30715         status = pthread_attr_setdetachstate(&attr, &detach);
30716         if( status < 0 ) status = errno;
30717 #else
30718         status = pthread_attr_setdetachstate(&attr, detach);
30719 #endif
30720         if( status ) return status;
30721         status = pthread_create( &t, &attr, task, NULL );
30722 #if HAVE_PTHREADS < 7
30723         if( status < 0 ) status = errno;
30724 #endif
30725         if( status ) return status;
30726 #else
30727         /* Draft 4 pthreads */
30728         status = pthread_create( &t, pthread_attr_default, task, NULL );
30729         if( status ) return errno;
30730
30731         /* give thread a chance to complete */
30732         /* it should remain joinable and hence detachable */
30733         sleep( 1 );
30734
30735         status = pthread_detach( &t );
30736         if( status ) return errno;
30737 #endif
30738
30739 #ifdef HAVE_LINUX_THREADS
30740         pthread_kill_other_threads_np();
30741 #endif
30742
30743         return 0;
30744
30745 }
30746
30747 _ACEOF
30748 rm -f conftest$ac_exeext
30749 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30750   (eval $ac_link) 2>&5
30751   ac_status=$?
30752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30753   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30755   (eval $ac_try) 2>&5
30756   ac_status=$?
30757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30758   (exit $ac_status); }; }; then
30759   ol_cv_pthread_kthread=yes
30760 else
30761   echo "$as_me: program exited with status $ac_status" >&5
30762 echo "$as_me: failed program was:" >&5
30763 sed 's/^/| /' conftest.$ac_ext >&5
30764
30765 ( exit $ac_status )
30766 ol_cv_pthread_kthread=no
30767 fi
30768 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30769 fi
30770
30771                 # restore the LIBS
30772                 LIBS="$ol_LIBS"
30773
30774 fi
30775 echo "$as_me:$LINENO: result: $ol_cv_pthread_kthread" >&5
30776 echo "${ECHO_T}$ol_cv_pthread_kthread" >&6
30777
30778         if test $ol_cv_pthread_kthread = yes ; then
30779                 ol_link_pthreads="-kthread"
30780                 ol_link_threads=posix
30781         fi
30782 fi
30783
30784                 # Pthread try link: -pthread (ol_cv_pthread_pthread)
30785 if test "$ol_link_threads" = no ; then
30786         # try -pthread
30787         echo "$as_me:$LINENO: checking for pthread link with -pthread" >&5
30788 echo $ECHO_N "checking for pthread link with -pthread... $ECHO_C" >&6
30789 if test "${ol_cv_pthread_pthread+set}" = set; then
30790   echo $ECHO_N "(cached) $ECHO_C" >&6
30791 else
30792
30793                 # save the flags
30794                 ol_LIBS="$LIBS"
30795                 LIBS="-pthread $LIBS"
30796
30797                 if test "$cross_compiling" = yes; then
30798   cat >conftest.$ac_ext <<_ACEOF
30799 /* confdefs.h.  */
30800 _ACEOF
30801 cat confdefs.h >>conftest.$ac_ext
30802 cat >>conftest.$ac_ext <<_ACEOF
30803 /* end confdefs.h.  */
30804 /* pthread test headers */
30805 #include <pthread.h>
30806 #if HAVE_PTHREADS < 7
30807 #include <errno.h>
30808 #endif
30809 #ifndef NULL
30810 #define NULL (void*)0
30811 #endif
30812
30813 static void *task(p)
30814         void *p;
30815 {
30816         return (void *) (p == NULL);
30817 }
30818
30819 int
30820 main ()
30821 {
30822
30823         /* pthread test function */
30824 #ifndef PTHREAD_CREATE_DETACHED
30825 #define PTHREAD_CREATE_DETACHED 1
30826 #endif
30827         pthread_t t;
30828         int status;
30829         int detach = PTHREAD_CREATE_DETACHED;
30830
30831 #if HAVE_PTHREADS > 4
30832         /* Final pthreads */
30833         pthread_attr_t attr;
30834
30835         status = pthread_attr_init(&attr);
30836         if( status ) return status;
30837
30838 #if HAVE_PTHREADS < 7
30839         status = pthread_attr_setdetachstate(&attr, &detach);
30840         if( status < 0 ) status = errno;
30841 #else
30842         status = pthread_attr_setdetachstate(&attr, detach);
30843 #endif
30844         if( status ) return status;
30845         status = pthread_create( &t, &attr, task, NULL );
30846 #if HAVE_PTHREADS < 7
30847         if( status < 0 ) status = errno;
30848 #endif
30849         if( status ) return status;
30850 #else
30851         /* Draft 4 pthreads */
30852         status = pthread_create( &t, pthread_attr_default, task, NULL );
30853         if( status ) return errno;
30854
30855         /* give thread a chance to complete */
30856         /* it should remain joinable and hence detachable */
30857         sleep( 1 );
30858
30859         status = pthread_detach( &t );
30860         if( status ) return errno;
30861 #endif
30862
30863 #ifdef HAVE_LINUX_THREADS
30864         pthread_kill_other_threads_np();
30865 #endif
30866
30867         return 0;
30868
30869   ;
30870   return 0;
30871 }
30872 _ACEOF
30873 rm -f conftest.$ac_objext conftest$ac_exeext
30874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30875   (eval $ac_link) 2>conftest.er1
30876   ac_status=$?
30877   grep -v '^ *+' conftest.er1 >conftest.err
30878   rm -f conftest.er1
30879   cat conftest.err >&5
30880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30881   (exit $ac_status); } &&
30882          { ac_try='test -z "$ac_c_werror_flag"
30883                          || test ! -s conftest.err'
30884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30885   (eval $ac_try) 2>&5
30886   ac_status=$?
30887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30888   (exit $ac_status); }; } &&
30889          { ac_try='test -s conftest$ac_exeext'
30890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30891   (eval $ac_try) 2>&5
30892   ac_status=$?
30893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30894   (exit $ac_status); }; }; then
30895   ol_cv_pthread_pthread=yes
30896 else
30897   echo "$as_me: failed program was:" >&5
30898 sed 's/^/| /' conftest.$ac_ext >&5
30899
30900 ol_cv_pthread_pthread=no
30901 fi
30902 rm -f conftest.err conftest.$ac_objext \
30903       conftest$ac_exeext conftest.$ac_ext
30904 else
30905   cat >conftest.$ac_ext <<_ACEOF
30906 /* confdefs.h.  */
30907 _ACEOF
30908 cat confdefs.h >>conftest.$ac_ext
30909 cat >>conftest.$ac_ext <<_ACEOF
30910 /* end confdefs.h.  */
30911 /* pthread test headers */
30912 #include <pthread.h>
30913 #if HAVE_PTHREADS < 7
30914 #include <errno.h>
30915 #endif
30916 #ifndef NULL
30917 #define NULL (void*)0
30918 #endif
30919
30920 static void *task(p)
30921         void *p;
30922 {
30923         return (void *) (p == NULL);
30924 }
30925
30926
30927 int main(argc, argv)
30928         int argc;
30929         char **argv;
30930 {
30931
30932         /* pthread test function */
30933 #ifndef PTHREAD_CREATE_DETACHED
30934 #define PTHREAD_CREATE_DETACHED 1
30935 #endif
30936         pthread_t t;
30937         int status;
30938         int detach = PTHREAD_CREATE_DETACHED;
30939
30940 #if HAVE_PTHREADS > 4
30941         /* Final pthreads */
30942         pthread_attr_t attr;
30943
30944         status = pthread_attr_init(&attr);
30945         if( status ) return status;
30946
30947 #if HAVE_PTHREADS < 7
30948         status = pthread_attr_setdetachstate(&attr, &detach);
30949         if( status < 0 ) status = errno;
30950 #else
30951         status = pthread_attr_setdetachstate(&attr, detach);
30952 #endif
30953         if( status ) return status;
30954         status = pthread_create( &t, &attr, task, NULL );
30955 #if HAVE_PTHREADS < 7
30956         if( status < 0 ) status = errno;
30957 #endif
30958         if( status ) return status;
30959 #else
30960         /* Draft 4 pthreads */
30961         status = pthread_create( &t, pthread_attr_default, task, NULL );
30962         if( status ) return errno;
30963
30964         /* give thread a chance to complete */
30965         /* it should remain joinable and hence detachable */
30966         sleep( 1 );
30967
30968         status = pthread_detach( &t );
30969         if( status ) return errno;
30970 #endif
30971
30972 #ifdef HAVE_LINUX_THREADS
30973         pthread_kill_other_threads_np();
30974 #endif
30975
30976         return 0;
30977
30978 }
30979
30980 _ACEOF
30981 rm -f conftest$ac_exeext
30982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30983   (eval $ac_link) 2>&5
30984   ac_status=$?
30985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30986   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30988   (eval $ac_try) 2>&5
30989   ac_status=$?
30990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30991   (exit $ac_status); }; }; then
30992   ol_cv_pthread_pthread=yes
30993 else
30994   echo "$as_me: program exited with status $ac_status" >&5
30995 echo "$as_me: failed program was:" >&5
30996 sed 's/^/| /' conftest.$ac_ext >&5
30997
30998 ( exit $ac_status )
30999 ol_cv_pthread_pthread=no
31000 fi
31001 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31002 fi
31003
31004                 # restore the LIBS
31005                 LIBS="$ol_LIBS"
31006
31007 fi
31008 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthread" >&5
31009 echo "${ECHO_T}$ol_cv_pthread_pthread" >&6
31010
31011         if test $ol_cv_pthread_pthread = yes ; then
31012                 ol_link_pthreads="-pthread"
31013                 ol_link_threads=posix
31014         fi
31015 fi
31016
31017                 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
31018 if test "$ol_link_threads" = no ; then
31019         # try -pthreads
31020         echo "$as_me:$LINENO: checking for pthread link with -pthreads" >&5
31021 echo $ECHO_N "checking for pthread link with -pthreads... $ECHO_C" >&6
31022 if test "${ol_cv_pthread_pthreads+set}" = set; then
31023   echo $ECHO_N "(cached) $ECHO_C" >&6
31024 else
31025
31026                 # save the flags
31027                 ol_LIBS="$LIBS"
31028                 LIBS="-pthreads $LIBS"
31029
31030                 if test "$cross_compiling" = yes; then
31031   cat >conftest.$ac_ext <<_ACEOF
31032 /* confdefs.h.  */
31033 _ACEOF
31034 cat confdefs.h >>conftest.$ac_ext
31035 cat >>conftest.$ac_ext <<_ACEOF
31036 /* end confdefs.h.  */
31037 /* pthread test headers */
31038 #include <pthread.h>
31039 #if HAVE_PTHREADS < 7
31040 #include <errno.h>
31041 #endif
31042 #ifndef NULL
31043 #define NULL (void*)0
31044 #endif
31045
31046 static void *task(p)
31047         void *p;
31048 {
31049         return (void *) (p == NULL);
31050 }
31051
31052 int
31053 main ()
31054 {
31055
31056         /* pthread test function */
31057 #ifndef PTHREAD_CREATE_DETACHED
31058 #define PTHREAD_CREATE_DETACHED 1
31059 #endif
31060         pthread_t t;
31061         int status;
31062         int detach = PTHREAD_CREATE_DETACHED;
31063
31064 #if HAVE_PTHREADS > 4
31065         /* Final pthreads */
31066         pthread_attr_t attr;
31067
31068         status = pthread_attr_init(&attr);
31069         if( status ) return status;
31070
31071 #if HAVE_PTHREADS < 7
31072         status = pthread_attr_setdetachstate(&attr, &detach);
31073         if( status < 0 ) status = errno;
31074 #else
31075         status = pthread_attr_setdetachstate(&attr, detach);
31076 #endif
31077         if( status ) return status;
31078         status = pthread_create( &t, &attr, task, NULL );
31079 #if HAVE_PTHREADS < 7
31080         if( status < 0 ) status = errno;
31081 #endif
31082         if( status ) return status;
31083 #else
31084         /* Draft 4 pthreads */
31085         status = pthread_create( &t, pthread_attr_default, task, NULL );
31086         if( status ) return errno;
31087
31088         /* give thread a chance to complete */
31089         /* it should remain joinable and hence detachable */
31090         sleep( 1 );
31091
31092         status = pthread_detach( &t );
31093         if( status ) return errno;
31094 #endif
31095
31096 #ifdef HAVE_LINUX_THREADS
31097         pthread_kill_other_threads_np();
31098 #endif
31099
31100         return 0;
31101
31102   ;
31103   return 0;
31104 }
31105 _ACEOF
31106 rm -f conftest.$ac_objext conftest$ac_exeext
31107 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31108   (eval $ac_link) 2>conftest.er1
31109   ac_status=$?
31110   grep -v '^ *+' conftest.er1 >conftest.err
31111   rm -f conftest.er1
31112   cat conftest.err >&5
31113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31114   (exit $ac_status); } &&
31115          { ac_try='test -z "$ac_c_werror_flag"
31116                          || test ! -s conftest.err'
31117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31118   (eval $ac_try) 2>&5
31119   ac_status=$?
31120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31121   (exit $ac_status); }; } &&
31122          { ac_try='test -s conftest$ac_exeext'
31123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31124   (eval $ac_try) 2>&5
31125   ac_status=$?
31126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31127   (exit $ac_status); }; }; then
31128   ol_cv_pthread_pthreads=yes
31129 else
31130   echo "$as_me: failed program was:" >&5
31131 sed 's/^/| /' conftest.$ac_ext >&5
31132
31133 ol_cv_pthread_pthreads=no
31134 fi
31135 rm -f conftest.err conftest.$ac_objext \
31136       conftest$ac_exeext conftest.$ac_ext
31137 else
31138   cat >conftest.$ac_ext <<_ACEOF
31139 /* confdefs.h.  */
31140 _ACEOF
31141 cat confdefs.h >>conftest.$ac_ext
31142 cat >>conftest.$ac_ext <<_ACEOF
31143 /* end confdefs.h.  */
31144 /* pthread test headers */
31145 #include <pthread.h>
31146 #if HAVE_PTHREADS < 7
31147 #include <errno.h>
31148 #endif
31149 #ifndef NULL
31150 #define NULL (void*)0
31151 #endif
31152
31153 static void *task(p)
31154         void *p;
31155 {
31156         return (void *) (p == NULL);
31157 }
31158
31159
31160 int main(argc, argv)
31161         int argc;
31162         char **argv;
31163 {
31164
31165         /* pthread test function */
31166 #ifndef PTHREAD_CREATE_DETACHED
31167 #define PTHREAD_CREATE_DETACHED 1
31168 #endif
31169         pthread_t t;
31170         int status;
31171         int detach = PTHREAD_CREATE_DETACHED;
31172
31173 #if HAVE_PTHREADS > 4
31174         /* Final pthreads */
31175         pthread_attr_t attr;
31176
31177         status = pthread_attr_init(&attr);
31178         if( status ) return status;
31179
31180 #if HAVE_PTHREADS < 7
31181         status = pthread_attr_setdetachstate(&attr, &detach);
31182         if( status < 0 ) status = errno;
31183 #else
31184         status = pthread_attr_setdetachstate(&attr, detach);
31185 #endif
31186         if( status ) return status;
31187         status = pthread_create( &t, &attr, task, NULL );
31188 #if HAVE_PTHREADS < 7
31189         if( status < 0 ) status = errno;
31190 #endif
31191         if( status ) return status;
31192 #else
31193         /* Draft 4 pthreads */
31194         status = pthread_create( &t, pthread_attr_default, task, NULL );
31195         if( status ) return errno;
31196
31197         /* give thread a chance to complete */
31198         /* it should remain joinable and hence detachable */
31199         sleep( 1 );
31200
31201         status = pthread_detach( &t );
31202         if( status ) return errno;
31203 #endif
31204
31205 #ifdef HAVE_LINUX_THREADS
31206         pthread_kill_other_threads_np();
31207 #endif
31208
31209         return 0;
31210
31211 }
31212
31213 _ACEOF
31214 rm -f conftest$ac_exeext
31215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31216   (eval $ac_link) 2>&5
31217   ac_status=$?
31218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31219   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31220   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31221   (eval $ac_try) 2>&5
31222   ac_status=$?
31223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31224   (exit $ac_status); }; }; then
31225   ol_cv_pthread_pthreads=yes
31226 else
31227   echo "$as_me: program exited with status $ac_status" >&5
31228 echo "$as_me: failed program was:" >&5
31229 sed 's/^/| /' conftest.$ac_ext >&5
31230
31231 ( exit $ac_status )
31232 ol_cv_pthread_pthreads=no
31233 fi
31234 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31235 fi
31236
31237                 # restore the LIBS
31238                 LIBS="$ol_LIBS"
31239
31240 fi
31241 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthreads" >&5
31242 echo "${ECHO_T}$ol_cv_pthread_pthreads" >&6
31243
31244         if test $ol_cv_pthread_pthreads = yes ; then
31245                 ol_link_pthreads="-pthreads"
31246                 ol_link_threads=posix
31247         fi
31248 fi
31249
31250                 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
31251 if test "$ol_link_threads" = no ; then
31252         # try -mthreads
31253         echo "$as_me:$LINENO: checking for pthread link with -mthreads" >&5
31254 echo $ECHO_N "checking for pthread link with -mthreads... $ECHO_C" >&6
31255 if test "${ol_cv_pthread_mthreads+set}" = set; then
31256   echo $ECHO_N "(cached) $ECHO_C" >&6
31257 else
31258
31259                 # save the flags
31260                 ol_LIBS="$LIBS"
31261                 LIBS="-mthreads $LIBS"
31262
31263                 if test "$cross_compiling" = yes; then
31264   cat >conftest.$ac_ext <<_ACEOF
31265 /* confdefs.h.  */
31266 _ACEOF
31267 cat confdefs.h >>conftest.$ac_ext
31268 cat >>conftest.$ac_ext <<_ACEOF
31269 /* end confdefs.h.  */
31270 /* pthread test headers */
31271 #include <pthread.h>
31272 #if HAVE_PTHREADS < 7
31273 #include <errno.h>
31274 #endif
31275 #ifndef NULL
31276 #define NULL (void*)0
31277 #endif
31278
31279 static void *task(p)
31280         void *p;
31281 {
31282         return (void *) (p == NULL);
31283 }
31284
31285 int
31286 main ()
31287 {
31288
31289         /* pthread test function */
31290 #ifndef PTHREAD_CREATE_DETACHED
31291 #define PTHREAD_CREATE_DETACHED 1
31292 #endif
31293         pthread_t t;
31294         int status;
31295         int detach = PTHREAD_CREATE_DETACHED;
31296
31297 #if HAVE_PTHREADS > 4
31298         /* Final pthreads */
31299         pthread_attr_t attr;
31300
31301         status = pthread_attr_init(&attr);
31302         if( status ) return status;
31303
31304 #if HAVE_PTHREADS < 7
31305         status = pthread_attr_setdetachstate(&attr, &detach);
31306         if( status < 0 ) status = errno;
31307 #else
31308         status = pthread_attr_setdetachstate(&attr, detach);
31309 #endif
31310         if( status ) return status;
31311         status = pthread_create( &t, &attr, task, NULL );
31312 #if HAVE_PTHREADS < 7
31313         if( status < 0 ) status = errno;
31314 #endif
31315         if( status ) return status;
31316 #else
31317         /* Draft 4 pthreads */
31318         status = pthread_create( &t, pthread_attr_default, task, NULL );
31319         if( status ) return errno;
31320
31321         /* give thread a chance to complete */
31322         /* it should remain joinable and hence detachable */
31323         sleep( 1 );
31324
31325         status = pthread_detach( &t );
31326         if( status ) return errno;
31327 #endif
31328
31329 #ifdef HAVE_LINUX_THREADS
31330         pthread_kill_other_threads_np();
31331 #endif
31332
31333         return 0;
31334
31335   ;
31336   return 0;
31337 }
31338 _ACEOF
31339 rm -f conftest.$ac_objext conftest$ac_exeext
31340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31341   (eval $ac_link) 2>conftest.er1
31342   ac_status=$?
31343   grep -v '^ *+' conftest.er1 >conftest.err
31344   rm -f conftest.er1
31345   cat conftest.err >&5
31346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31347   (exit $ac_status); } &&
31348          { ac_try='test -z "$ac_c_werror_flag"
31349                          || test ! -s conftest.err'
31350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31351   (eval $ac_try) 2>&5
31352   ac_status=$?
31353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31354   (exit $ac_status); }; } &&
31355          { ac_try='test -s conftest$ac_exeext'
31356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31357   (eval $ac_try) 2>&5
31358   ac_status=$?
31359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31360   (exit $ac_status); }; }; then
31361   ol_cv_pthread_mthreads=yes
31362 else
31363   echo "$as_me: failed program was:" >&5
31364 sed 's/^/| /' conftest.$ac_ext >&5
31365
31366 ol_cv_pthread_mthreads=no
31367 fi
31368 rm -f conftest.err conftest.$ac_objext \
31369       conftest$ac_exeext conftest.$ac_ext
31370 else
31371   cat >conftest.$ac_ext <<_ACEOF
31372 /* confdefs.h.  */
31373 _ACEOF
31374 cat confdefs.h >>conftest.$ac_ext
31375 cat >>conftest.$ac_ext <<_ACEOF
31376 /* end confdefs.h.  */
31377 /* pthread test headers */
31378 #include <pthread.h>
31379 #if HAVE_PTHREADS < 7
31380 #include <errno.h>
31381 #endif
31382 #ifndef NULL
31383 #define NULL (void*)0
31384 #endif
31385
31386 static void *task(p)
31387         void *p;
31388 {
31389         return (void *) (p == NULL);
31390 }
31391
31392
31393 int main(argc, argv)
31394         int argc;
31395         char **argv;
31396 {
31397
31398         /* pthread test function */
31399 #ifndef PTHREAD_CREATE_DETACHED
31400 #define PTHREAD_CREATE_DETACHED 1
31401 #endif
31402         pthread_t t;
31403         int status;
31404         int detach = PTHREAD_CREATE_DETACHED;
31405
31406 #if HAVE_PTHREADS > 4
31407         /* Final pthreads */
31408         pthread_attr_t attr;
31409
31410         status = pthread_attr_init(&attr);
31411         if( status ) return status;
31412
31413 #if HAVE_PTHREADS < 7
31414         status = pthread_attr_setdetachstate(&attr, &detach);
31415         if( status < 0 ) status = errno;
31416 #else
31417         status = pthread_attr_setdetachstate(&attr, detach);
31418 #endif
31419         if( status ) return status;
31420         status = pthread_create( &t, &attr, task, NULL );
31421 #if HAVE_PTHREADS < 7
31422         if( status < 0 ) status = errno;
31423 #endif
31424         if( status ) return status;
31425 #else
31426         /* Draft 4 pthreads */
31427         status = pthread_create( &t, pthread_attr_default, task, NULL );
31428         if( status ) return errno;
31429
31430         /* give thread a chance to complete */
31431         /* it should remain joinable and hence detachable */
31432         sleep( 1 );
31433
31434         status = pthread_detach( &t );
31435         if( status ) return errno;
31436 #endif
31437
31438 #ifdef HAVE_LINUX_THREADS
31439         pthread_kill_other_threads_np();
31440 #endif
31441
31442         return 0;
31443
31444 }
31445
31446 _ACEOF
31447 rm -f conftest$ac_exeext
31448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31449   (eval $ac_link) 2>&5
31450   ac_status=$?
31451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31452   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31454   (eval $ac_try) 2>&5
31455   ac_status=$?
31456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31457   (exit $ac_status); }; }; then
31458   ol_cv_pthread_mthreads=yes
31459 else
31460   echo "$as_me: program exited with status $ac_status" >&5
31461 echo "$as_me: failed program was:" >&5
31462 sed 's/^/| /' conftest.$ac_ext >&5
31463
31464 ( exit $ac_status )
31465 ol_cv_pthread_mthreads=no
31466 fi
31467 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31468 fi
31469
31470                 # restore the LIBS
31471                 LIBS="$ol_LIBS"
31472
31473 fi
31474 echo "$as_me:$LINENO: result: $ol_cv_pthread_mthreads" >&5
31475 echo "${ECHO_T}$ol_cv_pthread_mthreads" >&6
31476
31477         if test $ol_cv_pthread_mthreads = yes ; then
31478                 ol_link_pthreads="-mthreads"
31479                 ol_link_threads=posix
31480         fi
31481 fi
31482
31483                 # Pthread try link: -thread (ol_cv_pthread_thread)
31484 if test "$ol_link_threads" = no ; then
31485         # try -thread
31486         echo "$as_me:$LINENO: checking for pthread link with -thread" >&5
31487 echo $ECHO_N "checking for pthread link with -thread... $ECHO_C" >&6
31488 if test "${ol_cv_pthread_thread+set}" = set; then
31489   echo $ECHO_N "(cached) $ECHO_C" >&6
31490 else
31491
31492                 # save the flags
31493                 ol_LIBS="$LIBS"
31494                 LIBS="-thread $LIBS"
31495
31496                 if test "$cross_compiling" = yes; then
31497   cat >conftest.$ac_ext <<_ACEOF
31498 /* confdefs.h.  */
31499 _ACEOF
31500 cat confdefs.h >>conftest.$ac_ext
31501 cat >>conftest.$ac_ext <<_ACEOF
31502 /* end confdefs.h.  */
31503 /* pthread test headers */
31504 #include <pthread.h>
31505 #if HAVE_PTHREADS < 7
31506 #include <errno.h>
31507 #endif
31508 #ifndef NULL
31509 #define NULL (void*)0
31510 #endif
31511
31512 static void *task(p)
31513         void *p;
31514 {
31515         return (void *) (p == NULL);
31516 }
31517
31518 int
31519 main ()
31520 {
31521
31522         /* pthread test function */
31523 #ifndef PTHREAD_CREATE_DETACHED
31524 #define PTHREAD_CREATE_DETACHED 1
31525 #endif
31526         pthread_t t;
31527         int status;
31528         int detach = PTHREAD_CREATE_DETACHED;
31529
31530 #if HAVE_PTHREADS > 4
31531         /* Final pthreads */
31532         pthread_attr_t attr;
31533
31534         status = pthread_attr_init(&attr);
31535         if( status ) return status;
31536
31537 #if HAVE_PTHREADS < 7
31538         status = pthread_attr_setdetachstate(&attr, &detach);
31539         if( status < 0 ) status = errno;
31540 #else
31541         status = pthread_attr_setdetachstate(&attr, detach);
31542 #endif
31543         if( status ) return status;
31544         status = pthread_create( &t, &attr, task, NULL );
31545 #if HAVE_PTHREADS < 7
31546         if( status < 0 ) status = errno;
31547 #endif
31548         if( status ) return status;
31549 #else
31550         /* Draft 4 pthreads */
31551         status = pthread_create( &t, pthread_attr_default, task, NULL );
31552         if( status ) return errno;
31553
31554         /* give thread a chance to complete */
31555         /* it should remain joinable and hence detachable */
31556         sleep( 1 );
31557
31558         status = pthread_detach( &t );
31559         if( status ) return errno;
31560 #endif
31561
31562 #ifdef HAVE_LINUX_THREADS
31563         pthread_kill_other_threads_np();
31564 #endif
31565
31566         return 0;
31567
31568   ;
31569   return 0;
31570 }
31571 _ACEOF
31572 rm -f conftest.$ac_objext conftest$ac_exeext
31573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31574   (eval $ac_link) 2>conftest.er1
31575   ac_status=$?
31576   grep -v '^ *+' conftest.er1 >conftest.err
31577   rm -f conftest.er1
31578   cat conftest.err >&5
31579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31580   (exit $ac_status); } &&
31581          { ac_try='test -z "$ac_c_werror_flag"
31582                          || test ! -s conftest.err'
31583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31584   (eval $ac_try) 2>&5
31585   ac_status=$?
31586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31587   (exit $ac_status); }; } &&
31588          { ac_try='test -s conftest$ac_exeext'
31589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31590   (eval $ac_try) 2>&5
31591   ac_status=$?
31592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31593   (exit $ac_status); }; }; then
31594   ol_cv_pthread_thread=yes
31595 else
31596   echo "$as_me: failed program was:" >&5
31597 sed 's/^/| /' conftest.$ac_ext >&5
31598
31599 ol_cv_pthread_thread=no
31600 fi
31601 rm -f conftest.err conftest.$ac_objext \
31602       conftest$ac_exeext conftest.$ac_ext
31603 else
31604   cat >conftest.$ac_ext <<_ACEOF
31605 /* confdefs.h.  */
31606 _ACEOF
31607 cat confdefs.h >>conftest.$ac_ext
31608 cat >>conftest.$ac_ext <<_ACEOF
31609 /* end confdefs.h.  */
31610 /* pthread test headers */
31611 #include <pthread.h>
31612 #if HAVE_PTHREADS < 7
31613 #include <errno.h>
31614 #endif
31615 #ifndef NULL
31616 #define NULL (void*)0
31617 #endif
31618
31619 static void *task(p)
31620         void *p;
31621 {
31622         return (void *) (p == NULL);
31623 }
31624
31625
31626 int main(argc, argv)
31627         int argc;
31628         char **argv;
31629 {
31630
31631         /* pthread test function */
31632 #ifndef PTHREAD_CREATE_DETACHED
31633 #define PTHREAD_CREATE_DETACHED 1
31634 #endif
31635         pthread_t t;
31636         int status;
31637         int detach = PTHREAD_CREATE_DETACHED;
31638
31639 #if HAVE_PTHREADS > 4
31640         /* Final pthreads */
31641         pthread_attr_t attr;
31642
31643         status = pthread_attr_init(&attr);
31644         if( status ) return status;
31645
31646 #if HAVE_PTHREADS < 7
31647         status = pthread_attr_setdetachstate(&attr, &detach);
31648         if( status < 0 ) status = errno;
31649 #else
31650         status = pthread_attr_setdetachstate(&attr, detach);
31651 #endif
31652         if( status ) return status;
31653         status = pthread_create( &t, &attr, task, NULL );
31654 #if HAVE_PTHREADS < 7
31655         if( status < 0 ) status = errno;
31656 #endif
31657         if( status ) return status;
31658 #else
31659         /* Draft 4 pthreads */
31660         status = pthread_create( &t, pthread_attr_default, task, NULL );
31661         if( status ) return errno;
31662
31663         /* give thread a chance to complete */
31664         /* it should remain joinable and hence detachable */
31665         sleep( 1 );
31666
31667         status = pthread_detach( &t );
31668         if( status ) return errno;
31669 #endif
31670
31671 #ifdef HAVE_LINUX_THREADS
31672         pthread_kill_other_threads_np();
31673 #endif
31674
31675         return 0;
31676
31677 }
31678
31679 _ACEOF
31680 rm -f conftest$ac_exeext
31681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31682   (eval $ac_link) 2>&5
31683   ac_status=$?
31684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31685   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31687   (eval $ac_try) 2>&5
31688   ac_status=$?
31689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31690   (exit $ac_status); }; }; then
31691   ol_cv_pthread_thread=yes
31692 else
31693   echo "$as_me: program exited with status $ac_status" >&5
31694 echo "$as_me: failed program was:" >&5
31695 sed 's/^/| /' conftest.$ac_ext >&5
31696
31697 ( exit $ac_status )
31698 ol_cv_pthread_thread=no
31699 fi
31700 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31701 fi
31702
31703                 # restore the LIBS
31704                 LIBS="$ol_LIBS"
31705
31706 fi
31707 echo "$as_me:$LINENO: result: $ol_cv_pthread_thread" >&5
31708 echo "${ECHO_T}$ol_cv_pthread_thread" >&6
31709
31710         if test $ol_cv_pthread_thread = yes ; then
31711                 ol_link_pthreads="-thread"
31712                 ol_link_threads=posix
31713         fi
31714 fi
31715
31716
31717                 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
31718 if test "$ol_link_threads" = no ; then
31719         # try -lpthread -lmach -lexc -lc_r
31720         echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
31721 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc -lc_r... $ECHO_C" >&6
31722 if test "${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}" = set; then
31723   echo $ECHO_N "(cached) $ECHO_C" >&6
31724 else
31725
31726                 # save the flags
31727                 ol_LIBS="$LIBS"
31728                 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
31729
31730                 if test "$cross_compiling" = yes; then
31731   cat >conftest.$ac_ext <<_ACEOF
31732 /* confdefs.h.  */
31733 _ACEOF
31734 cat confdefs.h >>conftest.$ac_ext
31735 cat >>conftest.$ac_ext <<_ACEOF
31736 /* end confdefs.h.  */
31737 /* pthread test headers */
31738 #include <pthread.h>
31739 #if HAVE_PTHREADS < 7
31740 #include <errno.h>
31741 #endif
31742 #ifndef NULL
31743 #define NULL (void*)0
31744 #endif
31745
31746 static void *task(p)
31747         void *p;
31748 {
31749         return (void *) (p == NULL);
31750 }
31751
31752 int
31753 main ()
31754 {
31755
31756         /* pthread test function */
31757 #ifndef PTHREAD_CREATE_DETACHED
31758 #define PTHREAD_CREATE_DETACHED 1
31759 #endif
31760         pthread_t t;
31761         int status;
31762         int detach = PTHREAD_CREATE_DETACHED;
31763
31764 #if HAVE_PTHREADS > 4
31765         /* Final pthreads */
31766         pthread_attr_t attr;
31767
31768         status = pthread_attr_init(&attr);
31769         if( status ) return status;
31770
31771 #if HAVE_PTHREADS < 7
31772         status = pthread_attr_setdetachstate(&attr, &detach);
31773         if( status < 0 ) status = errno;
31774 #else
31775         status = pthread_attr_setdetachstate(&attr, detach);
31776 #endif
31777         if( status ) return status;
31778         status = pthread_create( &t, &attr, task, NULL );
31779 #if HAVE_PTHREADS < 7
31780         if( status < 0 ) status = errno;
31781 #endif
31782         if( status ) return status;
31783 #else
31784         /* Draft 4 pthreads */
31785         status = pthread_create( &t, pthread_attr_default, task, NULL );
31786         if( status ) return errno;
31787
31788         /* give thread a chance to complete */
31789         /* it should remain joinable and hence detachable */
31790         sleep( 1 );
31791
31792         status = pthread_detach( &t );
31793         if( status ) return errno;
31794 #endif
31795
31796 #ifdef HAVE_LINUX_THREADS
31797         pthread_kill_other_threads_np();
31798 #endif
31799
31800         return 0;
31801
31802   ;
31803   return 0;
31804 }
31805 _ACEOF
31806 rm -f conftest.$ac_objext conftest$ac_exeext
31807 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31808   (eval $ac_link) 2>conftest.er1
31809   ac_status=$?
31810   grep -v '^ *+' conftest.er1 >conftest.err
31811   rm -f conftest.er1
31812   cat conftest.err >&5
31813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31814   (exit $ac_status); } &&
31815          { ac_try='test -z "$ac_c_werror_flag"
31816                          || test ! -s conftest.err'
31817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31818   (eval $ac_try) 2>&5
31819   ac_status=$?
31820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31821   (exit $ac_status); }; } &&
31822          { ac_try='test -s conftest$ac_exeext'
31823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31824   (eval $ac_try) 2>&5
31825   ac_status=$?
31826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31827   (exit $ac_status); }; }; then
31828   ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
31829 else
31830   echo "$as_me: failed program was:" >&5
31831 sed 's/^/| /' conftest.$ac_ext >&5
31832
31833 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
31834 fi
31835 rm -f conftest.err conftest.$ac_objext \
31836       conftest$ac_exeext conftest.$ac_ext
31837 else
31838   cat >conftest.$ac_ext <<_ACEOF
31839 /* confdefs.h.  */
31840 _ACEOF
31841 cat confdefs.h >>conftest.$ac_ext
31842 cat >>conftest.$ac_ext <<_ACEOF
31843 /* end confdefs.h.  */
31844 /* pthread test headers */
31845 #include <pthread.h>
31846 #if HAVE_PTHREADS < 7
31847 #include <errno.h>
31848 #endif
31849 #ifndef NULL
31850 #define NULL (void*)0
31851 #endif
31852
31853 static void *task(p)
31854         void *p;
31855 {
31856         return (void *) (p == NULL);
31857 }
31858
31859
31860 int main(argc, argv)
31861         int argc;
31862         char **argv;
31863 {
31864
31865         /* pthread test function */
31866 #ifndef PTHREAD_CREATE_DETACHED
31867 #define PTHREAD_CREATE_DETACHED 1
31868 #endif
31869         pthread_t t;
31870         int status;
31871         int detach = PTHREAD_CREATE_DETACHED;
31872
31873 #if HAVE_PTHREADS > 4
31874         /* Final pthreads */
31875         pthread_attr_t attr;
31876
31877         status = pthread_attr_init(&attr);
31878         if( status ) return status;
31879
31880 #if HAVE_PTHREADS < 7
31881         status = pthread_attr_setdetachstate(&attr, &detach);
31882         if( status < 0 ) status = errno;
31883 #else
31884         status = pthread_attr_setdetachstate(&attr, detach);
31885 #endif
31886         if( status ) return status;
31887         status = pthread_create( &t, &attr, task, NULL );
31888 #if HAVE_PTHREADS < 7
31889         if( status < 0 ) status = errno;
31890 #endif
31891         if( status ) return status;
31892 #else
31893         /* Draft 4 pthreads */
31894         status = pthread_create( &t, pthread_attr_default, task, NULL );
31895         if( status ) return errno;
31896
31897         /* give thread a chance to complete */
31898         /* it should remain joinable and hence detachable */
31899         sleep( 1 );
31900
31901         status = pthread_detach( &t );
31902         if( status ) return errno;
31903 #endif
31904
31905 #ifdef HAVE_LINUX_THREADS
31906         pthread_kill_other_threads_np();
31907 #endif
31908
31909         return 0;
31910
31911 }
31912
31913 _ACEOF
31914 rm -f conftest$ac_exeext
31915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31916   (eval $ac_link) 2>&5
31917   ac_status=$?
31918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31919   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31921   (eval $ac_try) 2>&5
31922   ac_status=$?
31923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31924   (exit $ac_status); }; }; then
31925   ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
31926 else
31927   echo "$as_me: program exited with status $ac_status" >&5
31928 echo "$as_me: failed program was:" >&5
31929 sed 's/^/| /' conftest.$ac_ext >&5
31930
31931 ( exit $ac_status )
31932 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
31933 fi
31934 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31935 fi
31936
31937                 # restore the LIBS
31938                 LIBS="$ol_LIBS"
31939
31940 fi
31941 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
31942 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6
31943
31944         if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
31945                 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
31946                 ol_link_threads=posix
31947         fi
31948 fi
31949
31950                 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
31951 if test "$ol_link_threads" = no ; then
31952         # try -lpthread -lmach -lexc
31953         echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc" >&5
31954 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc... $ECHO_C" >&6
31955 if test "${ol_cv_pthread_lpthread_lmach_lexc+set}" = set; then
31956   echo $ECHO_N "(cached) $ECHO_C" >&6
31957 else
31958
31959                 # save the flags
31960                 ol_LIBS="$LIBS"
31961                 LIBS="-lpthread -lmach -lexc $LIBS"
31962
31963                 if test "$cross_compiling" = yes; then
31964   cat >conftest.$ac_ext <<_ACEOF
31965 /* confdefs.h.  */
31966 _ACEOF
31967 cat confdefs.h >>conftest.$ac_ext
31968 cat >>conftest.$ac_ext <<_ACEOF
31969 /* end confdefs.h.  */
31970 /* pthread test headers */
31971 #include <pthread.h>
31972 #if HAVE_PTHREADS < 7
31973 #include <errno.h>
31974 #endif
31975 #ifndef NULL
31976 #define NULL (void*)0
31977 #endif
31978
31979 static void *task(p)
31980         void *p;
31981 {
31982         return (void *) (p == NULL);
31983 }
31984
31985 int
31986 main ()
31987 {
31988
31989         /* pthread test function */
31990 #ifndef PTHREAD_CREATE_DETACHED
31991 #define PTHREAD_CREATE_DETACHED 1
31992 #endif
31993         pthread_t t;
31994         int status;
31995         int detach = PTHREAD_CREATE_DETACHED;
31996
31997 #if HAVE_PTHREADS > 4
31998         /* Final pthreads */
31999         pthread_attr_t attr;
32000
32001         status = pthread_attr_init(&attr);
32002         if( status ) return status;
32003
32004 #if HAVE_PTHREADS < 7
32005         status = pthread_attr_setdetachstate(&attr, &detach);
32006         if( status < 0 ) status = errno;
32007 #else
32008         status = pthread_attr_setdetachstate(&attr, detach);
32009 #endif
32010         if( status ) return status;
32011         status = pthread_create( &t, &attr, task, NULL );
32012 #if HAVE_PTHREADS < 7
32013         if( status < 0 ) status = errno;
32014 #endif
32015         if( status ) return status;
32016 #else
32017         /* Draft 4 pthreads */
32018         status = pthread_create( &t, pthread_attr_default, task, NULL );
32019         if( status ) return errno;
32020
32021         /* give thread a chance to complete */
32022         /* it should remain joinable and hence detachable */
32023         sleep( 1 );
32024
32025         status = pthread_detach( &t );
32026         if( status ) return errno;
32027 #endif
32028
32029 #ifdef HAVE_LINUX_THREADS
32030         pthread_kill_other_threads_np();
32031 #endif
32032
32033         return 0;
32034
32035   ;
32036   return 0;
32037 }
32038 _ACEOF
32039 rm -f conftest.$ac_objext conftest$ac_exeext
32040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32041   (eval $ac_link) 2>conftest.er1
32042   ac_status=$?
32043   grep -v '^ *+' conftest.er1 >conftest.err
32044   rm -f conftest.er1
32045   cat conftest.err >&5
32046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32047   (exit $ac_status); } &&
32048          { ac_try='test -z "$ac_c_werror_flag"
32049                          || test ! -s conftest.err'
32050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32051   (eval $ac_try) 2>&5
32052   ac_status=$?
32053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32054   (exit $ac_status); }; } &&
32055          { ac_try='test -s conftest$ac_exeext'
32056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32057   (eval $ac_try) 2>&5
32058   ac_status=$?
32059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32060   (exit $ac_status); }; }; then
32061   ol_cv_pthread_lpthread_lmach_lexc=yes
32062 else
32063   echo "$as_me: failed program was:" >&5
32064 sed 's/^/| /' conftest.$ac_ext >&5
32065
32066 ol_cv_pthread_lpthread_lmach_lexc=no
32067 fi
32068 rm -f conftest.err conftest.$ac_objext \
32069       conftest$ac_exeext conftest.$ac_ext
32070 else
32071   cat >conftest.$ac_ext <<_ACEOF
32072 /* confdefs.h.  */
32073 _ACEOF
32074 cat confdefs.h >>conftest.$ac_ext
32075 cat >>conftest.$ac_ext <<_ACEOF
32076 /* end confdefs.h.  */
32077 /* pthread test headers */
32078 #include <pthread.h>
32079 #if HAVE_PTHREADS < 7
32080 #include <errno.h>
32081 #endif
32082 #ifndef NULL
32083 #define NULL (void*)0
32084 #endif
32085
32086 static void *task(p)
32087         void *p;
32088 {
32089         return (void *) (p == NULL);
32090 }
32091
32092
32093 int main(argc, argv)
32094         int argc;
32095         char **argv;
32096 {
32097
32098         /* pthread test function */
32099 #ifndef PTHREAD_CREATE_DETACHED
32100 #define PTHREAD_CREATE_DETACHED 1
32101 #endif
32102         pthread_t t;
32103         int status;
32104         int detach = PTHREAD_CREATE_DETACHED;
32105
32106 #if HAVE_PTHREADS > 4
32107         /* Final pthreads */
32108         pthread_attr_t attr;
32109
32110         status = pthread_attr_init(&attr);
32111         if( status ) return status;
32112
32113 #if HAVE_PTHREADS < 7
32114         status = pthread_attr_setdetachstate(&attr, &detach);
32115         if( status < 0 ) status = errno;
32116 #else
32117         status = pthread_attr_setdetachstate(&attr, detach);
32118 #endif
32119         if( status ) return status;
32120         status = pthread_create( &t, &attr, task, NULL );
32121 #if HAVE_PTHREADS < 7
32122         if( status < 0 ) status = errno;
32123 #endif
32124         if( status ) return status;
32125 #else
32126         /* Draft 4 pthreads */
32127         status = pthread_create( &t, pthread_attr_default, task, NULL );
32128         if( status ) return errno;
32129
32130         /* give thread a chance to complete */
32131         /* it should remain joinable and hence detachable */
32132         sleep( 1 );
32133
32134         status = pthread_detach( &t );
32135         if( status ) return errno;
32136 #endif
32137
32138 #ifdef HAVE_LINUX_THREADS
32139         pthread_kill_other_threads_np();
32140 #endif
32141
32142         return 0;
32143
32144 }
32145
32146 _ACEOF
32147 rm -f conftest$ac_exeext
32148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32149   (eval $ac_link) 2>&5
32150   ac_status=$?
32151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32152   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32154   (eval $ac_try) 2>&5
32155   ac_status=$?
32156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32157   (exit $ac_status); }; }; then
32158   ol_cv_pthread_lpthread_lmach_lexc=yes
32159 else
32160   echo "$as_me: program exited with status $ac_status" >&5
32161 echo "$as_me: failed program was:" >&5
32162 sed 's/^/| /' conftest.$ac_ext >&5
32163
32164 ( exit $ac_status )
32165 ol_cv_pthread_lpthread_lmach_lexc=no
32166 fi
32167 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32168 fi
32169
32170                 # restore the LIBS
32171                 LIBS="$ol_LIBS"
32172
32173 fi
32174 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
32175 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc" >&6
32176
32177         if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
32178                 ol_link_pthreads="-lpthread -lmach -lexc"
32179                 ol_link_threads=posix
32180         fi
32181 fi
32182
32183
32184                 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
32185 if test "$ol_link_threads" = no ; then
32186         # try -lpthread -Wl,-woff,85
32187         echo "$as_me:$LINENO: checking for pthread link with -lpthread -Wl,-woff,85" >&5
32188 echo $ECHO_N "checking for pthread link with -lpthread -Wl,-woff,85... $ECHO_C" >&6
32189 if test "${ol_cv_pthread_lib_lpthread_woff+set}" = set; then
32190   echo $ECHO_N "(cached) $ECHO_C" >&6
32191 else
32192
32193                 # save the flags
32194                 ol_LIBS="$LIBS"
32195                 LIBS="-lpthread -Wl,-woff,85 $LIBS"
32196
32197                 if test "$cross_compiling" = yes; then
32198   cat >conftest.$ac_ext <<_ACEOF
32199 /* confdefs.h.  */
32200 _ACEOF
32201 cat confdefs.h >>conftest.$ac_ext
32202 cat >>conftest.$ac_ext <<_ACEOF
32203 /* end confdefs.h.  */
32204 /* pthread test headers */
32205 #include <pthread.h>
32206 #if HAVE_PTHREADS < 7
32207 #include <errno.h>
32208 #endif
32209 #ifndef NULL
32210 #define NULL (void*)0
32211 #endif
32212
32213 static void *task(p)
32214         void *p;
32215 {
32216         return (void *) (p == NULL);
32217 }
32218
32219 int
32220 main ()
32221 {
32222
32223         /* pthread test function */
32224 #ifndef PTHREAD_CREATE_DETACHED
32225 #define PTHREAD_CREATE_DETACHED 1
32226 #endif
32227         pthread_t t;
32228         int status;
32229         int detach = PTHREAD_CREATE_DETACHED;
32230
32231 #if HAVE_PTHREADS > 4
32232         /* Final pthreads */
32233         pthread_attr_t attr;
32234
32235         status = pthread_attr_init(&attr);
32236         if( status ) return status;
32237
32238 #if HAVE_PTHREADS < 7
32239         status = pthread_attr_setdetachstate(&attr, &detach);
32240         if( status < 0 ) status = errno;
32241 #else
32242         status = pthread_attr_setdetachstate(&attr, detach);
32243 #endif
32244         if( status ) return status;
32245         status = pthread_create( &t, &attr, task, NULL );
32246 #if HAVE_PTHREADS < 7
32247         if( status < 0 ) status = errno;
32248 #endif
32249         if( status ) return status;
32250 #else
32251         /* Draft 4 pthreads */
32252         status = pthread_create( &t, pthread_attr_default, task, NULL );
32253         if( status ) return errno;
32254
32255         /* give thread a chance to complete */
32256         /* it should remain joinable and hence detachable */
32257         sleep( 1 );
32258
32259         status = pthread_detach( &t );
32260         if( status ) return errno;
32261 #endif
32262
32263 #ifdef HAVE_LINUX_THREADS
32264         pthread_kill_other_threads_np();
32265 #endif
32266
32267         return 0;
32268
32269   ;
32270   return 0;
32271 }
32272 _ACEOF
32273 rm -f conftest.$ac_objext conftest$ac_exeext
32274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32275   (eval $ac_link) 2>conftest.er1
32276   ac_status=$?
32277   grep -v '^ *+' conftest.er1 >conftest.err
32278   rm -f conftest.er1
32279   cat conftest.err >&5
32280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32281   (exit $ac_status); } &&
32282          { ac_try='test -z "$ac_c_werror_flag"
32283                          || test ! -s conftest.err'
32284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32285   (eval $ac_try) 2>&5
32286   ac_status=$?
32287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32288   (exit $ac_status); }; } &&
32289          { ac_try='test -s conftest$ac_exeext'
32290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32291   (eval $ac_try) 2>&5
32292   ac_status=$?
32293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32294   (exit $ac_status); }; }; then
32295   ol_cv_pthread_lib_lpthread_woff=yes
32296 else
32297   echo "$as_me: failed program was:" >&5
32298 sed 's/^/| /' conftest.$ac_ext >&5
32299
32300 ol_cv_pthread_lib_lpthread_woff=no
32301 fi
32302 rm -f conftest.err conftest.$ac_objext \
32303       conftest$ac_exeext conftest.$ac_ext
32304 else
32305   cat >conftest.$ac_ext <<_ACEOF
32306 /* confdefs.h.  */
32307 _ACEOF
32308 cat confdefs.h >>conftest.$ac_ext
32309 cat >>conftest.$ac_ext <<_ACEOF
32310 /* end confdefs.h.  */
32311 /* pthread test headers */
32312 #include <pthread.h>
32313 #if HAVE_PTHREADS < 7
32314 #include <errno.h>
32315 #endif
32316 #ifndef NULL
32317 #define NULL (void*)0
32318 #endif
32319
32320 static void *task(p)
32321         void *p;
32322 {
32323         return (void *) (p == NULL);
32324 }
32325
32326
32327 int main(argc, argv)
32328         int argc;
32329         char **argv;
32330 {
32331
32332         /* pthread test function */
32333 #ifndef PTHREAD_CREATE_DETACHED
32334 #define PTHREAD_CREATE_DETACHED 1
32335 #endif
32336         pthread_t t;
32337         int status;
32338         int detach = PTHREAD_CREATE_DETACHED;
32339
32340 #if HAVE_PTHREADS > 4
32341         /* Final pthreads */
32342         pthread_attr_t attr;
32343
32344         status = pthread_attr_init(&attr);
32345         if( status ) return status;
32346
32347 #if HAVE_PTHREADS < 7
32348         status = pthread_attr_setdetachstate(&attr, &detach);
32349         if( status < 0 ) status = errno;
32350 #else
32351         status = pthread_attr_setdetachstate(&attr, detach);
32352 #endif
32353         if( status ) return status;
32354         status = pthread_create( &t, &attr, task, NULL );
32355 #if HAVE_PTHREADS < 7
32356         if( status < 0 ) status = errno;
32357 #endif
32358         if( status ) return status;
32359 #else
32360         /* Draft 4 pthreads */
32361         status = pthread_create( &t, pthread_attr_default, task, NULL );
32362         if( status ) return errno;
32363
32364         /* give thread a chance to complete */
32365         /* it should remain joinable and hence detachable */
32366         sleep( 1 );
32367
32368         status = pthread_detach( &t );
32369         if( status ) return errno;
32370 #endif
32371
32372 #ifdef HAVE_LINUX_THREADS
32373         pthread_kill_other_threads_np();
32374 #endif
32375
32376         return 0;
32377
32378 }
32379
32380 _ACEOF
32381 rm -f conftest$ac_exeext
32382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32383   (eval $ac_link) 2>&5
32384   ac_status=$?
32385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32386   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32388   (eval $ac_try) 2>&5
32389   ac_status=$?
32390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32391   (exit $ac_status); }; }; then
32392   ol_cv_pthread_lib_lpthread_woff=yes
32393 else
32394   echo "$as_me: program exited with status $ac_status" >&5
32395 echo "$as_me: failed program was:" >&5
32396 sed 's/^/| /' conftest.$ac_ext >&5
32397
32398 ( exit $ac_status )
32399 ol_cv_pthread_lib_lpthread_woff=no
32400 fi
32401 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32402 fi
32403
32404                 # restore the LIBS
32405                 LIBS="$ol_LIBS"
32406
32407 fi
32408 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthread_woff" >&5
32409 echo "${ECHO_T}$ol_cv_pthread_lib_lpthread_woff" >&6
32410
32411         if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
32412                 ol_link_pthreads="-lpthread -Wl,-woff,85"
32413                 ol_link_threads=posix
32414         fi
32415 fi
32416
32417
32418                 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
32419 if test "$ol_link_threads" = no ; then
32420         # try -lpthread
32421         echo "$as_me:$LINENO: checking for pthread link with -lpthread" >&5
32422 echo $ECHO_N "checking for pthread link with -lpthread... $ECHO_C" >&6
32423 if test "${ol_cv_pthread_lpthread+set}" = set; then
32424   echo $ECHO_N "(cached) $ECHO_C" >&6
32425 else
32426
32427                 # save the flags
32428                 ol_LIBS="$LIBS"
32429                 LIBS="-lpthread $LIBS"
32430
32431                 if test "$cross_compiling" = yes; then
32432   cat >conftest.$ac_ext <<_ACEOF
32433 /* confdefs.h.  */
32434 _ACEOF
32435 cat confdefs.h >>conftest.$ac_ext
32436 cat >>conftest.$ac_ext <<_ACEOF
32437 /* end confdefs.h.  */
32438 /* pthread test headers */
32439 #include <pthread.h>
32440 #if HAVE_PTHREADS < 7
32441 #include <errno.h>
32442 #endif
32443 #ifndef NULL
32444 #define NULL (void*)0
32445 #endif
32446
32447 static void *task(p)
32448         void *p;
32449 {
32450         return (void *) (p == NULL);
32451 }
32452
32453 int
32454 main ()
32455 {
32456
32457         /* pthread test function */
32458 #ifndef PTHREAD_CREATE_DETACHED
32459 #define PTHREAD_CREATE_DETACHED 1
32460 #endif
32461         pthread_t t;
32462         int status;
32463         int detach = PTHREAD_CREATE_DETACHED;
32464
32465 #if HAVE_PTHREADS > 4
32466         /* Final pthreads */
32467         pthread_attr_t attr;
32468
32469         status = pthread_attr_init(&attr);
32470         if( status ) return status;
32471
32472 #if HAVE_PTHREADS < 7
32473         status = pthread_attr_setdetachstate(&attr, &detach);
32474         if( status < 0 ) status = errno;
32475 #else
32476         status = pthread_attr_setdetachstate(&attr, detach);
32477 #endif
32478         if( status ) return status;
32479         status = pthread_create( &t, &attr, task, NULL );
32480 #if HAVE_PTHREADS < 7
32481         if( status < 0 ) status = errno;
32482 #endif
32483         if( status ) return status;
32484 #else
32485         /* Draft 4 pthreads */
32486         status = pthread_create( &t, pthread_attr_default, task, NULL );
32487         if( status ) return errno;
32488
32489         /* give thread a chance to complete */
32490         /* it should remain joinable and hence detachable */
32491         sleep( 1 );
32492
32493         status = pthread_detach( &t );
32494         if( status ) return errno;
32495 #endif
32496
32497 #ifdef HAVE_LINUX_THREADS
32498         pthread_kill_other_threads_np();
32499 #endif
32500
32501         return 0;
32502
32503   ;
32504   return 0;
32505 }
32506 _ACEOF
32507 rm -f conftest.$ac_objext conftest$ac_exeext
32508 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32509   (eval $ac_link) 2>conftest.er1
32510   ac_status=$?
32511   grep -v '^ *+' conftest.er1 >conftest.err
32512   rm -f conftest.er1
32513   cat conftest.err >&5
32514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32515   (exit $ac_status); } &&
32516          { ac_try='test -z "$ac_c_werror_flag"
32517                          || test ! -s conftest.err'
32518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32519   (eval $ac_try) 2>&5
32520   ac_status=$?
32521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32522   (exit $ac_status); }; } &&
32523          { ac_try='test -s conftest$ac_exeext'
32524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32525   (eval $ac_try) 2>&5
32526   ac_status=$?
32527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32528   (exit $ac_status); }; }; then
32529   ol_cv_pthread_lpthread=yes
32530 else
32531   echo "$as_me: failed program was:" >&5
32532 sed 's/^/| /' conftest.$ac_ext >&5
32533
32534 ol_cv_pthread_lpthread=no
32535 fi
32536 rm -f conftest.err conftest.$ac_objext \
32537       conftest$ac_exeext conftest.$ac_ext
32538 else
32539   cat >conftest.$ac_ext <<_ACEOF
32540 /* confdefs.h.  */
32541 _ACEOF
32542 cat confdefs.h >>conftest.$ac_ext
32543 cat >>conftest.$ac_ext <<_ACEOF
32544 /* end confdefs.h.  */
32545 /* pthread test headers */
32546 #include <pthread.h>
32547 #if HAVE_PTHREADS < 7
32548 #include <errno.h>
32549 #endif
32550 #ifndef NULL
32551 #define NULL (void*)0
32552 #endif
32553
32554 static void *task(p)
32555         void *p;
32556 {
32557         return (void *) (p == NULL);
32558 }
32559
32560
32561 int main(argc, argv)
32562         int argc;
32563         char **argv;
32564 {
32565
32566         /* pthread test function */
32567 #ifndef PTHREAD_CREATE_DETACHED
32568 #define PTHREAD_CREATE_DETACHED 1
32569 #endif
32570         pthread_t t;
32571         int status;
32572         int detach = PTHREAD_CREATE_DETACHED;
32573
32574 #if HAVE_PTHREADS > 4
32575         /* Final pthreads */
32576         pthread_attr_t attr;
32577
32578         status = pthread_attr_init(&attr);
32579         if( status ) return status;
32580
32581 #if HAVE_PTHREADS < 7
32582         status = pthread_attr_setdetachstate(&attr, &detach);
32583         if( status < 0 ) status = errno;
32584 #else
32585         status = pthread_attr_setdetachstate(&attr, detach);
32586 #endif
32587         if( status ) return status;
32588         status = pthread_create( &t, &attr, task, NULL );
32589 #if HAVE_PTHREADS < 7
32590         if( status < 0 ) status = errno;
32591 #endif
32592         if( status ) return status;
32593 #else
32594         /* Draft 4 pthreads */
32595         status = pthread_create( &t, pthread_attr_default, task, NULL );
32596         if( status ) return errno;
32597
32598         /* give thread a chance to complete */
32599         /* it should remain joinable and hence detachable */
32600         sleep( 1 );
32601
32602         status = pthread_detach( &t );
32603         if( status ) return errno;
32604 #endif
32605
32606 #ifdef HAVE_LINUX_THREADS
32607         pthread_kill_other_threads_np();
32608 #endif
32609
32610         return 0;
32611
32612 }
32613
32614 _ACEOF
32615 rm -f conftest$ac_exeext
32616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32617   (eval $ac_link) 2>&5
32618   ac_status=$?
32619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32620   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32622   (eval $ac_try) 2>&5
32623   ac_status=$?
32624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32625   (exit $ac_status); }; }; then
32626   ol_cv_pthread_lpthread=yes
32627 else
32628   echo "$as_me: program exited with status $ac_status" >&5
32629 echo "$as_me: failed program was:" >&5
32630 sed 's/^/| /' conftest.$ac_ext >&5
32631
32632 ( exit $ac_status )
32633 ol_cv_pthread_lpthread=no
32634 fi
32635 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32636 fi
32637
32638                 # restore the LIBS
32639                 LIBS="$ol_LIBS"
32640
32641 fi
32642 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread" >&5
32643 echo "${ECHO_T}$ol_cv_pthread_lpthread" >&6
32644
32645         if test $ol_cv_pthread_lpthread = yes ; then
32646                 ol_link_pthreads="-lpthread"
32647                 ol_link_threads=posix
32648         fi
32649 fi
32650
32651                 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
32652 if test "$ol_link_threads" = no ; then
32653         # try -lc_r
32654         echo "$as_me:$LINENO: checking for pthread link with -lc_r" >&5
32655 echo $ECHO_N "checking for pthread link with -lc_r... $ECHO_C" >&6
32656 if test "${ol_cv_pthread_lc_r+set}" = set; then
32657   echo $ECHO_N "(cached) $ECHO_C" >&6
32658 else
32659
32660                 # save the flags
32661                 ol_LIBS="$LIBS"
32662                 LIBS="-lc_r $LIBS"
32663
32664                 if test "$cross_compiling" = yes; then
32665   cat >conftest.$ac_ext <<_ACEOF
32666 /* confdefs.h.  */
32667 _ACEOF
32668 cat confdefs.h >>conftest.$ac_ext
32669 cat >>conftest.$ac_ext <<_ACEOF
32670 /* end confdefs.h.  */
32671 /* pthread test headers */
32672 #include <pthread.h>
32673 #if HAVE_PTHREADS < 7
32674 #include <errno.h>
32675 #endif
32676 #ifndef NULL
32677 #define NULL (void*)0
32678 #endif
32679
32680 static void *task(p)
32681         void *p;
32682 {
32683         return (void *) (p == NULL);
32684 }
32685
32686 int
32687 main ()
32688 {
32689
32690         /* pthread test function */
32691 #ifndef PTHREAD_CREATE_DETACHED
32692 #define PTHREAD_CREATE_DETACHED 1
32693 #endif
32694         pthread_t t;
32695         int status;
32696         int detach = PTHREAD_CREATE_DETACHED;
32697
32698 #if HAVE_PTHREADS > 4
32699         /* Final pthreads */
32700         pthread_attr_t attr;
32701
32702         status = pthread_attr_init(&attr);
32703         if( status ) return status;
32704
32705 #if HAVE_PTHREADS < 7
32706         status = pthread_attr_setdetachstate(&attr, &detach);
32707         if( status < 0 ) status = errno;
32708 #else
32709         status = pthread_attr_setdetachstate(&attr, detach);
32710 #endif
32711         if( status ) return status;
32712         status = pthread_create( &t, &attr, task, NULL );
32713 #if HAVE_PTHREADS < 7
32714         if( status < 0 ) status = errno;
32715 #endif
32716         if( status ) return status;
32717 #else
32718         /* Draft 4 pthreads */
32719         status = pthread_create( &t, pthread_attr_default, task, NULL );
32720         if( status ) return errno;
32721
32722         /* give thread a chance to complete */
32723         /* it should remain joinable and hence detachable */
32724         sleep( 1 );
32725
32726         status = pthread_detach( &t );
32727         if( status ) return errno;
32728 #endif
32729
32730 #ifdef HAVE_LINUX_THREADS
32731         pthread_kill_other_threads_np();
32732 #endif
32733
32734         return 0;
32735
32736   ;
32737   return 0;
32738 }
32739 _ACEOF
32740 rm -f conftest.$ac_objext conftest$ac_exeext
32741 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32742   (eval $ac_link) 2>conftest.er1
32743   ac_status=$?
32744   grep -v '^ *+' conftest.er1 >conftest.err
32745   rm -f conftest.er1
32746   cat conftest.err >&5
32747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32748   (exit $ac_status); } &&
32749          { ac_try='test -z "$ac_c_werror_flag"
32750                          || test ! -s conftest.err'
32751   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32752   (eval $ac_try) 2>&5
32753   ac_status=$?
32754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32755   (exit $ac_status); }; } &&
32756          { ac_try='test -s conftest$ac_exeext'
32757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32758   (eval $ac_try) 2>&5
32759   ac_status=$?
32760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32761   (exit $ac_status); }; }; then
32762   ol_cv_pthread_lc_r=yes
32763 else
32764   echo "$as_me: failed program was:" >&5
32765 sed 's/^/| /' conftest.$ac_ext >&5
32766
32767 ol_cv_pthread_lc_r=no
32768 fi
32769 rm -f conftest.err conftest.$ac_objext \
32770       conftest$ac_exeext conftest.$ac_ext
32771 else
32772   cat >conftest.$ac_ext <<_ACEOF
32773 /* confdefs.h.  */
32774 _ACEOF
32775 cat confdefs.h >>conftest.$ac_ext
32776 cat >>conftest.$ac_ext <<_ACEOF
32777 /* end confdefs.h.  */
32778 /* pthread test headers */
32779 #include <pthread.h>
32780 #if HAVE_PTHREADS < 7
32781 #include <errno.h>
32782 #endif
32783 #ifndef NULL
32784 #define NULL (void*)0
32785 #endif
32786
32787 static void *task(p)
32788         void *p;
32789 {
32790         return (void *) (p == NULL);
32791 }
32792
32793
32794 int main(argc, argv)
32795         int argc;
32796         char **argv;
32797 {
32798
32799         /* pthread test function */
32800 #ifndef PTHREAD_CREATE_DETACHED
32801 #define PTHREAD_CREATE_DETACHED 1
32802 #endif
32803         pthread_t t;
32804         int status;
32805         int detach = PTHREAD_CREATE_DETACHED;
32806
32807 #if HAVE_PTHREADS > 4
32808         /* Final pthreads */
32809         pthread_attr_t attr;
32810
32811         status = pthread_attr_init(&attr);
32812         if( status ) return status;
32813
32814 #if HAVE_PTHREADS < 7
32815         status = pthread_attr_setdetachstate(&attr, &detach);
32816         if( status < 0 ) status = errno;
32817 #else
32818         status = pthread_attr_setdetachstate(&attr, detach);
32819 #endif
32820         if( status ) return status;
32821         status = pthread_create( &t, &attr, task, NULL );
32822 #if HAVE_PTHREADS < 7
32823         if( status < 0 ) status = errno;
32824 #endif
32825         if( status ) return status;
32826 #else
32827         /* Draft 4 pthreads */
32828         status = pthread_create( &t, pthread_attr_default, task, NULL );
32829         if( status ) return errno;
32830
32831         /* give thread a chance to complete */
32832         /* it should remain joinable and hence detachable */
32833         sleep( 1 );
32834
32835         status = pthread_detach( &t );
32836         if( status ) return errno;
32837 #endif
32838
32839 #ifdef HAVE_LINUX_THREADS
32840         pthread_kill_other_threads_np();
32841 #endif
32842
32843         return 0;
32844
32845 }
32846
32847 _ACEOF
32848 rm -f conftest$ac_exeext
32849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32850   (eval $ac_link) 2>&5
32851   ac_status=$?
32852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32853   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32855   (eval $ac_try) 2>&5
32856   ac_status=$?
32857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32858   (exit $ac_status); }; }; then
32859   ol_cv_pthread_lc_r=yes
32860 else
32861   echo "$as_me: program exited with status $ac_status" >&5
32862 echo "$as_me: failed program was:" >&5
32863 sed 's/^/| /' conftest.$ac_ext >&5
32864
32865 ( exit $ac_status )
32866 ol_cv_pthread_lc_r=no
32867 fi
32868 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32869 fi
32870
32871                 # restore the LIBS
32872                 LIBS="$ol_LIBS"
32873
32874 fi
32875 echo "$as_me:$LINENO: result: $ol_cv_pthread_lc_r" >&5
32876 echo "${ECHO_T}$ol_cv_pthread_lc_r" >&6
32877
32878         if test $ol_cv_pthread_lc_r = yes ; then
32879                 ol_link_pthreads="-lc_r"
32880                 ol_link_threads=posix
32881         fi
32882 fi
32883
32884
32885                 # Pthread try link: -threads (ol_cv_pthread_threads)
32886 if test "$ol_link_threads" = no ; then
32887         # try -threads
32888         echo "$as_me:$LINENO: checking for pthread link with -threads" >&5
32889 echo $ECHO_N "checking for pthread link with -threads... $ECHO_C" >&6
32890 if test "${ol_cv_pthread_threads+set}" = set; then
32891   echo $ECHO_N "(cached) $ECHO_C" >&6
32892 else
32893
32894                 # save the flags
32895                 ol_LIBS="$LIBS"
32896                 LIBS="-threads $LIBS"
32897
32898                 if test "$cross_compiling" = yes; then
32899   cat >conftest.$ac_ext <<_ACEOF
32900 /* confdefs.h.  */
32901 _ACEOF
32902 cat confdefs.h >>conftest.$ac_ext
32903 cat >>conftest.$ac_ext <<_ACEOF
32904 /* end confdefs.h.  */
32905 /* pthread test headers */
32906 #include <pthread.h>
32907 #if HAVE_PTHREADS < 7
32908 #include <errno.h>
32909 #endif
32910 #ifndef NULL
32911 #define NULL (void*)0
32912 #endif
32913
32914 static void *task(p)
32915         void *p;
32916 {
32917         return (void *) (p == NULL);
32918 }
32919
32920 int
32921 main ()
32922 {
32923
32924         /* pthread test function */
32925 #ifndef PTHREAD_CREATE_DETACHED
32926 #define PTHREAD_CREATE_DETACHED 1
32927 #endif
32928         pthread_t t;
32929         int status;
32930         int detach = PTHREAD_CREATE_DETACHED;
32931
32932 #if HAVE_PTHREADS > 4
32933         /* Final pthreads */
32934         pthread_attr_t attr;
32935
32936         status = pthread_attr_init(&attr);
32937         if( status ) return status;
32938
32939 #if HAVE_PTHREADS < 7
32940         status = pthread_attr_setdetachstate(&attr, &detach);
32941         if( status < 0 ) status = errno;
32942 #else
32943         status = pthread_attr_setdetachstate(&attr, detach);
32944 #endif
32945         if( status ) return status;
32946         status = pthread_create( &t, &attr, task, NULL );
32947 #if HAVE_PTHREADS < 7
32948         if( status < 0 ) status = errno;
32949 #endif
32950         if( status ) return status;
32951 #else
32952         /* Draft 4 pthreads */
32953         status = pthread_create( &t, pthread_attr_default, task, NULL );
32954         if( status ) return errno;
32955
32956         /* give thread a chance to complete */
32957         /* it should remain joinable and hence detachable */
32958         sleep( 1 );
32959
32960         status = pthread_detach( &t );
32961         if( status ) return errno;
32962 #endif
32963
32964 #ifdef HAVE_LINUX_THREADS
32965         pthread_kill_other_threads_np();
32966 #endif
32967
32968         return 0;
32969
32970   ;
32971   return 0;
32972 }
32973 _ACEOF
32974 rm -f conftest.$ac_objext conftest$ac_exeext
32975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32976   (eval $ac_link) 2>conftest.er1
32977   ac_status=$?
32978   grep -v '^ *+' conftest.er1 >conftest.err
32979   rm -f conftest.er1
32980   cat conftest.err >&5
32981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32982   (exit $ac_status); } &&
32983          { ac_try='test -z "$ac_c_werror_flag"
32984                          || test ! -s conftest.err'
32985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32986   (eval $ac_try) 2>&5
32987   ac_status=$?
32988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32989   (exit $ac_status); }; } &&
32990          { ac_try='test -s conftest$ac_exeext'
32991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32992   (eval $ac_try) 2>&5
32993   ac_status=$?
32994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32995   (exit $ac_status); }; }; then
32996   ol_cv_pthread_threads=yes
32997 else
32998   echo "$as_me: failed program was:" >&5
32999 sed 's/^/| /' conftest.$ac_ext >&5
33000
33001 ol_cv_pthread_threads=no
33002 fi
33003 rm -f conftest.err conftest.$ac_objext \
33004       conftest$ac_exeext conftest.$ac_ext
33005 else
33006   cat >conftest.$ac_ext <<_ACEOF
33007 /* confdefs.h.  */
33008 _ACEOF
33009 cat confdefs.h >>conftest.$ac_ext
33010 cat >>conftest.$ac_ext <<_ACEOF
33011 /* end confdefs.h.  */
33012 /* pthread test headers */
33013 #include <pthread.h>
33014 #if HAVE_PTHREADS < 7
33015 #include <errno.h>
33016 #endif
33017 #ifndef NULL
33018 #define NULL (void*)0
33019 #endif
33020
33021 static void *task(p)
33022         void *p;
33023 {
33024         return (void *) (p == NULL);
33025 }
33026
33027
33028 int main(argc, argv)
33029         int argc;
33030         char **argv;
33031 {
33032
33033         /* pthread test function */
33034 #ifndef PTHREAD_CREATE_DETACHED
33035 #define PTHREAD_CREATE_DETACHED 1
33036 #endif
33037         pthread_t t;
33038         int status;
33039         int detach = PTHREAD_CREATE_DETACHED;
33040
33041 #if HAVE_PTHREADS > 4
33042         /* Final pthreads */
33043         pthread_attr_t attr;
33044
33045         status = pthread_attr_init(&attr);
33046         if( status ) return status;
33047
33048 #if HAVE_PTHREADS < 7
33049         status = pthread_attr_setdetachstate(&attr, &detach);
33050         if( status < 0 ) status = errno;
33051 #else
33052         status = pthread_attr_setdetachstate(&attr, detach);
33053 #endif
33054         if( status ) return status;
33055         status = pthread_create( &t, &attr, task, NULL );
33056 #if HAVE_PTHREADS < 7
33057         if( status < 0 ) status = errno;
33058 #endif
33059         if( status ) return status;
33060 #else
33061         /* Draft 4 pthreads */
33062         status = pthread_create( &t, pthread_attr_default, task, NULL );
33063         if( status ) return errno;
33064
33065         /* give thread a chance to complete */
33066         /* it should remain joinable and hence detachable */
33067         sleep( 1 );
33068
33069         status = pthread_detach( &t );
33070         if( status ) return errno;
33071 #endif
33072
33073 #ifdef HAVE_LINUX_THREADS
33074         pthread_kill_other_threads_np();
33075 #endif
33076
33077         return 0;
33078
33079 }
33080
33081 _ACEOF
33082 rm -f conftest$ac_exeext
33083 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33084   (eval $ac_link) 2>&5
33085   ac_status=$?
33086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33087   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33089   (eval $ac_try) 2>&5
33090   ac_status=$?
33091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33092   (exit $ac_status); }; }; then
33093   ol_cv_pthread_threads=yes
33094 else
33095   echo "$as_me: program exited with status $ac_status" >&5
33096 echo "$as_me: failed program was:" >&5
33097 sed 's/^/| /' conftest.$ac_ext >&5
33098
33099 ( exit $ac_status )
33100 ol_cv_pthread_threads=no
33101 fi
33102 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33103 fi
33104
33105                 # restore the LIBS
33106                 LIBS="$ol_LIBS"
33107
33108 fi
33109 echo "$as_me:$LINENO: result: $ol_cv_pthread_threads" >&5
33110 echo "${ECHO_T}$ol_cv_pthread_threads" >&6
33111
33112         if test $ol_cv_pthread_threads = yes ; then
33113                 ol_link_pthreads="-threads"
33114                 ol_link_threads=posix
33115         fi
33116 fi
33117
33118
33119                 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
33120 if test "$ol_link_threads" = no ; then
33121         # try -lpthreads -lmach -lexc -lc_r
33122         echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
33123 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc -lc_r... $ECHO_C" >&6
33124 if test "${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}" = set; then
33125   echo $ECHO_N "(cached) $ECHO_C" >&6
33126 else
33127
33128                 # save the flags
33129                 ol_LIBS="$LIBS"
33130                 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
33131
33132                 if test "$cross_compiling" = yes; then
33133   cat >conftest.$ac_ext <<_ACEOF
33134 /* confdefs.h.  */
33135 _ACEOF
33136 cat confdefs.h >>conftest.$ac_ext
33137 cat >>conftest.$ac_ext <<_ACEOF
33138 /* end confdefs.h.  */
33139 /* pthread test headers */
33140 #include <pthread.h>
33141 #if HAVE_PTHREADS < 7
33142 #include <errno.h>
33143 #endif
33144 #ifndef NULL
33145 #define NULL (void*)0
33146 #endif
33147
33148 static void *task(p)
33149         void *p;
33150 {
33151         return (void *) (p == NULL);
33152 }
33153
33154 int
33155 main ()
33156 {
33157
33158         /* pthread test function */
33159 #ifndef PTHREAD_CREATE_DETACHED
33160 #define PTHREAD_CREATE_DETACHED 1
33161 #endif
33162         pthread_t t;
33163         int status;
33164         int detach = PTHREAD_CREATE_DETACHED;
33165
33166 #if HAVE_PTHREADS > 4
33167         /* Final pthreads */
33168         pthread_attr_t attr;
33169
33170         status = pthread_attr_init(&attr);
33171         if( status ) return status;
33172
33173 #if HAVE_PTHREADS < 7
33174         status = pthread_attr_setdetachstate(&attr, &detach);
33175         if( status < 0 ) status = errno;
33176 #else
33177         status = pthread_attr_setdetachstate(&attr, detach);
33178 #endif
33179         if( status ) return status;
33180         status = pthread_create( &t, &attr, task, NULL );
33181 #if HAVE_PTHREADS < 7
33182         if( status < 0 ) status = errno;
33183 #endif
33184         if( status ) return status;
33185 #else
33186         /* Draft 4 pthreads */
33187         status = pthread_create( &t, pthread_attr_default, task, NULL );
33188         if( status ) return errno;
33189
33190         /* give thread a chance to complete */
33191         /* it should remain joinable and hence detachable */
33192         sleep( 1 );
33193
33194         status = pthread_detach( &t );
33195         if( status ) return errno;
33196 #endif
33197
33198 #ifdef HAVE_LINUX_THREADS
33199         pthread_kill_other_threads_np();
33200 #endif
33201
33202         return 0;
33203
33204   ;
33205   return 0;
33206 }
33207 _ACEOF
33208 rm -f conftest.$ac_objext conftest$ac_exeext
33209 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33210   (eval $ac_link) 2>conftest.er1
33211   ac_status=$?
33212   grep -v '^ *+' conftest.er1 >conftest.err
33213   rm -f conftest.er1
33214   cat conftest.err >&5
33215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33216   (exit $ac_status); } &&
33217          { ac_try='test -z "$ac_c_werror_flag"
33218                          || test ! -s conftest.err'
33219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33220   (eval $ac_try) 2>&5
33221   ac_status=$?
33222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33223   (exit $ac_status); }; } &&
33224          { ac_try='test -s conftest$ac_exeext'
33225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33226   (eval $ac_try) 2>&5
33227   ac_status=$?
33228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33229   (exit $ac_status); }; }; then
33230   ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
33231 else
33232   echo "$as_me: failed program was:" >&5
33233 sed 's/^/| /' conftest.$ac_ext >&5
33234
33235 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
33236 fi
33237 rm -f conftest.err conftest.$ac_objext \
33238       conftest$ac_exeext conftest.$ac_ext
33239 else
33240   cat >conftest.$ac_ext <<_ACEOF
33241 /* confdefs.h.  */
33242 _ACEOF
33243 cat confdefs.h >>conftest.$ac_ext
33244 cat >>conftest.$ac_ext <<_ACEOF
33245 /* end confdefs.h.  */
33246 /* pthread test headers */
33247 #include <pthread.h>
33248 #if HAVE_PTHREADS < 7
33249 #include <errno.h>
33250 #endif
33251 #ifndef NULL
33252 #define NULL (void*)0
33253 #endif
33254
33255 static void *task(p)
33256         void *p;
33257 {
33258         return (void *) (p == NULL);
33259 }
33260
33261
33262 int main(argc, argv)
33263         int argc;
33264         char **argv;
33265 {
33266
33267         /* pthread test function */
33268 #ifndef PTHREAD_CREATE_DETACHED
33269 #define PTHREAD_CREATE_DETACHED 1
33270 #endif
33271         pthread_t t;
33272         int status;
33273         int detach = PTHREAD_CREATE_DETACHED;
33274
33275 #if HAVE_PTHREADS > 4
33276         /* Final pthreads */
33277         pthread_attr_t attr;
33278
33279         status = pthread_attr_init(&attr);
33280         if( status ) return status;
33281
33282 #if HAVE_PTHREADS < 7
33283         status = pthread_attr_setdetachstate(&attr, &detach);
33284         if( status < 0 ) status = errno;
33285 #else
33286         status = pthread_attr_setdetachstate(&attr, detach);
33287 #endif
33288         if( status ) return status;
33289         status = pthread_create( &t, &attr, task, NULL );
33290 #if HAVE_PTHREADS < 7
33291         if( status < 0 ) status = errno;
33292 #endif
33293         if( status ) return status;
33294 #else
33295         /* Draft 4 pthreads */
33296         status = pthread_create( &t, pthread_attr_default, task, NULL );
33297         if( status ) return errno;
33298
33299         /* give thread a chance to complete */
33300         /* it should remain joinable and hence detachable */
33301         sleep( 1 );
33302
33303         status = pthread_detach( &t );
33304         if( status ) return errno;
33305 #endif
33306
33307 #ifdef HAVE_LINUX_THREADS
33308         pthread_kill_other_threads_np();
33309 #endif
33310
33311         return 0;
33312
33313 }
33314
33315 _ACEOF
33316 rm -f conftest$ac_exeext
33317 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33318   (eval $ac_link) 2>&5
33319   ac_status=$?
33320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33321   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33323   (eval $ac_try) 2>&5
33324   ac_status=$?
33325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33326   (exit $ac_status); }; }; then
33327   ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
33328 else
33329   echo "$as_me: program exited with status $ac_status" >&5
33330 echo "$as_me: failed program was:" >&5
33331 sed 's/^/| /' conftest.$ac_ext >&5
33332
33333 ( exit $ac_status )
33334 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
33335 fi
33336 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33337 fi
33338
33339                 # restore the LIBS
33340                 LIBS="$ol_LIBS"
33341
33342 fi
33343 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
33344 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6
33345
33346         if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
33347                 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
33348                 ol_link_threads=posix
33349         fi
33350 fi
33351
33352                 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
33353 if test "$ol_link_threads" = no ; then
33354         # try -lpthreads -lmach -lexc
33355         echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc" >&5
33356 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc... $ECHO_C" >&6
33357 if test "${ol_cv_pthread_lpthreads_lmach_lexc+set}" = set; then
33358   echo $ECHO_N "(cached) $ECHO_C" >&6
33359 else
33360
33361                 # save the flags
33362                 ol_LIBS="$LIBS"
33363                 LIBS="-lpthreads -lmach -lexc $LIBS"
33364
33365                 if test "$cross_compiling" = yes; then
33366   cat >conftest.$ac_ext <<_ACEOF
33367 /* confdefs.h.  */
33368 _ACEOF
33369 cat confdefs.h >>conftest.$ac_ext
33370 cat >>conftest.$ac_ext <<_ACEOF
33371 /* end confdefs.h.  */
33372 /* pthread test headers */
33373 #include <pthread.h>
33374 #if HAVE_PTHREADS < 7
33375 #include <errno.h>
33376 #endif
33377 #ifndef NULL
33378 #define NULL (void*)0
33379 #endif
33380
33381 static void *task(p)
33382         void *p;
33383 {
33384         return (void *) (p == NULL);
33385 }
33386
33387 int
33388 main ()
33389 {
33390
33391         /* pthread test function */
33392 #ifndef PTHREAD_CREATE_DETACHED
33393 #define PTHREAD_CREATE_DETACHED 1
33394 #endif
33395         pthread_t t;
33396         int status;
33397         int detach = PTHREAD_CREATE_DETACHED;
33398
33399 #if HAVE_PTHREADS > 4
33400         /* Final pthreads */
33401         pthread_attr_t attr;
33402
33403         status = pthread_attr_init(&attr);
33404         if( status ) return status;
33405
33406 #if HAVE_PTHREADS < 7
33407         status = pthread_attr_setdetachstate(&attr, &detach);
33408         if( status < 0 ) status = errno;
33409 #else
33410         status = pthread_attr_setdetachstate(&attr, detach);
33411 #endif
33412         if( status ) return status;
33413         status = pthread_create( &t, &attr, task, NULL );
33414 #if HAVE_PTHREADS < 7
33415         if( status < 0 ) status = errno;
33416 #endif
33417         if( status ) return status;
33418 #else
33419         /* Draft 4 pthreads */
33420         status = pthread_create( &t, pthread_attr_default, task, NULL );
33421         if( status ) return errno;
33422
33423         /* give thread a chance to complete */
33424         /* it should remain joinable and hence detachable */
33425         sleep( 1 );
33426
33427         status = pthread_detach( &t );
33428         if( status ) return errno;
33429 #endif
33430
33431 #ifdef HAVE_LINUX_THREADS
33432         pthread_kill_other_threads_np();
33433 #endif
33434
33435         return 0;
33436
33437   ;
33438   return 0;
33439 }
33440 _ACEOF
33441 rm -f conftest.$ac_objext conftest$ac_exeext
33442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33443   (eval $ac_link) 2>conftest.er1
33444   ac_status=$?
33445   grep -v '^ *+' conftest.er1 >conftest.err
33446   rm -f conftest.er1
33447   cat conftest.err >&5
33448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33449   (exit $ac_status); } &&
33450          { ac_try='test -z "$ac_c_werror_flag"
33451                          || test ! -s conftest.err'
33452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33453   (eval $ac_try) 2>&5
33454   ac_status=$?
33455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33456   (exit $ac_status); }; } &&
33457          { ac_try='test -s conftest$ac_exeext'
33458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33459   (eval $ac_try) 2>&5
33460   ac_status=$?
33461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33462   (exit $ac_status); }; }; then
33463   ol_cv_pthread_lpthreads_lmach_lexc=yes
33464 else
33465   echo "$as_me: failed program was:" >&5
33466 sed 's/^/| /' conftest.$ac_ext >&5
33467
33468 ol_cv_pthread_lpthreads_lmach_lexc=no
33469 fi
33470 rm -f conftest.err conftest.$ac_objext \
33471       conftest$ac_exeext conftest.$ac_ext
33472 else
33473   cat >conftest.$ac_ext <<_ACEOF
33474 /* confdefs.h.  */
33475 _ACEOF
33476 cat confdefs.h >>conftest.$ac_ext
33477 cat >>conftest.$ac_ext <<_ACEOF
33478 /* end confdefs.h.  */
33479 /* pthread test headers */
33480 #include <pthread.h>
33481 #if HAVE_PTHREADS < 7
33482 #include <errno.h>
33483 #endif
33484 #ifndef NULL
33485 #define NULL (void*)0
33486 #endif
33487
33488 static void *task(p)
33489         void *p;
33490 {
33491         return (void *) (p == NULL);
33492 }
33493
33494
33495 int main(argc, argv)
33496         int argc;
33497         char **argv;
33498 {
33499
33500         /* pthread test function */
33501 #ifndef PTHREAD_CREATE_DETACHED
33502 #define PTHREAD_CREATE_DETACHED 1
33503 #endif
33504         pthread_t t;
33505         int status;
33506         int detach = PTHREAD_CREATE_DETACHED;
33507
33508 #if HAVE_PTHREADS > 4
33509         /* Final pthreads */
33510         pthread_attr_t attr;
33511
33512         status = pthread_attr_init(&attr);
33513         if( status ) return status;
33514
33515 #if HAVE_PTHREADS < 7
33516         status = pthread_attr_setdetachstate(&attr, &detach);
33517         if( status < 0 ) status = errno;
33518 #else
33519         status = pthread_attr_setdetachstate(&attr, detach);
33520 #endif
33521         if( status ) return status;
33522         status = pthread_create( &t, &attr, task, NULL );
33523 #if HAVE_PTHREADS < 7
33524         if( status < 0 ) status = errno;
33525 #endif
33526         if( status ) return status;
33527 #else
33528         /* Draft 4 pthreads */
33529         status = pthread_create( &t, pthread_attr_default, task, NULL );
33530         if( status ) return errno;
33531
33532         /* give thread a chance to complete */
33533         /* it should remain joinable and hence detachable */
33534         sleep( 1 );
33535
33536         status = pthread_detach( &t );
33537         if( status ) return errno;
33538 #endif
33539
33540 #ifdef HAVE_LINUX_THREADS
33541         pthread_kill_other_threads_np();
33542 #endif
33543
33544         return 0;
33545
33546 }
33547
33548 _ACEOF
33549 rm -f conftest$ac_exeext
33550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33551   (eval $ac_link) 2>&5
33552   ac_status=$?
33553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33554   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33556   (eval $ac_try) 2>&5
33557   ac_status=$?
33558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33559   (exit $ac_status); }; }; then
33560   ol_cv_pthread_lpthreads_lmach_lexc=yes
33561 else
33562   echo "$as_me: program exited with status $ac_status" >&5
33563 echo "$as_me: failed program was:" >&5
33564 sed 's/^/| /' conftest.$ac_ext >&5
33565
33566 ( exit $ac_status )
33567 ol_cv_pthread_lpthreads_lmach_lexc=no
33568 fi
33569 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33570 fi
33571
33572                 # restore the LIBS
33573                 LIBS="$ol_LIBS"
33574
33575 fi
33576 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
33577 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc" >&6
33578
33579         if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
33580                 ol_link_pthreads="-lpthreads -lmach -lexc"
33581                 ol_link_threads=posix
33582         fi
33583 fi
33584
33585                 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
33586 if test "$ol_link_threads" = no ; then
33587         # try -lpthreads -lexc
33588         echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lexc" >&5
33589 echo $ECHO_N "checking for pthread link with -lpthreads -lexc... $ECHO_C" >&6
33590 if test "${ol_cv_pthread_lpthreads_lexc+set}" = set; then
33591   echo $ECHO_N "(cached) $ECHO_C" >&6
33592 else
33593
33594                 # save the flags
33595                 ol_LIBS="$LIBS"
33596                 LIBS="-lpthreads -lexc $LIBS"
33597
33598                 if test "$cross_compiling" = yes; then
33599   cat >conftest.$ac_ext <<_ACEOF
33600 /* confdefs.h.  */
33601 _ACEOF
33602 cat confdefs.h >>conftest.$ac_ext
33603 cat >>conftest.$ac_ext <<_ACEOF
33604 /* end confdefs.h.  */
33605 /* pthread test headers */
33606 #include <pthread.h>
33607 #if HAVE_PTHREADS < 7
33608 #include <errno.h>
33609 #endif
33610 #ifndef NULL
33611 #define NULL (void*)0
33612 #endif
33613
33614 static void *task(p)
33615         void *p;
33616 {
33617         return (void *) (p == NULL);
33618 }
33619
33620 int
33621 main ()
33622 {
33623
33624         /* pthread test function */
33625 #ifndef PTHREAD_CREATE_DETACHED
33626 #define PTHREAD_CREATE_DETACHED 1
33627 #endif
33628         pthread_t t;
33629         int status;
33630         int detach = PTHREAD_CREATE_DETACHED;
33631
33632 #if HAVE_PTHREADS > 4
33633         /* Final pthreads */
33634         pthread_attr_t attr;
33635
33636         status = pthread_attr_init(&attr);
33637         if( status ) return status;
33638
33639 #if HAVE_PTHREADS < 7
33640         status = pthread_attr_setdetachstate(&attr, &detach);
33641         if( status < 0 ) status = errno;
33642 #else
33643         status = pthread_attr_setdetachstate(&attr, detach);
33644 #endif
33645         if( status ) return status;
33646         status = pthread_create( &t, &attr, task, NULL );
33647 #if HAVE_PTHREADS < 7
33648         if( status < 0 ) status = errno;
33649 #endif
33650         if( status ) return status;
33651 #else
33652         /* Draft 4 pthreads */
33653         status = pthread_create( &t, pthread_attr_default, task, NULL );
33654         if( status ) return errno;
33655
33656         /* give thread a chance to complete */
33657         /* it should remain joinable and hence detachable */
33658         sleep( 1 );
33659
33660         status = pthread_detach( &t );
33661         if( status ) return errno;
33662 #endif
33663
33664 #ifdef HAVE_LINUX_THREADS
33665         pthread_kill_other_threads_np();
33666 #endif
33667
33668         return 0;
33669
33670   ;
33671   return 0;
33672 }
33673 _ACEOF
33674 rm -f conftest.$ac_objext conftest$ac_exeext
33675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33676   (eval $ac_link) 2>conftest.er1
33677   ac_status=$?
33678   grep -v '^ *+' conftest.er1 >conftest.err
33679   rm -f conftest.er1
33680   cat conftest.err >&5
33681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33682   (exit $ac_status); } &&
33683          { ac_try='test -z "$ac_c_werror_flag"
33684                          || test ! -s conftest.err'
33685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33686   (eval $ac_try) 2>&5
33687   ac_status=$?
33688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33689   (exit $ac_status); }; } &&
33690          { ac_try='test -s conftest$ac_exeext'
33691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33692   (eval $ac_try) 2>&5
33693   ac_status=$?
33694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33695   (exit $ac_status); }; }; then
33696   ol_cv_pthread_lpthreads_lexc=yes
33697 else
33698   echo "$as_me: failed program was:" >&5
33699 sed 's/^/| /' conftest.$ac_ext >&5
33700
33701 ol_cv_pthread_lpthreads_lexc=no
33702 fi
33703 rm -f conftest.err conftest.$ac_objext \
33704       conftest$ac_exeext conftest.$ac_ext
33705 else
33706   cat >conftest.$ac_ext <<_ACEOF
33707 /* confdefs.h.  */
33708 _ACEOF
33709 cat confdefs.h >>conftest.$ac_ext
33710 cat >>conftest.$ac_ext <<_ACEOF
33711 /* end confdefs.h.  */
33712 /* pthread test headers */
33713 #include <pthread.h>
33714 #if HAVE_PTHREADS < 7
33715 #include <errno.h>
33716 #endif
33717 #ifndef NULL
33718 #define NULL (void*)0
33719 #endif
33720
33721 static void *task(p)
33722         void *p;
33723 {
33724         return (void *) (p == NULL);
33725 }
33726
33727
33728 int main(argc, argv)
33729         int argc;
33730         char **argv;
33731 {
33732
33733         /* pthread test function */
33734 #ifndef PTHREAD_CREATE_DETACHED
33735 #define PTHREAD_CREATE_DETACHED 1
33736 #endif
33737         pthread_t t;
33738         int status;
33739         int detach = PTHREAD_CREATE_DETACHED;
33740
33741 #if HAVE_PTHREADS > 4
33742         /* Final pthreads */
33743         pthread_attr_t attr;
33744
33745         status = pthread_attr_init(&attr);
33746         if( status ) return status;
33747
33748 #if HAVE_PTHREADS < 7
33749         status = pthread_attr_setdetachstate(&attr, &detach);
33750         if( status < 0 ) status = errno;
33751 #else
33752         status = pthread_attr_setdetachstate(&attr, detach);
33753 #endif
33754         if( status ) return status;
33755         status = pthread_create( &t, &attr, task, NULL );
33756 #if HAVE_PTHREADS < 7
33757         if( status < 0 ) status = errno;
33758 #endif
33759         if( status ) return status;
33760 #else
33761         /* Draft 4 pthreads */
33762         status = pthread_create( &t, pthread_attr_default, task, NULL );
33763         if( status ) return errno;
33764
33765         /* give thread a chance to complete */
33766         /* it should remain joinable and hence detachable */
33767         sleep( 1 );
33768
33769         status = pthread_detach( &t );
33770         if( status ) return errno;
33771 #endif
33772
33773 #ifdef HAVE_LINUX_THREADS
33774         pthread_kill_other_threads_np();
33775 #endif
33776
33777         return 0;
33778
33779 }
33780
33781 _ACEOF
33782 rm -f conftest$ac_exeext
33783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33784   (eval $ac_link) 2>&5
33785   ac_status=$?
33786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33787   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33789   (eval $ac_try) 2>&5
33790   ac_status=$?
33791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33792   (exit $ac_status); }; }; then
33793   ol_cv_pthread_lpthreads_lexc=yes
33794 else
33795   echo "$as_me: program exited with status $ac_status" >&5
33796 echo "$as_me: failed program was:" >&5
33797 sed 's/^/| /' conftest.$ac_ext >&5
33798
33799 ( exit $ac_status )
33800 ol_cv_pthread_lpthreads_lexc=no
33801 fi
33802 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33803 fi
33804
33805                 # restore the LIBS
33806                 LIBS="$ol_LIBS"
33807
33808 fi
33809 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lexc" >&5
33810 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lexc" >&6
33811
33812         if test $ol_cv_pthread_lpthreads_lexc = yes ; then
33813                 ol_link_pthreads="-lpthreads -lexc"
33814                 ol_link_threads=posix
33815         fi
33816 fi
33817
33818
33819                 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
33820 if test "$ol_link_threads" = no ; then
33821         # try -lpthreads
33822         echo "$as_me:$LINENO: checking for pthread link with -lpthreads" >&5
33823 echo $ECHO_N "checking for pthread link with -lpthreads... $ECHO_C" >&6
33824 if test "${ol_cv_pthread_lib_lpthreads+set}" = set; then
33825   echo $ECHO_N "(cached) $ECHO_C" >&6
33826 else
33827
33828                 # save the flags
33829                 ol_LIBS="$LIBS"
33830                 LIBS="-lpthreads $LIBS"
33831
33832                 if test "$cross_compiling" = yes; then
33833   cat >conftest.$ac_ext <<_ACEOF
33834 /* confdefs.h.  */
33835 _ACEOF
33836 cat confdefs.h >>conftest.$ac_ext
33837 cat >>conftest.$ac_ext <<_ACEOF
33838 /* end confdefs.h.  */
33839 /* pthread test headers */
33840 #include <pthread.h>
33841 #if HAVE_PTHREADS < 7
33842 #include <errno.h>
33843 #endif
33844 #ifndef NULL
33845 #define NULL (void*)0
33846 #endif
33847
33848 static void *task(p)
33849         void *p;
33850 {
33851         return (void *) (p == NULL);
33852 }
33853
33854 int
33855 main ()
33856 {
33857
33858         /* pthread test function */
33859 #ifndef PTHREAD_CREATE_DETACHED
33860 #define PTHREAD_CREATE_DETACHED 1
33861 #endif
33862         pthread_t t;
33863         int status;
33864         int detach = PTHREAD_CREATE_DETACHED;
33865
33866 #if HAVE_PTHREADS > 4
33867         /* Final pthreads */
33868         pthread_attr_t attr;
33869
33870         status = pthread_attr_init(&attr);
33871         if( status ) return status;
33872
33873 #if HAVE_PTHREADS < 7
33874         status = pthread_attr_setdetachstate(&attr, &detach);
33875         if( status < 0 ) status = errno;
33876 #else
33877         status = pthread_attr_setdetachstate(&attr, detach);
33878 #endif
33879         if( status ) return status;
33880         status = pthread_create( &t, &attr, task, NULL );
33881 #if HAVE_PTHREADS < 7
33882         if( status < 0 ) status = errno;
33883 #endif
33884         if( status ) return status;
33885 #else
33886         /* Draft 4 pthreads */
33887         status = pthread_create( &t, pthread_attr_default, task, NULL );
33888         if( status ) return errno;
33889
33890         /* give thread a chance to complete */
33891         /* it should remain joinable and hence detachable */
33892         sleep( 1 );
33893
33894         status = pthread_detach( &t );
33895         if( status ) return errno;
33896 #endif
33897
33898 #ifdef HAVE_LINUX_THREADS
33899         pthread_kill_other_threads_np();
33900 #endif
33901
33902         return 0;
33903
33904   ;
33905   return 0;
33906 }
33907 _ACEOF
33908 rm -f conftest.$ac_objext conftest$ac_exeext
33909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33910   (eval $ac_link) 2>conftest.er1
33911   ac_status=$?
33912   grep -v '^ *+' conftest.er1 >conftest.err
33913   rm -f conftest.er1
33914   cat conftest.err >&5
33915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33916   (exit $ac_status); } &&
33917          { ac_try='test -z "$ac_c_werror_flag"
33918                          || test ! -s conftest.err'
33919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33920   (eval $ac_try) 2>&5
33921   ac_status=$?
33922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33923   (exit $ac_status); }; } &&
33924          { ac_try='test -s conftest$ac_exeext'
33925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33926   (eval $ac_try) 2>&5
33927   ac_status=$?
33928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33929   (exit $ac_status); }; }; then
33930   ol_cv_pthread_lib_lpthreads=yes
33931 else
33932   echo "$as_me: failed program was:" >&5
33933 sed 's/^/| /' conftest.$ac_ext >&5
33934
33935 ol_cv_pthread_lib_lpthreads=no
33936 fi
33937 rm -f conftest.err conftest.$ac_objext \
33938       conftest$ac_exeext conftest.$ac_ext
33939 else
33940   cat >conftest.$ac_ext <<_ACEOF
33941 /* confdefs.h.  */
33942 _ACEOF
33943 cat confdefs.h >>conftest.$ac_ext
33944 cat >>conftest.$ac_ext <<_ACEOF
33945 /* end confdefs.h.  */
33946 /* pthread test headers */
33947 #include <pthread.h>
33948 #if HAVE_PTHREADS < 7
33949 #include <errno.h>
33950 #endif
33951 #ifndef NULL
33952 #define NULL (void*)0
33953 #endif
33954
33955 static void *task(p)
33956         void *p;
33957 {
33958         return (void *) (p == NULL);
33959 }
33960
33961
33962 int main(argc, argv)
33963         int argc;
33964         char **argv;
33965 {
33966
33967         /* pthread test function */
33968 #ifndef PTHREAD_CREATE_DETACHED
33969 #define PTHREAD_CREATE_DETACHED 1
33970 #endif
33971         pthread_t t;
33972         int status;
33973         int detach = PTHREAD_CREATE_DETACHED;
33974
33975 #if HAVE_PTHREADS > 4
33976         /* Final pthreads */
33977         pthread_attr_t attr;
33978
33979         status = pthread_attr_init(&attr);
33980         if( status ) return status;
33981
33982 #if HAVE_PTHREADS < 7
33983         status = pthread_attr_setdetachstate(&attr, &detach);
33984         if( status < 0 ) status = errno;
33985 #else
33986         status = pthread_attr_setdetachstate(&attr, detach);
33987 #endif
33988         if( status ) return status;
33989         status = pthread_create( &t, &attr, task, NULL );
33990 #if HAVE_PTHREADS < 7
33991         if( status < 0 ) status = errno;
33992 #endif
33993         if( status ) return status;
33994 #else
33995         /* Draft 4 pthreads */
33996         status = pthread_create( &t, pthread_attr_default, task, NULL );
33997         if( status ) return errno;
33998
33999         /* give thread a chance to complete */
34000         /* it should remain joinable and hence detachable */
34001         sleep( 1 );
34002
34003         status = pthread_detach( &t );
34004         if( status ) return errno;
34005 #endif
34006
34007 #ifdef HAVE_LINUX_THREADS
34008         pthread_kill_other_threads_np();
34009 #endif
34010
34011         return 0;
34012
34013 }
34014
34015 _ACEOF
34016 rm -f conftest$ac_exeext
34017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34018   (eval $ac_link) 2>&5
34019   ac_status=$?
34020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34021   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34023   (eval $ac_try) 2>&5
34024   ac_status=$?
34025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34026   (exit $ac_status); }; }; then
34027   ol_cv_pthread_lib_lpthreads=yes
34028 else
34029   echo "$as_me: program exited with status $ac_status" >&5
34030 echo "$as_me: failed program was:" >&5
34031 sed 's/^/| /' conftest.$ac_ext >&5
34032
34033 ( exit $ac_status )
34034 ol_cv_pthread_lib_lpthreads=no
34035 fi
34036 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34037 fi
34038
34039                 # restore the LIBS
34040                 LIBS="$ol_LIBS"
34041
34042 fi
34043 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthreads" >&5
34044 echo "${ECHO_T}$ol_cv_pthread_lib_lpthreads" >&6
34045
34046         if test $ol_cv_pthread_lib_lpthreads = yes ; then
34047                 ol_link_pthreads="-lpthreads"
34048                 ol_link_threads=posix
34049         fi
34050 fi
34051
34052
34053                 if test $ol_link_threads != no ; then
34054                         LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
34055
34056                                                 save_CPPFLAGS="$CPPFLAGS"
34057                         save_LIBS="$LIBS"
34058                         LIBS="$LTHREAD_LIBS $LIBS"
34059
34060
34061
34062
34063 for ac_func in sched_yield pthread_yield thr_yield
34064 do
34065 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34066 echo "$as_me:$LINENO: checking for $ac_func" >&5
34067 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34068 if eval "test \"\${$as_ac_var+set}\" = set"; then
34069   echo $ECHO_N "(cached) $ECHO_C" >&6
34070 else
34071   cat >conftest.$ac_ext <<_ACEOF
34072 /* confdefs.h.  */
34073 _ACEOF
34074 cat confdefs.h >>conftest.$ac_ext
34075 cat >>conftest.$ac_ext <<_ACEOF
34076 /* end confdefs.h.  */
34077 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34078    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34079 #define $ac_func innocuous_$ac_func
34080
34081 /* System header to define __stub macros and hopefully few prototypes,
34082     which can conflict with char $ac_func (); below.
34083     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34084     <limits.h> exists even on freestanding compilers.  */
34085
34086 #ifdef __STDC__
34087 # include <limits.h>
34088 #else
34089 # include <assert.h>
34090 #endif
34091
34092 #undef $ac_func
34093
34094 /* Override any gcc2 internal prototype to avoid an error.  */
34095 #ifdef __cplusplus
34096 extern "C"
34097 {
34098 #endif
34099 /* We use char because int might match the return type of a gcc2
34100    builtin and then its argument prototype would still apply.  */
34101 char $ac_func ();
34102 /* The GNU C library defines this for functions which it implements
34103     to always fail with ENOSYS.  Some functions are actually named
34104     something starting with __ and the normal name is an alias.  */
34105 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34106 choke me
34107 #else
34108 char (*f) () = $ac_func;
34109 #endif
34110 #ifdef __cplusplus
34111 }
34112 #endif
34113
34114 int
34115 main ()
34116 {
34117 return f != $ac_func;
34118   ;
34119   return 0;
34120 }
34121 _ACEOF
34122 rm -f conftest.$ac_objext conftest$ac_exeext
34123 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34124   (eval $ac_link) 2>conftest.er1
34125   ac_status=$?
34126   grep -v '^ *+' conftest.er1 >conftest.err
34127   rm -f conftest.er1
34128   cat conftest.err >&5
34129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34130   (exit $ac_status); } &&
34131          { ac_try='test -z "$ac_c_werror_flag"
34132                          || test ! -s conftest.err'
34133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34134   (eval $ac_try) 2>&5
34135   ac_status=$?
34136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34137   (exit $ac_status); }; } &&
34138          { ac_try='test -s conftest$ac_exeext'
34139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34140   (eval $ac_try) 2>&5
34141   ac_status=$?
34142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34143   (exit $ac_status); }; }; then
34144   eval "$as_ac_var=yes"
34145 else
34146   echo "$as_me: failed program was:" >&5
34147 sed 's/^/| /' conftest.$ac_ext >&5
34148
34149 eval "$as_ac_var=no"
34150 fi
34151 rm -f conftest.err conftest.$ac_objext \
34152       conftest$ac_exeext conftest.$ac_ext
34153 fi
34154 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34155 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34156 if test `eval echo '${'$as_ac_var'}'` = yes; then
34157   cat >>confdefs.h <<_ACEOF
34158 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34159 _ACEOF
34160
34161 fi
34162 done
34163
34164
34165                         if test $ac_cv_func_sched_yield = no -a \
34166                                 $ac_cv_func_pthread_yield = no -a \
34167                                 $ac_cv_func_thr_yield = no ; then
34168                                                                 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
34169 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
34170 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
34171   echo $ECHO_N "(cached) $ECHO_C" >&6
34172 else
34173   ac_check_lib_save_LIBS=$LIBS
34174 LIBS="-lrt  $LIBS"
34175 cat >conftest.$ac_ext <<_ACEOF
34176 /* confdefs.h.  */
34177 _ACEOF
34178 cat confdefs.h >>conftest.$ac_ext
34179 cat >>conftest.$ac_ext <<_ACEOF
34180 /* end confdefs.h.  */
34181
34182 /* Override any gcc2 internal prototype to avoid an error.  */
34183 #ifdef __cplusplus
34184 extern "C"
34185 #endif
34186 /* We use char because int might match the return type of a gcc2
34187    builtin and then its argument prototype would still apply.  */
34188 char sched_yield ();
34189 int
34190 main ()
34191 {
34192 sched_yield ();
34193   ;
34194   return 0;
34195 }
34196 _ACEOF
34197 rm -f conftest.$ac_objext conftest$ac_exeext
34198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34199   (eval $ac_link) 2>conftest.er1
34200   ac_status=$?
34201   grep -v '^ *+' conftest.er1 >conftest.err
34202   rm -f conftest.er1
34203   cat conftest.err >&5
34204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34205   (exit $ac_status); } &&
34206          { ac_try='test -z "$ac_c_werror_flag"
34207                          || test ! -s conftest.err'
34208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34209   (eval $ac_try) 2>&5
34210   ac_status=$?
34211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34212   (exit $ac_status); }; } &&
34213          { ac_try='test -s conftest$ac_exeext'
34214   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34215   (eval $ac_try) 2>&5
34216   ac_status=$?
34217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34218   (exit $ac_status); }; }; then
34219   ac_cv_lib_rt_sched_yield=yes
34220 else
34221   echo "$as_me: failed program was:" >&5
34222 sed 's/^/| /' conftest.$ac_ext >&5
34223
34224 ac_cv_lib_rt_sched_yield=no
34225 fi
34226 rm -f conftest.err conftest.$ac_objext \
34227       conftest$ac_exeext conftest.$ac_ext
34228 LIBS=$ac_check_lib_save_LIBS
34229 fi
34230 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
34231 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
34232 if test $ac_cv_lib_rt_sched_yield = yes; then
34233   LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
34234
34235 cat >>confdefs.h <<\_ACEOF
34236 #define HAVE_SCHED_YIELD 1
34237 _ACEOF
34238
34239                                         ac_cv_func_sched_yield=yes
34240 else
34241   ac_cv_func_sched_yield=no
34242 fi
34243
34244                         fi
34245                         if test $ac_cv_func_sched_yield = no -a \
34246                                 $ac_cv_func_pthread_yield = no -a \
34247                                 "$ac_cv_func_thr_yield" = no ; then
34248                                 { echo "$as_me:$LINENO: WARNING: could not locate sched_yield() or pthread_yield()" >&5
34249 echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
34250                         fi
34251
34252
34253
34254 for ac_func in pthread_kill pthread_rwlock_destroy
34255 do
34256 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34257 echo "$as_me:$LINENO: checking for $ac_func" >&5
34258 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34259 if eval "test \"\${$as_ac_var+set}\" = set"; then
34260   echo $ECHO_N "(cached) $ECHO_C" >&6
34261 else
34262   cat >conftest.$ac_ext <<_ACEOF
34263 /* confdefs.h.  */
34264 _ACEOF
34265 cat confdefs.h >>conftest.$ac_ext
34266 cat >>conftest.$ac_ext <<_ACEOF
34267 /* end confdefs.h.  */
34268 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34269    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34270 #define $ac_func innocuous_$ac_func
34271
34272 /* System header to define __stub macros and hopefully few prototypes,
34273     which can conflict with char $ac_func (); below.
34274     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34275     <limits.h> exists even on freestanding compilers.  */
34276
34277 #ifdef __STDC__
34278 # include <limits.h>
34279 #else
34280 # include <assert.h>
34281 #endif
34282
34283 #undef $ac_func
34284
34285 /* Override any gcc2 internal prototype to avoid an error.  */
34286 #ifdef __cplusplus
34287 extern "C"
34288 {
34289 #endif
34290 /* We use char because int might match the return type of a gcc2
34291    builtin and then its argument prototype would still apply.  */
34292 char $ac_func ();
34293 /* The GNU C library defines this for functions which it implements
34294     to always fail with ENOSYS.  Some functions are actually named
34295     something starting with __ and the normal name is an alias.  */
34296 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34297 choke me
34298 #else
34299 char (*f) () = $ac_func;
34300 #endif
34301 #ifdef __cplusplus
34302 }
34303 #endif
34304
34305 int
34306 main ()
34307 {
34308 return f != $ac_func;
34309   ;
34310   return 0;
34311 }
34312 _ACEOF
34313 rm -f conftest.$ac_objext conftest$ac_exeext
34314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34315   (eval $ac_link) 2>conftest.er1
34316   ac_status=$?
34317   grep -v '^ *+' conftest.er1 >conftest.err
34318   rm -f conftest.er1
34319   cat conftest.err >&5
34320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34321   (exit $ac_status); } &&
34322          { ac_try='test -z "$ac_c_werror_flag"
34323                          || test ! -s conftest.err'
34324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34325   (eval $ac_try) 2>&5
34326   ac_status=$?
34327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34328   (exit $ac_status); }; } &&
34329          { ac_try='test -s conftest$ac_exeext'
34330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34331   (eval $ac_try) 2>&5
34332   ac_status=$?
34333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34334   (exit $ac_status); }; }; then
34335   eval "$as_ac_var=yes"
34336 else
34337   echo "$as_me: failed program was:" >&5
34338 sed 's/^/| /' conftest.$ac_ext >&5
34339
34340 eval "$as_ac_var=no"
34341 fi
34342 rm -f conftest.err conftest.$ac_objext \
34343       conftest$ac_exeext conftest.$ac_ext
34344 fi
34345 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34346 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34347 if test `eval echo '${'$as_ac_var'}'` = yes; then
34348   cat >>confdefs.h <<_ACEOF
34349 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34350 _ACEOF
34351
34352 fi
34353 done
34354
34355
34356                                                                         echo "$as_me:$LINENO: checking for pthread_detach with <pthread.h>" >&5
34357 echo $ECHO_N "checking for pthread_detach with <pthread.h>... $ECHO_C" >&6
34358 if test "${ol_cv_func_pthread_detach+set}" = set; then
34359   echo $ECHO_N "(cached) $ECHO_C" >&6
34360 else
34361
34362                                                                 cat >conftest.$ac_ext <<_ACEOF
34363 /* confdefs.h.  */
34364 _ACEOF
34365 cat confdefs.h >>conftest.$ac_ext
34366 cat >>conftest.$ac_ext <<_ACEOF
34367 /* end confdefs.h.  */
34368
34369 #include <pthread.h>
34370 #ifndef NULL
34371 #define NULL (void*)0
34372 #endif
34373
34374 int
34375 main ()
34376 {
34377 pthread_detach(NULL);
34378   ;
34379   return 0;
34380 }
34381 _ACEOF
34382 rm -f conftest.$ac_objext conftest$ac_exeext
34383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34384   (eval $ac_link) 2>conftest.er1
34385   ac_status=$?
34386   grep -v '^ *+' conftest.er1 >conftest.err
34387   rm -f conftest.er1
34388   cat conftest.err >&5
34389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34390   (exit $ac_status); } &&
34391          { ac_try='test -z "$ac_c_werror_flag"
34392                          || test ! -s conftest.err'
34393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34394   (eval $ac_try) 2>&5
34395   ac_status=$?
34396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34397   (exit $ac_status); }; } &&
34398          { ac_try='test -s conftest$ac_exeext'
34399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34400   (eval $ac_try) 2>&5
34401   ac_status=$?
34402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34403   (exit $ac_status); }; }; then
34404   ol_cv_func_pthread_detach=yes
34405 else
34406   echo "$as_me: failed program was:" >&5
34407 sed 's/^/| /' conftest.$ac_ext >&5
34408
34409 ol_cv_func_pthread_detach=no
34410 fi
34411 rm -f conftest.err conftest.$ac_objext \
34412       conftest$ac_exeext conftest.$ac_ext
34413
34414 fi
34415 echo "$as_me:$LINENO: result: $ol_cv_func_pthread_detach" >&5
34416 echo "${ECHO_T}$ol_cv_func_pthread_detach" >&6
34417
34418                         if test $ol_cv_func_pthread_detach = no ; then
34419                                 { { echo "$as_me:$LINENO: error: could not locate pthread_detach()" >&5
34420 echo "$as_me: error: could not locate pthread_detach()" >&2;}
34421    { (exit 1); exit 1; }; }
34422                         fi
34423
34424
34425 cat >>confdefs.h <<\_ACEOF
34426 #define HAVE_PTHREAD_DETACH 1
34427 _ACEOF
34428
34429
34430
34431
34432
34433
34434 for ac_func in \
34435                                 pthread_setconcurrency \
34436                                 pthread_getconcurrency \
34437                                 thr_setconcurrency \
34438                                 thr_getconcurrency \
34439
34440 do
34441 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34442 echo "$as_me:$LINENO: checking for $ac_func" >&5
34443 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34444 if eval "test \"\${$as_ac_var+set}\" = set"; then
34445   echo $ECHO_N "(cached) $ECHO_C" >&6
34446 else
34447   cat >conftest.$ac_ext <<_ACEOF
34448 /* confdefs.h.  */
34449 _ACEOF
34450 cat confdefs.h >>conftest.$ac_ext
34451 cat >>conftest.$ac_ext <<_ACEOF
34452 /* end confdefs.h.  */
34453 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34454    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34455 #define $ac_func innocuous_$ac_func
34456
34457 /* System header to define __stub macros and hopefully few prototypes,
34458     which can conflict with char $ac_func (); below.
34459     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34460     <limits.h> exists even on freestanding compilers.  */
34461
34462 #ifdef __STDC__
34463 # include <limits.h>
34464 #else
34465 # include <assert.h>
34466 #endif
34467
34468 #undef $ac_func
34469
34470 /* Override any gcc2 internal prototype to avoid an error.  */
34471 #ifdef __cplusplus
34472 extern "C"
34473 {
34474 #endif
34475 /* We use char because int might match the return type of a gcc2
34476    builtin and then its argument prototype would still apply.  */
34477 char $ac_func ();
34478 /* The GNU C library defines this for functions which it implements
34479     to always fail with ENOSYS.  Some functions are actually named
34480     something starting with __ and the normal name is an alias.  */
34481 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34482 choke me
34483 #else
34484 char (*f) () = $ac_func;
34485 #endif
34486 #ifdef __cplusplus
34487 }
34488 #endif
34489
34490 int
34491 main ()
34492 {
34493 return f != $ac_func;
34494   ;
34495   return 0;
34496 }
34497 _ACEOF
34498 rm -f conftest.$ac_objext conftest$ac_exeext
34499 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34500   (eval $ac_link) 2>conftest.er1
34501   ac_status=$?
34502   grep -v '^ *+' conftest.er1 >conftest.err
34503   rm -f conftest.er1
34504   cat conftest.err >&5
34505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34506   (exit $ac_status); } &&
34507          { ac_try='test -z "$ac_c_werror_flag"
34508                          || test ! -s conftest.err'
34509   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34510   (eval $ac_try) 2>&5
34511   ac_status=$?
34512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34513   (exit $ac_status); }; } &&
34514          { ac_try='test -s conftest$ac_exeext'
34515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34516   (eval $ac_try) 2>&5
34517   ac_status=$?
34518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34519   (exit $ac_status); }; }; then
34520   eval "$as_ac_var=yes"
34521 else
34522   echo "$as_me: failed program was:" >&5
34523 sed 's/^/| /' conftest.$ac_ext >&5
34524
34525 eval "$as_ac_var=no"
34526 fi
34527 rm -f conftest.err conftest.$ac_objext \
34528       conftest$ac_exeext conftest.$ac_ext
34529 fi
34530 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34531 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34532 if test `eval echo '${'$as_ac_var'}'` = yes; then
34533   cat >>confdefs.h <<_ACEOF
34534 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34535 _ACEOF
34536
34537 fi
34538 done
34539
34540
34541
34542
34543 for ac_func in pthread_kill_other_threads_np
34544 do
34545 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34546 echo "$as_me:$LINENO: checking for $ac_func" >&5
34547 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34548 if eval "test \"\${$as_ac_var+set}\" = set"; then
34549   echo $ECHO_N "(cached) $ECHO_C" >&6
34550 else
34551   cat >conftest.$ac_ext <<_ACEOF
34552 /* confdefs.h.  */
34553 _ACEOF
34554 cat confdefs.h >>conftest.$ac_ext
34555 cat >>conftest.$ac_ext <<_ACEOF
34556 /* end confdefs.h.  */
34557 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34558    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34559 #define $ac_func innocuous_$ac_func
34560
34561 /* System header to define __stub macros and hopefully few prototypes,
34562     which can conflict with char $ac_func (); below.
34563     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34564     <limits.h> exists even on freestanding compilers.  */
34565
34566 #ifdef __STDC__
34567 # include <limits.h>
34568 #else
34569 # include <assert.h>
34570 #endif
34571
34572 #undef $ac_func
34573
34574 /* Override any gcc2 internal prototype to avoid an error.  */
34575 #ifdef __cplusplus
34576 extern "C"
34577 {
34578 #endif
34579 /* We use char because int might match the return type of a gcc2
34580    builtin and then its argument prototype would still apply.  */
34581 char $ac_func ();
34582 /* The GNU C library defines this for functions which it implements
34583     to always fail with ENOSYS.  Some functions are actually named
34584     something starting with __ and the normal name is an alias.  */
34585 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34586 choke me
34587 #else
34588 char (*f) () = $ac_func;
34589 #endif
34590 #ifdef __cplusplus
34591 }
34592 #endif
34593
34594 int
34595 main ()
34596 {
34597 return f != $ac_func;
34598   ;
34599   return 0;
34600 }
34601 _ACEOF
34602 rm -f conftest.$ac_objext conftest$ac_exeext
34603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34604   (eval $ac_link) 2>conftest.er1
34605   ac_status=$?
34606   grep -v '^ *+' conftest.er1 >conftest.err
34607   rm -f conftest.er1
34608   cat conftest.err >&5
34609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34610   (exit $ac_status); } &&
34611          { ac_try='test -z "$ac_c_werror_flag"
34612                          || test ! -s conftest.err'
34613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34614   (eval $ac_try) 2>&5
34615   ac_status=$?
34616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34617   (exit $ac_status); }; } &&
34618          { ac_try='test -s conftest$ac_exeext'
34619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34620   (eval $ac_try) 2>&5
34621   ac_status=$?
34622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34623   (exit $ac_status); }; }; then
34624   eval "$as_ac_var=yes"
34625 else
34626   echo "$as_me: failed program was:" >&5
34627 sed 's/^/| /' conftest.$ac_ext >&5
34628
34629 eval "$as_ac_var=no"
34630 fi
34631 rm -f conftest.err conftest.$ac_objext \
34632       conftest$ac_exeext conftest.$ac_ext
34633 fi
34634 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34635 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34636 if test `eval echo '${'$as_ac_var'}'` = yes; then
34637   cat >>confdefs.h <<_ACEOF
34638 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34639 _ACEOF
34640
34641 fi
34642 done
34643
34644         echo "$as_me:$LINENO: checking for LinuxThreads implementation" >&5
34645 echo $ECHO_N "checking for LinuxThreads implementation... $ECHO_C" >&6
34646 if test "${ol_cv_sys_linux_threads+set}" = set; then
34647   echo $ECHO_N "(cached) $ECHO_C" >&6
34648 else
34649   ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
34650 fi
34651 echo "$as_me:$LINENO: result: $ol_cv_sys_linux_threads" >&5
34652 echo "${ECHO_T}$ol_cv_sys_linux_threads" >&6
34653
34654
34655
34656
34657         echo "$as_me:$LINENO: checking for LinuxThreads consistency" >&5
34658 echo $ECHO_N "checking for LinuxThreads consistency... $ECHO_C" >&6
34659 if test "${ol_cv_linux_threads+set}" = set; then
34660   echo $ECHO_N "(cached) $ECHO_C" >&6
34661 else
34662
34663                 if test $ol_cv_header_linux_threads = yes -a \
34664                         $ol_cv_sys_linux_threads = yes; then
34665                         ol_cv_linux_threads=yes
34666                 elif test $ol_cv_header_linux_threads = no -a \
34667                         $ol_cv_sys_linux_threads = no; then
34668                         ol_cv_linux_threads=no
34669                 else
34670                         ol_cv_linux_threads=error
34671                 fi
34672
34673 fi
34674 echo "$as_me:$LINENO: result: $ol_cv_linux_threads" >&5
34675 echo "${ECHO_T}$ol_cv_linux_threads" >&6
34676
34677
34678                         if test $ol_cv_linux_threads = error; then
34679                                 { { echo "$as_me:$LINENO: error: LinuxThreads header/library mismatch" >&5
34680 echo "$as_me: error: LinuxThreads header/library mismatch" >&2;}
34681    { (exit 1); exit 1; }; };
34682                         fi
34683
34684                         echo "$as_me:$LINENO: checking if pthread_create() works" >&5
34685 echo $ECHO_N "checking if pthread_create() works... $ECHO_C" >&6
34686 if test "${ol_cv_pthread_create_works+set}" = set; then
34687   echo $ECHO_N "(cached) $ECHO_C" >&6
34688 else
34689
34690                         if test "$cross_compiling" = yes; then
34691                                 ol_cv_pthread_create_works=yes
34692 else
34693   cat >conftest.$ac_ext <<_ACEOF
34694 /* confdefs.h.  */
34695 _ACEOF
34696 cat confdefs.h >>conftest.$ac_ext
34697 cat >>conftest.$ac_ext <<_ACEOF
34698 /* end confdefs.h.  */
34699 /* pthread test headers */
34700 #include <pthread.h>
34701 #if HAVE_PTHREADS < 7
34702 #include <errno.h>
34703 #endif
34704 #ifndef NULL
34705 #define NULL (void*)0
34706 #endif
34707
34708 static void *task(p)
34709         void *p;
34710 {
34711         return (void *) (p == NULL);
34712 }
34713
34714
34715 int main(argc, argv)
34716         int argc;
34717         char **argv;
34718 {
34719
34720         /* pthread test function */
34721 #ifndef PTHREAD_CREATE_DETACHED
34722 #define PTHREAD_CREATE_DETACHED 1
34723 #endif
34724         pthread_t t;
34725         int status;
34726         int detach = PTHREAD_CREATE_DETACHED;
34727
34728 #if HAVE_PTHREADS > 4
34729         /* Final pthreads */
34730         pthread_attr_t attr;
34731
34732         status = pthread_attr_init(&attr);
34733         if( status ) return status;
34734
34735 #if HAVE_PTHREADS < 7
34736         status = pthread_attr_setdetachstate(&attr, &detach);
34737         if( status < 0 ) status = errno;
34738 #else
34739         status = pthread_attr_setdetachstate(&attr, detach);
34740 #endif
34741         if( status ) return status;
34742         status = pthread_create( &t, &attr, task, NULL );
34743 #if HAVE_PTHREADS < 7
34744         if( status < 0 ) status = errno;
34745 #endif
34746         if( status ) return status;
34747 #else
34748         /* Draft 4 pthreads */
34749         status = pthread_create( &t, pthread_attr_default, task, NULL );
34750         if( status ) return errno;
34751
34752         /* give thread a chance to complete */
34753         /* it should remain joinable and hence detachable */
34754         sleep( 1 );
34755
34756         status = pthread_detach( &t );
34757         if( status ) return errno;
34758 #endif
34759
34760 #ifdef HAVE_LINUX_THREADS
34761         pthread_kill_other_threads_np();
34762 #endif
34763
34764         return 0;
34765
34766 }
34767
34768 _ACEOF
34769 rm -f conftest$ac_exeext
34770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34771   (eval $ac_link) 2>&5
34772   ac_status=$?
34773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34774   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34776   (eval $ac_try) 2>&5
34777   ac_status=$?
34778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34779   (exit $ac_status); }; }; then
34780   ol_cv_pthread_create_works=yes
34781 else
34782   echo "$as_me: program exited with status $ac_status" >&5
34783 echo "$as_me: failed program was:" >&5
34784 sed 's/^/| /' conftest.$ac_ext >&5
34785
34786 ( exit $ac_status )
34787 ol_cv_pthread_create_works=no
34788 fi
34789 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34790 fi
34791 fi
34792 echo "$as_me:$LINENO: result: $ol_cv_pthread_create_works" >&5
34793 echo "${ECHO_T}$ol_cv_pthread_create_works" >&6
34794
34795                         if test $ol_cv_pthread_create_works = no ; then
34796                                 { { echo "$as_me:$LINENO: error: pthread_create is not usable, check environment settings" >&5
34797 echo "$as_me: error: pthread_create is not usable, check environment settings" >&2;}
34798    { (exit 1); exit 1; }; }
34799                         fi
34800
34801                                                 if test $ol_with_yielding_select = auto ; then
34802                                 echo "$as_me:$LINENO: checking if select yields when using pthreads" >&5
34803 echo $ECHO_N "checking if select yields when using pthreads... $ECHO_C" >&6
34804 if test "${ol_cv_pthread_select_yields+set}" = set; then
34805   echo $ECHO_N "(cached) $ECHO_C" >&6
34806 else
34807
34808                                 if test "$cross_compiling" = yes; then
34809   ol_cv_pthread_select_yields=cross
34810 else
34811   cat >conftest.$ac_ext <<_ACEOF
34812 /* confdefs.h.  */
34813 _ACEOF
34814 cat confdefs.h >>conftest.$ac_ext
34815 cat >>conftest.$ac_ext <<_ACEOF
34816 /* end confdefs.h.  */
34817
34818 #include <sys/types.h>
34819 #include <sys/time.h>
34820 #include <unistd.h>
34821 #include <pthread.h>
34822 #ifndef NULL
34823 #define NULL (void*) 0
34824 #endif
34825
34826 static int fildes[2];
34827
34828 static void *task(p)
34829         void *p;
34830 {
34831         int i;
34832         struct timeval tv;
34833
34834         fd_set rfds;
34835
34836         tv.tv_sec=10;
34837         tv.tv_usec=0;
34838
34839         FD_ZERO(&rfds);
34840         FD_SET(fildes[0], &rfds);
34841
34842         /* we're not interested in any fds */
34843         i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
34844
34845         if(i < 0) {
34846                 perror("select");
34847                 exit(10);
34848         }
34849
34850         exit(0); /* if we exit here, the select blocked the whole process */
34851 }
34852
34853 int main(argc, argv)
34854         int argc;
34855         char **argv;
34856 {
34857         pthread_t t;
34858
34859         /* create a pipe to select */
34860         if(pipe(&fildes[0])) {
34861                 perror("select");
34862                 exit(1);
34863         }
34864
34865 #ifdef HAVE_PTHREAD_SETCONCURRENCY
34866         (void) pthread_setconcurrency(2);
34867 #else
34868 #ifdef HAVE_THR_SETCONCURRENCY
34869         /* Set Solaris LWP concurrency to 2 */
34870         thr_setconcurrency(2);
34871 #endif
34872 #endif
34873
34874 #if HAVE_PTHREADS < 6
34875         pthread_create(&t, pthread_attr_default, task, NULL);
34876 #else
34877         pthread_create(&t, NULL, task, NULL);
34878 #endif
34879
34880         /* make sure task runs first */
34881 #if HAVE_THR_YIELD
34882         thr_yield();
34883 #elif defined( HAVE_SCHED_YIELD )
34884         sched_yield();
34885 #elif defined( HAVE_PTHREAD_YIELD )
34886         pthread_yield();
34887 #endif
34888
34889         exit(2);
34890 }
34891 _ACEOF
34892 rm -f conftest$ac_exeext
34893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34894   (eval $ac_link) 2>&5
34895   ac_status=$?
34896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34897   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34899   (eval $ac_try) 2>&5
34900   ac_status=$?
34901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34902   (exit $ac_status); }; }; then
34903   ol_cv_pthread_select_yields=no
34904 else
34905   echo "$as_me: program exited with status $ac_status" >&5
34906 echo "$as_me: failed program was:" >&5
34907 sed 's/^/| /' conftest.$ac_ext >&5
34908
34909 ( exit $ac_status )
34910 ol_cv_pthread_select_yields=yes
34911 fi
34912 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34913 fi
34914 fi
34915 echo "$as_me:$LINENO: result: $ol_cv_pthread_select_yields" >&5
34916 echo "${ECHO_T}$ol_cv_pthread_select_yields" >&6
34917
34918                                 if test $ol_cv_pthread_select_yields = cross ; then
34919                                         { { echo "$as_me:$LINENO: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&5
34920 echo "$as_me: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&2;}
34921    { (exit 1); exit 1; }; }
34922                                 fi
34923
34924                                 if test $ol_cv_pthread_select_yields = yes ; then
34925                                         ol_with_yielding_select=yes
34926                                 fi
34927                         fi
34928
34929                                                 CPPFLAGS="$save_CPPFLAGS"
34930                         LIBS="$save_LIBS"
34931                 else
34932                         { { echo "$as_me:$LINENO: error: could not locate usable POSIX Threads" >&5
34933 echo "$as_me: error: could not locate usable POSIX Threads" >&2;}
34934    { (exit 1); exit 1; }; }
34935                 fi
34936         fi
34937
34938         if test $ol_with_threads = posix ; then
34939                 { { echo "$as_me:$LINENO: error: could not locate POSIX Threads" >&5
34940 echo "$as_me: error: could not locate POSIX Threads" >&2;}
34941    { (exit 1); exit 1; }; }
34942         fi
34943 fi
34944
34945 if test $ol_with_threads = auto -o $ol_with_threads = yes \
34946         -o $ol_with_threads = mach ; then
34947
34948
34949
34950 for ac_header in mach/cthreads.h cthreads.h
34951 do
34952 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34953 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34954   echo "$as_me:$LINENO: checking for $ac_header" >&5
34955 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34956 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34957   echo $ECHO_N "(cached) $ECHO_C" >&6
34958 fi
34959 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34960 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34961 else
34962   # Is the header compilable?
34963 echo "$as_me:$LINENO: checking $ac_header usability" >&5
34964 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34965 cat >conftest.$ac_ext <<_ACEOF
34966 /* confdefs.h.  */
34967 _ACEOF
34968 cat confdefs.h >>conftest.$ac_ext
34969 cat >>conftest.$ac_ext <<_ACEOF
34970 /* end confdefs.h.  */
34971 $ac_includes_default
34972 #include <$ac_header>
34973 _ACEOF
34974 rm -f conftest.$ac_objext
34975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34976   (eval $ac_compile) 2>conftest.er1
34977   ac_status=$?
34978   grep -v '^ *+' conftest.er1 >conftest.err
34979   rm -f conftest.er1
34980   cat conftest.err >&5
34981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34982   (exit $ac_status); } &&
34983          { ac_try='test -z "$ac_c_werror_flag"
34984                          || test ! -s conftest.err'
34985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34986   (eval $ac_try) 2>&5
34987   ac_status=$?
34988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34989   (exit $ac_status); }; } &&
34990          { ac_try='test -s conftest.$ac_objext'
34991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34992   (eval $ac_try) 2>&5
34993   ac_status=$?
34994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34995   (exit $ac_status); }; }; then
34996   ac_header_compiler=yes
34997 else
34998   echo "$as_me: failed program was:" >&5
34999 sed 's/^/| /' conftest.$ac_ext >&5
35000
35001 ac_header_compiler=no
35002 fi
35003 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35004 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35005 echo "${ECHO_T}$ac_header_compiler" >&6
35006
35007 # Is the header present?
35008 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35009 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35010 cat >conftest.$ac_ext <<_ACEOF
35011 /* confdefs.h.  */
35012 _ACEOF
35013 cat confdefs.h >>conftest.$ac_ext
35014 cat >>conftest.$ac_ext <<_ACEOF
35015 /* end confdefs.h.  */
35016 #include <$ac_header>
35017 _ACEOF
35018 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35019   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35020   ac_status=$?
35021   grep -v '^ *+' conftest.er1 >conftest.err
35022   rm -f conftest.er1
35023   cat conftest.err >&5
35024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35025   (exit $ac_status); } >/dev/null; then
35026   if test -s conftest.err; then
35027     ac_cpp_err=$ac_c_preproc_warn_flag
35028     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35029   else
35030     ac_cpp_err=
35031   fi
35032 else
35033   ac_cpp_err=yes
35034 fi
35035 if test -z "$ac_cpp_err"; then
35036   ac_header_preproc=yes
35037 else
35038   echo "$as_me: failed program was:" >&5
35039 sed 's/^/| /' conftest.$ac_ext >&5
35040
35041   ac_header_preproc=no
35042 fi
35043 rm -f conftest.err conftest.$ac_ext
35044 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35045 echo "${ECHO_T}$ac_header_preproc" >&6
35046
35047 # So?  What about this header?
35048 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35049   yes:no: )
35050     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35051 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35052     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35053 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35054     ac_header_preproc=yes
35055     ;;
35056   no:yes:* )
35057     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35058 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35059     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35060 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35061     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35062 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35063     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35064 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35065     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35066 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35067     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35068 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35069     (
35070       cat <<\_ASBOX
35071 ## ------------------------------------------ ##
35072 ## Report this to the AC_PACKAGE_NAME lists.  ##
35073 ## ------------------------------------------ ##
35074 _ASBOX
35075     ) |
35076       sed "s/^/$as_me: WARNING:     /" >&2
35077     ;;
35078 esac
35079 echo "$as_me:$LINENO: checking for $ac_header" >&5
35080 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35081 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35082   echo $ECHO_N "(cached) $ECHO_C" >&6
35083 else
35084   eval "$as_ac_Header=\$ac_header_preproc"
35085 fi
35086 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35087 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35088
35089 fi
35090 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35091   cat >>confdefs.h <<_ACEOF
35092 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35093 _ACEOF
35094
35095 fi
35096
35097 done
35098
35099         if test $ac_cv_header_mach_cthreads_h = yes ; then
35100                 ol_with_threads=found
35101
35102                                 echo "$as_me:$LINENO: checking for cthread_fork" >&5
35103 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
35104 if test "${ac_cv_func_cthread_fork+set}" = set; then
35105   echo $ECHO_N "(cached) $ECHO_C" >&6
35106 else
35107   cat >conftest.$ac_ext <<_ACEOF
35108 /* confdefs.h.  */
35109 _ACEOF
35110 cat confdefs.h >>conftest.$ac_ext
35111 cat >>conftest.$ac_ext <<_ACEOF
35112 /* end confdefs.h.  */
35113 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
35114    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35115 #define cthread_fork innocuous_cthread_fork
35116
35117 /* System header to define __stub macros and hopefully few prototypes,
35118     which can conflict with char cthread_fork (); below.
35119     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35120     <limits.h> exists even on freestanding compilers.  */
35121
35122 #ifdef __STDC__
35123 # include <limits.h>
35124 #else
35125 # include <assert.h>
35126 #endif
35127
35128 #undef cthread_fork
35129
35130 /* Override any gcc2 internal prototype to avoid an error.  */
35131 #ifdef __cplusplus
35132 extern "C"
35133 {
35134 #endif
35135 /* We use char because int might match the return type of a gcc2
35136    builtin and then its argument prototype would still apply.  */
35137 char cthread_fork ();
35138 /* The GNU C library defines this for functions which it implements
35139     to always fail with ENOSYS.  Some functions are actually named
35140     something starting with __ and the normal name is an alias.  */
35141 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
35142 choke me
35143 #else
35144 char (*f) () = cthread_fork;
35145 #endif
35146 #ifdef __cplusplus
35147 }
35148 #endif
35149
35150 int
35151 main ()
35152 {
35153 return f != cthread_fork;
35154   ;
35155   return 0;
35156 }
35157 _ACEOF
35158 rm -f conftest.$ac_objext conftest$ac_exeext
35159 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35160   (eval $ac_link) 2>conftest.er1
35161   ac_status=$?
35162   grep -v '^ *+' conftest.er1 >conftest.err
35163   rm -f conftest.er1
35164   cat conftest.err >&5
35165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35166   (exit $ac_status); } &&
35167          { ac_try='test -z "$ac_c_werror_flag"
35168                          || test ! -s conftest.err'
35169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35170   (eval $ac_try) 2>&5
35171   ac_status=$?
35172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35173   (exit $ac_status); }; } &&
35174          { ac_try='test -s conftest$ac_exeext'
35175   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35176   (eval $ac_try) 2>&5
35177   ac_status=$?
35178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35179   (exit $ac_status); }; }; then
35180   ac_cv_func_cthread_fork=yes
35181 else
35182   echo "$as_me: failed program was:" >&5
35183 sed 's/^/| /' conftest.$ac_ext >&5
35184
35185 ac_cv_func_cthread_fork=no
35186 fi
35187 rm -f conftest.err conftest.$ac_objext \
35188       conftest$ac_exeext conftest.$ac_ext
35189 fi
35190 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
35191 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
35192 if test $ac_cv_func_cthread_fork = yes; then
35193   ol_link_threads=yes
35194 fi
35195
35196
35197                 if test $ol_link_threads = no ; then
35198                                                                         echo "$as_me:$LINENO: checking for cthread_fork with -all_load" >&5
35199 echo $ECHO_N "checking for cthread_fork with -all_load... $ECHO_C" >&6
35200 if test "${ol_cv_cthread_all_load+set}" = set; then
35201   echo $ECHO_N "(cached) $ECHO_C" >&6
35202 else
35203
35204                                                                 save_LIBS="$LIBS"
35205                                 LIBS="-all_load $LIBS"
35206                                 cat >conftest.$ac_ext <<_ACEOF
35207 /* confdefs.h.  */
35208 _ACEOF
35209 cat confdefs.h >>conftest.$ac_ext
35210 cat >>conftest.$ac_ext <<_ACEOF
35211 /* end confdefs.h.  */
35212 #include <mach/cthreads.h>
35213 int
35214 main ()
35215 {
35216
35217                                         cthread_fork((void *)0, (void *)0);
35218
35219   ;
35220   return 0;
35221 }
35222 _ACEOF
35223 rm -f conftest.$ac_objext conftest$ac_exeext
35224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35225   (eval $ac_link) 2>conftest.er1
35226   ac_status=$?
35227   grep -v '^ *+' conftest.er1 >conftest.err
35228   rm -f conftest.er1
35229   cat conftest.err >&5
35230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35231   (exit $ac_status); } &&
35232          { ac_try='test -z "$ac_c_werror_flag"
35233                          || test ! -s conftest.err'
35234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35235   (eval $ac_try) 2>&5
35236   ac_status=$?
35237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35238   (exit $ac_status); }; } &&
35239          { ac_try='test -s conftest$ac_exeext'
35240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35241   (eval $ac_try) 2>&5
35242   ac_status=$?
35243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35244   (exit $ac_status); }; }; then
35245   ol_cv_cthread_all_load=yes
35246 else
35247   echo "$as_me: failed program was:" >&5
35248 sed 's/^/| /' conftest.$ac_ext >&5
35249
35250 ol_cv_cthread_all_load=no
35251 fi
35252 rm -f conftest.err conftest.$ac_objext \
35253       conftest$ac_exeext conftest.$ac_ext
35254                                                                 LIBS="$save_LIBS"
35255
35256 fi
35257 echo "$as_me:$LINENO: result: $ol_cv_cthread_all_load" >&5
35258 echo "${ECHO_T}$ol_cv_cthread_all_load" >&6
35259
35260                         if test $ol_cv_cthread_all_load = yes ; then
35261                                 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
35262                                 ol_link_threads=mach
35263                                 ol_with_threads=found
35264                         fi
35265                 fi
35266
35267         elif test $ac_cv_header_cthreads_h = yes ; then
35268
35269                 ol_with_threads=found
35270
35271                                 save_LIBS="$LIBS"
35272                 LIBS="$LIBS -lthreads"
35273                 echo "$as_me:$LINENO: checking for cthread_fork" >&5
35274 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
35275 if test "${ac_cv_func_cthread_fork+set}" = set; then
35276   echo $ECHO_N "(cached) $ECHO_C" >&6
35277 else
35278   cat >conftest.$ac_ext <<_ACEOF
35279 /* confdefs.h.  */
35280 _ACEOF
35281 cat confdefs.h >>conftest.$ac_ext
35282 cat >>conftest.$ac_ext <<_ACEOF
35283 /* end confdefs.h.  */
35284 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
35285    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35286 #define cthread_fork innocuous_cthread_fork
35287
35288 /* System header to define __stub macros and hopefully few prototypes,
35289     which can conflict with char cthread_fork (); below.
35290     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35291     <limits.h> exists even on freestanding compilers.  */
35292
35293 #ifdef __STDC__
35294 # include <limits.h>
35295 #else
35296 # include <assert.h>
35297 #endif
35298
35299 #undef cthread_fork
35300
35301 /* Override any gcc2 internal prototype to avoid an error.  */
35302 #ifdef __cplusplus
35303 extern "C"
35304 {
35305 #endif
35306 /* We use char because int might match the return type of a gcc2
35307    builtin and then its argument prototype would still apply.  */
35308 char cthread_fork ();
35309 /* The GNU C library defines this for functions which it implements
35310     to always fail with ENOSYS.  Some functions are actually named
35311     something starting with __ and the normal name is an alias.  */
35312 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
35313 choke me
35314 #else
35315 char (*f) () = cthread_fork;
35316 #endif
35317 #ifdef __cplusplus
35318 }
35319 #endif
35320
35321 int
35322 main ()
35323 {
35324 return f != cthread_fork;
35325   ;
35326   return 0;
35327 }
35328 _ACEOF
35329 rm -f conftest.$ac_objext conftest$ac_exeext
35330 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35331   (eval $ac_link) 2>conftest.er1
35332   ac_status=$?
35333   grep -v '^ *+' conftest.er1 >conftest.err
35334   rm -f conftest.er1
35335   cat conftest.err >&5
35336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35337   (exit $ac_status); } &&
35338          { ac_try='test -z "$ac_c_werror_flag"
35339                          || test ! -s conftest.err'
35340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35341   (eval $ac_try) 2>&5
35342   ac_status=$?
35343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35344   (exit $ac_status); }; } &&
35345          { ac_try='test -s conftest$ac_exeext'
35346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35347   (eval $ac_try) 2>&5
35348   ac_status=$?
35349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35350   (exit $ac_status); }; }; then
35351   ac_cv_func_cthread_fork=yes
35352 else
35353   echo "$as_me: failed program was:" >&5
35354 sed 's/^/| /' conftest.$ac_ext >&5
35355
35356 ac_cv_func_cthread_fork=no
35357 fi
35358 rm -f conftest.err conftest.$ac_objext \
35359       conftest$ac_exeext conftest.$ac_ext
35360 fi
35361 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
35362 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
35363 if test $ac_cv_func_cthread_fork = yes; then
35364   ol_link_threads=yes
35365 fi
35366
35367                 LIBS="$save_LIBS"
35368
35369                 if test $ol_link_threads = yes ; then
35370                         LTHREAD_LIBS="-lthreads"
35371                         ol_link_threads=mach
35372                         ol_with_threads=found
35373                 else
35374                         { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
35375 echo "$as_me: error: could not link with Mach CThreads" >&2;}
35376    { (exit 1); exit 1; }; }
35377                 fi
35378
35379         elif test $ol_with_threads = mach ; then
35380                 { { echo "$as_me:$LINENO: error: could not locate Mach CThreads" >&5
35381 echo "$as_me: error: could not locate Mach CThreads" >&2;}
35382    { (exit 1); exit 1; }; }
35383         fi
35384
35385         if test $ol_link_threads = mach ; then
35386
35387 cat >>confdefs.h <<\_ACEOF
35388 #define HAVE_MACH_CTHREADS 1
35389 _ACEOF
35390
35391         elif test $ol_with_threads = found ; then
35392                 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
35393 echo "$as_me: error: could not link with Mach CThreads" >&2;}
35394    { (exit 1); exit 1; }; }
35395         fi
35396 fi
35397
35398 if test $ol_with_threads = auto -o $ol_with_threads = yes \
35399         -o $ol_with_threads = pth ; then
35400
35401
35402 for ac_header in pth.h
35403 do
35404 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35405 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35406   echo "$as_me:$LINENO: checking for $ac_header" >&5
35407 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35408 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35409   echo $ECHO_N "(cached) $ECHO_C" >&6
35410 fi
35411 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35412 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35413 else
35414   # Is the header compilable?
35415 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35416 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35417 cat >conftest.$ac_ext <<_ACEOF
35418 /* confdefs.h.  */
35419 _ACEOF
35420 cat confdefs.h >>conftest.$ac_ext
35421 cat >>conftest.$ac_ext <<_ACEOF
35422 /* end confdefs.h.  */
35423 $ac_includes_default
35424 #include <$ac_header>
35425 _ACEOF
35426 rm -f conftest.$ac_objext
35427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35428   (eval $ac_compile) 2>conftest.er1
35429   ac_status=$?
35430   grep -v '^ *+' conftest.er1 >conftest.err
35431   rm -f conftest.er1
35432   cat conftest.err >&5
35433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35434   (exit $ac_status); } &&
35435          { ac_try='test -z "$ac_c_werror_flag"
35436                          || test ! -s conftest.err'
35437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35438   (eval $ac_try) 2>&5
35439   ac_status=$?
35440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35441   (exit $ac_status); }; } &&
35442          { ac_try='test -s conftest.$ac_objext'
35443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35444   (eval $ac_try) 2>&5
35445   ac_status=$?
35446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35447   (exit $ac_status); }; }; then
35448   ac_header_compiler=yes
35449 else
35450   echo "$as_me: failed program was:" >&5
35451 sed 's/^/| /' conftest.$ac_ext >&5
35452
35453 ac_header_compiler=no
35454 fi
35455 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35456 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35457 echo "${ECHO_T}$ac_header_compiler" >&6
35458
35459 # Is the header present?
35460 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35461 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35462 cat >conftest.$ac_ext <<_ACEOF
35463 /* confdefs.h.  */
35464 _ACEOF
35465 cat confdefs.h >>conftest.$ac_ext
35466 cat >>conftest.$ac_ext <<_ACEOF
35467 /* end confdefs.h.  */
35468 #include <$ac_header>
35469 _ACEOF
35470 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35471   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35472   ac_status=$?
35473   grep -v '^ *+' conftest.er1 >conftest.err
35474   rm -f conftest.er1
35475   cat conftest.err >&5
35476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35477   (exit $ac_status); } >/dev/null; then
35478   if test -s conftest.err; then
35479     ac_cpp_err=$ac_c_preproc_warn_flag
35480     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35481   else
35482     ac_cpp_err=
35483   fi
35484 else
35485   ac_cpp_err=yes
35486 fi
35487 if test -z "$ac_cpp_err"; then
35488   ac_header_preproc=yes
35489 else
35490   echo "$as_me: failed program was:" >&5
35491 sed 's/^/| /' conftest.$ac_ext >&5
35492
35493   ac_header_preproc=no
35494 fi
35495 rm -f conftest.err conftest.$ac_ext
35496 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35497 echo "${ECHO_T}$ac_header_preproc" >&6
35498
35499 # So?  What about this header?
35500 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35501   yes:no: )
35502     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35503 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35504     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35505 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35506     ac_header_preproc=yes
35507     ;;
35508   no:yes:* )
35509     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35510 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35511     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35512 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35513     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35514 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35515     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35516 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35517     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35518 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35519     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35520 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35521     (
35522       cat <<\_ASBOX
35523 ## ------------------------------------------ ##
35524 ## Report this to the AC_PACKAGE_NAME lists.  ##
35525 ## ------------------------------------------ ##
35526 _ASBOX
35527     ) |
35528       sed "s/^/$as_me: WARNING:     /" >&2
35529     ;;
35530 esac
35531 echo "$as_me:$LINENO: checking for $ac_header" >&5
35532 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35533 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35534   echo $ECHO_N "(cached) $ECHO_C" >&6
35535 else
35536   eval "$as_ac_Header=\$ac_header_preproc"
35537 fi
35538 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35539 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35540
35541 fi
35542 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35543   cat >>confdefs.h <<_ACEOF
35544 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35545 _ACEOF
35546
35547 fi
35548
35549 done
35550
35551
35552         if test $ac_cv_header_pth_h = yes ; then
35553                 echo "$as_me:$LINENO: checking for pth_version in -lpth" >&5
35554 echo $ECHO_N "checking for pth_version in -lpth... $ECHO_C" >&6
35555 if test "${ac_cv_lib_pth_pth_version+set}" = set; then
35556   echo $ECHO_N "(cached) $ECHO_C" >&6
35557 else
35558   ac_check_lib_save_LIBS=$LIBS
35559 LIBS="-lpth  $LIBS"
35560 cat >conftest.$ac_ext <<_ACEOF
35561 /* confdefs.h.  */
35562 _ACEOF
35563 cat confdefs.h >>conftest.$ac_ext
35564 cat >>conftest.$ac_ext <<_ACEOF
35565 /* end confdefs.h.  */
35566
35567 /* Override any gcc2 internal prototype to avoid an error.  */
35568 #ifdef __cplusplus
35569 extern "C"
35570 #endif
35571 /* We use char because int might match the return type of a gcc2
35572    builtin and then its argument prototype would still apply.  */
35573 char pth_version ();
35574 int
35575 main ()
35576 {
35577 pth_version ();
35578   ;
35579   return 0;
35580 }
35581 _ACEOF
35582 rm -f conftest.$ac_objext conftest$ac_exeext
35583 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35584   (eval $ac_link) 2>conftest.er1
35585   ac_status=$?
35586   grep -v '^ *+' conftest.er1 >conftest.err
35587   rm -f conftest.er1
35588   cat conftest.err >&5
35589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35590   (exit $ac_status); } &&
35591          { ac_try='test -z "$ac_c_werror_flag"
35592                          || test ! -s conftest.err'
35593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35594   (eval $ac_try) 2>&5
35595   ac_status=$?
35596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35597   (exit $ac_status); }; } &&
35598          { ac_try='test -s conftest$ac_exeext'
35599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35600   (eval $ac_try) 2>&5
35601   ac_status=$?
35602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35603   (exit $ac_status); }; }; then
35604   ac_cv_lib_pth_pth_version=yes
35605 else
35606   echo "$as_me: failed program was:" >&5
35607 sed 's/^/| /' conftest.$ac_ext >&5
35608
35609 ac_cv_lib_pth_pth_version=no
35610 fi
35611 rm -f conftest.err conftest.$ac_objext \
35612       conftest$ac_exeext conftest.$ac_ext
35613 LIBS=$ac_check_lib_save_LIBS
35614 fi
35615 echo "$as_me:$LINENO: result: $ac_cv_lib_pth_pth_version" >&5
35616 echo "${ECHO_T}$ac_cv_lib_pth_pth_version" >&6
35617 if test $ac_cv_lib_pth_pth_version = yes; then
35618   have_pth=yes
35619 else
35620   have_pth=no
35621 fi
35622
35623
35624                 if test $have_pth = yes ; then
35625
35626 cat >>confdefs.h <<\_ACEOF
35627 #define HAVE_GNU_PTH 1
35628 _ACEOF
35629
35630                         LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
35631                         ol_link_threads=pth
35632                         ol_with_threads=found
35633
35634                         if test $ol_with_yielding_select = auto ; then
35635                                 ol_with_yielding_select=yes
35636                         fi
35637                 fi
35638         fi
35639 fi
35640
35641 if test $ol_with_threads = auto -o $ol_with_threads = yes \
35642         -o $ol_with_threads = lwp ; then
35643
35644
35645
35646 for ac_header in thread.h synch.h
35647 do
35648 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35649 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35650   echo "$as_me:$LINENO: checking for $ac_header" >&5
35651 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35652 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35653   echo $ECHO_N "(cached) $ECHO_C" >&6
35654 fi
35655 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35656 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35657 else
35658   # Is the header compilable?
35659 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35660 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35661 cat >conftest.$ac_ext <<_ACEOF
35662 /* confdefs.h.  */
35663 _ACEOF
35664 cat confdefs.h >>conftest.$ac_ext
35665 cat >>conftest.$ac_ext <<_ACEOF
35666 /* end confdefs.h.  */
35667 $ac_includes_default
35668 #include <$ac_header>
35669 _ACEOF
35670 rm -f conftest.$ac_objext
35671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35672   (eval $ac_compile) 2>conftest.er1
35673   ac_status=$?
35674   grep -v '^ *+' conftest.er1 >conftest.err
35675   rm -f conftest.er1
35676   cat conftest.err >&5
35677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35678   (exit $ac_status); } &&
35679          { ac_try='test -z "$ac_c_werror_flag"
35680                          || test ! -s conftest.err'
35681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35682   (eval $ac_try) 2>&5
35683   ac_status=$?
35684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35685   (exit $ac_status); }; } &&
35686          { ac_try='test -s conftest.$ac_objext'
35687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35688   (eval $ac_try) 2>&5
35689   ac_status=$?
35690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35691   (exit $ac_status); }; }; then
35692   ac_header_compiler=yes
35693 else
35694   echo "$as_me: failed program was:" >&5
35695 sed 's/^/| /' conftest.$ac_ext >&5
35696
35697 ac_header_compiler=no
35698 fi
35699 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35700 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35701 echo "${ECHO_T}$ac_header_compiler" >&6
35702
35703 # Is the header present?
35704 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35705 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35706 cat >conftest.$ac_ext <<_ACEOF
35707 /* confdefs.h.  */
35708 _ACEOF
35709 cat confdefs.h >>conftest.$ac_ext
35710 cat >>conftest.$ac_ext <<_ACEOF
35711 /* end confdefs.h.  */
35712 #include <$ac_header>
35713 _ACEOF
35714 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35715   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35716   ac_status=$?
35717   grep -v '^ *+' conftest.er1 >conftest.err
35718   rm -f conftest.er1
35719   cat conftest.err >&5
35720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35721   (exit $ac_status); } >/dev/null; then
35722   if test -s conftest.err; then
35723     ac_cpp_err=$ac_c_preproc_warn_flag
35724     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35725   else
35726     ac_cpp_err=
35727   fi
35728 else
35729   ac_cpp_err=yes
35730 fi
35731 if test -z "$ac_cpp_err"; then
35732   ac_header_preproc=yes
35733 else
35734   echo "$as_me: failed program was:" >&5
35735 sed 's/^/| /' conftest.$ac_ext >&5
35736
35737   ac_header_preproc=no
35738 fi
35739 rm -f conftest.err conftest.$ac_ext
35740 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35741 echo "${ECHO_T}$ac_header_preproc" >&6
35742
35743 # So?  What about this header?
35744 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35745   yes:no: )
35746     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35747 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35748     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35749 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35750     ac_header_preproc=yes
35751     ;;
35752   no:yes:* )
35753     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35754 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35755     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35756 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35757     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35758 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35759     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35760 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35761     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35762 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35763     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35764 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35765     (
35766       cat <<\_ASBOX
35767 ## ------------------------------------------ ##
35768 ## Report this to the AC_PACKAGE_NAME lists.  ##
35769 ## ------------------------------------------ ##
35770 _ASBOX
35771     ) |
35772       sed "s/^/$as_me: WARNING:     /" >&2
35773     ;;
35774 esac
35775 echo "$as_me:$LINENO: checking for $ac_header" >&5
35776 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35777 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35778   echo $ECHO_N "(cached) $ECHO_C" >&6
35779 else
35780   eval "$as_ac_Header=\$ac_header_preproc"
35781 fi
35782 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35783 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35784
35785 fi
35786 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35787   cat >>confdefs.h <<_ACEOF
35788 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35789 _ACEOF
35790
35791 fi
35792
35793 done
35794
35795         if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
35796                 echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
35797 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6
35798 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
35799   echo $ECHO_N "(cached) $ECHO_C" >&6
35800 else
35801   ac_check_lib_save_LIBS=$LIBS
35802 LIBS="-lthread  $LIBS"
35803 cat >conftest.$ac_ext <<_ACEOF
35804 /* confdefs.h.  */
35805 _ACEOF
35806 cat confdefs.h >>conftest.$ac_ext
35807 cat >>conftest.$ac_ext <<_ACEOF
35808 /* end confdefs.h.  */
35809
35810 /* Override any gcc2 internal prototype to avoid an error.  */
35811 #ifdef __cplusplus
35812 extern "C"
35813 #endif
35814 /* We use char because int might match the return type of a gcc2
35815    builtin and then its argument prototype would still apply.  */
35816 char thr_create ();
35817 int
35818 main ()
35819 {
35820 thr_create ();
35821   ;
35822   return 0;
35823 }
35824 _ACEOF
35825 rm -f conftest.$ac_objext conftest$ac_exeext
35826 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35827   (eval $ac_link) 2>conftest.er1
35828   ac_status=$?
35829   grep -v '^ *+' conftest.er1 >conftest.err
35830   rm -f conftest.er1
35831   cat conftest.err >&5
35832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35833   (exit $ac_status); } &&
35834          { ac_try='test -z "$ac_c_werror_flag"
35835                          || test ! -s conftest.err'
35836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35837   (eval $ac_try) 2>&5
35838   ac_status=$?
35839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35840   (exit $ac_status); }; } &&
35841          { ac_try='test -s conftest$ac_exeext'
35842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35843   (eval $ac_try) 2>&5
35844   ac_status=$?
35845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35846   (exit $ac_status); }; }; then
35847   ac_cv_lib_thread_thr_create=yes
35848 else
35849   echo "$as_me: failed program was:" >&5
35850 sed 's/^/| /' conftest.$ac_ext >&5
35851
35852 ac_cv_lib_thread_thr_create=no
35853 fi
35854 rm -f conftest.err conftest.$ac_objext \
35855       conftest$ac_exeext conftest.$ac_ext
35856 LIBS=$ac_check_lib_save_LIBS
35857 fi
35858 echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
35859 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6
35860 if test $ac_cv_lib_thread_thr_create = yes; then
35861   have_thr=yes
35862 else
35863   have_thr=no
35864 fi
35865
35866
35867                 if test $have_thr = yes ; then
35868
35869 cat >>confdefs.h <<\_ACEOF
35870 #define HAVE_THR 1
35871 _ACEOF
35872
35873                         LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
35874                         ol_link_threads=thr
35875
35876                         if test $ol_with_yielding_select = auto ; then
35877                                 ol_with_yielding_select=yes
35878                         fi
35879
35880
35881
35882 for ac_func in \
35883                                 thr_setconcurrency \
35884                                 thr_getconcurrency \
35885
35886 do
35887 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35888 echo "$as_me:$LINENO: checking for $ac_func" >&5
35889 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35890 if eval "test \"\${$as_ac_var+set}\" = set"; then
35891   echo $ECHO_N "(cached) $ECHO_C" >&6
35892 else
35893   cat >conftest.$ac_ext <<_ACEOF
35894 /* confdefs.h.  */
35895 _ACEOF
35896 cat confdefs.h >>conftest.$ac_ext
35897 cat >>conftest.$ac_ext <<_ACEOF
35898 /* end confdefs.h.  */
35899 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35900    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35901 #define $ac_func innocuous_$ac_func
35902
35903 /* System header to define __stub macros and hopefully few prototypes,
35904     which can conflict with char $ac_func (); below.
35905     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35906     <limits.h> exists even on freestanding compilers.  */
35907
35908 #ifdef __STDC__
35909 # include <limits.h>
35910 #else
35911 # include <assert.h>
35912 #endif
35913
35914 #undef $ac_func
35915
35916 /* Override any gcc2 internal prototype to avoid an error.  */
35917 #ifdef __cplusplus
35918 extern "C"
35919 {
35920 #endif
35921 /* We use char because int might match the return type of a gcc2
35922    builtin and then its argument prototype would still apply.  */
35923 char $ac_func ();
35924 /* The GNU C library defines this for functions which it implements
35925     to always fail with ENOSYS.  Some functions are actually named
35926     something starting with __ and the normal name is an alias.  */
35927 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35928 choke me
35929 #else
35930 char (*f) () = $ac_func;
35931 #endif
35932 #ifdef __cplusplus
35933 }
35934 #endif
35935
35936 int
35937 main ()
35938 {
35939 return f != $ac_func;
35940   ;
35941   return 0;
35942 }
35943 _ACEOF
35944 rm -f conftest.$ac_objext conftest$ac_exeext
35945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35946   (eval $ac_link) 2>conftest.er1
35947   ac_status=$?
35948   grep -v '^ *+' conftest.er1 >conftest.err
35949   rm -f conftest.er1
35950   cat conftest.err >&5
35951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35952   (exit $ac_status); } &&
35953          { ac_try='test -z "$ac_c_werror_flag"
35954                          || test ! -s conftest.err'
35955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35956   (eval $ac_try) 2>&5
35957   ac_status=$?
35958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35959   (exit $ac_status); }; } &&
35960          { ac_try='test -s conftest$ac_exeext'
35961   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35962   (eval $ac_try) 2>&5
35963   ac_status=$?
35964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35965   (exit $ac_status); }; }; then
35966   eval "$as_ac_var=yes"
35967 else
35968   echo "$as_me: failed program was:" >&5
35969 sed 's/^/| /' conftest.$ac_ext >&5
35970
35971 eval "$as_ac_var=no"
35972 fi
35973 rm -f conftest.err conftest.$ac_objext \
35974       conftest$ac_exeext conftest.$ac_ext
35975 fi
35976 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35977 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35978 if test `eval echo '${'$as_ac_var'}'` = yes; then
35979   cat >>confdefs.h <<_ACEOF
35980 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35981 _ACEOF
35982
35983 fi
35984 done
35985
35986                 fi
35987         fi
35988
35989
35990 for ac_header in lwp/lwp.h
35991 do
35992 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35993 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35994   echo "$as_me:$LINENO: checking for $ac_header" >&5
35995 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35996 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35997   echo $ECHO_N "(cached) $ECHO_C" >&6
35998 fi
35999 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36000 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36001 else
36002   # Is the header compilable?
36003 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36004 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36005 cat >conftest.$ac_ext <<_ACEOF
36006 /* confdefs.h.  */
36007 _ACEOF
36008 cat confdefs.h >>conftest.$ac_ext
36009 cat >>conftest.$ac_ext <<_ACEOF
36010 /* end confdefs.h.  */
36011 $ac_includes_default
36012 #include <$ac_header>
36013 _ACEOF
36014 rm -f conftest.$ac_objext
36015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36016   (eval $ac_compile) 2>conftest.er1
36017   ac_status=$?
36018   grep -v '^ *+' conftest.er1 >conftest.err
36019   rm -f conftest.er1
36020   cat conftest.err >&5
36021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36022   (exit $ac_status); } &&
36023          { ac_try='test -z "$ac_c_werror_flag"
36024                          || test ! -s conftest.err'
36025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36026   (eval $ac_try) 2>&5
36027   ac_status=$?
36028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36029   (exit $ac_status); }; } &&
36030          { ac_try='test -s conftest.$ac_objext'
36031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36032   (eval $ac_try) 2>&5
36033   ac_status=$?
36034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36035   (exit $ac_status); }; }; then
36036   ac_header_compiler=yes
36037 else
36038   echo "$as_me: failed program was:" >&5
36039 sed 's/^/| /' conftest.$ac_ext >&5
36040
36041 ac_header_compiler=no
36042 fi
36043 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36044 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36045 echo "${ECHO_T}$ac_header_compiler" >&6
36046
36047 # Is the header present?
36048 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36049 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36050 cat >conftest.$ac_ext <<_ACEOF
36051 /* confdefs.h.  */
36052 _ACEOF
36053 cat confdefs.h >>conftest.$ac_ext
36054 cat >>conftest.$ac_ext <<_ACEOF
36055 /* end confdefs.h.  */
36056 #include <$ac_header>
36057 _ACEOF
36058 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36059   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36060   ac_status=$?
36061   grep -v '^ *+' conftest.er1 >conftest.err
36062   rm -f conftest.er1
36063   cat conftest.err >&5
36064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36065   (exit $ac_status); } >/dev/null; then
36066   if test -s conftest.err; then
36067     ac_cpp_err=$ac_c_preproc_warn_flag
36068     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36069   else
36070     ac_cpp_err=
36071   fi
36072 else
36073   ac_cpp_err=yes
36074 fi
36075 if test -z "$ac_cpp_err"; then
36076   ac_header_preproc=yes
36077 else
36078   echo "$as_me: failed program was:" >&5
36079 sed 's/^/| /' conftest.$ac_ext >&5
36080
36081   ac_header_preproc=no
36082 fi
36083 rm -f conftest.err conftest.$ac_ext
36084 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36085 echo "${ECHO_T}$ac_header_preproc" >&6
36086
36087 # So?  What about this header?
36088 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36089   yes:no: )
36090     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36091 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36092     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36093 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36094     ac_header_preproc=yes
36095     ;;
36096   no:yes:* )
36097     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36098 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36099     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
36100 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
36101     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36102 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36103     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
36104 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
36105     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36106 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36107     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36108 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36109     (
36110       cat <<\_ASBOX
36111 ## ------------------------------------------ ##
36112 ## Report this to the AC_PACKAGE_NAME lists.  ##
36113 ## ------------------------------------------ ##
36114 _ASBOX
36115     ) |
36116       sed "s/^/$as_me: WARNING:     /" >&2
36117     ;;
36118 esac
36119 echo "$as_me:$LINENO: checking for $ac_header" >&5
36120 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36121 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36122   echo $ECHO_N "(cached) $ECHO_C" >&6
36123 else
36124   eval "$as_ac_Header=\$ac_header_preproc"
36125 fi
36126 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36127 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36128
36129 fi
36130 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36131   cat >>confdefs.h <<_ACEOF
36132 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36133 _ACEOF
36134
36135 fi
36136
36137 done
36138
36139         if test $ac_cv_header_lwp_lwp_h = yes ; then
36140                 echo "$as_me:$LINENO: checking for lwp_create in -llwp" >&5
36141 echo $ECHO_N "checking for lwp_create in -llwp... $ECHO_C" >&6
36142 if test "${ac_cv_lib_lwp_lwp_create+set}" = set; then
36143   echo $ECHO_N "(cached) $ECHO_C" >&6
36144 else
36145   ac_check_lib_save_LIBS=$LIBS
36146 LIBS="-llwp  $LIBS"
36147 cat >conftest.$ac_ext <<_ACEOF
36148 /* confdefs.h.  */
36149 _ACEOF
36150 cat confdefs.h >>conftest.$ac_ext
36151 cat >>conftest.$ac_ext <<_ACEOF
36152 /* end confdefs.h.  */
36153
36154 /* Override any gcc2 internal prototype to avoid an error.  */
36155 #ifdef __cplusplus
36156 extern "C"
36157 #endif
36158 /* We use char because int might match the return type of a gcc2
36159    builtin and then its argument prototype would still apply.  */
36160 char lwp_create ();
36161 int
36162 main ()
36163 {
36164 lwp_create ();
36165   ;
36166   return 0;
36167 }
36168 _ACEOF
36169 rm -f conftest.$ac_objext conftest$ac_exeext
36170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36171   (eval $ac_link) 2>conftest.er1
36172   ac_status=$?
36173   grep -v '^ *+' conftest.er1 >conftest.err
36174   rm -f conftest.er1
36175   cat conftest.err >&5
36176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36177   (exit $ac_status); } &&
36178          { ac_try='test -z "$ac_c_werror_flag"
36179                          || test ! -s conftest.err'
36180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36181   (eval $ac_try) 2>&5
36182   ac_status=$?
36183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36184   (exit $ac_status); }; } &&
36185          { ac_try='test -s conftest$ac_exeext'
36186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36187   (eval $ac_try) 2>&5
36188   ac_status=$?
36189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36190   (exit $ac_status); }; }; then
36191   ac_cv_lib_lwp_lwp_create=yes
36192 else
36193   echo "$as_me: failed program was:" >&5
36194 sed 's/^/| /' conftest.$ac_ext >&5
36195
36196 ac_cv_lib_lwp_lwp_create=no
36197 fi
36198 rm -f conftest.err conftest.$ac_objext \
36199       conftest$ac_exeext conftest.$ac_ext
36200 LIBS=$ac_check_lib_save_LIBS
36201 fi
36202 echo "$as_me:$LINENO: result: $ac_cv_lib_lwp_lwp_create" >&5
36203 echo "${ECHO_T}$ac_cv_lib_lwp_lwp_create" >&6
36204 if test $ac_cv_lib_lwp_lwp_create = yes; then
36205   have_lwp=yes
36206 else
36207   have_lwp=no
36208 fi
36209
36210
36211                 if test $have_lwp = yes ; then
36212
36213 cat >>confdefs.h <<\_ACEOF
36214 #define HAVE_LWP 1
36215 _ACEOF
36216
36217                         LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
36218                         ol_link_threads=lwp
36219
36220                         if test $ol_with_yielding_select = auto ; then
36221                                 ol_with_yielding_select=no
36222                         fi
36223                 fi
36224         fi
36225 fi
36226
36227 if test $ol_with_yielding_select = yes ; then
36228
36229 cat >>confdefs.h <<\_ACEOF
36230 #define HAVE_YIELDING_SELECT 1
36231 _ACEOF
36232
36233 fi
36234
36235 if test $ol_with_threads = manual ; then
36236                 ol_link_threads=yes
36237
36238         { echo "$as_me:$LINENO: WARNING: thread defines and link options must be set manually" >&5
36239 echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
36240
36241
36242
36243 for ac_header in pthread.h sched.h
36244 do
36245 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36246 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36247   echo "$as_me:$LINENO: checking for $ac_header" >&5
36248 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36249 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36250   echo $ECHO_N "(cached) $ECHO_C" >&6
36251 fi
36252 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36253 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36254 else
36255   # Is the header compilable?
36256 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36257 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36258 cat >conftest.$ac_ext <<_ACEOF
36259 /* confdefs.h.  */
36260 _ACEOF
36261 cat confdefs.h >>conftest.$ac_ext
36262 cat >>conftest.$ac_ext <<_ACEOF
36263 /* end confdefs.h.  */
36264 $ac_includes_default
36265 #include <$ac_header>
36266 _ACEOF
36267 rm -f conftest.$ac_objext
36268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36269   (eval $ac_compile) 2>conftest.er1
36270   ac_status=$?
36271   grep -v '^ *+' conftest.er1 >conftest.err
36272   rm -f conftest.er1
36273   cat conftest.err >&5
36274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36275   (exit $ac_status); } &&
36276          { ac_try='test -z "$ac_c_werror_flag"
36277                          || test ! -s conftest.err'
36278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36279   (eval $ac_try) 2>&5
36280   ac_status=$?
36281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36282   (exit $ac_status); }; } &&
36283          { ac_try='test -s conftest.$ac_objext'
36284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36285   (eval $ac_try) 2>&5
36286   ac_status=$?
36287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36288   (exit $ac_status); }; }; then
36289   ac_header_compiler=yes
36290 else
36291   echo "$as_me: failed program was:" >&5
36292 sed 's/^/| /' conftest.$ac_ext >&5
36293
36294 ac_header_compiler=no
36295 fi
36296 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36297 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36298 echo "${ECHO_T}$ac_header_compiler" >&6
36299
36300 # Is the header present?
36301 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36302 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36303 cat >conftest.$ac_ext <<_ACEOF
36304 /* confdefs.h.  */
36305 _ACEOF
36306 cat confdefs.h >>conftest.$ac_ext
36307 cat >>conftest.$ac_ext <<_ACEOF
36308 /* end confdefs.h.  */
36309 #include <$ac_header>
36310 _ACEOF
36311 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36312   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36313   ac_status=$?
36314   grep -v '^ *+' conftest.er1 >conftest.err
36315   rm -f conftest.er1
36316   cat conftest.err >&5
36317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36318   (exit $ac_status); } >/dev/null; then
36319   if test -s conftest.err; then
36320     ac_cpp_err=$ac_c_preproc_warn_flag
36321     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36322   else
36323     ac_cpp_err=
36324   fi
36325 else
36326   ac_cpp_err=yes
36327 fi
36328 if test -z "$ac_cpp_err"; then
36329   ac_header_preproc=yes
36330 else
36331   echo "$as_me: failed program was:" >&5
36332 sed 's/^/| /' conftest.$ac_ext >&5
36333
36334   ac_header_preproc=no
36335 fi
36336 rm -f conftest.err conftest.$ac_ext
36337 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36338 echo "${ECHO_T}$ac_header_preproc" >&6
36339
36340 # So?  What about this header?
36341 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36342   yes:no: )
36343     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36344 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36345     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36346 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36347     ac_header_preproc=yes
36348     ;;
36349   no:yes:* )
36350     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36351 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36352     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
36353 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
36354     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36355 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36356     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
36357 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
36358     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36359 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36360     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36361 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36362     (
36363       cat <<\_ASBOX
36364 ## ------------------------------------------ ##
36365 ## Report this to the AC_PACKAGE_NAME lists.  ##
36366 ## ------------------------------------------ ##
36367 _ASBOX
36368     ) |
36369       sed "s/^/$as_me: WARNING:     /" >&2
36370     ;;
36371 esac
36372 echo "$as_me:$LINENO: checking for $ac_header" >&5
36373 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36374 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36375   echo $ECHO_N "(cached) $ECHO_C" >&6
36376 else
36377   eval "$as_ac_Header=\$ac_header_preproc"
36378 fi
36379 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36380 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36381
36382 fi
36383 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36384   cat >>confdefs.h <<_ACEOF
36385 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36386 _ACEOF
36387
36388 fi
36389
36390 done
36391
36392
36393
36394 for ac_func in sched_yield pthread_yield
36395 do
36396 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36397 echo "$as_me:$LINENO: checking for $ac_func" >&5
36398 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36399 if eval "test \"\${$as_ac_var+set}\" = set"; then
36400   echo $ECHO_N "(cached) $ECHO_C" >&6
36401 else
36402   cat >conftest.$ac_ext <<_ACEOF
36403 /* confdefs.h.  */
36404 _ACEOF
36405 cat confdefs.h >>conftest.$ac_ext
36406 cat >>conftest.$ac_ext <<_ACEOF
36407 /* end confdefs.h.  */
36408 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36409    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36410 #define $ac_func innocuous_$ac_func
36411
36412 /* System header to define __stub macros and hopefully few prototypes,
36413     which can conflict with char $ac_func (); below.
36414     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36415     <limits.h> exists even on freestanding compilers.  */
36416
36417 #ifdef __STDC__
36418 # include <limits.h>
36419 #else
36420 # include <assert.h>
36421 #endif
36422
36423 #undef $ac_func
36424
36425 /* Override any gcc2 internal prototype to avoid an error.  */
36426 #ifdef __cplusplus
36427 extern "C"
36428 {
36429 #endif
36430 /* We use char because int might match the return type of a gcc2
36431    builtin and then its argument prototype would still apply.  */
36432 char $ac_func ();
36433 /* The GNU C library defines this for functions which it implements
36434     to always fail with ENOSYS.  Some functions are actually named
36435     something starting with __ and the normal name is an alias.  */
36436 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36437 choke me
36438 #else
36439 char (*f) () = $ac_func;
36440 #endif
36441 #ifdef __cplusplus
36442 }
36443 #endif
36444
36445 int
36446 main ()
36447 {
36448 return f != $ac_func;
36449   ;
36450   return 0;
36451 }
36452 _ACEOF
36453 rm -f conftest.$ac_objext conftest$ac_exeext
36454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36455   (eval $ac_link) 2>conftest.er1
36456   ac_status=$?
36457   grep -v '^ *+' conftest.er1 >conftest.err
36458   rm -f conftest.er1
36459   cat conftest.err >&5
36460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36461   (exit $ac_status); } &&
36462          { ac_try='test -z "$ac_c_werror_flag"
36463                          || test ! -s conftest.err'
36464   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36465   (eval $ac_try) 2>&5
36466   ac_status=$?
36467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36468   (exit $ac_status); }; } &&
36469          { ac_try='test -s conftest$ac_exeext'
36470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36471   (eval $ac_try) 2>&5
36472   ac_status=$?
36473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36474   (exit $ac_status); }; }; then
36475   eval "$as_ac_var=yes"
36476 else
36477   echo "$as_me: failed program was:" >&5
36478 sed 's/^/| /' conftest.$ac_ext >&5
36479
36480 eval "$as_ac_var=no"
36481 fi
36482 rm -f conftest.err conftest.$ac_objext \
36483       conftest$ac_exeext conftest.$ac_ext
36484 fi
36485 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36486 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36487 if test `eval echo '${'$as_ac_var'}'` = yes; then
36488   cat >>confdefs.h <<_ACEOF
36489 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36490 _ACEOF
36491
36492 fi
36493 done
36494
36495
36496         echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
36497 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
36498 if test "${ol_cv_header_linux_threads+set}" = set; then
36499   echo $ECHO_N "(cached) $ECHO_C" >&6
36500 else
36501   cat >conftest.$ac_ext <<_ACEOF
36502 /* confdefs.h.  */
36503 _ACEOF
36504 cat confdefs.h >>conftest.$ac_ext
36505 cat >>conftest.$ac_ext <<_ACEOF
36506 /* end confdefs.h.  */
36507 #include <pthread.h>
36508 _ACEOF
36509 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36510   $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
36511   ol_cv_header_linux_threads=yes
36512 else
36513   ol_cv_header_linux_threads=no
36514 fi
36515 rm -f conftest*
36516
36517
36518 fi
36519 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
36520 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
36521         if test $ol_cv_header_linux_threads = yes; then
36522
36523 cat >>confdefs.h <<\_ACEOF
36524 #define HAVE_LINUX_THREADS 1
36525 _ACEOF
36526
36527         fi
36528
36529
36530
36531 for ac_header in mach/cthreads.h
36532 do
36533 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36534 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36535   echo "$as_me:$LINENO: checking for $ac_header" >&5
36536 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36537 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36538   echo $ECHO_N "(cached) $ECHO_C" >&6
36539 fi
36540 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36541 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36542 else
36543   # Is the header compilable?
36544 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36545 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36546 cat >conftest.$ac_ext <<_ACEOF
36547 /* confdefs.h.  */
36548 _ACEOF
36549 cat confdefs.h >>conftest.$ac_ext
36550 cat >>conftest.$ac_ext <<_ACEOF
36551 /* end confdefs.h.  */
36552 $ac_includes_default
36553 #include <$ac_header>
36554 _ACEOF
36555 rm -f conftest.$ac_objext
36556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36557   (eval $ac_compile) 2>conftest.er1
36558   ac_status=$?
36559   grep -v '^ *+' conftest.er1 >conftest.err
36560   rm -f conftest.er1
36561   cat conftest.err >&5
36562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36563   (exit $ac_status); } &&
36564          { ac_try='test -z "$ac_c_werror_flag"
36565                          || test ! -s conftest.err'
36566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36567   (eval $ac_try) 2>&5
36568   ac_status=$?
36569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36570   (exit $ac_status); }; } &&
36571          { ac_try='test -s conftest.$ac_objext'
36572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36573   (eval $ac_try) 2>&5
36574   ac_status=$?
36575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36576   (exit $ac_status); }; }; then
36577   ac_header_compiler=yes
36578 else
36579   echo "$as_me: failed program was:" >&5
36580 sed 's/^/| /' conftest.$ac_ext >&5
36581
36582 ac_header_compiler=no
36583 fi
36584 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36585 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36586 echo "${ECHO_T}$ac_header_compiler" >&6
36587
36588 # Is the header present?
36589 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36590 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36591 cat >conftest.$ac_ext <<_ACEOF
36592 /* confdefs.h.  */
36593 _ACEOF
36594 cat confdefs.h >>conftest.$ac_ext
36595 cat >>conftest.$ac_ext <<_ACEOF
36596 /* end confdefs.h.  */
36597 #include <$ac_header>
36598 _ACEOF
36599 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36600   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36601   ac_status=$?
36602   grep -v '^ *+' conftest.er1 >conftest.err
36603   rm -f conftest.er1
36604   cat conftest.err >&5
36605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36606   (exit $ac_status); } >/dev/null; then
36607   if test -s conftest.err; then
36608     ac_cpp_err=$ac_c_preproc_warn_flag
36609     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36610   else
36611     ac_cpp_err=
36612   fi
36613 else
36614   ac_cpp_err=yes
36615 fi
36616 if test -z "$ac_cpp_err"; then
36617   ac_header_preproc=yes
36618 else
36619   echo "$as_me: failed program was:" >&5
36620 sed 's/^/| /' conftest.$ac_ext >&5
36621
36622   ac_header_preproc=no
36623 fi
36624 rm -f conftest.err conftest.$ac_ext
36625 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36626 echo "${ECHO_T}$ac_header_preproc" >&6
36627
36628 # So?  What about this header?
36629 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36630   yes:no: )
36631     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36632 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36633     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36634 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36635     ac_header_preproc=yes
36636     ;;
36637   no:yes:* )
36638     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36639 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36640     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
36641 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
36642     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36643 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36644     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
36645 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
36646     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36647 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36648     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36649 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36650     (
36651       cat <<\_ASBOX
36652 ## ------------------------------------------ ##
36653 ## Report this to the AC_PACKAGE_NAME lists.  ##
36654 ## ------------------------------------------ ##
36655 _ASBOX
36656     ) |
36657       sed "s/^/$as_me: WARNING:     /" >&2
36658     ;;
36659 esac
36660 echo "$as_me:$LINENO: checking for $ac_header" >&5
36661 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36662 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36663   echo $ECHO_N "(cached) $ECHO_C" >&6
36664 else
36665   eval "$as_ac_Header=\$ac_header_preproc"
36666 fi
36667 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36668 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36669
36670 fi
36671 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36672   cat >>confdefs.h <<_ACEOF
36673 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36674 _ACEOF
36675
36676 fi
36677
36678 done
36679
36680
36681 for ac_header in lwp/lwp.h
36682 do
36683 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36684 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36685   echo "$as_me:$LINENO: checking for $ac_header" >&5
36686 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36687 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36688   echo $ECHO_N "(cached) $ECHO_C" >&6
36689 fi
36690 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36691 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36692 else
36693   # Is the header compilable?
36694 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36695 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36696 cat >conftest.$ac_ext <<_ACEOF
36697 /* confdefs.h.  */
36698 _ACEOF
36699 cat confdefs.h >>conftest.$ac_ext
36700 cat >>conftest.$ac_ext <<_ACEOF
36701 /* end confdefs.h.  */
36702 $ac_includes_default
36703 #include <$ac_header>
36704 _ACEOF
36705 rm -f conftest.$ac_objext
36706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36707   (eval $ac_compile) 2>conftest.er1
36708   ac_status=$?
36709   grep -v '^ *+' conftest.er1 >conftest.err
36710   rm -f conftest.er1
36711   cat conftest.err >&5
36712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36713   (exit $ac_status); } &&
36714          { ac_try='test -z "$ac_c_werror_flag"
36715                          || test ! -s conftest.err'
36716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36717   (eval $ac_try) 2>&5
36718   ac_status=$?
36719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36720   (exit $ac_status); }; } &&
36721          { ac_try='test -s conftest.$ac_objext'
36722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36723   (eval $ac_try) 2>&5
36724   ac_status=$?
36725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36726   (exit $ac_status); }; }; then
36727   ac_header_compiler=yes
36728 else
36729   echo "$as_me: failed program was:" >&5
36730 sed 's/^/| /' conftest.$ac_ext >&5
36731
36732 ac_header_compiler=no
36733 fi
36734 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36735 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36736 echo "${ECHO_T}$ac_header_compiler" >&6
36737
36738 # Is the header present?
36739 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36740 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36741 cat >conftest.$ac_ext <<_ACEOF
36742 /* confdefs.h.  */
36743 _ACEOF
36744 cat confdefs.h >>conftest.$ac_ext
36745 cat >>conftest.$ac_ext <<_ACEOF
36746 /* end confdefs.h.  */
36747 #include <$ac_header>
36748 _ACEOF
36749 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36750   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36751   ac_status=$?
36752   grep -v '^ *+' conftest.er1 >conftest.err
36753   rm -f conftest.er1
36754   cat conftest.err >&5
36755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36756   (exit $ac_status); } >/dev/null; then
36757   if test -s conftest.err; then
36758     ac_cpp_err=$ac_c_preproc_warn_flag
36759     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36760   else
36761     ac_cpp_err=
36762   fi
36763 else
36764   ac_cpp_err=yes
36765 fi
36766 if test -z "$ac_cpp_err"; then
36767   ac_header_preproc=yes
36768 else
36769   echo "$as_me: failed program was:" >&5
36770 sed 's/^/| /' conftest.$ac_ext >&5
36771
36772   ac_header_preproc=no
36773 fi
36774 rm -f conftest.err conftest.$ac_ext
36775 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36776 echo "${ECHO_T}$ac_header_preproc" >&6
36777
36778 # So?  What about this header?
36779 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36780   yes:no: )
36781     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36782 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36783     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36784 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36785     ac_header_preproc=yes
36786     ;;
36787   no:yes:* )
36788     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36789 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36790     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
36791 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
36792     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36793 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36794     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
36795 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
36796     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36797 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36798     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36799 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36800     (
36801       cat <<\_ASBOX
36802 ## ------------------------------------------ ##
36803 ## Report this to the AC_PACKAGE_NAME lists.  ##
36804 ## ------------------------------------------ ##
36805 _ASBOX
36806     ) |
36807       sed "s/^/$as_me: WARNING:     /" >&2
36808     ;;
36809 esac
36810 echo "$as_me:$LINENO: checking for $ac_header" >&5
36811 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36812 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36813   echo $ECHO_N "(cached) $ECHO_C" >&6
36814 else
36815   eval "$as_ac_Header=\$ac_header_preproc"
36816 fi
36817 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36818 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36819
36820 fi
36821 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36822   cat >>confdefs.h <<_ACEOF
36823 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36824 _ACEOF
36825
36826 fi
36827
36828 done
36829
36830
36831
36832 for ac_header in thread.h synch.h
36833 do
36834 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36835 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36836   echo "$as_me:$LINENO: checking for $ac_header" >&5
36837 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36838 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36839   echo $ECHO_N "(cached) $ECHO_C" >&6
36840 fi
36841 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36842 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36843 else
36844   # Is the header compilable?
36845 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36846 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36847 cat >conftest.$ac_ext <<_ACEOF
36848 /* confdefs.h.  */
36849 _ACEOF
36850 cat confdefs.h >>conftest.$ac_ext
36851 cat >>conftest.$ac_ext <<_ACEOF
36852 /* end confdefs.h.  */
36853 $ac_includes_default
36854 #include <$ac_header>
36855 _ACEOF
36856 rm -f conftest.$ac_objext
36857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36858   (eval $ac_compile) 2>conftest.er1
36859   ac_status=$?
36860   grep -v '^ *+' conftest.er1 >conftest.err
36861   rm -f conftest.er1
36862   cat conftest.err >&5
36863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36864   (exit $ac_status); } &&
36865          { ac_try='test -z "$ac_c_werror_flag"
36866                          || test ! -s conftest.err'
36867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36868   (eval $ac_try) 2>&5
36869   ac_status=$?
36870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36871   (exit $ac_status); }; } &&
36872          { ac_try='test -s conftest.$ac_objext'
36873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36874   (eval $ac_try) 2>&5
36875   ac_status=$?
36876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36877   (exit $ac_status); }; }; then
36878   ac_header_compiler=yes
36879 else
36880   echo "$as_me: failed program was:" >&5
36881 sed 's/^/| /' conftest.$ac_ext >&5
36882
36883 ac_header_compiler=no
36884 fi
36885 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36886 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36887 echo "${ECHO_T}$ac_header_compiler" >&6
36888
36889 # Is the header present?
36890 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36891 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36892 cat >conftest.$ac_ext <<_ACEOF
36893 /* confdefs.h.  */
36894 _ACEOF
36895 cat confdefs.h >>conftest.$ac_ext
36896 cat >>conftest.$ac_ext <<_ACEOF
36897 /* end confdefs.h.  */
36898 #include <$ac_header>
36899 _ACEOF
36900 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36901   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36902   ac_status=$?
36903   grep -v '^ *+' conftest.er1 >conftest.err
36904   rm -f conftest.er1
36905   cat conftest.err >&5
36906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36907   (exit $ac_status); } >/dev/null; then
36908   if test -s conftest.err; then
36909     ac_cpp_err=$ac_c_preproc_warn_flag
36910     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36911   else
36912     ac_cpp_err=
36913   fi
36914 else
36915   ac_cpp_err=yes
36916 fi
36917 if test -z "$ac_cpp_err"; then
36918   ac_header_preproc=yes
36919 else
36920   echo "$as_me: failed program was:" >&5
36921 sed 's/^/| /' conftest.$ac_ext >&5
36922
36923   ac_header_preproc=no
36924 fi
36925 rm -f conftest.err conftest.$ac_ext
36926 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36927 echo "${ECHO_T}$ac_header_preproc" >&6
36928
36929 # So?  What about this header?
36930 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36931   yes:no: )
36932     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36933 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36934     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36935 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36936     ac_header_preproc=yes
36937     ;;
36938   no:yes:* )
36939     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36940 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36941     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
36942 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
36943     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36944 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36945     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
36946 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
36947     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36948 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36949     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36950 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36951     (
36952       cat <<\_ASBOX
36953 ## ------------------------------------------ ##
36954 ## Report this to the AC_PACKAGE_NAME lists.  ##
36955 ## ------------------------------------------ ##
36956 _ASBOX
36957     ) |
36958       sed "s/^/$as_me: WARNING:     /" >&2
36959     ;;
36960 esac
36961 echo "$as_me:$LINENO: checking for $ac_header" >&5
36962 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36963 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36964   echo $ECHO_N "(cached) $ECHO_C" >&6
36965 else
36966   eval "$as_ac_Header=\$ac_header_preproc"
36967 fi
36968 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36969 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36970
36971 fi
36972 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36973   cat >>confdefs.h <<_ACEOF
36974 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36975 _ACEOF
36976
36977 fi
36978
36979 done
36980
36981 fi
36982
36983 if test $ol_link_threads != no -a $ol_link_threads != nt ; then
36984                         cat >>confdefs.h <<\_ACEOF
36985 #define REENTRANT 1
36986 _ACEOF
36987
36988         cat >>confdefs.h <<\_ACEOF
36989 #define _REENTRANT 1
36990 _ACEOF
36991
36992         cat >>confdefs.h <<\_ACEOF
36993 #define THREAD_SAFE 1
36994 _ACEOF
36995
36996         cat >>confdefs.h <<\_ACEOF
36997 #define _THREAD_SAFE 1
36998 _ACEOF
36999
37000         cat >>confdefs.h <<\_ACEOF
37001 #define THREADSAFE 1
37002 _ACEOF
37003
37004         cat >>confdefs.h <<\_ACEOF
37005 #define _THREADSAFE 1
37006 _ACEOF
37007
37008         cat >>confdefs.h <<\_ACEOF
37009 #define _SGI_MP_SOURCE 1
37010 _ACEOF
37011
37012
37013                         echo "$as_me:$LINENO: checking for thread specific errno" >&5
37014 echo $ECHO_N "checking for thread specific errno... $ECHO_C" >&6
37015 if test "${ol_cv_errno_thread_specific+set}" = set; then
37016   echo $ECHO_N "(cached) $ECHO_C" >&6
37017 else
37018
37019                 cat >conftest.$ac_ext <<_ACEOF
37020 /* confdefs.h.  */
37021 _ACEOF
37022 cat confdefs.h >>conftest.$ac_ext
37023 cat >>conftest.$ac_ext <<_ACEOF
37024 /* end confdefs.h.  */
37025 #include <errno.h>
37026 int
37027 main ()
37028 {
37029 errno = 0;
37030   ;
37031   return 0;
37032 }
37033 _ACEOF
37034 rm -f conftest.$ac_objext conftest$ac_exeext
37035 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37036   (eval $ac_link) 2>conftest.er1
37037   ac_status=$?
37038   grep -v '^ *+' conftest.er1 >conftest.err
37039   rm -f conftest.er1
37040   cat conftest.err >&5
37041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37042   (exit $ac_status); } &&
37043          { ac_try='test -z "$ac_c_werror_flag"
37044                          || test ! -s conftest.err'
37045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37046   (eval $ac_try) 2>&5
37047   ac_status=$?
37048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37049   (exit $ac_status); }; } &&
37050          { ac_try='test -s conftest$ac_exeext'
37051   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37052   (eval $ac_try) 2>&5
37053   ac_status=$?
37054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37055   (exit $ac_status); }; }; then
37056   ol_cv_errno_thread_specific=yes
37057 else
37058   echo "$as_me: failed program was:" >&5
37059 sed 's/^/| /' conftest.$ac_ext >&5
37060
37061 ol_cv_errno_thread_specific=no
37062 fi
37063 rm -f conftest.err conftest.$ac_objext \
37064       conftest$ac_exeext conftest.$ac_ext
37065
37066 fi
37067 echo "$as_me:$LINENO: result: $ol_cv_errno_thread_specific" >&5
37068 echo "${ECHO_T}$ol_cv_errno_thread_specific" >&6
37069
37070                         echo "$as_me:$LINENO: checking for thread specific h_errno" >&5
37071 echo $ECHO_N "checking for thread specific h_errno... $ECHO_C" >&6
37072 if test "${ol_cv_h_errno_thread_specific+set}" = set; then
37073   echo $ECHO_N "(cached) $ECHO_C" >&6
37074 else
37075
37076                 cat >conftest.$ac_ext <<_ACEOF
37077 /* confdefs.h.  */
37078 _ACEOF
37079 cat confdefs.h >>conftest.$ac_ext
37080 cat >>conftest.$ac_ext <<_ACEOF
37081 /* end confdefs.h.  */
37082 #include <netdb.h>
37083 int
37084 main ()
37085 {
37086 h_errno = 0;
37087   ;
37088   return 0;
37089 }
37090 _ACEOF
37091 rm -f conftest.$ac_objext conftest$ac_exeext
37092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37093   (eval $ac_link) 2>conftest.er1
37094   ac_status=$?
37095   grep -v '^ *+' conftest.er1 >conftest.err
37096   rm -f conftest.er1
37097   cat conftest.err >&5
37098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37099   (exit $ac_status); } &&
37100          { ac_try='test -z "$ac_c_werror_flag"
37101                          || test ! -s conftest.err'
37102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37103   (eval $ac_try) 2>&5
37104   ac_status=$?
37105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37106   (exit $ac_status); }; } &&
37107          { ac_try='test -s conftest$ac_exeext'
37108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37109   (eval $ac_try) 2>&5
37110   ac_status=$?
37111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37112   (exit $ac_status); }; }; then
37113   ol_cv_h_errno_thread_specific=yes
37114 else
37115   echo "$as_me: failed program was:" >&5
37116 sed 's/^/| /' conftest.$ac_ext >&5
37117
37118 ol_cv_h_errno_thread_specific=no
37119 fi
37120 rm -f conftest.err conftest.$ac_objext \
37121       conftest$ac_exeext conftest.$ac_ext
37122
37123 fi
37124 echo "$as_me:$LINENO: result: $ol_cv_h_errno_thread_specific" >&5
37125 echo "${ECHO_T}$ol_cv_h_errno_thread_specific" >&6
37126
37127         if test $ol_cv_errno_thread_specific != yes \
37128                 -o $ol_cv_h_errno_thread_specific != yes ; then
37129                 LIBS="$LTHREAD_LIBS $LIBS"
37130                 LTHREAD_LIBS=""
37131         fi
37132
37133 fi
37134
37135 if test $ol_link_threads = no ; then
37136         if test $ol_with_threads = yes ; then
37137                 { { echo "$as_me:$LINENO: error: no suitable thread support" >&5
37138 echo "$as_me: error: no suitable thread support" >&2;}
37139    { (exit 1); exit 1; }; }
37140         fi
37141
37142         if test $ol_with_threads = auto ; then
37143                 { echo "$as_me:$LINENO: WARNING: no suitable thread support, disabling threads" >&5
37144 echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
37145                 ol_with_threads=no
37146         fi
37147
37148
37149 cat >>confdefs.h <<\_ACEOF
37150 #define NO_THREADS 1
37151 _ACEOF
37152
37153         LTHREAD_LIBS=""
37154 fi
37155
37156 if test $ol_link_threads != no ; then
37157         cat >>confdefs.h <<\_ACEOF
37158 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
37159 _ACEOF
37160
37161 fi
37162
37163
37164
37165
37166 for ac_func in \
37167         ctime_r                 \
37168         gethostbyname_r gethostbyaddr_r \
37169
37170 do
37171 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37172 echo "$as_me:$LINENO: checking for $ac_func" >&5
37173 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37174 if eval "test \"\${$as_ac_var+set}\" = set"; then
37175   echo $ECHO_N "(cached) $ECHO_C" >&6
37176 else
37177   cat >conftest.$ac_ext <<_ACEOF
37178 /* confdefs.h.  */
37179 _ACEOF
37180 cat confdefs.h >>conftest.$ac_ext
37181 cat >>conftest.$ac_ext <<_ACEOF
37182 /* end confdefs.h.  */
37183 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37184    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37185 #define $ac_func innocuous_$ac_func
37186
37187 /* System header to define __stub macros and hopefully few prototypes,
37188     which can conflict with char $ac_func (); below.
37189     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37190     <limits.h> exists even on freestanding compilers.  */
37191
37192 #ifdef __STDC__
37193 # include <limits.h>
37194 #else
37195 # include <assert.h>
37196 #endif
37197
37198 #undef $ac_func
37199
37200 /* Override any gcc2 internal prototype to avoid an error.  */
37201 #ifdef __cplusplus
37202 extern "C"
37203 {
37204 #endif
37205 /* We use char because int might match the return type of a gcc2
37206    builtin and then its argument prototype would still apply.  */
37207 char $ac_func ();
37208 /* The GNU C library defines this for functions which it implements
37209     to always fail with ENOSYS.  Some functions are actually named
37210     something starting with __ and the normal name is an alias.  */
37211 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37212 choke me
37213 #else
37214 char (*f) () = $ac_func;
37215 #endif
37216 #ifdef __cplusplus
37217 }
37218 #endif
37219
37220 int
37221 main ()
37222 {
37223 return f != $ac_func;
37224   ;
37225   return 0;
37226 }
37227 _ACEOF
37228 rm -f conftest.$ac_objext conftest$ac_exeext
37229 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37230   (eval $ac_link) 2>conftest.er1
37231   ac_status=$?
37232   grep -v '^ *+' conftest.er1 >conftest.err
37233   rm -f conftest.er1
37234   cat conftest.err >&5
37235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37236   (exit $ac_status); } &&
37237          { ac_try='test -z "$ac_c_werror_flag"
37238                          || test ! -s conftest.err'
37239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37240   (eval $ac_try) 2>&5
37241   ac_status=$?
37242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37243   (exit $ac_status); }; } &&
37244          { ac_try='test -s conftest$ac_exeext'
37245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37246   (eval $ac_try) 2>&5
37247   ac_status=$?
37248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37249   (exit $ac_status); }; }; then
37250   eval "$as_ac_var=yes"
37251 else
37252   echo "$as_me: failed program was:" >&5
37253 sed 's/^/| /' conftest.$ac_ext >&5
37254
37255 eval "$as_ac_var=no"
37256 fi
37257 rm -f conftest.err conftest.$ac_objext \
37258       conftest$ac_exeext conftest.$ac_ext
37259 fi
37260 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37261 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37262 if test `eval echo '${'$as_ac_var'}'` = yes; then
37263   cat >>confdefs.h <<_ACEOF
37264 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37265 _ACEOF
37266
37267 fi
37268 done
37269
37270
37271 if test "$ac_cv_func_ctime_r" = no ; then
37272         ol_cv_func_ctime_r_nargs=0
37273 else
37274         echo "$as_me:$LINENO: checking number of arguments of ctime_r" >&5
37275 echo $ECHO_N "checking number of arguments of ctime_r... $ECHO_C" >&6
37276 if test "${ol_cv_func_ctime_r_nargs+set}" = set; then
37277   echo $ECHO_N "(cached) $ECHO_C" >&6
37278 else
37279   cat >conftest.$ac_ext <<_ACEOF
37280 /* confdefs.h.  */
37281 _ACEOF
37282 cat confdefs.h >>conftest.$ac_ext
37283 cat >>conftest.$ac_ext <<_ACEOF
37284 /* end confdefs.h.  */
37285 #include <time.h>
37286 int
37287 main ()
37288 {
37289 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
37290   ;
37291   return 0;
37292 }
37293 _ACEOF
37294 rm -f conftest.$ac_objext
37295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37296   (eval $ac_compile) 2>conftest.er1
37297   ac_status=$?
37298   grep -v '^ *+' conftest.er1 >conftest.err
37299   rm -f conftest.er1
37300   cat conftest.err >&5
37301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37302   (exit $ac_status); } &&
37303          { ac_try='test -z "$ac_c_werror_flag"
37304                          || test ! -s conftest.err'
37305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37306   (eval $ac_try) 2>&5
37307   ac_status=$?
37308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37309   (exit $ac_status); }; } &&
37310          { ac_try='test -s conftest.$ac_objext'
37311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37312   (eval $ac_try) 2>&5
37313   ac_status=$?
37314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37315   (exit $ac_status); }; }; then
37316   ol_cv_func_ctime_r_nargs3=yes
37317 else
37318   echo "$as_me: failed program was:" >&5
37319 sed 's/^/| /' conftest.$ac_ext >&5
37320
37321 ol_cv_func_ctime_r_nargs3=no
37322 fi
37323 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37324
37325         cat >conftest.$ac_ext <<_ACEOF
37326 /* confdefs.h.  */
37327 _ACEOF
37328 cat confdefs.h >>conftest.$ac_ext
37329 cat >>conftest.$ac_ext <<_ACEOF
37330 /* end confdefs.h.  */
37331 #include <time.h>
37332 int
37333 main ()
37334 {
37335 time_t ti; char *buffer; ctime_r(&ti,buffer);
37336   ;
37337   return 0;
37338 }
37339 _ACEOF
37340 rm -f conftest.$ac_objext
37341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37342   (eval $ac_compile) 2>conftest.er1
37343   ac_status=$?
37344   grep -v '^ *+' conftest.er1 >conftest.err
37345   rm -f conftest.er1
37346   cat conftest.err >&5
37347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37348   (exit $ac_status); } &&
37349          { ac_try='test -z "$ac_c_werror_flag"
37350                          || test ! -s conftest.err'
37351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37352   (eval $ac_try) 2>&5
37353   ac_status=$?
37354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37355   (exit $ac_status); }; } &&
37356          { ac_try='test -s conftest.$ac_objext'
37357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37358   (eval $ac_try) 2>&5
37359   ac_status=$?
37360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37361   (exit $ac_status); }; }; then
37362   ol_cv_func_ctime_r_nargs2=yes
37363 else
37364   echo "$as_me: failed program was:" >&5
37365 sed 's/^/| /' conftest.$ac_ext >&5
37366
37367 ol_cv_func_ctime_r_nargs2=no
37368 fi
37369 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37370
37371         if test $ol_cv_func_ctime_r_nargs3 = yes -a \
37372                 $ol_cv_func_ctime_r_nargs2 = no ; then
37373
37374                 ol_cv_func_ctime_r_nargs=3
37375
37376         elif test $ol_cv_func_ctime_r_nargs3 = no -a \
37377                 $ol_cv_func_ctime_r_nargs2 = yes ; then
37378
37379                 ol_cv_func_ctime_r_nargs=2
37380
37381         else
37382                 ol_cv_func_ctime_r_nargs=0
37383         fi
37384
37385 fi
37386 echo "$as_me:$LINENO: result: $ol_cv_func_ctime_r_nargs" >&5
37387 echo "${ECHO_T}$ol_cv_func_ctime_r_nargs" >&6
37388
37389   if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
37390
37391 cat >>confdefs.h <<_ACEOF
37392 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
37393 _ACEOF
37394
37395   fi
37396
37397 fi
37398
37399 if test "$ac_cv_func_gethostbyname_r" = yes ; then
37400         echo "$as_me:$LINENO: checking number of arguments of gethostbyname_r" >&5
37401 echo $ECHO_N "checking number of arguments of gethostbyname_r... $ECHO_C" >&6
37402 if test "${ol_cv_func_gethostbyname_r_nargs+set}" = set; then
37403   echo $ECHO_N "(cached) $ECHO_C" >&6
37404 else
37405   cat >conftest.$ac_ext <<_ACEOF
37406 /* confdefs.h.  */
37407 _ACEOF
37408 cat confdefs.h >>conftest.$ac_ext
37409 cat >>conftest.$ac_ext <<_ACEOF
37410 /* end confdefs.h.  */
37411 #include <sys/types.h>
37412 #include <sys/socket.h>
37413 #include <netinet/in.h>
37414 #include <netdb.h>
37415 #define BUFSIZE (sizeof(struct hostent)+10)
37416 int
37417 main ()
37418 {
37419 struct hostent hent; char buffer[BUFSIZE];
37420                 int bufsize=BUFSIZE;int h_errno;
37421                 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
37422                         buffer, bufsize, &h_errno);
37423   ;
37424   return 0;
37425 }
37426 _ACEOF
37427 rm -f conftest.$ac_objext
37428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37429   (eval $ac_compile) 2>conftest.er1
37430   ac_status=$?
37431   grep -v '^ *+' conftest.er1 >conftest.err
37432   rm -f conftest.er1
37433   cat conftest.err >&5
37434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37435   (exit $ac_status); } &&
37436          { ac_try='test -z "$ac_c_werror_flag"
37437                          || test ! -s conftest.err'
37438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37439   (eval $ac_try) 2>&5
37440   ac_status=$?
37441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37442   (exit $ac_status); }; } &&
37443          { ac_try='test -s conftest.$ac_objext'
37444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37445   (eval $ac_try) 2>&5
37446   ac_status=$?
37447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37448   (exit $ac_status); }; }; then
37449   ol_cv_func_gethostbyname_r_nargs5=yes
37450 else
37451   echo "$as_me: failed program was:" >&5
37452 sed 's/^/| /' conftest.$ac_ext >&5
37453
37454 ol_cv_func_gethostbyname_r_nargs5=no
37455 fi
37456 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37457
37458         cat >conftest.$ac_ext <<_ACEOF
37459 /* confdefs.h.  */
37460 _ACEOF
37461 cat confdefs.h >>conftest.$ac_ext
37462 cat >>conftest.$ac_ext <<_ACEOF
37463 /* end confdefs.h.  */
37464 #include <sys/types.h>
37465 #include <sys/socket.h>
37466 #include <netinet/in.h>
37467 #include <netdb.h>
37468 #define BUFSIZE (sizeof(struct hostent)+10)
37469 int
37470 main ()
37471 {
37472 struct hostent hent;struct hostent *rhent;
37473                 char buffer[BUFSIZE];
37474                 int bufsize=BUFSIZE;int h_errno;
37475                 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
37476                         &rhent, &h_errno);
37477   ;
37478   return 0;
37479 }
37480 _ACEOF
37481 rm -f conftest.$ac_objext
37482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37483   (eval $ac_compile) 2>conftest.er1
37484   ac_status=$?
37485   grep -v '^ *+' conftest.er1 >conftest.err
37486   rm -f conftest.er1
37487   cat conftest.err >&5
37488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37489   (exit $ac_status); } &&
37490          { ac_try='test -z "$ac_c_werror_flag"
37491                          || test ! -s conftest.err'
37492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37493   (eval $ac_try) 2>&5
37494   ac_status=$?
37495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37496   (exit $ac_status); }; } &&
37497          { ac_try='test -s conftest.$ac_objext'
37498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37499   (eval $ac_try) 2>&5
37500   ac_status=$?
37501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37502   (exit $ac_status); }; }; then
37503   ol_cv_func_gethostbyname_r_nargs6=yes
37504 else
37505   echo "$as_me: failed program was:" >&5
37506 sed 's/^/| /' conftest.$ac_ext >&5
37507
37508 ol_cv_func_gethostbyname_r_nargs6=no
37509 fi
37510 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37511
37512         if test $ol_cv_func_gethostbyname_r_nargs5 = yes -a \
37513                 $ol_cv_func_gethostbyname_r_nargs6 = no ; then
37514
37515                 ol_cv_func_gethostbyname_r_nargs=5
37516
37517         elif test $ol_cv_func_gethostbyname_r_nargs5 = no -a \
37518                 $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
37519
37520                 ol_cv_func_gethostbyname_r_nargs=6
37521
37522         else
37523                 ol_cv_func_gethostbyname_r_nargs=0
37524         fi
37525
37526 fi
37527 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyname_r_nargs" >&5
37528 echo "${ECHO_T}$ol_cv_func_gethostbyname_r_nargs" >&6
37529   if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
37530
37531 cat >>confdefs.h <<_ACEOF
37532 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
37533 _ACEOF
37534
37535   fi
37536
37537 else
37538         ol_cv_func_gethostbyname_r_nargs=0
37539 fi
37540
37541 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
37542         echo "$as_me:$LINENO: checking number of arguments of gethostbyaddr_r" >&5
37543 echo $ECHO_N "checking number of arguments of gethostbyaddr_r... $ECHO_C" >&6
37544 if test "${ol_cv_func_gethostbyaddr_r_nargs+set}" = set; then
37545   echo $ECHO_N "(cached) $ECHO_C" >&6
37546 else
37547   cat >conftest.$ac_ext <<_ACEOF
37548 /* confdefs.h.  */
37549 _ACEOF
37550 cat confdefs.h >>conftest.$ac_ext
37551 cat >>conftest.$ac_ext <<_ACEOF
37552 /* end confdefs.h.  */
37553 #include <sys/types.h>
37554 #include <sys/socket.h>
37555 #include <netinet/in.h>
37556 #include <netdb.h>
37557 #define BUFSIZE (sizeof(struct hostent)+10)
37558 int
37559 main ()
37560 {
37561 struct hostent hent; char buffer[BUFSIZE];
37562             struct in_addr add;
37563             size_t alen=sizeof(struct in_addr);
37564             int bufsize=BUFSIZE;int h_errno;
37565                 (void)gethostbyaddr_r( (void *)&(add.s_addr),
37566                         alen, AF_INET, &hent, buffer, bufsize, &h_errno);
37567   ;
37568   return 0;
37569 }
37570 _ACEOF
37571 rm -f conftest.$ac_objext
37572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37573   (eval $ac_compile) 2>conftest.er1
37574   ac_status=$?
37575   grep -v '^ *+' conftest.er1 >conftest.err
37576   rm -f conftest.er1
37577   cat conftest.err >&5
37578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37579   (exit $ac_status); } &&
37580          { ac_try='test -z "$ac_c_werror_flag"
37581                          || test ! -s conftest.err'
37582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37583   (eval $ac_try) 2>&5
37584   ac_status=$?
37585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37586   (exit $ac_status); }; } &&
37587          { ac_try='test -s conftest.$ac_objext'
37588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37589   (eval $ac_try) 2>&5
37590   ac_status=$?
37591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37592   (exit $ac_status); }; }; then
37593   ol_cv_func_gethostbyaddr_r_nargs7=yes
37594 else
37595   echo "$as_me: failed program was:" >&5
37596 sed 's/^/| /' conftest.$ac_ext >&5
37597
37598 ol_cv_func_gethostbyaddr_r_nargs7=no
37599 fi
37600 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37601
37602         cat >conftest.$ac_ext <<_ACEOF
37603 /* confdefs.h.  */
37604 _ACEOF
37605 cat confdefs.h >>conftest.$ac_ext
37606 cat >>conftest.$ac_ext <<_ACEOF
37607 /* end confdefs.h.  */
37608 #include <sys/types.h>
37609 #include <sys/socket.h>
37610 #include <netinet/in.h>
37611 #include <netdb.h>
37612 #define BUFSIZE (sizeof(struct hostent)+10)
37613 int
37614 main ()
37615 {
37616 struct hostent hent;
37617                 struct hostent *rhent; char buffer[BUFSIZE];
37618                 struct in_addr add;
37619                 size_t alen=sizeof(struct in_addr);
37620                 int bufsize=BUFSIZE;int h_errno;
37621                 (void)gethostbyaddr_r( (void *)&(add.s_addr),
37622                         alen, AF_INET, &hent, buffer, bufsize,
37623                         &rhent, &h_errno);
37624   ;
37625   return 0;
37626 }
37627 _ACEOF
37628 rm -f conftest.$ac_objext
37629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37630   (eval $ac_compile) 2>conftest.er1
37631   ac_status=$?
37632   grep -v '^ *+' conftest.er1 >conftest.err
37633   rm -f conftest.er1
37634   cat conftest.err >&5
37635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37636   (exit $ac_status); } &&
37637          { ac_try='test -z "$ac_c_werror_flag"
37638                          || test ! -s conftest.err'
37639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37640   (eval $ac_try) 2>&5
37641   ac_status=$?
37642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37643   (exit $ac_status); }; } &&
37644          { ac_try='test -s conftest.$ac_objext'
37645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37646   (eval $ac_try) 2>&5
37647   ac_status=$?
37648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37649   (exit $ac_status); }; }; then
37650   ol_cv_func_gethostbyaddr_r_nargs8=yes
37651 else
37652   echo "$as_me: failed program was:" >&5
37653 sed 's/^/| /' conftest.$ac_ext >&5
37654
37655 ol_cv_func_gethostbyaddr_r_nargs8=no
37656 fi
37657 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37658
37659         if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes -a \
37660                 $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
37661
37662                 ol_cv_func_gethostbyaddr_r_nargs=7
37663
37664         elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no -a \
37665                 $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
37666
37667                 ol_cv_func_gethostbyaddr_r_nargs=8
37668
37669         else
37670                 ol_cv_func_gethostbyaddr_r_nargs=0
37671         fi
37672
37673 fi
37674 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyaddr_r_nargs" >&5
37675 echo "${ECHO_T}$ol_cv_func_gethostbyaddr_r_nargs" >&6
37676   if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
37677
37678 cat >>confdefs.h <<_ACEOF
37679 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
37680 _ACEOF
37681
37682   fi
37683
37684 else
37685         ol_cv_func_gethostbyaddr_r_nargs=0
37686 fi
37687
37688 ol_link_ldbm=no
37689
37690 if test $ol_with_ldbm_api = auto \
37691         -o $ol_with_ldbm_api = berkeley \
37692         -o $ol_with_ldbm_api = bcompat ; then
37693
37694         if test $ol_with_ldbm_api = bcompat; then \
37695
37696
37697 for ac_header in db_185.h db.h
37698 do
37699 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37700 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37701   echo "$as_me:$LINENO: checking for $ac_header" >&5
37702 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37703 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37704   echo $ECHO_N "(cached) $ECHO_C" >&6
37705 fi
37706 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37707 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37708 else
37709   # Is the header compilable?
37710 echo "$as_me:$LINENO: checking $ac_header usability" >&5
37711 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37712 cat >conftest.$ac_ext <<_ACEOF
37713 /* confdefs.h.  */
37714 _ACEOF
37715 cat confdefs.h >>conftest.$ac_ext
37716 cat >>conftest.$ac_ext <<_ACEOF
37717 /* end confdefs.h.  */
37718 $ac_includes_default
37719 #include <$ac_header>
37720 _ACEOF
37721 rm -f conftest.$ac_objext
37722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37723   (eval $ac_compile) 2>conftest.er1
37724   ac_status=$?
37725   grep -v '^ *+' conftest.er1 >conftest.err
37726   rm -f conftest.er1
37727   cat conftest.err >&5
37728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37729   (exit $ac_status); } &&
37730          { ac_try='test -z "$ac_c_werror_flag"
37731                          || test ! -s conftest.err'
37732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37733   (eval $ac_try) 2>&5
37734   ac_status=$?
37735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37736   (exit $ac_status); }; } &&
37737          { ac_try='test -s conftest.$ac_objext'
37738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37739   (eval $ac_try) 2>&5
37740   ac_status=$?
37741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37742   (exit $ac_status); }; }; then
37743   ac_header_compiler=yes
37744 else
37745   echo "$as_me: failed program was:" >&5
37746 sed 's/^/| /' conftest.$ac_ext >&5
37747
37748 ac_header_compiler=no
37749 fi
37750 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37751 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37752 echo "${ECHO_T}$ac_header_compiler" >&6
37753
37754 # Is the header present?
37755 echo "$as_me:$LINENO: checking $ac_header presence" >&5
37756 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37757 cat >conftest.$ac_ext <<_ACEOF
37758 /* confdefs.h.  */
37759 _ACEOF
37760 cat confdefs.h >>conftest.$ac_ext
37761 cat >>conftest.$ac_ext <<_ACEOF
37762 /* end confdefs.h.  */
37763 #include <$ac_header>
37764 _ACEOF
37765 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37766   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37767   ac_status=$?
37768   grep -v '^ *+' conftest.er1 >conftest.err
37769   rm -f conftest.er1
37770   cat conftest.err >&5
37771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37772   (exit $ac_status); } >/dev/null; then
37773   if test -s conftest.err; then
37774     ac_cpp_err=$ac_c_preproc_warn_flag
37775     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
37776   else
37777     ac_cpp_err=
37778   fi
37779 else
37780   ac_cpp_err=yes
37781 fi
37782 if test -z "$ac_cpp_err"; then
37783   ac_header_preproc=yes
37784 else
37785   echo "$as_me: failed program was:" >&5
37786 sed 's/^/| /' conftest.$ac_ext >&5
37787
37788   ac_header_preproc=no
37789 fi
37790 rm -f conftest.err conftest.$ac_ext
37791 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37792 echo "${ECHO_T}$ac_header_preproc" >&6
37793
37794 # So?  What about this header?
37795 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37796   yes:no: )
37797     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37798 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37799     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37800 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37801     ac_header_preproc=yes
37802     ;;
37803   no:yes:* )
37804     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37805 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37806     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
37807 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
37808     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37809 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37810     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
37811 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
37812     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37813 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37814     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37815 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37816     (
37817       cat <<\_ASBOX
37818 ## ------------------------------------------ ##
37819 ## Report this to the AC_PACKAGE_NAME lists.  ##
37820 ## ------------------------------------------ ##
37821 _ASBOX
37822     ) |
37823       sed "s/^/$as_me: WARNING:     /" >&2
37824     ;;
37825 esac
37826 echo "$as_me:$LINENO: checking for $ac_header" >&5
37827 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37828 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37829   echo $ECHO_N "(cached) $ECHO_C" >&6
37830 else
37831   eval "$as_ac_Header=\$ac_header_preproc"
37832 fi
37833 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37834 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37835
37836 fi
37837 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37838   cat >>confdefs.h <<_ACEOF
37839 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37840 _ACEOF
37841
37842 fi
37843
37844 done
37845
37846 if test $ac_cv_header_db_185_h = yes -o $ac_cv_header_db_h = yes; then
37847         echo "$as_me:$LINENO: checking if Berkeley DB header compatibility" >&5
37848 echo $ECHO_N "checking if Berkeley DB header compatibility... $ECHO_C" >&6
37849 if test "${ol_cv_header_db1+set}" = set; then
37850   echo $ECHO_N "(cached) $ECHO_C" >&6
37851 else
37852
37853                 cat >conftest.$ac_ext <<_ACEOF
37854 /* confdefs.h.  */
37855 _ACEOF
37856 cat confdefs.h >>conftest.$ac_ext
37857 cat >>conftest.$ac_ext <<_ACEOF
37858 /* end confdefs.h.  */
37859
37860 #if HAVE_DB_185_H
37861 #       include <db_185.h>
37862 #else
37863 #       include <db.h>
37864 #endif
37865
37866  /* this check could be improved */
37867 #ifndef DB_VERSION_MAJOR
37868 #       define DB_VERSION_MAJOR 1
37869 #endif
37870
37871 #if DB_VERSION_MAJOR == 1
37872         __db_version_1
37873 #endif
37874
37875 _ACEOF
37876 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37877   $EGREP "__db_version_1" >/dev/null 2>&1; then
37878   ol_cv_header_db1=yes
37879 else
37880   ol_cv_header_db1=no
37881 fi
37882 rm -f conftest*
37883
37884 fi
37885 echo "$as_me:$LINENO: result: $ol_cv_header_db1" >&5
37886 echo "${ECHO_T}$ol_cv_header_db1" >&6
37887
37888         if test $ol_cv_header_db1 = yes ; then
37889                 ol_cv_lib_db=no
37890 if test $ol_cv_lib_db = no ; then
37891         echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
37892 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6
37893 if test "${ol_cv_db_none+set}" = set; then
37894   echo $ECHO_N "(cached) $ECHO_C" >&6
37895 else
37896
37897         ol_DB_LIB=
37898         ol_LIBS=$LIBS
37899         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
37900
37901         cat >conftest.$ac_ext <<_ACEOF
37902 /* confdefs.h.  */
37903 _ACEOF
37904 cat confdefs.h >>conftest.$ac_ext
37905 cat >>conftest.$ac_ext <<_ACEOF
37906 /* end confdefs.h.  */
37907
37908 #ifdef HAVE_DB_185_H
37909 # include <db_185.h>
37910 #else
37911 # include <db.h>
37912 #endif
37913
37914 #ifndef DB_VERSION_MAJOR
37915 # define DB_VERSION_MAJOR 1
37916 #endif
37917
37918 #ifndef NULL
37919 #define NULL ((void*)0)
37920 #endif
37921
37922 int
37923 main ()
37924 {
37925
37926 #if DB_VERSION_MAJOR > 1
37927         {
37928                 char *version;
37929                 int major, minor, patch;
37930
37931                 version = db_version( &major, &minor, &patch );
37932
37933                 if( major != DB_VERSION_MAJOR ||
37934                         minor < DB_VERSION_MINOR )
37935                 {
37936                         printf("Berkeley DB version mismatch\n"
37937                                 "\theader: %s\n\tlibrary: %s\n",
37938                                 DB_VERSION_STRING, version);
37939                         return 1;
37940                 }
37941         }
37942 #endif
37943
37944 #if DB_VERSION_MAJOR > 2
37945         db_env_create( NULL, 0 );
37946 #elif DB_VERSION_MAJOR > 1
37947         db_appexit( NULL );
37948 #else
37949         (void) dbopen( NULL, 0, 0, 0, NULL);
37950 #endif
37951
37952   ;
37953   return 0;
37954 }
37955 _ACEOF
37956 rm -f conftest.$ac_objext conftest$ac_exeext
37957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37958   (eval $ac_link) 2>conftest.er1
37959   ac_status=$?
37960   grep -v '^ *+' conftest.er1 >conftest.err
37961   rm -f conftest.er1
37962   cat conftest.err >&5
37963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37964   (exit $ac_status); } &&
37965          { ac_try='test -z "$ac_c_werror_flag"
37966                          || test ! -s conftest.err'
37967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37968   (eval $ac_try) 2>&5
37969   ac_status=$?
37970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37971   (exit $ac_status); }; } &&
37972          { ac_try='test -s conftest$ac_exeext'
37973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37974   (eval $ac_try) 2>&5
37975   ac_status=$?
37976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37977   (exit $ac_status); }; }; then
37978   ol_cv_db_none=yes
37979 else
37980   echo "$as_me: failed program was:" >&5
37981 sed 's/^/| /' conftest.$ac_ext >&5
37982
37983 ol_cv_db_none=no
37984 fi
37985 rm -f conftest.err conftest.$ac_objext \
37986       conftest$ac_exeext conftest.$ac_ext
37987
37988         LIBS="$ol_LIBS"
37989
37990 fi
37991 echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
37992 echo "${ECHO_T}$ol_cv_db_none" >&6
37993
37994         if test $ol_cv_db_none = yes ; then
37995                 ol_cv_lib_db=yes
37996         fi
37997 fi
37998
37999 if test $ol_cv_lib_db = no ; then
38000         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb43)" >&5
38001 echo $ECHO_N "checking for Berkeley DB link (-ldb43)... $ECHO_C" >&6
38002 if test "${ol_cv_db_db43+set}" = set; then
38003   echo $ECHO_N "(cached) $ECHO_C" >&6
38004 else
38005
38006         ol_DB_LIB=-ldb43
38007         ol_LIBS=$LIBS
38008         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38009
38010         cat >conftest.$ac_ext <<_ACEOF
38011 /* confdefs.h.  */
38012 _ACEOF
38013 cat confdefs.h >>conftest.$ac_ext
38014 cat >>conftest.$ac_ext <<_ACEOF
38015 /* end confdefs.h.  */
38016
38017 #ifdef HAVE_DB_185_H
38018 # include <db_185.h>
38019 #else
38020 # include <db.h>
38021 #endif
38022
38023 #ifndef DB_VERSION_MAJOR
38024 # define DB_VERSION_MAJOR 1
38025 #endif
38026
38027 #ifndef NULL
38028 #define NULL ((void*)0)
38029 #endif
38030
38031 int
38032 main ()
38033 {
38034
38035 #if DB_VERSION_MAJOR > 1
38036         {
38037                 char *version;
38038                 int major, minor, patch;
38039
38040                 version = db_version( &major, &minor, &patch );
38041
38042                 if( major != DB_VERSION_MAJOR ||
38043                         minor < DB_VERSION_MINOR )
38044                 {
38045                         printf("Berkeley DB version mismatch\n"
38046                                 "\theader: %s\n\tlibrary: %s\n",
38047                                 DB_VERSION_STRING, version);
38048                         return 1;
38049                 }
38050         }
38051 #endif
38052
38053 #if DB_VERSION_MAJOR > 2
38054         db_env_create( NULL, 0 );
38055 #elif DB_VERSION_MAJOR > 1
38056         db_appexit( NULL );
38057 #else
38058         (void) dbopen( NULL, 0, 0, 0, NULL);
38059 #endif
38060
38061   ;
38062   return 0;
38063 }
38064 _ACEOF
38065 rm -f conftest.$ac_objext conftest$ac_exeext
38066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38067   (eval $ac_link) 2>conftest.er1
38068   ac_status=$?
38069   grep -v '^ *+' conftest.er1 >conftest.err
38070   rm -f conftest.er1
38071   cat conftest.err >&5
38072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38073   (exit $ac_status); } &&
38074          { ac_try='test -z "$ac_c_werror_flag"
38075                          || test ! -s conftest.err'
38076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38077   (eval $ac_try) 2>&5
38078   ac_status=$?
38079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38080   (exit $ac_status); }; } &&
38081          { ac_try='test -s conftest$ac_exeext'
38082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38083   (eval $ac_try) 2>&5
38084   ac_status=$?
38085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38086   (exit $ac_status); }; }; then
38087   ol_cv_db_db43=yes
38088 else
38089   echo "$as_me: failed program was:" >&5
38090 sed 's/^/| /' conftest.$ac_ext >&5
38091
38092 ol_cv_db_db43=no
38093 fi
38094 rm -f conftest.err conftest.$ac_objext \
38095       conftest$ac_exeext conftest.$ac_ext
38096
38097         LIBS="$ol_LIBS"
38098
38099 fi
38100 echo "$as_me:$LINENO: result: $ol_cv_db_db43" >&5
38101 echo "${ECHO_T}$ol_cv_db_db43" >&6
38102
38103         if test $ol_cv_db_db43 = yes ; then
38104                 ol_cv_lib_db=-ldb43
38105         fi
38106 fi
38107
38108 if test $ol_cv_lib_db = no ; then
38109         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-43)" >&5
38110 echo $ECHO_N "checking for Berkeley DB link (-ldb-43)... $ECHO_C" >&6
38111 if test "${ol_cv_db_db_43+set}" = set; then
38112   echo $ECHO_N "(cached) $ECHO_C" >&6
38113 else
38114
38115         ol_DB_LIB=-ldb-43
38116         ol_LIBS=$LIBS
38117         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38118
38119         cat >conftest.$ac_ext <<_ACEOF
38120 /* confdefs.h.  */
38121 _ACEOF
38122 cat confdefs.h >>conftest.$ac_ext
38123 cat >>conftest.$ac_ext <<_ACEOF
38124 /* end confdefs.h.  */
38125
38126 #ifdef HAVE_DB_185_H
38127 # include <db_185.h>
38128 #else
38129 # include <db.h>
38130 #endif
38131
38132 #ifndef DB_VERSION_MAJOR
38133 # define DB_VERSION_MAJOR 1
38134 #endif
38135
38136 #ifndef NULL
38137 #define NULL ((void*)0)
38138 #endif
38139
38140 int
38141 main ()
38142 {
38143
38144 #if DB_VERSION_MAJOR > 1
38145         {
38146                 char *version;
38147                 int major, minor, patch;
38148
38149                 version = db_version( &major, &minor, &patch );
38150
38151                 if( major != DB_VERSION_MAJOR ||
38152                         minor < DB_VERSION_MINOR )
38153                 {
38154                         printf("Berkeley DB version mismatch\n"
38155                                 "\theader: %s\n\tlibrary: %s\n",
38156                                 DB_VERSION_STRING, version);
38157                         return 1;
38158                 }
38159         }
38160 #endif
38161
38162 #if DB_VERSION_MAJOR > 2
38163         db_env_create( NULL, 0 );
38164 #elif DB_VERSION_MAJOR > 1
38165         db_appexit( NULL );
38166 #else
38167         (void) dbopen( NULL, 0, 0, 0, NULL);
38168 #endif
38169
38170   ;
38171   return 0;
38172 }
38173 _ACEOF
38174 rm -f conftest.$ac_objext conftest$ac_exeext
38175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38176   (eval $ac_link) 2>conftest.er1
38177   ac_status=$?
38178   grep -v '^ *+' conftest.er1 >conftest.err
38179   rm -f conftest.er1
38180   cat conftest.err >&5
38181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38182   (exit $ac_status); } &&
38183          { ac_try='test -z "$ac_c_werror_flag"
38184                          || test ! -s conftest.err'
38185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38186   (eval $ac_try) 2>&5
38187   ac_status=$?
38188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38189   (exit $ac_status); }; } &&
38190          { ac_try='test -s conftest$ac_exeext'
38191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38192   (eval $ac_try) 2>&5
38193   ac_status=$?
38194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38195   (exit $ac_status); }; }; then
38196   ol_cv_db_db_43=yes
38197 else
38198   echo "$as_me: failed program was:" >&5
38199 sed 's/^/| /' conftest.$ac_ext >&5
38200
38201 ol_cv_db_db_43=no
38202 fi
38203 rm -f conftest.err conftest.$ac_objext \
38204       conftest$ac_exeext conftest.$ac_ext
38205
38206         LIBS="$ol_LIBS"
38207
38208 fi
38209 echo "$as_me:$LINENO: result: $ol_cv_db_db_43" >&5
38210 echo "${ECHO_T}$ol_cv_db_db_43" >&6
38211
38212         if test $ol_cv_db_db_43 = yes ; then
38213                 ol_cv_lib_db=-ldb-43
38214         fi
38215 fi
38216
38217 if test $ol_cv_lib_db = no ; then
38218         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.3)" >&5
38219 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.3)... $ECHO_C" >&6
38220 if test "${ol_cv_db_db_4_dot_3+set}" = set; then
38221   echo $ECHO_N "(cached) $ECHO_C" >&6
38222 else
38223
38224         ol_DB_LIB=-ldb-4.3
38225         ol_LIBS=$LIBS
38226         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38227
38228         cat >conftest.$ac_ext <<_ACEOF
38229 /* confdefs.h.  */
38230 _ACEOF
38231 cat confdefs.h >>conftest.$ac_ext
38232 cat >>conftest.$ac_ext <<_ACEOF
38233 /* end confdefs.h.  */
38234
38235 #ifdef HAVE_DB_185_H
38236 # include <db_185.h>
38237 #else
38238 # include <db.h>
38239 #endif
38240
38241 #ifndef DB_VERSION_MAJOR
38242 # define DB_VERSION_MAJOR 1
38243 #endif
38244
38245 #ifndef NULL
38246 #define NULL ((void*)0)
38247 #endif
38248
38249 int
38250 main ()
38251 {
38252
38253 #if DB_VERSION_MAJOR > 1
38254         {
38255                 char *version;
38256                 int major, minor, patch;
38257
38258                 version = db_version( &major, &minor, &patch );
38259
38260                 if( major != DB_VERSION_MAJOR ||
38261                         minor < DB_VERSION_MINOR )
38262                 {
38263                         printf("Berkeley DB version mismatch\n"
38264                                 "\theader: %s\n\tlibrary: %s\n",
38265                                 DB_VERSION_STRING, version);
38266                         return 1;
38267                 }
38268         }
38269 #endif
38270
38271 #if DB_VERSION_MAJOR > 2
38272         db_env_create( NULL, 0 );
38273 #elif DB_VERSION_MAJOR > 1
38274         db_appexit( NULL );
38275 #else
38276         (void) dbopen( NULL, 0, 0, 0, NULL);
38277 #endif
38278
38279   ;
38280   return 0;
38281 }
38282 _ACEOF
38283 rm -f conftest.$ac_objext conftest$ac_exeext
38284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38285   (eval $ac_link) 2>conftest.er1
38286   ac_status=$?
38287   grep -v '^ *+' conftest.er1 >conftest.err
38288   rm -f conftest.er1
38289   cat conftest.err >&5
38290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38291   (exit $ac_status); } &&
38292          { ac_try='test -z "$ac_c_werror_flag"
38293                          || test ! -s conftest.err'
38294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38295   (eval $ac_try) 2>&5
38296   ac_status=$?
38297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38298   (exit $ac_status); }; } &&
38299          { ac_try='test -s conftest$ac_exeext'
38300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38301   (eval $ac_try) 2>&5
38302   ac_status=$?
38303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38304   (exit $ac_status); }; }; then
38305   ol_cv_db_db_4_dot_3=yes
38306 else
38307   echo "$as_me: failed program was:" >&5
38308 sed 's/^/| /' conftest.$ac_ext >&5
38309
38310 ol_cv_db_db_4_dot_3=no
38311 fi
38312 rm -f conftest.err conftest.$ac_objext \
38313       conftest$ac_exeext conftest.$ac_ext
38314
38315         LIBS="$ol_LIBS"
38316
38317 fi
38318 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_3" >&5
38319 echo "${ECHO_T}$ol_cv_db_db_4_dot_3" >&6
38320
38321         if test $ol_cv_db_db_4_dot_3 = yes ; then
38322                 ol_cv_lib_db=-ldb-4.3
38323         fi
38324 fi
38325
38326 if test $ol_cv_lib_db = no ; then
38327         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-3)" >&5
38328 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-3)... $ECHO_C" >&6
38329 if test "${ol_cv_db_db_4_3+set}" = set; then
38330   echo $ECHO_N "(cached) $ECHO_C" >&6
38331 else
38332
38333         ol_DB_LIB=-ldb-4-3
38334         ol_LIBS=$LIBS
38335         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38336
38337         cat >conftest.$ac_ext <<_ACEOF
38338 /* confdefs.h.  */
38339 _ACEOF
38340 cat confdefs.h >>conftest.$ac_ext
38341 cat >>conftest.$ac_ext <<_ACEOF
38342 /* end confdefs.h.  */
38343
38344 #ifdef HAVE_DB_185_H
38345 # include <db_185.h>
38346 #else
38347 # include <db.h>
38348 #endif
38349
38350 #ifndef DB_VERSION_MAJOR
38351 # define DB_VERSION_MAJOR 1
38352 #endif
38353
38354 #ifndef NULL
38355 #define NULL ((void*)0)
38356 #endif
38357
38358 int
38359 main ()
38360 {
38361
38362 #if DB_VERSION_MAJOR > 1
38363         {
38364                 char *version;
38365                 int major, minor, patch;
38366
38367                 version = db_version( &major, &minor, &patch );
38368
38369                 if( major != DB_VERSION_MAJOR ||
38370                         minor < DB_VERSION_MINOR )
38371                 {
38372                         printf("Berkeley DB version mismatch\n"
38373                                 "\theader: %s\n\tlibrary: %s\n",
38374                                 DB_VERSION_STRING, version);
38375                         return 1;
38376                 }
38377         }
38378 #endif
38379
38380 #if DB_VERSION_MAJOR > 2
38381         db_env_create( NULL, 0 );
38382 #elif DB_VERSION_MAJOR > 1
38383         db_appexit( NULL );
38384 #else
38385         (void) dbopen( NULL, 0, 0, 0, NULL);
38386 #endif
38387
38388   ;
38389   return 0;
38390 }
38391 _ACEOF
38392 rm -f conftest.$ac_objext conftest$ac_exeext
38393 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38394   (eval $ac_link) 2>conftest.er1
38395   ac_status=$?
38396   grep -v '^ *+' conftest.er1 >conftest.err
38397   rm -f conftest.er1
38398   cat conftest.err >&5
38399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38400   (exit $ac_status); } &&
38401          { ac_try='test -z "$ac_c_werror_flag"
38402                          || test ! -s conftest.err'
38403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38404   (eval $ac_try) 2>&5
38405   ac_status=$?
38406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38407   (exit $ac_status); }; } &&
38408          { ac_try='test -s conftest$ac_exeext'
38409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38410   (eval $ac_try) 2>&5
38411   ac_status=$?
38412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38413   (exit $ac_status); }; }; then
38414   ol_cv_db_db_4_3=yes
38415 else
38416   echo "$as_me: failed program was:" >&5
38417 sed 's/^/| /' conftest.$ac_ext >&5
38418
38419 ol_cv_db_db_4_3=no
38420 fi
38421 rm -f conftest.err conftest.$ac_objext \
38422       conftest$ac_exeext conftest.$ac_ext
38423
38424         LIBS="$ol_LIBS"
38425
38426 fi
38427 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_3" >&5
38428 echo "${ECHO_T}$ol_cv_db_db_4_3" >&6
38429
38430         if test $ol_cv_db_db_4_3 = yes ; then
38431                 ol_cv_lib_db=-ldb-4-3
38432         fi
38433 fi
38434
38435 if test $ol_cv_lib_db = no ; then
38436         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb42)" >&5
38437 echo $ECHO_N "checking for Berkeley DB link (-ldb42)... $ECHO_C" >&6
38438 if test "${ol_cv_db_db42+set}" = set; then
38439   echo $ECHO_N "(cached) $ECHO_C" >&6
38440 else
38441
38442         ol_DB_LIB=-ldb42
38443         ol_LIBS=$LIBS
38444         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38445
38446         cat >conftest.$ac_ext <<_ACEOF
38447 /* confdefs.h.  */
38448 _ACEOF
38449 cat confdefs.h >>conftest.$ac_ext
38450 cat >>conftest.$ac_ext <<_ACEOF
38451 /* end confdefs.h.  */
38452
38453 #ifdef HAVE_DB_185_H
38454 # include <db_185.h>
38455 #else
38456 # include <db.h>
38457 #endif
38458
38459 #ifndef DB_VERSION_MAJOR
38460 # define DB_VERSION_MAJOR 1
38461 #endif
38462
38463 #ifndef NULL
38464 #define NULL ((void*)0)
38465 #endif
38466
38467 int
38468 main ()
38469 {
38470
38471 #if DB_VERSION_MAJOR > 1
38472         {
38473                 char *version;
38474                 int major, minor, patch;
38475
38476                 version = db_version( &major, &minor, &patch );
38477
38478                 if( major != DB_VERSION_MAJOR ||
38479                         minor < DB_VERSION_MINOR )
38480                 {
38481                         printf("Berkeley DB version mismatch\n"
38482                                 "\theader: %s\n\tlibrary: %s\n",
38483                                 DB_VERSION_STRING, version);
38484                         return 1;
38485                 }
38486         }
38487 #endif
38488
38489 #if DB_VERSION_MAJOR > 2
38490         db_env_create( NULL, 0 );
38491 #elif DB_VERSION_MAJOR > 1
38492         db_appexit( NULL );
38493 #else
38494         (void) dbopen( NULL, 0, 0, 0, NULL);
38495 #endif
38496
38497   ;
38498   return 0;
38499 }
38500 _ACEOF
38501 rm -f conftest.$ac_objext conftest$ac_exeext
38502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38503   (eval $ac_link) 2>conftest.er1
38504   ac_status=$?
38505   grep -v '^ *+' conftest.er1 >conftest.err
38506   rm -f conftest.er1
38507   cat conftest.err >&5
38508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38509   (exit $ac_status); } &&
38510          { ac_try='test -z "$ac_c_werror_flag"
38511                          || test ! -s conftest.err'
38512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38513   (eval $ac_try) 2>&5
38514   ac_status=$?
38515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38516   (exit $ac_status); }; } &&
38517          { ac_try='test -s conftest$ac_exeext'
38518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38519   (eval $ac_try) 2>&5
38520   ac_status=$?
38521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38522   (exit $ac_status); }; }; then
38523   ol_cv_db_db42=yes
38524 else
38525   echo "$as_me: failed program was:" >&5
38526 sed 's/^/| /' conftest.$ac_ext >&5
38527
38528 ol_cv_db_db42=no
38529 fi
38530 rm -f conftest.err conftest.$ac_objext \
38531       conftest$ac_exeext conftest.$ac_ext
38532
38533         LIBS="$ol_LIBS"
38534
38535 fi
38536 echo "$as_me:$LINENO: result: $ol_cv_db_db42" >&5
38537 echo "${ECHO_T}$ol_cv_db_db42" >&6
38538
38539         if test $ol_cv_db_db42 = yes ; then
38540                 ol_cv_lib_db=-ldb42
38541         fi
38542 fi
38543
38544 if test $ol_cv_lib_db = no ; then
38545         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-42)" >&5
38546 echo $ECHO_N "checking for Berkeley DB link (-ldb-42)... $ECHO_C" >&6
38547 if test "${ol_cv_db_db_42+set}" = set; then
38548   echo $ECHO_N "(cached) $ECHO_C" >&6
38549 else
38550
38551         ol_DB_LIB=-ldb-42
38552         ol_LIBS=$LIBS
38553         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38554
38555         cat >conftest.$ac_ext <<_ACEOF
38556 /* confdefs.h.  */
38557 _ACEOF
38558 cat confdefs.h >>conftest.$ac_ext
38559 cat >>conftest.$ac_ext <<_ACEOF
38560 /* end confdefs.h.  */
38561
38562 #ifdef HAVE_DB_185_H
38563 # include <db_185.h>
38564 #else
38565 # include <db.h>
38566 #endif
38567
38568 #ifndef DB_VERSION_MAJOR
38569 # define DB_VERSION_MAJOR 1
38570 #endif
38571
38572 #ifndef NULL
38573 #define NULL ((void*)0)
38574 #endif
38575
38576 int
38577 main ()
38578 {
38579
38580 #if DB_VERSION_MAJOR > 1
38581         {
38582                 char *version;
38583                 int major, minor, patch;
38584
38585                 version = db_version( &major, &minor, &patch );
38586
38587                 if( major != DB_VERSION_MAJOR ||
38588                         minor < DB_VERSION_MINOR )
38589                 {
38590                         printf("Berkeley DB version mismatch\n"
38591                                 "\theader: %s\n\tlibrary: %s\n",
38592                                 DB_VERSION_STRING, version);
38593                         return 1;
38594                 }
38595         }
38596 #endif
38597
38598 #if DB_VERSION_MAJOR > 2
38599         db_env_create( NULL, 0 );
38600 #elif DB_VERSION_MAJOR > 1
38601         db_appexit( NULL );
38602 #else
38603         (void) dbopen( NULL, 0, 0, 0, NULL);
38604 #endif
38605
38606   ;
38607   return 0;
38608 }
38609 _ACEOF
38610 rm -f conftest.$ac_objext conftest$ac_exeext
38611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38612   (eval $ac_link) 2>conftest.er1
38613   ac_status=$?
38614   grep -v '^ *+' conftest.er1 >conftest.err
38615   rm -f conftest.er1
38616   cat conftest.err >&5
38617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38618   (exit $ac_status); } &&
38619          { ac_try='test -z "$ac_c_werror_flag"
38620                          || test ! -s conftest.err'
38621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38622   (eval $ac_try) 2>&5
38623   ac_status=$?
38624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38625   (exit $ac_status); }; } &&
38626          { ac_try='test -s conftest$ac_exeext'
38627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38628   (eval $ac_try) 2>&5
38629   ac_status=$?
38630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38631   (exit $ac_status); }; }; then
38632   ol_cv_db_db_42=yes
38633 else
38634   echo "$as_me: failed program was:" >&5
38635 sed 's/^/| /' conftest.$ac_ext >&5
38636
38637 ol_cv_db_db_42=no
38638 fi
38639 rm -f conftest.err conftest.$ac_objext \
38640       conftest$ac_exeext conftest.$ac_ext
38641
38642         LIBS="$ol_LIBS"
38643
38644 fi
38645 echo "$as_me:$LINENO: result: $ol_cv_db_db_42" >&5
38646 echo "${ECHO_T}$ol_cv_db_db_42" >&6
38647
38648         if test $ol_cv_db_db_42 = yes ; then
38649                 ol_cv_lib_db=-ldb-42
38650         fi
38651 fi
38652
38653 if test $ol_cv_lib_db = no ; then
38654         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.2)" >&5
38655 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.2)... $ECHO_C" >&6
38656 if test "${ol_cv_db_db_4_dot_2+set}" = set; then
38657   echo $ECHO_N "(cached) $ECHO_C" >&6
38658 else
38659
38660         ol_DB_LIB=-ldb-4.2
38661         ol_LIBS=$LIBS
38662         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38663
38664         cat >conftest.$ac_ext <<_ACEOF
38665 /* confdefs.h.  */
38666 _ACEOF
38667 cat confdefs.h >>conftest.$ac_ext
38668 cat >>conftest.$ac_ext <<_ACEOF
38669 /* end confdefs.h.  */
38670
38671 #ifdef HAVE_DB_185_H
38672 # include <db_185.h>
38673 #else
38674 # include <db.h>
38675 #endif
38676
38677 #ifndef DB_VERSION_MAJOR
38678 # define DB_VERSION_MAJOR 1
38679 #endif
38680
38681 #ifndef NULL
38682 #define NULL ((void*)0)
38683 #endif
38684
38685 int
38686 main ()
38687 {
38688
38689 #if DB_VERSION_MAJOR > 1
38690         {
38691                 char *version;
38692                 int major, minor, patch;
38693
38694                 version = db_version( &major, &minor, &patch );
38695
38696                 if( major != DB_VERSION_MAJOR ||
38697                         minor < DB_VERSION_MINOR )
38698                 {
38699                         printf("Berkeley DB version mismatch\n"
38700                                 "\theader: %s\n\tlibrary: %s\n",
38701                                 DB_VERSION_STRING, version);
38702                         return 1;
38703                 }
38704         }
38705 #endif
38706
38707 #if DB_VERSION_MAJOR > 2
38708         db_env_create( NULL, 0 );
38709 #elif DB_VERSION_MAJOR > 1
38710         db_appexit( NULL );
38711 #else
38712         (void) dbopen( NULL, 0, 0, 0, NULL);
38713 #endif
38714
38715   ;
38716   return 0;
38717 }
38718 _ACEOF
38719 rm -f conftest.$ac_objext conftest$ac_exeext
38720 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38721   (eval $ac_link) 2>conftest.er1
38722   ac_status=$?
38723   grep -v '^ *+' conftest.er1 >conftest.err
38724   rm -f conftest.er1
38725   cat conftest.err >&5
38726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38727   (exit $ac_status); } &&
38728          { ac_try='test -z "$ac_c_werror_flag"
38729                          || test ! -s conftest.err'
38730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38731   (eval $ac_try) 2>&5
38732   ac_status=$?
38733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38734   (exit $ac_status); }; } &&
38735          { ac_try='test -s conftest$ac_exeext'
38736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38737   (eval $ac_try) 2>&5
38738   ac_status=$?
38739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38740   (exit $ac_status); }; }; then
38741   ol_cv_db_db_4_dot_2=yes
38742 else
38743   echo "$as_me: failed program was:" >&5
38744 sed 's/^/| /' conftest.$ac_ext >&5
38745
38746 ol_cv_db_db_4_dot_2=no
38747 fi
38748 rm -f conftest.err conftest.$ac_objext \
38749       conftest$ac_exeext conftest.$ac_ext
38750
38751         LIBS="$ol_LIBS"
38752
38753 fi
38754 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_2" >&5
38755 echo "${ECHO_T}$ol_cv_db_db_4_dot_2" >&6
38756
38757         if test $ol_cv_db_db_4_dot_2 = yes ; then
38758                 ol_cv_lib_db=-ldb-4.2
38759         fi
38760 fi
38761
38762 if test $ol_cv_lib_db = no ; then
38763         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-2)" >&5
38764 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-2)... $ECHO_C" >&6
38765 if test "${ol_cv_db_db_4_2+set}" = set; then
38766   echo $ECHO_N "(cached) $ECHO_C" >&6
38767 else
38768
38769         ol_DB_LIB=-ldb-4-2
38770         ol_LIBS=$LIBS
38771         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38772
38773         cat >conftest.$ac_ext <<_ACEOF
38774 /* confdefs.h.  */
38775 _ACEOF
38776 cat confdefs.h >>conftest.$ac_ext
38777 cat >>conftest.$ac_ext <<_ACEOF
38778 /* end confdefs.h.  */
38779
38780 #ifdef HAVE_DB_185_H
38781 # include <db_185.h>
38782 #else
38783 # include <db.h>
38784 #endif
38785
38786 #ifndef DB_VERSION_MAJOR
38787 # define DB_VERSION_MAJOR 1
38788 #endif
38789
38790 #ifndef NULL
38791 #define NULL ((void*)0)
38792 #endif
38793
38794 int
38795 main ()
38796 {
38797
38798 #if DB_VERSION_MAJOR > 1
38799         {
38800                 char *version;
38801                 int major, minor, patch;
38802
38803                 version = db_version( &major, &minor, &patch );
38804
38805                 if( major != DB_VERSION_MAJOR ||
38806                         minor < DB_VERSION_MINOR )
38807                 {
38808                         printf("Berkeley DB version mismatch\n"
38809                                 "\theader: %s\n\tlibrary: %s\n",
38810                                 DB_VERSION_STRING, version);
38811                         return 1;
38812                 }
38813         }
38814 #endif
38815
38816 #if DB_VERSION_MAJOR > 2
38817         db_env_create( NULL, 0 );
38818 #elif DB_VERSION_MAJOR > 1
38819         db_appexit( NULL );
38820 #else
38821         (void) dbopen( NULL, 0, 0, 0, NULL);
38822 #endif
38823
38824   ;
38825   return 0;
38826 }
38827 _ACEOF
38828 rm -f conftest.$ac_objext conftest$ac_exeext
38829 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38830   (eval $ac_link) 2>conftest.er1
38831   ac_status=$?
38832   grep -v '^ *+' conftest.er1 >conftest.err
38833   rm -f conftest.er1
38834   cat conftest.err >&5
38835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38836   (exit $ac_status); } &&
38837          { ac_try='test -z "$ac_c_werror_flag"
38838                          || test ! -s conftest.err'
38839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38840   (eval $ac_try) 2>&5
38841   ac_status=$?
38842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38843   (exit $ac_status); }; } &&
38844          { ac_try='test -s conftest$ac_exeext'
38845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38846   (eval $ac_try) 2>&5
38847   ac_status=$?
38848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38849   (exit $ac_status); }; }; then
38850   ol_cv_db_db_4_2=yes
38851 else
38852   echo "$as_me: failed program was:" >&5
38853 sed 's/^/| /' conftest.$ac_ext >&5
38854
38855 ol_cv_db_db_4_2=no
38856 fi
38857 rm -f conftest.err conftest.$ac_objext \
38858       conftest$ac_exeext conftest.$ac_ext
38859
38860         LIBS="$ol_LIBS"
38861
38862 fi
38863 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_2" >&5
38864 echo "${ECHO_T}$ol_cv_db_db_4_2" >&6
38865
38866         if test $ol_cv_db_db_4_2 = yes ; then
38867                 ol_cv_lib_db=-ldb-4-2
38868         fi
38869 fi
38870
38871 if test $ol_cv_lib_db = no ; then
38872         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
38873 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6
38874 if test "${ol_cv_db_db_4+set}" = set; then
38875   echo $ECHO_N "(cached) $ECHO_C" >&6
38876 else
38877
38878         ol_DB_LIB=-ldb-4
38879         ol_LIBS=$LIBS
38880         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38881
38882         cat >conftest.$ac_ext <<_ACEOF
38883 /* confdefs.h.  */
38884 _ACEOF
38885 cat confdefs.h >>conftest.$ac_ext
38886 cat >>conftest.$ac_ext <<_ACEOF
38887 /* end confdefs.h.  */
38888
38889 #ifdef HAVE_DB_185_H
38890 # include <db_185.h>
38891 #else
38892 # include <db.h>
38893 #endif
38894
38895 #ifndef DB_VERSION_MAJOR
38896 # define DB_VERSION_MAJOR 1
38897 #endif
38898
38899 #ifndef NULL
38900 #define NULL ((void*)0)
38901 #endif
38902
38903 int
38904 main ()
38905 {
38906
38907 #if DB_VERSION_MAJOR > 1
38908         {
38909                 char *version;
38910                 int major, minor, patch;
38911
38912                 version = db_version( &major, &minor, &patch );
38913
38914                 if( major != DB_VERSION_MAJOR ||
38915                         minor < DB_VERSION_MINOR )
38916                 {
38917                         printf("Berkeley DB version mismatch\n"
38918                                 "\theader: %s\n\tlibrary: %s\n",
38919                                 DB_VERSION_STRING, version);
38920                         return 1;
38921                 }
38922         }
38923 #endif
38924
38925 #if DB_VERSION_MAJOR > 2
38926         db_env_create( NULL, 0 );
38927 #elif DB_VERSION_MAJOR > 1
38928         db_appexit( NULL );
38929 #else
38930         (void) dbopen( NULL, 0, 0, 0, NULL);
38931 #endif
38932
38933   ;
38934   return 0;
38935 }
38936 _ACEOF
38937 rm -f conftest.$ac_objext conftest$ac_exeext
38938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38939   (eval $ac_link) 2>conftest.er1
38940   ac_status=$?
38941   grep -v '^ *+' conftest.er1 >conftest.err
38942   rm -f conftest.er1
38943   cat conftest.err >&5
38944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38945   (exit $ac_status); } &&
38946          { ac_try='test -z "$ac_c_werror_flag"
38947                          || test ! -s conftest.err'
38948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38949   (eval $ac_try) 2>&5
38950   ac_status=$?
38951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38952   (exit $ac_status); }; } &&
38953          { ac_try='test -s conftest$ac_exeext'
38954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38955   (eval $ac_try) 2>&5
38956   ac_status=$?
38957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38958   (exit $ac_status); }; }; then
38959   ol_cv_db_db_4=yes
38960 else
38961   echo "$as_me: failed program was:" >&5
38962 sed 's/^/| /' conftest.$ac_ext >&5
38963
38964 ol_cv_db_db_4=no
38965 fi
38966 rm -f conftest.err conftest.$ac_objext \
38967       conftest$ac_exeext conftest.$ac_ext
38968
38969         LIBS="$ol_LIBS"
38970
38971 fi
38972 echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
38973 echo "${ECHO_T}$ol_cv_db_db_4" >&6
38974
38975         if test $ol_cv_db_db_4 = yes ; then
38976                 ol_cv_lib_db=-ldb-4
38977         fi
38978 fi
38979
38980 if test $ol_cv_lib_db = no ; then
38981         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
38982 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6
38983 if test "${ol_cv_db_db4+set}" = set; then
38984   echo $ECHO_N "(cached) $ECHO_C" >&6
38985 else
38986
38987         ol_DB_LIB=-ldb4
38988         ol_LIBS=$LIBS
38989         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38990
38991         cat >conftest.$ac_ext <<_ACEOF
38992 /* confdefs.h.  */
38993 _ACEOF
38994 cat confdefs.h >>conftest.$ac_ext
38995 cat >>conftest.$ac_ext <<_ACEOF
38996 /* end confdefs.h.  */
38997
38998 #ifdef HAVE_DB_185_H
38999 # include <db_185.h>
39000 #else
39001 # include <db.h>
39002 #endif
39003
39004 #ifndef DB_VERSION_MAJOR
39005 # define DB_VERSION_MAJOR 1
39006 #endif
39007
39008 #ifndef NULL
39009 #define NULL ((void*)0)
39010 #endif
39011
39012 int
39013 main ()
39014 {
39015
39016 #if DB_VERSION_MAJOR > 1
39017         {
39018                 char *version;
39019                 int major, minor, patch;
39020
39021                 version = db_version( &major, &minor, &patch );
39022
39023                 if( major != DB_VERSION_MAJOR ||
39024                         minor < DB_VERSION_MINOR )
39025                 {
39026                         printf("Berkeley DB version mismatch\n"
39027                                 "\theader: %s\n\tlibrary: %s\n",
39028                                 DB_VERSION_STRING, version);
39029                         return 1;
39030                 }
39031         }
39032 #endif
39033
39034 #if DB_VERSION_MAJOR > 2
39035         db_env_create( NULL, 0 );
39036 #elif DB_VERSION_MAJOR > 1
39037         db_appexit( NULL );
39038 #else
39039         (void) dbopen( NULL, 0, 0, 0, NULL);
39040 #endif
39041
39042   ;
39043   return 0;
39044 }
39045 _ACEOF
39046 rm -f conftest.$ac_objext conftest$ac_exeext
39047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39048   (eval $ac_link) 2>conftest.er1
39049   ac_status=$?
39050   grep -v '^ *+' conftest.er1 >conftest.err
39051   rm -f conftest.er1
39052   cat conftest.err >&5
39053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39054   (exit $ac_status); } &&
39055          { ac_try='test -z "$ac_c_werror_flag"
39056                          || test ! -s conftest.err'
39057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39058   (eval $ac_try) 2>&5
39059   ac_status=$?
39060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39061   (exit $ac_status); }; } &&
39062          { ac_try='test -s conftest$ac_exeext'
39063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39064   (eval $ac_try) 2>&5
39065   ac_status=$?
39066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39067   (exit $ac_status); }; }; then
39068   ol_cv_db_db4=yes
39069 else
39070   echo "$as_me: failed program was:" >&5
39071 sed 's/^/| /' conftest.$ac_ext >&5
39072
39073 ol_cv_db_db4=no
39074 fi
39075 rm -f conftest.err conftest.$ac_objext \
39076       conftest$ac_exeext conftest.$ac_ext
39077
39078         LIBS="$ol_LIBS"
39079
39080 fi
39081 echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
39082 echo "${ECHO_T}$ol_cv_db_db4" >&6
39083
39084         if test $ol_cv_db_db4 = yes ; then
39085                 ol_cv_lib_db=-ldb4
39086         fi
39087 fi
39088
39089 if test $ol_cv_lib_db = no ; then
39090         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
39091 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6
39092 if test "${ol_cv_db_db+set}" = set; then
39093   echo $ECHO_N "(cached) $ECHO_C" >&6
39094 else
39095
39096         ol_DB_LIB=-ldb
39097         ol_LIBS=$LIBS
39098         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39099
39100         cat >conftest.$ac_ext <<_ACEOF
39101 /* confdefs.h.  */
39102 _ACEOF
39103 cat confdefs.h >>conftest.$ac_ext
39104 cat >>conftest.$ac_ext <<_ACEOF
39105 /* end confdefs.h.  */
39106
39107 #ifdef HAVE_DB_185_H
39108 # include <db_185.h>
39109 #else
39110 # include <db.h>
39111 #endif
39112
39113 #ifndef DB_VERSION_MAJOR
39114 # define DB_VERSION_MAJOR 1
39115 #endif
39116
39117 #ifndef NULL
39118 #define NULL ((void*)0)
39119 #endif
39120
39121 int
39122 main ()
39123 {
39124
39125 #if DB_VERSION_MAJOR > 1
39126         {
39127                 char *version;
39128                 int major, minor, patch;
39129
39130                 version = db_version( &major, &minor, &patch );
39131
39132                 if( major != DB_VERSION_MAJOR ||
39133                         minor < DB_VERSION_MINOR )
39134                 {
39135                         printf("Berkeley DB version mismatch\n"
39136                                 "\theader: %s\n\tlibrary: %s\n",
39137                                 DB_VERSION_STRING, version);
39138                         return 1;
39139                 }
39140         }
39141 #endif
39142
39143 #if DB_VERSION_MAJOR > 2
39144         db_env_create( NULL, 0 );
39145 #elif DB_VERSION_MAJOR > 1
39146         db_appexit( NULL );
39147 #else
39148         (void) dbopen( NULL, 0, 0, 0, NULL);
39149 #endif
39150
39151   ;
39152   return 0;
39153 }
39154 _ACEOF
39155 rm -f conftest.$ac_objext conftest$ac_exeext
39156 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39157   (eval $ac_link) 2>conftest.er1
39158   ac_status=$?
39159   grep -v '^ *+' conftest.er1 >conftest.err
39160   rm -f conftest.er1
39161   cat conftest.err >&5
39162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39163   (exit $ac_status); } &&
39164          { ac_try='test -z "$ac_c_werror_flag"
39165                          || test ! -s conftest.err'
39166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39167   (eval $ac_try) 2>&5
39168   ac_status=$?
39169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39170   (exit $ac_status); }; } &&
39171          { ac_try='test -s conftest$ac_exeext'
39172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39173   (eval $ac_try) 2>&5
39174   ac_status=$?
39175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39176   (exit $ac_status); }; }; then
39177   ol_cv_db_db=yes
39178 else
39179   echo "$as_me: failed program was:" >&5
39180 sed 's/^/| /' conftest.$ac_ext >&5
39181
39182 ol_cv_db_db=no
39183 fi
39184 rm -f conftest.err conftest.$ac_objext \
39185       conftest$ac_exeext conftest.$ac_ext
39186
39187         LIBS="$ol_LIBS"
39188
39189 fi
39190 echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
39191 echo "${ECHO_T}$ol_cv_db_db" >&6
39192
39193         if test $ol_cv_db_db = yes ; then
39194                 ol_cv_lib_db=-ldb
39195         fi
39196 fi
39197
39198 if test $ol_cv_lib_db = no ; then
39199         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb41)" >&5
39200 echo $ECHO_N "checking for Berkeley DB link (-ldb41)... $ECHO_C" >&6
39201 if test "${ol_cv_db_db41+set}" = set; then
39202   echo $ECHO_N "(cached) $ECHO_C" >&6
39203 else
39204
39205         ol_DB_LIB=-ldb41
39206         ol_LIBS=$LIBS
39207         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39208
39209         cat >conftest.$ac_ext <<_ACEOF
39210 /* confdefs.h.  */
39211 _ACEOF
39212 cat confdefs.h >>conftest.$ac_ext
39213 cat >>conftest.$ac_ext <<_ACEOF
39214 /* end confdefs.h.  */
39215
39216 #ifdef HAVE_DB_185_H
39217 # include <db_185.h>
39218 #else
39219 # include <db.h>
39220 #endif
39221
39222 #ifndef DB_VERSION_MAJOR
39223 # define DB_VERSION_MAJOR 1
39224 #endif
39225
39226 #ifndef NULL
39227 #define NULL ((void*)0)
39228 #endif
39229
39230 int
39231 main ()
39232 {
39233
39234 #if DB_VERSION_MAJOR > 1
39235         {
39236                 char *version;
39237                 int major, minor, patch;
39238
39239                 version = db_version( &major, &minor, &patch );
39240
39241                 if( major != DB_VERSION_MAJOR ||
39242                         minor < DB_VERSION_MINOR )
39243                 {
39244                         printf("Berkeley DB version mismatch\n"
39245                                 "\theader: %s\n\tlibrary: %s\n",
39246                                 DB_VERSION_STRING, version);
39247                         return 1;
39248                 }
39249         }
39250 #endif
39251
39252 #if DB_VERSION_MAJOR > 2
39253         db_env_create( NULL, 0 );
39254 #elif DB_VERSION_MAJOR > 1
39255         db_appexit( NULL );
39256 #else
39257         (void) dbopen( NULL, 0, 0, 0, NULL);
39258 #endif
39259
39260   ;
39261   return 0;
39262 }
39263 _ACEOF
39264 rm -f conftest.$ac_objext conftest$ac_exeext
39265 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39266   (eval $ac_link) 2>conftest.er1
39267   ac_status=$?
39268   grep -v '^ *+' conftest.er1 >conftest.err
39269   rm -f conftest.er1
39270   cat conftest.err >&5
39271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39272   (exit $ac_status); } &&
39273          { ac_try='test -z "$ac_c_werror_flag"
39274                          || test ! -s conftest.err'
39275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39276   (eval $ac_try) 2>&5
39277   ac_status=$?
39278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39279   (exit $ac_status); }; } &&
39280          { ac_try='test -s conftest$ac_exeext'
39281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39282   (eval $ac_try) 2>&5
39283   ac_status=$?
39284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39285   (exit $ac_status); }; }; then
39286   ol_cv_db_db41=yes
39287 else
39288   echo "$as_me: failed program was:" >&5
39289 sed 's/^/| /' conftest.$ac_ext >&5
39290
39291 ol_cv_db_db41=no
39292 fi
39293 rm -f conftest.err conftest.$ac_objext \
39294       conftest$ac_exeext conftest.$ac_ext
39295
39296         LIBS="$ol_LIBS"
39297
39298 fi
39299 echo "$as_me:$LINENO: result: $ol_cv_db_db41" >&5
39300 echo "${ECHO_T}$ol_cv_db_db41" >&6
39301
39302         if test $ol_cv_db_db41 = yes ; then
39303                 ol_cv_lib_db=-ldb41
39304         fi
39305 fi
39306
39307 if test $ol_cv_lib_db = no ; then
39308         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-41)" >&5
39309 echo $ECHO_N "checking for Berkeley DB link (-ldb-41)... $ECHO_C" >&6
39310 if test "${ol_cv_db_db_41+set}" = set; then
39311   echo $ECHO_N "(cached) $ECHO_C" >&6
39312 else
39313
39314         ol_DB_LIB=-ldb-41
39315         ol_LIBS=$LIBS
39316         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39317
39318         cat >conftest.$ac_ext <<_ACEOF
39319 /* confdefs.h.  */
39320 _ACEOF
39321 cat confdefs.h >>conftest.$ac_ext
39322 cat >>conftest.$ac_ext <<_ACEOF
39323 /* end confdefs.h.  */
39324
39325 #ifdef HAVE_DB_185_H
39326 # include <db_185.h>
39327 #else
39328 # include <db.h>
39329 #endif
39330
39331 #ifndef DB_VERSION_MAJOR
39332 # define DB_VERSION_MAJOR 1
39333 #endif
39334
39335 #ifndef NULL
39336 #define NULL ((void*)0)
39337 #endif
39338
39339 int
39340 main ()
39341 {
39342
39343 #if DB_VERSION_MAJOR > 1
39344         {
39345                 char *version;
39346                 int major, minor, patch;
39347
39348                 version = db_version( &major, &minor, &patch );
39349
39350                 if( major != DB_VERSION_MAJOR ||
39351                         minor < DB_VERSION_MINOR )
39352                 {
39353                         printf("Berkeley DB version mismatch\n"
39354                                 "\theader: %s\n\tlibrary: %s\n",
39355                                 DB_VERSION_STRING, version);
39356                         return 1;
39357                 }
39358         }
39359 #endif
39360
39361 #if DB_VERSION_MAJOR > 2
39362         db_env_create( NULL, 0 );
39363 #elif DB_VERSION_MAJOR > 1
39364         db_appexit( NULL );
39365 #else
39366         (void) dbopen( NULL, 0, 0, 0, NULL);
39367 #endif
39368
39369   ;
39370   return 0;
39371 }
39372 _ACEOF
39373 rm -f conftest.$ac_objext conftest$ac_exeext
39374 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39375   (eval $ac_link) 2>conftest.er1
39376   ac_status=$?
39377   grep -v '^ *+' conftest.er1 >conftest.err
39378   rm -f conftest.er1
39379   cat conftest.err >&5
39380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39381   (exit $ac_status); } &&
39382          { ac_try='test -z "$ac_c_werror_flag"
39383                          || test ! -s conftest.err'
39384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39385   (eval $ac_try) 2>&5
39386   ac_status=$?
39387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39388   (exit $ac_status); }; } &&
39389          { ac_try='test -s conftest$ac_exeext'
39390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39391   (eval $ac_try) 2>&5
39392   ac_status=$?
39393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39394   (exit $ac_status); }; }; then
39395   ol_cv_db_db_41=yes
39396 else
39397   echo "$as_me: failed program was:" >&5
39398 sed 's/^/| /' conftest.$ac_ext >&5
39399
39400 ol_cv_db_db_41=no
39401 fi
39402 rm -f conftest.err conftest.$ac_objext \
39403       conftest$ac_exeext conftest.$ac_ext
39404
39405         LIBS="$ol_LIBS"
39406
39407 fi
39408 echo "$as_me:$LINENO: result: $ol_cv_db_db_41" >&5
39409 echo "${ECHO_T}$ol_cv_db_db_41" >&6
39410
39411         if test $ol_cv_db_db_41 = yes ; then
39412                 ol_cv_lib_db=-ldb-41
39413         fi
39414 fi
39415
39416 if test $ol_cv_lib_db = no ; then
39417         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.1)" >&5
39418 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.1)... $ECHO_C" >&6
39419 if test "${ol_cv_db_db_4_dot_1+set}" = set; then
39420   echo $ECHO_N "(cached) $ECHO_C" >&6
39421 else
39422
39423         ol_DB_LIB=-ldb-4.1
39424         ol_LIBS=$LIBS
39425         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39426
39427         cat >conftest.$ac_ext <<_ACEOF
39428 /* confdefs.h.  */
39429 _ACEOF
39430 cat confdefs.h >>conftest.$ac_ext
39431 cat >>conftest.$ac_ext <<_ACEOF
39432 /* end confdefs.h.  */
39433
39434 #ifdef HAVE_DB_185_H
39435 # include <db_185.h>
39436 #else
39437 # include <db.h>
39438 #endif
39439
39440 #ifndef DB_VERSION_MAJOR
39441 # define DB_VERSION_MAJOR 1
39442 #endif
39443
39444 #ifndef NULL
39445 #define NULL ((void*)0)
39446 #endif
39447
39448 int
39449 main ()
39450 {
39451
39452 #if DB_VERSION_MAJOR > 1
39453         {
39454                 char *version;
39455                 int major, minor, patch;
39456
39457                 version = db_version( &major, &minor, &patch );
39458
39459                 if( major != DB_VERSION_MAJOR ||
39460                         minor < DB_VERSION_MINOR )
39461                 {
39462                         printf("Berkeley DB version mismatch\n"
39463                                 "\theader: %s\n\tlibrary: %s\n",
39464                                 DB_VERSION_STRING, version);
39465                         return 1;
39466                 }
39467         }
39468 #endif
39469
39470 #if DB_VERSION_MAJOR > 2
39471         db_env_create( NULL, 0 );
39472 #elif DB_VERSION_MAJOR > 1
39473         db_appexit( NULL );
39474 #else
39475         (void) dbopen( NULL, 0, 0, 0, NULL);
39476 #endif
39477
39478   ;
39479   return 0;
39480 }
39481 _ACEOF
39482 rm -f conftest.$ac_objext conftest$ac_exeext
39483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39484   (eval $ac_link) 2>conftest.er1
39485   ac_status=$?
39486   grep -v '^ *+' conftest.er1 >conftest.err
39487   rm -f conftest.er1
39488   cat conftest.err >&5
39489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39490   (exit $ac_status); } &&
39491          { ac_try='test -z "$ac_c_werror_flag"
39492                          || test ! -s conftest.err'
39493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39494   (eval $ac_try) 2>&5
39495   ac_status=$?
39496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39497   (exit $ac_status); }; } &&
39498          { ac_try='test -s conftest$ac_exeext'
39499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39500   (eval $ac_try) 2>&5
39501   ac_status=$?
39502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39503   (exit $ac_status); }; }; then
39504   ol_cv_db_db_4_dot_1=yes
39505 else
39506   echo "$as_me: failed program was:" >&5
39507 sed 's/^/| /' conftest.$ac_ext >&5
39508
39509 ol_cv_db_db_4_dot_1=no
39510 fi
39511 rm -f conftest.err conftest.$ac_objext \
39512       conftest$ac_exeext conftest.$ac_ext
39513
39514         LIBS="$ol_LIBS"
39515
39516 fi
39517 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_1" >&5
39518 echo "${ECHO_T}$ol_cv_db_db_4_dot_1" >&6
39519
39520         if test $ol_cv_db_db_4_dot_1 = yes ; then
39521                 ol_cv_lib_db=-ldb-4.1
39522         fi
39523 fi
39524
39525 if test $ol_cv_lib_db = no ; then
39526         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-1)" >&5
39527 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-1)... $ECHO_C" >&6
39528 if test "${ol_cv_db_db_4_1+set}" = set; then
39529   echo $ECHO_N "(cached) $ECHO_C" >&6
39530 else
39531
39532         ol_DB_LIB=-ldb-4-1
39533         ol_LIBS=$LIBS
39534         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39535
39536         cat >conftest.$ac_ext <<_ACEOF
39537 /* confdefs.h.  */
39538 _ACEOF
39539 cat confdefs.h >>conftest.$ac_ext
39540 cat >>conftest.$ac_ext <<_ACEOF
39541 /* end confdefs.h.  */
39542
39543 #ifdef HAVE_DB_185_H
39544 # include <db_185.h>
39545 #else
39546 # include <db.h>
39547 #endif
39548
39549 #ifndef DB_VERSION_MAJOR
39550 # define DB_VERSION_MAJOR 1
39551 #endif
39552
39553 #ifndef NULL
39554 #define NULL ((void*)0)
39555 #endif
39556
39557 int
39558 main ()
39559 {
39560
39561 #if DB_VERSION_MAJOR > 1
39562         {
39563                 char *version;
39564                 int major, minor, patch;
39565
39566                 version = db_version( &major, &minor, &patch );
39567
39568                 if( major != DB_VERSION_MAJOR ||
39569                         minor < DB_VERSION_MINOR )
39570                 {
39571                         printf("Berkeley DB version mismatch\n"
39572                                 "\theader: %s\n\tlibrary: %s\n",
39573                                 DB_VERSION_STRING, version);
39574                         return 1;
39575                 }
39576         }
39577 #endif
39578
39579 #if DB_VERSION_MAJOR > 2
39580         db_env_create( NULL, 0 );
39581 #elif DB_VERSION_MAJOR > 1
39582         db_appexit( NULL );
39583 #else
39584         (void) dbopen( NULL, 0, 0, 0, NULL);
39585 #endif
39586
39587   ;
39588   return 0;
39589 }
39590 _ACEOF
39591 rm -f conftest.$ac_objext conftest$ac_exeext
39592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39593   (eval $ac_link) 2>conftest.er1
39594   ac_status=$?
39595   grep -v '^ *+' conftest.er1 >conftest.err
39596   rm -f conftest.er1
39597   cat conftest.err >&5
39598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39599   (exit $ac_status); } &&
39600          { ac_try='test -z "$ac_c_werror_flag"
39601                          || test ! -s conftest.err'
39602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39603   (eval $ac_try) 2>&5
39604   ac_status=$?
39605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39606   (exit $ac_status); }; } &&
39607          { ac_try='test -s conftest$ac_exeext'
39608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39609   (eval $ac_try) 2>&5
39610   ac_status=$?
39611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39612   (exit $ac_status); }; }; then
39613   ol_cv_db_db_4_1=yes
39614 else
39615   echo "$as_me: failed program was:" >&5
39616 sed 's/^/| /' conftest.$ac_ext >&5
39617
39618 ol_cv_db_db_4_1=no
39619 fi
39620 rm -f conftest.err conftest.$ac_objext \
39621       conftest$ac_exeext conftest.$ac_ext
39622
39623         LIBS="$ol_LIBS"
39624
39625 fi
39626 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_1" >&5
39627 echo "${ECHO_T}$ol_cv_db_db_4_1" >&6
39628
39629         if test $ol_cv_db_db_4_1 = yes ; then
39630                 ol_cv_lib_db=-ldb-4-1
39631         fi
39632 fi
39633
39634 if test $ol_cv_lib_db = no ; then
39635         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb3)" >&5
39636 echo $ECHO_N "checking for Berkeley DB link (-ldb3)... $ECHO_C" >&6
39637 if test "${ol_cv_db_db3+set}" = set; then
39638   echo $ECHO_N "(cached) $ECHO_C" >&6
39639 else
39640
39641         ol_DB_LIB=-ldb3
39642         ol_LIBS=$LIBS
39643         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39644
39645         cat >conftest.$ac_ext <<_ACEOF
39646 /* confdefs.h.  */
39647 _ACEOF
39648 cat confdefs.h >>conftest.$ac_ext
39649 cat >>conftest.$ac_ext <<_ACEOF
39650 /* end confdefs.h.  */
39651
39652 #ifdef HAVE_DB_185_H
39653 # include <db_185.h>
39654 #else
39655 # include <db.h>
39656 #endif
39657
39658 #ifndef DB_VERSION_MAJOR
39659 # define DB_VERSION_MAJOR 1
39660 #endif
39661
39662 #ifndef NULL
39663 #define NULL ((void*)0)
39664 #endif
39665
39666 int
39667 main ()
39668 {
39669
39670 #if DB_VERSION_MAJOR > 1
39671         {
39672                 char *version;
39673                 int major, minor, patch;
39674
39675                 version = db_version( &major, &minor, &patch );
39676
39677                 if( major != DB_VERSION_MAJOR ||
39678                         minor < DB_VERSION_MINOR )
39679                 {
39680                         printf("Berkeley DB version mismatch\n"
39681                                 "\theader: %s\n\tlibrary: %s\n",
39682                                 DB_VERSION_STRING, version);
39683                         return 1;
39684                 }
39685         }
39686 #endif
39687
39688 #if DB_VERSION_MAJOR > 2
39689         db_env_create( NULL, 0 );
39690 #elif DB_VERSION_MAJOR > 1
39691         db_appexit( NULL );
39692 #else
39693         (void) dbopen( NULL, 0, 0, 0, NULL);
39694 #endif
39695
39696   ;
39697   return 0;
39698 }
39699 _ACEOF
39700 rm -f conftest.$ac_objext conftest$ac_exeext
39701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39702   (eval $ac_link) 2>conftest.er1
39703   ac_status=$?
39704   grep -v '^ *+' conftest.er1 >conftest.err
39705   rm -f conftest.er1
39706   cat conftest.err >&5
39707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39708   (exit $ac_status); } &&
39709          { ac_try='test -z "$ac_c_werror_flag"
39710                          || test ! -s conftest.err'
39711   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39712   (eval $ac_try) 2>&5
39713   ac_status=$?
39714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39715   (exit $ac_status); }; } &&
39716          { ac_try='test -s conftest$ac_exeext'
39717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39718   (eval $ac_try) 2>&5
39719   ac_status=$?
39720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39721   (exit $ac_status); }; }; then
39722   ol_cv_db_db3=yes
39723 else
39724   echo "$as_me: failed program was:" >&5
39725 sed 's/^/| /' conftest.$ac_ext >&5
39726
39727 ol_cv_db_db3=no
39728 fi
39729 rm -f conftest.err conftest.$ac_objext \
39730       conftest$ac_exeext conftest.$ac_ext
39731
39732         LIBS="$ol_LIBS"
39733
39734 fi
39735 echo "$as_me:$LINENO: result: $ol_cv_db_db3" >&5
39736 echo "${ECHO_T}$ol_cv_db_db3" >&6
39737
39738         if test $ol_cv_db_db3 = yes ; then
39739                 ol_cv_lib_db=-ldb3
39740         fi
39741 fi
39742
39743 if test $ol_cv_lib_db = no ; then
39744         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-3)" >&5
39745 echo $ECHO_N "checking for Berkeley DB link (-ldb-3)... $ECHO_C" >&6
39746 if test "${ol_cv_db_db_3+set}" = set; then
39747   echo $ECHO_N "(cached) $ECHO_C" >&6
39748 else
39749
39750         ol_DB_LIB=-ldb-3
39751         ol_LIBS=$LIBS
39752         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39753
39754         cat >conftest.$ac_ext <<_ACEOF
39755 /* confdefs.h.  */
39756 _ACEOF
39757 cat confdefs.h >>conftest.$ac_ext
39758 cat >>conftest.$ac_ext <<_ACEOF
39759 /* end confdefs.h.  */
39760
39761 #ifdef HAVE_DB_185_H
39762 # include <db_185.h>
39763 #else
39764 # include <db.h>
39765 #endif
39766
39767 #ifndef DB_VERSION_MAJOR
39768 # define DB_VERSION_MAJOR 1
39769 #endif
39770
39771 #ifndef NULL
39772 #define NULL ((void*)0)
39773 #endif
39774
39775 int
39776 main ()
39777 {
39778
39779 #if DB_VERSION_MAJOR > 1
39780         {
39781                 char *version;
39782                 int major, minor, patch;
39783
39784                 version = db_version( &major, &minor, &patch );
39785
39786                 if( major != DB_VERSION_MAJOR ||
39787                         minor < DB_VERSION_MINOR )
39788                 {
39789                         printf("Berkeley DB version mismatch\n"
39790                                 "\theader: %s\n\tlibrary: %s\n",
39791                                 DB_VERSION_STRING, version);
39792                         return 1;
39793                 }
39794         }
39795 #endif
39796
39797 #if DB_VERSION_MAJOR > 2
39798         db_env_create( NULL, 0 );
39799 #elif DB_VERSION_MAJOR > 1
39800         db_appexit( NULL );
39801 #else
39802         (void) dbopen( NULL, 0, 0, 0, NULL);
39803 #endif
39804
39805   ;
39806   return 0;
39807 }
39808 _ACEOF
39809 rm -f conftest.$ac_objext conftest$ac_exeext
39810 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39811   (eval $ac_link) 2>conftest.er1
39812   ac_status=$?
39813   grep -v '^ *+' conftest.er1 >conftest.err
39814   rm -f conftest.er1
39815   cat conftest.err >&5
39816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39817   (exit $ac_status); } &&
39818          { ac_try='test -z "$ac_c_werror_flag"
39819                          || test ! -s conftest.err'
39820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39821   (eval $ac_try) 2>&5
39822   ac_status=$?
39823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39824   (exit $ac_status); }; } &&
39825          { ac_try='test -s conftest$ac_exeext'
39826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39827   (eval $ac_try) 2>&5
39828   ac_status=$?
39829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39830   (exit $ac_status); }; }; then
39831   ol_cv_db_db_3=yes
39832 else
39833   echo "$as_me: failed program was:" >&5
39834 sed 's/^/| /' conftest.$ac_ext >&5
39835
39836 ol_cv_db_db_3=no
39837 fi
39838 rm -f conftest.err conftest.$ac_objext \
39839       conftest$ac_exeext conftest.$ac_ext
39840
39841         LIBS="$ol_LIBS"
39842
39843 fi
39844 echo "$as_me:$LINENO: result: $ol_cv_db_db_3" >&5
39845 echo "${ECHO_T}$ol_cv_db_db_3" >&6
39846
39847         if test $ol_cv_db_db_3 = yes ; then
39848                 ol_cv_lib_db=-ldb-3
39849         fi
39850 fi
39851
39852 if test $ol_cv_lib_db = no ; then
39853         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb2)" >&5
39854 echo $ECHO_N "checking for Berkeley DB link (-ldb2)... $ECHO_C" >&6
39855 if test "${ol_cv_db_db2+set}" = set; then
39856   echo $ECHO_N "(cached) $ECHO_C" >&6
39857 else
39858
39859         ol_DB_LIB=-ldb2
39860         ol_LIBS=$LIBS
39861         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39862
39863         cat >conftest.$ac_ext <<_ACEOF
39864 /* confdefs.h.  */
39865 _ACEOF
39866 cat confdefs.h >>conftest.$ac_ext
39867 cat >>conftest.$ac_ext <<_ACEOF
39868 /* end confdefs.h.  */
39869
39870 #ifdef HAVE_DB_185_H
39871 # include <db_185.h>
39872 #else
39873 # include <db.h>
39874 #endif
39875
39876 #ifndef DB_VERSION_MAJOR
39877 # define DB_VERSION_MAJOR 1
39878 #endif
39879
39880 #ifndef NULL
39881 #define NULL ((void*)0)
39882 #endif
39883
39884 int
39885 main ()
39886 {
39887
39888 #if DB_VERSION_MAJOR > 1
39889         {
39890                 char *version;
39891                 int major, minor, patch;
39892
39893                 version = db_version( &major, &minor, &patch );
39894
39895                 if( major != DB_VERSION_MAJOR ||
39896                         minor < DB_VERSION_MINOR )
39897                 {
39898                         printf("Berkeley DB version mismatch\n"
39899                                 "\theader: %s\n\tlibrary: %s\n",
39900                                 DB_VERSION_STRING, version);
39901                         return 1;
39902                 }
39903         }
39904 #endif
39905
39906 #if DB_VERSION_MAJOR > 2
39907         db_env_create( NULL, 0 );
39908 #elif DB_VERSION_MAJOR > 1
39909         db_appexit( NULL );
39910 #else
39911         (void) dbopen( NULL, 0, 0, 0, NULL);
39912 #endif
39913
39914   ;
39915   return 0;
39916 }
39917 _ACEOF
39918 rm -f conftest.$ac_objext conftest$ac_exeext
39919 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39920   (eval $ac_link) 2>conftest.er1
39921   ac_status=$?
39922   grep -v '^ *+' conftest.er1 >conftest.err
39923   rm -f conftest.er1
39924   cat conftest.err >&5
39925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39926   (exit $ac_status); } &&
39927          { ac_try='test -z "$ac_c_werror_flag"
39928                          || test ! -s conftest.err'
39929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39930   (eval $ac_try) 2>&5
39931   ac_status=$?
39932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39933   (exit $ac_status); }; } &&
39934          { ac_try='test -s conftest$ac_exeext'
39935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39936   (eval $ac_try) 2>&5
39937   ac_status=$?
39938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39939   (exit $ac_status); }; }; then
39940   ol_cv_db_db2=yes
39941 else
39942   echo "$as_me: failed program was:" >&5
39943 sed 's/^/| /' conftest.$ac_ext >&5
39944
39945 ol_cv_db_db2=no
39946 fi
39947 rm -f conftest.err conftest.$ac_objext \
39948       conftest$ac_exeext conftest.$ac_ext
39949
39950         LIBS="$ol_LIBS"
39951
39952 fi
39953 echo "$as_me:$LINENO: result: $ol_cv_db_db2" >&5
39954 echo "${ECHO_T}$ol_cv_db_db2" >&6
39955
39956         if test $ol_cv_db_db2 = yes ; then
39957                 ol_cv_lib_db=-ldb2
39958         fi
39959 fi
39960
39961 if test $ol_cv_lib_db = no ; then
39962         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-2)" >&5
39963 echo $ECHO_N "checking for Berkeley DB link (-ldb-2)... $ECHO_C" >&6
39964 if test "${ol_cv_db_db_2+set}" = set; then
39965   echo $ECHO_N "(cached) $ECHO_C" >&6
39966 else
39967
39968         ol_DB_LIB=-ldb-2
39969         ol_LIBS=$LIBS
39970         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39971
39972         cat >conftest.$ac_ext <<_ACEOF
39973 /* confdefs.h.  */
39974 _ACEOF
39975 cat confdefs.h >>conftest.$ac_ext
39976 cat >>conftest.$ac_ext <<_ACEOF
39977 /* end confdefs.h.  */
39978
39979 #ifdef HAVE_DB_185_H
39980 # include <db_185.h>
39981 #else
39982 # include <db.h>
39983 #endif
39984
39985 #ifndef DB_VERSION_MAJOR
39986 # define DB_VERSION_MAJOR 1
39987 #endif
39988
39989 #ifndef NULL
39990 #define NULL ((void*)0)
39991 #endif
39992
39993 int
39994 main ()
39995 {
39996
39997 #if DB_VERSION_MAJOR > 1
39998         {
39999                 char *version;
40000                 int major, minor, patch;
40001
40002                 version = db_version( &major, &minor, &patch );
40003
40004                 if( major != DB_VERSION_MAJOR ||
40005                         minor < DB_VERSION_MINOR )
40006                 {
40007                         printf("Berkeley DB version mismatch\n"
40008                                 "\theader: %s\n\tlibrary: %s\n",
40009                                 DB_VERSION_STRING, version);
40010                         return 1;
40011                 }
40012         }
40013 #endif
40014
40015 #if DB_VERSION_MAJOR > 2
40016         db_env_create( NULL, 0 );
40017 #elif DB_VERSION_MAJOR > 1
40018         db_appexit( NULL );
40019 #else
40020         (void) dbopen( NULL, 0, 0, 0, NULL);
40021 #endif
40022
40023   ;
40024   return 0;
40025 }
40026 _ACEOF
40027 rm -f conftest.$ac_objext conftest$ac_exeext
40028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40029   (eval $ac_link) 2>conftest.er1
40030   ac_status=$?
40031   grep -v '^ *+' conftest.er1 >conftest.err
40032   rm -f conftest.er1
40033   cat conftest.err >&5
40034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40035   (exit $ac_status); } &&
40036          { ac_try='test -z "$ac_c_werror_flag"
40037                          || test ! -s conftest.err'
40038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40039   (eval $ac_try) 2>&5
40040   ac_status=$?
40041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40042   (exit $ac_status); }; } &&
40043          { ac_try='test -s conftest$ac_exeext'
40044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40045   (eval $ac_try) 2>&5
40046   ac_status=$?
40047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40048   (exit $ac_status); }; }; then
40049   ol_cv_db_db_2=yes
40050 else
40051   echo "$as_me: failed program was:" >&5
40052 sed 's/^/| /' conftest.$ac_ext >&5
40053
40054 ol_cv_db_db_2=no
40055 fi
40056 rm -f conftest.err conftest.$ac_objext \
40057       conftest$ac_exeext conftest.$ac_ext
40058
40059         LIBS="$ol_LIBS"
40060
40061 fi
40062 echo "$as_me:$LINENO: result: $ol_cv_db_db_2" >&5
40063 echo "${ECHO_T}$ol_cv_db_db_2" >&6
40064
40065         if test $ol_cv_db_db_2 = yes ; then
40066                 ol_cv_lib_db=-ldb-2
40067         fi
40068 fi
40069
40070 if test $ol_cv_lib_db = no ; then
40071         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb1)" >&5
40072 echo $ECHO_N "checking for Berkeley DB link (-ldb1)... $ECHO_C" >&6
40073 if test "${ol_cv_db_db1+set}" = set; then
40074   echo $ECHO_N "(cached) $ECHO_C" >&6
40075 else
40076
40077         ol_DB_LIB=-ldb1
40078         ol_LIBS=$LIBS
40079         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40080
40081         cat >conftest.$ac_ext <<_ACEOF
40082 /* confdefs.h.  */
40083 _ACEOF
40084 cat confdefs.h >>conftest.$ac_ext
40085 cat >>conftest.$ac_ext <<_ACEOF
40086 /* end confdefs.h.  */
40087
40088 #ifdef HAVE_DB_185_H
40089 # include <db_185.h>
40090 #else
40091 # include <db.h>
40092 #endif
40093
40094 #ifndef DB_VERSION_MAJOR
40095 # define DB_VERSION_MAJOR 1
40096 #endif
40097
40098 #ifndef NULL
40099 #define NULL ((void*)0)
40100 #endif
40101
40102 int
40103 main ()
40104 {
40105
40106 #if DB_VERSION_MAJOR > 1
40107         {
40108                 char *version;
40109                 int major, minor, patch;
40110
40111                 version = db_version( &major, &minor, &patch );
40112
40113                 if( major != DB_VERSION_MAJOR ||
40114                         minor < DB_VERSION_MINOR )
40115                 {
40116                         printf("Berkeley DB version mismatch\n"
40117                                 "\theader: %s\n\tlibrary: %s\n",
40118                                 DB_VERSION_STRING, version);
40119                         return 1;
40120                 }
40121         }
40122 #endif
40123
40124 #if DB_VERSION_MAJOR > 2
40125         db_env_create( NULL, 0 );
40126 #elif DB_VERSION_MAJOR > 1
40127         db_appexit( NULL );
40128 #else
40129         (void) dbopen( NULL, 0, 0, 0, NULL);
40130 #endif
40131
40132   ;
40133   return 0;
40134 }
40135 _ACEOF
40136 rm -f conftest.$ac_objext conftest$ac_exeext
40137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40138   (eval $ac_link) 2>conftest.er1
40139   ac_status=$?
40140   grep -v '^ *+' conftest.er1 >conftest.err
40141   rm -f conftest.er1
40142   cat conftest.err >&5
40143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40144   (exit $ac_status); } &&
40145          { ac_try='test -z "$ac_c_werror_flag"
40146                          || test ! -s conftest.err'
40147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40148   (eval $ac_try) 2>&5
40149   ac_status=$?
40150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40151   (exit $ac_status); }; } &&
40152          { ac_try='test -s conftest$ac_exeext'
40153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40154   (eval $ac_try) 2>&5
40155   ac_status=$?
40156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40157   (exit $ac_status); }; }; then
40158   ol_cv_db_db1=yes
40159 else
40160   echo "$as_me: failed program was:" >&5
40161 sed 's/^/| /' conftest.$ac_ext >&5
40162
40163 ol_cv_db_db1=no
40164 fi
40165 rm -f conftest.err conftest.$ac_objext \
40166       conftest$ac_exeext conftest.$ac_ext
40167
40168         LIBS="$ol_LIBS"
40169
40170 fi
40171 echo "$as_me:$LINENO: result: $ol_cv_db_db1" >&5
40172 echo "${ECHO_T}$ol_cv_db_db1" >&6
40173
40174         if test $ol_cv_db_db1 = yes ; then
40175                 ol_cv_lib_db=-ldb1
40176         fi
40177 fi
40178
40179 if test $ol_cv_lib_db = no ; then
40180         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-1)" >&5
40181 echo $ECHO_N "checking for Berkeley DB link (-ldb-1)... $ECHO_C" >&6
40182 if test "${ol_cv_db_db_1+set}" = set; then
40183   echo $ECHO_N "(cached) $ECHO_C" >&6
40184 else
40185
40186         ol_DB_LIB=-ldb-1
40187         ol_LIBS=$LIBS
40188         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40189
40190         cat >conftest.$ac_ext <<_ACEOF
40191 /* confdefs.h.  */
40192 _ACEOF
40193 cat confdefs.h >>conftest.$ac_ext
40194 cat >>conftest.$ac_ext <<_ACEOF
40195 /* end confdefs.h.  */
40196
40197 #ifdef HAVE_DB_185_H
40198 # include <db_185.h>
40199 #else
40200 # include <db.h>
40201 #endif
40202
40203 #ifndef DB_VERSION_MAJOR
40204 # define DB_VERSION_MAJOR 1
40205 #endif
40206
40207 #ifndef NULL
40208 #define NULL ((void*)0)
40209 #endif
40210
40211 int
40212 main ()
40213 {
40214
40215 #if DB_VERSION_MAJOR > 1
40216         {
40217                 char *version;
40218                 int major, minor, patch;
40219
40220                 version = db_version( &major, &minor, &patch );
40221
40222                 if( major != DB_VERSION_MAJOR ||
40223                         minor < DB_VERSION_MINOR )
40224                 {
40225                         printf("Berkeley DB version mismatch\n"
40226                                 "\theader: %s\n\tlibrary: %s\n",
40227                                 DB_VERSION_STRING, version);
40228                         return 1;
40229                 }
40230         }
40231 #endif
40232
40233 #if DB_VERSION_MAJOR > 2
40234         db_env_create( NULL, 0 );
40235 #elif DB_VERSION_MAJOR > 1
40236         db_appexit( NULL );
40237 #else
40238         (void) dbopen( NULL, 0, 0, 0, NULL);
40239 #endif
40240
40241   ;
40242   return 0;
40243 }
40244 _ACEOF
40245 rm -f conftest.$ac_objext conftest$ac_exeext
40246 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40247   (eval $ac_link) 2>conftest.er1
40248   ac_status=$?
40249   grep -v '^ *+' conftest.er1 >conftest.err
40250   rm -f conftest.er1
40251   cat conftest.err >&5
40252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40253   (exit $ac_status); } &&
40254          { ac_try='test -z "$ac_c_werror_flag"
40255                          || test ! -s conftest.err'
40256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40257   (eval $ac_try) 2>&5
40258   ac_status=$?
40259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40260   (exit $ac_status); }; } &&
40261          { ac_try='test -s conftest$ac_exeext'
40262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40263   (eval $ac_try) 2>&5
40264   ac_status=$?
40265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40266   (exit $ac_status); }; }; then
40267   ol_cv_db_db_1=yes
40268 else
40269   echo "$as_me: failed program was:" >&5
40270 sed 's/^/| /' conftest.$ac_ext >&5
40271
40272 ol_cv_db_db_1=no
40273 fi
40274 rm -f conftest.err conftest.$ac_objext \
40275       conftest$ac_exeext conftest.$ac_ext
40276
40277         LIBS="$ol_LIBS"
40278
40279 fi
40280 echo "$as_me:$LINENO: result: $ol_cv_db_db_1" >&5
40281 echo "${ECHO_T}$ol_cv_db_db_1" >&6
40282
40283         if test $ol_cv_db_db_1 = yes ; then
40284                 ol_cv_lib_db=-ldb-1
40285         fi
40286 fi
40287
40288
40289                 if test "$ol_cv_lib_db" != no ; then
40290                         ol_cv_berkeley_db=yes
40291                 fi
40292         fi
40293 fi
40294
40295         else
40296                 ol_cv_berkeley_db=no
40297
40298 for ac_header in db.h
40299 do
40300 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
40301 if eval "test \"\${$as_ac_Header+set}\" = set"; then
40302   echo "$as_me:$LINENO: checking for $ac_header" >&5
40303 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
40304 if eval "test \"\${$as_ac_Header+set}\" = set"; then
40305   echo $ECHO_N "(cached) $ECHO_C" >&6
40306 fi
40307 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
40308 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
40309 else
40310   # Is the header compilable?
40311 echo "$as_me:$LINENO: checking $ac_header usability" >&5
40312 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
40313 cat >conftest.$ac_ext <<_ACEOF
40314 /* confdefs.h.  */
40315 _ACEOF
40316 cat confdefs.h >>conftest.$ac_ext
40317 cat >>conftest.$ac_ext <<_ACEOF
40318 /* end confdefs.h.  */
40319 $ac_includes_default
40320 #include <$ac_header>
40321 _ACEOF
40322 rm -f conftest.$ac_objext
40323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40324   (eval $ac_compile) 2>conftest.er1
40325   ac_status=$?
40326   grep -v '^ *+' conftest.er1 >conftest.err
40327   rm -f conftest.er1
40328   cat conftest.err >&5
40329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40330   (exit $ac_status); } &&
40331          { ac_try='test -z "$ac_c_werror_flag"
40332                          || test ! -s conftest.err'
40333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40334   (eval $ac_try) 2>&5
40335   ac_status=$?
40336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40337   (exit $ac_status); }; } &&
40338          { ac_try='test -s conftest.$ac_objext'
40339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40340   (eval $ac_try) 2>&5
40341   ac_status=$?
40342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40343   (exit $ac_status); }; }; then
40344   ac_header_compiler=yes
40345 else
40346   echo "$as_me: failed program was:" >&5
40347 sed 's/^/| /' conftest.$ac_ext >&5
40348
40349 ac_header_compiler=no
40350 fi
40351 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40352 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40353 echo "${ECHO_T}$ac_header_compiler" >&6
40354
40355 # Is the header present?
40356 echo "$as_me:$LINENO: checking $ac_header presence" >&5
40357 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
40358 cat >conftest.$ac_ext <<_ACEOF
40359 /* confdefs.h.  */
40360 _ACEOF
40361 cat confdefs.h >>conftest.$ac_ext
40362 cat >>conftest.$ac_ext <<_ACEOF
40363 /* end confdefs.h.  */
40364 #include <$ac_header>
40365 _ACEOF
40366 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
40367   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
40368   ac_status=$?
40369   grep -v '^ *+' conftest.er1 >conftest.err
40370   rm -f conftest.er1
40371   cat conftest.err >&5
40372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40373   (exit $ac_status); } >/dev/null; then
40374   if test -s conftest.err; then
40375     ac_cpp_err=$ac_c_preproc_warn_flag
40376     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
40377   else
40378     ac_cpp_err=
40379   fi
40380 else
40381   ac_cpp_err=yes
40382 fi
40383 if test -z "$ac_cpp_err"; then
40384   ac_header_preproc=yes
40385 else
40386   echo "$as_me: failed program was:" >&5
40387 sed 's/^/| /' conftest.$ac_ext >&5
40388
40389   ac_header_preproc=no
40390 fi
40391 rm -f conftest.err conftest.$ac_ext
40392 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40393 echo "${ECHO_T}$ac_header_preproc" >&6
40394
40395 # So?  What about this header?
40396 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40397   yes:no: )
40398     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
40399 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
40400     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
40401 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
40402     ac_header_preproc=yes
40403     ;;
40404   no:yes:* )
40405     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
40406 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
40407     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
40408 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
40409     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
40410 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
40411     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
40412 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
40413     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
40414 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
40415     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
40416 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
40417     (
40418       cat <<\_ASBOX
40419 ## ------------------------------------------ ##
40420 ## Report this to the AC_PACKAGE_NAME lists.  ##
40421 ## ------------------------------------------ ##
40422 _ASBOX
40423     ) |
40424       sed "s/^/$as_me: WARNING:     /" >&2
40425     ;;
40426 esac
40427 echo "$as_me:$LINENO: checking for $ac_header" >&5
40428 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
40429 if eval "test \"\${$as_ac_Header+set}\" = set"; then
40430   echo $ECHO_N "(cached) $ECHO_C" >&6
40431 else
40432   eval "$as_ac_Header=\$ac_header_preproc"
40433 fi
40434 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
40435 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
40436
40437 fi
40438 if test `eval echo '${'$as_ac_Header'}'` = yes; then
40439   cat >>confdefs.h <<_ACEOF
40440 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
40441 _ACEOF
40442
40443 fi
40444
40445 done
40446
40447 if test $ac_cv_header_db_h = yes; then
40448         ol_cv_lib_db=no
40449 if test $ol_cv_lib_db = no ; then
40450         echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
40451 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6
40452 if test "${ol_cv_db_none+set}" = set; then
40453   echo $ECHO_N "(cached) $ECHO_C" >&6
40454 else
40455
40456         ol_DB_LIB=
40457         ol_LIBS=$LIBS
40458         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40459
40460         cat >conftest.$ac_ext <<_ACEOF
40461 /* confdefs.h.  */
40462 _ACEOF
40463 cat confdefs.h >>conftest.$ac_ext
40464 cat >>conftest.$ac_ext <<_ACEOF
40465 /* end confdefs.h.  */
40466
40467 #ifdef HAVE_DB_185_H
40468 # include <db_185.h>
40469 #else
40470 # include <db.h>
40471 #endif
40472
40473 #ifndef DB_VERSION_MAJOR
40474 # define DB_VERSION_MAJOR 1
40475 #endif
40476
40477 #ifndef NULL
40478 #define NULL ((void*)0)
40479 #endif
40480
40481 int
40482 main ()
40483 {
40484
40485 #if DB_VERSION_MAJOR > 1
40486         {
40487                 char *version;
40488                 int major, minor, patch;
40489
40490                 version = db_version( &major, &minor, &patch );
40491
40492                 if( major != DB_VERSION_MAJOR ||
40493                         minor < DB_VERSION_MINOR )
40494                 {
40495                         printf("Berkeley DB version mismatch\n"
40496                                 "\theader: %s\n\tlibrary: %s\n",
40497                                 DB_VERSION_STRING, version);
40498                         return 1;
40499                 }
40500         }
40501 #endif
40502
40503 #if DB_VERSION_MAJOR > 2
40504         db_env_create( NULL, 0 );
40505 #elif DB_VERSION_MAJOR > 1
40506         db_appexit( NULL );
40507 #else
40508         (void) dbopen( NULL, 0, 0, 0, NULL);
40509 #endif
40510
40511   ;
40512   return 0;
40513 }
40514 _ACEOF
40515 rm -f conftest.$ac_objext conftest$ac_exeext
40516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40517   (eval $ac_link) 2>conftest.er1
40518   ac_status=$?
40519   grep -v '^ *+' conftest.er1 >conftest.err
40520   rm -f conftest.er1
40521   cat conftest.err >&5
40522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40523   (exit $ac_status); } &&
40524          { ac_try='test -z "$ac_c_werror_flag"
40525                          || test ! -s conftest.err'
40526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40527   (eval $ac_try) 2>&5
40528   ac_status=$?
40529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40530   (exit $ac_status); }; } &&
40531          { ac_try='test -s conftest$ac_exeext'
40532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40533   (eval $ac_try) 2>&5
40534   ac_status=$?
40535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40536   (exit $ac_status); }; }; then
40537   ol_cv_db_none=yes
40538 else
40539   echo "$as_me: failed program was:" >&5
40540 sed 's/^/| /' conftest.$ac_ext >&5
40541
40542 ol_cv_db_none=no
40543 fi
40544 rm -f conftest.err conftest.$ac_objext \
40545       conftest$ac_exeext conftest.$ac_ext
40546
40547         LIBS="$ol_LIBS"
40548
40549 fi
40550 echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
40551 echo "${ECHO_T}$ol_cv_db_none" >&6
40552
40553         if test $ol_cv_db_none = yes ; then
40554                 ol_cv_lib_db=yes
40555         fi
40556 fi
40557
40558 if test $ol_cv_lib_db = no ; then
40559         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb43)" >&5
40560 echo $ECHO_N "checking for Berkeley DB link (-ldb43)... $ECHO_C" >&6
40561 if test "${ol_cv_db_db43+set}" = set; then
40562   echo $ECHO_N "(cached) $ECHO_C" >&6
40563 else
40564
40565         ol_DB_LIB=-ldb43
40566         ol_LIBS=$LIBS
40567         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40568
40569         cat >conftest.$ac_ext <<_ACEOF
40570 /* confdefs.h.  */
40571 _ACEOF
40572 cat confdefs.h >>conftest.$ac_ext
40573 cat >>conftest.$ac_ext <<_ACEOF
40574 /* end confdefs.h.  */
40575
40576 #ifdef HAVE_DB_185_H
40577 # include <db_185.h>
40578 #else
40579 # include <db.h>
40580 #endif
40581
40582 #ifndef DB_VERSION_MAJOR
40583 # define DB_VERSION_MAJOR 1
40584 #endif
40585
40586 #ifndef NULL
40587 #define NULL ((void*)0)
40588 #endif
40589
40590 int
40591 main ()
40592 {
40593
40594 #if DB_VERSION_MAJOR > 1
40595         {
40596                 char *version;
40597                 int major, minor, patch;
40598
40599                 version = db_version( &major, &minor, &patch );
40600
40601                 if( major != DB_VERSION_MAJOR ||
40602                         minor < DB_VERSION_MINOR )
40603                 {
40604                         printf("Berkeley DB version mismatch\n"
40605                                 "\theader: %s\n\tlibrary: %s\n",
40606                                 DB_VERSION_STRING, version);
40607                         return 1;
40608                 }
40609         }
40610 #endif
40611
40612 #if DB_VERSION_MAJOR > 2
40613         db_env_create( NULL, 0 );
40614 #elif DB_VERSION_MAJOR > 1
40615         db_appexit( NULL );
40616 #else
40617         (void) dbopen( NULL, 0, 0, 0, NULL);
40618 #endif
40619
40620   ;
40621   return 0;
40622 }
40623 _ACEOF
40624 rm -f conftest.$ac_objext conftest$ac_exeext
40625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40626   (eval $ac_link) 2>conftest.er1
40627   ac_status=$?
40628   grep -v '^ *+' conftest.er1 >conftest.err
40629   rm -f conftest.er1
40630   cat conftest.err >&5
40631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40632   (exit $ac_status); } &&
40633          { ac_try='test -z "$ac_c_werror_flag"
40634                          || test ! -s conftest.err'
40635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40636   (eval $ac_try) 2>&5
40637   ac_status=$?
40638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40639   (exit $ac_status); }; } &&
40640          { ac_try='test -s conftest$ac_exeext'
40641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40642   (eval $ac_try) 2>&5
40643   ac_status=$?
40644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40645   (exit $ac_status); }; }; then
40646   ol_cv_db_db43=yes
40647 else
40648   echo "$as_me: failed program was:" >&5
40649 sed 's/^/| /' conftest.$ac_ext >&5
40650
40651 ol_cv_db_db43=no
40652 fi
40653 rm -f conftest.err conftest.$ac_objext \
40654       conftest$ac_exeext conftest.$ac_ext
40655
40656         LIBS="$ol_LIBS"
40657
40658 fi
40659 echo "$as_me:$LINENO: result: $ol_cv_db_db43" >&5
40660 echo "${ECHO_T}$ol_cv_db_db43" >&6
40661
40662         if test $ol_cv_db_db43 = yes ; then
40663                 ol_cv_lib_db=-ldb43
40664         fi
40665 fi
40666
40667 if test $ol_cv_lib_db = no ; then
40668         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-43)" >&5
40669 echo $ECHO_N "checking for Berkeley DB link (-ldb-43)... $ECHO_C" >&6
40670 if test "${ol_cv_db_db_43+set}" = set; then
40671   echo $ECHO_N "(cached) $ECHO_C" >&6
40672 else
40673
40674         ol_DB_LIB=-ldb-43
40675         ol_LIBS=$LIBS
40676         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40677
40678         cat >conftest.$ac_ext <<_ACEOF
40679 /* confdefs.h.  */
40680 _ACEOF
40681 cat confdefs.h >>conftest.$ac_ext
40682 cat >>conftest.$ac_ext <<_ACEOF
40683 /* end confdefs.h.  */
40684
40685 #ifdef HAVE_DB_185_H
40686 # include <db_185.h>
40687 #else
40688 # include <db.h>
40689 #endif
40690
40691 #ifndef DB_VERSION_MAJOR
40692 # define DB_VERSION_MAJOR 1
40693 #endif
40694
40695 #ifndef NULL
40696 #define NULL ((void*)0)
40697 #endif
40698
40699 int
40700 main ()
40701 {
40702
40703 #if DB_VERSION_MAJOR > 1
40704         {
40705                 char *version;
40706                 int major, minor, patch;
40707
40708                 version = db_version( &major, &minor, &patch );
40709
40710                 if( major != DB_VERSION_MAJOR ||
40711                         minor < DB_VERSION_MINOR )
40712                 {
40713                         printf("Berkeley DB version mismatch\n"
40714                                 "\theader: %s\n\tlibrary: %s\n",
40715                                 DB_VERSION_STRING, version);
40716                         return 1;
40717                 }
40718         }
40719 #endif
40720
40721 #if DB_VERSION_MAJOR > 2
40722         db_env_create( NULL, 0 );
40723 #elif DB_VERSION_MAJOR > 1
40724         db_appexit( NULL );
40725 #else
40726         (void) dbopen( NULL, 0, 0, 0, NULL);
40727 #endif
40728
40729   ;
40730   return 0;
40731 }
40732 _ACEOF
40733 rm -f conftest.$ac_objext conftest$ac_exeext
40734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40735   (eval $ac_link) 2>conftest.er1
40736   ac_status=$?
40737   grep -v '^ *+' conftest.er1 >conftest.err
40738   rm -f conftest.er1
40739   cat conftest.err >&5
40740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40741   (exit $ac_status); } &&
40742          { ac_try='test -z "$ac_c_werror_flag"
40743                          || test ! -s conftest.err'
40744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40745   (eval $ac_try) 2>&5
40746   ac_status=$?
40747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40748   (exit $ac_status); }; } &&
40749          { ac_try='test -s conftest$ac_exeext'
40750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40751   (eval $ac_try) 2>&5
40752   ac_status=$?
40753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40754   (exit $ac_status); }; }; then
40755   ol_cv_db_db_43=yes
40756 else
40757   echo "$as_me: failed program was:" >&5
40758 sed 's/^/| /' conftest.$ac_ext >&5
40759
40760 ol_cv_db_db_43=no
40761 fi
40762 rm -f conftest.err conftest.$ac_objext \
40763       conftest$ac_exeext conftest.$ac_ext
40764
40765         LIBS="$ol_LIBS"
40766
40767 fi
40768 echo "$as_me:$LINENO: result: $ol_cv_db_db_43" >&5
40769 echo "${ECHO_T}$ol_cv_db_db_43" >&6
40770
40771         if test $ol_cv_db_db_43 = yes ; then
40772                 ol_cv_lib_db=-ldb-43
40773         fi
40774 fi
40775
40776 if test $ol_cv_lib_db = no ; then
40777         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.3)" >&5
40778 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.3)... $ECHO_C" >&6
40779 if test "${ol_cv_db_db_4_dot_3+set}" = set; then
40780   echo $ECHO_N "(cached) $ECHO_C" >&6
40781 else
40782
40783         ol_DB_LIB=-ldb-4.3
40784         ol_LIBS=$LIBS
40785         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40786
40787         cat >conftest.$ac_ext <<_ACEOF
40788 /* confdefs.h.  */
40789 _ACEOF
40790 cat confdefs.h >>conftest.$ac_ext
40791 cat >>conftest.$ac_ext <<_ACEOF
40792 /* end confdefs.h.  */
40793
40794 #ifdef HAVE_DB_185_H
40795 # include <db_185.h>
40796 #else
40797 # include <db.h>
40798 #endif
40799
40800 #ifndef DB_VERSION_MAJOR
40801 # define DB_VERSION_MAJOR 1
40802 #endif
40803
40804 #ifndef NULL
40805 #define NULL ((void*)0)
40806 #endif
40807
40808 int
40809 main ()
40810 {
40811
40812 #if DB_VERSION_MAJOR > 1
40813         {
40814                 char *version;
40815                 int major, minor, patch;
40816
40817                 version = db_version( &major, &minor, &patch );
40818
40819                 if( major != DB_VERSION_MAJOR ||
40820                         minor < DB_VERSION_MINOR )
40821                 {
40822                         printf("Berkeley DB version mismatch\n"
40823                                 "\theader: %s\n\tlibrary: %s\n",
40824                                 DB_VERSION_STRING, version);
40825                         return 1;
40826                 }
40827         }
40828 #endif
40829
40830 #if DB_VERSION_MAJOR > 2
40831         db_env_create( NULL, 0 );
40832 #elif DB_VERSION_MAJOR > 1
40833         db_appexit( NULL );
40834 #else
40835         (void) dbopen( NULL, 0, 0, 0, NULL);
40836 #endif
40837
40838   ;
40839   return 0;
40840 }
40841 _ACEOF
40842 rm -f conftest.$ac_objext conftest$ac_exeext
40843 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40844   (eval $ac_link) 2>conftest.er1
40845   ac_status=$?
40846   grep -v '^ *+' conftest.er1 >conftest.err
40847   rm -f conftest.er1
40848   cat conftest.err >&5
40849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40850   (exit $ac_status); } &&
40851          { ac_try='test -z "$ac_c_werror_flag"
40852                          || test ! -s conftest.err'
40853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40854   (eval $ac_try) 2>&5
40855   ac_status=$?
40856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40857   (exit $ac_status); }; } &&
40858          { ac_try='test -s conftest$ac_exeext'
40859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40860   (eval $ac_try) 2>&5
40861   ac_status=$?
40862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40863   (exit $ac_status); }; }; then
40864   ol_cv_db_db_4_dot_3=yes
40865 else
40866   echo "$as_me: failed program was:" >&5
40867 sed 's/^/| /' conftest.$ac_ext >&5
40868
40869 ol_cv_db_db_4_dot_3=no
40870 fi
40871 rm -f conftest.err conftest.$ac_objext \
40872       conftest$ac_exeext conftest.$ac_ext
40873
40874         LIBS="$ol_LIBS"
40875
40876 fi
40877 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_3" >&5
40878 echo "${ECHO_T}$ol_cv_db_db_4_dot_3" >&6
40879
40880         if test $ol_cv_db_db_4_dot_3 = yes ; then
40881                 ol_cv_lib_db=-ldb-4.3
40882         fi
40883 fi
40884
40885 if test $ol_cv_lib_db = no ; then
40886         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-3)" >&5
40887 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-3)... $ECHO_C" >&6
40888 if test "${ol_cv_db_db_4_3+set}" = set; then
40889   echo $ECHO_N "(cached) $ECHO_C" >&6
40890 else
40891
40892         ol_DB_LIB=-ldb-4-3
40893         ol_LIBS=$LIBS
40894         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40895
40896         cat >conftest.$ac_ext <<_ACEOF
40897 /* confdefs.h.  */
40898 _ACEOF
40899 cat confdefs.h >>conftest.$ac_ext
40900 cat >>conftest.$ac_ext <<_ACEOF
40901 /* end confdefs.h.  */
40902
40903 #ifdef HAVE_DB_185_H
40904 # include <db_185.h>
40905 #else
40906 # include <db.h>
40907 #endif
40908
40909 #ifndef DB_VERSION_MAJOR
40910 # define DB_VERSION_MAJOR 1
40911 #endif
40912
40913 #ifndef NULL
40914 #define NULL ((void*)0)
40915 #endif
40916
40917 int
40918 main ()
40919 {
40920
40921 #if DB_VERSION_MAJOR > 1
40922         {
40923                 char *version;
40924                 int major, minor, patch;
40925
40926                 version = db_version( &major, &minor, &patch );
40927
40928                 if( major != DB_VERSION_MAJOR ||
40929                         minor < DB_VERSION_MINOR )
40930                 {
40931                         printf("Berkeley DB version mismatch\n"
40932                                 "\theader: %s\n\tlibrary: %s\n",
40933                                 DB_VERSION_STRING, version);
40934                         return 1;
40935                 }
40936         }
40937 #endif
40938
40939 #if DB_VERSION_MAJOR > 2
40940         db_env_create( NULL, 0 );
40941 #elif DB_VERSION_MAJOR > 1
40942         db_appexit( NULL );
40943 #else
40944         (void) dbopen( NULL, 0, 0, 0, NULL);
40945 #endif
40946
40947   ;
40948   return 0;
40949 }
40950 _ACEOF
40951 rm -f conftest.$ac_objext conftest$ac_exeext
40952 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40953   (eval $ac_link) 2>conftest.er1
40954   ac_status=$?
40955   grep -v '^ *+' conftest.er1 >conftest.err
40956   rm -f conftest.er1
40957   cat conftest.err >&5
40958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40959   (exit $ac_status); } &&
40960          { ac_try='test -z "$ac_c_werror_flag"
40961                          || test ! -s conftest.err'
40962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40963   (eval $ac_try) 2>&5
40964   ac_status=$?
40965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40966   (exit $ac_status); }; } &&
40967          { ac_try='test -s conftest$ac_exeext'
40968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40969   (eval $ac_try) 2>&5
40970   ac_status=$?
40971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40972   (exit $ac_status); }; }; then
40973   ol_cv_db_db_4_3=yes
40974 else
40975   echo "$as_me: failed program was:" >&5
40976 sed 's/^/| /' conftest.$ac_ext >&5
40977
40978 ol_cv_db_db_4_3=no
40979 fi
40980 rm -f conftest.err conftest.$ac_objext \
40981       conftest$ac_exeext conftest.$ac_ext
40982
40983         LIBS="$ol_LIBS"
40984
40985 fi
40986 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_3" >&5
40987 echo "${ECHO_T}$ol_cv_db_db_4_3" >&6
40988
40989         if test $ol_cv_db_db_4_3 = yes ; then
40990                 ol_cv_lib_db=-ldb-4-3
40991         fi
40992 fi
40993
40994 if test $ol_cv_lib_db = no ; then
40995         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb42)" >&5
40996 echo $ECHO_N "checking for Berkeley DB link (-ldb42)... $ECHO_C" >&6
40997 if test "${ol_cv_db_db42+set}" = set; then
40998   echo $ECHO_N "(cached) $ECHO_C" >&6
40999 else
41000
41001         ol_DB_LIB=-ldb42
41002         ol_LIBS=$LIBS
41003         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41004
41005         cat >conftest.$ac_ext <<_ACEOF
41006 /* confdefs.h.  */
41007 _ACEOF
41008 cat confdefs.h >>conftest.$ac_ext
41009 cat >>conftest.$ac_ext <<_ACEOF
41010 /* end confdefs.h.  */
41011
41012 #ifdef HAVE_DB_185_H
41013 # include <db_185.h>
41014 #else
41015 # include <db.h>
41016 #endif
41017
41018 #ifndef DB_VERSION_MAJOR
41019 # define DB_VERSION_MAJOR 1
41020 #endif
41021
41022 #ifndef NULL
41023 #define NULL ((void*)0)
41024 #endif
41025
41026 int
41027 main ()
41028 {
41029
41030 #if DB_VERSION_MAJOR > 1
41031         {
41032                 char *version;
41033                 int major, minor, patch;
41034
41035                 version = db_version( &major, &minor, &patch );
41036
41037                 if( major != DB_VERSION_MAJOR ||
41038                         minor < DB_VERSION_MINOR )
41039                 {
41040                         printf("Berkeley DB version mismatch\n"
41041                                 "\theader: %s\n\tlibrary: %s\n",
41042                                 DB_VERSION_STRING, version);
41043                         return 1;
41044                 }
41045         }
41046 #endif
41047
41048 #if DB_VERSION_MAJOR > 2
41049         db_env_create( NULL, 0 );
41050 #elif DB_VERSION_MAJOR > 1
41051         db_appexit( NULL );
41052 #else
41053         (void) dbopen( NULL, 0, 0, 0, NULL);
41054 #endif
41055
41056   ;
41057   return 0;
41058 }
41059 _ACEOF
41060 rm -f conftest.$ac_objext conftest$ac_exeext
41061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41062   (eval $ac_link) 2>conftest.er1
41063   ac_status=$?
41064   grep -v '^ *+' conftest.er1 >conftest.err
41065   rm -f conftest.er1
41066   cat conftest.err >&5
41067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41068   (exit $ac_status); } &&
41069          { ac_try='test -z "$ac_c_werror_flag"
41070                          || test ! -s conftest.err'
41071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41072   (eval $ac_try) 2>&5
41073   ac_status=$?
41074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41075   (exit $ac_status); }; } &&
41076          { ac_try='test -s conftest$ac_exeext'
41077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41078   (eval $ac_try) 2>&5
41079   ac_status=$?
41080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41081   (exit $ac_status); }; }; then
41082   ol_cv_db_db42=yes
41083 else
41084   echo "$as_me: failed program was:" >&5
41085 sed 's/^/| /' conftest.$ac_ext >&5
41086
41087 ol_cv_db_db42=no
41088 fi
41089 rm -f conftest.err conftest.$ac_objext \
41090       conftest$ac_exeext conftest.$ac_ext
41091
41092         LIBS="$ol_LIBS"
41093
41094 fi
41095 echo "$as_me:$LINENO: result: $ol_cv_db_db42" >&5
41096 echo "${ECHO_T}$ol_cv_db_db42" >&6
41097
41098         if test $ol_cv_db_db42 = yes ; then
41099                 ol_cv_lib_db=-ldb42
41100         fi
41101 fi
41102
41103 if test $ol_cv_lib_db = no ; then
41104         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-42)" >&5
41105 echo $ECHO_N "checking for Berkeley DB link (-ldb-42)... $ECHO_C" >&6
41106 if test "${ol_cv_db_db_42+set}" = set; then
41107   echo $ECHO_N "(cached) $ECHO_C" >&6
41108 else
41109
41110         ol_DB_LIB=-ldb-42
41111         ol_LIBS=$LIBS
41112         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41113
41114         cat >conftest.$ac_ext <<_ACEOF
41115 /* confdefs.h.  */
41116 _ACEOF
41117 cat confdefs.h >>conftest.$ac_ext
41118 cat >>conftest.$ac_ext <<_ACEOF
41119 /* end confdefs.h.  */
41120
41121 #ifdef HAVE_DB_185_H
41122 # include <db_185.h>
41123 #else
41124 # include <db.h>
41125 #endif
41126
41127 #ifndef DB_VERSION_MAJOR
41128 # define DB_VERSION_MAJOR 1
41129 #endif
41130
41131 #ifndef NULL
41132 #define NULL ((void*)0)
41133 #endif
41134
41135 int
41136 main ()
41137 {
41138
41139 #if DB_VERSION_MAJOR > 1
41140         {
41141                 char *version;
41142                 int major, minor, patch;
41143
41144                 version = db_version( &major, &minor, &patch );
41145
41146                 if( major != DB_VERSION_MAJOR ||
41147                         minor < DB_VERSION_MINOR )
41148                 {
41149                         printf("Berkeley DB version mismatch\n"
41150                                 "\theader: %s\n\tlibrary: %s\n",
41151                                 DB_VERSION_STRING, version);
41152                         return 1;
41153                 }
41154         }
41155 #endif
41156
41157 #if DB_VERSION_MAJOR > 2
41158         db_env_create( NULL, 0 );
41159 #elif DB_VERSION_MAJOR > 1
41160         db_appexit( NULL );
41161 #else
41162         (void) dbopen( NULL, 0, 0, 0, NULL);
41163 #endif
41164
41165   ;
41166   return 0;
41167 }
41168 _ACEOF
41169 rm -f conftest.$ac_objext conftest$ac_exeext
41170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41171   (eval $ac_link) 2>conftest.er1
41172   ac_status=$?
41173   grep -v '^ *+' conftest.er1 >conftest.err
41174   rm -f conftest.er1
41175   cat conftest.err >&5
41176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41177   (exit $ac_status); } &&
41178          { ac_try='test -z "$ac_c_werror_flag"
41179                          || test ! -s conftest.err'
41180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41181   (eval $ac_try) 2>&5
41182   ac_status=$?
41183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41184   (exit $ac_status); }; } &&
41185          { ac_try='test -s conftest$ac_exeext'
41186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41187   (eval $ac_try) 2>&5
41188   ac_status=$?
41189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41190   (exit $ac_status); }; }; then
41191   ol_cv_db_db_42=yes
41192 else
41193   echo "$as_me: failed program was:" >&5
41194 sed 's/^/| /' conftest.$ac_ext >&5
41195
41196 ol_cv_db_db_42=no
41197 fi
41198 rm -f conftest.err conftest.$ac_objext \
41199       conftest$ac_exeext conftest.$ac_ext
41200
41201         LIBS="$ol_LIBS"
41202
41203 fi
41204 echo "$as_me:$LINENO: result: $ol_cv_db_db_42" >&5
41205 echo "${ECHO_T}$ol_cv_db_db_42" >&6
41206
41207         if test $ol_cv_db_db_42 = yes ; then
41208                 ol_cv_lib_db=-ldb-42
41209         fi
41210 fi
41211
41212 if test $ol_cv_lib_db = no ; then
41213         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.2)" >&5
41214 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.2)... $ECHO_C" >&6
41215 if test "${ol_cv_db_db_4_dot_2+set}" = set; then
41216   echo $ECHO_N "(cached) $ECHO_C" >&6
41217 else
41218
41219         ol_DB_LIB=-ldb-4.2
41220         ol_LIBS=$LIBS
41221         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41222
41223         cat >conftest.$ac_ext <<_ACEOF
41224 /* confdefs.h.  */
41225 _ACEOF
41226 cat confdefs.h >>conftest.$ac_ext
41227 cat >>conftest.$ac_ext <<_ACEOF
41228 /* end confdefs.h.  */
41229
41230 #ifdef HAVE_DB_185_H
41231 # include <db_185.h>
41232 #else
41233 # include <db.h>
41234 #endif
41235
41236 #ifndef DB_VERSION_MAJOR
41237 # define DB_VERSION_MAJOR 1
41238 #endif
41239
41240 #ifndef NULL
41241 #define NULL ((void*)0)
41242 #endif
41243
41244 int
41245 main ()
41246 {
41247
41248 #if DB_VERSION_MAJOR > 1
41249         {
41250                 char *version;
41251                 int major, minor, patch;
41252
41253                 version = db_version( &major, &minor, &patch );
41254
41255                 if( major != DB_VERSION_MAJOR ||
41256                         minor < DB_VERSION_MINOR )
41257                 {
41258                         printf("Berkeley DB version mismatch\n"
41259                                 "\theader: %s\n\tlibrary: %s\n",
41260                                 DB_VERSION_STRING, version);
41261                         return 1;
41262                 }
41263         }
41264 #endif
41265
41266 #if DB_VERSION_MAJOR > 2
41267         db_env_create( NULL, 0 );
41268 #elif DB_VERSION_MAJOR > 1
41269         db_appexit( NULL );
41270 #else
41271         (void) dbopen( NULL, 0, 0, 0, NULL);
41272 #endif
41273
41274   ;
41275   return 0;
41276 }
41277 _ACEOF
41278 rm -f conftest.$ac_objext conftest$ac_exeext
41279 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41280   (eval $ac_link) 2>conftest.er1
41281   ac_status=$?
41282   grep -v '^ *+' conftest.er1 >conftest.err
41283   rm -f conftest.er1
41284   cat conftest.err >&5
41285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41286   (exit $ac_status); } &&
41287          { ac_try='test -z "$ac_c_werror_flag"
41288                          || test ! -s conftest.err'
41289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41290   (eval $ac_try) 2>&5
41291   ac_status=$?
41292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41293   (exit $ac_status); }; } &&
41294          { ac_try='test -s conftest$ac_exeext'
41295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41296   (eval $ac_try) 2>&5
41297   ac_status=$?
41298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41299   (exit $ac_status); }; }; then
41300   ol_cv_db_db_4_dot_2=yes
41301 else
41302   echo "$as_me: failed program was:" >&5
41303 sed 's/^/| /' conftest.$ac_ext >&5
41304
41305 ol_cv_db_db_4_dot_2=no
41306 fi
41307 rm -f conftest.err conftest.$ac_objext \
41308       conftest$ac_exeext conftest.$ac_ext
41309
41310         LIBS="$ol_LIBS"
41311
41312 fi
41313 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_2" >&5
41314 echo "${ECHO_T}$ol_cv_db_db_4_dot_2" >&6
41315
41316         if test $ol_cv_db_db_4_dot_2 = yes ; then
41317                 ol_cv_lib_db=-ldb-4.2
41318         fi
41319 fi
41320
41321 if test $ol_cv_lib_db = no ; then
41322         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-2)" >&5
41323 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-2)... $ECHO_C" >&6
41324 if test "${ol_cv_db_db_4_2+set}" = set; then
41325   echo $ECHO_N "(cached) $ECHO_C" >&6
41326 else
41327
41328         ol_DB_LIB=-ldb-4-2
41329         ol_LIBS=$LIBS
41330         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41331
41332         cat >conftest.$ac_ext <<_ACEOF
41333 /* confdefs.h.  */
41334 _ACEOF
41335 cat confdefs.h >>conftest.$ac_ext
41336 cat >>conftest.$ac_ext <<_ACEOF
41337 /* end confdefs.h.  */
41338
41339 #ifdef HAVE_DB_185_H
41340 # include <db_185.h>
41341 #else
41342 # include <db.h>
41343 #endif
41344
41345 #ifndef DB_VERSION_MAJOR
41346 # define DB_VERSION_MAJOR 1
41347 #endif
41348
41349 #ifndef NULL
41350 #define NULL ((void*)0)
41351 #endif
41352
41353 int
41354 main ()
41355 {
41356
41357 #if DB_VERSION_MAJOR > 1
41358         {
41359                 char *version;
41360                 int major, minor, patch;
41361
41362                 version = db_version( &major, &minor, &patch );
41363
41364                 if( major != DB_VERSION_MAJOR ||
41365                         minor < DB_VERSION_MINOR )
41366                 {
41367                         printf("Berkeley DB version mismatch\n"
41368                                 "\theader: %s\n\tlibrary: %s\n",
41369                                 DB_VERSION_STRING, version);
41370                         return 1;
41371                 }
41372         }
41373 #endif
41374
41375 #if DB_VERSION_MAJOR > 2
41376         db_env_create( NULL, 0 );
41377 #elif DB_VERSION_MAJOR > 1
41378         db_appexit( NULL );
41379 #else
41380         (void) dbopen( NULL, 0, 0, 0, NULL);
41381 #endif
41382
41383   ;
41384   return 0;
41385 }
41386 _ACEOF
41387 rm -f conftest.$ac_objext conftest$ac_exeext
41388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41389   (eval $ac_link) 2>conftest.er1
41390   ac_status=$?
41391   grep -v '^ *+' conftest.er1 >conftest.err
41392   rm -f conftest.er1
41393   cat conftest.err >&5
41394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41395   (exit $ac_status); } &&
41396          { ac_try='test -z "$ac_c_werror_flag"
41397                          || test ! -s conftest.err'
41398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41399   (eval $ac_try) 2>&5
41400   ac_status=$?
41401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41402   (exit $ac_status); }; } &&
41403          { ac_try='test -s conftest$ac_exeext'
41404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41405   (eval $ac_try) 2>&5
41406   ac_status=$?
41407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41408   (exit $ac_status); }; }; then
41409   ol_cv_db_db_4_2=yes
41410 else
41411   echo "$as_me: failed program was:" >&5
41412 sed 's/^/| /' conftest.$ac_ext >&5
41413
41414 ol_cv_db_db_4_2=no
41415 fi
41416 rm -f conftest.err conftest.$ac_objext \
41417       conftest$ac_exeext conftest.$ac_ext
41418
41419         LIBS="$ol_LIBS"
41420
41421 fi
41422 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_2" >&5
41423 echo "${ECHO_T}$ol_cv_db_db_4_2" >&6
41424
41425         if test $ol_cv_db_db_4_2 = yes ; then
41426                 ol_cv_lib_db=-ldb-4-2
41427         fi
41428 fi
41429
41430 if test $ol_cv_lib_db = no ; then
41431         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
41432 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6
41433 if test "${ol_cv_db_db_4+set}" = set; then
41434   echo $ECHO_N "(cached) $ECHO_C" >&6
41435 else
41436
41437         ol_DB_LIB=-ldb-4
41438         ol_LIBS=$LIBS
41439         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41440
41441         cat >conftest.$ac_ext <<_ACEOF
41442 /* confdefs.h.  */
41443 _ACEOF
41444 cat confdefs.h >>conftest.$ac_ext
41445 cat >>conftest.$ac_ext <<_ACEOF
41446 /* end confdefs.h.  */
41447
41448 #ifdef HAVE_DB_185_H
41449 # include <db_185.h>
41450 #else
41451 # include <db.h>
41452 #endif
41453
41454 #ifndef DB_VERSION_MAJOR
41455 # define DB_VERSION_MAJOR 1
41456 #endif
41457
41458 #ifndef NULL
41459 #define NULL ((void*)0)
41460 #endif
41461
41462 int
41463 main ()
41464 {
41465
41466 #if DB_VERSION_MAJOR > 1
41467         {
41468                 char *version;
41469                 int major, minor, patch;
41470
41471                 version = db_version( &major, &minor, &patch );
41472
41473                 if( major != DB_VERSION_MAJOR ||
41474                         minor < DB_VERSION_MINOR )
41475                 {
41476                         printf("Berkeley DB version mismatch\n"
41477                                 "\theader: %s\n\tlibrary: %s\n",
41478                                 DB_VERSION_STRING, version);
41479                         return 1;
41480                 }
41481         }
41482 #endif
41483
41484 #if DB_VERSION_MAJOR > 2
41485         db_env_create( NULL, 0 );
41486 #elif DB_VERSION_MAJOR > 1
41487         db_appexit( NULL );
41488 #else
41489         (void) dbopen( NULL, 0, 0, 0, NULL);
41490 #endif
41491
41492   ;
41493   return 0;
41494 }
41495 _ACEOF
41496 rm -f conftest.$ac_objext conftest$ac_exeext
41497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41498   (eval $ac_link) 2>conftest.er1
41499   ac_status=$?
41500   grep -v '^ *+' conftest.er1 >conftest.err
41501   rm -f conftest.er1
41502   cat conftest.err >&5
41503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41504   (exit $ac_status); } &&
41505          { ac_try='test -z "$ac_c_werror_flag"
41506                          || test ! -s conftest.err'
41507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41508   (eval $ac_try) 2>&5
41509   ac_status=$?
41510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41511   (exit $ac_status); }; } &&
41512          { ac_try='test -s conftest$ac_exeext'
41513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41514   (eval $ac_try) 2>&5
41515   ac_status=$?
41516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41517   (exit $ac_status); }; }; then
41518   ol_cv_db_db_4=yes
41519 else
41520   echo "$as_me: failed program was:" >&5
41521 sed 's/^/| /' conftest.$ac_ext >&5
41522
41523 ol_cv_db_db_4=no
41524 fi
41525 rm -f conftest.err conftest.$ac_objext \
41526       conftest$ac_exeext conftest.$ac_ext
41527
41528         LIBS="$ol_LIBS"
41529
41530 fi
41531 echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
41532 echo "${ECHO_T}$ol_cv_db_db_4" >&6
41533
41534         if test $ol_cv_db_db_4 = yes ; then
41535                 ol_cv_lib_db=-ldb-4
41536         fi
41537 fi
41538
41539 if test $ol_cv_lib_db = no ; then
41540         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
41541 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6
41542 if test "${ol_cv_db_db4+set}" = set; then
41543   echo $ECHO_N "(cached) $ECHO_C" >&6
41544 else
41545
41546         ol_DB_LIB=-ldb4
41547         ol_LIBS=$LIBS
41548         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41549
41550         cat >conftest.$ac_ext <<_ACEOF
41551 /* confdefs.h.  */
41552 _ACEOF
41553 cat confdefs.h >>conftest.$ac_ext
41554 cat >>conftest.$ac_ext <<_ACEOF
41555 /* end confdefs.h.  */
41556
41557 #ifdef HAVE_DB_185_H
41558 # include <db_185.h>
41559 #else
41560 # include <db.h>
41561 #endif
41562
41563 #ifndef DB_VERSION_MAJOR
41564 # define DB_VERSION_MAJOR 1
41565 #endif
41566
41567 #ifndef NULL
41568 #define NULL ((void*)0)
41569 #endif
41570
41571 int
41572 main ()
41573 {
41574
41575 #if DB_VERSION_MAJOR > 1
41576         {
41577                 char *version;
41578                 int major, minor, patch;
41579
41580                 version = db_version( &major, &minor, &patch );
41581
41582                 if( major != DB_VERSION_MAJOR ||
41583                         minor < DB_VERSION_MINOR )
41584                 {
41585                         printf("Berkeley DB version mismatch\n"
41586                                 "\theader: %s\n\tlibrary: %s\n",
41587                                 DB_VERSION_STRING, version);
41588                         return 1;
41589                 }
41590         }
41591 #endif
41592
41593 #if DB_VERSION_MAJOR > 2
41594         db_env_create( NULL, 0 );
41595 #elif DB_VERSION_MAJOR > 1
41596         db_appexit( NULL );
41597 #else
41598         (void) dbopen( NULL, 0, 0, 0, NULL);
41599 #endif
41600
41601   ;
41602   return 0;
41603 }
41604 _ACEOF
41605 rm -f conftest.$ac_objext conftest$ac_exeext
41606 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41607   (eval $ac_link) 2>conftest.er1
41608   ac_status=$?
41609   grep -v '^ *+' conftest.er1 >conftest.err
41610   rm -f conftest.er1
41611   cat conftest.err >&5
41612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41613   (exit $ac_status); } &&
41614          { ac_try='test -z "$ac_c_werror_flag"
41615                          || test ! -s conftest.err'
41616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41617   (eval $ac_try) 2>&5
41618   ac_status=$?
41619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41620   (exit $ac_status); }; } &&
41621          { ac_try='test -s conftest$ac_exeext'
41622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41623   (eval $ac_try) 2>&5
41624   ac_status=$?
41625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41626   (exit $ac_status); }; }; then
41627   ol_cv_db_db4=yes
41628 else
41629   echo "$as_me: failed program was:" >&5
41630 sed 's/^/| /' conftest.$ac_ext >&5
41631
41632 ol_cv_db_db4=no
41633 fi
41634 rm -f conftest.err conftest.$ac_objext \
41635       conftest$ac_exeext conftest.$ac_ext
41636
41637         LIBS="$ol_LIBS"
41638
41639 fi
41640 echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
41641 echo "${ECHO_T}$ol_cv_db_db4" >&6
41642
41643         if test $ol_cv_db_db4 = yes ; then
41644                 ol_cv_lib_db=-ldb4
41645         fi
41646 fi
41647
41648 if test $ol_cv_lib_db = no ; then
41649         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
41650 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6
41651 if test "${ol_cv_db_db+set}" = set; then
41652   echo $ECHO_N "(cached) $ECHO_C" >&6
41653 else
41654
41655         ol_DB_LIB=-ldb
41656         ol_LIBS=$LIBS
41657         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41658
41659         cat >conftest.$ac_ext <<_ACEOF
41660 /* confdefs.h.  */
41661 _ACEOF
41662 cat confdefs.h >>conftest.$ac_ext
41663 cat >>conftest.$ac_ext <<_ACEOF
41664 /* end confdefs.h.  */
41665
41666 #ifdef HAVE_DB_185_H
41667 # include <db_185.h>
41668 #else
41669 # include <db.h>
41670 #endif
41671
41672 #ifndef DB_VERSION_MAJOR
41673 # define DB_VERSION_MAJOR 1
41674 #endif
41675
41676 #ifndef NULL
41677 #define NULL ((void*)0)
41678 #endif
41679
41680 int
41681 main ()
41682 {
41683
41684 #if DB_VERSION_MAJOR > 1
41685         {
41686                 char *version;
41687                 int major, minor, patch;
41688
41689                 version = db_version( &major, &minor, &patch );
41690
41691                 if( major != DB_VERSION_MAJOR ||
41692                         minor < DB_VERSION_MINOR )
41693                 {
41694                         printf("Berkeley DB version mismatch\n"
41695                                 "\theader: %s\n\tlibrary: %s\n",
41696                                 DB_VERSION_STRING, version);
41697                         return 1;
41698                 }
41699         }
41700 #endif
41701
41702 #if DB_VERSION_MAJOR > 2
41703         db_env_create( NULL, 0 );
41704 #elif DB_VERSION_MAJOR > 1
41705         db_appexit( NULL );
41706 #else
41707         (void) dbopen( NULL, 0, 0, 0, NULL);
41708 #endif
41709
41710   ;
41711   return 0;
41712 }
41713 _ACEOF
41714 rm -f conftest.$ac_objext conftest$ac_exeext
41715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41716   (eval $ac_link) 2>conftest.er1
41717   ac_status=$?
41718   grep -v '^ *+' conftest.er1 >conftest.err
41719   rm -f conftest.er1
41720   cat conftest.err >&5
41721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41722   (exit $ac_status); } &&
41723          { ac_try='test -z "$ac_c_werror_flag"
41724                          || test ! -s conftest.err'
41725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41726   (eval $ac_try) 2>&5
41727   ac_status=$?
41728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41729   (exit $ac_status); }; } &&
41730          { ac_try='test -s conftest$ac_exeext'
41731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41732   (eval $ac_try) 2>&5
41733   ac_status=$?
41734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41735   (exit $ac_status); }; }; then
41736   ol_cv_db_db=yes
41737 else
41738   echo "$as_me: failed program was:" >&5
41739 sed 's/^/| /' conftest.$ac_ext >&5
41740
41741 ol_cv_db_db=no
41742 fi
41743 rm -f conftest.err conftest.$ac_objext \
41744       conftest$ac_exeext conftest.$ac_ext
41745
41746         LIBS="$ol_LIBS"
41747
41748 fi
41749 echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
41750 echo "${ECHO_T}$ol_cv_db_db" >&6
41751
41752         if test $ol_cv_db_db = yes ; then
41753                 ol_cv_lib_db=-ldb
41754         fi
41755 fi
41756
41757 if test $ol_cv_lib_db = no ; then
41758         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb41)" >&5
41759 echo $ECHO_N "checking for Berkeley DB link (-ldb41)... $ECHO_C" >&6
41760 if test "${ol_cv_db_db41+set}" = set; then
41761   echo $ECHO_N "(cached) $ECHO_C" >&6
41762 else
41763
41764         ol_DB_LIB=-ldb41
41765         ol_LIBS=$LIBS
41766         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41767
41768         cat >conftest.$ac_ext <<_ACEOF
41769 /* confdefs.h.  */
41770 _ACEOF
41771 cat confdefs.h >>conftest.$ac_ext
41772 cat >>conftest.$ac_ext <<_ACEOF
41773 /* end confdefs.h.  */
41774
41775 #ifdef HAVE_DB_185_H
41776 # include <db_185.h>
41777 #else
41778 # include <db.h>
41779 #endif
41780
41781 #ifndef DB_VERSION_MAJOR
41782 # define DB_VERSION_MAJOR 1
41783 #endif
41784
41785 #ifndef NULL
41786 #define NULL ((void*)0)
41787 #endif
41788
41789 int
41790 main ()
41791 {
41792
41793 #if DB_VERSION_MAJOR > 1
41794         {
41795                 char *version;
41796                 int major, minor, patch;
41797
41798                 version = db_version( &major, &minor, &patch );
41799
41800                 if( major != DB_VERSION_MAJOR ||
41801                         minor < DB_VERSION_MINOR )
41802                 {
41803                         printf("Berkeley DB version mismatch\n"
41804                                 "\theader: %s\n\tlibrary: %s\n",
41805                                 DB_VERSION_STRING, version);
41806                         return 1;
41807                 }
41808         }
41809 #endif
41810
41811 #if DB_VERSION_MAJOR > 2
41812         db_env_create( NULL, 0 );
41813 #elif DB_VERSION_MAJOR > 1
41814         db_appexit( NULL );
41815 #else
41816         (void) dbopen( NULL, 0, 0, 0, NULL);
41817 #endif
41818
41819   ;
41820   return 0;
41821 }
41822 _ACEOF
41823 rm -f conftest.$ac_objext conftest$ac_exeext
41824 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41825   (eval $ac_link) 2>conftest.er1
41826   ac_status=$?
41827   grep -v '^ *+' conftest.er1 >conftest.err
41828   rm -f conftest.er1
41829   cat conftest.err >&5
41830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41831   (exit $ac_status); } &&
41832          { ac_try='test -z "$ac_c_werror_flag"
41833                          || test ! -s conftest.err'
41834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41835   (eval $ac_try) 2>&5
41836   ac_status=$?
41837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41838   (exit $ac_status); }; } &&
41839          { ac_try='test -s conftest$ac_exeext'
41840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41841   (eval $ac_try) 2>&5
41842   ac_status=$?
41843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41844   (exit $ac_status); }; }; then
41845   ol_cv_db_db41=yes
41846 else
41847   echo "$as_me: failed program was:" >&5
41848 sed 's/^/| /' conftest.$ac_ext >&5
41849
41850 ol_cv_db_db41=no
41851 fi
41852 rm -f conftest.err conftest.$ac_objext \
41853       conftest$ac_exeext conftest.$ac_ext
41854
41855         LIBS="$ol_LIBS"
41856
41857 fi
41858 echo "$as_me:$LINENO: result: $ol_cv_db_db41" >&5
41859 echo "${ECHO_T}$ol_cv_db_db41" >&6
41860
41861         if test $ol_cv_db_db41 = yes ; then
41862                 ol_cv_lib_db=-ldb41
41863         fi
41864 fi
41865
41866 if test $ol_cv_lib_db = no ; then
41867         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-41)" >&5
41868 echo $ECHO_N "checking for Berkeley DB link (-ldb-41)... $ECHO_C" >&6
41869 if test "${ol_cv_db_db_41+set}" = set; then
41870   echo $ECHO_N "(cached) $ECHO_C" >&6
41871 else
41872
41873         ol_DB_LIB=-ldb-41
41874         ol_LIBS=$LIBS
41875         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41876
41877         cat >conftest.$ac_ext <<_ACEOF
41878 /* confdefs.h.  */
41879 _ACEOF
41880 cat confdefs.h >>conftest.$ac_ext
41881 cat >>conftest.$ac_ext <<_ACEOF
41882 /* end confdefs.h.  */
41883
41884 #ifdef HAVE_DB_185_H
41885 # include <db_185.h>
41886 #else
41887 # include <db.h>
41888 #endif
41889
41890 #ifndef DB_VERSION_MAJOR
41891 # define DB_VERSION_MAJOR 1
41892 #endif
41893
41894 #ifndef NULL
41895 #define NULL ((void*)0)
41896 #endif
41897
41898 int
41899 main ()
41900 {
41901
41902 #if DB_VERSION_MAJOR > 1
41903         {
41904                 char *version;
41905                 int major, minor, patch;
41906
41907                 version = db_version( &major, &minor, &patch );
41908
41909                 if( major != DB_VERSION_MAJOR ||
41910                         minor < DB_VERSION_MINOR )
41911                 {
41912                         printf("Berkeley DB version mismatch\n"
41913                                 "\theader: %s\n\tlibrary: %s\n",
41914                                 DB_VERSION_STRING, version);
41915                         return 1;
41916                 }
41917         }
41918 #endif
41919
41920 #if DB_VERSION_MAJOR > 2
41921         db_env_create( NULL, 0 );
41922 #elif DB_VERSION_MAJOR > 1
41923         db_appexit( NULL );
41924 #else
41925         (void) dbopen( NULL, 0, 0, 0, NULL);
41926 #endif
41927
41928   ;
41929   return 0;
41930 }
41931 _ACEOF
41932 rm -f conftest.$ac_objext conftest$ac_exeext
41933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41934   (eval $ac_link) 2>conftest.er1
41935   ac_status=$?
41936   grep -v '^ *+' conftest.er1 >conftest.err
41937   rm -f conftest.er1
41938   cat conftest.err >&5
41939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41940   (exit $ac_status); } &&
41941          { ac_try='test -z "$ac_c_werror_flag"
41942                          || test ! -s conftest.err'
41943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41944   (eval $ac_try) 2>&5
41945   ac_status=$?
41946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41947   (exit $ac_status); }; } &&
41948          { ac_try='test -s conftest$ac_exeext'
41949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41950   (eval $ac_try) 2>&5
41951   ac_status=$?
41952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41953   (exit $ac_status); }; }; then
41954   ol_cv_db_db_41=yes
41955 else
41956   echo "$as_me: failed program was:" >&5
41957 sed 's/^/| /' conftest.$ac_ext >&5
41958
41959 ol_cv_db_db_41=no
41960 fi
41961 rm -f conftest.err conftest.$ac_objext \
41962       conftest$ac_exeext conftest.$ac_ext
41963
41964         LIBS="$ol_LIBS"
41965
41966 fi
41967 echo "$as_me:$LINENO: result: $ol_cv_db_db_41" >&5
41968 echo "${ECHO_T}$ol_cv_db_db_41" >&6
41969
41970         if test $ol_cv_db_db_41 = yes ; then
41971                 ol_cv_lib_db=-ldb-41
41972         fi
41973 fi
41974
41975 if test $ol_cv_lib_db = no ; then
41976         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.1)" >&5
41977 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.1)... $ECHO_C" >&6
41978 if test "${ol_cv_db_db_4_dot_1+set}" = set; then
41979   echo $ECHO_N "(cached) $ECHO_C" >&6
41980 else
41981
41982         ol_DB_LIB=-ldb-4.1
41983         ol_LIBS=$LIBS
41984         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41985
41986         cat >conftest.$ac_ext <<_ACEOF
41987 /* confdefs.h.  */
41988 _ACEOF
41989 cat confdefs.h >>conftest.$ac_ext
41990 cat >>conftest.$ac_ext <<_ACEOF
41991 /* end confdefs.h.  */
41992
41993 #ifdef HAVE_DB_185_H
41994 # include <db_185.h>
41995 #else
41996 # include <db.h>
41997 #endif
41998
41999 #ifndef DB_VERSION_MAJOR
42000 # define DB_VERSION_MAJOR 1
42001 #endif
42002
42003 #ifndef NULL
42004 #define NULL ((void*)0)
42005 #endif
42006
42007 int
42008 main ()
42009 {
42010
42011 #if DB_VERSION_MAJOR > 1
42012         {
42013                 char *version;
42014                 int major, minor, patch;
42015
42016                 version = db_version( &major, &minor, &patch );
42017
42018                 if( major != DB_VERSION_MAJOR ||
42019                         minor < DB_VERSION_MINOR )
42020                 {
42021                         printf("Berkeley DB version mismatch\n"
42022                                 "\theader: %s\n\tlibrary: %s\n",
42023                                 DB_VERSION_STRING, version);
42024                         return 1;
42025                 }
42026         }
42027 #endif
42028
42029 #if DB_VERSION_MAJOR > 2
42030         db_env_create( NULL, 0 );
42031 #elif DB_VERSION_MAJOR > 1
42032         db_appexit( NULL );
42033 #else
42034         (void) dbopen( NULL, 0, 0, 0, NULL);
42035 #endif
42036
42037   ;
42038   return 0;
42039 }
42040 _ACEOF
42041 rm -f conftest.$ac_objext conftest$ac_exeext
42042 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42043   (eval $ac_link) 2>conftest.er1
42044   ac_status=$?
42045   grep -v '^ *+' conftest.er1 >conftest.err
42046   rm -f conftest.er1
42047   cat conftest.err >&5
42048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42049   (exit $ac_status); } &&
42050          { ac_try='test -z "$ac_c_werror_flag"
42051                          || test ! -s conftest.err'
42052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42053   (eval $ac_try) 2>&5
42054   ac_status=$?
42055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42056   (exit $ac_status); }; } &&
42057          { ac_try='test -s conftest$ac_exeext'
42058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42059   (eval $ac_try) 2>&5
42060   ac_status=$?
42061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42062   (exit $ac_status); }; }; then
42063   ol_cv_db_db_4_dot_1=yes
42064 else
42065   echo "$as_me: failed program was:" >&5
42066 sed 's/^/| /' conftest.$ac_ext >&5
42067
42068 ol_cv_db_db_4_dot_1=no
42069 fi
42070 rm -f conftest.err conftest.$ac_objext \
42071       conftest$ac_exeext conftest.$ac_ext
42072
42073         LIBS="$ol_LIBS"
42074
42075 fi
42076 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_1" >&5
42077 echo "${ECHO_T}$ol_cv_db_db_4_dot_1" >&6
42078
42079         if test $ol_cv_db_db_4_dot_1 = yes ; then
42080                 ol_cv_lib_db=-ldb-4.1
42081         fi
42082 fi
42083
42084 if test $ol_cv_lib_db = no ; then
42085         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-1)" >&5
42086 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-1)... $ECHO_C" >&6
42087 if test "${ol_cv_db_db_4_1+set}" = set; then
42088   echo $ECHO_N "(cached) $ECHO_C" >&6
42089 else
42090
42091         ol_DB_LIB=-ldb-4-1
42092         ol_LIBS=$LIBS
42093         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42094
42095         cat >conftest.$ac_ext <<_ACEOF
42096 /* confdefs.h.  */
42097 _ACEOF
42098 cat confdefs.h >>conftest.$ac_ext
42099 cat >>conftest.$ac_ext <<_ACEOF
42100 /* end confdefs.h.  */
42101
42102 #ifdef HAVE_DB_185_H
42103 # include <db_185.h>
42104 #else
42105 # include <db.h>
42106 #endif
42107
42108 #ifndef DB_VERSION_MAJOR
42109 # define DB_VERSION_MAJOR 1
42110 #endif
42111
42112 #ifndef NULL
42113 #define NULL ((void*)0)
42114 #endif
42115
42116 int
42117 main ()
42118 {
42119
42120 #if DB_VERSION_MAJOR > 1
42121         {
42122                 char *version;
42123                 int major, minor, patch;
42124
42125                 version = db_version( &major, &minor, &patch );
42126
42127                 if( major != DB_VERSION_MAJOR ||
42128                         minor < DB_VERSION_MINOR )
42129                 {
42130                         printf("Berkeley DB version mismatch\n"
42131                                 "\theader: %s\n\tlibrary: %s\n",
42132                                 DB_VERSION_STRING, version);
42133                         return 1;
42134                 }
42135         }
42136 #endif
42137
42138 #if DB_VERSION_MAJOR > 2
42139         db_env_create( NULL, 0 );
42140 #elif DB_VERSION_MAJOR > 1
42141         db_appexit( NULL );
42142 #else
42143         (void) dbopen( NULL, 0, 0, 0, NULL);
42144 #endif
42145
42146   ;
42147   return 0;
42148 }
42149 _ACEOF
42150 rm -f conftest.$ac_objext conftest$ac_exeext
42151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42152   (eval $ac_link) 2>conftest.er1
42153   ac_status=$?
42154   grep -v '^ *+' conftest.er1 >conftest.err
42155   rm -f conftest.er1
42156   cat conftest.err >&5
42157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42158   (exit $ac_status); } &&
42159          { ac_try='test -z "$ac_c_werror_flag"
42160                          || test ! -s conftest.err'
42161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42162   (eval $ac_try) 2>&5
42163   ac_status=$?
42164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42165   (exit $ac_status); }; } &&
42166          { ac_try='test -s conftest$ac_exeext'
42167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42168   (eval $ac_try) 2>&5
42169   ac_status=$?
42170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42171   (exit $ac_status); }; }; then
42172   ol_cv_db_db_4_1=yes
42173 else
42174   echo "$as_me: failed program was:" >&5
42175 sed 's/^/| /' conftest.$ac_ext >&5
42176
42177 ol_cv_db_db_4_1=no
42178 fi
42179 rm -f conftest.err conftest.$ac_objext \
42180       conftest$ac_exeext conftest.$ac_ext
42181
42182         LIBS="$ol_LIBS"
42183
42184 fi
42185 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_1" >&5
42186 echo "${ECHO_T}$ol_cv_db_db_4_1" >&6
42187
42188         if test $ol_cv_db_db_4_1 = yes ; then
42189                 ol_cv_lib_db=-ldb-4-1
42190         fi
42191 fi
42192
42193 if test $ol_cv_lib_db = no ; then
42194         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb3)" >&5
42195 echo $ECHO_N "checking for Berkeley DB link (-ldb3)... $ECHO_C" >&6
42196 if test "${ol_cv_db_db3+set}" = set; then
42197   echo $ECHO_N "(cached) $ECHO_C" >&6
42198 else
42199
42200         ol_DB_LIB=-ldb3
42201         ol_LIBS=$LIBS
42202         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42203
42204         cat >conftest.$ac_ext <<_ACEOF
42205 /* confdefs.h.  */
42206 _ACEOF
42207 cat confdefs.h >>conftest.$ac_ext
42208 cat >>conftest.$ac_ext <<_ACEOF
42209 /* end confdefs.h.  */
42210
42211 #ifdef HAVE_DB_185_H
42212 # include <db_185.h>
42213 #else
42214 # include <db.h>
42215 #endif
42216
42217 #ifndef DB_VERSION_MAJOR
42218 # define DB_VERSION_MAJOR 1
42219 #endif
42220
42221 #ifndef NULL
42222 #define NULL ((void*)0)
42223 #endif
42224
42225 int
42226 main ()
42227 {
42228
42229 #if DB_VERSION_MAJOR > 1
42230         {
42231                 char *version;
42232                 int major, minor, patch;
42233
42234                 version = db_version( &major, &minor, &patch );
42235
42236                 if( major != DB_VERSION_MAJOR ||
42237                         minor < DB_VERSION_MINOR )
42238                 {
42239                         printf("Berkeley DB version mismatch\n"
42240                                 "\theader: %s\n\tlibrary: %s\n",
42241                                 DB_VERSION_STRING, version);
42242                         return 1;
42243                 }
42244         }
42245 #endif
42246
42247 #if DB_VERSION_MAJOR > 2
42248         db_env_create( NULL, 0 );
42249 #elif DB_VERSION_MAJOR > 1
42250         db_appexit( NULL );
42251 #else
42252         (void) dbopen( NULL, 0, 0, 0, NULL);
42253 #endif
42254
42255   ;
42256   return 0;
42257 }
42258 _ACEOF
42259 rm -f conftest.$ac_objext conftest$ac_exeext
42260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42261   (eval $ac_link) 2>conftest.er1
42262   ac_status=$?
42263   grep -v '^ *+' conftest.er1 >conftest.err
42264   rm -f conftest.er1
42265   cat conftest.err >&5
42266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42267   (exit $ac_status); } &&
42268          { ac_try='test -z "$ac_c_werror_flag"
42269                          || test ! -s conftest.err'
42270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42271   (eval $ac_try) 2>&5
42272   ac_status=$?
42273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42274   (exit $ac_status); }; } &&
42275          { ac_try='test -s conftest$ac_exeext'
42276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42277   (eval $ac_try) 2>&5
42278   ac_status=$?
42279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42280   (exit $ac_status); }; }; then
42281   ol_cv_db_db3=yes
42282 else
42283   echo "$as_me: failed program was:" >&5
42284 sed 's/^/| /' conftest.$ac_ext >&5
42285
42286 ol_cv_db_db3=no
42287 fi
42288 rm -f conftest.err conftest.$ac_objext \
42289       conftest$ac_exeext conftest.$ac_ext
42290
42291         LIBS="$ol_LIBS"
42292
42293 fi
42294 echo "$as_me:$LINENO: result: $ol_cv_db_db3" >&5
42295 echo "${ECHO_T}$ol_cv_db_db3" >&6
42296
42297         if test $ol_cv_db_db3 = yes ; then
42298                 ol_cv_lib_db=-ldb3
42299         fi
42300 fi
42301
42302 if test $ol_cv_lib_db = no ; then
42303         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-3)" >&5
42304 echo $ECHO_N "checking for Berkeley DB link (-ldb-3)... $ECHO_C" >&6
42305 if test "${ol_cv_db_db_3+set}" = set; then
42306   echo $ECHO_N "(cached) $ECHO_C" >&6
42307 else
42308
42309         ol_DB_LIB=-ldb-3
42310         ol_LIBS=$LIBS
42311         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42312
42313         cat >conftest.$ac_ext <<_ACEOF
42314 /* confdefs.h.  */
42315 _ACEOF
42316 cat confdefs.h >>conftest.$ac_ext
42317 cat >>conftest.$ac_ext <<_ACEOF
42318 /* end confdefs.h.  */
42319
42320 #ifdef HAVE_DB_185_H
42321 # include <db_185.h>
42322 #else
42323 # include <db.h>
42324 #endif
42325
42326 #ifndef DB_VERSION_MAJOR
42327 # define DB_VERSION_MAJOR 1
42328 #endif
42329
42330 #ifndef NULL
42331 #define NULL ((void*)0)
42332 #endif
42333
42334 int
42335 main ()
42336 {
42337
42338 #if DB_VERSION_MAJOR > 1
42339         {
42340                 char *version;
42341                 int major, minor, patch;
42342
42343                 version = db_version( &major, &minor, &patch );
42344
42345                 if( major != DB_VERSION_MAJOR ||
42346                         minor < DB_VERSION_MINOR )
42347                 {
42348                         printf("Berkeley DB version mismatch\n"
42349                                 "\theader: %s\n\tlibrary: %s\n",
42350                                 DB_VERSION_STRING, version);
42351                         return 1;
42352                 }
42353         }
42354 #endif
42355
42356 #if DB_VERSION_MAJOR > 2
42357         db_env_create( NULL, 0 );
42358 #elif DB_VERSION_MAJOR > 1
42359         db_appexit( NULL );
42360 #else
42361         (void) dbopen( NULL, 0, 0, 0, NULL);
42362 #endif
42363
42364   ;
42365   return 0;
42366 }
42367 _ACEOF
42368 rm -f conftest.$ac_objext conftest$ac_exeext
42369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42370   (eval $ac_link) 2>conftest.er1
42371   ac_status=$?
42372   grep -v '^ *+' conftest.er1 >conftest.err
42373   rm -f conftest.er1
42374   cat conftest.err >&5
42375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42376   (exit $ac_status); } &&
42377          { ac_try='test -z "$ac_c_werror_flag"
42378                          || test ! -s conftest.err'
42379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42380   (eval $ac_try) 2>&5
42381   ac_status=$?
42382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42383   (exit $ac_status); }; } &&
42384          { ac_try='test -s conftest$ac_exeext'
42385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42386   (eval $ac_try) 2>&5
42387   ac_status=$?
42388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42389   (exit $ac_status); }; }; then
42390   ol_cv_db_db_3=yes
42391 else
42392   echo "$as_me: failed program was:" >&5
42393 sed 's/^/| /' conftest.$ac_ext >&5
42394
42395 ol_cv_db_db_3=no
42396 fi
42397 rm -f conftest.err conftest.$ac_objext \
42398       conftest$ac_exeext conftest.$ac_ext
42399
42400         LIBS="$ol_LIBS"
42401
42402 fi
42403 echo "$as_me:$LINENO: result: $ol_cv_db_db_3" >&5
42404 echo "${ECHO_T}$ol_cv_db_db_3" >&6
42405
42406         if test $ol_cv_db_db_3 = yes ; then
42407                 ol_cv_lib_db=-ldb-3
42408         fi
42409 fi
42410
42411 if test $ol_cv_lib_db = no ; then
42412         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb2)" >&5
42413 echo $ECHO_N "checking for Berkeley DB link (-ldb2)... $ECHO_C" >&6
42414 if test "${ol_cv_db_db2+set}" = set; then
42415   echo $ECHO_N "(cached) $ECHO_C" >&6
42416 else
42417
42418         ol_DB_LIB=-ldb2
42419         ol_LIBS=$LIBS
42420         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42421
42422         cat >conftest.$ac_ext <<_ACEOF
42423 /* confdefs.h.  */
42424 _ACEOF
42425 cat confdefs.h >>conftest.$ac_ext
42426 cat >>conftest.$ac_ext <<_ACEOF
42427 /* end confdefs.h.  */
42428
42429 #ifdef HAVE_DB_185_H
42430 # include <db_185.h>
42431 #else
42432 # include <db.h>
42433 #endif
42434
42435 #ifndef DB_VERSION_MAJOR
42436 # define DB_VERSION_MAJOR 1
42437 #endif
42438
42439 #ifndef NULL
42440 #define NULL ((void*)0)
42441 #endif
42442
42443 int
42444 main ()
42445 {
42446
42447 #if DB_VERSION_MAJOR > 1
42448         {
42449                 char *version;
42450                 int major, minor, patch;
42451
42452                 version = db_version( &major, &minor, &patch );
42453
42454                 if( major != DB_VERSION_MAJOR ||
42455                         minor < DB_VERSION_MINOR )
42456                 {
42457                         printf("Berkeley DB version mismatch\n"
42458                                 "\theader: %s\n\tlibrary: %s\n",
42459                                 DB_VERSION_STRING, version);
42460                         return 1;
42461                 }
42462         }
42463 #endif
42464
42465 #if DB_VERSION_MAJOR > 2
42466         db_env_create( NULL, 0 );
42467 #elif DB_VERSION_MAJOR > 1
42468         db_appexit( NULL );
42469 #else
42470         (void) dbopen( NULL, 0, 0, 0, NULL);
42471 #endif
42472
42473   ;
42474   return 0;
42475 }
42476 _ACEOF
42477 rm -f conftest.$ac_objext conftest$ac_exeext
42478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42479   (eval $ac_link) 2>conftest.er1
42480   ac_status=$?
42481   grep -v '^ *+' conftest.er1 >conftest.err
42482   rm -f conftest.er1
42483   cat conftest.err >&5
42484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42485   (exit $ac_status); } &&
42486          { ac_try='test -z "$ac_c_werror_flag"
42487                          || test ! -s conftest.err'
42488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42489   (eval $ac_try) 2>&5
42490   ac_status=$?
42491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42492   (exit $ac_status); }; } &&
42493          { ac_try='test -s conftest$ac_exeext'
42494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42495   (eval $ac_try) 2>&5
42496   ac_status=$?
42497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42498   (exit $ac_status); }; }; then
42499   ol_cv_db_db2=yes
42500 else
42501   echo "$as_me: failed program was:" >&5
42502 sed 's/^/| /' conftest.$ac_ext >&5
42503
42504 ol_cv_db_db2=no
42505 fi
42506 rm -f conftest.err conftest.$ac_objext \
42507       conftest$ac_exeext conftest.$ac_ext
42508
42509         LIBS="$ol_LIBS"
42510
42511 fi
42512 echo "$as_me:$LINENO: result: $ol_cv_db_db2" >&5
42513 echo "${ECHO_T}$ol_cv_db_db2" >&6
42514
42515         if test $ol_cv_db_db2 = yes ; then
42516                 ol_cv_lib_db=-ldb2
42517         fi
42518 fi
42519
42520 if test $ol_cv_lib_db = no ; then
42521         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-2)" >&5
42522 echo $ECHO_N "checking for Berkeley DB link (-ldb-2)... $ECHO_C" >&6
42523 if test "${ol_cv_db_db_2+set}" = set; then
42524   echo $ECHO_N "(cached) $ECHO_C" >&6
42525 else
42526
42527         ol_DB_LIB=-ldb-2
42528         ol_LIBS=$LIBS
42529         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42530
42531         cat >conftest.$ac_ext <<_ACEOF
42532 /* confdefs.h.  */
42533 _ACEOF
42534 cat confdefs.h >>conftest.$ac_ext
42535 cat >>conftest.$ac_ext <<_ACEOF
42536 /* end confdefs.h.  */
42537
42538 #ifdef HAVE_DB_185_H
42539 # include <db_185.h>
42540 #else
42541 # include <db.h>
42542 #endif
42543
42544 #ifndef DB_VERSION_MAJOR
42545 # define DB_VERSION_MAJOR 1
42546 #endif
42547
42548 #ifndef NULL
42549 #define NULL ((void*)0)
42550 #endif
42551
42552 int
42553 main ()
42554 {
42555
42556 #if DB_VERSION_MAJOR > 1
42557         {
42558                 char *version;
42559                 int major, minor, patch;
42560
42561                 version = db_version( &major, &minor, &patch );
42562
42563                 if( major != DB_VERSION_MAJOR ||
42564                         minor < DB_VERSION_MINOR )
42565                 {
42566                         printf("Berkeley DB version mismatch\n"
42567                                 "\theader: %s\n\tlibrary: %s\n",
42568                                 DB_VERSION_STRING, version);
42569                         return 1;
42570                 }
42571         }
42572 #endif
42573
42574 #if DB_VERSION_MAJOR > 2
42575         db_env_create( NULL, 0 );
42576 #elif DB_VERSION_MAJOR > 1
42577         db_appexit( NULL );
42578 #else
42579         (void) dbopen( NULL, 0, 0, 0, NULL);
42580 #endif
42581
42582   ;
42583   return 0;
42584 }
42585 _ACEOF
42586 rm -f conftest.$ac_objext conftest$ac_exeext
42587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42588   (eval $ac_link) 2>conftest.er1
42589   ac_status=$?
42590   grep -v '^ *+' conftest.er1 >conftest.err
42591   rm -f conftest.er1
42592   cat conftest.err >&5
42593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42594   (exit $ac_status); } &&
42595          { ac_try='test -z "$ac_c_werror_flag"
42596                          || test ! -s conftest.err'
42597   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42598   (eval $ac_try) 2>&5
42599   ac_status=$?
42600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42601   (exit $ac_status); }; } &&
42602          { ac_try='test -s conftest$ac_exeext'
42603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42604   (eval $ac_try) 2>&5
42605   ac_status=$?
42606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42607   (exit $ac_status); }; }; then
42608   ol_cv_db_db_2=yes
42609 else
42610   echo "$as_me: failed program was:" >&5
42611 sed 's/^/| /' conftest.$ac_ext >&5
42612
42613 ol_cv_db_db_2=no
42614 fi
42615 rm -f conftest.err conftest.$ac_objext \
42616       conftest$ac_exeext conftest.$ac_ext
42617
42618         LIBS="$ol_LIBS"
42619
42620 fi
42621 echo "$as_me:$LINENO: result: $ol_cv_db_db_2" >&5
42622 echo "${ECHO_T}$ol_cv_db_db_2" >&6
42623
42624         if test $ol_cv_db_db_2 = yes ; then
42625                 ol_cv_lib_db=-ldb-2
42626         fi
42627 fi
42628
42629 if test $ol_cv_lib_db = no ; then
42630         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb1)" >&5
42631 echo $ECHO_N "checking for Berkeley DB link (-ldb1)... $ECHO_C" >&6
42632 if test "${ol_cv_db_db1+set}" = set; then
42633   echo $ECHO_N "(cached) $ECHO_C" >&6
42634 else
42635
42636         ol_DB_LIB=-ldb1
42637         ol_LIBS=$LIBS
42638         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42639
42640         cat >conftest.$ac_ext <<_ACEOF
42641 /* confdefs.h.  */
42642 _ACEOF
42643 cat confdefs.h >>conftest.$ac_ext
42644 cat >>conftest.$ac_ext <<_ACEOF
42645 /* end confdefs.h.  */
42646
42647 #ifdef HAVE_DB_185_H
42648 # include <db_185.h>
42649 #else
42650 # include <db.h>
42651 #endif
42652
42653 #ifndef DB_VERSION_MAJOR
42654 # define DB_VERSION_MAJOR 1
42655 #endif
42656
42657 #ifndef NULL
42658 #define NULL ((void*)0)
42659 #endif
42660
42661 int
42662 main ()
42663 {
42664
42665 #if DB_VERSION_MAJOR > 1
42666         {
42667                 char *version;
42668                 int major, minor, patch;
42669
42670                 version = db_version( &major, &minor, &patch );
42671
42672                 if( major != DB_VERSION_MAJOR ||
42673                         minor < DB_VERSION_MINOR )
42674                 {
42675                         printf("Berkeley DB version mismatch\n"
42676                                 "\theader: %s\n\tlibrary: %s\n",
42677                                 DB_VERSION_STRING, version);
42678                         return 1;
42679                 }
42680         }
42681 #endif
42682
42683 #if DB_VERSION_MAJOR > 2
42684         db_env_create( NULL, 0 );
42685 #elif DB_VERSION_MAJOR > 1
42686         db_appexit( NULL );
42687 #else
42688         (void) dbopen( NULL, 0, 0, 0, NULL);
42689 #endif
42690
42691   ;
42692   return 0;
42693 }
42694 _ACEOF
42695 rm -f conftest.$ac_objext conftest$ac_exeext
42696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42697   (eval $ac_link) 2>conftest.er1
42698   ac_status=$?
42699   grep -v '^ *+' conftest.er1 >conftest.err
42700   rm -f conftest.er1
42701   cat conftest.err >&5
42702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42703   (exit $ac_status); } &&
42704          { ac_try='test -z "$ac_c_werror_flag"
42705                          || test ! -s conftest.err'
42706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42707   (eval $ac_try) 2>&5
42708   ac_status=$?
42709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42710   (exit $ac_status); }; } &&
42711          { ac_try='test -s conftest$ac_exeext'
42712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42713   (eval $ac_try) 2>&5
42714   ac_status=$?
42715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42716   (exit $ac_status); }; }; then
42717   ol_cv_db_db1=yes
42718 else
42719   echo "$as_me: failed program was:" >&5
42720 sed 's/^/| /' conftest.$ac_ext >&5
42721
42722 ol_cv_db_db1=no
42723 fi
42724 rm -f conftest.err conftest.$ac_objext \
42725       conftest$ac_exeext conftest.$ac_ext
42726
42727         LIBS="$ol_LIBS"
42728
42729 fi
42730 echo "$as_me:$LINENO: result: $ol_cv_db_db1" >&5
42731 echo "${ECHO_T}$ol_cv_db_db1" >&6
42732
42733         if test $ol_cv_db_db1 = yes ; then
42734                 ol_cv_lib_db=-ldb1
42735         fi
42736 fi
42737
42738 if test $ol_cv_lib_db = no ; then
42739         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-1)" >&5
42740 echo $ECHO_N "checking for Berkeley DB link (-ldb-1)... $ECHO_C" >&6
42741 if test "${ol_cv_db_db_1+set}" = set; then
42742   echo $ECHO_N "(cached) $ECHO_C" >&6
42743 else
42744
42745         ol_DB_LIB=-ldb-1
42746         ol_LIBS=$LIBS
42747         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42748
42749         cat >conftest.$ac_ext <<_ACEOF
42750 /* confdefs.h.  */
42751 _ACEOF
42752 cat confdefs.h >>conftest.$ac_ext
42753 cat >>conftest.$ac_ext <<_ACEOF
42754 /* end confdefs.h.  */
42755
42756 #ifdef HAVE_DB_185_H
42757 # include <db_185.h>
42758 #else
42759 # include <db.h>
42760 #endif
42761
42762 #ifndef DB_VERSION_MAJOR
42763 # define DB_VERSION_MAJOR 1
42764 #endif
42765
42766 #ifndef NULL
42767 #define NULL ((void*)0)
42768 #endif
42769
42770 int
42771 main ()
42772 {
42773
42774 #if DB_VERSION_MAJOR > 1
42775         {
42776                 char *version;
42777                 int major, minor, patch;
42778
42779                 version = db_version( &major, &minor, &patch );
42780
42781                 if( major != DB_VERSION_MAJOR ||
42782                         minor < DB_VERSION_MINOR )
42783                 {
42784                         printf("Berkeley DB version mismatch\n"
42785                                 "\theader: %s\n\tlibrary: %s\n",
42786                                 DB_VERSION_STRING, version);
42787                         return 1;
42788                 }
42789         }
42790 #endif
42791
42792 #if DB_VERSION_MAJOR > 2
42793         db_env_create( NULL, 0 );
42794 #elif DB_VERSION_MAJOR > 1
42795         db_appexit( NULL );
42796 #else
42797         (void) dbopen( NULL, 0, 0, 0, NULL);
42798 #endif
42799
42800   ;
42801   return 0;
42802 }
42803 _ACEOF
42804 rm -f conftest.$ac_objext conftest$ac_exeext
42805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42806   (eval $ac_link) 2>conftest.er1
42807   ac_status=$?
42808   grep -v '^ *+' conftest.er1 >conftest.err
42809   rm -f conftest.er1
42810   cat conftest.err >&5
42811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42812   (exit $ac_status); } &&
42813          { ac_try='test -z "$ac_c_werror_flag"
42814                          || test ! -s conftest.err'
42815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42816   (eval $ac_try) 2>&5
42817   ac_status=$?
42818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42819   (exit $ac_status); }; } &&
42820          { ac_try='test -s conftest$ac_exeext'
42821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42822   (eval $ac_try) 2>&5
42823   ac_status=$?
42824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42825   (exit $ac_status); }; }; then
42826   ol_cv_db_db_1=yes
42827 else
42828   echo "$as_me: failed program was:" >&5
42829 sed 's/^/| /' conftest.$ac_ext >&5
42830
42831 ol_cv_db_db_1=no
42832 fi
42833 rm -f conftest.err conftest.$ac_objext \
42834       conftest$ac_exeext conftest.$ac_ext
42835
42836         LIBS="$ol_LIBS"
42837
42838 fi
42839 echo "$as_me:$LINENO: result: $ol_cv_db_db_1" >&5
42840 echo "${ECHO_T}$ol_cv_db_db_1" >&6
42841
42842         if test $ol_cv_db_db_1 = yes ; then
42843                 ol_cv_lib_db=-ldb-1
42844         fi
42845 fi
42846
42847
42848         if test "$ol_cv_lib_db" != no ; then
42849                 ol_cv_berkeley_db=yes
42850                 echo "$as_me:$LINENO: checking for Berkeley DB version match" >&5
42851 echo $ECHO_N "checking for Berkeley DB version match... $ECHO_C" >&6
42852 if test "${ol_cv_berkeley_db_version+set}" = set; then
42853   echo $ECHO_N "(cached) $ECHO_C" >&6
42854 else
42855
42856         ol_LIBS="$LIBS"
42857         LIBS="$LTHREAD_LIBS $LIBS"
42858         if test $ol_cv_lib_db != yes ; then
42859                 LIBS="$ol_cv_lib_db $LIBS"
42860         fi
42861
42862         if test "$cross_compiling" = yes; then
42863   ol_cv_berkeley_db_version=cross
42864 else
42865   cat >conftest.$ac_ext <<_ACEOF
42866 /* confdefs.h.  */
42867 _ACEOF
42868 cat confdefs.h >>conftest.$ac_ext
42869 cat >>conftest.$ac_ext <<_ACEOF
42870 /* end confdefs.h.  */
42871
42872 #ifdef HAVE_DB_185_H
42873         choke me;
42874 #else
42875 #include <db.h>
42876 #endif
42877 #ifndef DB_VERSION_MAJOR
42878 # define DB_VERSION_MAJOR 1
42879 #endif
42880 #ifndef NULL
42881 #define NULL ((void *)0)
42882 #endif
42883 main()
42884 {
42885 #if DB_VERSION_MAJOR > 1
42886         char *version;
42887         int major, minor, patch;
42888
42889         version = db_version( &major, &minor, &patch );
42890
42891         if( major != DB_VERSION_MAJOR ||
42892                 minor != DB_VERSION_MINOR ||
42893                 patch != DB_VERSION_PATCH )
42894         {
42895                 printf("Berkeley DB version mismatch\n"
42896                         "\theader: %s\n\tlibrary: %s\n",
42897                         DB_VERSION_STRING, version);
42898                 return 1;
42899         }
42900 #endif
42901
42902         return 0;
42903 }
42904 _ACEOF
42905 rm -f conftest$ac_exeext
42906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42907   (eval $ac_link) 2>&5
42908   ac_status=$?
42909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42910   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
42911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42912   (eval $ac_try) 2>&5
42913   ac_status=$?
42914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42915   (exit $ac_status); }; }; then
42916   ol_cv_berkeley_db_version=yes
42917 else
42918   echo "$as_me: program exited with status $ac_status" >&5
42919 echo "$as_me: failed program was:" >&5
42920 sed 's/^/| /' conftest.$ac_ext >&5
42921
42922 ( exit $ac_status )
42923 ol_cv_berkeley_db_version=no
42924 fi
42925 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
42926 fi
42927
42928         LIBS="$ol_LIBS"
42929
42930 fi
42931 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_version" >&5
42932 echo "${ECHO_T}$ol_cv_berkeley_db_version" >&6
42933
42934         if test $ol_cv_berkeley_db_version = no ; then
42935                 { { echo "$as_me:$LINENO: error: Berkeley DB version mismatch" >&5
42936 echo "$as_me: error: Berkeley DB version mismatch" >&2;}
42937    { (exit 1); exit 1; }; }
42938         fi
42939
42940                 echo "$as_me:$LINENO: checking for Berkeley DB thread support" >&5
42941 echo $ECHO_N "checking for Berkeley DB thread support... $ECHO_C" >&6
42942 if test "${ol_cv_berkeley_db_thread+set}" = set; then
42943   echo $ECHO_N "(cached) $ECHO_C" >&6
42944 else
42945
42946         ol_LIBS="$LIBS"
42947         LIBS="$LTHREAD_LIBS $LIBS"
42948         if test $ol_cv_lib_db != yes ; then
42949                 LIBS="$ol_cv_lib_db $LIBS"
42950         fi
42951
42952         if test "$cross_compiling" = yes; then
42953   ol_cv_berkeley_db_thread=cross
42954 else
42955   cat >conftest.$ac_ext <<_ACEOF
42956 /* confdefs.h.  */
42957 _ACEOF
42958 cat confdefs.h >>conftest.$ac_ext
42959 cat >>conftest.$ac_ext <<_ACEOF
42960 /* end confdefs.h.  */
42961
42962 #ifdef HAVE_DB_185_H
42963         choke me;
42964 #else
42965 #include <db.h>
42966 #endif
42967 #ifndef NULL
42968 #define NULL ((void *)0)
42969 #endif
42970 main()
42971 {
42972         int rc;
42973         u_int32_t flags = DB_CREATE |
42974 #ifdef DB_PRIVATE
42975                 DB_PRIVATE |
42976 #endif
42977                 DB_THREAD;
42978
42979 #if DB_VERSION_MAJOR > 2
42980         DB_ENV *env = NULL;
42981
42982         rc = db_env_create( &env, 0 );
42983
42984         flags |= DB_INIT_MPOOL;
42985 #ifdef DB_MPOOL_PRIVATE
42986         flags |= DB_MPOOL_PRIVATE;
42987 #endif
42988
42989         if( rc ) {
42990                 printf("BerkeleyDB: %s\n", db_strerror(rc) );
42991                 return rc;
42992         }
42993
42994 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
42995         rc = env->open( env, NULL, flags, 0 );
42996 #else
42997         rc = env->open( env, NULL, NULL, flags, 0 );
42998 #endif
42999
43000         if ( rc == 0 ) {
43001                 rc = env->close( env, 0 );
43002         }
43003
43004         if( rc ) {
43005                 printf("BerkeleyDB: %s\n", db_strerror(rc) );
43006                 return rc;
43007         }
43008
43009 #else
43010         DB_ENV env;
43011         memset( &env, '\0', sizeof(env) );
43012
43013         rc = db_appinit( NULL, NULL, &env, flags );
43014
43015         if( rc == 0 ) {
43016                 db_appexit( &env );
43017         }
43018
43019         unlink("__db_mpool.share");
43020         unlink("__db_lock.share");
43021 #endif
43022
43023         return rc;
43024 }
43025 _ACEOF
43026 rm -f conftest$ac_exeext
43027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43028   (eval $ac_link) 2>&5
43029   ac_status=$?
43030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43031   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
43032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43033   (eval $ac_try) 2>&5
43034   ac_status=$?
43035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43036   (exit $ac_status); }; }; then
43037   ol_cv_berkeley_db_thread=yes
43038 else
43039   echo "$as_me: program exited with status $ac_status" >&5
43040 echo "$as_me: failed program was:" >&5
43041 sed 's/^/| /' conftest.$ac_ext >&5
43042
43043 ( exit $ac_status )
43044 ol_cv_berkeley_db_thread=no
43045 fi
43046 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
43047 fi
43048
43049         LIBS="$ol_LIBS"
43050
43051 fi
43052 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_thread" >&5
43053 echo "${ECHO_T}$ol_cv_berkeley_db_thread" >&6
43054
43055         if test $ol_cv_berkeley_db_thread != no ; then
43056
43057 cat >>confdefs.h <<\_ACEOF
43058 #define HAVE_BERKELEY_DB_THREAD 1
43059 _ACEOF
43060
43061         fi
43062
43063         fi
43064 fi
43065
43066         fi
43067
43068         if test $ol_cv_berkeley_db != no ; then
43069
43070 cat >>confdefs.h <<\_ACEOF
43071 #define HAVE_BERKELEY_DB 1
43072 _ACEOF
43073
43074
43075                 ol_link_ldbm=berkeley
43076                 ol_with_ldbm_api=berkeley
43077
43078                 if test $ol_with_ldbm_type = hash ; then
43079
43080 cat >>confdefs.h <<\_ACEOF
43081 #define LDBM_USE_DBHASH 1
43082 _ACEOF
43083
43084                 else
43085
43086 cat >>confdefs.h <<\_ACEOF
43087 #define LDBM_USE_DBBTREE 1
43088 _ACEOF
43089
43090                 fi
43091
43092                                                 if test $ol_cv_lib_db != yes ; then
43093                         LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
43094                 fi
43095         fi
43096 fi
43097
43098 if test $ol_enable_bdb != no -o $ol_enable_hdb != no; then
43099         if test $ol_link_ldbm != berkeley ; then
43100                 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB not available" >&5
43101 echo "$as_me: error: BDB/HDB: BerkeleyDB not available" >&2;}
43102    { (exit 1); exit 1; }; }
43103         else
43104                 echo "$as_me:$LINENO: checking Berkeley DB version for BDB backend" >&5
43105 echo $ECHO_N "checking Berkeley DB version for BDB backend... $ECHO_C" >&6
43106 if test "${ol_cv_bdb_compat+set}" = set; then
43107   echo $ECHO_N "(cached) $ECHO_C" >&6
43108 else
43109
43110         cat >conftest.$ac_ext <<_ACEOF
43111 /* confdefs.h.  */
43112 _ACEOF
43113 cat confdefs.h >>conftest.$ac_ext
43114 cat >>conftest.$ac_ext <<_ACEOF
43115 /* end confdefs.h.  */
43116
43117 #include <db.h>
43118
43119  /* this check could be improved */
43120 #ifndef DB_VERSION_MAJOR
43121 #       define DB_VERSION_MAJOR 1
43122 #endif
43123 #ifndef DB_VERSION_MINOR
43124 #       define DB_VERSION_MINOR 0
43125 #endif
43126
43127 /* require 4.2 or later */
43128 #if (DB_VERSION_MAJOR >= 4) && (DB_VERSION_MINOR >= 2)
43129         __db_version_compat
43130 #endif
43131
43132 _ACEOF
43133 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43134   $EGREP "__db_version_compat" >/dev/null 2>&1; then
43135   ol_cv_bdb_compat=yes
43136 else
43137   ol_cv_bdb_compat=no
43138 fi
43139 rm -f conftest*
43140
43141 fi
43142 echo "$as_me:$LINENO: result: $ol_cv_bdb_compat" >&5
43143 echo "${ECHO_T}$ol_cv_bdb_compat" >&6
43144
43145
43146                 if test $ol_cv_bdb_compat != yes ; then
43147                         { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB version incompatible" >&5
43148 echo "$as_me: error: BDB/HDB: BerkeleyDB version incompatible" >&2;}
43149    { (exit 1); exit 1; }; }
43150                 fi
43151         fi
43152 fi
43153
43154 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
43155         { echo "$as_me:$LINENO: WARNING: Could not find LDBM with BTREE support" >&5
43156 echo "$as_me: WARNING: Could not find LDBM with BTREE support" >&2;}
43157         ol_with_ldbm_api=none
43158 fi
43159
43160 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
43161         echo "$as_me:$LINENO: checking for MDBM library" >&5
43162 echo $ECHO_N "checking for MDBM library... $ECHO_C" >&6
43163 if test "${ol_cv_lib_mdbm+set}" = set; then
43164   echo $ECHO_N "(cached) $ECHO_C" >&6
43165 else
43166         ol_LIBS="$LIBS"
43167         echo "$as_me:$LINENO: checking for mdbm_set_chain" >&5
43168 echo $ECHO_N "checking for mdbm_set_chain... $ECHO_C" >&6
43169 if test "${ac_cv_func_mdbm_set_chain+set}" = set; then
43170   echo $ECHO_N "(cached) $ECHO_C" >&6
43171 else
43172   cat >conftest.$ac_ext <<_ACEOF
43173 /* confdefs.h.  */
43174 _ACEOF
43175 cat confdefs.h >>conftest.$ac_ext
43176 cat >>conftest.$ac_ext <<_ACEOF
43177 /* end confdefs.h.  */
43178 /* Define mdbm_set_chain to an innocuous variant, in case <limits.h> declares mdbm_set_chain.
43179    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43180 #define mdbm_set_chain innocuous_mdbm_set_chain
43181
43182 /* System header to define __stub macros and hopefully few prototypes,
43183     which can conflict with char mdbm_set_chain (); below.
43184     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43185     <limits.h> exists even on freestanding compilers.  */
43186
43187 #ifdef __STDC__
43188 # include <limits.h>
43189 #else
43190 # include <assert.h>
43191 #endif
43192
43193 #undef mdbm_set_chain
43194
43195 /* Override any gcc2 internal prototype to avoid an error.  */
43196 #ifdef __cplusplus
43197 extern "C"
43198 {
43199 #endif
43200 /* We use char because int might match the return type of a gcc2
43201    builtin and then its argument prototype would still apply.  */
43202 char mdbm_set_chain ();
43203 /* The GNU C library defines this for functions which it implements
43204     to always fail with ENOSYS.  Some functions are actually named
43205     something starting with __ and the normal name is an alias.  */
43206 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
43207 choke me
43208 #else
43209 char (*f) () = mdbm_set_chain;
43210 #endif
43211 #ifdef __cplusplus
43212 }
43213 #endif
43214
43215 int
43216 main ()
43217 {
43218 return f != mdbm_set_chain;
43219   ;
43220   return 0;
43221 }
43222 _ACEOF
43223 rm -f conftest.$ac_objext conftest$ac_exeext
43224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43225   (eval $ac_link) 2>conftest.er1
43226   ac_status=$?
43227   grep -v '^ *+' conftest.er1 >conftest.err
43228   rm -f conftest.er1
43229   cat conftest.err >&5
43230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43231   (exit $ac_status); } &&
43232          { ac_try='test -z "$ac_c_werror_flag"
43233                          || test ! -s conftest.err'
43234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43235   (eval $ac_try) 2>&5
43236   ac_status=$?
43237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43238   (exit $ac_status); }; } &&
43239          { ac_try='test -s conftest$ac_exeext'
43240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43241   (eval $ac_try) 2>&5
43242   ac_status=$?
43243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43244   (exit $ac_status); }; }; then
43245   ac_cv_func_mdbm_set_chain=yes
43246 else
43247   echo "$as_me: failed program was:" >&5
43248 sed 's/^/| /' conftest.$ac_ext >&5
43249
43250 ac_cv_func_mdbm_set_chain=no
43251 fi
43252 rm -f conftest.err conftest.$ac_objext \
43253       conftest$ac_exeext conftest.$ac_ext
43254 fi
43255 echo "$as_me:$LINENO: result: $ac_cv_func_mdbm_set_chain" >&5
43256 echo "${ECHO_T}$ac_cv_func_mdbm_set_chain" >&6
43257 if test $ac_cv_func_mdbm_set_chain = yes; then
43258   ol_cv_lib_mdbm=yes
43259 else
43260
43261                 echo "$as_me:$LINENO: checking for mdbm_set_chain in -lmdbm" >&5
43262 echo $ECHO_N "checking for mdbm_set_chain in -lmdbm... $ECHO_C" >&6
43263 if test "${ac_cv_lib_mdbm_mdbm_set_chain+set}" = set; then
43264   echo $ECHO_N "(cached) $ECHO_C" >&6
43265 else
43266   ac_check_lib_save_LIBS=$LIBS
43267 LIBS="-lmdbm  $LIBS"
43268 cat >conftest.$ac_ext <<_ACEOF
43269 /* confdefs.h.  */
43270 _ACEOF
43271 cat confdefs.h >>conftest.$ac_ext
43272 cat >>conftest.$ac_ext <<_ACEOF
43273 /* end confdefs.h.  */
43274
43275 /* Override any gcc2 internal prototype to avoid an error.  */
43276 #ifdef __cplusplus
43277 extern "C"
43278 #endif
43279 /* We use char because int might match the return type of a gcc2
43280    builtin and then its argument prototype would still apply.  */
43281 char mdbm_set_chain ();
43282 int
43283 main ()
43284 {
43285 mdbm_set_chain ();
43286   ;
43287   return 0;
43288 }
43289 _ACEOF
43290 rm -f conftest.$ac_objext conftest$ac_exeext
43291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43292   (eval $ac_link) 2>conftest.er1
43293   ac_status=$?
43294   grep -v '^ *+' conftest.er1 >conftest.err
43295   rm -f conftest.er1
43296   cat conftest.err >&5
43297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43298   (exit $ac_status); } &&
43299          { ac_try='test -z "$ac_c_werror_flag"
43300                          || test ! -s conftest.err'
43301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43302   (eval $ac_try) 2>&5
43303   ac_status=$?
43304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43305   (exit $ac_status); }; } &&
43306          { ac_try='test -s conftest$ac_exeext'
43307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43308   (eval $ac_try) 2>&5
43309   ac_status=$?
43310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43311   (exit $ac_status); }; }; then
43312   ac_cv_lib_mdbm_mdbm_set_chain=yes
43313 else
43314   echo "$as_me: failed program was:" >&5
43315 sed 's/^/| /' conftest.$ac_ext >&5
43316
43317 ac_cv_lib_mdbm_mdbm_set_chain=no
43318 fi
43319 rm -f conftest.err conftest.$ac_objext \
43320       conftest$ac_exeext conftest.$ac_ext
43321 LIBS=$ac_check_lib_save_LIBS
43322 fi
43323 echo "$as_me:$LINENO: result: $ac_cv_lib_mdbm_mdbm_set_chain" >&5
43324 echo "${ECHO_T}$ac_cv_lib_mdbm_mdbm_set_chain" >&6
43325 if test $ac_cv_lib_mdbm_mdbm_set_chain = yes; then
43326   ol_cv_lib_mdbm=-lmdbm
43327 else
43328   ol_cv_lib_mdbm=no
43329 fi
43330
43331
43332 fi
43333
43334         LIBS="$ol_LIBS"
43335
43336 fi
43337 echo "$as_me:$LINENO: result: $ol_cv_lib_mdbm" >&5
43338 echo "${ECHO_T}$ol_cv_lib_mdbm" >&6
43339
43340
43341
43342 for ac_header in mdbm.h
43343 do
43344 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43345 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43346   echo "$as_me:$LINENO: checking for $ac_header" >&5
43347 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43348 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43349   echo $ECHO_N "(cached) $ECHO_C" >&6
43350 fi
43351 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43352 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43353 else
43354   # Is the header compilable?
43355 echo "$as_me:$LINENO: checking $ac_header usability" >&5
43356 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
43357 cat >conftest.$ac_ext <<_ACEOF
43358 /* confdefs.h.  */
43359 _ACEOF
43360 cat confdefs.h >>conftest.$ac_ext
43361 cat >>conftest.$ac_ext <<_ACEOF
43362 /* end confdefs.h.  */
43363 $ac_includes_default
43364 #include <$ac_header>
43365 _ACEOF
43366 rm -f conftest.$ac_objext
43367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43368   (eval $ac_compile) 2>conftest.er1
43369   ac_status=$?
43370   grep -v '^ *+' conftest.er1 >conftest.err
43371   rm -f conftest.er1
43372   cat conftest.err >&5
43373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43374   (exit $ac_status); } &&
43375          { ac_try='test -z "$ac_c_werror_flag"
43376                          || test ! -s conftest.err'
43377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43378   (eval $ac_try) 2>&5
43379   ac_status=$?
43380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43381   (exit $ac_status); }; } &&
43382          { ac_try='test -s conftest.$ac_objext'
43383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43384   (eval $ac_try) 2>&5
43385   ac_status=$?
43386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43387   (exit $ac_status); }; }; then
43388   ac_header_compiler=yes
43389 else
43390   echo "$as_me: failed program was:" >&5
43391 sed 's/^/| /' conftest.$ac_ext >&5
43392
43393 ac_header_compiler=no
43394 fi
43395 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43396 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43397 echo "${ECHO_T}$ac_header_compiler" >&6
43398
43399 # Is the header present?
43400 echo "$as_me:$LINENO: checking $ac_header presence" >&5
43401 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
43402 cat >conftest.$ac_ext <<_ACEOF
43403 /* confdefs.h.  */
43404 _ACEOF
43405 cat confdefs.h >>conftest.$ac_ext
43406 cat >>conftest.$ac_ext <<_ACEOF
43407 /* end confdefs.h.  */
43408 #include <$ac_header>
43409 _ACEOF
43410 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
43411   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
43412   ac_status=$?
43413   grep -v '^ *+' conftest.er1 >conftest.err
43414   rm -f conftest.er1
43415   cat conftest.err >&5
43416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43417   (exit $ac_status); } >/dev/null; then
43418   if test -s conftest.err; then
43419     ac_cpp_err=$ac_c_preproc_warn_flag
43420     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
43421   else
43422     ac_cpp_err=
43423   fi
43424 else
43425   ac_cpp_err=yes
43426 fi
43427 if test -z "$ac_cpp_err"; then
43428   ac_header_preproc=yes
43429 else
43430   echo "$as_me: failed program was:" >&5
43431 sed 's/^/| /' conftest.$ac_ext >&5
43432
43433   ac_header_preproc=no
43434 fi
43435 rm -f conftest.err conftest.$ac_ext
43436 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43437 echo "${ECHO_T}$ac_header_preproc" >&6
43438
43439 # So?  What about this header?
43440 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43441   yes:no: )
43442     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
43443 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
43444     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
43445 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
43446     ac_header_preproc=yes
43447     ;;
43448   no:yes:* )
43449     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
43450 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
43451     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
43452 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
43453     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
43454 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
43455     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
43456 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
43457     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
43458 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
43459     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
43460 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
43461     (
43462       cat <<\_ASBOX
43463 ## ------------------------------------------ ##
43464 ## Report this to the AC_PACKAGE_NAME lists.  ##
43465 ## ------------------------------------------ ##
43466 _ASBOX
43467     ) |
43468       sed "s/^/$as_me: WARNING:     /" >&2
43469     ;;
43470 esac
43471 echo "$as_me:$LINENO: checking for $ac_header" >&5
43472 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43473 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43474   echo $ECHO_N "(cached) $ECHO_C" >&6
43475 else
43476   eval "$as_ac_Header=\$ac_header_preproc"
43477 fi
43478 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43479 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43480
43481 fi
43482 if test `eval echo '${'$as_ac_Header'}'` = yes; then
43483   cat >>confdefs.h <<_ACEOF
43484 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
43485 _ACEOF
43486
43487 fi
43488
43489 done
43490
43491  echo "$as_me:$LINENO: checking for db" >&5
43492 echo $ECHO_N "checking for db... $ECHO_C" >&6
43493 if test "${ol_cv_mdbm+set}" = set; then
43494   echo $ECHO_N "(cached) $ECHO_C" >&6
43495 else
43496
43497         if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
43498                 ol_cv_mdbm=no
43499         else
43500                 ol_cv_mdbm=yes
43501         fi
43502
43503 fi
43504 echo "$as_me:$LINENO: result: $ol_cv_mdbm" >&5
43505 echo "${ECHO_T}$ol_cv_mdbm" >&6
43506  if test $ol_cv_mdbm = yes ; then
43507
43508 cat >>confdefs.h <<\_ACEOF
43509 #define HAVE_MDBM 1
43510 _ACEOF
43511
43512  fi
43513
43514
43515         if test $ol_cv_mdbm = yes ; then
43516                 ol_link_ldbm=mdbm
43517                 ol_with_ldbm_api=mdbm
43518                 if test $ol_cv_lib_mdbm != yes ; then
43519                         LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
43520                 fi
43521         fi
43522 fi
43523
43524 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
43525         echo "$as_me:$LINENO: checking for GDBM library" >&5
43526 echo $ECHO_N "checking for GDBM library... $ECHO_C" >&6
43527 if test "${ol_cv_lib_gdbm+set}" = set; then
43528   echo $ECHO_N "(cached) $ECHO_C" >&6
43529 else
43530         ol_LIBS="$LIBS"
43531         echo "$as_me:$LINENO: checking for gdbm_open" >&5
43532 echo $ECHO_N "checking for gdbm_open... $ECHO_C" >&6
43533 if test "${ac_cv_func_gdbm_open+set}" = set; then
43534   echo $ECHO_N "(cached) $ECHO_C" >&6
43535 else
43536   cat >conftest.$ac_ext <<_ACEOF
43537 /* confdefs.h.  */
43538 _ACEOF
43539 cat confdefs.h >>conftest.$ac_ext
43540 cat >>conftest.$ac_ext <<_ACEOF
43541 /* end confdefs.h.  */
43542 /* Define gdbm_open to an innocuous variant, in case <limits.h> declares gdbm_open.
43543    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43544 #define gdbm_open innocuous_gdbm_open
43545
43546 /* System header to define __stub macros and hopefully few prototypes,
43547     which can conflict with char gdbm_open (); below.
43548     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43549     <limits.h> exists even on freestanding compilers.  */
43550
43551 #ifdef __STDC__
43552 # include <limits.h>
43553 #else
43554 # include <assert.h>
43555 #endif
43556
43557 #undef gdbm_open
43558
43559 /* Override any gcc2 internal prototype to avoid an error.  */
43560 #ifdef __cplusplus
43561 extern "C"
43562 {
43563 #endif
43564 /* We use char because int might match the return type of a gcc2
43565    builtin and then its argument prototype would still apply.  */
43566 char gdbm_open ();
43567 /* The GNU C library defines this for functions which it implements
43568     to always fail with ENOSYS.  Some functions are actually named
43569     something starting with __ and the normal name is an alias.  */
43570 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
43571 choke me
43572 #else
43573 char (*f) () = gdbm_open;
43574 #endif
43575 #ifdef __cplusplus
43576 }
43577 #endif
43578
43579 int
43580 main ()
43581 {
43582 return f != gdbm_open;
43583   ;
43584   return 0;
43585 }
43586 _ACEOF
43587 rm -f conftest.$ac_objext conftest$ac_exeext
43588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43589   (eval $ac_link) 2>conftest.er1
43590   ac_status=$?
43591   grep -v '^ *+' conftest.er1 >conftest.err
43592   rm -f conftest.er1
43593   cat conftest.err >&5
43594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43595   (exit $ac_status); } &&
43596          { ac_try='test -z "$ac_c_werror_flag"
43597                          || test ! -s conftest.err'
43598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43599   (eval $ac_try) 2>&5
43600   ac_status=$?
43601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43602   (exit $ac_status); }; } &&
43603          { ac_try='test -s conftest$ac_exeext'
43604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43605   (eval $ac_try) 2>&5
43606   ac_status=$?
43607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43608   (exit $ac_status); }; }; then
43609   ac_cv_func_gdbm_open=yes
43610 else
43611   echo "$as_me: failed program was:" >&5
43612 sed 's/^/| /' conftest.$ac_ext >&5
43613
43614 ac_cv_func_gdbm_open=no
43615 fi
43616 rm -f conftest.err conftest.$ac_objext \
43617       conftest$ac_exeext conftest.$ac_ext
43618 fi
43619 echo "$as_me:$LINENO: result: $ac_cv_func_gdbm_open" >&5
43620 echo "${ECHO_T}$ac_cv_func_gdbm_open" >&6
43621 if test $ac_cv_func_gdbm_open = yes; then
43622   ol_cv_lib_gdbm=yes
43623 else
43624
43625                 echo "$as_me:$LINENO: checking for gdbm_open in -lgdbm" >&5
43626 echo $ECHO_N "checking for gdbm_open in -lgdbm... $ECHO_C" >&6
43627 if test "${ac_cv_lib_gdbm_gdbm_open+set}" = set; then
43628   echo $ECHO_N "(cached) $ECHO_C" >&6
43629 else
43630   ac_check_lib_save_LIBS=$LIBS
43631 LIBS="-lgdbm  $LIBS"
43632 cat >conftest.$ac_ext <<_ACEOF
43633 /* confdefs.h.  */
43634 _ACEOF
43635 cat confdefs.h >>conftest.$ac_ext
43636 cat >>conftest.$ac_ext <<_ACEOF
43637 /* end confdefs.h.  */
43638
43639 /* Override any gcc2 internal prototype to avoid an error.  */
43640 #ifdef __cplusplus
43641 extern "C"
43642 #endif
43643 /* We use char because int might match the return type of a gcc2
43644    builtin and then its argument prototype would still apply.  */
43645 char gdbm_open ();
43646 int
43647 main ()
43648 {
43649 gdbm_open ();
43650   ;
43651   return 0;
43652 }
43653 _ACEOF
43654 rm -f conftest.$ac_objext conftest$ac_exeext
43655 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43656   (eval $ac_link) 2>conftest.er1
43657   ac_status=$?
43658   grep -v '^ *+' conftest.er1 >conftest.err
43659   rm -f conftest.er1
43660   cat conftest.err >&5
43661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43662   (exit $ac_status); } &&
43663          { ac_try='test -z "$ac_c_werror_flag"
43664                          || test ! -s conftest.err'
43665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43666   (eval $ac_try) 2>&5
43667   ac_status=$?
43668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43669   (exit $ac_status); }; } &&
43670          { ac_try='test -s conftest$ac_exeext'
43671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43672   (eval $ac_try) 2>&5
43673   ac_status=$?
43674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43675   (exit $ac_status); }; }; then
43676   ac_cv_lib_gdbm_gdbm_open=yes
43677 else
43678   echo "$as_me: failed program was:" >&5
43679 sed 's/^/| /' conftest.$ac_ext >&5
43680
43681 ac_cv_lib_gdbm_gdbm_open=no
43682 fi
43683 rm -f conftest.err conftest.$ac_objext \
43684       conftest$ac_exeext conftest.$ac_ext
43685 LIBS=$ac_check_lib_save_LIBS
43686 fi
43687 echo "$as_me:$LINENO: result: $ac_cv_lib_gdbm_gdbm_open" >&5
43688 echo "${ECHO_T}$ac_cv_lib_gdbm_gdbm_open" >&6
43689 if test $ac_cv_lib_gdbm_gdbm_open = yes; then
43690   ol_cv_lib_gdbm=-lgdbm
43691 else
43692   ol_cv_lib_gdbm=no
43693 fi
43694
43695
43696 fi
43697
43698         LIBS="$ol_LIBS"
43699
43700 fi
43701 echo "$as_me:$LINENO: result: $ol_cv_lib_gdbm" >&5
43702 echo "${ECHO_T}$ol_cv_lib_gdbm" >&6
43703
43704
43705
43706 for ac_header in gdbm.h
43707 do
43708 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43709 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43710   echo "$as_me:$LINENO: checking for $ac_header" >&5
43711 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43712 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43713   echo $ECHO_N "(cached) $ECHO_C" >&6
43714 fi
43715 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43716 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43717 else
43718   # Is the header compilable?
43719 echo "$as_me:$LINENO: checking $ac_header usability" >&5
43720 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
43721 cat >conftest.$ac_ext <<_ACEOF
43722 /* confdefs.h.  */
43723 _ACEOF
43724 cat confdefs.h >>conftest.$ac_ext
43725 cat >>conftest.$ac_ext <<_ACEOF
43726 /* end confdefs.h.  */
43727 $ac_includes_default
43728 #include <$ac_header>
43729 _ACEOF
43730 rm -f conftest.$ac_objext
43731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43732   (eval $ac_compile) 2>conftest.er1
43733   ac_status=$?
43734   grep -v '^ *+' conftest.er1 >conftest.err
43735   rm -f conftest.er1
43736   cat conftest.err >&5
43737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43738   (exit $ac_status); } &&
43739          { ac_try='test -z "$ac_c_werror_flag"
43740                          || test ! -s conftest.err'
43741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43742   (eval $ac_try) 2>&5
43743   ac_status=$?
43744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43745   (exit $ac_status); }; } &&
43746          { ac_try='test -s conftest.$ac_objext'
43747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43748   (eval $ac_try) 2>&5
43749   ac_status=$?
43750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43751   (exit $ac_status); }; }; then
43752   ac_header_compiler=yes
43753 else
43754   echo "$as_me: failed program was:" >&5
43755 sed 's/^/| /' conftest.$ac_ext >&5
43756
43757 ac_header_compiler=no
43758 fi
43759 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43760 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43761 echo "${ECHO_T}$ac_header_compiler" >&6
43762
43763 # Is the header present?
43764 echo "$as_me:$LINENO: checking $ac_header presence" >&5
43765 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
43766 cat >conftest.$ac_ext <<_ACEOF
43767 /* confdefs.h.  */
43768 _ACEOF
43769 cat confdefs.h >>conftest.$ac_ext
43770 cat >>conftest.$ac_ext <<_ACEOF
43771 /* end confdefs.h.  */
43772 #include <$ac_header>
43773 _ACEOF
43774 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
43775   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
43776   ac_status=$?
43777   grep -v '^ *+' conftest.er1 >conftest.err
43778   rm -f conftest.er1
43779   cat conftest.err >&5
43780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43781   (exit $ac_status); } >/dev/null; then
43782   if test -s conftest.err; then
43783     ac_cpp_err=$ac_c_preproc_warn_flag
43784     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
43785   else
43786     ac_cpp_err=
43787   fi
43788 else
43789   ac_cpp_err=yes
43790 fi
43791 if test -z "$ac_cpp_err"; then
43792   ac_header_preproc=yes
43793 else
43794   echo "$as_me: failed program was:" >&5
43795 sed 's/^/| /' conftest.$ac_ext >&5
43796
43797   ac_header_preproc=no
43798 fi
43799 rm -f conftest.err conftest.$ac_ext
43800 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43801 echo "${ECHO_T}$ac_header_preproc" >&6
43802
43803 # So?  What about this header?
43804 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43805   yes:no: )
43806     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
43807 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
43808     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
43809 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
43810     ac_header_preproc=yes
43811     ;;
43812   no:yes:* )
43813     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
43814 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
43815     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
43816 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
43817     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
43818 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
43819     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
43820 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
43821     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
43822 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
43823     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
43824 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
43825     (
43826       cat <<\_ASBOX
43827 ## ------------------------------------------ ##
43828 ## Report this to the AC_PACKAGE_NAME lists.  ##
43829 ## ------------------------------------------ ##
43830 _ASBOX
43831     ) |
43832       sed "s/^/$as_me: WARNING:     /" >&2
43833     ;;
43834 esac
43835 echo "$as_me:$LINENO: checking for $ac_header" >&5
43836 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43837 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43838   echo $ECHO_N "(cached) $ECHO_C" >&6
43839 else
43840   eval "$as_ac_Header=\$ac_header_preproc"
43841 fi
43842 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43843 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43844
43845 fi
43846 if test `eval echo '${'$as_ac_Header'}'` = yes; then
43847   cat >>confdefs.h <<_ACEOF
43848 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
43849 _ACEOF
43850
43851 fi
43852
43853 done
43854
43855  echo "$as_me:$LINENO: checking for db" >&5
43856 echo $ECHO_N "checking for db... $ECHO_C" >&6
43857 if test "${ol_cv_gdbm+set}" = set; then
43858   echo $ECHO_N "(cached) $ECHO_C" >&6
43859 else
43860
43861         if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
43862                 ol_cv_gdbm=no
43863         else
43864                 ol_cv_gdbm=yes
43865         fi
43866
43867 fi
43868 echo "$as_me:$LINENO: result: $ol_cv_gdbm" >&5
43869 echo "${ECHO_T}$ol_cv_gdbm" >&6
43870  if test $ol_cv_gdbm = yes ; then
43871
43872 cat >>confdefs.h <<\_ACEOF
43873 #define HAVE_GDBM 1
43874 _ACEOF
43875
43876  fi
43877
43878
43879         if test $ol_cv_gdbm = yes ; then
43880                 ol_link_ldbm=gdbm
43881                 ol_with_ldbm_api=gdbm
43882
43883                 if test $ol_cv_lib_gdbm != yes ; then
43884                         LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
43885                 fi
43886         fi
43887 fi
43888
43889 if test $ol_with_ldbm_api = ndbm ; then
43890         echo "$as_me:$LINENO: checking for NDBM library" >&5
43891 echo $ECHO_N "checking for NDBM library... $ECHO_C" >&6
43892 if test "${ol_cv_lib_ndbm+set}" = set; then
43893   echo $ECHO_N "(cached) $ECHO_C" >&6
43894 else
43895         ol_LIBS="$LIBS"
43896         echo "$as_me:$LINENO: checking for dbm_open" >&5
43897 echo $ECHO_N "checking for dbm_open... $ECHO_C" >&6
43898 if test "${ac_cv_func_dbm_open+set}" = set; then
43899   echo $ECHO_N "(cached) $ECHO_C" >&6
43900 else
43901   cat >conftest.$ac_ext <<_ACEOF
43902 /* confdefs.h.  */
43903 _ACEOF
43904 cat confdefs.h >>conftest.$ac_ext
43905 cat >>conftest.$ac_ext <<_ACEOF
43906 /* end confdefs.h.  */
43907 /* Define dbm_open to an innocuous variant, in case <limits.h> declares dbm_open.
43908    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43909 #define dbm_open innocuous_dbm_open
43910
43911 /* System header to define __stub macros and hopefully few prototypes,
43912     which can conflict with char dbm_open (); below.
43913     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43914     <limits.h> exists even on freestanding compilers.  */
43915
43916 #ifdef __STDC__
43917 # include <limits.h>
43918 #else
43919 # include <assert.h>
43920 #endif
43921
43922 #undef dbm_open
43923
43924 /* Override any gcc2 internal prototype to avoid an error.  */
43925 #ifdef __cplusplus
43926 extern "C"
43927 {
43928 #endif
43929 /* We use char because int might match the return type of a gcc2
43930    builtin and then its argument prototype would still apply.  */
43931 char dbm_open ();
43932 /* The GNU C library defines this for functions which it implements
43933     to always fail with ENOSYS.  Some functions are actually named
43934     something starting with __ and the normal name is an alias.  */
43935 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
43936 choke me
43937 #else
43938 char (*f) () = dbm_open;
43939 #endif
43940 #ifdef __cplusplus
43941 }
43942 #endif
43943
43944 int
43945 main ()
43946 {
43947 return f != dbm_open;
43948   ;
43949   return 0;
43950 }
43951 _ACEOF
43952 rm -f conftest.$ac_objext conftest$ac_exeext
43953 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43954   (eval $ac_link) 2>conftest.er1
43955   ac_status=$?
43956   grep -v '^ *+' conftest.er1 >conftest.err
43957   rm -f conftest.er1
43958   cat conftest.err >&5
43959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43960   (exit $ac_status); } &&
43961          { ac_try='test -z "$ac_c_werror_flag"
43962                          || test ! -s conftest.err'
43963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43964   (eval $ac_try) 2>&5
43965   ac_status=$?
43966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43967   (exit $ac_status); }; } &&
43968          { ac_try='test -s conftest$ac_exeext'
43969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43970   (eval $ac_try) 2>&5
43971   ac_status=$?
43972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43973   (exit $ac_status); }; }; then
43974   ac_cv_func_dbm_open=yes
43975 else
43976   echo "$as_me: failed program was:" >&5
43977 sed 's/^/| /' conftest.$ac_ext >&5
43978
43979 ac_cv_func_dbm_open=no
43980 fi
43981 rm -f conftest.err conftest.$ac_objext \
43982       conftest$ac_exeext conftest.$ac_ext
43983 fi
43984 echo "$as_me:$LINENO: result: $ac_cv_func_dbm_open" >&5
43985 echo "${ECHO_T}$ac_cv_func_dbm_open" >&6
43986 if test $ac_cv_func_dbm_open = yes; then
43987   ol_cv_lib_ndbm=yes
43988 else
43989
43990                 echo "$as_me:$LINENO: checking for dbm_open in -lndbm" >&5
43991 echo $ECHO_N "checking for dbm_open in -lndbm... $ECHO_C" >&6
43992 if test "${ac_cv_lib_ndbm_dbm_open+set}" = set; then
43993   echo $ECHO_N "(cached) $ECHO_C" >&6
43994 else
43995   ac_check_lib_save_LIBS=$LIBS
43996 LIBS="-lndbm  $LIBS"
43997 cat >conftest.$ac_ext <<_ACEOF
43998 /* confdefs.h.  */
43999 _ACEOF
44000 cat confdefs.h >>conftest.$ac_ext
44001 cat >>conftest.$ac_ext <<_ACEOF
44002 /* end confdefs.h.  */
44003
44004 /* Override any gcc2 internal prototype to avoid an error.  */
44005 #ifdef __cplusplus
44006 extern "C"
44007 #endif
44008 /* We use char because int might match the return type of a gcc2
44009    builtin and then its argument prototype would still apply.  */
44010 char dbm_open ();
44011 int
44012 main ()
44013 {
44014 dbm_open ();
44015   ;
44016   return 0;
44017 }
44018 _ACEOF
44019 rm -f conftest.$ac_objext conftest$ac_exeext
44020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44021   (eval $ac_link) 2>conftest.er1
44022   ac_status=$?
44023   grep -v '^ *+' conftest.er1 >conftest.err
44024   rm -f conftest.er1
44025   cat conftest.err >&5
44026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44027   (exit $ac_status); } &&
44028          { ac_try='test -z "$ac_c_werror_flag"
44029                          || test ! -s conftest.err'
44030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44031   (eval $ac_try) 2>&5
44032   ac_status=$?
44033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44034   (exit $ac_status); }; } &&
44035          { ac_try='test -s conftest$ac_exeext'
44036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44037   (eval $ac_try) 2>&5
44038   ac_status=$?
44039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44040   (exit $ac_status); }; }; then
44041   ac_cv_lib_ndbm_dbm_open=yes
44042 else
44043   echo "$as_me: failed program was:" >&5
44044 sed 's/^/| /' conftest.$ac_ext >&5
44045
44046 ac_cv_lib_ndbm_dbm_open=no
44047 fi
44048 rm -f conftest.err conftest.$ac_objext \
44049       conftest$ac_exeext conftest.$ac_ext
44050 LIBS=$ac_check_lib_save_LIBS
44051 fi
44052 echo "$as_me:$LINENO: result: $ac_cv_lib_ndbm_dbm_open" >&5
44053 echo "${ECHO_T}$ac_cv_lib_ndbm_dbm_open" >&6
44054 if test $ac_cv_lib_ndbm_dbm_open = yes; then
44055   ol_cv_lib_ndbm=-lndbm
44056 else
44057
44058                         echo "$as_me:$LINENO: checking for dbm_open in -ldbm" >&5
44059 echo $ECHO_N "checking for dbm_open in -ldbm... $ECHO_C" >&6
44060 if test "${ac_cv_lib_dbm_dbm_open+set}" = set; then
44061   echo $ECHO_N "(cached) $ECHO_C" >&6
44062 else
44063   ac_check_lib_save_LIBS=$LIBS
44064 LIBS="-ldbm  $LIBS"
44065 cat >conftest.$ac_ext <<_ACEOF
44066 /* confdefs.h.  */
44067 _ACEOF
44068 cat confdefs.h >>conftest.$ac_ext
44069 cat >>conftest.$ac_ext <<_ACEOF
44070 /* end confdefs.h.  */
44071
44072 /* Override any gcc2 internal prototype to avoid an error.  */
44073 #ifdef __cplusplus
44074 extern "C"
44075 #endif
44076 /* We use char because int might match the return type of a gcc2
44077    builtin and then its argument prototype would still apply.  */
44078 char dbm_open ();
44079 int
44080 main ()
44081 {
44082 dbm_open ();
44083   ;
44084   return 0;
44085 }
44086 _ACEOF
44087 rm -f conftest.$ac_objext conftest$ac_exeext
44088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44089   (eval $ac_link) 2>conftest.er1
44090   ac_status=$?
44091   grep -v '^ *+' conftest.er1 >conftest.err
44092   rm -f conftest.er1
44093   cat conftest.err >&5
44094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44095   (exit $ac_status); } &&
44096          { ac_try='test -z "$ac_c_werror_flag"
44097                          || test ! -s conftest.err'
44098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44099   (eval $ac_try) 2>&5
44100   ac_status=$?
44101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44102   (exit $ac_status); }; } &&
44103          { ac_try='test -s conftest$ac_exeext'
44104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44105   (eval $ac_try) 2>&5
44106   ac_status=$?
44107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44108   (exit $ac_status); }; }; then
44109   ac_cv_lib_dbm_dbm_open=yes
44110 else
44111   echo "$as_me: failed program was:" >&5
44112 sed 's/^/| /' conftest.$ac_ext >&5
44113
44114 ac_cv_lib_dbm_dbm_open=no
44115 fi
44116 rm -f conftest.err conftest.$ac_objext \
44117       conftest$ac_exeext conftest.$ac_ext
44118 LIBS=$ac_check_lib_save_LIBS
44119 fi
44120 echo "$as_me:$LINENO: result: $ac_cv_lib_dbm_dbm_open" >&5
44121 echo "${ECHO_T}$ac_cv_lib_dbm_dbm_open" >&6
44122 if test $ac_cv_lib_dbm_dbm_open = yes; then
44123   ol_cv_lib_ndbm=-ldbm
44124 else
44125   ol_cv_lib_ndbm=no
44126 fi
44127
44128 fi
44129
44130
44131 fi
44132
44133         LIBS="$ol_LIBS"
44134
44135 fi
44136 echo "$as_me:$LINENO: result: $ol_cv_lib_ndbm" >&5
44137 echo "${ECHO_T}$ol_cv_lib_ndbm" >&6
44138
44139
44140
44141 for ac_header in ndbm.h
44142 do
44143 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44144 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44145   echo "$as_me:$LINENO: checking for $ac_header" >&5
44146 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44147 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44148   echo $ECHO_N "(cached) $ECHO_C" >&6
44149 fi
44150 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44151 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44152 else
44153   # Is the header compilable?
44154 echo "$as_me:$LINENO: checking $ac_header usability" >&5
44155 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
44156 cat >conftest.$ac_ext <<_ACEOF
44157 /* confdefs.h.  */
44158 _ACEOF
44159 cat confdefs.h >>conftest.$ac_ext
44160 cat >>conftest.$ac_ext <<_ACEOF
44161 /* end confdefs.h.  */
44162 $ac_includes_default
44163 #include <$ac_header>
44164 _ACEOF
44165 rm -f conftest.$ac_objext
44166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44167   (eval $ac_compile) 2>conftest.er1
44168   ac_status=$?
44169   grep -v '^ *+' conftest.er1 >conftest.err
44170   rm -f conftest.er1
44171   cat conftest.err >&5
44172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44173   (exit $ac_status); } &&
44174          { ac_try='test -z "$ac_c_werror_flag"
44175                          || test ! -s conftest.err'
44176   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44177   (eval $ac_try) 2>&5
44178   ac_status=$?
44179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44180   (exit $ac_status); }; } &&
44181          { ac_try='test -s conftest.$ac_objext'
44182   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44183   (eval $ac_try) 2>&5
44184   ac_status=$?
44185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44186   (exit $ac_status); }; }; then
44187   ac_header_compiler=yes
44188 else
44189   echo "$as_me: failed program was:" >&5
44190 sed 's/^/| /' conftest.$ac_ext >&5
44191
44192 ac_header_compiler=no
44193 fi
44194 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44195 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44196 echo "${ECHO_T}$ac_header_compiler" >&6
44197
44198 # Is the header present?
44199 echo "$as_me:$LINENO: checking $ac_header presence" >&5
44200 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
44201 cat >conftest.$ac_ext <<_ACEOF
44202 /* confdefs.h.  */
44203 _ACEOF
44204 cat confdefs.h >>conftest.$ac_ext
44205 cat >>conftest.$ac_ext <<_ACEOF
44206 /* end confdefs.h.  */
44207 #include <$ac_header>
44208 _ACEOF
44209 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
44210   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
44211   ac_status=$?
44212   grep -v '^ *+' conftest.er1 >conftest.err
44213   rm -f conftest.er1
44214   cat conftest.err >&5
44215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44216   (exit $ac_status); } >/dev/null; then
44217   if test -s conftest.err; then
44218     ac_cpp_err=$ac_c_preproc_warn_flag
44219     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
44220   else
44221     ac_cpp_err=
44222   fi
44223 else
44224   ac_cpp_err=yes
44225 fi
44226 if test -z "$ac_cpp_err"; then
44227   ac_header_preproc=yes
44228 else
44229   echo "$as_me: failed program was:" >&5
44230 sed 's/^/| /' conftest.$ac_ext >&5
44231
44232   ac_header_preproc=no
44233 fi
44234 rm -f conftest.err conftest.$ac_ext
44235 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44236 echo "${ECHO_T}$ac_header_preproc" >&6
44237
44238 # So?  What about this header?
44239 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44240   yes:no: )
44241     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44242 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
44243     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
44244 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44245     ac_header_preproc=yes
44246     ;;
44247   no:yes:* )
44248     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44249 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
44250     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
44251 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
44252     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44253 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44254     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
44255 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
44256     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44257 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44258     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44259 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
44260     (
44261       cat <<\_ASBOX
44262 ## ------------------------------------------ ##
44263 ## Report this to the AC_PACKAGE_NAME lists.  ##
44264 ## ------------------------------------------ ##
44265 _ASBOX
44266     ) |
44267       sed "s/^/$as_me: WARNING:     /" >&2
44268     ;;
44269 esac
44270 echo "$as_me:$LINENO: checking for $ac_header" >&5
44271 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44272 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44273   echo $ECHO_N "(cached) $ECHO_C" >&6
44274 else
44275   eval "$as_ac_Header=\$ac_header_preproc"
44276 fi
44277 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44278 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44279
44280 fi
44281 if test `eval echo '${'$as_ac_Header'}'` = yes; then
44282   cat >>confdefs.h <<_ACEOF
44283 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44284 _ACEOF
44285
44286 fi
44287
44288 done
44289
44290  echo "$as_me:$LINENO: checking for db" >&5
44291 echo $ECHO_N "checking for db... $ECHO_C" >&6
44292 if test "${ol_cv_ndbm+set}" = set; then
44293   echo $ECHO_N "(cached) $ECHO_C" >&6
44294 else
44295
44296         if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
44297                 ol_cv_ndbm=no
44298         else
44299                 ol_cv_ndbm=yes
44300         fi
44301
44302 fi
44303 echo "$as_me:$LINENO: result: $ol_cv_ndbm" >&5
44304 echo "${ECHO_T}$ol_cv_ndbm" >&6
44305  if test $ol_cv_ndbm = yes ; then
44306
44307 cat >>confdefs.h <<\_ACEOF
44308 #define HAVE_NDBM 1
44309 _ACEOF
44310
44311  fi
44312
44313
44314         if test $ol_cv_ndbm = yes ; then
44315                 ol_link_ldbm=ndbm
44316                 ol_with_ldbm_api=ndbm
44317
44318                 if test $ol_cv_lib_ndbm != yes ; then
44319                         LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
44320                 fi
44321         fi
44322 fi
44323
44324 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
44325         { { echo "$as_me:$LINENO: error: could not find suitable LDBM backend" >&5
44326 echo "$as_me: error: could not find suitable LDBM backend" >&2;}
44327    { (exit 1); exit 1; }; }
44328 fi
44329
44330 if test $ol_enable_bdb = yes -o \
44331         $ol_enable_hdb = yes -o \
44332         $ol_enable_ldbm = yes ; then
44333         SLAPD_LIBS="$SLAPD_LIBS \$(LDBM_LIBS)"
44334 fi
44335
44336
44337 if test $ol_enable_dynamic = yes -a $enable_shared = yes ; then
44338         BUILD_LIBS_DYNAMIC=shared
44339
44340 cat >>confdefs.h <<\_ACEOF
44341 #define LDAP_LIBS_DYNAMIC 1
44342 _ACEOF
44343
44344         LTSTATIC=""
44345 else
44346         BUILD_LIBS_DYNAMIC=static
44347         LTSTATIC="-static"
44348 fi
44349
44350 if test $ol_enable_wrappers != no ; then
44351
44352 for ac_header in tcpd.h
44353 do
44354 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44355 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44356   echo "$as_me:$LINENO: checking for $ac_header" >&5
44357 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44358 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44359   echo $ECHO_N "(cached) $ECHO_C" >&6
44360 fi
44361 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44362 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44363 else
44364   # Is the header compilable?
44365 echo "$as_me:$LINENO: checking $ac_header usability" >&5
44366 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
44367 cat >conftest.$ac_ext <<_ACEOF
44368 /* confdefs.h.  */
44369 _ACEOF
44370 cat confdefs.h >>conftest.$ac_ext
44371 cat >>conftest.$ac_ext <<_ACEOF
44372 /* end confdefs.h.  */
44373 $ac_includes_default
44374 #include <$ac_header>
44375 _ACEOF
44376 rm -f conftest.$ac_objext
44377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44378   (eval $ac_compile) 2>conftest.er1
44379   ac_status=$?
44380   grep -v '^ *+' conftest.er1 >conftest.err
44381   rm -f conftest.er1
44382   cat conftest.err >&5
44383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44384   (exit $ac_status); } &&
44385          { ac_try='test -z "$ac_c_werror_flag"
44386                          || test ! -s conftest.err'
44387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44388   (eval $ac_try) 2>&5
44389   ac_status=$?
44390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44391   (exit $ac_status); }; } &&
44392          { ac_try='test -s conftest.$ac_objext'
44393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44394   (eval $ac_try) 2>&5
44395   ac_status=$?
44396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44397   (exit $ac_status); }; }; then
44398   ac_header_compiler=yes
44399 else
44400   echo "$as_me: failed program was:" >&5
44401 sed 's/^/| /' conftest.$ac_ext >&5
44402
44403 ac_header_compiler=no
44404 fi
44405 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44406 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44407 echo "${ECHO_T}$ac_header_compiler" >&6
44408
44409 # Is the header present?
44410 echo "$as_me:$LINENO: checking $ac_header presence" >&5
44411 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
44412 cat >conftest.$ac_ext <<_ACEOF
44413 /* confdefs.h.  */
44414 _ACEOF
44415 cat confdefs.h >>conftest.$ac_ext
44416 cat >>conftest.$ac_ext <<_ACEOF
44417 /* end confdefs.h.  */
44418 #include <$ac_header>
44419 _ACEOF
44420 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
44421   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
44422   ac_status=$?
44423   grep -v '^ *+' conftest.er1 >conftest.err
44424   rm -f conftest.er1
44425   cat conftest.err >&5
44426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44427   (exit $ac_status); } >/dev/null; then
44428   if test -s conftest.err; then
44429     ac_cpp_err=$ac_c_preproc_warn_flag
44430     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
44431   else
44432     ac_cpp_err=
44433   fi
44434 else
44435   ac_cpp_err=yes
44436 fi
44437 if test -z "$ac_cpp_err"; then
44438   ac_header_preproc=yes
44439 else
44440   echo "$as_me: failed program was:" >&5
44441 sed 's/^/| /' conftest.$ac_ext >&5
44442
44443   ac_header_preproc=no
44444 fi
44445 rm -f conftest.err conftest.$ac_ext
44446 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44447 echo "${ECHO_T}$ac_header_preproc" >&6
44448
44449 # So?  What about this header?
44450 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44451   yes:no: )
44452     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44453 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
44454     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
44455 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44456     ac_header_preproc=yes
44457     ;;
44458   no:yes:* )
44459     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44460 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
44461     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
44462 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
44463     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44464 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44465     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
44466 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
44467     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44468 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44469     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44470 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
44471     (
44472       cat <<\_ASBOX
44473 ## ------------------------------------------ ##
44474 ## Report this to the AC_PACKAGE_NAME lists.  ##
44475 ## ------------------------------------------ ##
44476 _ASBOX
44477     ) |
44478       sed "s/^/$as_me: WARNING:     /" >&2
44479     ;;
44480 esac
44481 echo "$as_me:$LINENO: checking for $ac_header" >&5
44482 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44483 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44484   echo $ECHO_N "(cached) $ECHO_C" >&6
44485 else
44486   eval "$as_ac_Header=\$ac_header_preproc"
44487 fi
44488 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44489 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44490
44491 fi
44492 if test `eval echo '${'$as_ac_Header'}'` = yes; then
44493   cat >>confdefs.h <<_ACEOF
44494 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44495 _ACEOF
44496
44497                 echo "$as_me:$LINENO: checking for TCP wrappers library" >&5
44498 echo $ECHO_N "checking for TCP wrappers library... $ECHO_C" >&6
44499                 save_LIBS="$LIBS"
44500                 LIBS="$LIBS -lwrap"
44501                 cat >conftest.$ac_ext <<_ACEOF
44502 /* confdefs.h.  */
44503 _ACEOF
44504 cat confdefs.h >>conftest.$ac_ext
44505 cat >>conftest.$ac_ext <<_ACEOF
44506 /* end confdefs.h.  */
44507
44508 #include <tcpd.h>
44509 int allow_severity = 0;
44510 int deny_severity  = 0;
44511
44512 struct request_info *req;
44513
44514 int
44515 main ()
44516 {
44517
44518 hosts_access(req)
44519
44520   ;
44521   return 0;
44522 }
44523 _ACEOF
44524 rm -f conftest.$ac_objext conftest$ac_exeext
44525 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44526   (eval $ac_link) 2>conftest.er1
44527   ac_status=$?
44528   grep -v '^ *+' conftest.er1 >conftest.err
44529   rm -f conftest.er1
44530   cat conftest.err >&5
44531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44532   (exit $ac_status); } &&
44533          { ac_try='test -z "$ac_c_werror_flag"
44534                          || test ! -s conftest.err'
44535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44536   (eval $ac_try) 2>&5
44537   ac_status=$?
44538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44539   (exit $ac_status); }; } &&
44540          { ac_try='test -s conftest$ac_exeext'
44541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44542   (eval $ac_try) 2>&5
44543   ac_status=$?
44544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44545   (exit $ac_status); }; }; then
44546   echo "$as_me:$LINENO: result: -lwrap" >&5
44547 echo "${ECHO_T}-lwrap" >&6
44548                 have_wrappers=yes
44549                 LIBS="$save_LIBS"
44550 else
44551   echo "$as_me: failed program was:" >&5
44552 sed 's/^/| /' conftest.$ac_ext >&5
44553
44554
44555                                 LIBS="$LIBS -lnsl"
44556                 cat >conftest.$ac_ext <<_ACEOF
44557 /* confdefs.h.  */
44558 _ACEOF
44559 cat confdefs.h >>conftest.$ac_ext
44560 cat >>conftest.$ac_ext <<_ACEOF
44561 /* end confdefs.h.  */
44562
44563 #include <tcpd.h>
44564 int allow_severity = 0;
44565 int deny_severity  = 0;
44566
44567 struct request_info *req;
44568
44569 int
44570 main ()
44571 {
44572
44573 hosts_access(req)
44574
44575   ;
44576   return 0;
44577 }
44578 _ACEOF
44579 rm -f conftest.$ac_objext conftest$ac_exeext
44580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44581   (eval $ac_link) 2>conftest.er1
44582   ac_status=$?
44583   grep -v '^ *+' conftest.er1 >conftest.err
44584   rm -f conftest.er1
44585   cat conftest.err >&5
44586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44587   (exit $ac_status); } &&
44588          { ac_try='test -z "$ac_c_werror_flag"
44589                          || test ! -s conftest.err'
44590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44591   (eval $ac_try) 2>&5
44592   ac_status=$?
44593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44594   (exit $ac_status); }; } &&
44595          { ac_try='test -s conftest$ac_exeext'
44596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44597   (eval $ac_try) 2>&5
44598   ac_status=$?
44599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44600   (exit $ac_status); }; }; then
44601   echo "$as_me:$LINENO: result: -lwrap -lnsl" >&5
44602 echo "${ECHO_T}-lwrap -lnsl" >&6
44603                 have_wrappers=yes
44604                 LIBS="$save_LIBS -lnsl"
44605 else
44606   echo "$as_me: failed program was:" >&5
44607 sed 's/^/| /' conftest.$ac_ext >&5
44608
44609
44610                 echo "$as_me:$LINENO: result: no" >&5
44611 echo "${ECHO_T}no" >&6
44612                 have_wrappers=no
44613                 LIBS=$save_LIBS
44614 fi
44615 rm -f conftest.err conftest.$ac_objext \
44616       conftest$ac_exeext conftest.$ac_ext
44617 fi
44618 rm -f conftest.err conftest.$ac_objext \
44619       conftest$ac_exeext conftest.$ac_ext
44620 else
44621   have_wrappers=no
44622 fi
44623
44624 done
44625
44626
44627         if test $have_wrappers = yes ; then
44628
44629 cat >>confdefs.h <<\_ACEOF
44630 #define HAVE_TCPD 1
44631 _ACEOF
44632
44633                 WRAP_LIBS="-lwrap"
44634         elif test $ol_enable_wrappers = yes ; then
44635                 { { echo "$as_me:$LINENO: error: could not find TCP wrappers, select apppropriate options or disable" >&5
44636 echo "$as_me: error: could not find TCP wrappers, select apppropriate options or disable" >&2;}
44637    { (exit 1); exit 1; }; }
44638         else
44639                 { echo "$as_me:$LINENO: WARNING: could not find TCP wrappers, support disabled" >&5
44640 echo "$as_me: WARNING: could not find TCP wrappers, support disabled" >&2;}
44641                 WRAP_LIBS=""
44642         fi
44643 fi
44644
44645 if test $ol_enable_syslog != no ; then
44646         echo "$as_me:$LINENO: checking for openlog" >&5
44647 echo $ECHO_N "checking for openlog... $ECHO_C" >&6
44648 if test "${ac_cv_func_openlog+set}" = set; then
44649   echo $ECHO_N "(cached) $ECHO_C" >&6
44650 else
44651   cat >conftest.$ac_ext <<_ACEOF
44652 /* confdefs.h.  */
44653 _ACEOF
44654 cat confdefs.h >>conftest.$ac_ext
44655 cat >>conftest.$ac_ext <<_ACEOF
44656 /* end confdefs.h.  */
44657 /* Define openlog to an innocuous variant, in case <limits.h> declares openlog.
44658    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44659 #define openlog innocuous_openlog
44660
44661 /* System header to define __stub macros and hopefully few prototypes,
44662     which can conflict with char openlog (); below.
44663     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44664     <limits.h> exists even on freestanding compilers.  */
44665
44666 #ifdef __STDC__
44667 # include <limits.h>
44668 #else
44669 # include <assert.h>
44670 #endif
44671
44672 #undef openlog
44673
44674 /* Override any gcc2 internal prototype to avoid an error.  */
44675 #ifdef __cplusplus
44676 extern "C"
44677 {
44678 #endif
44679 /* We use char because int might match the return type of a gcc2
44680    builtin and then its argument prototype would still apply.  */
44681 char openlog ();
44682 /* The GNU C library defines this for functions which it implements
44683     to always fail with ENOSYS.  Some functions are actually named
44684     something starting with __ and the normal name is an alias.  */
44685 #if defined (__stub_openlog) || defined (__stub___openlog)
44686 choke me
44687 #else
44688 char (*f) () = openlog;
44689 #endif
44690 #ifdef __cplusplus
44691 }
44692 #endif
44693
44694 int
44695 main ()
44696 {
44697 return f != openlog;
44698   ;
44699   return 0;
44700 }
44701 _ACEOF
44702 rm -f conftest.$ac_objext conftest$ac_exeext
44703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44704   (eval $ac_link) 2>conftest.er1
44705   ac_status=$?
44706   grep -v '^ *+' conftest.er1 >conftest.err
44707   rm -f conftest.er1
44708   cat conftest.err >&5
44709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44710   (exit $ac_status); } &&
44711          { ac_try='test -z "$ac_c_werror_flag"
44712                          || test ! -s conftest.err'
44713   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44714   (eval $ac_try) 2>&5
44715   ac_status=$?
44716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44717   (exit $ac_status); }; } &&
44718          { ac_try='test -s conftest$ac_exeext'
44719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44720   (eval $ac_try) 2>&5
44721   ac_status=$?
44722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44723   (exit $ac_status); }; }; then
44724   ac_cv_func_openlog=yes
44725 else
44726   echo "$as_me: failed program was:" >&5
44727 sed 's/^/| /' conftest.$ac_ext >&5
44728
44729 ac_cv_func_openlog=no
44730 fi
44731 rm -f conftest.err conftest.$ac_objext \
44732       conftest$ac_exeext conftest.$ac_ext
44733 fi
44734 echo "$as_me:$LINENO: result: $ac_cv_func_openlog" >&5
44735 echo "${ECHO_T}$ac_cv_func_openlog" >&6
44736
44737         if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
44738                 { { echo "$as_me:$LINENO: error: could not find syslog" >&5
44739 echo "$as_me: error: could not find syslog" >&2;}
44740    { (exit select appropriate options or disable); exit select appropriate options or disable; }; }
44741         fi
44742         ol_enable_syslog=$ac_cv_func_openlog
44743 fi
44744
44745
44746 ol_link_sql=no
44747 if test $ol_enable_sql != no ; then
44748
44749
44750 for ac_header in sql.h sqlext.h
44751 do
44752 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44753 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44754   echo "$as_me:$LINENO: checking for $ac_header" >&5
44755 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44756 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44757   echo $ECHO_N "(cached) $ECHO_C" >&6
44758 fi
44759 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44760 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44761 else
44762   # Is the header compilable?
44763 echo "$as_me:$LINENO: checking $ac_header usability" >&5
44764 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
44765 cat >conftest.$ac_ext <<_ACEOF
44766 /* confdefs.h.  */
44767 _ACEOF
44768 cat confdefs.h >>conftest.$ac_ext
44769 cat >>conftest.$ac_ext <<_ACEOF
44770 /* end confdefs.h.  */
44771 $ac_includes_default
44772 #include <$ac_header>
44773 _ACEOF
44774 rm -f conftest.$ac_objext
44775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44776   (eval $ac_compile) 2>conftest.er1
44777   ac_status=$?
44778   grep -v '^ *+' conftest.er1 >conftest.err
44779   rm -f conftest.er1
44780   cat conftest.err >&5
44781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44782   (exit $ac_status); } &&
44783          { ac_try='test -z "$ac_c_werror_flag"
44784                          || test ! -s conftest.err'
44785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44786   (eval $ac_try) 2>&5
44787   ac_status=$?
44788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44789   (exit $ac_status); }; } &&
44790          { ac_try='test -s conftest.$ac_objext'
44791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44792   (eval $ac_try) 2>&5
44793   ac_status=$?
44794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44795   (exit $ac_status); }; }; then
44796   ac_header_compiler=yes
44797 else
44798   echo "$as_me: failed program was:" >&5
44799 sed 's/^/| /' conftest.$ac_ext >&5
44800
44801 ac_header_compiler=no
44802 fi
44803 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44804 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44805 echo "${ECHO_T}$ac_header_compiler" >&6
44806
44807 # Is the header present?
44808 echo "$as_me:$LINENO: checking $ac_header presence" >&5
44809 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
44810 cat >conftest.$ac_ext <<_ACEOF
44811 /* confdefs.h.  */
44812 _ACEOF
44813 cat confdefs.h >>conftest.$ac_ext
44814 cat >>conftest.$ac_ext <<_ACEOF
44815 /* end confdefs.h.  */
44816 #include <$ac_header>
44817 _ACEOF
44818 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
44819   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
44820   ac_status=$?
44821   grep -v '^ *+' conftest.er1 >conftest.err
44822   rm -f conftest.er1
44823   cat conftest.err >&5
44824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44825   (exit $ac_status); } >/dev/null; then
44826   if test -s conftest.err; then
44827     ac_cpp_err=$ac_c_preproc_warn_flag
44828     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
44829   else
44830     ac_cpp_err=
44831   fi
44832 else
44833   ac_cpp_err=yes
44834 fi
44835 if test -z "$ac_cpp_err"; then
44836   ac_header_preproc=yes
44837 else
44838   echo "$as_me: failed program was:" >&5
44839 sed 's/^/| /' conftest.$ac_ext >&5
44840
44841   ac_header_preproc=no
44842 fi
44843 rm -f conftest.err conftest.$ac_ext
44844 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44845 echo "${ECHO_T}$ac_header_preproc" >&6
44846
44847 # So?  What about this header?
44848 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44849   yes:no: )
44850     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44851 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
44852     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
44853 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44854     ac_header_preproc=yes
44855     ;;
44856   no:yes:* )
44857     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44858 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
44859     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
44860 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
44861     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44862 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44863     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
44864 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
44865     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44866 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44867     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44868 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
44869     (
44870       cat <<\_ASBOX
44871 ## ------------------------------------------ ##
44872 ## Report this to the AC_PACKAGE_NAME lists.  ##
44873 ## ------------------------------------------ ##
44874 _ASBOX
44875     ) |
44876       sed "s/^/$as_me: WARNING:     /" >&2
44877     ;;
44878 esac
44879 echo "$as_me:$LINENO: checking for $ac_header" >&5
44880 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44881 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44882   echo $ECHO_N "(cached) $ECHO_C" >&6
44883 else
44884   eval "$as_ac_Header=\$ac_header_preproc"
44885 fi
44886 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44887 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44888
44889 fi
44890 if test `eval echo '${'$as_ac_Header'}'` = yes; then
44891   cat >>confdefs.h <<_ACEOF
44892 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44893 _ACEOF
44894
44895 else
44896
44897                 { { echo "$as_me:$LINENO: error: could not locate SQL headers" >&5
44898 echo "$as_me: error: could not locate SQL headers" >&2;}
44899    { (exit 1); exit 1; }; }
44900
44901 fi
44902
44903 done
44904
44905
44906         sql_LIBS="$LIBS"
44907         LIBS="$LTHREAD_LIBS"
44908
44909         echo "$as_me:$LINENO: checking for SQLDriverConnect in -liodbc" >&5
44910 echo $ECHO_N "checking for SQLDriverConnect in -liodbc... $ECHO_C" >&6
44911 if test "${ac_cv_lib_iodbc_SQLDriverConnect+set}" = set; then
44912   echo $ECHO_N "(cached) $ECHO_C" >&6
44913 else
44914   ac_check_lib_save_LIBS=$LIBS
44915 LIBS="-liodbc  $LIBS"
44916 cat >conftest.$ac_ext <<_ACEOF
44917 /* confdefs.h.  */
44918 _ACEOF
44919 cat confdefs.h >>conftest.$ac_ext
44920 cat >>conftest.$ac_ext <<_ACEOF
44921 /* end confdefs.h.  */
44922
44923 /* Override any gcc2 internal prototype to avoid an error.  */
44924 #ifdef __cplusplus
44925 extern "C"
44926 #endif
44927 /* We use char because int might match the return type of a gcc2
44928    builtin and then its argument prototype would still apply.  */
44929 char SQLDriverConnect ();
44930 int
44931 main ()
44932 {
44933 SQLDriverConnect ();
44934   ;
44935   return 0;
44936 }
44937 _ACEOF
44938 rm -f conftest.$ac_objext conftest$ac_exeext
44939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44940   (eval $ac_link) 2>conftest.er1
44941   ac_status=$?
44942   grep -v '^ *+' conftest.er1 >conftest.err
44943   rm -f conftest.er1
44944   cat conftest.err >&5
44945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44946   (exit $ac_status); } &&
44947          { ac_try='test -z "$ac_c_werror_flag"
44948                          || test ! -s conftest.err'
44949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44950   (eval $ac_try) 2>&5
44951   ac_status=$?
44952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44953   (exit $ac_status); }; } &&
44954          { ac_try='test -s conftest$ac_exeext'
44955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44956   (eval $ac_try) 2>&5
44957   ac_status=$?
44958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44959   (exit $ac_status); }; }; then
44960   ac_cv_lib_iodbc_SQLDriverConnect=yes
44961 else
44962   echo "$as_me: failed program was:" >&5
44963 sed 's/^/| /' conftest.$ac_ext >&5
44964
44965 ac_cv_lib_iodbc_SQLDriverConnect=no
44966 fi
44967 rm -f conftest.err conftest.$ac_objext \
44968       conftest$ac_exeext conftest.$ac_ext
44969 LIBS=$ac_check_lib_save_LIBS
44970 fi
44971 echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLDriverConnect" >&5
44972 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLDriverConnect" >&6
44973 if test $ac_cv_lib_iodbc_SQLDriverConnect = yes; then
44974   have_iodbc=yes
44975 else
44976   have_iodbc=no
44977 fi
44978
44979         if test $have_iodbc = yes ; then
44980                 ol_link_sql="-liodbc"
44981         else
44982                 echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc" >&5
44983 echo $ECHO_N "checking for SQLDriverConnect in -lodbc... $ECHO_C" >&6
44984 if test "${ac_cv_lib_odbc_SQLDriverConnect+set}" = set; then
44985   echo $ECHO_N "(cached) $ECHO_C" >&6
44986 else
44987   ac_check_lib_save_LIBS=$LIBS
44988 LIBS="-lodbc  $LIBS"
44989 cat >conftest.$ac_ext <<_ACEOF
44990 /* confdefs.h.  */
44991 _ACEOF
44992 cat confdefs.h >>conftest.$ac_ext
44993 cat >>conftest.$ac_ext <<_ACEOF
44994 /* end confdefs.h.  */
44995
44996 /* Override any gcc2 internal prototype to avoid an error.  */
44997 #ifdef __cplusplus
44998 extern "C"
44999 #endif
45000 /* We use char because int might match the return type of a gcc2
45001    builtin and then its argument prototype would still apply.  */
45002 char SQLDriverConnect ();
45003 int
45004 main ()
45005 {
45006 SQLDriverConnect ();
45007   ;
45008   return 0;
45009 }
45010 _ACEOF
45011 rm -f conftest.$ac_objext conftest$ac_exeext
45012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45013   (eval $ac_link) 2>conftest.er1
45014   ac_status=$?
45015   grep -v '^ *+' conftest.er1 >conftest.err
45016   rm -f conftest.er1
45017   cat conftest.err >&5
45018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45019   (exit $ac_status); } &&
45020          { ac_try='test -z "$ac_c_werror_flag"
45021                          || test ! -s conftest.err'
45022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45023   (eval $ac_try) 2>&5
45024   ac_status=$?
45025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45026   (exit $ac_status); }; } &&
45027          { ac_try='test -s conftest$ac_exeext'
45028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45029   (eval $ac_try) 2>&5
45030   ac_status=$?
45031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45032   (exit $ac_status); }; }; then
45033   ac_cv_lib_odbc_SQLDriverConnect=yes
45034 else
45035   echo "$as_me: failed program was:" >&5
45036 sed 's/^/| /' conftest.$ac_ext >&5
45037
45038 ac_cv_lib_odbc_SQLDriverConnect=no
45039 fi
45040 rm -f conftest.err conftest.$ac_objext \
45041       conftest$ac_exeext conftest.$ac_ext
45042 LIBS=$ac_check_lib_save_LIBS
45043 fi
45044 echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLDriverConnect" >&5
45045 echo "${ECHO_T}$ac_cv_lib_odbc_SQLDriverConnect" >&6
45046 if test $ac_cv_lib_odbc_SQLDriverConnect = yes; then
45047   have_odbc=yes
45048 else
45049   have_odbc=no
45050 fi
45051
45052                 if test $have_odbc = yes ; then
45053                         ol_link_sql="-lodbc"
45054                 fi
45055         fi
45056
45057         LIBS="$sql_LIBS"
45058
45059         if test $ol_link_sql != no ; then
45060                 SLAPD_SQL_LIBS="$ol_link_sql"
45061
45062         elif test $ol_enable_sql != auto ; then
45063                 { { echo "$as_me:$LINENO: error: could not locate suitable ODBC library" >&5
45064 echo "$as_me: error: could not locate suitable ODBC library" >&2;}
45065    { (exit 1); exit 1; }; }
45066         fi
45067 fi
45068
45069 WITH_SASL=no
45070 ol_link_sasl=no
45071 ol_link_spasswd=no
45072 if test $ol_with_cyrus_sasl != no ; then
45073
45074
45075 for ac_header in sasl/sasl.h sasl.h
45076 do
45077 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
45078 if eval "test \"\${$as_ac_Header+set}\" = set"; then
45079   echo "$as_me:$LINENO: checking for $ac_header" >&5
45080 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
45081 if eval "test \"\${$as_ac_Header+set}\" = set"; then
45082   echo $ECHO_N "(cached) $ECHO_C" >&6
45083 fi
45084 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
45085 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
45086 else
45087   # Is the header compilable?
45088 echo "$as_me:$LINENO: checking $ac_header usability" >&5
45089 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
45090 cat >conftest.$ac_ext <<_ACEOF
45091 /* confdefs.h.  */
45092 _ACEOF
45093 cat confdefs.h >>conftest.$ac_ext
45094 cat >>conftest.$ac_ext <<_ACEOF
45095 /* end confdefs.h.  */
45096 $ac_includes_default
45097 #include <$ac_header>
45098 _ACEOF
45099 rm -f conftest.$ac_objext
45100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45101   (eval $ac_compile) 2>conftest.er1
45102   ac_status=$?
45103   grep -v '^ *+' conftest.er1 >conftest.err
45104   rm -f conftest.er1
45105   cat conftest.err >&5
45106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45107   (exit $ac_status); } &&
45108          { ac_try='test -z "$ac_c_werror_flag"
45109                          || test ! -s conftest.err'
45110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45111   (eval $ac_try) 2>&5
45112   ac_status=$?
45113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45114   (exit $ac_status); }; } &&
45115          { ac_try='test -s conftest.$ac_objext'
45116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45117   (eval $ac_try) 2>&5
45118   ac_status=$?
45119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45120   (exit $ac_status); }; }; then
45121   ac_header_compiler=yes
45122 else
45123   echo "$as_me: failed program was:" >&5
45124 sed 's/^/| /' conftest.$ac_ext >&5
45125
45126 ac_header_compiler=no
45127 fi
45128 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45129 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
45130 echo "${ECHO_T}$ac_header_compiler" >&6
45131
45132 # Is the header present?
45133 echo "$as_me:$LINENO: checking $ac_header presence" >&5
45134 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
45135 cat >conftest.$ac_ext <<_ACEOF
45136 /* confdefs.h.  */
45137 _ACEOF
45138 cat confdefs.h >>conftest.$ac_ext
45139 cat >>conftest.$ac_ext <<_ACEOF
45140 /* end confdefs.h.  */
45141 #include <$ac_header>
45142 _ACEOF
45143 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
45144   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
45145   ac_status=$?
45146   grep -v '^ *+' conftest.er1 >conftest.err
45147   rm -f conftest.er1
45148   cat conftest.err >&5
45149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45150   (exit $ac_status); } >/dev/null; then
45151   if test -s conftest.err; then
45152     ac_cpp_err=$ac_c_preproc_warn_flag
45153     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
45154   else
45155     ac_cpp_err=
45156   fi
45157 else
45158   ac_cpp_err=yes
45159 fi
45160 if test -z "$ac_cpp_err"; then
45161   ac_header_preproc=yes
45162 else
45163   echo "$as_me: failed program was:" >&5
45164 sed 's/^/| /' conftest.$ac_ext >&5
45165
45166   ac_header_preproc=no
45167 fi
45168 rm -f conftest.err conftest.$ac_ext
45169 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
45170 echo "${ECHO_T}$ac_header_preproc" >&6
45171
45172 # So?  What about this header?
45173 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
45174   yes:no: )
45175     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
45176 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
45177     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
45178 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
45179     ac_header_preproc=yes
45180     ;;
45181   no:yes:* )
45182     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
45183 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
45184     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
45185 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
45186     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
45187 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
45188     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
45189 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
45190     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
45191 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
45192     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
45193 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
45194     (
45195       cat <<\_ASBOX
45196 ## ------------------------------------------ ##
45197 ## Report this to the AC_PACKAGE_NAME lists.  ##
45198 ## ------------------------------------------ ##
45199 _ASBOX
45200     ) |
45201       sed "s/^/$as_me: WARNING:     /" >&2
45202     ;;
45203 esac
45204 echo "$as_me:$LINENO: checking for $ac_header" >&5
45205 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
45206 if eval "test \"\${$as_ac_Header+set}\" = set"; then
45207   echo $ECHO_N "(cached) $ECHO_C" >&6
45208 else
45209   eval "$as_ac_Header=\$ac_header_preproc"
45210 fi
45211 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
45212 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
45213
45214 fi
45215 if test `eval echo '${'$as_ac_Header'}'` = yes; then
45216   cat >>confdefs.h <<_ACEOF
45217 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
45218 _ACEOF
45219
45220 fi
45221
45222 done
45223
45224
45225         if test $ac_cv_header_sasl_sasl_h = yes -o $ac_cv_header_sasl_h = yes; then
45226                 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl2" >&5
45227 echo $ECHO_N "checking for sasl_client_init in -lsasl2... $ECHO_C" >&6
45228 if test "${ac_cv_lib_sasl2_sasl_client_init+set}" = set; then
45229   echo $ECHO_N "(cached) $ECHO_C" >&6
45230 else
45231   ac_check_lib_save_LIBS=$LIBS
45232 LIBS="-lsasl2  $LIBS"
45233 cat >conftest.$ac_ext <<_ACEOF
45234 /* confdefs.h.  */
45235 _ACEOF
45236 cat confdefs.h >>conftest.$ac_ext
45237 cat >>conftest.$ac_ext <<_ACEOF
45238 /* end confdefs.h.  */
45239
45240 /* Override any gcc2 internal prototype to avoid an error.  */
45241 #ifdef __cplusplus
45242 extern "C"
45243 #endif
45244 /* We use char because int might match the return type of a gcc2
45245    builtin and then its argument prototype would still apply.  */
45246 char sasl_client_init ();
45247 int
45248 main ()
45249 {
45250 sasl_client_init ();
45251   ;
45252   return 0;
45253 }
45254 _ACEOF
45255 rm -f conftest.$ac_objext conftest$ac_exeext
45256 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45257   (eval $ac_link) 2>conftest.er1
45258   ac_status=$?
45259   grep -v '^ *+' conftest.er1 >conftest.err
45260   rm -f conftest.er1
45261   cat conftest.err >&5
45262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45263   (exit $ac_status); } &&
45264          { ac_try='test -z "$ac_c_werror_flag"
45265                          || test ! -s conftest.err'
45266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45267   (eval $ac_try) 2>&5
45268   ac_status=$?
45269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45270   (exit $ac_status); }; } &&
45271          { ac_try='test -s conftest$ac_exeext'
45272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45273   (eval $ac_try) 2>&5
45274   ac_status=$?
45275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45276   (exit $ac_status); }; }; then
45277   ac_cv_lib_sasl2_sasl_client_init=yes
45278 else
45279   echo "$as_me: failed program was:" >&5
45280 sed 's/^/| /' conftest.$ac_ext >&5
45281
45282 ac_cv_lib_sasl2_sasl_client_init=no
45283 fi
45284 rm -f conftest.err conftest.$ac_objext \
45285       conftest$ac_exeext conftest.$ac_ext
45286 LIBS=$ac_check_lib_save_LIBS
45287 fi
45288 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
45289 echo "${ECHO_T}$ac_cv_lib_sasl2_sasl_client_init" >&6
45290 if test $ac_cv_lib_sasl2_sasl_client_init = yes; then
45291   ol_link_sasl="-lsasl2"
45292 else
45293   echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl" >&5
45294 echo $ECHO_N "checking for sasl_client_init in -lsasl... $ECHO_C" >&6
45295 if test "${ac_cv_lib_sasl_sasl_client_init+set}" = set; then
45296   echo $ECHO_N "(cached) $ECHO_C" >&6
45297 else
45298   ac_check_lib_save_LIBS=$LIBS
45299 LIBS="-lsasl  $LIBS"
45300 cat >conftest.$ac_ext <<_ACEOF
45301 /* confdefs.h.  */
45302 _ACEOF
45303 cat confdefs.h >>conftest.$ac_ext
45304 cat >>conftest.$ac_ext <<_ACEOF
45305 /* end confdefs.h.  */
45306
45307 /* Override any gcc2 internal prototype to avoid an error.  */
45308 #ifdef __cplusplus
45309 extern "C"
45310 #endif
45311 /* We use char because int might match the return type of a gcc2
45312    builtin and then its argument prototype would still apply.  */
45313 char sasl_client_init ();
45314 int
45315 main ()
45316 {
45317 sasl_client_init ();
45318   ;
45319   return 0;
45320 }
45321 _ACEOF
45322 rm -f conftest.$ac_objext conftest$ac_exeext
45323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45324   (eval $ac_link) 2>conftest.er1
45325   ac_status=$?
45326   grep -v '^ *+' conftest.er1 >conftest.err
45327   rm -f conftest.er1
45328   cat conftest.err >&5
45329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45330   (exit $ac_status); } &&
45331          { ac_try='test -z "$ac_c_werror_flag"
45332                          || test ! -s conftest.err'
45333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45334   (eval $ac_try) 2>&5
45335   ac_status=$?
45336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45337   (exit $ac_status); }; } &&
45338          { ac_try='test -s conftest$ac_exeext'
45339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45340   (eval $ac_try) 2>&5
45341   ac_status=$?
45342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45343   (exit $ac_status); }; }; then
45344   ac_cv_lib_sasl_sasl_client_init=yes
45345 else
45346   echo "$as_me: failed program was:" >&5
45347 sed 's/^/| /' conftest.$ac_ext >&5
45348
45349 ac_cv_lib_sasl_sasl_client_init=no
45350 fi
45351 rm -f conftest.err conftest.$ac_objext \
45352       conftest$ac_exeext conftest.$ac_ext
45353 LIBS=$ac_check_lib_save_LIBS
45354 fi
45355 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl_sasl_client_init" >&5
45356 echo "${ECHO_T}$ac_cv_lib_sasl_sasl_client_init" >&6
45357 if test $ac_cv_lib_sasl_sasl_client_init = yes; then
45358   ol_link_sasl="-lsasl"
45359 fi
45360
45361 fi
45362
45363         fi
45364
45365         if test $ol_link_sasl = no ; then
45366                 if test $ol_with_cyrus_sasl != auto ; then
45367                         { { echo "$as_me:$LINENO: error: Could not locate Cyrus SASL" >&5
45368 echo "$as_me: error: Could not locate Cyrus SASL" >&2;}
45369    { (exit 1); exit 1; }; }
45370                 else
45371                         { echo "$as_me:$LINENO: WARNING: Could not locate Cyrus SASL" >&5
45372 echo "$as_me: WARNING: Could not locate Cyrus SASL" >&2;}
45373                         { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
45374 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
45375                         if test $ol_link_tls = no ; then
45376                                 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
45377 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
45378                         fi
45379                 fi
45380         else
45381                 echo "$as_me:$LINENO: checking Cyrus SASL library version" >&5
45382 echo $ECHO_N "checking Cyrus SASL library version... $ECHO_C" >&6
45383 if test "${ol_cv_sasl_compat+set}" = set; then
45384   echo $ECHO_N "(cached) $ECHO_C" >&6
45385 else
45386
45387         cat >conftest.$ac_ext <<_ACEOF
45388 /* confdefs.h.  */
45389 _ACEOF
45390 cat confdefs.h >>conftest.$ac_ext
45391 cat >>conftest.$ac_ext <<_ACEOF
45392 /* end confdefs.h.  */
45393
45394 #ifdef HAVE_SASL_SASL_H
45395 #include <sasl/sasl.h>
45396 #else
45397 #include <sasl.h>
45398 #endif
45399
45400 /* Require 2.1.15+ */
45401 #if SASL_VERSION_MAJOR == 2  && SASL_VERSION_MINOR > 1
45402         char *__sasl_compat = "2.2+ or better okay (we guess)";
45403 #elif SASL_VERSION_MAJOR == 2  && SASL_VERSION_MINOR == 1 \
45404         && SASL_VERSION_STEP >=15
45405         char *__sasl_compat = "2.1.15+ or better okay";
45406 #endif
45407
45408 _ACEOF
45409 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45410   $EGREP "__sasl_compat" >/dev/null 2>&1; then
45411   ol_cv_sasl_compat=yes
45412 else
45413   ol_cv_sasl_compat=no
45414 fi
45415 rm -f conftest*
45416
45417 fi
45418 echo "$as_me:$LINENO: result: $ol_cv_sasl_compat" >&5
45419 echo "${ECHO_T}$ol_cv_sasl_compat" >&6
45420
45421                 if test $ol_cv_sasl_compat = no ; then
45422                         ol_link_sasl=no
45423                         { { echo "$as_me:$LINENO: error: Cyrus SASL library located but is incompatible" >&5
45424 echo "$as_me: error: Cyrus SASL library located but is incompatible" >&2;}
45425    { (exit 1); exit 1; }; }
45426                 fi
45427
45428
45429 cat >>confdefs.h <<\_ACEOF
45430 #define HAVE_CYRUS_SASL 1
45431 _ACEOF
45432
45433                 SASL_LIBS="$ol_link_sasl"
45434                 if test $ol_enable_spasswd != no ; then
45435                         ol_link_spasswd=yes
45436                 fi
45437
45438                 ac_save_LIBS="$LIBS"
45439                 LIBS="$LIBS $ol_link_sasl"
45440                 echo "$as_me:$LINENO: checking for sasl_version" >&5
45441 echo $ECHO_N "checking for sasl_version... $ECHO_C" >&6
45442 if test "${ac_cv_func_sasl_version+set}" = set; then
45443   echo $ECHO_N "(cached) $ECHO_C" >&6
45444 else
45445   cat >conftest.$ac_ext <<_ACEOF
45446 /* confdefs.h.  */
45447 _ACEOF
45448 cat confdefs.h >>conftest.$ac_ext
45449 cat >>conftest.$ac_ext <<_ACEOF
45450 /* end confdefs.h.  */
45451 /* Define sasl_version to an innocuous variant, in case <limits.h> declares sasl_version.
45452    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45453 #define sasl_version innocuous_sasl_version
45454
45455 /* System header to define __stub macros and hopefully few prototypes,
45456     which can conflict with char sasl_version (); below.
45457     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45458     <limits.h> exists even on freestanding compilers.  */
45459
45460 #ifdef __STDC__
45461 # include <limits.h>
45462 #else
45463 # include <assert.h>
45464 #endif
45465
45466 #undef sasl_version
45467
45468 /* Override any gcc2 internal prototype to avoid an error.  */
45469 #ifdef __cplusplus
45470 extern "C"
45471 {
45472 #endif
45473 /* We use char because int might match the return type of a gcc2
45474    builtin and then its argument prototype would still apply.  */
45475 char sasl_version ();
45476 /* The GNU C library defines this for functions which it implements
45477     to always fail with ENOSYS.  Some functions are actually named
45478     something starting with __ and the normal name is an alias.  */
45479 #if defined (__stub_sasl_version) || defined (__stub___sasl_version)
45480 choke me
45481 #else
45482 char (*f) () = sasl_version;
45483 #endif
45484 #ifdef __cplusplus
45485 }
45486 #endif
45487
45488 int
45489 main ()
45490 {
45491 return f != sasl_version;
45492   ;
45493   return 0;
45494 }
45495 _ACEOF
45496 rm -f conftest.$ac_objext conftest$ac_exeext
45497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45498   (eval $ac_link) 2>conftest.er1
45499   ac_status=$?
45500   grep -v '^ *+' conftest.er1 >conftest.err
45501   rm -f conftest.er1
45502   cat conftest.err >&5
45503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45504   (exit $ac_status); } &&
45505          { ac_try='test -z "$ac_c_werror_flag"
45506                          || test ! -s conftest.err'
45507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45508   (eval $ac_try) 2>&5
45509   ac_status=$?
45510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45511   (exit $ac_status); }; } &&
45512          { ac_try='test -s conftest$ac_exeext'
45513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45514   (eval $ac_try) 2>&5
45515   ac_status=$?
45516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45517   (exit $ac_status); }; }; then
45518   ac_cv_func_sasl_version=yes
45519 else
45520   echo "$as_me: failed program was:" >&5
45521 sed 's/^/| /' conftest.$ac_ext >&5
45522
45523 ac_cv_func_sasl_version=no
45524 fi
45525 rm -f conftest.err conftest.$ac_objext \
45526       conftest$ac_exeext conftest.$ac_ext
45527 fi
45528 echo "$as_me:$LINENO: result: $ac_cv_func_sasl_version" >&5
45529 echo "${ECHO_T}$ac_cv_func_sasl_version" >&6
45530 if test $ac_cv_func_sasl_version = yes; then
45531
45532 cat >>confdefs.h <<\_ACEOF
45533 #define HAVE_SASL_VERSION 1
45534 _ACEOF
45535
45536 fi
45537
45538                 LIBS="$ac_save_LIBS"
45539
45540                 WITH_SASL=yes
45541         fi
45542
45543 else
45544         { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
45545 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
45546         if test $ol_link_tls = no ; then
45547                 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
45548 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
45549         fi
45550 fi
45551
45552 if test $cross_compiling != yes -a "$ac_cv_mingw32" != yes ; then
45553         dev=no
45554         if test -r /dev/urandom ; then
45555                 dev="/dev/urandom";
45556         elif test -r /idev/urandom ; then
45557                 dev="/idev/urandom";
45558         elif test -r /dev/srandom ; then
45559                 dev="/dev/srandom";
45560         elif test -r /dev/random ; then
45561                 dev="/dev/random";
45562         elif test -r /idev/random ; then
45563                 dev="/idev/random";
45564         fi
45565
45566         if test $dev != no ; then
45567
45568 cat >>confdefs.h <<_ACEOF
45569 #define URANDOM_DEVICE "$dev"
45570 _ACEOF
45571
45572         fi
45573 fi
45574
45575 ol_link_fetch=no
45576 if test $ol_with_fetch != no ; then
45577         ol_LIBS=$LIBS
45578 LIBS="-lfetch -lcom_err $LIBS"
45579 echo "$as_me:$LINENO: checking fetch(3) library" >&5
45580 echo $ECHO_N "checking fetch(3) library... $ECHO_C" >&6
45581 if test "${ol_cv_lib_fetch+set}" = set; then
45582   echo $ECHO_N "(cached) $ECHO_C" >&6
45583 else
45584
45585         cat >conftest.$ac_ext <<_ACEOF
45586 /* confdefs.h.  */
45587 _ACEOF
45588 cat confdefs.h >>conftest.$ac_ext
45589 cat >>conftest.$ac_ext <<_ACEOF
45590 /* end confdefs.h.  */
45591
45592 #include <sys/param.h>
45593 #include <stdio.h>
45594 #include <fetch.h>
45595 int
45596 main ()
45597 {
45598 struct url *u = fetchParseURL("file:///");
45599   ;
45600   return 0;
45601 }
45602 _ACEOF
45603 rm -f conftest.$ac_objext conftest$ac_exeext
45604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45605   (eval $ac_link) 2>conftest.er1
45606   ac_status=$?
45607   grep -v '^ *+' conftest.er1 >conftest.err
45608   rm -f conftest.er1
45609   cat conftest.err >&5
45610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45611   (exit $ac_status); } &&
45612          { ac_try='test -z "$ac_c_werror_flag"
45613                          || test ! -s conftest.err'
45614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45615   (eval $ac_try) 2>&5
45616   ac_status=$?
45617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45618   (exit $ac_status); }; } &&
45619          { ac_try='test -s conftest$ac_exeext'
45620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45621   (eval $ac_try) 2>&5
45622   ac_status=$?
45623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45624   (exit $ac_status); }; }; then
45625   ol_cv_lib_fetch=yes
45626 else
45627   echo "$as_me: failed program was:" >&5
45628 sed 's/^/| /' conftest.$ac_ext >&5
45629
45630 ol_cv_lib_fetch=no
45631 fi
45632 rm -f conftest.err conftest.$ac_objext \
45633       conftest$ac_exeext conftest.$ac_ext
45634 fi
45635 echo "$as_me:$LINENO: result: $ol_cv_lib_fetch" >&5
45636 echo "${ECHO_T}$ol_cv_lib_fetch" >&6
45637 LIBS=$ol_LIBS
45638 if test $ol_cv_lib_fetch != no ; then
45639         ol_link_fetch="-lfetch -lcom_err"
45640
45641 cat >>confdefs.h <<\_ACEOF
45642 #define HAVE_FETCH 1
45643 _ACEOF
45644
45645 fi
45646
45647
45648         if test $ol_cv_lib_fetch != no ; then
45649                 LUTIL_LIBS="$LUTIL_LIBS $ol_link_fetch"
45650                 ol_link_fetch=freebsd
45651
45652         elif test $ol_with_fetch != auto ; then
45653                 { { echo "$as_me:$LINENO: error: no suitable API for --with-fetch=$ol_with_fetch" >&5
45654 echo "$as_me: error: no suitable API for --with-fetch=$ol_with_fetch" >&2;}
45655    { (exit 1); exit 1; }; }
45656         fi
45657 fi
45658
45659 if test $ol_enable_crypt != no ; then
45660         save_LIBS="$LIBS"
45661         LIBS="$TLS_LIBS $LIBS"
45662
45663         echo "$as_me:$LINENO: checking for crypt" >&5
45664 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
45665 if test "${ac_cv_func_crypt+set}" = set; then
45666   echo $ECHO_N "(cached) $ECHO_C" >&6
45667 else
45668   cat >conftest.$ac_ext <<_ACEOF
45669 /* confdefs.h.  */
45670 _ACEOF
45671 cat confdefs.h >>conftest.$ac_ext
45672 cat >>conftest.$ac_ext <<_ACEOF
45673 /* end confdefs.h.  */
45674 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
45675    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45676 #define crypt innocuous_crypt
45677
45678 /* System header to define __stub macros and hopefully few prototypes,
45679     which can conflict with char crypt (); below.
45680     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45681     <limits.h> exists even on freestanding compilers.  */
45682
45683 #ifdef __STDC__
45684 # include <limits.h>
45685 #else
45686 # include <assert.h>
45687 #endif
45688
45689 #undef crypt
45690
45691 /* Override any gcc2 internal prototype to avoid an error.  */
45692 #ifdef __cplusplus
45693 extern "C"
45694 {
45695 #endif
45696 /* We use char because int might match the return type of a gcc2
45697    builtin and then its argument prototype would still apply.  */
45698 char crypt ();
45699 /* The GNU C library defines this for functions which it implements
45700     to always fail with ENOSYS.  Some functions are actually named
45701     something starting with __ and the normal name is an alias.  */
45702 #if defined (__stub_crypt) || defined (__stub___crypt)
45703 choke me
45704 #else
45705 char (*f) () = crypt;
45706 #endif
45707 #ifdef __cplusplus
45708 }
45709 #endif
45710
45711 int
45712 main ()
45713 {
45714 return f != crypt;
45715   ;
45716   return 0;
45717 }
45718 _ACEOF
45719 rm -f conftest.$ac_objext conftest$ac_exeext
45720 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45721   (eval $ac_link) 2>conftest.er1
45722   ac_status=$?
45723   grep -v '^ *+' conftest.er1 >conftest.err
45724   rm -f conftest.er1
45725   cat conftest.err >&5
45726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45727   (exit $ac_status); } &&
45728          { ac_try='test -z "$ac_c_werror_flag"
45729                          || test ! -s conftest.err'
45730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45731   (eval $ac_try) 2>&5
45732   ac_status=$?
45733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45734   (exit $ac_status); }; } &&
45735          { ac_try='test -s conftest$ac_exeext'
45736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45737   (eval $ac_try) 2>&5
45738   ac_status=$?
45739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45740   (exit $ac_status); }; }; then
45741   ac_cv_func_crypt=yes
45742 else
45743   echo "$as_me: failed program was:" >&5
45744 sed 's/^/| /' conftest.$ac_ext >&5
45745
45746 ac_cv_func_crypt=no
45747 fi
45748 rm -f conftest.err conftest.$ac_objext \
45749       conftest$ac_exeext conftest.$ac_ext
45750 fi
45751 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
45752 echo "${ECHO_T}$ac_cv_func_crypt" >&6
45753 if test $ac_cv_func_crypt = yes; then
45754   have_crypt=yes
45755 else
45756
45757                 LIBS="$save_LIBS"
45758                 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
45759 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
45760 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
45761   echo $ECHO_N "(cached) $ECHO_C" >&6
45762 else
45763   ac_check_lib_save_LIBS=$LIBS
45764 LIBS="-lcrypt  $LIBS"
45765 cat >conftest.$ac_ext <<_ACEOF
45766 /* confdefs.h.  */
45767 _ACEOF
45768 cat confdefs.h >>conftest.$ac_ext
45769 cat >>conftest.$ac_ext <<_ACEOF
45770 /* end confdefs.h.  */
45771
45772 /* Override any gcc2 internal prototype to avoid an error.  */
45773 #ifdef __cplusplus
45774 extern "C"
45775 #endif
45776 /* We use char because int might match the return type of a gcc2
45777    builtin and then its argument prototype would still apply.  */
45778 char crypt ();
45779 int
45780 main ()
45781 {
45782 crypt ();
45783   ;
45784   return 0;
45785 }
45786 _ACEOF
45787 rm -f conftest.$ac_objext conftest$ac_exeext
45788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45789   (eval $ac_link) 2>conftest.er1
45790   ac_status=$?
45791   grep -v '^ *+' conftest.er1 >conftest.err
45792   rm -f conftest.er1
45793   cat conftest.err >&5
45794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45795   (exit $ac_status); } &&
45796          { ac_try='test -z "$ac_c_werror_flag"
45797                          || test ! -s conftest.err'
45798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45799   (eval $ac_try) 2>&5
45800   ac_status=$?
45801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45802   (exit $ac_status); }; } &&
45803          { ac_try='test -s conftest$ac_exeext'
45804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45805   (eval $ac_try) 2>&5
45806   ac_status=$?
45807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45808   (exit $ac_status); }; }; then
45809   ac_cv_lib_crypt_crypt=yes
45810 else
45811   echo "$as_me: failed program was:" >&5
45812 sed 's/^/| /' conftest.$ac_ext >&5
45813
45814 ac_cv_lib_crypt_crypt=no
45815 fi
45816 rm -f conftest.err conftest.$ac_objext \
45817       conftest$ac_exeext conftest.$ac_ext
45818 LIBS=$ac_check_lib_save_LIBS
45819 fi
45820 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
45821 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
45822 if test $ac_cv_lib_crypt_crypt = yes; then
45823   LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
45824                         have_crypt=yes
45825 else
45826   have_crypt=no
45827 fi
45828
45829 fi
45830
45831
45832         LIBS="$save_LIBS"
45833
45834         if test $have_crypt = yes ; then
45835
45836 cat >>confdefs.h <<\_ACEOF
45837 #define HAVE_CRYPT 1
45838 _ACEOF
45839
45840         else
45841                 { echo "$as_me:$LINENO: WARNING: could not find crypt" >&5
45842 echo "$as_me: WARNING: could not find crypt" >&2;}
45843                 if test $ol_enable_crypt = yes ; then
45844                         { { echo "$as_me:$LINENO: error: could not find crypt, select appropriate options or disable" >&5
45845 echo "$as_me: error: could not find crypt, select appropriate options or disable" >&2;}
45846    { (exit 1); exit 1; }; }
45847                 fi
45848
45849                 { echo "$as_me:$LINENO: WARNING: disabling crypt support" >&5
45850 echo "$as_me: WARNING: disabling crypt support" >&2;}
45851                 ol_enable_crypt=no
45852         fi
45853 fi
45854
45855 if test $ol_enable_proctitle != no ; then
45856         echo "$as_me:$LINENO: checking for setproctitle" >&5
45857 echo $ECHO_N "checking for setproctitle... $ECHO_C" >&6
45858 if test "${ac_cv_func_setproctitle+set}" = set; then
45859   echo $ECHO_N "(cached) $ECHO_C" >&6
45860 else
45861   cat >conftest.$ac_ext <<_ACEOF
45862 /* confdefs.h.  */
45863 _ACEOF
45864 cat confdefs.h >>conftest.$ac_ext
45865 cat >>conftest.$ac_ext <<_ACEOF
45866 /* end confdefs.h.  */
45867 /* Define setproctitle to an innocuous variant, in case <limits.h> declares setproctitle.
45868    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45869 #define setproctitle innocuous_setproctitle
45870
45871 /* System header to define __stub macros and hopefully few prototypes,
45872     which can conflict with char setproctitle (); below.
45873     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45874     <limits.h> exists even on freestanding compilers.  */
45875
45876 #ifdef __STDC__
45877 # include <limits.h>
45878 #else
45879 # include <assert.h>
45880 #endif
45881
45882 #undef setproctitle
45883
45884 /* Override any gcc2 internal prototype to avoid an error.  */
45885 #ifdef __cplusplus
45886 extern "C"
45887 {
45888 #endif
45889 /* We use char because int might match the return type of a gcc2
45890    builtin and then its argument prototype would still apply.  */
45891 char setproctitle ();
45892 /* The GNU C library defines this for functions which it implements
45893     to always fail with ENOSYS.  Some functions are actually named
45894     something starting with __ and the normal name is an alias.  */
45895 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
45896 choke me
45897 #else
45898 char (*f) () = setproctitle;
45899 #endif
45900 #ifdef __cplusplus
45901 }
45902 #endif
45903
45904 int
45905 main ()
45906 {
45907 return f != setproctitle;
45908   ;
45909   return 0;
45910 }
45911 _ACEOF
45912 rm -f conftest.$ac_objext conftest$ac_exeext
45913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45914   (eval $ac_link) 2>conftest.er1
45915   ac_status=$?
45916   grep -v '^ *+' conftest.er1 >conftest.err
45917   rm -f conftest.er1
45918   cat conftest.err >&5
45919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45920   (exit $ac_status); } &&
45921          { ac_try='test -z "$ac_c_werror_flag"
45922                          || test ! -s conftest.err'
45923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45924   (eval $ac_try) 2>&5
45925   ac_status=$?
45926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45927   (exit $ac_status); }; } &&
45928          { ac_try='test -s conftest$ac_exeext'
45929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45930   (eval $ac_try) 2>&5
45931   ac_status=$?
45932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45933   (exit $ac_status); }; }; then
45934   ac_cv_func_setproctitle=yes
45935 else
45936   echo "$as_me: failed program was:" >&5
45937 sed 's/^/| /' conftest.$ac_ext >&5
45938
45939 ac_cv_func_setproctitle=no
45940 fi
45941 rm -f conftest.err conftest.$ac_objext \
45942       conftest$ac_exeext conftest.$ac_ext
45943 fi
45944 echo "$as_me:$LINENO: result: $ac_cv_func_setproctitle" >&5
45945 echo "${ECHO_T}$ac_cv_func_setproctitle" >&6
45946 if test $ac_cv_func_setproctitle = yes; then
45947   have_setproctitle=yes
45948 else
45949
45950                 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
45951 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
45952 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
45953   echo $ECHO_N "(cached) $ECHO_C" >&6
45954 else
45955   ac_check_lib_save_LIBS=$LIBS
45956 LIBS="-lutil  $LIBS"
45957 cat >conftest.$ac_ext <<_ACEOF
45958 /* confdefs.h.  */
45959 _ACEOF
45960 cat confdefs.h >>conftest.$ac_ext
45961 cat >>conftest.$ac_ext <<_ACEOF
45962 /* end confdefs.h.  */
45963
45964 /* Override any gcc2 internal prototype to avoid an error.  */
45965 #ifdef __cplusplus
45966 extern "C"
45967 #endif
45968 /* We use char because int might match the return type of a gcc2
45969    builtin and then its argument prototype would still apply.  */
45970 char setproctitle ();
45971 int
45972 main ()
45973 {
45974 setproctitle ();
45975   ;
45976   return 0;
45977 }
45978 _ACEOF
45979 rm -f conftest.$ac_objext conftest$ac_exeext
45980 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45981   (eval $ac_link) 2>conftest.er1
45982   ac_status=$?
45983   grep -v '^ *+' conftest.er1 >conftest.err
45984   rm -f conftest.er1
45985   cat conftest.err >&5
45986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45987   (exit $ac_status); } &&
45988          { ac_try='test -z "$ac_c_werror_flag"
45989                          || test ! -s conftest.err'
45990   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45991   (eval $ac_try) 2>&5
45992   ac_status=$?
45993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45994   (exit $ac_status); }; } &&
45995          { ac_try='test -s conftest$ac_exeext'
45996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45997   (eval $ac_try) 2>&5
45998   ac_status=$?
45999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46000   (exit $ac_status); }; }; then
46001   ac_cv_lib_util_setproctitle=yes
46002 else
46003   echo "$as_me: failed program was:" >&5
46004 sed 's/^/| /' conftest.$ac_ext >&5
46005
46006 ac_cv_lib_util_setproctitle=no
46007 fi
46008 rm -f conftest.err conftest.$ac_objext \
46009       conftest$ac_exeext conftest.$ac_ext
46010 LIBS=$ac_check_lib_save_LIBS
46011 fi
46012 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
46013 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
46014 if test $ac_cv_lib_util_setproctitle = yes; then
46015   have_setproctitle=yes
46016                         LUTIL_LIBS="$LUTIL_LIBS -lutil"
46017 else
46018   have_setproctitle=no
46019                         case $LIBOBJS in
46020     "setproctitle.$ac_objext"   | \
46021   *" setproctitle.$ac_objext"   | \
46022     "setproctitle.$ac_objext "* | \
46023   *" setproctitle.$ac_objext "* ) ;;
46024   *) LIBOBJS="$LIBOBJS setproctitle.$ac_objext" ;;
46025 esac
46026
46027                         LIBSRCS="$LIBSRCS setproctitle.c"
46028 fi
46029
46030 fi
46031
46032
46033         if test $have_setproctitle = yes ; then
46034
46035 cat >>confdefs.h <<\_ACEOF
46036 #define HAVE_SETPROCTITLE 1
46037 _ACEOF
46038
46039         fi
46040 fi
46041
46042 if test $ol_enable_slp != no ; then
46043
46044 for ac_header in slp.h
46045 do
46046 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
46047 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46048   echo "$as_me:$LINENO: checking for $ac_header" >&5
46049 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46050 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46051   echo $ECHO_N "(cached) $ECHO_C" >&6
46052 fi
46053 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46054 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46055 else
46056   # Is the header compilable?
46057 echo "$as_me:$LINENO: checking $ac_header usability" >&5
46058 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
46059 cat >conftest.$ac_ext <<_ACEOF
46060 /* confdefs.h.  */
46061 _ACEOF
46062 cat confdefs.h >>conftest.$ac_ext
46063 cat >>conftest.$ac_ext <<_ACEOF
46064 /* end confdefs.h.  */
46065 $ac_includes_default
46066 #include <$ac_header>
46067 _ACEOF
46068 rm -f conftest.$ac_objext
46069 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46070   (eval $ac_compile) 2>conftest.er1
46071   ac_status=$?
46072   grep -v '^ *+' conftest.er1 >conftest.err
46073   rm -f conftest.er1
46074   cat conftest.err >&5
46075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46076   (exit $ac_status); } &&
46077          { ac_try='test -z "$ac_c_werror_flag"
46078                          || test ! -s conftest.err'
46079   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46080   (eval $ac_try) 2>&5
46081   ac_status=$?
46082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46083   (exit $ac_status); }; } &&
46084          { ac_try='test -s conftest.$ac_objext'
46085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46086   (eval $ac_try) 2>&5
46087   ac_status=$?
46088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46089   (exit $ac_status); }; }; then
46090   ac_header_compiler=yes
46091 else
46092   echo "$as_me: failed program was:" >&5
46093 sed 's/^/| /' conftest.$ac_ext >&5
46094
46095 ac_header_compiler=no
46096 fi
46097 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46098 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46099 echo "${ECHO_T}$ac_header_compiler" >&6
46100
46101 # Is the header present?
46102 echo "$as_me:$LINENO: checking $ac_header presence" >&5
46103 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
46104 cat >conftest.$ac_ext <<_ACEOF
46105 /* confdefs.h.  */
46106 _ACEOF
46107 cat confdefs.h >>conftest.$ac_ext
46108 cat >>conftest.$ac_ext <<_ACEOF
46109 /* end confdefs.h.  */
46110 #include <$ac_header>
46111 _ACEOF
46112 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
46113   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
46114   ac_status=$?
46115   grep -v '^ *+' conftest.er1 >conftest.err
46116   rm -f conftest.er1
46117   cat conftest.err >&5
46118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46119   (exit $ac_status); } >/dev/null; then
46120   if test -s conftest.err; then
46121     ac_cpp_err=$ac_c_preproc_warn_flag
46122     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
46123   else
46124     ac_cpp_err=
46125   fi
46126 else
46127   ac_cpp_err=yes
46128 fi
46129 if test -z "$ac_cpp_err"; then
46130   ac_header_preproc=yes
46131 else
46132   echo "$as_me: failed program was:" >&5
46133 sed 's/^/| /' conftest.$ac_ext >&5
46134
46135   ac_header_preproc=no
46136 fi
46137 rm -f conftest.err conftest.$ac_ext
46138 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46139 echo "${ECHO_T}$ac_header_preproc" >&6
46140
46141 # So?  What about this header?
46142 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
46143   yes:no: )
46144     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
46145 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
46146     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
46147 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
46148     ac_header_preproc=yes
46149     ;;
46150   no:yes:* )
46151     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
46152 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
46153     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
46154 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
46155     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
46156 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
46157     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
46158 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
46159     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
46160 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
46161     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
46162 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
46163     (
46164       cat <<\_ASBOX
46165 ## ------------------------------------------ ##
46166 ## Report this to the AC_PACKAGE_NAME lists.  ##
46167 ## ------------------------------------------ ##
46168 _ASBOX
46169     ) |
46170       sed "s/^/$as_me: WARNING:     /" >&2
46171     ;;
46172 esac
46173 echo "$as_me:$LINENO: checking for $ac_header" >&5
46174 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46175 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46176   echo $ECHO_N "(cached) $ECHO_C" >&6
46177 else
46178   eval "$as_ac_Header=\$ac_header_preproc"
46179 fi
46180 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46181 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46182
46183 fi
46184 if test `eval echo '${'$as_ac_Header'}'` = yes; then
46185   cat >>confdefs.h <<_ACEOF
46186 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
46187 _ACEOF
46188
46189 fi
46190
46191 done
46192
46193
46194         if test $ac_cv_header_slp_h = yes ; then
46195                 echo "$as_me:$LINENO: checking for SLPOpen in -lslp" >&5
46196 echo $ECHO_N "checking for SLPOpen in -lslp... $ECHO_C" >&6
46197 if test "${ac_cv_lib_slp_SLPOpen+set}" = set; then
46198   echo $ECHO_N "(cached) $ECHO_C" >&6
46199 else
46200   ac_check_lib_save_LIBS=$LIBS
46201 LIBS="-lslp  $LIBS"
46202 cat >conftest.$ac_ext <<_ACEOF
46203 /* confdefs.h.  */
46204 _ACEOF
46205 cat confdefs.h >>conftest.$ac_ext
46206 cat >>conftest.$ac_ext <<_ACEOF
46207 /* end confdefs.h.  */
46208
46209 /* Override any gcc2 internal prototype to avoid an error.  */
46210 #ifdef __cplusplus
46211 extern "C"
46212 #endif
46213 /* We use char because int might match the return type of a gcc2
46214    builtin and then its argument prototype would still apply.  */
46215 char SLPOpen ();
46216 int
46217 main ()
46218 {
46219 SLPOpen ();
46220   ;
46221   return 0;
46222 }
46223 _ACEOF
46224 rm -f conftest.$ac_objext conftest$ac_exeext
46225 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46226   (eval $ac_link) 2>conftest.er1
46227   ac_status=$?
46228   grep -v '^ *+' conftest.er1 >conftest.err
46229   rm -f conftest.er1
46230   cat conftest.err >&5
46231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46232   (exit $ac_status); } &&
46233          { ac_try='test -z "$ac_c_werror_flag"
46234                          || test ! -s conftest.err'
46235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46236   (eval $ac_try) 2>&5
46237   ac_status=$?
46238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46239   (exit $ac_status); }; } &&
46240          { ac_try='test -s conftest$ac_exeext'
46241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46242   (eval $ac_try) 2>&5
46243   ac_status=$?
46244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46245   (exit $ac_status); }; }; then
46246   ac_cv_lib_slp_SLPOpen=yes
46247 else
46248   echo "$as_me: failed program was:" >&5
46249 sed 's/^/| /' conftest.$ac_ext >&5
46250
46251 ac_cv_lib_slp_SLPOpen=no
46252 fi
46253 rm -f conftest.err conftest.$ac_objext \
46254       conftest$ac_exeext conftest.$ac_ext
46255 LIBS=$ac_check_lib_save_LIBS
46256 fi
46257 echo "$as_me:$LINENO: result: $ac_cv_lib_slp_SLPOpen" >&5
46258 echo "${ECHO_T}$ac_cv_lib_slp_SLPOpen" >&6
46259 if test $ac_cv_lib_slp_SLPOpen = yes; then
46260   have_slp=yes
46261 else
46262   have_slp=no
46263 fi
46264
46265                 if test $have_slp = yes ; then
46266
46267 cat >>confdefs.h <<\_ACEOF
46268 #define HAVE_SLP 1
46269 _ACEOF
46270
46271                         SLAPD_SLP_LIBS=-lslp
46272                 fi
46273
46274         elif test $ol_enable_slp = yes ; then
46275                 { { echo "$as_me:$LINENO: error: SLP not found" >&5
46276 echo "$as_me: error: SLP not found" >&2;}
46277    { (exit 1); exit 1; }; }
46278         fi
46279 fi
46280
46281 if test "$ol_with_multiple_precision" != "no" ; then
46282         ol_have_bignum=no
46283         ol_have_gmp=no
46284
46285
46286
46287 for ac_header in openssl/bn.h bn.h
46288 do
46289 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
46290 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46291   echo "$as_me:$LINENO: checking for $ac_header" >&5
46292 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46293 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46294   echo $ECHO_N "(cached) $ECHO_C" >&6
46295 fi
46296 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46297 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46298 else
46299   # Is the header compilable?
46300 echo "$as_me:$LINENO: checking $ac_header usability" >&5
46301 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
46302 cat >conftest.$ac_ext <<_ACEOF
46303 /* confdefs.h.  */
46304 _ACEOF
46305 cat confdefs.h >>conftest.$ac_ext
46306 cat >>conftest.$ac_ext <<_ACEOF
46307 /* end confdefs.h.  */
46308 $ac_includes_default
46309 #include <$ac_header>
46310 _ACEOF
46311 rm -f conftest.$ac_objext
46312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46313   (eval $ac_compile) 2>conftest.er1
46314   ac_status=$?
46315   grep -v '^ *+' conftest.er1 >conftest.err
46316   rm -f conftest.er1
46317   cat conftest.err >&5
46318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46319   (exit $ac_status); } &&
46320          { ac_try='test -z "$ac_c_werror_flag"
46321                          || test ! -s conftest.err'
46322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46323   (eval $ac_try) 2>&5
46324   ac_status=$?
46325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46326   (exit $ac_status); }; } &&
46327          { ac_try='test -s conftest.$ac_objext'
46328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46329   (eval $ac_try) 2>&5
46330   ac_status=$?
46331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46332   (exit $ac_status); }; }; then
46333   ac_header_compiler=yes
46334 else
46335   echo "$as_me: failed program was:" >&5
46336 sed 's/^/| /' conftest.$ac_ext >&5
46337
46338 ac_header_compiler=no
46339 fi
46340 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46341 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46342 echo "${ECHO_T}$ac_header_compiler" >&6
46343
46344 # Is the header present?
46345 echo "$as_me:$LINENO: checking $ac_header presence" >&5
46346 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
46347 cat >conftest.$ac_ext <<_ACEOF
46348 /* confdefs.h.  */
46349 _ACEOF
46350 cat confdefs.h >>conftest.$ac_ext
46351 cat >>conftest.$ac_ext <<_ACEOF
46352 /* end confdefs.h.  */
46353 #include <$ac_header>
46354 _ACEOF
46355 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
46356   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
46357   ac_status=$?
46358   grep -v '^ *+' conftest.er1 >conftest.err
46359   rm -f conftest.er1
46360   cat conftest.err >&5
46361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46362   (exit $ac_status); } >/dev/null; then
46363   if test -s conftest.err; then
46364     ac_cpp_err=$ac_c_preproc_warn_flag
46365     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
46366   else
46367     ac_cpp_err=
46368   fi
46369 else
46370   ac_cpp_err=yes
46371 fi
46372 if test -z "$ac_cpp_err"; then
46373   ac_header_preproc=yes
46374 else
46375   echo "$as_me: failed program was:" >&5
46376 sed 's/^/| /' conftest.$ac_ext >&5
46377
46378   ac_header_preproc=no
46379 fi
46380 rm -f conftest.err conftest.$ac_ext
46381 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46382 echo "${ECHO_T}$ac_header_preproc" >&6
46383
46384 # So?  What about this header?
46385 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
46386   yes:no: )
46387     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
46388 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
46389     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
46390 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
46391     ac_header_preproc=yes
46392     ;;
46393   no:yes:* )
46394     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
46395 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
46396     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
46397 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
46398     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
46399 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
46400     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
46401 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
46402     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
46403 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
46404     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
46405 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
46406     (
46407       cat <<\_ASBOX
46408 ## ------------------------------------------ ##
46409 ## Report this to the AC_PACKAGE_NAME lists.  ##
46410 ## ------------------------------------------ ##
46411 _ASBOX
46412     ) |
46413       sed "s/^/$as_me: WARNING:     /" >&2
46414     ;;
46415 esac
46416 echo "$as_me:$LINENO: checking for $ac_header" >&5
46417 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46418 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46419   echo $ECHO_N "(cached) $ECHO_C" >&6
46420 else
46421   eval "$as_ac_Header=\$ac_header_preproc"
46422 fi
46423 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46424 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46425
46426 fi
46427 if test `eval echo '${'$as_ac_Header'}'` = yes; then
46428   cat >>confdefs.h <<_ACEOF
46429 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
46430 _ACEOF
46431
46432 fi
46433
46434 done
46435
46436
46437
46438 for ac_header in openssl/crypto.h crypto.h
46439 do
46440 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
46441 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46442   echo "$as_me:$LINENO: checking for $ac_header" >&5
46443 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46444 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46445   echo $ECHO_N "(cached) $ECHO_C" >&6
46446 fi
46447 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46448 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46449 else
46450   # Is the header compilable?
46451 echo "$as_me:$LINENO: checking $ac_header usability" >&5
46452 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
46453 cat >conftest.$ac_ext <<_ACEOF
46454 /* confdefs.h.  */
46455 _ACEOF
46456 cat confdefs.h >>conftest.$ac_ext
46457 cat >>conftest.$ac_ext <<_ACEOF
46458 /* end confdefs.h.  */
46459 $ac_includes_default
46460 #include <$ac_header>
46461 _ACEOF
46462 rm -f conftest.$ac_objext
46463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46464   (eval $ac_compile) 2>conftest.er1
46465   ac_status=$?
46466   grep -v '^ *+' conftest.er1 >conftest.err
46467   rm -f conftest.er1
46468   cat conftest.err >&5
46469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46470   (exit $ac_status); } &&
46471          { ac_try='test -z "$ac_c_werror_flag"
46472                          || test ! -s conftest.err'
46473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46474   (eval $ac_try) 2>&5
46475   ac_status=$?
46476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46477   (exit $ac_status); }; } &&
46478          { ac_try='test -s conftest.$ac_objext'
46479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46480   (eval $ac_try) 2>&5
46481   ac_status=$?
46482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46483   (exit $ac_status); }; }; then
46484   ac_header_compiler=yes
46485 else
46486   echo "$as_me: failed program was:" >&5
46487 sed 's/^/| /' conftest.$ac_ext >&5
46488
46489 ac_header_compiler=no
46490 fi
46491 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46492 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46493 echo "${ECHO_T}$ac_header_compiler" >&6
46494
46495 # Is the header present?
46496 echo "$as_me:$LINENO: checking $ac_header presence" >&5
46497 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
46498 cat >conftest.$ac_ext <<_ACEOF
46499 /* confdefs.h.  */
46500 _ACEOF
46501 cat confdefs.h >>conftest.$ac_ext
46502 cat >>conftest.$ac_ext <<_ACEOF
46503 /* end confdefs.h.  */
46504 #include <$ac_header>
46505 _ACEOF
46506 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
46507   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
46508   ac_status=$?
46509   grep -v '^ *+' conftest.er1 >conftest.err
46510   rm -f conftest.er1
46511   cat conftest.err >&5
46512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46513   (exit $ac_status); } >/dev/null; then
46514   if test -s conftest.err; then
46515     ac_cpp_err=$ac_c_preproc_warn_flag
46516     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
46517   else
46518     ac_cpp_err=
46519   fi
46520 else
46521   ac_cpp_err=yes
46522 fi
46523 if test -z "$ac_cpp_err"; then
46524   ac_header_preproc=yes
46525 else
46526   echo "$as_me: failed program was:" >&5
46527 sed 's/^/| /' conftest.$ac_ext >&5
46528
46529   ac_header_preproc=no
46530 fi
46531 rm -f conftest.err conftest.$ac_ext
46532 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46533 echo "${ECHO_T}$ac_header_preproc" >&6
46534
46535 # So?  What about this header?
46536 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
46537   yes:no: )
46538     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
46539 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
46540     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
46541 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
46542     ac_header_preproc=yes
46543     ;;
46544   no:yes:* )
46545     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
46546 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
46547     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
46548 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
46549     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
46550 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
46551     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
46552 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
46553     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
46554 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
46555     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
46556 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
46557     (
46558       cat <<\_ASBOX
46559 ## ------------------------------------------ ##
46560 ## Report this to the AC_PACKAGE_NAME lists.  ##
46561 ## ------------------------------------------ ##
46562 _ASBOX
46563     ) |
46564       sed "s/^/$as_me: WARNING:     /" >&2
46565     ;;
46566 esac
46567 echo "$as_me:$LINENO: checking for $ac_header" >&5
46568 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46569 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46570   echo $ECHO_N "(cached) $ECHO_C" >&6
46571 else
46572   eval "$as_ac_Header=\$ac_header_preproc"
46573 fi
46574 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46575 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46576
46577 fi
46578 if test `eval echo '${'$as_ac_Header'}'` = yes; then
46579   cat >>confdefs.h <<_ACEOF
46580 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
46581 _ACEOF
46582
46583 fi
46584
46585 done
46586
46587
46588 for ac_header in gmp.h
46589 do
46590 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
46591 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46592   echo "$as_me:$LINENO: checking for $ac_header" >&5
46593 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46594 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46595   echo $ECHO_N "(cached) $ECHO_C" >&6
46596 fi
46597 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46598 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46599 else
46600   # Is the header compilable?
46601 echo "$as_me:$LINENO: checking $ac_header usability" >&5
46602 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
46603 cat >conftest.$ac_ext <<_ACEOF
46604 /* confdefs.h.  */
46605 _ACEOF
46606 cat confdefs.h >>conftest.$ac_ext
46607 cat >>conftest.$ac_ext <<_ACEOF
46608 /* end confdefs.h.  */
46609 $ac_includes_default
46610 #include <$ac_header>
46611 _ACEOF
46612 rm -f conftest.$ac_objext
46613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46614   (eval $ac_compile) 2>conftest.er1
46615   ac_status=$?
46616   grep -v '^ *+' conftest.er1 >conftest.err
46617   rm -f conftest.er1
46618   cat conftest.err >&5
46619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46620   (exit $ac_status); } &&
46621          { ac_try='test -z "$ac_c_werror_flag"
46622                          || test ! -s conftest.err'
46623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46624   (eval $ac_try) 2>&5
46625   ac_status=$?
46626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46627   (exit $ac_status); }; } &&
46628          { ac_try='test -s conftest.$ac_objext'
46629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46630   (eval $ac_try) 2>&5
46631   ac_status=$?
46632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46633   (exit $ac_status); }; }; then
46634   ac_header_compiler=yes
46635 else
46636   echo "$as_me: failed program was:" >&5
46637 sed 's/^/| /' conftest.$ac_ext >&5
46638
46639 ac_header_compiler=no
46640 fi
46641 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46642 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46643 echo "${ECHO_T}$ac_header_compiler" >&6
46644
46645 # Is the header present?
46646 echo "$as_me:$LINENO: checking $ac_header presence" >&5
46647 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
46648 cat >conftest.$ac_ext <<_ACEOF
46649 /* confdefs.h.  */
46650 _ACEOF
46651 cat confdefs.h >>conftest.$ac_ext
46652 cat >>conftest.$ac_ext <<_ACEOF
46653 /* end confdefs.h.  */
46654 #include <$ac_header>
46655 _ACEOF
46656 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
46657   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
46658   ac_status=$?
46659   grep -v '^ *+' conftest.er1 >conftest.err
46660   rm -f conftest.er1
46661   cat conftest.err >&5
46662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46663   (exit $ac_status); } >/dev/null; then
46664   if test -s conftest.err; then
46665     ac_cpp_err=$ac_c_preproc_warn_flag
46666     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
46667   else
46668     ac_cpp_err=
46669   fi
46670 else
46671   ac_cpp_err=yes
46672 fi
46673 if test -z "$ac_cpp_err"; then
46674   ac_header_preproc=yes
46675 else
46676   echo "$as_me: failed program was:" >&5
46677 sed 's/^/| /' conftest.$ac_ext >&5
46678
46679   ac_header_preproc=no
46680 fi
46681 rm -f conftest.err conftest.$ac_ext
46682 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46683 echo "${ECHO_T}$ac_header_preproc" >&6
46684
46685 # So?  What about this header?
46686 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
46687   yes:no: )
46688     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
46689 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
46690     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
46691 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
46692     ac_header_preproc=yes
46693     ;;
46694   no:yes:* )
46695     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
46696 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
46697     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
46698 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
46699     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
46700 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
46701     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
46702 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
46703     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
46704 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
46705     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
46706 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
46707     (
46708       cat <<\_ASBOX
46709 ## ------------------------------------------ ##
46710 ## Report this to the AC_PACKAGE_NAME lists.  ##
46711 ## ------------------------------------------ ##
46712 _ASBOX
46713     ) |
46714       sed "s/^/$as_me: WARNING:     /" >&2
46715     ;;
46716 esac
46717 echo "$as_me:$LINENO: checking for $ac_header" >&5
46718 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46719 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46720   echo $ECHO_N "(cached) $ECHO_C" >&6
46721 else
46722   eval "$as_ac_Header=\$ac_header_preproc"
46723 fi
46724 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46725 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46726
46727 fi
46728 if test `eval echo '${'$as_ac_Header'}'` = yes; then
46729   cat >>confdefs.h <<_ACEOF
46730 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
46731 _ACEOF
46732
46733 fi
46734
46735 done
46736
46737
46738         if test "$ol_with_tls" = "found" ; then
46739                 ol_have_bn_h=no
46740                 ol_have_crypto_h=no
46741
46742                 if test "$ac_cv_header_openssl_bn_h" = "yes" \
46743                                 -o "$ac_cv_header_bn_h" = "yes" ; then
46744                         ol_have_bn_h=yes
46745                 fi
46746
46747                 if test "$ac_cv_header_openssl_crypto_h" = "yes" \
46748                                 -o "$ac_cv_header_crypto_h" = "yes" ; then
46749                         ol_have_crypto_h=yes
46750                 fi
46751
46752                 if test "$ol_have_bn_h" = "yes" \
46753                                 -a "$ol_have_crypto_h" = "yes" ; then
46754                         ol_have_bignum=yes
46755                 fi
46756         fi
46757
46758         if test $ac_cv_header_gmp_h = yes ; then
46759                 echo "$as_me:$LINENO: checking for __gmpz_add_ui in -lgmp" >&5
46760 echo $ECHO_N "checking for __gmpz_add_ui in -lgmp... $ECHO_C" >&6
46761 if test "${ac_cv_lib_gmp___gmpz_add_ui+set}" = set; then
46762   echo $ECHO_N "(cached) $ECHO_C" >&6
46763 else
46764   ac_check_lib_save_LIBS=$LIBS
46765 LIBS="-lgmp  $LIBS"
46766 cat >conftest.$ac_ext <<_ACEOF
46767 /* confdefs.h.  */
46768 _ACEOF
46769 cat confdefs.h >>conftest.$ac_ext
46770 cat >>conftest.$ac_ext <<_ACEOF
46771 /* end confdefs.h.  */
46772
46773 /* Override any gcc2 internal prototype to avoid an error.  */
46774 #ifdef __cplusplus
46775 extern "C"
46776 #endif
46777 /* We use char because int might match the return type of a gcc2
46778    builtin and then its argument prototype would still apply.  */
46779 char __gmpz_add_ui ();
46780 int
46781 main ()
46782 {
46783 __gmpz_add_ui ();
46784   ;
46785   return 0;
46786 }
46787 _ACEOF
46788 rm -f conftest.$ac_objext conftest$ac_exeext
46789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46790   (eval $ac_link) 2>conftest.er1
46791   ac_status=$?
46792   grep -v '^ *+' conftest.er1 >conftest.err
46793   rm -f conftest.er1
46794   cat conftest.err >&5
46795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46796   (exit $ac_status); } &&
46797          { ac_try='test -z "$ac_c_werror_flag"
46798                          || test ! -s conftest.err'
46799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46800   (eval $ac_try) 2>&5
46801   ac_status=$?
46802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46803   (exit $ac_status); }; } &&
46804          { ac_try='test -s conftest$ac_exeext'
46805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46806   (eval $ac_try) 2>&5
46807   ac_status=$?
46808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46809   (exit $ac_status); }; }; then
46810   ac_cv_lib_gmp___gmpz_add_ui=yes
46811 else
46812   echo "$as_me: failed program was:" >&5
46813 sed 's/^/| /' conftest.$ac_ext >&5
46814
46815 ac_cv_lib_gmp___gmpz_add_ui=no
46816 fi
46817 rm -f conftest.err conftest.$ac_objext \
46818       conftest$ac_exeext conftest.$ac_ext
46819 LIBS=$ac_check_lib_save_LIBS
46820 fi
46821 echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmpz_add_ui" >&5
46822 echo "${ECHO_T}$ac_cv_lib_gmp___gmpz_add_ui" >&6
46823 if test $ac_cv_lib_gmp___gmpz_add_ui = yes; then
46824   have_gmp=yes
46825 else
46826   have_gmp=no
46827 fi
46828
46829                 if test $have_gmp = yes ; then
46830                         ol_have_gmp=yes
46831                 fi
46832         fi
46833
46834         echo "$as_me:$LINENO: checking for multiple precision support" >&5
46835 echo $ECHO_N "checking for multiple precision support... $ECHO_C" >&6
46836
46837         ol_mp_support="none"
46838         case "$ol_with_multiple_precision" in
46839         auto)
46840                                                                                 if test "$ol_have_bignum" = "yes" ; then
46841                         ol_mp_support="bignum"
46842                 else
46843                         if test "$ol_have_gmp" = "yes" ; then
46844                                 ol_mp_support="gmp"
46845                         fi
46846                 fi
46847                 ;;
46848         bignum)
46849                 if test "$ol_have_bignum" != "yes" ; then
46850                         { { echo "$as_me:$LINENO: error: OpenSSL's BIGNUM not available" >&5
46851 echo "$as_me: error: OpenSSL's BIGNUM not available" >&2;}
46852    { (exit 1); exit 1; }; }
46853                 fi
46854                 ol_mp_support="bignum"
46855                 ;;
46856         gmp)
46857                 if test "$ol_have_gmp" != "yes" ; then
46858                         { { echo "$as_me:$LINENO: error: GMP not available" >&5
46859 echo "$as_me: error: GMP not available" >&2;}
46860    { (exit 1); exit 1; }; }
46861                 fi
46862                 ol_mp_support="gmp"
46863                 ;;
46864         yes)
46865                 if test "$ol_have_bignum" = "yes" ; then
46866                         ol_mp_support="bignum"
46867                 elif test "$ol_have_gmp" = "yes" ; then
46868                         ol_mp_support="gmp"
46869                 else
46870                         { { echo "$as_me:$LINENO: error: not available" >&5
46871 echo "$as_me: error: not available" >&2;}
46872    { (exit 1); exit 1; }; }
46873                 fi
46874                 ;;
46875         esac
46876
46877         case "$ol_mp_support" in
46878         bignum)
46879
46880 cat >>confdefs.h <<\_ACEOF
46881 #define HAVE_BIGNUM 1
46882 _ACEOF
46883
46884                 ;;
46885         gmp)
46886
46887 cat >>confdefs.h <<\_ACEOF
46888 #define HAVE_GMP 1
46889 _ACEOF
46890
46891                 SLAPD_GMP_LIBS=-lgmp
46892                 ;;
46893         none)
46894                 ;;
46895         esac
46896
46897         echo "$as_me:$LINENO: result: $ol_mp_support" >&5
46898 echo "${ECHO_T}$ol_mp_support" >&6
46899 fi
46900
46901
46902 echo "$as_me:$LINENO: checking long long" >&5
46903 echo $ECHO_N "checking long long... $ECHO_C" >&6
46904 if test "${ol_cv_type_long_long+set}" = set; then
46905   echo $ECHO_N "(cached) $ECHO_C" >&6
46906 else
46907
46908         cat >conftest.$ac_ext <<_ACEOF
46909 /* confdefs.h.  */
46910 _ACEOF
46911 cat confdefs.h >>conftest.$ac_ext
46912 cat >>conftest.$ac_ext <<_ACEOF
46913 /* end confdefs.h.  */
46914
46915 int
46916 main ()
46917 {
46918 long long x;
46919   ;
46920   return 0;
46921 }
46922 _ACEOF
46923 rm -f conftest.$ac_objext
46924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46925   (eval $ac_compile) 2>conftest.er1
46926   ac_status=$?
46927   grep -v '^ *+' conftest.er1 >conftest.err
46928   rm -f conftest.er1
46929   cat conftest.err >&5
46930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46931   (exit $ac_status); } &&
46932          { ac_try='test -z "$ac_c_werror_flag"
46933                          || test ! -s conftest.err'
46934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46935   (eval $ac_try) 2>&5
46936   ac_status=$?
46937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46938   (exit $ac_status); }; } &&
46939          { ac_try='test -s conftest.$ac_objext'
46940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46941   (eval $ac_try) 2>&5
46942   ac_status=$?
46943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46944   (exit $ac_status); }; }; then
46945   ol_cv_type_long_long=yes
46946 else
46947   echo "$as_me: failed program was:" >&5
46948 sed 's/^/| /' conftest.$ac_ext >&5
46949
46950 ol_cv_type_long_long=no
46951 fi
46952 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46953 fi
46954 echo "$as_me:$LINENO: result: $ol_cv_type_long_long" >&5
46955 echo "${ECHO_T}$ol_cv_type_long_long" >&6
46956 if test $ol_cv_type_long_long = yes; then
46957
46958 cat >>confdefs.h <<\_ACEOF
46959 #define HAVE_LONG_LONG 1
46960 _ACEOF
46961
46962 fi
46963
46964 echo "$as_me:$LINENO: checking for mode_t" >&5
46965 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
46966 if test "${ac_cv_type_mode_t+set}" = set; then
46967   echo $ECHO_N "(cached) $ECHO_C" >&6
46968 else
46969   cat >conftest.$ac_ext <<_ACEOF
46970 /* confdefs.h.  */
46971 _ACEOF
46972 cat confdefs.h >>conftest.$ac_ext
46973 cat >>conftest.$ac_ext <<_ACEOF
46974 /* end confdefs.h.  */
46975 $ac_includes_default
46976 int
46977 main ()
46978 {
46979 if ((mode_t *) 0)
46980   return 0;
46981 if (sizeof (mode_t))
46982   return 0;
46983   ;
46984   return 0;
46985 }
46986 _ACEOF
46987 rm -f conftest.$ac_objext
46988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46989   (eval $ac_compile) 2>conftest.er1
46990   ac_status=$?
46991   grep -v '^ *+' conftest.er1 >conftest.err
46992   rm -f conftest.er1
46993   cat conftest.err >&5
46994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46995   (exit $ac_status); } &&
46996          { ac_try='test -z "$ac_c_werror_flag"
46997                          || test ! -s conftest.err'
46998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46999   (eval $ac_try) 2>&5
47000   ac_status=$?
47001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47002   (exit $ac_status); }; } &&
47003          { ac_try='test -s conftest.$ac_objext'
47004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47005   (eval $ac_try) 2>&5
47006   ac_status=$?
47007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47008   (exit $ac_status); }; }; then
47009   ac_cv_type_mode_t=yes
47010 else
47011   echo "$as_me: failed program was:" >&5
47012 sed 's/^/| /' conftest.$ac_ext >&5
47013
47014 ac_cv_type_mode_t=no
47015 fi
47016 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47017 fi
47018 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
47019 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
47020 if test $ac_cv_type_mode_t = yes; then
47021   :
47022 else
47023
47024 cat >>confdefs.h <<_ACEOF
47025 #define mode_t int
47026 _ACEOF
47027
47028 fi
47029
47030 echo "$as_me:$LINENO: checking for off_t" >&5
47031 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
47032 if test "${ac_cv_type_off_t+set}" = set; then
47033   echo $ECHO_N "(cached) $ECHO_C" >&6
47034 else
47035   cat >conftest.$ac_ext <<_ACEOF
47036 /* confdefs.h.  */
47037 _ACEOF
47038 cat confdefs.h >>conftest.$ac_ext
47039 cat >>conftest.$ac_ext <<_ACEOF
47040 /* end confdefs.h.  */
47041 $ac_includes_default
47042 int
47043 main ()
47044 {
47045 if ((off_t *) 0)
47046   return 0;
47047 if (sizeof (off_t))
47048   return 0;
47049   ;
47050   return 0;
47051 }
47052 _ACEOF
47053 rm -f conftest.$ac_objext
47054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47055   (eval $ac_compile) 2>conftest.er1
47056   ac_status=$?
47057   grep -v '^ *+' conftest.er1 >conftest.err
47058   rm -f conftest.er1
47059   cat conftest.err >&5
47060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47061   (exit $ac_status); } &&
47062          { ac_try='test -z "$ac_c_werror_flag"
47063                          || test ! -s conftest.err'
47064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47065   (eval $ac_try) 2>&5
47066   ac_status=$?
47067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47068   (exit $ac_status); }; } &&
47069          { ac_try='test -s conftest.$ac_objext'
47070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47071   (eval $ac_try) 2>&5
47072   ac_status=$?
47073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47074   (exit $ac_status); }; }; then
47075   ac_cv_type_off_t=yes
47076 else
47077   echo "$as_me: failed program was:" >&5
47078 sed 's/^/| /' conftest.$ac_ext >&5
47079
47080 ac_cv_type_off_t=no
47081 fi
47082 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47083 fi
47084 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
47085 echo "${ECHO_T}$ac_cv_type_off_t" >&6
47086 if test $ac_cv_type_off_t = yes; then
47087   :
47088 else
47089
47090 cat >>confdefs.h <<_ACEOF
47091 #define off_t long
47092 _ACEOF
47093
47094 fi
47095
47096 echo "$as_me:$LINENO: checking for pid_t" >&5
47097 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
47098 if test "${ac_cv_type_pid_t+set}" = set; then
47099   echo $ECHO_N "(cached) $ECHO_C" >&6
47100 else
47101   cat >conftest.$ac_ext <<_ACEOF
47102 /* confdefs.h.  */
47103 _ACEOF
47104 cat confdefs.h >>conftest.$ac_ext
47105 cat >>conftest.$ac_ext <<_ACEOF
47106 /* end confdefs.h.  */
47107 $ac_includes_default
47108 int
47109 main ()
47110 {
47111 if ((pid_t *) 0)
47112   return 0;
47113 if (sizeof (pid_t))
47114   return 0;
47115   ;
47116   return 0;
47117 }
47118 _ACEOF
47119 rm -f conftest.$ac_objext
47120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47121   (eval $ac_compile) 2>conftest.er1
47122   ac_status=$?
47123   grep -v '^ *+' conftest.er1 >conftest.err
47124   rm -f conftest.er1
47125   cat conftest.err >&5
47126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47127   (exit $ac_status); } &&
47128          { ac_try='test -z "$ac_c_werror_flag"
47129                          || test ! -s conftest.err'
47130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47131   (eval $ac_try) 2>&5
47132   ac_status=$?
47133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47134   (exit $ac_status); }; } &&
47135          { ac_try='test -s conftest.$ac_objext'
47136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47137   (eval $ac_try) 2>&5
47138   ac_status=$?
47139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47140   (exit $ac_status); }; }; then
47141   ac_cv_type_pid_t=yes
47142 else
47143   echo "$as_me: failed program was:" >&5
47144 sed 's/^/| /' conftest.$ac_ext >&5
47145
47146 ac_cv_type_pid_t=no
47147 fi
47148 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47149 fi
47150 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
47151 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
47152 if test $ac_cv_type_pid_t = yes; then
47153   :
47154 else
47155
47156 cat >>confdefs.h <<_ACEOF
47157 #define pid_t int
47158 _ACEOF
47159
47160 fi
47161
47162 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
47163 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
47164 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
47165   echo $ECHO_N "(cached) $ECHO_C" >&6
47166 else
47167   cat >conftest.$ac_ext <<_ACEOF
47168 /* confdefs.h.  */
47169 _ACEOF
47170 cat confdefs.h >>conftest.$ac_ext
47171 cat >>conftest.$ac_ext <<_ACEOF
47172 /* end confdefs.h.  */
47173 $ac_includes_default
47174 int
47175 main ()
47176 {
47177 if ((ptrdiff_t *) 0)
47178   return 0;
47179 if (sizeof (ptrdiff_t))
47180   return 0;
47181   ;
47182   return 0;
47183 }
47184 _ACEOF
47185 rm -f conftest.$ac_objext
47186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47187   (eval $ac_compile) 2>conftest.er1
47188   ac_status=$?
47189   grep -v '^ *+' conftest.er1 >conftest.err
47190   rm -f conftest.er1
47191   cat conftest.err >&5
47192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47193   (exit $ac_status); } &&
47194          { ac_try='test -z "$ac_c_werror_flag"
47195                          || test ! -s conftest.err'
47196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47197   (eval $ac_try) 2>&5
47198   ac_status=$?
47199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47200   (exit $ac_status); }; } &&
47201          { ac_try='test -s conftest.$ac_objext'
47202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47203   (eval $ac_try) 2>&5
47204   ac_status=$?
47205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47206   (exit $ac_status); }; }; then
47207   ac_cv_type_ptrdiff_t=yes
47208 else
47209   echo "$as_me: failed program was:" >&5
47210 sed 's/^/| /' conftest.$ac_ext >&5
47211
47212 ac_cv_type_ptrdiff_t=no
47213 fi
47214 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47215 fi
47216 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
47217 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
47218 if test $ac_cv_type_ptrdiff_t = yes; then
47219
47220 cat >>confdefs.h <<_ACEOF
47221 #define HAVE_PTRDIFF_T 1
47222 _ACEOF
47223
47224
47225 fi
47226
47227 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
47228 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
47229 if test "${ac_cv_type_signal+set}" = set; then
47230   echo $ECHO_N "(cached) $ECHO_C" >&6
47231 else
47232   cat >conftest.$ac_ext <<_ACEOF
47233 /* confdefs.h.  */
47234 _ACEOF
47235 cat confdefs.h >>conftest.$ac_ext
47236 cat >>conftest.$ac_ext <<_ACEOF
47237 /* end confdefs.h.  */
47238 #include <sys/types.h>
47239 #include <signal.h>
47240 #ifdef signal
47241 # undef signal
47242 #endif
47243 #ifdef __cplusplus
47244 extern "C" void (*signal (int, void (*)(int)))(int);
47245 #else
47246 void (*signal ()) ();
47247 #endif
47248
47249 int
47250 main ()
47251 {
47252 int i;
47253   ;
47254   return 0;
47255 }
47256 _ACEOF
47257 rm -f conftest.$ac_objext
47258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47259   (eval $ac_compile) 2>conftest.er1
47260   ac_status=$?
47261   grep -v '^ *+' conftest.er1 >conftest.err
47262   rm -f conftest.er1
47263   cat conftest.err >&5
47264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47265   (exit $ac_status); } &&
47266          { ac_try='test -z "$ac_c_werror_flag"
47267                          || test ! -s conftest.err'
47268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47269   (eval $ac_try) 2>&5
47270   ac_status=$?
47271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47272   (exit $ac_status); }; } &&
47273          { ac_try='test -s conftest.$ac_objext'
47274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47275   (eval $ac_try) 2>&5
47276   ac_status=$?
47277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47278   (exit $ac_status); }; }; then
47279   ac_cv_type_signal=void
47280 else
47281   echo "$as_me: failed program was:" >&5
47282 sed 's/^/| /' conftest.$ac_ext >&5
47283
47284 ac_cv_type_signal=int
47285 fi
47286 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47287 fi
47288 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
47289 echo "${ECHO_T}$ac_cv_type_signal" >&6
47290
47291 cat >>confdefs.h <<_ACEOF
47292 #define RETSIGTYPE $ac_cv_type_signal
47293 _ACEOF
47294
47295
47296 echo "$as_me:$LINENO: checking for size_t" >&5
47297 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
47298 if test "${ac_cv_type_size_t+set}" = set; then
47299   echo $ECHO_N "(cached) $ECHO_C" >&6
47300 else
47301   cat >conftest.$ac_ext <<_ACEOF
47302 /* confdefs.h.  */
47303 _ACEOF
47304 cat confdefs.h >>conftest.$ac_ext
47305 cat >>conftest.$ac_ext <<_ACEOF
47306 /* end confdefs.h.  */
47307 $ac_includes_default
47308 int
47309 main ()
47310 {
47311 if ((size_t *) 0)
47312   return 0;
47313 if (sizeof (size_t))
47314   return 0;
47315   ;
47316   return 0;
47317 }
47318 _ACEOF
47319 rm -f conftest.$ac_objext
47320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47321   (eval $ac_compile) 2>conftest.er1
47322   ac_status=$?
47323   grep -v '^ *+' conftest.er1 >conftest.err
47324   rm -f conftest.er1
47325   cat conftest.err >&5
47326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47327   (exit $ac_status); } &&
47328          { ac_try='test -z "$ac_c_werror_flag"
47329                          || test ! -s conftest.err'
47330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47331   (eval $ac_try) 2>&5
47332   ac_status=$?
47333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47334   (exit $ac_status); }; } &&
47335          { ac_try='test -s conftest.$ac_objext'
47336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47337   (eval $ac_try) 2>&5
47338   ac_status=$?
47339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47340   (exit $ac_status); }; }; then
47341   ac_cv_type_size_t=yes
47342 else
47343   echo "$as_me: failed program was:" >&5
47344 sed 's/^/| /' conftest.$ac_ext >&5
47345
47346 ac_cv_type_size_t=no
47347 fi
47348 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47349 fi
47350 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
47351 echo "${ECHO_T}$ac_cv_type_size_t" >&6
47352 if test $ac_cv_type_size_t = yes; then
47353   :
47354 else
47355
47356 cat >>confdefs.h <<_ACEOF
47357 #define size_t unsigned
47358 _ACEOF
47359
47360 fi
47361
47362
47363 echo "$as_me:$LINENO: checking for ssize_t" >&5
47364 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
47365 if test "${ac_cv_type_ssize_t+set}" = set; then
47366   echo $ECHO_N "(cached) $ECHO_C" >&6
47367 else
47368   cat >conftest.$ac_ext <<_ACEOF
47369 /* confdefs.h.  */
47370 _ACEOF
47371 cat confdefs.h >>conftest.$ac_ext
47372 cat >>conftest.$ac_ext <<_ACEOF
47373 /* end confdefs.h.  */
47374 $ac_includes_default
47375 int
47376 main ()
47377 {
47378 if ((ssize_t *) 0)
47379   return 0;
47380 if (sizeof (ssize_t))
47381   return 0;
47382   ;
47383   return 0;
47384 }
47385 _ACEOF
47386 rm -f conftest.$ac_objext
47387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47388   (eval $ac_compile) 2>conftest.er1
47389   ac_status=$?
47390   grep -v '^ *+' conftest.er1 >conftest.err
47391   rm -f conftest.er1
47392   cat conftest.err >&5
47393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47394   (exit $ac_status); } &&
47395          { ac_try='test -z "$ac_c_werror_flag"
47396                          || test ! -s conftest.err'
47397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47398   (eval $ac_try) 2>&5
47399   ac_status=$?
47400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47401   (exit $ac_status); }; } &&
47402          { ac_try='test -s conftest.$ac_objext'
47403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47404   (eval $ac_try) 2>&5
47405   ac_status=$?
47406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47407   (exit $ac_status); }; }; then
47408   ac_cv_type_ssize_t=yes
47409 else
47410   echo "$as_me: failed program was:" >&5
47411 sed 's/^/| /' conftest.$ac_ext >&5
47412
47413 ac_cv_type_ssize_t=no
47414 fi
47415 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47416 fi
47417 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
47418 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
47419 if test $ac_cv_type_ssize_t = yes; then
47420   :
47421 else
47422
47423 cat >>confdefs.h <<_ACEOF
47424 #define ssize_t signed int
47425 _ACEOF
47426
47427 fi
47428
47429 echo "$as_me:$LINENO: checking for caddr_t" >&5
47430 echo $ECHO_N "checking for caddr_t... $ECHO_C" >&6
47431 if test "${ac_cv_type_caddr_t+set}" = set; then
47432   echo $ECHO_N "(cached) $ECHO_C" >&6
47433 else
47434   cat >conftest.$ac_ext <<_ACEOF
47435 /* confdefs.h.  */
47436 _ACEOF
47437 cat confdefs.h >>conftest.$ac_ext
47438 cat >>conftest.$ac_ext <<_ACEOF
47439 /* end confdefs.h.  */
47440 $ac_includes_default
47441 int
47442 main ()
47443 {
47444 if ((caddr_t *) 0)
47445   return 0;
47446 if (sizeof (caddr_t))
47447   return 0;
47448   ;
47449   return 0;
47450 }
47451 _ACEOF
47452 rm -f conftest.$ac_objext
47453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47454   (eval $ac_compile) 2>conftest.er1
47455   ac_status=$?
47456   grep -v '^ *+' conftest.er1 >conftest.err
47457   rm -f conftest.er1
47458   cat conftest.err >&5
47459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47460   (exit $ac_status); } &&
47461          { ac_try='test -z "$ac_c_werror_flag"
47462                          || test ! -s conftest.err'
47463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47464   (eval $ac_try) 2>&5
47465   ac_status=$?
47466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47467   (exit $ac_status); }; } &&
47468          { ac_try='test -s conftest.$ac_objext'
47469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47470   (eval $ac_try) 2>&5
47471   ac_status=$?
47472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47473   (exit $ac_status); }; }; then
47474   ac_cv_type_caddr_t=yes
47475 else
47476   echo "$as_me: failed program was:" >&5
47477 sed 's/^/| /' conftest.$ac_ext >&5
47478
47479 ac_cv_type_caddr_t=no
47480 fi
47481 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47482 fi
47483 echo "$as_me:$LINENO: result: $ac_cv_type_caddr_t" >&5
47484 echo "${ECHO_T}$ac_cv_type_caddr_t" >&6
47485 if test $ac_cv_type_caddr_t = yes; then
47486   :
47487 else
47488
47489 cat >>confdefs.h <<_ACEOF
47490 #define caddr_t char *
47491 _ACEOF
47492
47493 fi
47494
47495
47496 echo "$as_me:$LINENO: checking for socklen_t" >&5
47497 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
47498 if test "${ol_cv_type_socklen_t+set}" = set; then
47499   echo $ECHO_N "(cached) $ECHO_C" >&6
47500 else
47501   cat >conftest.$ac_ext <<_ACEOF
47502 /* confdefs.h.  */
47503 _ACEOF
47504 cat confdefs.h >>conftest.$ac_ext
47505 cat >>conftest.$ac_ext <<_ACEOF
47506 /* end confdefs.h.  */
47507
47508 #ifdef HAVE_SYS_TYPES_H
47509 #include <sys/types.h>
47510 #endif
47511 #ifdef HAVE_SYS_SOCKET_H
47512 #include <sys/socket.h>
47513 #endif
47514
47515 int
47516 main ()
47517 {
47518 socklen_t len;
47519   ;
47520   return 0;
47521 }
47522 _ACEOF
47523 rm -f conftest.$ac_objext
47524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47525   (eval $ac_compile) 2>conftest.er1
47526   ac_status=$?
47527   grep -v '^ *+' conftest.er1 >conftest.err
47528   rm -f conftest.er1
47529   cat conftest.err >&5
47530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47531   (exit $ac_status); } &&
47532          { ac_try='test -z "$ac_c_werror_flag"
47533                          || test ! -s conftest.err'
47534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47535   (eval $ac_try) 2>&5
47536   ac_status=$?
47537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47538   (exit $ac_status); }; } &&
47539          { ac_try='test -s conftest.$ac_objext'
47540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47541   (eval $ac_try) 2>&5
47542   ac_status=$?
47543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47544   (exit $ac_status); }; }; then
47545   ol_cv_type_socklen_t=yes
47546 else
47547   echo "$as_me: failed program was:" >&5
47548 sed 's/^/| /' conftest.$ac_ext >&5
47549
47550 ol_cv_type_socklen_t=no
47551 fi
47552 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47553 fi
47554 echo "$as_me:$LINENO: result: $ol_cv_type_socklen_t" >&5
47555 echo "${ECHO_T}$ol_cv_type_socklen_t" >&6
47556   if test $ol_cv_type_socklen_t = no; then
47557
47558 cat >>confdefs.h <<\_ACEOF
47559 #define socklen_t int
47560 _ACEOF
47561
47562   fi
47563
47564 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
47565 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
47566 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
47567   echo $ECHO_N "(cached) $ECHO_C" >&6
47568 else
47569   cat >conftest.$ac_ext <<_ACEOF
47570 /* confdefs.h.  */
47571 _ACEOF
47572 cat confdefs.h >>conftest.$ac_ext
47573 cat >>conftest.$ac_ext <<_ACEOF
47574 /* end confdefs.h.  */
47575 $ac_includes_default
47576 int
47577 main ()
47578 {
47579 static struct stat ac_aggr;
47580 if (ac_aggr.st_blksize)
47581 return 0;
47582   ;
47583   return 0;
47584 }
47585 _ACEOF
47586 rm -f conftest.$ac_objext
47587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47588   (eval $ac_compile) 2>conftest.er1
47589   ac_status=$?
47590   grep -v '^ *+' conftest.er1 >conftest.err
47591   rm -f conftest.er1
47592   cat conftest.err >&5
47593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47594   (exit $ac_status); } &&
47595          { ac_try='test -z "$ac_c_werror_flag"
47596                          || test ! -s conftest.err'
47597   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47598   (eval $ac_try) 2>&5
47599   ac_status=$?
47600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47601   (exit $ac_status); }; } &&
47602          { ac_try='test -s conftest.$ac_objext'
47603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47604   (eval $ac_try) 2>&5
47605   ac_status=$?
47606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47607   (exit $ac_status); }; }; then
47608   ac_cv_member_struct_stat_st_blksize=yes
47609 else
47610   echo "$as_me: failed program was:" >&5
47611 sed 's/^/| /' conftest.$ac_ext >&5
47612
47613 cat >conftest.$ac_ext <<_ACEOF
47614 /* confdefs.h.  */
47615 _ACEOF
47616 cat confdefs.h >>conftest.$ac_ext
47617 cat >>conftest.$ac_ext <<_ACEOF
47618 /* end confdefs.h.  */
47619 $ac_includes_default
47620 int
47621 main ()
47622 {
47623 static struct stat ac_aggr;
47624 if (sizeof ac_aggr.st_blksize)
47625 return 0;
47626   ;
47627   return 0;
47628 }
47629 _ACEOF
47630 rm -f conftest.$ac_objext
47631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47632   (eval $ac_compile) 2>conftest.er1
47633   ac_status=$?
47634   grep -v '^ *+' conftest.er1 >conftest.err
47635   rm -f conftest.er1
47636   cat conftest.err >&5
47637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47638   (exit $ac_status); } &&
47639          { ac_try='test -z "$ac_c_werror_flag"
47640                          || test ! -s conftest.err'
47641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47642   (eval $ac_try) 2>&5
47643   ac_status=$?
47644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47645   (exit $ac_status); }; } &&
47646          { ac_try='test -s conftest.$ac_objext'
47647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47648   (eval $ac_try) 2>&5
47649   ac_status=$?
47650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47651   (exit $ac_status); }; }; then
47652   ac_cv_member_struct_stat_st_blksize=yes
47653 else
47654   echo "$as_me: failed program was:" >&5
47655 sed 's/^/| /' conftest.$ac_ext >&5
47656
47657 ac_cv_member_struct_stat_st_blksize=no
47658 fi
47659 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47660 fi
47661 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47662 fi
47663 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
47664 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
47665 if test $ac_cv_member_struct_stat_st_blksize = yes; then
47666
47667 cat >>confdefs.h <<_ACEOF
47668 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
47669 _ACEOF
47670
47671
47672 fi
47673
47674 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
47675 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
47676 if test "${ac_cv_header_time+set}" = set; then
47677   echo $ECHO_N "(cached) $ECHO_C" >&6
47678 else
47679   cat >conftest.$ac_ext <<_ACEOF
47680 /* confdefs.h.  */
47681 _ACEOF
47682 cat confdefs.h >>conftest.$ac_ext
47683 cat >>conftest.$ac_ext <<_ACEOF
47684 /* end confdefs.h.  */
47685 #include <sys/types.h>
47686 #include <sys/time.h>
47687 #include <time.h>
47688
47689 int
47690 main ()
47691 {
47692 if ((struct tm *) 0)
47693 return 0;
47694   ;
47695   return 0;
47696 }
47697 _ACEOF
47698 rm -f conftest.$ac_objext
47699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47700   (eval $ac_compile) 2>conftest.er1
47701   ac_status=$?
47702   grep -v '^ *+' conftest.er1 >conftest.err
47703   rm -f conftest.er1
47704   cat conftest.err >&5
47705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47706   (exit $ac_status); } &&
47707          { ac_try='test -z "$ac_c_werror_flag"
47708                          || test ! -s conftest.err'
47709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47710   (eval $ac_try) 2>&5
47711   ac_status=$?
47712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47713   (exit $ac_status); }; } &&
47714          { ac_try='test -s conftest.$ac_objext'
47715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47716   (eval $ac_try) 2>&5
47717   ac_status=$?
47718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47719   (exit $ac_status); }; }; then
47720   ac_cv_header_time=yes
47721 else
47722   echo "$as_me: failed program was:" >&5
47723 sed 's/^/| /' conftest.$ac_ext >&5
47724
47725 ac_cv_header_time=no
47726 fi
47727 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47728 fi
47729 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
47730 echo "${ECHO_T}$ac_cv_header_time" >&6
47731 if test $ac_cv_header_time = yes; then
47732
47733 cat >>confdefs.h <<\_ACEOF
47734 #define TIME_WITH_SYS_TIME 1
47735 _ACEOF
47736
47737 fi
47738
47739 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
47740 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
47741 if test "${ac_cv_struct_tm+set}" = set; then
47742   echo $ECHO_N "(cached) $ECHO_C" >&6
47743 else
47744   cat >conftest.$ac_ext <<_ACEOF
47745 /* confdefs.h.  */
47746 _ACEOF
47747 cat confdefs.h >>conftest.$ac_ext
47748 cat >>conftest.$ac_ext <<_ACEOF
47749 /* end confdefs.h.  */
47750 #include <sys/types.h>
47751 #include <time.h>
47752
47753 int
47754 main ()
47755 {
47756 struct tm *tp; tp->tm_sec;
47757   ;
47758   return 0;
47759 }
47760 _ACEOF
47761 rm -f conftest.$ac_objext
47762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47763   (eval $ac_compile) 2>conftest.er1
47764   ac_status=$?
47765   grep -v '^ *+' conftest.er1 >conftest.err
47766   rm -f conftest.er1
47767   cat conftest.err >&5
47768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47769   (exit $ac_status); } &&
47770          { ac_try='test -z "$ac_c_werror_flag"
47771                          || test ! -s conftest.err'
47772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47773   (eval $ac_try) 2>&5
47774   ac_status=$?
47775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47776   (exit $ac_status); }; } &&
47777          { ac_try='test -s conftest.$ac_objext'
47778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47779   (eval $ac_try) 2>&5
47780   ac_status=$?
47781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47782   (exit $ac_status); }; }; then
47783   ac_cv_struct_tm=time.h
47784 else
47785   echo "$as_me: failed program was:" >&5
47786 sed 's/^/| /' conftest.$ac_ext >&5
47787
47788 ac_cv_struct_tm=sys/time.h
47789 fi
47790 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47791 fi
47792 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
47793 echo "${ECHO_T}$ac_cv_struct_tm" >&6
47794 if test $ac_cv_struct_tm = sys/time.h; then
47795
47796 cat >>confdefs.h <<\_ACEOF
47797 #define TM_IN_SYS_TIME 1
47798 _ACEOF
47799
47800 fi
47801
47802 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
47803 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
47804 if test "${ac_cv_type_uid_t+set}" = set; then
47805   echo $ECHO_N "(cached) $ECHO_C" >&6
47806 else
47807   cat >conftest.$ac_ext <<_ACEOF
47808 /* confdefs.h.  */
47809 _ACEOF
47810 cat confdefs.h >>conftest.$ac_ext
47811 cat >>conftest.$ac_ext <<_ACEOF
47812 /* end confdefs.h.  */
47813 #include <sys/types.h>
47814
47815 _ACEOF
47816 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47817   $EGREP "uid_t" >/dev/null 2>&1; then
47818   ac_cv_type_uid_t=yes
47819 else
47820   ac_cv_type_uid_t=no
47821 fi
47822 rm -f conftest*
47823
47824 fi
47825 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
47826 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
47827 if test $ac_cv_type_uid_t = no; then
47828
47829 cat >>confdefs.h <<\_ACEOF
47830 #define uid_t int
47831 _ACEOF
47832
47833
47834 cat >>confdefs.h <<\_ACEOF
47835 #define gid_t int
47836 _ACEOF
47837
47838 fi
47839
47840 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
47841 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
47842 if test "${ol_cv_type_sig_atomic_t+set}" = set; then
47843   echo $ECHO_N "(cached) $ECHO_C" >&6
47844 else
47845   cat >conftest.$ac_ext <<_ACEOF
47846 /* confdefs.h.  */
47847 _ACEOF
47848 cat confdefs.h >>conftest.$ac_ext
47849 cat >>conftest.$ac_ext <<_ACEOF
47850 /* end confdefs.h.  */
47851 #include <signal.h>
47852 int
47853 main ()
47854 {
47855 sig_atomic_t atomic;
47856   ;
47857   return 0;
47858 }
47859 _ACEOF
47860 rm -f conftest.$ac_objext
47861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47862   (eval $ac_compile) 2>conftest.er1
47863   ac_status=$?
47864   grep -v '^ *+' conftest.er1 >conftest.err
47865   rm -f conftest.er1
47866   cat conftest.err >&5
47867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47868   (exit $ac_status); } &&
47869          { ac_try='test -z "$ac_c_werror_flag"
47870                          || test ! -s conftest.err'
47871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47872   (eval $ac_try) 2>&5
47873   ac_status=$?
47874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47875   (exit $ac_status); }; } &&
47876          { ac_try='test -s conftest.$ac_objext'
47877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47878   (eval $ac_try) 2>&5
47879   ac_status=$?
47880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47881   (exit $ac_status); }; }; then
47882   ol_cv_type_sig_atomic_t=yes
47883 else
47884   echo "$as_me: failed program was:" >&5
47885 sed 's/^/| /' conftest.$ac_ext >&5
47886
47887 ol_cv_type_sig_atomic_t=no
47888 fi
47889 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47890 fi
47891 echo "$as_me:$LINENO: result: $ol_cv_type_sig_atomic_t" >&5
47892 echo "${ECHO_T}$ol_cv_type_sig_atomic_t" >&6
47893   if test $ol_cv_type_sig_atomic_t = no; then
47894
47895 cat >>confdefs.h <<\_ACEOF
47896 #define sig_atomic_t int
47897 _ACEOF
47898
47899   fi
47900
47901
47902
47903 # test for pw_gecos in struct passwd
47904 echo "$as_me:$LINENO: checking struct passwd for pw_gecos" >&5
47905 echo $ECHO_N "checking struct passwd for pw_gecos... $ECHO_C" >&6
47906 if test "${ol_cv_struct_passwd_pw_gecos+set}" = set; then
47907   echo $ECHO_N "(cached) $ECHO_C" >&6
47908 else
47909
47910         cat >conftest.$ac_ext <<_ACEOF
47911 /* confdefs.h.  */
47912 _ACEOF
47913 cat confdefs.h >>conftest.$ac_ext
47914 cat >>conftest.$ac_ext <<_ACEOF
47915 /* end confdefs.h.  */
47916 #include <pwd.h>
47917 int
47918 main ()
47919 {
47920
47921         struct passwd pwd;
47922         pwd.pw_gecos = pwd.pw_name;
47923
47924   ;
47925   return 0;
47926 }
47927 _ACEOF
47928 rm -f conftest.$ac_objext
47929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47930   (eval $ac_compile) 2>conftest.er1
47931   ac_status=$?
47932   grep -v '^ *+' conftest.er1 >conftest.err
47933   rm -f conftest.er1
47934   cat conftest.err >&5
47935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47936   (exit $ac_status); } &&
47937          { ac_try='test -z "$ac_c_werror_flag"
47938                          || test ! -s conftest.err'
47939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47940   (eval $ac_try) 2>&5
47941   ac_status=$?
47942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47943   (exit $ac_status); }; } &&
47944          { ac_try='test -s conftest.$ac_objext'
47945   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47946   (eval $ac_try) 2>&5
47947   ac_status=$?
47948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47949   (exit $ac_status); }; }; then
47950   ol_cv_struct_passwd_pw_gecos=yes
47951 else
47952   echo "$as_me: failed program was:" >&5
47953 sed 's/^/| /' conftest.$ac_ext >&5
47954
47955 ol_cv_struct_passwd_pw_gecos=no
47956 fi
47957 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47958 fi
47959 echo "$as_me:$LINENO: result: $ol_cv_struct_passwd_pw_gecos" >&5
47960 echo "${ECHO_T}$ol_cv_struct_passwd_pw_gecos" >&6
47961 if test $ol_cv_struct_passwd_pw_gecos = yes ; then
47962
47963 cat >>confdefs.h <<\_ACEOF
47964 #define HAVE_PW_GECOS 1
47965 _ACEOF
47966
47967 fi
47968
47969 # test for pw_passwd in struct passwd
47970 echo "$as_me:$LINENO: checking struct passwd for pw_passwd" >&5
47971 echo $ECHO_N "checking struct passwd for pw_passwd... $ECHO_C" >&6
47972 if test "${ol_cv_struct_passwd_pw_passwd+set}" = set; then
47973   echo $ECHO_N "(cached) $ECHO_C" >&6
47974 else
47975
47976         cat >conftest.$ac_ext <<_ACEOF
47977 /* confdefs.h.  */
47978 _ACEOF
47979 cat confdefs.h >>conftest.$ac_ext
47980 cat >>conftest.$ac_ext <<_ACEOF
47981 /* end confdefs.h.  */
47982 #include <pwd.h>
47983 int
47984 main ()
47985 {
47986
47987         struct passwd pwd;
47988         pwd.pw_passwd = pwd.pw_name;
47989
47990   ;
47991   return 0;
47992 }
47993 _ACEOF
47994 rm -f conftest.$ac_objext
47995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47996   (eval $ac_compile) 2>conftest.er1
47997   ac_status=$?
47998   grep -v '^ *+' conftest.er1 >conftest.err
47999   rm -f conftest.er1
48000   cat conftest.err >&5
48001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48002   (exit $ac_status); } &&
48003          { ac_try='test -z "$ac_c_werror_flag"
48004                          || test ! -s conftest.err'
48005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48006   (eval $ac_try) 2>&5
48007   ac_status=$?
48008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48009   (exit $ac_status); }; } &&
48010          { ac_try='test -s conftest.$ac_objext'
48011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48012   (eval $ac_try) 2>&5
48013   ac_status=$?
48014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48015   (exit $ac_status); }; }; then
48016   ol_cv_struct_passwd_pw_passwd=yes
48017 else
48018   echo "$as_me: failed program was:" >&5
48019 sed 's/^/| /' conftest.$ac_ext >&5
48020
48021 ol_cv_struct_passwd_pw_passwd=no
48022 fi
48023 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48024 fi
48025 echo "$as_me:$LINENO: result: $ol_cv_struct_passwd_pw_passwd" >&5
48026 echo "${ECHO_T}$ol_cv_struct_passwd_pw_passwd" >&6
48027 if test $ol_cv_struct_passwd_pw_passwd = yes ; then
48028
48029 cat >>confdefs.h <<\_ACEOF
48030 #define HAVE_PW_PASSWD 1
48031 _ACEOF
48032
48033 fi
48034
48035
48036 echo "$as_me:$LINENO: checking if toupper() requires islower()" >&5
48037 echo $ECHO_N "checking if toupper() requires islower()... $ECHO_C" >&6
48038 if test "${ol_cv_c_upper_lower+set}" = set; then
48039   echo $ECHO_N "(cached) $ECHO_C" >&6
48040 else
48041
48042         if test "$cross_compiling" = yes; then
48043   ol_cv_c_upper_lower=safe
48044 else
48045   cat >conftest.$ac_ext <<_ACEOF
48046 /* confdefs.h.  */
48047 _ACEOF
48048 cat confdefs.h >>conftest.$ac_ext
48049 cat >>conftest.$ac_ext <<_ACEOF
48050 /* end confdefs.h.  */
48051
48052 #include <ctype.h>
48053 main()
48054 {
48055         if ('C' == toupper('C'))
48056                 exit(0);
48057         else
48058                 exit(1);
48059 }
48060 _ACEOF
48061 rm -f conftest$ac_exeext
48062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48063   (eval $ac_link) 2>&5
48064   ac_status=$?
48065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48066   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
48067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48068   (eval $ac_try) 2>&5
48069   ac_status=$?
48070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48071   (exit $ac_status); }; }; then
48072   ol_cv_c_upper_lower=no
48073 else
48074   echo "$as_me: program exited with status $ac_status" >&5
48075 echo "$as_me: failed program was:" >&5
48076 sed 's/^/| /' conftest.$ac_ext >&5
48077
48078 ( exit $ac_status )
48079 ol_cv_c_upper_lower=yes
48080 fi
48081 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
48082 fi
48083 fi
48084 echo "$as_me:$LINENO: result: $ol_cv_c_upper_lower" >&5
48085 echo "${ECHO_T}$ol_cv_c_upper_lower" >&6
48086 if test $ol_cv_c_upper_lower != no ; then
48087
48088 cat >>confdefs.h <<\_ACEOF
48089 #define C_UPPER_LOWER 1
48090 _ACEOF
48091
48092 fi
48093
48094 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
48095 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
48096 if test "${ac_cv_c_const+set}" = set; then
48097   echo $ECHO_N "(cached) $ECHO_C" >&6
48098 else
48099   cat >conftest.$ac_ext <<_ACEOF
48100 /* confdefs.h.  */
48101 _ACEOF
48102 cat confdefs.h >>conftest.$ac_ext
48103 cat >>conftest.$ac_ext <<_ACEOF
48104 /* end confdefs.h.  */
48105
48106 int
48107 main ()
48108 {
48109 /* FIXME: Include the comments suggested by Paul. */
48110 #ifndef __cplusplus
48111   /* Ultrix mips cc rejects this.  */
48112   typedef int charset[2];
48113   const charset x;
48114   /* SunOS 4.1.1 cc rejects this.  */
48115   char const *const *ccp;
48116   char **p;
48117   /* NEC SVR4.0.2 mips cc rejects this.  */
48118   struct point {int x, y;};
48119   static struct point const zero = {0,0};
48120   /* AIX XL C 1.02.0.0 rejects this.
48121      It does not let you subtract one const X* pointer from another in
48122      an arm of an if-expression whose if-part is not a constant
48123      expression */
48124   const char *g = "string";
48125   ccp = &g + (g ? g-g : 0);
48126   /* HPUX 7.0 cc rejects these. */
48127   ++ccp;
48128   p = (char**) ccp;
48129   ccp = (char const *const *) p;
48130   { /* SCO 3.2v4 cc rejects this.  */
48131     char *t;
48132     char const *s = 0 ? (char *) 0 : (char const *) 0;
48133
48134     *t++ = 0;
48135   }
48136   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
48137     int x[] = {25, 17};
48138     const int *foo = &x[0];
48139     ++foo;
48140   }
48141   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
48142     typedef const int *iptr;
48143     iptr p = 0;
48144     ++p;
48145   }
48146   { /* AIX XL C 1.02.0.0 rejects this saying
48147        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
48148     struct s { int j; const int *ap[3]; };
48149     struct s *b; b->j = 5;
48150   }
48151   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
48152     const int foo = 10;
48153   }
48154 #endif
48155
48156   ;
48157   return 0;
48158 }
48159 _ACEOF
48160 rm -f conftest.$ac_objext
48161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48162   (eval $ac_compile) 2>conftest.er1
48163   ac_status=$?
48164   grep -v '^ *+' conftest.er1 >conftest.err
48165   rm -f conftest.er1
48166   cat conftest.err >&5
48167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48168   (exit $ac_status); } &&
48169          { ac_try='test -z "$ac_c_werror_flag"
48170                          || test ! -s conftest.err'
48171   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48172   (eval $ac_try) 2>&5
48173   ac_status=$?
48174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48175   (exit $ac_status); }; } &&
48176          { ac_try='test -s conftest.$ac_objext'
48177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48178   (eval $ac_try) 2>&5
48179   ac_status=$?
48180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48181   (exit $ac_status); }; }; then
48182   ac_cv_c_const=yes
48183 else
48184   echo "$as_me: failed program was:" >&5
48185 sed 's/^/| /' conftest.$ac_ext >&5
48186
48187 ac_cv_c_const=no
48188 fi
48189 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48190 fi
48191 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
48192 echo "${ECHO_T}$ac_cv_c_const" >&6
48193 if test $ac_cv_c_const = no; then
48194
48195 cat >>confdefs.h <<\_ACEOF
48196 #define const
48197 _ACEOF
48198
48199 fi
48200
48201 echo "$as_me:$LINENO: checking if compiler understands volatile" >&5
48202 echo $ECHO_N "checking if compiler understands volatile... $ECHO_C" >&6
48203 if test "${ol_cv_c_volatile+set}" = set; then
48204   echo $ECHO_N "(cached) $ECHO_C" >&6
48205 else
48206   cat >conftest.$ac_ext <<_ACEOF
48207 /* confdefs.h.  */
48208 _ACEOF
48209 cat confdefs.h >>conftest.$ac_ext
48210 cat >>conftest.$ac_ext <<_ACEOF
48211 /* end confdefs.h.  */
48212 int x, y, z;
48213 int
48214 main ()
48215 {
48216 volatile int a; int * volatile b = x ? &y : &z;
48217       /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
48218       *b = 0;
48219   ;
48220   return 0;
48221 }
48222 _ACEOF
48223 rm -f conftest.$ac_objext
48224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48225   (eval $ac_compile) 2>conftest.er1
48226   ac_status=$?
48227   grep -v '^ *+' conftest.er1 >conftest.err
48228   rm -f conftest.er1
48229   cat conftest.err >&5
48230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48231   (exit $ac_status); } &&
48232          { ac_try='test -z "$ac_c_werror_flag"
48233                          || test ! -s conftest.err'
48234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48235   (eval $ac_try) 2>&5
48236   ac_status=$?
48237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48238   (exit $ac_status); }; } &&
48239          { ac_try='test -s conftest.$ac_objext'
48240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48241   (eval $ac_try) 2>&5
48242   ac_status=$?
48243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48244   (exit $ac_status); }; }; then
48245   ol_cv_c_volatile=yes
48246 else
48247   echo "$as_me: failed program was:" >&5
48248 sed 's/^/| /' conftest.$ac_ext >&5
48249
48250 ol_cv_c_volatile=no
48251 fi
48252 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48253 fi
48254 echo "$as_me:$LINENO: result: $ol_cv_c_volatile" >&5
48255 echo "${ECHO_T}$ol_cv_c_volatile" >&6
48256   if test $ol_cv_c_volatile = yes; then
48257     :
48258   else
48259
48260 cat >>confdefs.h <<\_ACEOF
48261 #define volatile
48262 _ACEOF
48263
48264   fi
48265
48266
48267 if test $cross_compiling = yes ; then
48268         { echo "$as_me:$LINENO: WARNING: Crossing compiling... all bets are off!" >&5
48269 echo "$as_me: WARNING: Crossing compiling... all bets are off!" >&2;}
48270
48271 cat >>confdefs.h <<\_ACEOF
48272 #define CROSS_COMPILING 1
48273 _ACEOF
48274
48275 else
48276         echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
48277 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
48278 if test "${ac_cv_c_bigendian+set}" = set; then
48279   echo $ECHO_N "(cached) $ECHO_C" >&6
48280 else
48281   # See if sys/param.h defines the BYTE_ORDER macro.
48282 cat >conftest.$ac_ext <<_ACEOF
48283 /* confdefs.h.  */
48284 _ACEOF
48285 cat confdefs.h >>conftest.$ac_ext
48286 cat >>conftest.$ac_ext <<_ACEOF
48287 /* end confdefs.h.  */
48288 #include <sys/types.h>
48289 #include <sys/param.h>
48290
48291 int
48292 main ()
48293 {
48294 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
48295  bogus endian macros
48296 #endif
48297
48298   ;
48299   return 0;
48300 }
48301 _ACEOF
48302 rm -f conftest.$ac_objext
48303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48304   (eval $ac_compile) 2>conftest.er1
48305   ac_status=$?
48306   grep -v '^ *+' conftest.er1 >conftest.err
48307   rm -f conftest.er1
48308   cat conftest.err >&5
48309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48310   (exit $ac_status); } &&
48311          { ac_try='test -z "$ac_c_werror_flag"
48312                          || test ! -s conftest.err'
48313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48314   (eval $ac_try) 2>&5
48315   ac_status=$?
48316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48317   (exit $ac_status); }; } &&
48318          { ac_try='test -s conftest.$ac_objext'
48319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48320   (eval $ac_try) 2>&5
48321   ac_status=$?
48322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48323   (exit $ac_status); }; }; then
48324   # It does; now see whether it defined to BIG_ENDIAN or not.
48325 cat >conftest.$ac_ext <<_ACEOF
48326 /* confdefs.h.  */
48327 _ACEOF
48328 cat confdefs.h >>conftest.$ac_ext
48329 cat >>conftest.$ac_ext <<_ACEOF
48330 /* end confdefs.h.  */
48331 #include <sys/types.h>
48332 #include <sys/param.h>
48333
48334 int
48335 main ()
48336 {
48337 #if BYTE_ORDER != BIG_ENDIAN
48338  not big endian
48339 #endif
48340
48341   ;
48342   return 0;
48343 }
48344 _ACEOF
48345 rm -f conftest.$ac_objext
48346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48347   (eval $ac_compile) 2>conftest.er1
48348   ac_status=$?
48349   grep -v '^ *+' conftest.er1 >conftest.err
48350   rm -f conftest.er1
48351   cat conftest.err >&5
48352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48353   (exit $ac_status); } &&
48354          { ac_try='test -z "$ac_c_werror_flag"
48355                          || test ! -s conftest.err'
48356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48357   (eval $ac_try) 2>&5
48358   ac_status=$?
48359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48360   (exit $ac_status); }; } &&
48361          { ac_try='test -s conftest.$ac_objext'
48362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48363   (eval $ac_try) 2>&5
48364   ac_status=$?
48365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48366   (exit $ac_status); }; }; then
48367   ac_cv_c_bigendian=yes
48368 else
48369   echo "$as_me: failed program was:" >&5
48370 sed 's/^/| /' conftest.$ac_ext >&5
48371
48372 ac_cv_c_bigendian=no
48373 fi
48374 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48375 else
48376   echo "$as_me: failed program was:" >&5
48377 sed 's/^/| /' conftest.$ac_ext >&5
48378
48379 # It does not; compile a test program.
48380 if test "$cross_compiling" = yes; then
48381   # try to guess the endianness by grepping values into an object file
48382   ac_cv_c_bigendian=unknown
48383   cat >conftest.$ac_ext <<_ACEOF
48384 /* confdefs.h.  */
48385 _ACEOF
48386 cat confdefs.h >>conftest.$ac_ext
48387 cat >>conftest.$ac_ext <<_ACEOF
48388 /* end confdefs.h.  */
48389 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
48390 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
48391 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
48392 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
48393 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
48394 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
48395 int
48396 main ()
48397 {
48398  _ascii (); _ebcdic ();
48399   ;
48400   return 0;
48401 }
48402 _ACEOF
48403 rm -f conftest.$ac_objext
48404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48405   (eval $ac_compile) 2>conftest.er1
48406   ac_status=$?
48407   grep -v '^ *+' conftest.er1 >conftest.err
48408   rm -f conftest.er1
48409   cat conftest.err >&5
48410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48411   (exit $ac_status); } &&
48412          { ac_try='test -z "$ac_c_werror_flag"
48413                          || test ! -s conftest.err'
48414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48415   (eval $ac_try) 2>&5
48416   ac_status=$?
48417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48418   (exit $ac_status); }; } &&
48419          { ac_try='test -s conftest.$ac_objext'
48420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48421   (eval $ac_try) 2>&5
48422   ac_status=$?
48423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48424   (exit $ac_status); }; }; then
48425   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
48426   ac_cv_c_bigendian=yes
48427 fi
48428 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
48429   if test "$ac_cv_c_bigendian" = unknown; then
48430     ac_cv_c_bigendian=no
48431   else
48432     # finding both strings is unlikely to happen, but who knows?
48433     ac_cv_c_bigendian=unknown
48434   fi
48435 fi
48436 else
48437   echo "$as_me: failed program was:" >&5
48438 sed 's/^/| /' conftest.$ac_ext >&5
48439
48440 fi
48441 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48442 else
48443   cat >conftest.$ac_ext <<_ACEOF
48444 /* confdefs.h.  */
48445 _ACEOF
48446 cat confdefs.h >>conftest.$ac_ext
48447 cat >>conftest.$ac_ext <<_ACEOF
48448 /* end confdefs.h.  */
48449 int
48450 main ()
48451 {
48452   /* Are we little or big endian?  From Harbison&Steele.  */
48453   union
48454   {
48455     long l;
48456     char c[sizeof (long)];
48457   } u;
48458   u.l = 1;
48459   exit (u.c[sizeof (long) - 1] == 1);
48460 }
48461 _ACEOF
48462 rm -f conftest$ac_exeext
48463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48464   (eval $ac_link) 2>&5
48465   ac_status=$?
48466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48467   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
48468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48469   (eval $ac_try) 2>&5
48470   ac_status=$?
48471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48472   (exit $ac_status); }; }; then
48473   ac_cv_c_bigendian=no
48474 else
48475   echo "$as_me: program exited with status $ac_status" >&5
48476 echo "$as_me: failed program was:" >&5
48477 sed 's/^/| /' conftest.$ac_ext >&5
48478
48479 ( exit $ac_status )
48480 ac_cv_c_bigendian=yes
48481 fi
48482 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
48483 fi
48484 fi
48485 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48486 fi
48487 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
48488 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
48489 case $ac_cv_c_bigendian in
48490   yes)
48491
48492 cat >>confdefs.h <<\_ACEOF
48493 #define WORDS_BIGENDIAN 1
48494 _ACEOF
48495  ;;
48496   no)
48497      ;;
48498   *)
48499     { { echo "$as_me:$LINENO: error: unknown endianness
48500 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
48501 echo "$as_me: error: unknown endianness
48502 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
48503    { (exit 1); exit 1; }; } ;;
48504 esac
48505
48506 fi
48507
48508 echo "$as_me:$LINENO: checking size of short" >&5
48509 echo $ECHO_N "checking size of short... $ECHO_C" >&6
48510 if test "${ac_cv_sizeof_short+set}" = set; then
48511   echo $ECHO_N "(cached) $ECHO_C" >&6
48512 else
48513   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
48514   cat >conftest.$ac_ext <<_ACEOF
48515 /* confdefs.h.  */
48516 _ACEOF
48517 cat confdefs.h >>conftest.$ac_ext
48518 cat >>conftest.$ac_ext <<_ACEOF
48519 /* end confdefs.h.  */
48520 #include "confdefs.h"
48521 #include <stdlib.h>
48522 #include <sys/types.h>
48523
48524
48525 int
48526 main ()
48527 {
48528 switch (0) case 0: case (sizeof (short) == $ac_size):;
48529   ;
48530   return 0;
48531 }
48532 _ACEOF
48533 rm -f conftest.$ac_objext
48534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48535   (eval $ac_compile) 2>conftest.er1
48536   ac_status=$?
48537   grep -v '^ *+' conftest.er1 >conftest.err
48538   rm -f conftest.er1
48539   cat conftest.err >&5
48540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48541   (exit $ac_status); } &&
48542          { ac_try='test -z "$ac_c_werror_flag"
48543                          || test ! -s conftest.err'
48544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48545   (eval $ac_try) 2>&5
48546   ac_status=$?
48547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48548   (exit $ac_status); }; } &&
48549          { ac_try='test -s conftest.$ac_objext'
48550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48551   (eval $ac_try) 2>&5
48552   ac_status=$?
48553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48554   (exit $ac_status); }; }; then
48555   ac_cv_sizeof_short=$ac_size
48556 else
48557   echo "$as_me: failed program was:" >&5
48558 sed 's/^/| /' conftest.$ac_ext >&5
48559
48560 fi
48561 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48562   if test x$ac_cv_sizeof_short != x ; then break; fi
48563 done
48564
48565 fi
48566
48567 if test x$ac_cv_sizeof_short = x ; then
48568   { { echo "$as_me:$LINENO: error: cannot determine a size for short" >&5
48569 echo "$as_me: error: cannot determine a size for short" >&2;}
48570    { (exit 1); exit 1; }; }
48571 fi
48572 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
48573 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
48574
48575 cat >>confdefs.h <<_ACEOF
48576 #define SIZEOF_SHORT $ac_cv_sizeof_short
48577 _ACEOF
48578
48579
48580 echo "$as_me:$LINENO: checking size of int" >&5
48581 echo $ECHO_N "checking size of int... $ECHO_C" >&6
48582 if test "${ac_cv_sizeof_int+set}" = set; then
48583   echo $ECHO_N "(cached) $ECHO_C" >&6
48584 else
48585   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
48586   cat >conftest.$ac_ext <<_ACEOF
48587 /* confdefs.h.  */
48588 _ACEOF
48589 cat confdefs.h >>conftest.$ac_ext
48590 cat >>conftest.$ac_ext <<_ACEOF
48591 /* end confdefs.h.  */
48592 #include "confdefs.h"
48593 #include <stdlib.h>
48594 #include <sys/types.h>
48595
48596
48597 int
48598 main ()
48599 {
48600 switch (0) case 0: case (sizeof (int) == $ac_size):;
48601   ;
48602   return 0;
48603 }
48604 _ACEOF
48605 rm -f conftest.$ac_objext
48606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48607   (eval $ac_compile) 2>conftest.er1
48608   ac_status=$?
48609   grep -v '^ *+' conftest.er1 >conftest.err
48610   rm -f conftest.er1
48611   cat conftest.err >&5
48612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48613   (exit $ac_status); } &&
48614          { ac_try='test -z "$ac_c_werror_flag"
48615                          || test ! -s conftest.err'
48616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48617   (eval $ac_try) 2>&5
48618   ac_status=$?
48619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48620   (exit $ac_status); }; } &&
48621          { ac_try='test -s conftest.$ac_objext'
48622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48623   (eval $ac_try) 2>&5
48624   ac_status=$?
48625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48626   (exit $ac_status); }; }; then
48627   ac_cv_sizeof_int=$ac_size
48628 else
48629   echo "$as_me: failed program was:" >&5
48630 sed 's/^/| /' conftest.$ac_ext >&5
48631
48632 fi
48633 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48634   if test x$ac_cv_sizeof_int != x ; then break; fi
48635 done
48636
48637 fi
48638
48639 if test x$ac_cv_sizeof_int = x ; then
48640   { { echo "$as_me:$LINENO: error: cannot determine a size for int" >&5
48641 echo "$as_me: error: cannot determine a size for int" >&2;}
48642    { (exit 1); exit 1; }; }
48643 fi
48644 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
48645 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
48646
48647 cat >>confdefs.h <<_ACEOF
48648 #define SIZEOF_INT $ac_cv_sizeof_int
48649 _ACEOF
48650
48651
48652 echo "$as_me:$LINENO: checking size of long" >&5
48653 echo $ECHO_N "checking size of long... $ECHO_C" >&6
48654 if test "${ac_cv_sizeof_long+set}" = set; then
48655   echo $ECHO_N "(cached) $ECHO_C" >&6
48656 else
48657   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
48658   cat >conftest.$ac_ext <<_ACEOF
48659 /* confdefs.h.  */
48660 _ACEOF
48661 cat confdefs.h >>conftest.$ac_ext
48662 cat >>conftest.$ac_ext <<_ACEOF
48663 /* end confdefs.h.  */
48664 #include "confdefs.h"
48665 #include <stdlib.h>
48666 #include <sys/types.h>
48667
48668
48669 int
48670 main ()
48671 {
48672 switch (0) case 0: case (sizeof (long) == $ac_size):;
48673   ;
48674   return 0;
48675 }
48676 _ACEOF
48677 rm -f conftest.$ac_objext
48678 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48679   (eval $ac_compile) 2>conftest.er1
48680   ac_status=$?
48681   grep -v '^ *+' conftest.er1 >conftest.err
48682   rm -f conftest.er1
48683   cat conftest.err >&5
48684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48685   (exit $ac_status); } &&
48686          { ac_try='test -z "$ac_c_werror_flag"
48687                          || test ! -s conftest.err'
48688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48689   (eval $ac_try) 2>&5
48690   ac_status=$?
48691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48692   (exit $ac_status); }; } &&
48693          { ac_try='test -s conftest.$ac_objext'
48694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48695   (eval $ac_try) 2>&5
48696   ac_status=$?
48697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48698   (exit $ac_status); }; }; then
48699   ac_cv_sizeof_long=$ac_size
48700 else
48701   echo "$as_me: failed program was:" >&5
48702 sed 's/^/| /' conftest.$ac_ext >&5
48703
48704 fi
48705 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48706   if test x$ac_cv_sizeof_long != x ; then break; fi
48707 done
48708
48709 fi
48710
48711 if test x$ac_cv_sizeof_long = x ; then
48712   { { echo "$as_me:$LINENO: error: cannot determine a size for long" >&5
48713 echo "$as_me: error: cannot determine a size for long" >&2;}
48714    { (exit 1); exit 1; }; }
48715 fi
48716 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
48717 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
48718
48719 cat >>confdefs.h <<_ACEOF
48720 #define SIZEOF_LONG $ac_cv_sizeof_long
48721 _ACEOF
48722
48723
48724 echo "$as_me:$LINENO: checking size of wchar_t" >&5
48725 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
48726 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
48727   echo $ECHO_N "(cached) $ECHO_C" >&6
48728 else
48729   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
48730   cat >conftest.$ac_ext <<_ACEOF
48731 /* confdefs.h.  */
48732 _ACEOF
48733 cat confdefs.h >>conftest.$ac_ext
48734 cat >>conftest.$ac_ext <<_ACEOF
48735 /* end confdefs.h.  */
48736 #include "confdefs.h"
48737 #include <stdlib.h>
48738 #include <sys/types.h>
48739
48740
48741 int
48742 main ()
48743 {
48744 switch (0) case 0: case (sizeof (wchar_t) == $ac_size):;
48745   ;
48746   return 0;
48747 }
48748 _ACEOF
48749 rm -f conftest.$ac_objext
48750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48751   (eval $ac_compile) 2>conftest.er1
48752   ac_status=$?
48753   grep -v '^ *+' conftest.er1 >conftest.err
48754   rm -f conftest.er1
48755   cat conftest.err >&5
48756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48757   (exit $ac_status); } &&
48758          { ac_try='test -z "$ac_c_werror_flag"
48759                          || test ! -s conftest.err'
48760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48761   (eval $ac_try) 2>&5
48762   ac_status=$?
48763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48764   (exit $ac_status); }; } &&
48765          { ac_try='test -s conftest.$ac_objext'
48766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48767   (eval $ac_try) 2>&5
48768   ac_status=$?
48769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48770   (exit $ac_status); }; }; then
48771   ac_cv_sizeof_wchar_t=$ac_size
48772 else
48773   echo "$as_me: failed program was:" >&5
48774 sed 's/^/| /' conftest.$ac_ext >&5
48775
48776 fi
48777 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48778   if test x$ac_cv_sizeof_wchar_t != x ; then break; fi
48779 done
48780
48781 fi
48782
48783 if test x$ac_cv_sizeof_wchar_t = x ; then
48784   { { echo "$as_me:$LINENO: error: cannot determine a size for wchar_t" >&5
48785 echo "$as_me: error: cannot determine a size for wchar_t" >&2;}
48786    { (exit 1); exit 1; }; }
48787 fi
48788 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
48789 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
48790
48791 cat >>confdefs.h <<_ACEOF
48792 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
48793 _ACEOF
48794
48795
48796
48797 if test "$ac_cv_sizeof_int" -lt 4 ; then
48798         { echo "$as_me:$LINENO: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&5
48799 echo "$as_me: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&2;}
48800
48801         cat >>confdefs.h <<\_ACEOF
48802 #define LBER_INT_T long
48803 _ACEOF
48804
48805 else
48806         cat >>confdefs.h <<\_ACEOF
48807 #define LBER_INT_T int
48808 _ACEOF
48809
48810 fi
48811
48812 cat >>confdefs.h <<\_ACEOF
48813 #define LBER_LEN_T long
48814 _ACEOF
48815
48816 cat >>confdefs.h <<\_ACEOF
48817 #define LBER_SOCKET_T int
48818 _ACEOF
48819
48820 cat >>confdefs.h <<\_ACEOF
48821 #define LBER_TAG_T long
48822 _ACEOF
48823
48824
48825 echo "$as_me:$LINENO: checking for working memcmp" >&5
48826 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
48827 if test "${ac_cv_func_memcmp_working+set}" = set; then
48828   echo $ECHO_N "(cached) $ECHO_C" >&6
48829 else
48830   if test "$cross_compiling" = yes; then
48831   ac_cv_func_memcmp_working=no
48832 else
48833   cat >conftest.$ac_ext <<_ACEOF
48834 /* confdefs.h.  */
48835 _ACEOF
48836 cat confdefs.h >>conftest.$ac_ext
48837 cat >>conftest.$ac_ext <<_ACEOF
48838 /* end confdefs.h.  */
48839 $ac_includes_default
48840 int
48841 main ()
48842 {
48843
48844   /* Some versions of memcmp are not 8-bit clean.  */
48845   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
48846   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
48847     exit (1);
48848
48849   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
48850      or more and with at least one buffer not starting on a 4-byte boundary.
48851      William Lewis provided this test program.   */
48852   {
48853     char foo[21];
48854     char bar[21];
48855     int i;
48856     for (i = 0; i < 4; i++)
48857       {
48858         char *a = foo + i;
48859         char *b = bar + i;
48860         strcpy (a, "--------01111111");
48861         strcpy (b, "--------10000000");
48862         if (memcmp (a, b, 16) >= 0)
48863           exit (1);
48864       }
48865     exit (0);
48866   }
48867
48868   ;
48869   return 0;
48870 }
48871 _ACEOF
48872 rm -f conftest$ac_exeext
48873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48874   (eval $ac_link) 2>&5
48875   ac_status=$?
48876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48877   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
48878   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48879   (eval $ac_try) 2>&5
48880   ac_status=$?
48881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48882   (exit $ac_status); }; }; then
48883   ac_cv_func_memcmp_working=yes
48884 else
48885   echo "$as_me: program exited with status $ac_status" >&5
48886 echo "$as_me: failed program was:" >&5
48887 sed 's/^/| /' conftest.$ac_ext >&5
48888
48889 ( exit $ac_status )
48890 ac_cv_func_memcmp_working=no
48891 fi
48892 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
48893 fi
48894 fi
48895 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
48896 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
48897 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
48898     "memcmp.$ac_objext"   | \
48899   *" memcmp.$ac_objext"   | \
48900     "memcmp.$ac_objext "* | \
48901   *" memcmp.$ac_objext "* ) ;;
48902   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
48903 esac
48904
48905
48906
48907 if test $ac_cv_func_memcmp_working = no ; then
48908
48909 cat >>confdefs.h <<\_ACEOF
48910 #define NEED_MEMCMP_REPLACEMENT 1
48911 _ACEOF
48912
48913 fi
48914
48915
48916 for ac_func in strftime
48917 do
48918 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48919 echo "$as_me:$LINENO: checking for $ac_func" >&5
48920 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
48921 if eval "test \"\${$as_ac_var+set}\" = set"; then
48922   echo $ECHO_N "(cached) $ECHO_C" >&6
48923 else
48924   cat >conftest.$ac_ext <<_ACEOF
48925 /* confdefs.h.  */
48926 _ACEOF
48927 cat confdefs.h >>conftest.$ac_ext
48928 cat >>conftest.$ac_ext <<_ACEOF
48929 /* end confdefs.h.  */
48930 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48931    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
48932 #define $ac_func innocuous_$ac_func
48933
48934 /* System header to define __stub macros and hopefully few prototypes,
48935     which can conflict with char $ac_func (); below.
48936     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48937     <limits.h> exists even on freestanding compilers.  */
48938
48939 #ifdef __STDC__
48940 # include <limits.h>
48941 #else
48942 # include <assert.h>
48943 #endif
48944
48945 #undef $ac_func
48946
48947 /* Override any gcc2 internal prototype to avoid an error.  */
48948 #ifdef __cplusplus
48949 extern "C"
48950 {
48951 #endif
48952 /* We use char because int might match the return type of a gcc2
48953    builtin and then its argument prototype would still apply.  */
48954 char $ac_func ();
48955 /* The GNU C library defines this for functions which it implements
48956     to always fail with ENOSYS.  Some functions are actually named
48957     something starting with __ and the normal name is an alias.  */
48958 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
48959 choke me
48960 #else
48961 char (*f) () = $ac_func;
48962 #endif
48963 #ifdef __cplusplus
48964 }
48965 #endif
48966
48967 int
48968 main ()
48969 {
48970 return f != $ac_func;
48971   ;
48972   return 0;
48973 }
48974 _ACEOF
48975 rm -f conftest.$ac_objext conftest$ac_exeext
48976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48977   (eval $ac_link) 2>conftest.er1
48978   ac_status=$?
48979   grep -v '^ *+' conftest.er1 >conftest.err
48980   rm -f conftest.er1
48981   cat conftest.err >&5
48982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48983   (exit $ac_status); } &&
48984          { ac_try='test -z "$ac_c_werror_flag"
48985                          || test ! -s conftest.err'
48986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48987   (eval $ac_try) 2>&5
48988   ac_status=$?
48989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48990   (exit $ac_status); }; } &&
48991          { ac_try='test -s conftest$ac_exeext'
48992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48993   (eval $ac_try) 2>&5
48994   ac_status=$?
48995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48996   (exit $ac_status); }; }; then
48997   eval "$as_ac_var=yes"
48998 else
48999   echo "$as_me: failed program was:" >&5
49000 sed 's/^/| /' conftest.$ac_ext >&5
49001
49002 eval "$as_ac_var=no"
49003 fi
49004 rm -f conftest.err conftest.$ac_objext \
49005       conftest$ac_exeext conftest.$ac_ext
49006 fi
49007 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
49008 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
49009 if test `eval echo '${'$as_ac_var'}'` = yes; then
49010   cat >>confdefs.h <<_ACEOF
49011 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49012 _ACEOF
49013
49014 else
49015   # strftime is in -lintl on SCO UNIX.
49016 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
49017 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
49018 if test "${ac_cv_lib_intl_strftime+set}" = set; then
49019   echo $ECHO_N "(cached) $ECHO_C" >&6
49020 else
49021   ac_check_lib_save_LIBS=$LIBS
49022 LIBS="-lintl  $LIBS"
49023 cat >conftest.$ac_ext <<_ACEOF
49024 /* confdefs.h.  */
49025 _ACEOF
49026 cat confdefs.h >>conftest.$ac_ext
49027 cat >>conftest.$ac_ext <<_ACEOF
49028 /* end confdefs.h.  */
49029
49030 /* Override any gcc2 internal prototype to avoid an error.  */
49031 #ifdef __cplusplus
49032 extern "C"
49033 #endif
49034 /* We use char because int might match the return type of a gcc2
49035    builtin and then its argument prototype would still apply.  */
49036 char strftime ();
49037 int
49038 main ()
49039 {
49040 strftime ();
49041   ;
49042   return 0;
49043 }
49044 _ACEOF
49045 rm -f conftest.$ac_objext conftest$ac_exeext
49046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49047   (eval $ac_link) 2>conftest.er1
49048   ac_status=$?
49049   grep -v '^ *+' conftest.er1 >conftest.err
49050   rm -f conftest.er1
49051   cat conftest.err >&5
49052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49053   (exit $ac_status); } &&
49054          { ac_try='test -z "$ac_c_werror_flag"
49055                          || test ! -s conftest.err'
49056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49057   (eval $ac_try) 2>&5
49058   ac_status=$?
49059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49060   (exit $ac_status); }; } &&
49061          { ac_try='test -s conftest$ac_exeext'
49062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49063   (eval $ac_try) 2>&5
49064   ac_status=$?
49065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49066   (exit $ac_status); }; }; then
49067   ac_cv_lib_intl_strftime=yes
49068 else
49069   echo "$as_me: failed program was:" >&5
49070 sed 's/^/| /' conftest.$ac_ext >&5
49071
49072 ac_cv_lib_intl_strftime=no
49073 fi
49074 rm -f conftest.err conftest.$ac_objext \
49075       conftest$ac_exeext conftest.$ac_ext
49076 LIBS=$ac_check_lib_save_LIBS
49077 fi
49078 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
49079 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
49080 if test $ac_cv_lib_intl_strftime = yes; then
49081   cat >>confdefs.h <<\_ACEOF
49082 #define HAVE_STRFTIME 1
49083 _ACEOF
49084
49085 LIBS="-lintl $LIBS"
49086 fi
49087
49088 fi
49089 done
49090
49091
49092 echo "$as_me:$LINENO: checking for inet_aton()" >&5
49093 echo $ECHO_N "checking for inet_aton()... $ECHO_C" >&6
49094 if test "${ol_cv_func_inet_aton+set}" = set; then
49095   echo $ECHO_N "(cached) $ECHO_C" >&6
49096 else
49097   cat >conftest.$ac_ext <<_ACEOF
49098 /* confdefs.h.  */
49099 _ACEOF
49100 cat confdefs.h >>conftest.$ac_ext
49101 cat >>conftest.$ac_ext <<_ACEOF
49102 /* end confdefs.h.  */
49103
49104 #ifdef HAVE_SYS_TYPES_H
49105 #       include <sys/types.h>
49106 #endif
49107 #ifdef HAVE_SYS_SOCKET_H
49108 #       include <sys/socket.h>
49109 #       ifdef HAVE_SYS_SELECT_H
49110 #               include <sys/select.h>
49111 #       endif
49112 #       include <netinet/in.h>
49113 #       ifdef HAVE_ARPA_INET_H
49114 #               include <arpa/inet.h>
49115 #       endif
49116 #endif
49117
49118 int
49119 main ()
49120 {
49121 struct in_addr in;
49122 int rc = inet_aton( "255.255.255.255", &in );
49123   ;
49124   return 0;
49125 }
49126 _ACEOF
49127 rm -f conftest.$ac_objext conftest$ac_exeext
49128 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49129   (eval $ac_link) 2>conftest.er1
49130   ac_status=$?
49131   grep -v '^ *+' conftest.er1 >conftest.err
49132   rm -f conftest.er1
49133   cat conftest.err >&5
49134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49135   (exit $ac_status); } &&
49136          { ac_try='test -z "$ac_c_werror_flag"
49137                          || test ! -s conftest.err'
49138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49139   (eval $ac_try) 2>&5
49140   ac_status=$?
49141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49142   (exit $ac_status); }; } &&
49143          { ac_try='test -s conftest$ac_exeext'
49144   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49145   (eval $ac_try) 2>&5
49146   ac_status=$?
49147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49148   (exit $ac_status); }; }; then
49149   ol_cv_func_inet_aton=yes
49150 else
49151   echo "$as_me: failed program was:" >&5
49152 sed 's/^/| /' conftest.$ac_ext >&5
49153
49154 ol_cv_func_inet_aton=no
49155 fi
49156 rm -f conftest.err conftest.$ac_objext \
49157       conftest$ac_exeext conftest.$ac_ext
49158 fi
49159 echo "$as_me:$LINENO: result: $ol_cv_func_inet_aton" >&5
49160 echo "${ECHO_T}$ol_cv_func_inet_aton" >&6
49161   if test $ol_cv_func_inet_aton != no; then
49162
49163 cat >>confdefs.h <<\_ACEOF
49164 #define HAVE_INET_ATON 1
49165 _ACEOF
49166
49167   fi
49168
49169
49170 echo "$as_me:$LINENO: checking for _spawnlp" >&5
49171 echo $ECHO_N "checking for _spawnlp... $ECHO_C" >&6
49172 if test "${ac_cv_func__spawnlp+set}" = set; then
49173   echo $ECHO_N "(cached) $ECHO_C" >&6
49174 else
49175   cat >conftest.$ac_ext <<_ACEOF
49176 /* confdefs.h.  */
49177 _ACEOF
49178 cat confdefs.h >>conftest.$ac_ext
49179 cat >>conftest.$ac_ext <<_ACEOF
49180 /* end confdefs.h.  */
49181 /* Define _spawnlp to an innocuous variant, in case <limits.h> declares _spawnlp.
49182    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
49183 #define _spawnlp innocuous__spawnlp
49184
49185 /* System header to define __stub macros and hopefully few prototypes,
49186     which can conflict with char _spawnlp (); below.
49187     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49188     <limits.h> exists even on freestanding compilers.  */
49189
49190 #ifdef __STDC__
49191 # include <limits.h>
49192 #else
49193 # include <assert.h>
49194 #endif
49195
49196 #undef _spawnlp
49197
49198 /* Override any gcc2 internal prototype to avoid an error.  */
49199 #ifdef __cplusplus
49200 extern "C"
49201 {
49202 #endif
49203 /* We use char because int might match the return type of a gcc2
49204    builtin and then its argument prototype would still apply.  */
49205 char _spawnlp ();
49206 /* The GNU C library defines this for functions which it implements
49207     to always fail with ENOSYS.  Some functions are actually named
49208     something starting with __ and the normal name is an alias.  */
49209 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
49210 choke me
49211 #else
49212 char (*f) () = _spawnlp;
49213 #endif
49214 #ifdef __cplusplus
49215 }
49216 #endif
49217
49218 int
49219 main ()
49220 {
49221 return f != _spawnlp;
49222   ;
49223   return 0;
49224 }
49225 _ACEOF
49226 rm -f conftest.$ac_objext conftest$ac_exeext
49227 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49228   (eval $ac_link) 2>conftest.er1
49229   ac_status=$?
49230   grep -v '^ *+' conftest.er1 >conftest.err
49231   rm -f conftest.er1
49232   cat conftest.err >&5
49233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49234   (exit $ac_status); } &&
49235          { ac_try='test -z "$ac_c_werror_flag"
49236                          || test ! -s conftest.err'
49237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49238   (eval $ac_try) 2>&5
49239   ac_status=$?
49240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49241   (exit $ac_status); }; } &&
49242          { ac_try='test -s conftest$ac_exeext'
49243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49244   (eval $ac_try) 2>&5
49245   ac_status=$?
49246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49247   (exit $ac_status); }; }; then
49248   ac_cv_func__spawnlp=yes
49249 else
49250   echo "$as_me: failed program was:" >&5
49251 sed 's/^/| /' conftest.$ac_ext >&5
49252
49253 ac_cv_func__spawnlp=no
49254 fi
49255 rm -f conftest.err conftest.$ac_objext \
49256       conftest$ac_exeext conftest.$ac_ext
49257 fi
49258 echo "$as_me:$LINENO: result: $ac_cv_func__spawnlp" >&5
49259 echo "${ECHO_T}$ac_cv_func__spawnlp" >&6
49260 if test $ac_cv_func__spawnlp = yes; then
49261
49262 cat >>confdefs.h <<\_ACEOF
49263 #define HAVE_SPAWNLP 1
49264 _ACEOF
49265
49266 fi
49267
49268
49269 echo "$as_me:$LINENO: checking for _snprintf" >&5
49270 echo $ECHO_N "checking for _snprintf... $ECHO_C" >&6
49271 if test "${ac_cv_func__snprintf+set}" = set; then
49272   echo $ECHO_N "(cached) $ECHO_C" >&6
49273 else
49274   cat >conftest.$ac_ext <<_ACEOF
49275 /* confdefs.h.  */
49276 _ACEOF
49277 cat confdefs.h >>conftest.$ac_ext
49278 cat >>conftest.$ac_ext <<_ACEOF
49279 /* end confdefs.h.  */
49280 /* Define _snprintf to an innocuous variant, in case <limits.h> declares _snprintf.
49281    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
49282 #define _snprintf innocuous__snprintf
49283
49284 /* System header to define __stub macros and hopefully few prototypes,
49285     which can conflict with char _snprintf (); below.
49286     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49287     <limits.h> exists even on freestanding compilers.  */
49288
49289 #ifdef __STDC__
49290 # include <limits.h>
49291 #else
49292 # include <assert.h>
49293 #endif
49294
49295 #undef _snprintf
49296
49297 /* Override any gcc2 internal prototype to avoid an error.  */
49298 #ifdef __cplusplus
49299 extern "C"
49300 {
49301 #endif
49302 /* We use char because int might match the return type of a gcc2
49303    builtin and then its argument prototype would still apply.  */
49304 char _snprintf ();
49305 /* The GNU C library defines this for functions which it implements
49306     to always fail with ENOSYS.  Some functions are actually named
49307     something starting with __ and the normal name is an alias.  */
49308 #if defined (__stub__snprintf) || defined (__stub____snprintf)
49309 choke me
49310 #else
49311 char (*f) () = _snprintf;
49312 #endif
49313 #ifdef __cplusplus
49314 }
49315 #endif
49316
49317 int
49318 main ()
49319 {
49320 return f != _snprintf;
49321   ;
49322   return 0;
49323 }
49324 _ACEOF
49325 rm -f conftest.$ac_objext conftest$ac_exeext
49326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49327   (eval $ac_link) 2>conftest.er1
49328   ac_status=$?
49329   grep -v '^ *+' conftest.er1 >conftest.err
49330   rm -f conftest.er1
49331   cat conftest.err >&5
49332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49333   (exit $ac_status); } &&
49334          { ac_try='test -z "$ac_c_werror_flag"
49335                          || test ! -s conftest.err'
49336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49337   (eval $ac_try) 2>&5
49338   ac_status=$?
49339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49340   (exit $ac_status); }; } &&
49341          { ac_try='test -s conftest$ac_exeext'
49342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49343   (eval $ac_try) 2>&5
49344   ac_status=$?
49345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49346   (exit $ac_status); }; }; then
49347   ac_cv_func__snprintf=yes
49348 else
49349   echo "$as_me: failed program was:" >&5
49350 sed 's/^/| /' conftest.$ac_ext >&5
49351
49352 ac_cv_func__snprintf=no
49353 fi
49354 rm -f conftest.err conftest.$ac_objext \
49355       conftest$ac_exeext conftest.$ac_ext
49356 fi
49357 echo "$as_me:$LINENO: result: $ac_cv_func__snprintf" >&5
49358 echo "${ECHO_T}$ac_cv_func__snprintf" >&6
49359 if test $ac_cv_func__snprintf = yes; then
49360   ac_cv_func_snprintf=yes
49361
49362 cat >>confdefs.h <<\_ACEOF
49363 #define snprintf _snprintf
49364 _ACEOF
49365
49366
49367 fi
49368
49369
49370 echo "$as_me:$LINENO: checking for _vsnprintf" >&5
49371 echo $ECHO_N "checking for _vsnprintf... $ECHO_C" >&6
49372 if test "${ac_cv_func__vsnprintf+set}" = set; then
49373   echo $ECHO_N "(cached) $ECHO_C" >&6
49374 else
49375   cat >conftest.$ac_ext <<_ACEOF
49376 /* confdefs.h.  */
49377 _ACEOF
49378 cat confdefs.h >>conftest.$ac_ext
49379 cat >>conftest.$ac_ext <<_ACEOF
49380 /* end confdefs.h.  */
49381 /* Define _vsnprintf to an innocuous variant, in case <limits.h> declares _vsnprintf.
49382    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
49383 #define _vsnprintf innocuous__vsnprintf
49384
49385 /* System header to define __stub macros and hopefully few prototypes,
49386     which can conflict with char _vsnprintf (); below.
49387     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49388     <limits.h> exists even on freestanding compilers.  */
49389
49390 #ifdef __STDC__
49391 # include <limits.h>
49392 #else
49393 # include <assert.h>
49394 #endif
49395
49396 #undef _vsnprintf
49397
49398 /* Override any gcc2 internal prototype to avoid an error.  */
49399 #ifdef __cplusplus
49400 extern "C"
49401 {
49402 #endif
49403 /* We use char because int might match the return type of a gcc2
49404    builtin and then its argument prototype would still apply.  */
49405 char _vsnprintf ();
49406 /* The GNU C library defines this for functions which it implements
49407     to always fail with ENOSYS.  Some functions are actually named
49408     something starting with __ and the normal name is an alias.  */
49409 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
49410 choke me
49411 #else
49412 char (*f) () = _vsnprintf;
49413 #endif
49414 #ifdef __cplusplus
49415 }
49416 #endif
49417
49418 int
49419 main ()
49420 {
49421 return f != _vsnprintf;
49422   ;
49423   return 0;
49424 }
49425 _ACEOF
49426 rm -f conftest.$ac_objext conftest$ac_exeext
49427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49428   (eval $ac_link) 2>conftest.er1
49429   ac_status=$?
49430   grep -v '^ *+' conftest.er1 >conftest.err
49431   rm -f conftest.er1
49432   cat conftest.err >&5
49433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49434   (exit $ac_status); } &&
49435          { ac_try='test -z "$ac_c_werror_flag"
49436                          || test ! -s conftest.err'
49437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49438   (eval $ac_try) 2>&5
49439   ac_status=$?
49440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49441   (exit $ac_status); }; } &&
49442          { ac_try='test -s conftest$ac_exeext'
49443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49444   (eval $ac_try) 2>&5
49445   ac_status=$?
49446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49447   (exit $ac_status); }; }; then
49448   ac_cv_func__vsnprintf=yes
49449 else
49450   echo "$as_me: failed program was:" >&5
49451 sed 's/^/| /' conftest.$ac_ext >&5
49452
49453 ac_cv_func__vsnprintf=no
49454 fi
49455 rm -f conftest.err conftest.$ac_objext \
49456       conftest$ac_exeext conftest.$ac_ext
49457 fi
49458 echo "$as_me:$LINENO: result: $ac_cv_func__vsnprintf" >&5
49459 echo "${ECHO_T}$ac_cv_func__vsnprintf" >&6
49460 if test $ac_cv_func__vsnprintf = yes; then
49461   ac_cv_func_vsnprintf=yes
49462
49463 cat >>confdefs.h <<\_ACEOF
49464 #define vsnprintf _vsnprintf
49465 _ACEOF
49466
49467
49468 fi
49469
49470
49471
49472 for ac_func in vprintf
49473 do
49474 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49475 echo "$as_me:$LINENO: checking for $ac_func" >&5
49476 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
49477 if eval "test \"\${$as_ac_var+set}\" = set"; then
49478   echo $ECHO_N "(cached) $ECHO_C" >&6
49479 else
49480   cat >conftest.$ac_ext <<_ACEOF
49481 /* confdefs.h.  */
49482 _ACEOF
49483 cat confdefs.h >>conftest.$ac_ext
49484 cat >>conftest.$ac_ext <<_ACEOF
49485 /* end confdefs.h.  */
49486 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
49487    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
49488 #define $ac_func innocuous_$ac_func
49489
49490 /* System header to define __stub macros and hopefully few prototypes,
49491     which can conflict with char $ac_func (); below.
49492     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49493     <limits.h> exists even on freestanding compilers.  */
49494
49495 #ifdef __STDC__
49496 # include <limits.h>
49497 #else
49498 # include <assert.h>
49499 #endif
49500
49501 #undef $ac_func
49502
49503 /* Override any gcc2 internal prototype to avoid an error.  */
49504 #ifdef __cplusplus
49505 extern "C"
49506 {
49507 #endif
49508 /* We use char because int might match the return type of a gcc2
49509    builtin and then its argument prototype would still apply.  */
49510 char $ac_func ();
49511 /* The GNU C library defines this for functions which it implements
49512     to always fail with ENOSYS.  Some functions are actually named
49513     something starting with __ and the normal name is an alias.  */
49514 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
49515 choke me
49516 #else
49517 char (*f) () = $ac_func;
49518 #endif
49519 #ifdef __cplusplus
49520 }
49521 #endif
49522
49523 int
49524 main ()
49525 {
49526 return f != $ac_func;
49527   ;
49528   return 0;
49529 }
49530 _ACEOF
49531 rm -f conftest.$ac_objext conftest$ac_exeext
49532 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49533   (eval $ac_link) 2>conftest.er1
49534   ac_status=$?
49535   grep -v '^ *+' conftest.er1 >conftest.err
49536   rm -f conftest.er1
49537   cat conftest.err >&5
49538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49539   (exit $ac_status); } &&
49540          { ac_try='test -z "$ac_c_werror_flag"
49541                          || test ! -s conftest.err'
49542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49543   (eval $ac_try) 2>&5
49544   ac_status=$?
49545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49546   (exit $ac_status); }; } &&
49547          { ac_try='test -s conftest$ac_exeext'
49548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49549   (eval $ac_try) 2>&5
49550   ac_status=$?
49551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49552   (exit $ac_status); }; }; then
49553   eval "$as_ac_var=yes"
49554 else
49555   echo "$as_me: failed program was:" >&5
49556 sed 's/^/| /' conftest.$ac_ext >&5
49557
49558 eval "$as_ac_var=no"
49559 fi
49560 rm -f conftest.err conftest.$ac_objext \
49561       conftest$ac_exeext conftest.$ac_ext
49562 fi
49563 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
49564 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
49565 if test `eval echo '${'$as_ac_var'}'` = yes; then
49566   cat >>confdefs.h <<_ACEOF
49567 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49568 _ACEOF
49569
49570 echo "$as_me:$LINENO: checking for _doprnt" >&5
49571 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
49572 if test "${ac_cv_func__doprnt+set}" = set; then
49573   echo $ECHO_N "(cached) $ECHO_C" >&6
49574 else
49575   cat >conftest.$ac_ext <<_ACEOF
49576 /* confdefs.h.  */
49577 _ACEOF
49578 cat confdefs.h >>conftest.$ac_ext
49579 cat >>conftest.$ac_ext <<_ACEOF
49580 /* end confdefs.h.  */
49581 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
49582    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
49583 #define _doprnt innocuous__doprnt
49584
49585 /* System header to define __stub macros and hopefully few prototypes,
49586     which can conflict with char _doprnt (); below.
49587     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49588     <limits.h> exists even on freestanding compilers.  */
49589
49590 #ifdef __STDC__
49591 # include <limits.h>
49592 #else
49593 # include <assert.h>
49594 #endif
49595
49596 #undef _doprnt
49597
49598 /* Override any gcc2 internal prototype to avoid an error.  */
49599 #ifdef __cplusplus
49600 extern "C"
49601 {
49602 #endif
49603 /* We use char because int might match the return type of a gcc2
49604    builtin and then its argument prototype would still apply.  */
49605 char _doprnt ();
49606 /* The GNU C library defines this for functions which it implements
49607     to always fail with ENOSYS.  Some functions are actually named
49608     something starting with __ and the normal name is an alias.  */
49609 #if defined (__stub__doprnt) || defined (__stub____doprnt)
49610 choke me
49611 #else
49612 char (*f) () = _doprnt;
49613 #endif
49614 #ifdef __cplusplus
49615 }
49616 #endif
49617
49618 int
49619 main ()
49620 {
49621 return f != _doprnt;
49622   ;
49623   return 0;
49624 }
49625 _ACEOF
49626 rm -f conftest.$ac_objext conftest$ac_exeext
49627 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49628   (eval $ac_link) 2>conftest.er1
49629   ac_status=$?
49630   grep -v '^ *+' conftest.er1 >conftest.err
49631   rm -f conftest.er1
49632   cat conftest.err >&5
49633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49634   (exit $ac_status); } &&
49635          { ac_try='test -z "$ac_c_werror_flag"
49636                          || test ! -s conftest.err'
49637   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49638   (eval $ac_try) 2>&5
49639   ac_status=$?
49640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49641   (exit $ac_status); }; } &&
49642          { ac_try='test -s conftest$ac_exeext'
49643   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49644   (eval $ac_try) 2>&5
49645   ac_status=$?
49646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49647   (exit $ac_status); }; }; then
49648   ac_cv_func__doprnt=yes
49649 else
49650   echo "$as_me: failed program was:" >&5
49651 sed 's/^/| /' conftest.$ac_ext >&5
49652
49653 ac_cv_func__doprnt=no
49654 fi
49655 rm -f conftest.err conftest.$ac_objext \
49656       conftest$ac_exeext conftest.$ac_ext
49657 fi
49658 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
49659 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
49660 if test $ac_cv_func__doprnt = yes; then
49661
49662 cat >>confdefs.h <<\_ACEOF
49663 #define HAVE_DOPRNT 1
49664 _ACEOF
49665
49666 fi
49667
49668 fi
49669 done
49670
49671
49672
49673 if test $ac_cv_func_vprintf = yes ; then
49674
49675
49676 for ac_func in snprintf vsnprintf
49677 do
49678 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49679 echo "$as_me:$LINENO: checking for $ac_func" >&5
49680 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
49681 if eval "test \"\${$as_ac_var+set}\" = set"; then
49682   echo $ECHO_N "(cached) $ECHO_C" >&6
49683 else
49684   cat >conftest.$ac_ext <<_ACEOF
49685 /* confdefs.h.  */
49686 _ACEOF
49687 cat confdefs.h >>conftest.$ac_ext
49688 cat >>conftest.$ac_ext <<_ACEOF
49689 /* end confdefs.h.  */
49690 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
49691    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
49692 #define $ac_func innocuous_$ac_func
49693
49694 /* System header to define __stub macros and hopefully few prototypes,
49695     which can conflict with char $ac_func (); below.
49696     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49697     <limits.h> exists even on freestanding compilers.  */
49698
49699 #ifdef __STDC__
49700 # include <limits.h>
49701 #else
49702 # include <assert.h>
49703 #endif
49704
49705 #undef $ac_func
49706
49707 /* Override any gcc2 internal prototype to avoid an error.  */
49708 #ifdef __cplusplus
49709 extern "C"
49710 {
49711 #endif
49712 /* We use char because int might match the return type of a gcc2
49713    builtin and then its argument prototype would still apply.  */
49714 char $ac_func ();
49715 /* The GNU C library defines this for functions which it implements
49716     to always fail with ENOSYS.  Some functions are actually named
49717     something starting with __ and the normal name is an alias.  */
49718 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
49719 choke me
49720 #else
49721 char (*f) () = $ac_func;
49722 #endif
49723 #ifdef __cplusplus
49724 }
49725 #endif
49726
49727 int
49728 main ()
49729 {
49730 return f != $ac_func;
49731   ;
49732   return 0;
49733 }
49734 _ACEOF
49735 rm -f conftest.$ac_objext conftest$ac_exeext
49736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49737   (eval $ac_link) 2>conftest.er1
49738   ac_status=$?
49739   grep -v '^ *+' conftest.er1 >conftest.err
49740   rm -f conftest.er1
49741   cat conftest.err >&5
49742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49743   (exit $ac_status); } &&
49744          { ac_try='test -z "$ac_c_werror_flag"
49745                          || test ! -s conftest.err'
49746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49747   (eval $ac_try) 2>&5
49748   ac_status=$?
49749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49750   (exit $ac_status); }; } &&
49751          { ac_try='test -s conftest$ac_exeext'
49752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49753   (eval $ac_try) 2>&5
49754   ac_status=$?
49755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49756   (exit $ac_status); }; }; then
49757   eval "$as_ac_var=yes"
49758 else
49759   echo "$as_me: failed program was:" >&5
49760 sed 's/^/| /' conftest.$ac_ext >&5
49761
49762 eval "$as_ac_var=no"
49763 fi
49764 rm -f conftest.err conftest.$ac_objext \
49765       conftest$ac_exeext conftest.$ac_ext
49766 fi
49767 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
49768 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
49769 if test `eval echo '${'$as_ac_var'}'` = yes; then
49770   cat >>confdefs.h <<_ACEOF
49771 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49772 _ACEOF
49773
49774 fi
49775 done
49776
49777 fi
49778
49779
49780
49781
49782
49783
49784
49785
49786
49787
49788
49789
49790
49791
49792
49793
49794
49795
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 for ac_func in \
49833         bcopy                   \
49834         closesocket             \
49835         chroot                  \
49836         endgrent                \
49837         endpwent                \
49838         fcntl                   \
49839         flock                   \
49840         fstat                   \
49841         getdtablesize   \
49842         getgrgid                \
49843         gethostname             \
49844         getpass                 \
49845         getpassphrase   \
49846         getpwuid                \
49847         getpwnam                \
49848         getspnam                \
49849         gettimeofday    \
49850         initgroups              \
49851         lockf                   \
49852         memcpy                  \
49853         memmove                 \
49854         mkstemp                 \
49855         mktemp                  \
49856         pipe                    \
49857         read                    \
49858         recv                    \
49859         recvfrom                \
49860         setpwfile               \
49861         setgid                  \
49862         setegid                 \
49863         setsid                  \
49864         setuid                  \
49865         seteuid                 \
49866         signal                  \
49867         strdup                  \
49868         strpbrk                 \
49869         strrchr                 \
49870         strsep                  \
49871         strstr                  \
49872         strtol                  \
49873         strtoul                 \
49874         strtoq                  \
49875         strtouq                 \
49876         strtoll                 \
49877         strspn                  \
49878         sysconf                 \
49879         usleep                  \
49880         waitpid                 \
49881         wait4                   \
49882         write                   \
49883         send                    \
49884         sendmsg                 \
49885         sendto                  \
49886
49887 do
49888 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49889 echo "$as_me:$LINENO: checking for $ac_func" >&5
49890 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
49891 if eval "test \"\${$as_ac_var+set}\" = set"; then
49892   echo $ECHO_N "(cached) $ECHO_C" >&6
49893 else
49894   cat >conftest.$ac_ext <<_ACEOF
49895 /* confdefs.h.  */
49896 _ACEOF
49897 cat confdefs.h >>conftest.$ac_ext
49898 cat >>conftest.$ac_ext <<_ACEOF
49899 /* end confdefs.h.  */
49900 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
49901    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
49902 #define $ac_func innocuous_$ac_func
49903
49904 /* System header to define __stub macros and hopefully few prototypes,
49905     which can conflict with char $ac_func (); below.
49906     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49907     <limits.h> exists even on freestanding compilers.  */
49908
49909 #ifdef __STDC__
49910 # include <limits.h>
49911 #else
49912 # include <assert.h>
49913 #endif
49914
49915 #undef $ac_func
49916
49917 /* Override any gcc2 internal prototype to avoid an error.  */
49918 #ifdef __cplusplus
49919 extern "C"
49920 {
49921 #endif
49922 /* We use char because int might match the return type of a gcc2
49923    builtin and then its argument prototype would still apply.  */
49924 char $ac_func ();
49925 /* The GNU C library defines this for functions which it implements
49926     to always fail with ENOSYS.  Some functions are actually named
49927     something starting with __ and the normal name is an alias.  */
49928 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
49929 choke me
49930 #else
49931 char (*f) () = $ac_func;
49932 #endif
49933 #ifdef __cplusplus
49934 }
49935 #endif
49936
49937 int
49938 main ()
49939 {
49940 return f != $ac_func;
49941   ;
49942   return 0;
49943 }
49944 _ACEOF
49945 rm -f conftest.$ac_objext conftest$ac_exeext
49946 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49947   (eval $ac_link) 2>conftest.er1
49948   ac_status=$?
49949   grep -v '^ *+' conftest.er1 >conftest.err
49950   rm -f conftest.er1
49951   cat conftest.err >&5
49952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49953   (exit $ac_status); } &&
49954          { ac_try='test -z "$ac_c_werror_flag"
49955                          || test ! -s conftest.err'
49956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49957   (eval $ac_try) 2>&5
49958   ac_status=$?
49959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49960   (exit $ac_status); }; } &&
49961          { ac_try='test -s conftest$ac_exeext'
49962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49963   (eval $ac_try) 2>&5
49964   ac_status=$?
49965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49966   (exit $ac_status); }; }; then
49967   eval "$as_ac_var=yes"
49968 else
49969   echo "$as_me: failed program was:" >&5
49970 sed 's/^/| /' conftest.$ac_ext >&5
49971
49972 eval "$as_ac_var=no"
49973 fi
49974 rm -f conftest.err conftest.$ac_objext \
49975       conftest$ac_exeext conftest.$ac_ext
49976 fi
49977 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
49978 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
49979 if test `eval echo '${'$as_ac_var'}'` = yes; then
49980   cat >>confdefs.h <<_ACEOF
49981 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49982 _ACEOF
49983
49984 fi
49985 done
49986
49987
49988
49989
49990 for ac_func in getopt getpeereid
49991 do
49992 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49993 echo "$as_me:$LINENO: checking for $ac_func" >&5
49994 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
49995 if eval "test \"\${$as_ac_var+set}\" = set"; then
49996   echo $ECHO_N "(cached) $ECHO_C" >&6
49997 else
49998   cat >conftest.$ac_ext <<_ACEOF
49999 /* confdefs.h.  */
50000 _ACEOF
50001 cat confdefs.h >>conftest.$ac_ext
50002 cat >>conftest.$ac_ext <<_ACEOF
50003 /* end confdefs.h.  */
50004 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
50005    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
50006 #define $ac_func innocuous_$ac_func
50007
50008 /* System header to define __stub macros and hopefully few prototypes,
50009     which can conflict with char $ac_func (); below.
50010     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50011     <limits.h> exists even on freestanding compilers.  */
50012
50013 #ifdef __STDC__
50014 # include <limits.h>
50015 #else
50016 # include <assert.h>
50017 #endif
50018
50019 #undef $ac_func
50020
50021 /* Override any gcc2 internal prototype to avoid an error.  */
50022 #ifdef __cplusplus
50023 extern "C"
50024 {
50025 #endif
50026 /* We use char because int might match the return type of a gcc2
50027    builtin and then its argument prototype would still apply.  */
50028 char $ac_func ();
50029 /* The GNU C library defines this for functions which it implements
50030     to always fail with ENOSYS.  Some functions are actually named
50031     something starting with __ and the normal name is an alias.  */
50032 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
50033 choke me
50034 #else
50035 char (*f) () = $ac_func;
50036 #endif
50037 #ifdef __cplusplus
50038 }
50039 #endif
50040
50041 int
50042 main ()
50043 {
50044 return f != $ac_func;
50045   ;
50046   return 0;
50047 }
50048 _ACEOF
50049 rm -f conftest.$ac_objext conftest$ac_exeext
50050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50051   (eval $ac_link) 2>conftest.er1
50052   ac_status=$?
50053   grep -v '^ *+' conftest.er1 >conftest.err
50054   rm -f conftest.er1
50055   cat conftest.err >&5
50056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50057   (exit $ac_status); } &&
50058          { ac_try='test -z "$ac_c_werror_flag"
50059                          || test ! -s conftest.err'
50060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50061   (eval $ac_try) 2>&5
50062   ac_status=$?
50063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50064   (exit $ac_status); }; } &&
50065          { ac_try='test -s conftest$ac_exeext'
50066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50067   (eval $ac_try) 2>&5
50068   ac_status=$?
50069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50070   (exit $ac_status); }; }; then
50071   eval "$as_ac_var=yes"
50072 else
50073   echo "$as_me: failed program was:" >&5
50074 sed 's/^/| /' conftest.$ac_ext >&5
50075
50076 eval "$as_ac_var=no"
50077 fi
50078 rm -f conftest.err conftest.$ac_objext \
50079       conftest$ac_exeext conftest.$ac_ext
50080 fi
50081 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
50082 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
50083 if test `eval echo '${'$as_ac_var'}'` = yes; then
50084   cat >>confdefs.h <<_ACEOF
50085 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
50086 _ACEOF
50087
50088 else
50089   case $LIBOBJS in
50090     "$ac_func.$ac_objext"   | \
50091   *" $ac_func.$ac_objext"   | \
50092     "$ac_func.$ac_objext "* | \
50093   *" $ac_func.$ac_objext "* ) ;;
50094   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
50095 esac
50096
50097 fi
50098 done
50099
50100
50101
50102 if test "$ac_cv_func_getopt" != yes; then
50103         LIBSRCS="$LIBSRCS getopt.c"
50104 fi
50105 if test "$ac_cv_func_getpeereid" != yes; then
50106         echo "$as_me:$LINENO: checking for msg_accrights in msghdr" >&5
50107 echo $ECHO_N "checking for msg_accrights in msghdr... $ECHO_C" >&6
50108 if test "${ol_cv_msghdr_msg_accrights+set}" = set; then
50109   echo $ECHO_N "(cached) $ECHO_C" >&6
50110 else
50111   cat >conftest.$ac_ext <<_ACEOF
50112 /* confdefs.h.  */
50113 _ACEOF
50114 cat confdefs.h >>conftest.$ac_ext
50115 cat >>conftest.$ac_ext <<_ACEOF
50116 /* end confdefs.h.  */
50117 #include <sys/socket.h>
50118 int
50119 main ()
50120 {
50121 struct msghdr m; m.msg_accrightslen=0
50122   ;
50123   return 0;
50124 }
50125 _ACEOF
50126 rm -f conftest.$ac_objext
50127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50128   (eval $ac_compile) 2>conftest.er1
50129   ac_status=$?
50130   grep -v '^ *+' conftest.er1 >conftest.err
50131   rm -f conftest.er1
50132   cat conftest.err >&5
50133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50134   (exit $ac_status); } &&
50135          { ac_try='test -z "$ac_c_werror_flag"
50136                          || test ! -s conftest.err'
50137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50138   (eval $ac_try) 2>&5
50139   ac_status=$?
50140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50141   (exit $ac_status); }; } &&
50142          { ac_try='test -s conftest.$ac_objext'
50143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50144   (eval $ac_try) 2>&5
50145   ac_status=$?
50146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50147   (exit $ac_status); }; }; then
50148   ol_cv_msghdr_msg_accrights=yes
50149 else
50150   echo "$as_me: failed program was:" >&5
50151 sed 's/^/| /' conftest.$ac_ext >&5
50152
50153 ol_cv_msghdr_msg_accrights=no
50154 fi
50155 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50156
50157 fi
50158 echo "$as_me:$LINENO: result: $ol_cv_msghdr_msg_accrights" >&5
50159 echo "${ECHO_T}$ol_cv_msghdr_msg_accrights" >&6
50160   if test $ol_cv_msghdr_msg_accrights = "yes" ; then
50161
50162 cat >>confdefs.h <<\_ACEOF
50163 #define HAVE_MSGHDR_MSG_ACCRIGHTS 1
50164 _ACEOF
50165
50166   fi
50167
50168         if test "$ac_cv_func_getpeereid" != yes; then
50169                 echo "$as_me:$LINENO: checking for msg_control in msghdr" >&5
50170 echo $ECHO_N "checking for msg_control in msghdr... $ECHO_C" >&6
50171 if test "${ol_cv_msghdr_msg_control+set}" = set; then
50172   echo $ECHO_N "(cached) $ECHO_C" >&6
50173 else
50174   cat >conftest.$ac_ext <<_ACEOF
50175 /* confdefs.h.  */
50176 _ACEOF
50177 cat confdefs.h >>conftest.$ac_ext
50178 cat >>conftest.$ac_ext <<_ACEOF
50179 /* end confdefs.h.  */
50180 #include <sys/socket.h>
50181 int
50182 main ()
50183 {
50184 struct msghdr m; m.msg_control=(struct cmsghdr *)0
50185   ;
50186   return 0;
50187 }
50188 _ACEOF
50189 rm -f conftest.$ac_objext
50190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50191   (eval $ac_compile) 2>conftest.er1
50192   ac_status=$?
50193   grep -v '^ *+' conftest.er1 >conftest.err
50194   rm -f conftest.er1
50195   cat conftest.err >&5
50196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50197   (exit $ac_status); } &&
50198          { ac_try='test -z "$ac_c_werror_flag"
50199                          || test ! -s conftest.err'
50200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50201   (eval $ac_try) 2>&5
50202   ac_status=$?
50203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50204   (exit $ac_status); }; } &&
50205          { ac_try='test -s conftest.$ac_objext'
50206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50207   (eval $ac_try) 2>&5
50208   ac_status=$?
50209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50210   (exit $ac_status); }; }; then
50211   ol_cv_msghdr_msg_control=yes
50212 else
50213   echo "$as_me: failed program was:" >&5
50214 sed 's/^/| /' conftest.$ac_ext >&5
50215
50216 ol_cv_msghdr_msg_control=no
50217 fi
50218 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50219
50220 fi
50221 echo "$as_me:$LINENO: result: $ol_cv_msghdr_msg_control" >&5
50222 echo "${ECHO_T}$ol_cv_msghdr_msg_control" >&6
50223   if test $ol_cv_msghdr_msg_control = "yes" ; then
50224
50225 cat >>confdefs.h <<\_ACEOF
50226 #define HAVE_MSGHDR_MSG_CONTROL 1
50227 _ACEOF
50228
50229   fi
50230
50231         fi
50232         LIBSRCS="$LIBSRCS getpeereid.c"
50233 fi
50234 if test "$ac_cv_func_snprintf" != yes -o "$ac_cv_func_vsnprintf" != yes; then
50235         if test "$ac_cv_func_snprintf" != yes; then
50236
50237 cat >>confdefs.h <<\_ACEOF
50238 #define snprintf ber_pvt_snprintf
50239 _ACEOF
50240
50241         fi
50242         if test "$ac_cv_func_vsnprintf" != yes; then
50243
50244 cat >>confdefs.h <<\_ACEOF
50245 #define vsnprintf ber_pvt_vsnprintf
50246 _ACEOF
50247
50248         fi
50249 fi
50250
50251
50252 if test "$ol_enable_slapi" != no ; then
50253
50254 for ac_header in ltdl.h
50255 do
50256 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
50257 if eval "test \"\${$as_ac_Header+set}\" = set"; then
50258   echo "$as_me:$LINENO: checking for $ac_header" >&5
50259 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
50260 if eval "test \"\${$as_ac_Header+set}\" = set"; then
50261   echo $ECHO_N "(cached) $ECHO_C" >&6
50262 fi
50263 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
50264 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
50265 else
50266   # Is the header compilable?
50267 echo "$as_me:$LINENO: checking $ac_header usability" >&5
50268 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
50269 cat >conftest.$ac_ext <<_ACEOF
50270 /* confdefs.h.  */
50271 _ACEOF
50272 cat confdefs.h >>conftest.$ac_ext
50273 cat >>conftest.$ac_ext <<_ACEOF
50274 /* end confdefs.h.  */
50275 $ac_includes_default
50276 #include <$ac_header>
50277 _ACEOF
50278 rm -f conftest.$ac_objext
50279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50280   (eval $ac_compile) 2>conftest.er1
50281   ac_status=$?
50282   grep -v '^ *+' conftest.er1 >conftest.err
50283   rm -f conftest.er1
50284   cat conftest.err >&5
50285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50286   (exit $ac_status); } &&
50287          { ac_try='test -z "$ac_c_werror_flag"
50288                          || test ! -s conftest.err'
50289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50290   (eval $ac_try) 2>&5
50291   ac_status=$?
50292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50293   (exit $ac_status); }; } &&
50294          { ac_try='test -s conftest.$ac_objext'
50295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50296   (eval $ac_try) 2>&5
50297   ac_status=$?
50298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50299   (exit $ac_status); }; }; then
50300   ac_header_compiler=yes
50301 else
50302   echo "$as_me: failed program was:" >&5
50303 sed 's/^/| /' conftest.$ac_ext >&5
50304
50305 ac_header_compiler=no
50306 fi
50307 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50308 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
50309 echo "${ECHO_T}$ac_header_compiler" >&6
50310
50311 # Is the header present?
50312 echo "$as_me:$LINENO: checking $ac_header presence" >&5
50313 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
50314 cat >conftest.$ac_ext <<_ACEOF
50315 /* confdefs.h.  */
50316 _ACEOF
50317 cat confdefs.h >>conftest.$ac_ext
50318 cat >>conftest.$ac_ext <<_ACEOF
50319 /* end confdefs.h.  */
50320 #include <$ac_header>
50321 _ACEOF
50322 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
50323   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
50324   ac_status=$?
50325   grep -v '^ *+' conftest.er1 >conftest.err
50326   rm -f conftest.er1
50327   cat conftest.err >&5
50328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50329   (exit $ac_status); } >/dev/null; then
50330   if test -s conftest.err; then
50331     ac_cpp_err=$ac_c_preproc_warn_flag
50332     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
50333   else
50334     ac_cpp_err=
50335   fi
50336 else
50337   ac_cpp_err=yes
50338 fi
50339 if test -z "$ac_cpp_err"; then
50340   ac_header_preproc=yes
50341 else
50342   echo "$as_me: failed program was:" >&5
50343 sed 's/^/| /' conftest.$ac_ext >&5
50344
50345   ac_header_preproc=no
50346 fi
50347 rm -f conftest.err conftest.$ac_ext
50348 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
50349 echo "${ECHO_T}$ac_header_preproc" >&6
50350
50351 # So?  What about this header?
50352 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
50353   yes:no: )
50354     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
50355 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
50356     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
50357 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
50358     ac_header_preproc=yes
50359     ;;
50360   no:yes:* )
50361     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
50362 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
50363     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
50364 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
50365     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
50366 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
50367     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
50368 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
50369     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
50370 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
50371     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
50372 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
50373     (
50374       cat <<\_ASBOX
50375 ## ------------------------------------------ ##
50376 ## Report this to the AC_PACKAGE_NAME lists.  ##
50377 ## ------------------------------------------ ##
50378 _ASBOX
50379     ) |
50380       sed "s/^/$as_me: WARNING:     /" >&2
50381     ;;
50382 esac
50383 echo "$as_me:$LINENO: checking for $ac_header" >&5
50384 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
50385 if eval "test \"\${$as_ac_Header+set}\" = set"; then
50386   echo $ECHO_N "(cached) $ECHO_C" >&6
50387 else
50388   eval "$as_ac_Header=\$ac_header_preproc"
50389 fi
50390 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
50391 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
50392
50393 fi
50394 if test `eval echo '${'$as_ac_Header'}'` = yes; then
50395   cat >>confdefs.h <<_ACEOF
50396 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
50397 _ACEOF
50398
50399 fi
50400
50401 done
50402
50403
50404         if test $ac_cv_header_ltdl_h != yes ; then
50405                 { { echo "$as_me:$LINENO: error: could not locate <ltdl.h>" >&5
50406 echo "$as_me: error: could not locate <ltdl.h>" >&2;}
50407    { (exit 1); exit 1; }; }
50408         fi
50409         echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
50410 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
50411 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
50412   echo $ECHO_N "(cached) $ECHO_C" >&6
50413 else
50414   ac_check_lib_save_LIBS=$LIBS
50415 LIBS="-lltdl  $LIBS"
50416 cat >conftest.$ac_ext <<_ACEOF
50417 /* confdefs.h.  */
50418 _ACEOF
50419 cat confdefs.h >>conftest.$ac_ext
50420 cat >>conftest.$ac_ext <<_ACEOF
50421 /* end confdefs.h.  */
50422
50423 /* Override any gcc2 internal prototype to avoid an error.  */
50424 #ifdef __cplusplus
50425 extern "C"
50426 #endif
50427 /* We use char because int might match the return type of a gcc2
50428    builtin and then its argument prototype would still apply.  */
50429 char lt_dlinit ();
50430 int
50431 main ()
50432 {
50433 lt_dlinit ();
50434   ;
50435   return 0;
50436 }
50437 _ACEOF
50438 rm -f conftest.$ac_objext conftest$ac_exeext
50439 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50440   (eval $ac_link) 2>conftest.er1
50441   ac_status=$?
50442   grep -v '^ *+' conftest.er1 >conftest.err
50443   rm -f conftest.er1
50444   cat conftest.err >&5
50445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50446   (exit $ac_status); } &&
50447          { ac_try='test -z "$ac_c_werror_flag"
50448                          || test ! -s conftest.err'
50449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50450   (eval $ac_try) 2>&5
50451   ac_status=$?
50452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50453   (exit $ac_status); }; } &&
50454          { ac_try='test -s conftest$ac_exeext'
50455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50456   (eval $ac_try) 2>&5
50457   ac_status=$?
50458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50459   (exit $ac_status); }; }; then
50460   ac_cv_lib_ltdl_lt_dlinit=yes
50461 else
50462   echo "$as_me: failed program was:" >&5
50463 sed 's/^/| /' conftest.$ac_ext >&5
50464
50465 ac_cv_lib_ltdl_lt_dlinit=no
50466 fi
50467 rm -f conftest.err conftest.$ac_objext \
50468       conftest$ac_exeext conftest.$ac_ext
50469 LIBS=$ac_check_lib_save_LIBS
50470 fi
50471 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
50472 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
50473 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
50474
50475                 SLAPI_LIBS=-lltdl
50476                 LIBSLAPI=libslapi.a
50477                 LIBSLAPITOOLS=../libslapi.a
50478
50479 cat >>confdefs.h <<\_ACEOF
50480 #define HAVE_LIBLTDL 1
50481 _ACEOF
50482
50483
50484 else
50485   { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
50486 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
50487    { (exit 1); exit 1; }; }
50488 fi
50489
50490
50491
50492 cat >>confdefs.h <<\_ACEOF
50493 #define LDAP_SLAPI 1
50494 _ACEOF
50495
50496 fi
50497
50498 if test "$ol_enable_debug" != no ; then
50499
50500 cat >>confdefs.h <<\_ACEOF
50501 #define LDAP_DEBUG 1
50502 _ACEOF
50503
50504 fi
50505 if test "$ol_enable_syslog" = yes ; then
50506
50507 cat >>confdefs.h <<\_ACEOF
50508 #define LDAP_SYSLOG 1
50509 _ACEOF
50510
50511 fi
50512 if test "$ol_link_kbind" != no ; then
50513         cat >>confdefs.h <<\_ACEOF
50514 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
50515 _ACEOF
50516
50517 fi
50518 if test "$ol_enable_proctitle" != no ; then
50519
50520 cat >>confdefs.h <<\_ACEOF
50521 #define LDAP_PROCTITLE 1
50522 _ACEOF
50523
50524 fi
50525 if test "$ol_enable_referrals" != no ; then
50526         cat >>confdefs.h <<\_ACEOF
50527 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
50528 _ACEOF
50529
50530 fi
50531 if test "$ol_enable_local" != no; then
50532
50533 cat >>confdefs.h <<\_ACEOF
50534 #define LDAP_PF_LOCAL 1
50535 _ACEOF
50536
50537 fi
50538 if test "$ol_link_ipv6" != no; then
50539
50540 cat >>confdefs.h <<\_ACEOF
50541 #define LDAP_PF_INET6 1
50542 _ACEOF
50543
50544 fi
50545 if test "$ol_enable_cleartext" != no ; then
50546
50547 cat >>confdefs.h <<\_ACEOF
50548 #define SLAPD_CLEARTEXT 1
50549 _ACEOF
50550
50551 fi
50552 if test "$ol_enable_crypt" != no ; then
50553
50554 cat >>confdefs.h <<\_ACEOF
50555 #define SLAPD_CRYPT 1
50556 _ACEOF
50557
50558 fi
50559 if test "$ol_link_spasswd" != no ; then
50560
50561 cat >>confdefs.h <<\_ACEOF
50562 #define SLAPD_SPASSWD 1
50563 _ACEOF
50564
50565 fi
50566 if test "$ol_enable_multimaster" != no ; then
50567
50568 cat >>confdefs.h <<\_ACEOF
50569 #define SLAPD_MULTIMASTER 1
50570 _ACEOF
50571
50572 fi
50573 if test "$ol_enable_rlookups" != no ; then
50574
50575 cat >>confdefs.h <<\_ACEOF
50576 #define SLAPD_RLOOKUPS 1
50577 _ACEOF
50578
50579 fi
50580 if test "$ol_enable_aci" != no ; then
50581
50582 cat >>confdefs.h <<\_ACEOF
50583 #define SLAPD_ACI_ENABLED 1
50584 _ACEOF
50585
50586 fi
50587
50588 if test "$ol_link_modules" != no ; then
50589
50590 cat >>confdefs.h <<\_ACEOF
50591 #define SLAPD_MODULES 1
50592 _ACEOF
50593
50594         BUILD_SLAPD=yes
50595         SLAPD_MODULES_LDFLAGS="-dlopen self"
50596 fi
50597
50598
50599 cat >>confdefs.h <<\_ACEOF
50600 #define SLAPD_MOD_STATIC 1
50601 _ACEOF
50602
50603
50604 cat >>confdefs.h <<\_ACEOF
50605 #define SLAPD_MOD_DYNAMIC 2
50606 _ACEOF
50607
50608
50609 if test "$ol_enable_bdb" != no ; then
50610         BUILD_SLAPD=yes
50611         BUILD_BDB=$ol_enable_bdb
50612         if test "$ol_enable_bdb" = mod ; then
50613                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
50614                 MFLAG=SLAPD_MOD_DYNAMIC
50615         else
50616                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
50617                 MFLAG=SLAPD_MOD_STATIC
50618         fi
50619
50620 cat >>confdefs.h <<_ACEOF
50621 #define SLAPD_BDB $MFLAG
50622 _ACEOF
50623
50624 fi
50625
50626 if test "$ol_enable_dnssrv" != no ; then
50627         BUILD_SLAPD=yes
50628         BUILD_DNSSRV=$ol_enable_dnssrv
50629         if test "$ol_enable_dnssrv" = mod ; then
50630                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
50631                 MFLAG=SLAPD_MOD_DYNAMIC
50632         else
50633                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
50634                 MFLAG=SLAPD_MOD_STATIC
50635         fi
50636
50637 cat >>confdefs.h <<_ACEOF
50638 #define SLAPD_DNSSRV $MFLAG
50639 _ACEOF
50640
50641 fi
50642
50643 if test "$ol_enable_hdb" != no ; then
50644         BUILD_SLAPD=yes
50645         BUILD_HDB=$ol_enable_hdb
50646         if test "$ol_enable_hdb" = mod ; then
50647                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-hdb"
50648                 MFLAG=SLAPD_MOD_DYNAMIC
50649         else
50650                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-hdb"
50651                 MFLAG=SLAPD_MOD_STATIC
50652         fi
50653
50654 cat >>confdefs.h <<_ACEOF
50655 #define SLAPD_HDB $MFLAG
50656 _ACEOF
50657
50658 fi
50659
50660 if test "$ol_enable_ldap" != no ; then
50661         BUILD_SLAPD=yes
50662         BUILD_LDAP=$ol_enable_ldap
50663         if test "$ol_enable_ldap" = mod ; then
50664                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
50665                 MFLAG=SLAPD_MOD_DYNAMIC
50666         else
50667                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
50668                 MFLAG=SLAPD_MOD_STATIC
50669         fi
50670
50671 cat >>confdefs.h <<_ACEOF
50672 #define SLAPD_LDAP $MFLAG
50673 _ACEOF
50674
50675 fi
50676
50677 if test "$ol_link_ldbm" != no -a $ol_enable_ldbm != no; then
50678         BUILD_SLAPD=yes
50679         BUILD_LDBM=$ol_enable_ldbm
50680         if test "$ol_enable_ldbm" = mod ; then
50681                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldbm"
50682                 MFLAG=SLAPD_MOD_DYNAMIC
50683         else
50684                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldbm"
50685                 MFLAG=SLAPD_MOD_STATIC
50686         fi
50687
50688 cat >>confdefs.h <<_ACEOF
50689 #define SLAPD_LDBM $MFLAG
50690 _ACEOF
50691
50692 fi
50693
50694 if test "$ol_enable_meta" != no ; then
50695         BUILD_SLAPD=yes
50696         BUILD_META=$ol_enable_meta
50697         BUILD_REWRITE=yes
50698         if test "$ol_enable_meta" = mod ; then
50699                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
50700                 MFLAG=SLAPD_MOD_DYNAMIC
50701         else
50702                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
50703                 MFLAG=SLAPD_MOD_STATIC
50704         fi
50705
50706 cat >>confdefs.h <<_ACEOF
50707 #define SLAPD_META $MFLAG
50708 _ACEOF
50709
50710 fi
50711
50712 if test "$ol_enable_monitor" != no ; then
50713         BUILD_SLAPD=yes
50714         BUILD_MONITOR=$ol_enable_monitor
50715         if test "$ol_enable_monitor" = mod ; then
50716                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
50717                 MFLAG=SLAPD_MOD_DYNAMIC
50718         else
50719                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
50720                 MFLAG=SLAPD_MOD_STATIC
50721         fi
50722
50723 cat >>confdefs.h <<_ACEOF
50724 #define SLAPD_MONITOR $MFLAG
50725 _ACEOF
50726
50727 fi
50728
50729 if test "$ol_enable_null" != no ; then
50730         BUILD_SLAPD=yes
50731         BUILD_NULL=$ol_enable_null
50732         if test "$ol_enable_null" = mod ; then
50733                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
50734                 MFLAG=SLAPD_MOD_DYNAMIC
50735         else
50736                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
50737                 MFLAG=SLAPD_MOD_STATIC
50738         fi
50739
50740 cat >>confdefs.h <<_ACEOF
50741 #define SLAPD_NULL $MFLAG
50742 _ACEOF
50743
50744 fi
50745
50746 if test "$ol_enable_passwd" != no ; then
50747         BUILD_SLAPD=yes
50748         BUILD_PASSWD=$ol_enable_passwd
50749         if test "$ol_enable_passwd" = mod ; then
50750                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
50751                 MFLAG=SLAPD_MOD_DYNAMIC
50752         else
50753                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
50754                 MFLAG=SLAPD_MOD_STATIC
50755         fi
50756
50757 cat >>confdefs.h <<_ACEOF
50758 #define SLAPD_PASSWD $MFLAG
50759 _ACEOF
50760
50761 fi
50762
50763 if test "$ol_link_perl" != no ; then
50764         BUILD_SLAPD=yes
50765         BUILD_PERL=$ol_enable_perl
50766         if test "$ol_enable_perl" = mod ; then
50767                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
50768                 MFLAG=SLAPD_MOD_DYNAMIC
50769         else
50770                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
50771                 MFLAG=SLAPD_MOD_STATIC
50772         fi
50773
50774 cat >>confdefs.h <<_ACEOF
50775 #define SLAPD_PERL $MFLAG
50776 _ACEOF
50777
50778 fi
50779
50780 if test "$ol_enable_relay" != no ; then
50781         BUILD_SLAPD=yes
50782         BUILD_RELAY=$ol_enable_relay
50783         if test "$ol_enable_relay" = mod ; then
50784                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-relay"
50785                 MFLAG=SLAPD_MOD_DYNAMIC
50786         else
50787                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-relay"
50788                 MFLAG=SLAPD_MOD_STATIC
50789         fi
50790
50791 cat >>confdefs.h <<_ACEOF
50792 #define SLAPD_RELAY $MFLAG
50793 _ACEOF
50794
50795 fi
50796
50797 if test "$ol_enable_shell" != no ; then
50798         if test "$ol_link_thread" != no ; then
50799                 { echo "$as_me:$LINENO: WARNING: Use of --without-threads is recommended with back-shell" >&5
50800 echo "$as_me: WARNING: Use of --without-threads is recommended with back-shell" >&2;}
50801         fi
50802         BUILD_SLAPD=yes
50803         BUILD_SHELL=$ol_enable_shell
50804         if test "$ol_enable_shell" = mod ; then
50805                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
50806                 MFLAG=SLAPD_MOD_DYNAMIC
50807         else
50808                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
50809                 MFLAG=SLAPD_MOD_STATIC
50810         fi
50811
50812 cat >>confdefs.h <<_ACEOF
50813 #define SLAPD_SHELL $MFLAG
50814 _ACEOF
50815
50816 fi
50817
50818 if test "$ol_link_sql" != no ; then
50819         BUILD_SLAPD=yes
50820         BUILD_SQL=$ol_enable_sql
50821         if test "$ol_enable_sql" = mod; then
50822                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
50823                 MFLAG=SLAPD_MOD_DYNAMIC
50824         else
50825                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
50826                 MFLAG=SLAPD_MOD_STATIC
50827         fi
50828
50829 cat >>confdefs.h <<_ACEOF
50830 #define SLAPD_SQL $MFLAG
50831 _ACEOF
50832
50833 fi
50834
50835 if test "$ol_enable_accesslog" != no ; then
50836         BUILD_ACCESSLOG=$ol_enable_accesslog
50837         if test "$ol_enable_accesslog" = mod ; then
50838                 MFLAG=SLAPD_MOD_DYNAMIC
50839                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS accesslog.la"
50840         else
50841                 MFLAG=SLAPD_MOD_STATIC
50842                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS accesslog.o"
50843         fi
50844
50845 cat >>confdefs.h <<_ACEOF
50846 #define SLAPD_OVER_ACCESSLOG $MFLAG
50847 _ACEOF
50848
50849 fi
50850
50851 if test "$ol_enable_denyop" != no ; then
50852         BUILD_DENYOP=$ol_enable_denyop
50853         if test "$ol_enable_denyop" = mod ; then
50854                 MFLAG=SLAPD_MOD_DYNAMIC
50855                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS denyop.la"
50856         else
50857                 MFLAG=SLAPD_MOD_STATIC
50858                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS denyop.o"
50859         fi
50860
50861 cat >>confdefs.h <<_ACEOF
50862 #define SLAPD_OVER_DENYOP $MFLAG
50863 _ACEOF
50864
50865 fi
50866
50867 if test "$ol_enable_dyngroup" != no ; then
50868         BUILD_DYNGROUP=$ol_enable_dyngroup
50869         if test "$ol_enable_dyngroup" = mod ; then
50870                 MFLAG=SLAPD_MOD_DYNAMIC
50871                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dyngroup.la"
50872         else
50873                 MFLAG=SLAPD_MOD_STATIC
50874                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dyngroup.o"
50875         fi
50876
50877 cat >>confdefs.h <<_ACEOF
50878 #define SLAPD_OVER_DYNGROUP $MFLAG
50879 _ACEOF
50880
50881 fi
50882
50883 if test "$ol_enable_dynlist" != no ; then
50884         BUILD_DYNLIST=$ol_enable_dynlist
50885         if test "$ol_enable_dynlist" = mod ; then
50886                 MFLAG=SLAPD_MOD_DYNAMIC
50887                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dynlist.la"
50888         else
50889                 MFLAG=SLAPD_MOD_STATIC
50890                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dynlist.o"
50891         fi
50892
50893 cat >>confdefs.h <<_ACEOF
50894 #define SLAPD_OVER_DYNLIST $MFLAG
50895 _ACEOF
50896
50897 fi
50898
50899 if test "$ol_enable_glue" != no ; then
50900         BUILD_GLUE=$ol_enable_glue
50901         if test "$ol_enable_glue" = mod ; then
50902                 MFLAG=SLAPD_MOD_DYNAMIC
50903                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS glue.la"
50904         else
50905                 MFLAG=SLAPD_MOD_STATIC
50906                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS glue.o"
50907         fi
50908
50909 cat >>confdefs.h <<_ACEOF
50910 #define SLAPD_OVER_GLUE $MFLAG
50911 _ACEOF
50912
50913 fi
50914
50915 if test "$ol_enable_lastmod" != no ; then
50916         BUILD_LASTMOD=$ol_enable_lastmod
50917         if test "$ol_enable_lastmod" = mod ; then
50918                 MFLAG=SLAPD_MOD_DYNAMIC
50919                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS lastmod.la"
50920         else
50921                 MFLAG=SLAPD_MOD_STATIC
50922                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS lastmod.o"
50923         fi
50924
50925 cat >>confdefs.h <<_ACEOF
50926 #define SLAPD_OVER_LASTMOD $MFLAG
50927 _ACEOF
50928
50929 fi
50930
50931 if test "$ol_enable_ppolicy" != no ; then
50932         BUILD_PPOLICY=$ol_enable_ppolicy
50933         if test "$ol_enable_ppolicy" = mod ; then
50934                 MFLAG=SLAPD_MOD_DYNAMIC
50935                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS ppolicy.la"
50936         else
50937                 MFLAG=SLAPD_MOD_STATIC
50938                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS ppolicy.o"
50939         fi
50940
50941 cat >>confdefs.h <<_ACEOF
50942 #define SLAPD_OVER_PPOLICY $MFLAG
50943 _ACEOF
50944
50945 fi
50946
50947 if test "$ol_enable_proxycache" != no ; then
50948         BUILD_PROXYCACHE=$ol_enable_proxycache
50949         if test "$ol_enable_proxycache" = mod ; then
50950                 MFLAG=SLAPD_MOD_DYNAMIC
50951                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS pcache.la"
50952         else
50953                 MFLAG=SLAPD_MOD_STATIC
50954                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS pcache.o"
50955         fi
50956
50957 cat >>confdefs.h <<_ACEOF
50958 #define SLAPD_OVER_PROXYCACHE $MFLAG
50959 _ACEOF
50960
50961 fi
50962
50963 if test "$ol_enable_refint" != no ; then
50964         BUILD_REFINT=$ol_enable_refint
50965         if test "$ol_enable_refint" = mod ; then
50966                 MFLAG=SLAPD_MOD_DYNAMIC
50967                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS refint.la"
50968         else
50969                 MFLAG=SLAPD_MOD_STATIC
50970                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS refint.o"
50971         fi
50972
50973 cat >>confdefs.h <<_ACEOF
50974 #define SLAPD_OVER_REFINT $MFLAG
50975 _ACEOF
50976
50977 fi
50978
50979 if test "$ol_enable_retcode" != no ; then
50980         BUILD_RETCODE=$ol_enable_retcode
50981         if test "$ol_enable_retcode" = mod ; then
50982                 MFLAG=SLAPD_MOD_DYNAMIC
50983                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS retcode.la"
50984         else
50985                 MFLAG=SLAPD_MOD_STATIC
50986                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS retcode.o"
50987         fi
50988
50989 cat >>confdefs.h <<_ACEOF
50990 #define SLAPD_OVER_RETCODE $MFLAG
50991 _ACEOF
50992
50993 fi
50994
50995 if test "$ol_enable_rwm" != no ; then
50996         BUILD_REWRITE=yes
50997         BUILD_RWM=$ol_enable_rwm
50998         if test "$ol_enable_rwm" = mod ; then
50999                 MFLAG=SLAPD_MOD_DYNAMIC
51000                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS rwm.la"
51001         else
51002                 MFLAG=SLAPD_MOD_STATIC
51003                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS rwm_x.o"
51004         fi
51005
51006 cat >>confdefs.h <<_ACEOF
51007 #define SLAPD_OVER_RWM $MFLAG
51008 _ACEOF
51009
51010 fi
51011
51012 if test "$ol_enable_syncprov" != no ; then
51013         BUILD_SYNCPROV=$ol_enable_syncprov
51014         if test "$ol_enable_syncprov" = mod ; then
51015                 MFLAG=SLAPD_MOD_DYNAMIC
51016                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS syncprov.la"
51017         else
51018                 MFLAG=SLAPD_MOD_STATIC
51019                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS syncprov.o"
51020         fi
51021
51022 cat >>confdefs.h <<_ACEOF
51023 #define SLAPD_OVER_SYNCPROV $MFLAG
51024 _ACEOF
51025
51026 fi
51027
51028 if test "$ol_enable_translucent" != no ; then
51029         BUILD_TRANSLUCENT=$ol_enable_translucent
51030         if test "$ol_enable_translucent" = mod ; then
51031                 MFLAG=SLAPD_MOD_DYNAMIC
51032                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS translucent.la"
51033         else
51034                 MFLAG=SLAPD_MOD_STATIC
51035                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS translucent.o"
51036         fi
51037
51038 cat >>confdefs.h <<_ACEOF
51039 #define SLAPD_OVER_TRANSLUCENT $MFLAG
51040 _ACEOF
51041
51042 fi
51043
51044 if test "$ol_enable_unique" != no ; then
51045         BUILD_UNIQUE=$ol_enable_unique
51046         if test "$ol_enable_unique" = mod ; then
51047                 MFLAG=SLAPD_MOD_DYNAMIC
51048                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS unique.la"
51049         else
51050                 MFLAG=SLAPD_MOD_STATIC
51051                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS unique.o"
51052         fi
51053
51054 cat >>confdefs.h <<_ACEOF
51055 #define SLAPD_OVER_UNIQUE $MFLAG
51056 _ACEOF
51057
51058 fi
51059
51060 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
51061         $BUILD_SLAPD = yes ; then
51062         BUILD_SLURPD=yes
51063 fi
51064
51065 if test "$ol_enable_rewrite" != no ; then
51066
51067 cat >>confdefs.h <<\_ACEOF
51068 #define ENABLE_REWRITE 1
51069 _ACEOF
51070
51071         BUILD_REWRITE=yes
51072 fi
51073
51074 if test "$ol_enable_slapi" != no ; then
51075
51076 cat >>confdefs.h <<\_ACEOF
51077 #define ENABLE_SLAPI 1
51078 _ACEOF
51079
51080         BUILD_SLAPI=yes
51081         SLAPD_SLAPI_DEPEND=libslapi.a
51082 fi
51083
51084
51085
51086 if test "$ac_cv_mingw32" = yes ; then
51087         PLAT=NT
51088         SLAPD_MODULES_LDFLAGS=
51089 else
51090         PLAT=UNIX
51091 fi
51092
51093
51094
51095
51096
51097
51098
51099
51100
51101
51102
51103
51104
51105
51106
51107
51108
51109
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 # Check whether --with-xxinstall or --without-xxinstall was given.
51172 if test "${with_xxinstall+set}" = set; then
51173   withval="$with_xxinstall"
51174
51175 fi;
51176
51177
51178                                                                                                                                                                                                                                                                                                                                                                                                                 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"
51179
51180           ac_config_commands="$ac_config_commands default"
51181
51182
51183
51184 test "x$prefix" = xNONE && prefix=$ac_default_prefix
51185 # Let make expand exec_prefix.
51186 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
51187
51188 # VPATH may cause trouble with some makes, so we remove $(srcdir),
51189 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
51190 # trailing colons and then remove the whole line if VPATH becomes empty
51191 # (actually we leave an empty line to preserve line numbers).
51192 if test "x$srcdir" = x.; then
51193   ac_vpsub='/^[  ]*VPATH[        ]*=/{
51194 s/:*\$(srcdir):*/:/;
51195 s/:*\${srcdir}:*/:/;
51196 s/:*@srcdir@:*/:/;
51197 s/^\([^=]*=[     ]*\):*/\1/;
51198 s/:*$//;
51199 s/^[^=]*=[       ]*$//;
51200 }'
51201 fi
51202
51203 DEFS=-DHAVE_CONFIG_H
51204
51205 ac_libobjs=
51206 ac_ltlibobjs=
51207 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
51208   # 1. Remove the extension, and $U if already installed.
51209   ac_i=`echo "$ac_i" |
51210          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
51211   # 2. Add them.
51212   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
51213   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
51214 done
51215 LIBOBJS=$ac_libobjs
51216
51217 LTLIBOBJS=$ac_ltlibobjs
51218
51219
51220 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
51221   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
51222 Usually this means the macro was only invoked conditionally." >&5
51223 echo "$as_me: error: conditional \"AMDEP\" was never defined.
51224 Usually this means the macro was only invoked conditionally." >&2;}
51225    { (exit 1); exit 1; }; }
51226 fi
51227 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
51228   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
51229 Usually this means the macro was only invoked conditionally." >&5
51230 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
51231 Usually this means the macro was only invoked conditionally." >&2;}
51232    { (exit 1); exit 1; }; }
51233 fi
51234 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
51235   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
51236 Usually this means the macro was only invoked conditionally." >&5
51237 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
51238 Usually this means the macro was only invoked conditionally." >&2;}
51239    { (exit 1); exit 1; }; }
51240 fi
51241 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
51242   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
51243 Usually this means the macro was only invoked conditionally." >&5
51244 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
51245 Usually this means the macro was only invoked conditionally." >&2;}
51246    { (exit 1); exit 1; }; }
51247 fi
51248
51249 : ${CONFIG_STATUS=./config.status}
51250 ac_clean_files_save=$ac_clean_files
51251 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
51252 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
51253 echo "$as_me: creating $CONFIG_STATUS" >&6;}
51254 cat >$CONFIG_STATUS <<_ACEOF
51255 #! $SHELL
51256 # Generated by $as_me.
51257 # Run this file to recreate the current configuration.
51258 # Compiler output produced by configure, useful for debugging
51259 # configure, is in config.log if it exists.
51260
51261 debug=false
51262 ac_cs_recheck=false
51263 ac_cs_silent=false
51264 SHELL=\${CONFIG_SHELL-$SHELL}
51265 _ACEOF
51266
51267 cat >>$CONFIG_STATUS <<\_ACEOF
51268 ## --------------------- ##
51269 ## M4sh Initialization.  ##
51270 ## --------------------- ##
51271
51272 # Be Bourne compatible
51273 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
51274   emulate sh
51275   NULLCMD=:
51276   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
51277   # is contrary to our usage.  Disable this feature.
51278   alias -g '${1+"$@"}'='"$@"'
51279 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
51280   set -o posix
51281 fi
51282 DUALCASE=1; export DUALCASE # for MKS sh
51283
51284 # Support unset when possible.
51285 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
51286   as_unset=unset
51287 else
51288   as_unset=false
51289 fi
51290
51291
51292 # Work around bugs in pre-3.0 UWIN ksh.
51293 $as_unset ENV MAIL MAILPATH
51294 PS1='$ '
51295 PS2='> '
51296 PS4='+ '
51297
51298 # NLS nuisances.
51299 for as_var in \
51300   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
51301   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
51302   LC_TELEPHONE LC_TIME
51303 do
51304   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
51305     eval $as_var=C; export $as_var
51306   else
51307     $as_unset $as_var
51308   fi
51309 done
51310
51311 # Required to use basename.
51312 if expr a : '\(a\)' >/dev/null 2>&1; then
51313   as_expr=expr
51314 else
51315   as_expr=false
51316 fi
51317
51318 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
51319   as_basename=basename
51320 else
51321   as_basename=false
51322 fi
51323
51324
51325 # Name of the executable.
51326 as_me=`$as_basename "$0" ||
51327 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
51328          X"$0" : 'X\(//\)$' \| \
51329          X"$0" : 'X\(/\)$' \| \
51330          .     : '\(.\)' 2>/dev/null ||
51331 echo X/"$0" |
51332     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
51333           /^X\/\(\/\/\)$/{ s//\1/; q; }
51334           /^X\/\(\/\).*/{ s//\1/; q; }
51335           s/.*/./; q'`
51336
51337
51338 # PATH needs CR, and LINENO needs CR and PATH.
51339 # Avoid depending upon Character Ranges.
51340 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
51341 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
51342 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
51343 as_cr_digits='0123456789'
51344 as_cr_alnum=$as_cr_Letters$as_cr_digits
51345
51346 # The user is always right.
51347 if test "${PATH_SEPARATOR+set}" != set; then
51348   echo "#! /bin/sh" >conf$$.sh
51349   echo  "exit 0"   >>conf$$.sh
51350   chmod +x conf$$.sh
51351   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
51352     PATH_SEPARATOR=';'
51353   else
51354     PATH_SEPARATOR=:
51355   fi
51356   rm -f conf$$.sh
51357 fi
51358
51359
51360   as_lineno_1=$LINENO
51361   as_lineno_2=$LINENO
51362   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
51363   test "x$as_lineno_1" != "x$as_lineno_2" &&
51364   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
51365   # Find who we are.  Look in the path if we contain no path at all
51366   # relative or not.
51367   case $0 in
51368     *[\\/]* ) as_myself=$0 ;;
51369     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51370 for as_dir in $PATH
51371 do
51372   IFS=$as_save_IFS
51373   test -z "$as_dir" && as_dir=.
51374   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
51375 done
51376
51377        ;;
51378   esac
51379   # We did not find ourselves, most probably we were run as `sh COMMAND'
51380   # in which case we are not to be found in the path.
51381   if test "x$as_myself" = x; then
51382     as_myself=$0
51383   fi
51384   if test ! -f "$as_myself"; then
51385     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
51386 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
51387    { (exit 1); exit 1; }; }
51388   fi
51389   case $CONFIG_SHELL in
51390   '')
51391     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51392 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
51393 do
51394   IFS=$as_save_IFS
51395   test -z "$as_dir" && as_dir=.
51396   for as_base in sh bash ksh sh5; do
51397          case $as_dir in
51398          /*)
51399            if ("$as_dir/$as_base" -c '
51400   as_lineno_1=$LINENO
51401   as_lineno_2=$LINENO
51402   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
51403   test "x$as_lineno_1" != "x$as_lineno_2" &&
51404   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
51405              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
51406              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
51407              CONFIG_SHELL=$as_dir/$as_base
51408              export CONFIG_SHELL
51409              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
51410            fi;;
51411          esac
51412        done
51413 done
51414 ;;
51415   esac
51416
51417   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
51418   # uniformly replaced by the line number.  The first 'sed' inserts a
51419   # line-number line before each line; the second 'sed' does the real
51420   # work.  The second script uses 'N' to pair each line-number line
51421   # with the numbered line, and appends trailing '-' during
51422   # substitution so that $LINENO is not a special case at line end.
51423   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
51424   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
51425   sed '=' <$as_myself |
51426     sed '
51427       N
51428       s,$,-,
51429       : loop
51430       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
51431       t loop
51432       s,-$,,
51433       s,^['$as_cr_digits']*\n,,
51434     ' >$as_me.lineno &&
51435   chmod +x $as_me.lineno ||
51436     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
51437 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
51438    { (exit 1); exit 1; }; }
51439
51440   # Don't try to exec as it changes $[0], causing all sort of problems
51441   # (the dirname of $[0] is not the place where we might find the
51442   # original and so on.  Autoconf is especially sensible to this).
51443   . ./$as_me.lineno
51444   # Exit status is that of the last command.
51445   exit
51446 }
51447
51448
51449 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
51450   *c*,-n*) ECHO_N= ECHO_C='
51451 ' ECHO_T='      ' ;;
51452   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
51453   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
51454 esac
51455
51456 if expr a : '\(a\)' >/dev/null 2>&1; then
51457   as_expr=expr
51458 else
51459   as_expr=false
51460 fi
51461
51462 rm -f conf$$ conf$$.exe conf$$.file
51463 echo >conf$$.file
51464 if ln -s conf$$.file conf$$ 2>/dev/null; then
51465   # We could just check for DJGPP; but this test a) works b) is more generic
51466   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
51467   if test -f conf$$.exe; then
51468     # Don't use ln at all; we don't have any links
51469     as_ln_s='cp -p'
51470   else
51471     as_ln_s='ln -s'
51472   fi
51473 elif ln conf$$.file conf$$ 2>/dev/null; then
51474   as_ln_s=ln
51475 else
51476   as_ln_s='cp -p'
51477 fi
51478 rm -f conf$$ conf$$.exe conf$$.file
51479
51480 if mkdir -p . 2>/dev/null; then
51481   as_mkdir_p=:
51482 else
51483   test -d ./-p && rmdir ./-p
51484   as_mkdir_p=false
51485 fi
51486
51487 as_executable_p="test -f"
51488
51489 # Sed expression to map a string onto a valid CPP name.
51490 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
51491
51492 # Sed expression to map a string onto a valid variable name.
51493 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
51494
51495
51496 # IFS
51497 # We need space, tab and new line, in precisely that order.
51498 as_nl='
51499 '
51500 IFS="   $as_nl"
51501
51502 # CDPATH.
51503 $as_unset CDPATH
51504
51505 exec 6>&1
51506
51507 # Open the log real soon, to keep \$[0] and so on meaningful, and to
51508 # report actual input values of CONFIG_FILES etc. instead of their
51509 # values after options handling.  Logging --version etc. is OK.
51510 exec 5>>config.log
51511 {
51512   echo
51513   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
51514 ## Running $as_me. ##
51515 _ASBOX
51516 } >&5
51517 cat >&5 <<_CSEOF
51518
51519 This file was extended by $as_me, which was
51520 generated by GNU Autoconf 2.59.  Invocation command line was
51521
51522   CONFIG_FILES    = $CONFIG_FILES
51523   CONFIG_HEADERS  = $CONFIG_HEADERS
51524   CONFIG_LINKS    = $CONFIG_LINKS
51525   CONFIG_COMMANDS = $CONFIG_COMMANDS
51526   $ $0 $@
51527
51528 _CSEOF
51529 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
51530 echo >&5
51531 _ACEOF
51532
51533 # Files that config.status was made for.
51534 if test -n "$ac_config_files"; then
51535   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
51536 fi
51537
51538 if test -n "$ac_config_headers"; then
51539   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
51540 fi
51541
51542 if test -n "$ac_config_links"; then
51543   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
51544 fi
51545
51546 if test -n "$ac_config_commands"; then
51547   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
51548 fi
51549
51550 cat >>$CONFIG_STATUS <<\_ACEOF
51551
51552 ac_cs_usage="\
51553 \`$as_me' instantiates files from templates according to the
51554 current configuration.
51555
51556 Usage: $0 [OPTIONS] [FILE]...
51557
51558   -h, --help       print this help, then exit
51559   -V, --version    print version number, then exit
51560   -q, --quiet      do not print progress messages
51561   -d, --debug      don't remove temporary files
51562       --recheck    update $as_me by reconfiguring in the same conditions
51563   --file=FILE[:TEMPLATE]
51564                    instantiate the configuration file FILE
51565   --header=FILE[:TEMPLATE]
51566                    instantiate the configuration header FILE
51567
51568 Configuration files:
51569 $config_files
51570
51571 Configuration headers:
51572 $config_headers
51573
51574 Configuration commands:
51575 $config_commands
51576
51577 Report bugs to <bug-autoconf@gnu.org>."
51578 _ACEOF
51579
51580 cat >>$CONFIG_STATUS <<_ACEOF
51581 ac_cs_version="\\
51582 config.status
51583 configured by $0, generated by GNU Autoconf 2.59,
51584   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
51585
51586 Copyright (C) 2003 Free Software Foundation, Inc.
51587 This config.status script is free software; the Free Software Foundation
51588 gives unlimited permission to copy, distribute and modify it."
51589 srcdir=$srcdir
51590 INSTALL="$INSTALL"
51591 _ACEOF
51592
51593 cat >>$CONFIG_STATUS <<\_ACEOF
51594 # If no file are specified by the user, then we need to provide default
51595 # value.  By we need to know if files were specified by the user.
51596 ac_need_defaults=:
51597 while test $# != 0
51598 do
51599   case $1 in
51600   --*=*)
51601     ac_option=`expr "x$1" : 'x\([^=]*\)='`
51602     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
51603     ac_shift=:
51604     ;;
51605   -*)
51606     ac_option=$1
51607     ac_optarg=$2
51608     ac_shift=shift
51609     ;;
51610   *) # This is not an option, so the user has probably given explicit
51611      # arguments.
51612      ac_option=$1
51613      ac_need_defaults=false;;
51614   esac
51615
51616   case $ac_option in
51617   # Handling of the options.
51618 _ACEOF
51619 cat >>$CONFIG_STATUS <<\_ACEOF
51620   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
51621     ac_cs_recheck=: ;;
51622   --version | --vers* | -V )
51623     echo "$ac_cs_version"; exit 0 ;;
51624   --he | --h)
51625     # Conflict between --help and --header
51626     { { echo "$as_me:$LINENO: error: ambiguous option: $1
51627 Try \`$0 --help' for more information." >&5
51628 echo "$as_me: error: ambiguous option: $1
51629 Try \`$0 --help' for more information." >&2;}
51630    { (exit 1); exit 1; }; };;
51631   --help | --hel | -h )
51632     echo "$ac_cs_usage"; exit 0 ;;
51633   --debug | --d* | -d )
51634     debug=: ;;
51635   --file | --fil | --fi | --f )
51636     $ac_shift
51637     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
51638     ac_need_defaults=false;;
51639   --header | --heade | --head | --hea )
51640     $ac_shift
51641     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
51642     ac_need_defaults=false;;
51643   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
51644   | -silent | --silent | --silen | --sile | --sil | --si | --s)
51645     ac_cs_silent=: ;;
51646
51647   # This is an error.
51648   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
51649 Try \`$0 --help' for more information." >&5
51650 echo "$as_me: error: unrecognized option: $1
51651 Try \`$0 --help' for more information." >&2;}
51652    { (exit 1); exit 1; }; } ;;
51653
51654   *) ac_config_targets="$ac_config_targets $1" ;;
51655
51656   esac
51657   shift
51658 done
51659
51660 ac_configure_extra_args=
51661
51662 if $ac_cs_silent; then
51663   exec 6>/dev/null
51664   ac_configure_extra_args="$ac_configure_extra_args --silent"
51665 fi
51666
51667 _ACEOF
51668 cat >>$CONFIG_STATUS <<_ACEOF
51669 if \$ac_cs_recheck; then
51670   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
51671   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
51672 fi
51673
51674 _ACEOF
51675
51676 cat >>$CONFIG_STATUS <<_ACEOF
51677 #
51678 # INIT-COMMANDS section.
51679 #
51680
51681 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
51682 STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS"
51683
51684 _ACEOF
51685
51686
51687
51688 cat >>$CONFIG_STATUS <<\_ACEOF
51689 for ac_config_target in $ac_config_targets
51690 do
51691   case "$ac_config_target" in
51692   # Handling of arguments.
51693   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile:build/top.mk:Makefile.in:build/dir.mk" ;;
51694   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk" ;;
51695   "doc/man/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk" ;;
51696   "doc/man/man1/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk" ;;
51697   "doc/man/man3/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk" ;;
51698   "doc/man/man5/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk" ;;
51699   "doc/man/man8/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk" ;;
51700   "clients/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk" ;;
51701   "clients/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk" ;;
51702   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile:build/top.mk:include/Makefile.in" ;;
51703   "libraries/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk" ;;
51704   "libraries/liblber/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
51705   "libraries/libldap/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
51706   "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" ;;
51707   "libraries/liblunicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
51708   "libraries/liblutil/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
51709   "libraries/librewrite/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
51710   "servers/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk" ;;
51711   "servers/slapd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk" ;;
51712   "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" ;;
51713   "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" ;;
51714   "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" ;;
51715   "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" ;;
51716   "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" ;;
51717   "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" ;;
51718   "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" ;;
51719   "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" ;;
51720   "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" ;;
51721   "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" ;;
51722   "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" ;;
51723   "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" ;;
51724   "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" ;;
51725   "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" ;;
51726   "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" ;;
51727   "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" ;;
51728   "servers/slapd/overlays/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk" ;;
51729   "servers/slurpd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk" ;;
51730   "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk" ;;
51731   "tests/run" ) CONFIG_FILES="$CONFIG_FILES tests/run" ;;
51732   "tests/progs/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk" ;;
51733   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
51734   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
51735   "include/portable.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/portable.h:include/portable.hin" ;;
51736   "include/ldap_features.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ldap_features.h:include/ldap_features.hin" ;;
51737   "include/lber_types.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/lber_types.h:include/lber_types.hin" ;;
51738   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
51739 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
51740    { (exit 1); exit 1; }; };;
51741   esac
51742 done
51743
51744 # If the user did not use the arguments to specify the items to instantiate,
51745 # then the envvar interface is used.  Set only those that are not.
51746 # We use the long form for the default assignment because of an extremely
51747 # bizarre bug on SunOS 4.1.3.
51748 if $ac_need_defaults; then
51749   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
51750   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
51751   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
51752 fi
51753
51754 # Have a temporary directory for convenience.  Make it in the build tree
51755 # simply because there is no reason to put it here, and in addition,
51756 # creating and moving files from /tmp can sometimes cause problems.
51757 # Create a temporary directory, and hook for its removal unless debugging.
51758 $debug ||
51759 {
51760   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
51761   trap '{ (exit 1); exit 1; }' 1 2 13 15
51762 }
51763
51764 # Create a (secure) tmp directory for tmp files.
51765
51766 {
51767   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
51768   test -n "$tmp" && test -d "$tmp"
51769 }  ||
51770 {
51771   tmp=./confstat$$-$RANDOM
51772   (umask 077 && mkdir $tmp)
51773 } ||
51774 {
51775    echo "$me: cannot create a temporary directory in ." >&2
51776    { (exit 1); exit 1; }
51777 }
51778
51779 _ACEOF
51780
51781 cat >>$CONFIG_STATUS <<_ACEOF
51782
51783 #
51784 # CONFIG_FILES section.
51785 #
51786
51787 # No need to generate the scripts if there are no CONFIG_FILES.
51788 # This happens for instance when ./config.status config.h
51789 if test -n "\$CONFIG_FILES"; then
51790   # Protect against being on the right side of a sed subst in config.status.
51791   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
51792    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
51793 s,@SHELL@,$SHELL,;t t
51794 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
51795 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
51796 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
51797 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
51798 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
51799 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
51800 s,@exec_prefix@,$exec_prefix,;t t
51801 s,@prefix@,$prefix,;t t
51802 s,@program_transform_name@,$program_transform_name,;t t
51803 s,@bindir@,$bindir,;t t
51804 s,@sbindir@,$sbindir,;t t
51805 s,@libexecdir@,$libexecdir,;t t
51806 s,@datadir@,$datadir,;t t
51807 s,@sysconfdir@,$sysconfdir,;t t
51808 s,@sharedstatedir@,$sharedstatedir,;t t
51809 s,@localstatedir@,$localstatedir,;t t
51810 s,@libdir@,$libdir,;t t
51811 s,@includedir@,$includedir,;t t
51812 s,@oldincludedir@,$oldincludedir,;t t
51813 s,@infodir@,$infodir,;t t
51814 s,@mandir@,$mandir,;t t
51815 s,@build_alias@,$build_alias,;t t
51816 s,@host_alias@,$host_alias,;t t
51817 s,@target_alias@,$target_alias,;t t
51818 s,@DEFS@,$DEFS,;t t
51819 s,@ECHO_C@,$ECHO_C,;t t
51820 s,@ECHO_N@,$ECHO_N,;t t
51821 s,@ECHO_T@,$ECHO_T,;t t
51822 s,@LIBS@,$LIBS,;t t
51823 s,@build@,$build,;t t
51824 s,@build_cpu@,$build_cpu,;t t
51825 s,@build_vendor@,$build_vendor,;t t
51826 s,@build_os@,$build_os,;t t
51827 s,@host@,$host,;t t
51828 s,@host_cpu@,$host_cpu,;t t
51829 s,@host_vendor@,$host_vendor,;t t
51830 s,@host_os@,$host_os,;t t
51831 s,@target@,$target,;t t
51832 s,@target_cpu@,$target_cpu,;t t
51833 s,@target_vendor@,$target_vendor,;t t
51834 s,@target_os@,$target_os,;t t
51835 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
51836 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
51837 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
51838 s,@CYGPATH_W@,$CYGPATH_W,;t t
51839 s,@PACKAGE@,$PACKAGE,;t t
51840 s,@VERSION@,$VERSION,;t t
51841 s,@ACLOCAL@,$ACLOCAL,;t t
51842 s,@AUTOCONF@,$AUTOCONF,;t t
51843 s,@AUTOMAKE@,$AUTOMAKE,;t t
51844 s,@AUTOHEADER@,$AUTOHEADER,;t t
51845 s,@MAKEINFO@,$MAKEINFO,;t t
51846 s,@install_sh@,$install_sh,;t t
51847 s,@STRIP@,$STRIP,;t t
51848 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
51849 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
51850 s,@mkdir_p@,$mkdir_p,;t t
51851 s,@AWK@,$AWK,;t t
51852 s,@SET_MAKE@,$SET_MAKE,;t t
51853 s,@am__leading_dot@,$am__leading_dot,;t t
51854 s,@AMTAR@,$AMTAR,;t t
51855 s,@am__tar@,$am__tar,;t t
51856 s,@am__untar@,$am__untar,;t t
51857 s,@OPENLDAP_LIBRELEASE@,$OPENLDAP_LIBRELEASE,;t t
51858 s,@OPENLDAP_LIBVERSION@,$OPENLDAP_LIBVERSION,;t t
51859 s,@OPENLDAP_RELEASE_DATE@,$OPENLDAP_RELEASE_DATE,;t t
51860 s,@top_builddir@,$top_builddir,;t t
51861 s,@ldap_subdir@,$ldap_subdir,;t t
51862 s,@CC@,$CC,;t t
51863 s,@AR@,$AR,;t t
51864 s,@CFLAGS@,$CFLAGS,;t t
51865 s,@LDFLAGS@,$LDFLAGS,;t t
51866 s,@CPPFLAGS@,$CPPFLAGS,;t t
51867 s,@ac_ct_CC@,$ac_ct_CC,;t t
51868 s,@EXEEXT@,$EXEEXT,;t t
51869 s,@OBJEXT@,$OBJEXT,;t t
51870 s,@DEPDIR@,$DEPDIR,;t t
51871 s,@am__include@,$am__include,;t t
51872 s,@am__quote@,$am__quote,;t t
51873 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
51874 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
51875 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
51876 s,@CCDEPMODE@,$CCDEPMODE,;t t
51877 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
51878 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
51879 s,@EGREP@,$EGREP,;t t
51880 s,@LN_S@,$LN_S,;t t
51881 s,@ECHO@,$ECHO,;t t
51882 s,@ac_ct_AR@,$ac_ct_AR,;t t
51883 s,@RANLIB@,$RANLIB,;t t
51884 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
51885 s,@DLLTOOL@,$DLLTOOL,;t t
51886 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
51887 s,@AS@,$AS,;t t
51888 s,@ac_ct_AS@,$ac_ct_AS,;t t
51889 s,@OBJDUMP@,$OBJDUMP,;t t
51890 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
51891 s,@CPP@,$CPP,;t t
51892 s,@CXX@,$CXX,;t t
51893 s,@CXXFLAGS@,$CXXFLAGS,;t t
51894 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
51895 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
51896 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
51897 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
51898 s,@CXXCPP@,$CXXCPP,;t t
51899 s,@F77@,$F77,;t t
51900 s,@FFLAGS@,$FFLAGS,;t t
51901 s,@ac_ct_F77@,$ac_ct_F77,;t t
51902 s,@LIBTOOL@,$LIBTOOL,;t t
51903 s,@PERLBIN@,$PERLBIN,;t t
51904 s,@OL_MKDEP@,$OL_MKDEP,;t t
51905 s,@OL_MKDEP_FLAGS@,$OL_MKDEP_FLAGS,;t t
51906 s,@LTSTATIC@,$LTSTATIC,;t t
51907 s,@LIBOBJS@,$LIBOBJS,;t t
51908 s,@LIBSRCS@,$LIBSRCS,;t t
51909 s,@PLAT@,$PLAT,;t t
51910 s,@WITH_SASL@,$WITH_SASL,;t t
51911 s,@WITH_TLS@,$WITH_TLS,;t t
51912 s,@WITH_MODULES_ENABLED@,$WITH_MODULES_ENABLED,;t t
51913 s,@BUILD_LIBS_DYNAMIC@,$BUILD_LIBS_DYNAMIC,;t t
51914 s,@BUILD_SLAPD@,$BUILD_SLAPD,;t t
51915 s,@BUILD_SLAPI@,$BUILD_SLAPI,;t t
51916 s,@SLAPD_SLAPI_DEPEND@,$SLAPD_SLAPI_DEPEND,;t t
51917 s,@BUILD_BDB@,$BUILD_BDB,;t t
51918 s,@BUILD_DNSSRV@,$BUILD_DNSSRV,;t t
51919 s,@BUILD_HDB@,$BUILD_HDB,;t t
51920 s,@BUILD_LDAP@,$BUILD_LDAP,;t t
51921 s,@BUILD_LDBM@,$BUILD_LDBM,;t t
51922 s,@BUILD_META@,$BUILD_META,;t t
51923 s,@BUILD_MONITOR@,$BUILD_MONITOR,;t t
51924 s,@BUILD_NULL@,$BUILD_NULL,;t t
51925 s,@BUILD_PASSWD@,$BUILD_PASSWD,;t t
51926 s,@BUILD_RELAY@,$BUILD_RELAY,;t t
51927 s,@BUILD_PERL@,$BUILD_PERL,;t t
51928 s,@BUILD_SHELL@,$BUILD_SHELL,;t t
51929 s,@BUILD_SQL@,$BUILD_SQL,;t t
51930 s,@BUILD_ACCESSLOG@,$BUILD_ACCESSLOG,;t t
51931 s,@BUILD_DENYOP@,$BUILD_DENYOP,;t t
51932 s,@BUILD_DYNGROUP@,$BUILD_DYNGROUP,;t t
51933 s,@BUILD_DYNLIST@,$BUILD_DYNLIST,;t t
51934 s,@BUILD_GLUE@,$BUILD_GLUE,;t t
51935 s,@BUILD_LASTMOD@,$BUILD_LASTMOD,;t t
51936 s,@BUILD_PPOLICY@,$BUILD_PPOLICY,;t t
51937 s,@BUILD_PROXYCACHE@,$BUILD_PROXYCACHE,;t t
51938 s,@BUILD_REFINT@,$BUILD_REFINT,;t t
51939 s,@BUILD_RETCODE@,$BUILD_RETCODE,;t t
51940 s,@BUILD_RWM@,$BUILD_RWM,;t t
51941 s,@BUILD_SYNCPROV@,$BUILD_SYNCPROV,;t t
51942 s,@BUILD_TRANSLUCENT@,$BUILD_TRANSLUCENT,;t t
51943 s,@BUILD_UNIQUE@,$BUILD_UNIQUE,;t t
51944 s,@BUILD_SLURPD@,$BUILD_SLURPD,;t t
51945 s,@LDAP_LIBS@,$LDAP_LIBS,;t t
51946 s,@SLAPD_LIBS@,$SLAPD_LIBS,;t t
51947 s,@SLURPD_LIBS@,$SLURPD_LIBS,;t t
51948 s,@LDBM_LIBS@,$LDBM_LIBS,;t t
51949 s,@LTHREAD_LIBS@,$LTHREAD_LIBS,;t t
51950 s,@LUTIL_LIBS@,$LUTIL_LIBS,;t t
51951 s,@WRAP_LIBS@,$WRAP_LIBS,;t t
51952 s,@SLAPD_MODULES_CPPFLAGS@,$SLAPD_MODULES_CPPFLAGS,;t t
51953 s,@SLAPD_MODULES_LDFLAGS@,$SLAPD_MODULES_LDFLAGS,;t t
51954 s,@SLAPD_NO_STATIC@,$SLAPD_NO_STATIC,;t t
51955 s,@SLAPD_STATIC_BACKENDS@,$SLAPD_STATIC_BACKENDS,;t t
51956 s,@SLAPD_DYNAMIC_BACKENDS@,$SLAPD_DYNAMIC_BACKENDS,;t t
51957 s,@SLAPD_STATIC_OVERLAYS@,$SLAPD_STATIC_OVERLAYS,;t t
51958 s,@SLAPD_DYNAMIC_OVERLAYS@,$SLAPD_DYNAMIC_OVERLAYS,;t t
51959 s,@PERL_CPPFLAGS@,$PERL_CPPFLAGS,;t t
51960 s,@SLAPD_PERL_LDFLAGS@,$SLAPD_PERL_LDFLAGS,;t t
51961 s,@MOD_PERL_LDFLAGS@,$MOD_PERL_LDFLAGS,;t t
51962 s,@KRB4_LIBS@,$KRB4_LIBS,;t t
51963 s,@KRB5_LIBS@,$KRB5_LIBS,;t t
51964 s,@SASL_LIBS@,$SASL_LIBS,;t t
51965 s,@TLS_LIBS@,$TLS_LIBS,;t t
51966 s,@MODULES_LIBS@,$MODULES_LIBS,;t t
51967 s,@SLAPI_LIBS@,$SLAPI_LIBS,;t t
51968 s,@LIBSLAPI@,$LIBSLAPI,;t t
51969 s,@LIBSLAPITOOLS@,$LIBSLAPITOOLS,;t t
51970 s,@AUTH_LIBS@,$AUTH_LIBS,;t t
51971 s,@SLAPD_SLP_LIBS@,$SLAPD_SLP_LIBS,;t t
51972 s,@SLAPD_GMP_LIBS@,$SLAPD_GMP_LIBS,;t t
51973 s,@SLAPD_SQL_LDFLAGS@,$SLAPD_SQL_LDFLAGS,;t t
51974 s,@SLAPD_SQL_LIBS@,$SLAPD_SQL_LIBS,;t t
51975 s,@SLAPD_SQL_INCLUDES@,$SLAPD_SQL_INCLUDES,;t t
51976 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
51977 CEOF
51978
51979 _ACEOF
51980
51981   cat >>$CONFIG_STATUS <<\_ACEOF
51982   # Split the substitutions into bite-sized pieces for seds with
51983   # small command number limits, like on Digital OSF/1 and HP-UX.
51984   ac_max_sed_lines=48
51985   ac_sed_frag=1 # Number of current file.
51986   ac_beg=1 # First line for current file.
51987   ac_end=$ac_max_sed_lines # Line after last line for current file.
51988   ac_more_lines=:
51989   ac_sed_cmds=
51990   while $ac_more_lines; do
51991     if test $ac_beg -gt 1; then
51992       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
51993     else
51994       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
51995     fi
51996     if test ! -s $tmp/subs.frag; then
51997       ac_more_lines=false
51998     else
51999       # The purpose of the label and of the branching condition is to
52000       # speed up the sed processing (if there are no `@' at all, there
52001       # is no need to browse any of the substitutions).
52002       # These are the two extra sed commands mentioned above.
52003       (echo ':t
52004   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
52005       if test -z "$ac_sed_cmds"; then
52006         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
52007       else
52008         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
52009       fi
52010       ac_sed_frag=`expr $ac_sed_frag + 1`
52011       ac_beg=$ac_end
52012       ac_end=`expr $ac_end + $ac_max_sed_lines`
52013     fi
52014   done
52015   if test -z "$ac_sed_cmds"; then
52016     ac_sed_cmds=cat
52017   fi
52018 fi # test -n "$CONFIG_FILES"
52019
52020 _ACEOF
52021 cat >>$CONFIG_STATUS <<\_ACEOF
52022 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
52023   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
52024   case $ac_file in
52025   - | *:- | *:-:* ) # input from stdin
52026         cat >$tmp/stdin
52027         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
52028         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
52029   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
52030         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
52031   * )   ac_file_in=$ac_file.in ;;
52032   esac
52033
52034   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
52035   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
52036 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52037          X"$ac_file" : 'X\(//\)[^/]' \| \
52038          X"$ac_file" : 'X\(//\)$' \| \
52039          X"$ac_file" : 'X\(/\)' \| \
52040          .     : '\(.\)' 2>/dev/null ||
52041 echo X"$ac_file" |
52042     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52043           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52044           /^X\(\/\/\)$/{ s//\1/; q; }
52045           /^X\(\/\).*/{ s//\1/; q; }
52046           s/.*/./; q'`
52047   { if $as_mkdir_p; then
52048     mkdir -p "$ac_dir"
52049   else
52050     as_dir="$ac_dir"
52051     as_dirs=
52052     while test ! -d "$as_dir"; do
52053       as_dirs="$as_dir $as_dirs"
52054       as_dir=`(dirname "$as_dir") 2>/dev/null ||
52055 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52056          X"$as_dir" : 'X\(//\)[^/]' \| \
52057          X"$as_dir" : 'X\(//\)$' \| \
52058          X"$as_dir" : 'X\(/\)' \| \
52059          .     : '\(.\)' 2>/dev/null ||
52060 echo X"$as_dir" |
52061     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52062           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52063           /^X\(\/\/\)$/{ s//\1/; q; }
52064           /^X\(\/\).*/{ s//\1/; q; }
52065           s/.*/./; q'`
52066     done
52067     test ! -n "$as_dirs" || mkdir $as_dirs
52068   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
52069 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
52070    { (exit 1); exit 1; }; }; }
52071
52072   ac_builddir=.
52073
52074 if test "$ac_dir" != .; then
52075   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
52076   # A "../" for each directory in $ac_dir_suffix.
52077   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
52078 else
52079   ac_dir_suffix= ac_top_builddir=
52080 fi
52081
52082 case $srcdir in
52083   .)  # No --srcdir option.  We are building in place.
52084     ac_srcdir=.
52085     if test -z "$ac_top_builddir"; then
52086        ac_top_srcdir=.
52087     else
52088        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
52089     fi ;;
52090   [\\/]* | ?:[\\/]* )  # Absolute path.
52091     ac_srcdir=$srcdir$ac_dir_suffix;
52092     ac_top_srcdir=$srcdir ;;
52093   *) # Relative path.
52094     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
52095     ac_top_srcdir=$ac_top_builddir$srcdir ;;
52096 esac
52097
52098 # Do not use `cd foo && pwd` to compute absolute paths, because
52099 # the directories may not exist.
52100 case `pwd` in
52101 .) ac_abs_builddir="$ac_dir";;
52102 *)
52103   case "$ac_dir" in
52104   .) ac_abs_builddir=`pwd`;;
52105   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
52106   *) ac_abs_builddir=`pwd`/"$ac_dir";;
52107   esac;;
52108 esac
52109 case $ac_abs_builddir in
52110 .) ac_abs_top_builddir=${ac_top_builddir}.;;
52111 *)
52112   case ${ac_top_builddir}. in
52113   .) ac_abs_top_builddir=$ac_abs_builddir;;
52114   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
52115   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
52116   esac;;
52117 esac
52118 case $ac_abs_builddir in
52119 .) ac_abs_srcdir=$ac_srcdir;;
52120 *)
52121   case $ac_srcdir in
52122   .) ac_abs_srcdir=$ac_abs_builddir;;
52123   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
52124   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
52125   esac;;
52126 esac
52127 case $ac_abs_builddir in
52128 .) ac_abs_top_srcdir=$ac_top_srcdir;;
52129 *)
52130   case $ac_top_srcdir in
52131   .) ac_abs_top_srcdir=$ac_abs_builddir;;
52132   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
52133   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
52134   esac;;
52135 esac
52136
52137
52138   case $INSTALL in
52139   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
52140   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
52141   esac
52142
52143   if test x"$ac_file" != x-; then
52144     { echo "$as_me:$LINENO: creating $ac_file" >&5
52145 echo "$as_me: creating $ac_file" >&6;}
52146     rm -f "$ac_file"
52147   fi
52148   # Let's still pretend it is `configure' which instantiates (i.e., don't
52149   # use $as_me), people would be surprised to read:
52150   #    /* config.h.  Generated by config.status.  */
52151   if test x"$ac_file" = x-; then
52152     configure_input=
52153   else
52154     configure_input="$ac_file.  "
52155   fi
52156   configure_input=$configure_input"Generated from `echo $ac_file_in |
52157                                      sed 's,.*/,,'` by configure."
52158
52159   # First look for the input files in the build tree, otherwise in the
52160   # src tree.
52161   ac_file_inputs=`IFS=:
52162     for f in $ac_file_in; do
52163       case $f in
52164       -) echo $tmp/stdin ;;
52165       [\\/$]*)
52166          # Absolute (can't be DOS-style, as IFS=:)
52167          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
52168 echo "$as_me: error: cannot find input file: $f" >&2;}
52169    { (exit 1); exit 1; }; }
52170          echo "$f";;
52171       *) # Relative
52172          if test -f "$f"; then
52173            # Build tree
52174            echo "$f"
52175          elif test -f "$srcdir/$f"; then
52176            # Source tree
52177            echo "$srcdir/$f"
52178          else
52179            # /dev/null tree
52180            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
52181 echo "$as_me: error: cannot find input file: $f" >&2;}
52182    { (exit 1); exit 1; }; }
52183          fi;;
52184       esac
52185     done` || { (exit 1); exit 1; }
52186 _ACEOF
52187 cat >>$CONFIG_STATUS <<_ACEOF
52188   sed "$ac_vpsub
52189 $extrasub
52190 _ACEOF
52191 cat >>$CONFIG_STATUS <<\_ACEOF
52192 :t
52193 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
52194 s,@configure_input@,$configure_input,;t t
52195 s,@srcdir@,$ac_srcdir,;t t
52196 s,@abs_srcdir@,$ac_abs_srcdir,;t t
52197 s,@top_srcdir@,$ac_top_srcdir,;t t
52198 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
52199 s,@builddir@,$ac_builddir,;t t
52200 s,@abs_builddir@,$ac_abs_builddir,;t t
52201 s,@top_builddir@,$ac_top_builddir,;t t
52202 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
52203 s,@INSTALL@,$ac_INSTALL,;t t
52204 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
52205   rm -f $tmp/stdin
52206   if test x"$ac_file" != x-; then
52207     mv $tmp/out $ac_file
52208   else
52209     cat $tmp/out
52210     rm -f $tmp/out
52211   fi
52212
52213 done
52214 _ACEOF
52215 cat >>$CONFIG_STATUS <<\_ACEOF
52216
52217 #
52218 # CONFIG_HEADER section.
52219 #
52220
52221 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
52222 # NAME is the cpp macro being defined and VALUE is the value it is being given.
52223 #
52224 # ac_d sets the value in "#define NAME VALUE" lines.
52225 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
52226 ac_dB='[         ].*$,\1#\2'
52227 ac_dC=' '
52228 ac_dD=',;t'
52229 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
52230 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
52231 ac_uB='$,\1#\2define\3'
52232 ac_uC=' '
52233 ac_uD=',;t'
52234
52235 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
52236   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
52237   case $ac_file in
52238   - | *:- | *:-:* ) # input from stdin
52239         cat >$tmp/stdin
52240         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
52241         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
52242   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
52243         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
52244   * )   ac_file_in=$ac_file.in ;;
52245   esac
52246
52247   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
52248 echo "$as_me: creating $ac_file" >&6;}
52249
52250   # First look for the input files in the build tree, otherwise in the
52251   # src tree.
52252   ac_file_inputs=`IFS=:
52253     for f in $ac_file_in; do
52254       case $f in
52255       -) echo $tmp/stdin ;;
52256       [\\/$]*)
52257          # Absolute (can't be DOS-style, as IFS=:)
52258          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
52259 echo "$as_me: error: cannot find input file: $f" >&2;}
52260    { (exit 1); exit 1; }; }
52261          # Do quote $f, to prevent DOS paths from being IFS'd.
52262          echo "$f";;
52263       *) # Relative
52264          if test -f "$f"; then
52265            # Build tree
52266            echo "$f"
52267          elif test -f "$srcdir/$f"; then
52268            # Source tree
52269            echo "$srcdir/$f"
52270          else
52271            # /dev/null tree
52272            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
52273 echo "$as_me: error: cannot find input file: $f" >&2;}
52274    { (exit 1); exit 1; }; }
52275          fi;;
52276       esac
52277     done` || { (exit 1); exit 1; }
52278   # Remove the trailing spaces.
52279   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
52280
52281 _ACEOF
52282
52283 # Transform confdefs.h into two sed scripts, `conftest.defines' and
52284 # `conftest.undefs', that substitutes the proper values into
52285 # config.h.in to produce config.h.  The first handles `#define'
52286 # templates, and the second `#undef' templates.
52287 # And first: Protect against being on the right side of a sed subst in
52288 # config.status.  Protect against being in an unquoted here document
52289 # in config.status.
52290 rm -f conftest.defines conftest.undefs
52291 # Using a here document instead of a string reduces the quoting nightmare.
52292 # Putting comments in sed scripts is not portable.
52293 #
52294 # `end' is used to avoid that the second main sed command (meant for
52295 # 0-ary CPP macros) applies to n-ary macro definitions.
52296 # See the Autoconf documentation for `clear'.
52297 cat >confdef2sed.sed <<\_ACEOF
52298 s/[\\&,]/\\&/g
52299 s,[\\$`],\\&,g
52300 t clear
52301 : clear
52302 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
52303 t end
52304 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
52305 : end
52306 _ACEOF
52307 # If some macros were called several times there might be several times
52308 # the same #defines, which is useless.  Nevertheless, we may not want to
52309 # sort them, since we want the *last* AC-DEFINE to be honored.
52310 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
52311 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
52312 rm -f confdef2sed.sed
52313
52314 # This sed command replaces #undef with comments.  This is necessary, for
52315 # example, in the case of _POSIX_SOURCE, which is predefined and required
52316 # on some systems where configure will not decide to define it.
52317 cat >>conftest.undefs <<\_ACEOF
52318 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
52319 _ACEOF
52320
52321 # Break up conftest.defines because some shells have a limit on the size
52322 # of here documents, and old seds have small limits too (100 cmds).
52323 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
52324 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
52325 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
52326 echo '  :' >>$CONFIG_STATUS
52327 rm -f conftest.tail
52328 while grep . conftest.defines >/dev/null
52329 do
52330   # Write a limited-size here document to $tmp/defines.sed.
52331   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
52332   # Speed up: don't consider the non `#define' lines.
52333   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
52334   # Work around the forget-to-reset-the-flag bug.
52335   echo 't clr' >>$CONFIG_STATUS
52336   echo ': clr' >>$CONFIG_STATUS
52337   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
52338   echo 'CEOF
52339   sed -f $tmp/defines.sed $tmp/in >$tmp/out
52340   rm -f $tmp/in
52341   mv $tmp/out $tmp/in
52342 ' >>$CONFIG_STATUS
52343   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
52344   rm -f conftest.defines
52345   mv conftest.tail conftest.defines
52346 done
52347 rm -f conftest.defines
52348 echo '  fi # grep' >>$CONFIG_STATUS
52349 echo >>$CONFIG_STATUS
52350
52351 # Break up conftest.undefs because some shells have a limit on the size
52352 # of here documents, and old seds have small limits too (100 cmds).
52353 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
52354 rm -f conftest.tail
52355 while grep . conftest.undefs >/dev/null
52356 do
52357   # Write a limited-size here document to $tmp/undefs.sed.
52358   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
52359   # Speed up: don't consider the non `#undef'
52360   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
52361   # Work around the forget-to-reset-the-flag bug.
52362   echo 't clr' >>$CONFIG_STATUS
52363   echo ': clr' >>$CONFIG_STATUS
52364   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
52365   echo 'CEOF
52366   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
52367   rm -f $tmp/in
52368   mv $tmp/out $tmp/in
52369 ' >>$CONFIG_STATUS
52370   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
52371   rm -f conftest.undefs
52372   mv conftest.tail conftest.undefs
52373 done
52374 rm -f conftest.undefs
52375
52376 cat >>$CONFIG_STATUS <<\_ACEOF
52377   # Let's still pretend it is `configure' which instantiates (i.e., don't
52378   # use $as_me), people would be surprised to read:
52379   #    /* config.h.  Generated by config.status.  */
52380   if test x"$ac_file" = x-; then
52381     echo "/* Generated by configure.  */" >$tmp/config.h
52382   else
52383     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
52384   fi
52385   cat $tmp/in >>$tmp/config.h
52386   rm -f $tmp/in
52387   if test x"$ac_file" != x-; then
52388     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
52389       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
52390 echo "$as_me: $ac_file is unchanged" >&6;}
52391     else
52392       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
52393 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52394          X"$ac_file" : 'X\(//\)[^/]' \| \
52395          X"$ac_file" : 'X\(//\)$' \| \
52396          X"$ac_file" : 'X\(/\)' \| \
52397          .     : '\(.\)' 2>/dev/null ||
52398 echo X"$ac_file" |
52399     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52400           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52401           /^X\(\/\/\)$/{ s//\1/; q; }
52402           /^X\(\/\).*/{ s//\1/; q; }
52403           s/.*/./; q'`
52404       { if $as_mkdir_p; then
52405     mkdir -p "$ac_dir"
52406   else
52407     as_dir="$ac_dir"
52408     as_dirs=
52409     while test ! -d "$as_dir"; do
52410       as_dirs="$as_dir $as_dirs"
52411       as_dir=`(dirname "$as_dir") 2>/dev/null ||
52412 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52413          X"$as_dir" : 'X\(//\)[^/]' \| \
52414          X"$as_dir" : 'X\(//\)$' \| \
52415          X"$as_dir" : 'X\(/\)' \| \
52416          .     : '\(.\)' 2>/dev/null ||
52417 echo X"$as_dir" |
52418     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52419           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52420           /^X\(\/\/\)$/{ s//\1/; q; }
52421           /^X\(\/\).*/{ s//\1/; q; }
52422           s/.*/./; q'`
52423     done
52424     test ! -n "$as_dirs" || mkdir $as_dirs
52425   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
52426 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
52427    { (exit 1); exit 1; }; }; }
52428
52429       rm -f $ac_file
52430       mv $tmp/config.h $ac_file
52431     fi
52432   else
52433     cat $tmp/config.h
52434     rm -f $tmp/config.h
52435   fi
52436 # Compute $ac_file's index in $config_headers.
52437 _am_stamp_count=1
52438 for _am_header in $config_headers :; do
52439   case $_am_header in
52440     $ac_file | $ac_file:* )
52441       break ;;
52442     * )
52443       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
52444   esac
52445 done
52446 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
52447 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52448          X$ac_file : 'X\(//\)[^/]' \| \
52449          X$ac_file : 'X\(//\)$' \| \
52450          X$ac_file : 'X\(/\)' \| \
52451          .     : '\(.\)' 2>/dev/null ||
52452 echo X$ac_file |
52453     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52454           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52455           /^X\(\/\/\)$/{ s//\1/; q; }
52456           /^X\(\/\).*/{ s//\1/; q; }
52457           s/.*/./; q'`/stamp-h$_am_stamp_count
52458 done
52459 _ACEOF
52460 cat >>$CONFIG_STATUS <<\_ACEOF
52461
52462 #
52463 # CONFIG_COMMANDS section.
52464 #
52465 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
52466   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
52467   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
52468   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
52469 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52470          X"$ac_dest" : 'X\(//\)[^/]' \| \
52471          X"$ac_dest" : 'X\(//\)$' \| \
52472          X"$ac_dest" : 'X\(/\)' \| \
52473          .     : '\(.\)' 2>/dev/null ||
52474 echo X"$ac_dest" |
52475     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52476           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52477           /^X\(\/\/\)$/{ s//\1/; q; }
52478           /^X\(\/\).*/{ s//\1/; q; }
52479           s/.*/./; q'`
52480   { if $as_mkdir_p; then
52481     mkdir -p "$ac_dir"
52482   else
52483     as_dir="$ac_dir"
52484     as_dirs=
52485     while test ! -d "$as_dir"; do
52486       as_dirs="$as_dir $as_dirs"
52487       as_dir=`(dirname "$as_dir") 2>/dev/null ||
52488 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52489          X"$as_dir" : 'X\(//\)[^/]' \| \
52490          X"$as_dir" : 'X\(//\)$' \| \
52491          X"$as_dir" : 'X\(/\)' \| \
52492          .     : '\(.\)' 2>/dev/null ||
52493 echo X"$as_dir" |
52494     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52495           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52496           /^X\(\/\/\)$/{ s//\1/; q; }
52497           /^X\(\/\).*/{ s//\1/; q; }
52498           s/.*/./; q'`
52499     done
52500     test ! -n "$as_dirs" || mkdir $as_dirs
52501   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
52502 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
52503    { (exit 1); exit 1; }; }; }
52504
52505   ac_builddir=.
52506
52507 if test "$ac_dir" != .; then
52508   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
52509   # A "../" for each directory in $ac_dir_suffix.
52510   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
52511 else
52512   ac_dir_suffix= ac_top_builddir=
52513 fi
52514
52515 case $srcdir in
52516   .)  # No --srcdir option.  We are building in place.
52517     ac_srcdir=.
52518     if test -z "$ac_top_builddir"; then
52519        ac_top_srcdir=.
52520     else
52521        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
52522     fi ;;
52523   [\\/]* | ?:[\\/]* )  # Absolute path.
52524     ac_srcdir=$srcdir$ac_dir_suffix;
52525     ac_top_srcdir=$srcdir ;;
52526   *) # Relative path.
52527     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
52528     ac_top_srcdir=$ac_top_builddir$srcdir ;;
52529 esac
52530
52531 # Do not use `cd foo && pwd` to compute absolute paths, because
52532 # the directories may not exist.
52533 case `pwd` in
52534 .) ac_abs_builddir="$ac_dir";;
52535 *)
52536   case "$ac_dir" in
52537   .) ac_abs_builddir=`pwd`;;
52538   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
52539   *) ac_abs_builddir=`pwd`/"$ac_dir";;
52540   esac;;
52541 esac
52542 case $ac_abs_builddir in
52543 .) ac_abs_top_builddir=${ac_top_builddir}.;;
52544 *)
52545   case ${ac_top_builddir}. in
52546   .) ac_abs_top_builddir=$ac_abs_builddir;;
52547   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
52548   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
52549   esac;;
52550 esac
52551 case $ac_abs_builddir in
52552 .) ac_abs_srcdir=$ac_srcdir;;
52553 *)
52554   case $ac_srcdir in
52555   .) ac_abs_srcdir=$ac_abs_builddir;;
52556   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
52557   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
52558   esac;;
52559 esac
52560 case $ac_abs_builddir in
52561 .) ac_abs_top_srcdir=$ac_top_srcdir;;
52562 *)
52563   case $ac_top_srcdir in
52564   .) ac_abs_top_srcdir=$ac_abs_builddir;;
52565   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
52566   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
52567   esac;;
52568 esac
52569
52570
52571   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
52572 echo "$as_me: executing $ac_dest commands" >&6;}
52573   case $ac_dest in
52574     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
52575   # Strip MF so we end up with the name of the file.
52576   mf=`echo "$mf" | sed -e 's/:.*$//'`
52577   # Check whether this is an Automake generated Makefile or not.
52578   # We used to match only the files named `Makefile.in', but
52579   # some people rename them; so instead we look at the file content.
52580   # Grep'ing the first line is not enough: some people post-process
52581   # each Makefile.in and add a new line on top of each file to say so.
52582   # So let's grep whole file.
52583   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
52584     dirpart=`(dirname "$mf") 2>/dev/null ||
52585 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52586          X"$mf" : 'X\(//\)[^/]' \| \
52587          X"$mf" : 'X\(//\)$' \| \
52588          X"$mf" : 'X\(/\)' \| \
52589          .     : '\(.\)' 2>/dev/null ||
52590 echo X"$mf" |
52591     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52592           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52593           /^X\(\/\/\)$/{ s//\1/; q; }
52594           /^X\(\/\).*/{ s//\1/; q; }
52595           s/.*/./; q'`
52596   else
52597     continue
52598   fi
52599   # Extract the definition of DEPDIR, am__include, and am__quote
52600   # from the Makefile without running `make'.
52601   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
52602   test -z "$DEPDIR" && continue
52603   am__include=`sed -n 's/^am__include = //p' < "$mf"`
52604   test -z "am__include" && continue
52605   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
52606   # When using ansi2knr, U may be empty or an underscore; expand it
52607   U=`sed -n 's/^U = //p' < "$mf"`
52608   # Find all dependency output files, they are included files with
52609   # $(DEPDIR) in their names.  We invoke sed twice because it is the
52610   # simplest approach to changing $(DEPDIR) to its actual value in the
52611   # expansion.
52612   for file in `sed -n "
52613     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
52614        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
52615     # Make sure the directory exists.
52616     test -f "$dirpart/$file" && continue
52617     fdir=`(dirname "$file") 2>/dev/null ||
52618 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52619          X"$file" : 'X\(//\)[^/]' \| \
52620          X"$file" : 'X\(//\)$' \| \
52621          X"$file" : 'X\(/\)' \| \
52622          .     : '\(.\)' 2>/dev/null ||
52623 echo X"$file" |
52624     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52625           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52626           /^X\(\/\/\)$/{ s//\1/; q; }
52627           /^X\(\/\).*/{ s//\1/; q; }
52628           s/.*/./; q'`
52629     { if $as_mkdir_p; then
52630     mkdir -p $dirpart/$fdir
52631   else
52632     as_dir=$dirpart/$fdir
52633     as_dirs=
52634     while test ! -d "$as_dir"; do
52635       as_dirs="$as_dir $as_dirs"
52636       as_dir=`(dirname "$as_dir") 2>/dev/null ||
52637 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52638          X"$as_dir" : 'X\(//\)[^/]' \| \
52639          X"$as_dir" : 'X\(//\)$' \| \
52640          X"$as_dir" : 'X\(/\)' \| \
52641          .     : '\(.\)' 2>/dev/null ||
52642 echo X"$as_dir" |
52643     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52644           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52645           /^X\(\/\/\)$/{ s//\1/; q; }
52646           /^X\(\/\).*/{ s//\1/; q; }
52647           s/.*/./; q'`
52648     done
52649     test ! -n "$as_dirs" || mkdir $as_dirs
52650   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
52651 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
52652    { (exit 1); exit 1; }; }; }
52653
52654     # echo "creating $dirpart/$file"
52655     echo '# dummy' > "$dirpart/$file"
52656   done
52657 done
52658  ;;
52659     default )
52660 chmod +x tests/run
52661 date > stamp-h
52662 BACKENDSC="servers/slapd/backends.c"
52663 echo "Making $BACKENDSC"
52664 rm -f $BACKENDSC
52665 cat > $BACKENDSC << ENDX
52666 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
52667  *
52668  * Copyright 1998-2005 The OpenLDAP Foundation.
52669  * All rights reserved.
52670  *
52671  * Redistribution and use in source and binary forms, with or without
52672  * modification, are permitted only as authorized by the OpenLDAP
52673  * Public License.
52674  *
52675  * A copy of this license is available in the file LICENSE in the
52676  * top-level directory of the distribution or, alternatively, at
52677  * <http://www.OpenLDAP.org/license.html>.
52678  */
52679 /* This file is automatically generated by configure; please do not edit. */
52680
52681 #include "portable.h"
52682 #include "slap.h"
52683
52684 ENDX
52685 if test "${STATIC_BACKENDS}"; then
52686         for b in config ${STATIC_BACKENDS}; do
52687                 bb=`echo "${b}" | sed -e 's/back-//'`
52688                 cat >> $BACKENDSC << ENDX
52689 extern BI_init ${bb}_back_initialize;
52690 ENDX
52691         done
52692
52693         cat >> $BACKENDSC << ENDX
52694
52695 BackendInfo slap_binfo[] = {
52696 ENDX
52697
52698         for b in config ${STATIC_BACKENDS}; do
52699                 bb=`echo "${b}" | sed -e 's/back-//'`
52700                 echo "    Add ${bb} ..."
52701                 cat >> $BACKENDSC << ENDX
52702         { "${bb}", ${bb}_back_initialize },
52703 ENDX
52704         done
52705
52706         cat >> $BACKENDSC << ENDX
52707         { NULL, NULL },
52708 };
52709
52710 /* end of generated file */
52711 ENDX
52712 fi
52713
52714 echo Please run \"make depend\" to build dependencies
52715  ;;
52716   esac
52717 done
52718 _ACEOF
52719
52720 cat >>$CONFIG_STATUS <<\_ACEOF
52721
52722 { (exit 0); exit 0; }
52723 _ACEOF
52724 chmod +x $CONFIG_STATUS
52725 ac_clean_files=$ac_clean_files_save
52726
52727
52728 # configure is writing to config.log, and then calls config.status.
52729 # config.status does its own redirection, appending to config.log.
52730 # Unfortunately, on DOS this fails, as config.log is still kept open
52731 # by configure, so config.status won't be able to write to it; its
52732 # output is simply discarded.  So we exec the FD to /dev/null,
52733 # effectively closing config.log, so it can be properly (re)opened and
52734 # appended to by config.status.  When coming back to configure, we
52735 # need to make the FD available again.
52736 if test "$no_create" != yes; then
52737   ac_cs_success=:
52738   ac_config_status_args=
52739   test "$silent" = yes &&
52740     ac_config_status_args="$ac_config_status_args --quiet"
52741   exec 5>/dev/null
52742   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
52743   exec 5>>config.log
52744   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
52745   # would make configure fail if this is the last instruction.
52746   $ac_cs_success || { (exit 1); exit 1; }
52747 fi
52748