1#! /bin/sh
2# From configure.ac Id: a0879bc38cef5ec496baf18c66d4038bcf25368b .
3# Guess values for system-dependent variables and create Makefiles.
4# Generated by GNU Autoconf 2.69.
5#
6# Copyright 1998-2021 The OpenLDAP Foundation. All rights reserved.
7# Restrictions apply, see COPYRIGHT and LICENSE files.
8#
9#
10# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11#
12#
13# This configure script is free software; the Free Software Foundation
14# gives unlimited permission to copy, distribute and modify it.
15## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
18
19# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22  emulate sh
23  NULLCMD=:
24  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27  setopt NO_GLOB_SUBST
28else
29  case `(set -o) 2>/dev/null` in #(
30  *posix*) :
31    set -o posix ;; #(
32  *) :
33     ;;
34esac
35fi
36
37
38as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if test -z "$BASH_VERSION$ZSH_VERSION" \
48    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49  as_echo='print -r --'
50  as_echo_n='print -rn --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52  as_echo='printf %s\n'
53  as_echo_n='printf %s'
54else
55  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57    as_echo_n='/usr/ucb/echo -n'
58  else
59    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60    as_echo_n_body='eval
61      arg=$1;
62      case $arg in #(
63      *"$as_nl"*)
64	expr "X$arg" : "X\\(.*\\)$as_nl";
65	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66      esac;
67      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68    '
69    export as_echo_n_body
70    as_echo_n='sh -c $as_echo_n_body as_echo'
71  fi
72  export as_echo_body
73  as_echo='sh -c $as_echo_body as_echo'
74fi
75
76# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
78  PATH_SEPARATOR=:
79  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81      PATH_SEPARATOR=';'
82  }
83fi
84
85
86# IFS
87# We need space, tab and new line, in precisely that order.  Quoting is
88# there to prevent editors from complaining about space-tab.
89# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90# splitting by setting IFS to empty value.)
91IFS=" ""	$as_nl"
92
93# Find who we are.  Look in the path if we contain no directory separator.
94as_myself=
95case $0 in #((
96  *[\\/]* ) as_myself=$0 ;;
97  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98for as_dir in $PATH
99do
100  IFS=$as_save_IFS
101  test -z "$as_dir" && as_dir=.
102    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103  done
104IFS=$as_save_IFS
105
106     ;;
107esac
108# We did not find ourselves, most probably we were run as `sh COMMAND'
109# in which case we are not to be found in the path.
110if test "x$as_myself" = x; then
111  as_myself=$0
112fi
113if test ! -f "$as_myself"; then
114  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115  exit 1
116fi
117
118# Unset variables that we do not need and which cause bugs (e.g. in
119# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120# suppresses any "Segmentation fault" message there.  '((' could
121# trigger a bug in pdksh 5.2.14.
122for as_var in BASH_ENV ENV MAIL MAILPATH
123do eval test x\${$as_var+set} = xset \
124  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125done
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
135
136# CDPATH.
137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139# Use a proper internal environment variable to ensure we don't fall
140  # into an infinite loop, continuously re-executing ourselves.
141  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
142    _as_can_reexec=no; export _as_can_reexec;
143    # We cannot yet assume a decent shell, so we have to provide a
144# neutralization value for shells without unset; and this also
145# works around shells that cannot unset nonexistent variables.
146# Preserve -v and -x to the replacement shell.
147BASH_ENV=/dev/null
148ENV=/dev/null
149(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
150case $- in # ((((
151  *v*x* | *x*v* ) as_opts=-vx ;;
152  *v* ) as_opts=-v ;;
153  *x* ) as_opts=-x ;;
154  * ) as_opts= ;;
155esac
156exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
157# Admittedly, this is quite paranoid, since all the known shells bail
158# out after a failed `exec'.
159$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
160as_fn_exit 255
161  fi
162  # We don't want this to propagate to other subprocesses.
163          { _as_can_reexec=; unset _as_can_reexec;}
164if test "x$CONFIG_SHELL" = x; then
165  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
166  emulate sh
167  NULLCMD=:
168  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
169  # is contrary to our usage.  Disable this feature.
170  alias -g '\${1+\"\$@\"}'='\"\$@\"'
171  setopt NO_GLOB_SUBST
172else
173  case \`(set -o) 2>/dev/null\` in #(
174  *posix*) :
175    set -o posix ;; #(
176  *) :
177     ;;
178esac
179fi
180"
181  as_required="as_fn_return () { (exit \$1); }
182as_fn_success () { as_fn_return 0; }
183as_fn_failure () { as_fn_return 1; }
184as_fn_ret_success () { return 0; }
185as_fn_ret_failure () { return 1; }
186
187exitcode=0
188as_fn_success || { exitcode=1; echo as_fn_success failed.; }
189as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
190as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
191as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
192if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193
194else
195  exitcode=1; echo positional parameters were not saved.
196fi
197test x\$exitcode = x0 || exit 1
198test -x / || exit 1"
199  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
200  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
201  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
202  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
203
204  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
205    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
206    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
208    PATH=/empty FPATH=/empty; export PATH FPATH
209    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
210      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
211test \$(( 1 + 1 )) = 2 || exit 1"
212  if (eval "$as_required") 2>/dev/null; then :
213  as_have_required=yes
214else
215  as_have_required=no
216fi
217  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
218
219else
220  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
221as_found=false
222for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223do
224  IFS=$as_save_IFS
225  test -z "$as_dir" && as_dir=.
226  as_found=:
227  case $as_dir in #(
228	 /*)
229	   for as_base in sh bash ksh sh5; do
230	     # Try only shells that exist, to save several forks.
231	     as_shell=$as_dir/$as_base
232	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
233		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
234  CONFIG_SHELL=$as_shell as_have_required=yes
235		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
236  break 2
237fi
238fi
239	   done;;
240       esac
241  as_found=false
242done
243$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
244	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
245  CONFIG_SHELL=$SHELL as_have_required=yes
246fi; }
247IFS=$as_save_IFS
248
249
250      if test "x$CONFIG_SHELL" != x; then :
251  export CONFIG_SHELL
252             # We cannot yet assume a decent shell, so we have to provide a
253# neutralization value for shells without unset; and this also
254# works around shells that cannot unset nonexistent variables.
255# Preserve -v and -x to the replacement shell.
256BASH_ENV=/dev/null
257ENV=/dev/null
258(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
259case $- in # ((((
260  *v*x* | *x*v* ) as_opts=-vx ;;
261  *v* ) as_opts=-v ;;
262  *x* ) as_opts=-x ;;
263  * ) as_opts= ;;
264esac
265exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
266# Admittedly, this is quite paranoid, since all the known shells bail
267# out after a failed `exec'.
268$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
269exit 255
270fi
271
272    if test x$as_have_required = xno; then :
273  $as_echo "$0: This script requires a shell more modern than all"
274  $as_echo "$0: the shells that I found on your system."
275  if test x${ZSH_VERSION+set} = xset ; then
276    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
277    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
278  else
279    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
280$0: including any error possibly output before this
281$0: message. Then install a modern shell, or manually run
282$0: the script under such a shell if you do have one."
283  fi
284  exit 1
285fi
286fi
287fi
288SHELL=${CONFIG_SHELL-/bin/sh}
289export SHELL
290# Unset more variables known to interfere with behavior of common tools.
291CLICOLOR_FORCE= GREP_OPTIONS=
292unset CLICOLOR_FORCE GREP_OPTIONS
293
294## --------------------- ##
295## M4sh Shell Functions. ##
296## --------------------- ##
297# as_fn_unset VAR
298# ---------------
299# Portably unset VAR.
300as_fn_unset ()
301{
302  { eval $1=; unset $1;}
303}
304as_unset=as_fn_unset
305
306# as_fn_set_status STATUS
307# -----------------------
308# Set $? to STATUS, without forking.
309as_fn_set_status ()
310{
311  return $1
312} # as_fn_set_status
313
314# as_fn_exit STATUS
315# -----------------
316# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317as_fn_exit ()
318{
319  set +e
320  as_fn_set_status $1
321  exit $1
322} # as_fn_exit
323
324# as_fn_mkdir_p
325# -------------
326# Create "$as_dir" as a directory, including parents if necessary.
327as_fn_mkdir_p ()
328{
329
330  case $as_dir in #(
331  -*) as_dir=./$as_dir;;
332  esac
333  test -d "$as_dir" || eval $as_mkdir_p || {
334    as_dirs=
335    while :; do
336      case $as_dir in #(
337      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
338      *) as_qdir=$as_dir;;
339      esac
340      as_dirs="'$as_qdir' $as_dirs"
341      as_dir=`$as_dirname -- "$as_dir" ||
342$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343	 X"$as_dir" : 'X\(//\)[^/]' \| \
344	 X"$as_dir" : 'X\(//\)$' \| \
345	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346$as_echo X"$as_dir" |
347    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
348	    s//\1/
349	    q
350	  }
351	  /^X\(\/\/\)[^/].*/{
352	    s//\1/
353	    q
354	  }
355	  /^X\(\/\/\)$/{
356	    s//\1/
357	    q
358	  }
359	  /^X\(\/\).*/{
360	    s//\1/
361	    q
362	  }
363	  s/.*/./; q'`
364      test -d "$as_dir" && break
365    done
366    test -z "$as_dirs" || eval "mkdir $as_dirs"
367  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368
369
370} # as_fn_mkdir_p
371
372# as_fn_executable_p FILE
373# -----------------------
374# Test if FILE is an executable regular file.
375as_fn_executable_p ()
376{
377  test -f "$1" && test -x "$1"
378} # as_fn_executable_p
379# as_fn_append VAR VALUE
380# ----------------------
381# Append the text in VALUE to the end of the definition contained in VAR. Take
382# advantage of any shell optimizations that allow amortized linear growth over
383# repeated appends, instead of the typical quadratic growth present in naive
384# implementations.
385if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386  eval 'as_fn_append ()
387  {
388    eval $1+=\$2
389  }'
390else
391  as_fn_append ()
392  {
393    eval $1=\$$1\$2
394  }
395fi # as_fn_append
396
397# as_fn_arith ARG...
398# ------------------
399# Perform arithmetic evaluation on the ARGs, and store the result in the
400# global $as_val. Take advantage of shells that can avoid forks. The arguments
401# must be portable across $(()) and expr.
402if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
403  eval 'as_fn_arith ()
404  {
405    as_val=$(( $* ))
406  }'
407else
408  as_fn_arith ()
409  {
410    as_val=`expr "$@" || test $? -eq 1`
411  }
412fi # as_fn_arith
413
414
415# as_fn_error STATUS ERROR [LINENO LOG_FD]
416# ----------------------------------------
417# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419# script with STATUS, using 1 if that was 0.
420as_fn_error ()
421{
422  as_status=$1; test $as_status -eq 0 && as_status=1
423  if test "$4"; then
424    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426  fi
427  $as_echo "$as_me: error: $2" >&2
428  as_fn_exit $as_status
429} # as_fn_error
430
431if expr a : '\(a\)' >/dev/null 2>&1 &&
432   test "X`expr 00001 : '.*\(...\)'`" = X001; then
433  as_expr=expr
434else
435  as_expr=false
436fi
437
438if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
439  as_basename=basename
440else
441  as_basename=false
442fi
443
444if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
445  as_dirname=dirname
446else
447  as_dirname=false
448fi
449
450as_me=`$as_basename -- "$0" ||
451$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452	 X"$0" : 'X\(//\)$' \| \
453	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454$as_echo X/"$0" |
455    sed '/^.*\/\([^/][^/]*\)\/*$/{
456	    s//\1/
457	    q
458	  }
459	  /^X\/\(\/\/\)$/{
460	    s//\1/
461	    q
462	  }
463	  /^X\/\(\/\).*/{
464	    s//\1/
465	    q
466	  }
467	  s/.*/./; q'`
468
469# Avoid depending upon Character Ranges.
470as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473as_cr_digits='0123456789'
474as_cr_alnum=$as_cr_Letters$as_cr_digits
475
476
477  as_lineno_1=$LINENO as_lineno_1a=$LINENO
478  as_lineno_2=$LINENO as_lineno_2a=$LINENO
479  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
482  sed -n '
483    p
484    /[$]LINENO/=
485  ' <$as_myself |
486    sed '
487      s/[$]LINENO.*/&-/
488      t lineno
489      b
490      :lineno
491      N
492      :loop
493      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
494      t loop
495      s/-\n.*//
496    ' >$as_me.lineno &&
497  chmod +x "$as_me.lineno" ||
498    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499
500  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501  # already done that, so ensure we don't try to do so again and fall
502  # in an infinite loop.  This has already happened in practice.
503  _as_can_reexec=no; export _as_can_reexec
504  # Don't try to exec as it changes $[0], causing all sort of problems
505  # (the dirname of $[0] is not the place where we might find the
506  # original and so on.  Autoconf is especially sensitive to this).
507  . "./$as_me.lineno"
508  # Exit status is that of the last command.
509  exit
510}
511
512ECHO_C= ECHO_N= ECHO_T=
513case `echo -n x` in #(((((
514-n*)
515  case `echo 'xy\c'` in
516  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
517  xy)  ECHO_C='\c';;
518  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
519       ECHO_T='	';;
520  esac;;
521*)
522  ECHO_N='-n';;
523esac
524
525rm -f conf$$ conf$$.exe conf$$.file
526if test -d conf$$.dir; then
527  rm -f conf$$.dir/conf$$.file
528else
529  rm -f conf$$.dir
530  mkdir conf$$.dir 2>/dev/null
531fi
532if (echo >conf$$.file) 2>/dev/null; then
533  if ln -s conf$$.file conf$$ 2>/dev/null; then
534    as_ln_s='ln -s'
535    # ... but there are two gotchas:
536    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538    # In both cases, we have to default to `cp -pR'.
539    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540      as_ln_s='cp -pR'
541  elif ln conf$$.file conf$$ 2>/dev/null; then
542    as_ln_s=ln
543  else
544    as_ln_s='cp -pR'
545  fi
546else
547  as_ln_s='cp -pR'
548fi
549rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550rmdir conf$$.dir 2>/dev/null
551
552if mkdir -p . 2>/dev/null; then
553  as_mkdir_p='mkdir -p "$as_dir"'
554else
555  test -d ./-p && rmdir ./-p
556  as_mkdir_p=false
557fi
558
559as_test_x='test -x'
560as_executable_p=as_fn_executable_p
561
562# Sed expression to map a string onto a valid CPP name.
563as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564
565# Sed expression to map a string onto a valid variable name.
566as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567
568SHELL=${CONFIG_SHELL-/bin/sh}
569
570
571test -n "$DJDIR" || exec 7<&0 </dev/null
572exec 6>&1
573
574# Name of the host.
575# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
576# so uname gets run too.
577ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578
579#
580# Initializations.
581#
582ac_default_prefix=/usr/local
583ac_clean_files=
584ac_config_libobj_dir=.
585LIBOBJS=
586cross_compiling=no
587subdirs=
588MFLAGS=
589MAKEFLAGS=
590
591# Identity of this package.
592PACKAGE_NAME=
593PACKAGE_TARNAME=
594PACKAGE_VERSION=
595PACKAGE_STRING=
596PACKAGE_BUGREPORT=
597PACKAGE_URL=
598
599ac_unique_file="OpenLDAP"
600ac_unique_file="build/version.sh"
601ac_default_prefix=/usr/local
602# Factoring default headers for most tests.
603ac_includes_default="\
604#include <stdio.h>
605#ifdef HAVE_SYS_TYPES_H
606# include <sys/types.h>
607#endif
608#ifdef HAVE_SYS_STAT_H
609# include <sys/stat.h>
610#endif
611#ifdef STDC_HEADERS
612# include <stdlib.h>
613# include <stddef.h>
614#else
615# ifdef HAVE_STDLIB_H
616#  include <stdlib.h>
617# endif
618#endif
619#ifdef HAVE_STRING_H
620# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
621#  include <memory.h>
622# endif
623# include <string.h>
624#endif
625#ifdef HAVE_STRINGS_H
626# include <strings.h>
627#endif
628#ifdef HAVE_INTTYPES_H
629# include <inttypes.h>
630#endif
631#ifdef HAVE_STDINT_H
632# include <stdint.h>
633#endif
634#ifdef HAVE_UNISTD_H
635# include <unistd.h>
636#endif"
637
638ac_header_list=
639ac_subst_vars='LTLIBOBJS
640BALANCER_INCLUDE
641SLAPD_SQL_INCLUDES
642SLAPD_SQL_LIBS
643SLAPD_SQL_LDFLAGS
644SLAPD_GMP_LIBS
645SLAPD_SLP_LIBS
646SYSTEMD_LIBS
647ARGON2_LIBS
648AUTH_LIBS
649LIBSLAPI
650SLAPI_LIBS
651MODULES_LIBS
652WITH_TLS_TYPE
653TLS_LIBS
654SASL_LIBS
655MOD_PERL_LDFLAGS
656SLAPD_PERL_LDFLAGS
657PERL_CPPFLAGS
658SLAPD_DYNAMIC_PWMODS
659SLAPD_DYNAMIC_OVERLAYS
660SLAPD_STATIC_OVERLAYS
661SLAPD_DYNAMIC_BACKENDS
662SLAPD_STATIC_BACKENDS
663SLAPD_NO_STATIC
664SLAPD_MODULES_LDFLAGS
665SLAPD_MODULES_CPPFLAGS
666WRAP_LIBS
667LEVENT_LIBS
668LUTIL_LIBS
669LTHREAD_LIBS
670SLAPD_NDB_INCS
671SLAPD_NDB_LIBS
672BALANCER_LIBS
673SLAPD_LIBS
674CLIENT_LIBS
675LDAP_LIBS
676BUILD_PW_ARGON2
677BUILD_BALANCER
678BUILD_VALSORT
679BUILD_UNIQUE
680BUILD_TRANSLUCENT
681BUILD_SYNCPROV
682BUILD_SSSVLV
683BUILD_SEQMOD
684BUILD_RWM
685BUILD_RETCODE
686BUILD_REMOTEAUTH
687BUILD_REFINT
688BUILD_PROXYCACHE
689BUILD_PPOLICY
690BUILD_OTP
691BUILD_MEMBEROF
692BUILD_HOMEDIR
693BUILD_LASTMOD
694BUILD_DYNLIST
695BUILD_DYNGROUP
696BUILD_DEREF
697BUILD_DENYOP
698BUILD_DDS
699BUILD_CONSTRAINT
700BUILD_COLLECT
701BUILD_AUTOCA
702BUILD_AUDITLOG
703BUILD_ACCESSLOG
704BUILD_WT
705BUILD_SQL
706BUILD_SOCK
707BUILD_SHELL
708BUILD_PERL
709BUILD_RELAY
710BUILD_PASSWD
711BUILD_NULL
712BUILD_NDB
713BUILD_ASYNCMETA
714BUILD_META
715BUILD_MDB
716BUILD_LDAP
717BUILD_DNSSRV
718SLAPD_SLAPI_DEPEND
719BUILD_SLAPI
720BUILD_SLAPD
721OL_VERSIONED_SYMBOLS
722BUILD_LIBS_DYNAMIC
723BUILD_THREAD
724WITH_SYSTEMD
725WITH_ACI_ENABLED
726WITH_MODULES_ENABLED
727WITH_TLS
728WITH_SASL
729PLAT
730LIBSRCS
731LIBOBJS
732systemdsystemunitdir
733WT_LIBS
734WT_CFLAGS
735PKG_CONFIG_LIBDIR
736PKG_CONFIG_PATH
737PKG_CONFIG
738LTSTATIC
739OL_MKDEP_FLAGS
740OL_MKDEP
741RC
742PERLBIN
743CPP
744LT_SYS_LIBRARY_PATH
745OTOOL64
746OTOOL
747LIPO
748NMEDIT
749DSYMUTIL
750MANIFEST_TOOL
751AWK
752RANLIB
753ac_ct_AR
754DLLTOOL
755OBJDUMP
756LN_S
757NM
758ac_ct_DUMPBIN
759DUMPBIN
760LD
761FGREP
762EGREP
763GREP
764SED
765OBJEXT
766EXEEXT
767ac_ct_CC
768CPPFLAGS
769LDFLAGS
770CFLAGS
771LIBTOOL
772SET_MAKE
773STRIP
774AR
775CC
776ldap_subdir
777top_builddir
778OPENLDAP_RELEASE_DATE
779OPENLDAP_LIBVERSION
780VERSION
781PACKAGE
782target_os
783target_vendor
784target_cpu
785target
786host_os
787host_vendor
788host_cpu
789host
790build_os
791build_vendor
792build_cpu
793build
794target_alias
795host_alias
796build_alias
797LIBS
798ECHO_T
799ECHO_N
800ECHO_C
801DEFS
802mandir
803localedir
804libdir
805psdir
806pdfdir
807dvidir
808htmldir
809infodir
810docdir
811oldincludedir
812includedir
813runstatedir
814localstatedir
815sharedstatedir
816sysconfdir
817datadir
818datarootdir
819libexecdir
820sbindir
821bindir
822program_transform_name
823prefix
824exec_prefix
825PACKAGE_URL
826PACKAGE_BUGREPORT
827PACKAGE_STRING
828PACKAGE_VERSION
829PACKAGE_TARNAME
830PACKAGE_NAME
831PATH_SEPARATOR
832SHELL'
833ac_subst_files=''
834ac_user_opts='
835enable_option_checking
836with_subdir
837enable_debug
838enable_dynamic
839enable_syslog
840enable_ipv6
841enable_local
842with_cyrus_sasl
843with_systemd
844with_fetch
845with_threads
846with_tls
847with_yielding_select
848with_mp
849with_odbc
850enable_xxslapdoptions
851enable_slapd
852enable_dynacl
853enable_aci
854enable_cleartext
855enable_crypt
856enable_spasswd
857enable_modules
858enable_rlookups
859enable_slapi
860enable_slp
861enable_wrappers
862enable_xxslapbackends
863enable_backends
864enable_dnssrv
865enable_ldap
866enable_mdb
867enable_meta
868enable_asyncmeta
869enable_null
870enable_passwd
871enable_perl
872enable_relay
873enable_sock
874enable_sql
875enable_wt
876enable_xxslapoverlays
877enable_overlays
878enable_accesslog
879enable_auditlog
880enable_autoca
881enable_collect
882enable_constraint
883enable_dds
884enable_deref
885enable_dyngroup
886enable_dynlist
887enable_homedir
888enable_memberof
889enable_otp
890enable_ppolicy
891enable_proxycache
892enable_refint
893enable_remoteauth
894enable_retcode
895enable_rwm
896enable_seqmod
897enable_sssvlv
898enable_syncprov
899enable_translucent
900enable_unique
901enable_valsort
902enable_pwmodoptions
903enable_argon2
904with_argon2
905enable_balanceroptions
906enable_balancer
907enable_xxliboptions
908enable_static
909enable_shared
910enable_versioning
911with_pic
912enable_fast_install
913with_aix_soname
914with_gnu_ld
915with_sysroot
916enable_libtool_lock
917with_xxinstall
918'
919      ac_precious_vars='build_alias
920host_alias
921target_alias
922CC
923CFLAGS
924LDFLAGS
925LIBS
926CPPFLAGS
927LT_SYS_LIBRARY_PATH
928CPP
929PKG_CONFIG
930PKG_CONFIG_PATH
931PKG_CONFIG_LIBDIR
932WT_CFLAGS
933WT_LIBS
934systemdsystemunitdir'
935
936
937# Initialize some variables set by options.
938ac_init_help=
939ac_init_version=false
940ac_unrecognized_opts=
941ac_unrecognized_sep=
942# The variables have the same names as the options, with
943# dashes changed to underlines.
944cache_file=/dev/null
945exec_prefix=NONE
946no_create=
947no_recursion=
948prefix=NONE
949program_prefix=NONE
950program_suffix=NONE
951program_transform_name=s,x,x,
952silent=
953site=
954srcdir=
955verbose=
956x_includes=NONE
957x_libraries=NONE
958
959# Installation directory options.
960# These are left unexpanded so users can "make install exec_prefix=/foo"
961# and all the variables that are supposed to be based on exec_prefix
962# by default will actually change.
963# Use braces instead of parens because sh, perl, etc. also accept them.
964# (The list follows the same order as the GNU Coding Standards.)
965bindir='${exec_prefix}/bin'
966sbindir='${exec_prefix}/sbin'
967libexecdir='${exec_prefix}/libexec'
968datarootdir='${prefix}/share'
969datadir='${datarootdir}'
970sysconfdir='${prefix}/etc'
971sharedstatedir='${prefix}/com'
972localstatedir='${prefix}/var'
973runstatedir='${localstatedir}/run'
974includedir='${prefix}/include'
975oldincludedir='/usr/include'
976docdir='${datarootdir}/doc/${PACKAGE}'
977infodir='${datarootdir}/info'
978htmldir='${docdir}'
979dvidir='${docdir}'
980pdfdir='${docdir}'
981psdir='${docdir}'
982libdir='${exec_prefix}/lib'
983localedir='${datarootdir}/locale'
984mandir='${datarootdir}/man'
985
986ac_prev=
987ac_dashdash=
988for ac_option
989do
990  # If the previous option needs an argument, assign it.
991  if test -n "$ac_prev"; then
992    eval $ac_prev=\$ac_option
993    ac_prev=
994    continue
995  fi
996
997  case $ac_option in
998  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
999  *=)   ac_optarg= ;;
1000  *)    ac_optarg=yes ;;
1001  esac
1002
1003  # Accept the important Cygnus configure options, so we can diagnose typos.
1004
1005  case $ac_dashdash$ac_option in
1006  --)
1007    ac_dashdash=yes ;;
1008
1009  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1010    ac_prev=bindir ;;
1011  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1012    bindir=$ac_optarg ;;
1013
1014  -build | --build | --buil | --bui | --bu)
1015    ac_prev=build_alias ;;
1016  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1017    build_alias=$ac_optarg ;;
1018
1019  -cache-file | --cache-file | --cache-fil | --cache-fi \
1020  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1021    ac_prev=cache_file ;;
1022  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1023  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1024    cache_file=$ac_optarg ;;
1025
1026  --config-cache | -C)
1027    cache_file=config.cache ;;
1028
1029  -datadir | --datadir | --datadi | --datad)
1030    ac_prev=datadir ;;
1031  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1032    datadir=$ac_optarg ;;
1033
1034  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1035  | --dataroo | --dataro | --datar)
1036    ac_prev=datarootdir ;;
1037  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1038  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1039    datarootdir=$ac_optarg ;;
1040
1041  -disable-* | --disable-*)
1042    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1043    # Reject names that are not valid shell variable names.
1044    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1045      as_fn_error $? "invalid feature name: $ac_useropt"
1046    ac_useropt_orig=$ac_useropt
1047    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1048    case $ac_user_opts in
1049      *"
1050"enable_$ac_useropt"
1051"*) ;;
1052      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1053	 ac_unrecognized_sep=', ';;
1054    esac
1055    eval enable_$ac_useropt=no ;;
1056
1057  -docdir | --docdir | --docdi | --doc | --do)
1058    ac_prev=docdir ;;
1059  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1060    docdir=$ac_optarg ;;
1061
1062  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1063    ac_prev=dvidir ;;
1064  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1065    dvidir=$ac_optarg ;;
1066
1067  -enable-* | --enable-*)
1068    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1069    # Reject names that are not valid shell variable names.
1070    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1071      as_fn_error $? "invalid feature name: $ac_useropt"
1072    ac_useropt_orig=$ac_useropt
1073    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1074    case $ac_user_opts in
1075      *"
1076"enable_$ac_useropt"
1077"*) ;;
1078      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1079	 ac_unrecognized_sep=', ';;
1080    esac
1081    eval enable_$ac_useropt=\$ac_optarg ;;
1082
1083  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1084  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1085  | --exec | --exe | --ex)
1086    ac_prev=exec_prefix ;;
1087  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1088  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1089  | --exec=* | --exe=* | --ex=*)
1090    exec_prefix=$ac_optarg ;;
1091
1092  -gas | --gas | --ga | --g)
1093    # Obsolete; use --with-gas.
1094    with_gas=yes ;;
1095
1096  -help | --help | --hel | --he | -h)
1097    ac_init_help=long ;;
1098  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1099    ac_init_help=recursive ;;
1100  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1101    ac_init_help=short ;;
1102
1103  -host | --host | --hos | --ho)
1104    ac_prev=host_alias ;;
1105  -host=* | --host=* | --hos=* | --ho=*)
1106    host_alias=$ac_optarg ;;
1107
1108  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1109    ac_prev=htmldir ;;
1110  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1111  | --ht=*)
1112    htmldir=$ac_optarg ;;
1113
1114  -includedir | --includedir | --includedi | --included | --include \
1115  | --includ | --inclu | --incl | --inc)
1116    ac_prev=includedir ;;
1117  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1118  | --includ=* | --inclu=* | --incl=* | --inc=*)
1119    includedir=$ac_optarg ;;
1120
1121  -infodir | --infodir | --infodi | --infod | --info | --inf)
1122    ac_prev=infodir ;;
1123  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1124    infodir=$ac_optarg ;;
1125
1126  -libdir | --libdir | --libdi | --libd)
1127    ac_prev=libdir ;;
1128  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1129    libdir=$ac_optarg ;;
1130
1131  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1132  | --libexe | --libex | --libe)
1133    ac_prev=libexecdir ;;
1134  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1135  | --libexe=* | --libex=* | --libe=*)
1136    libexecdir=$ac_optarg ;;
1137
1138  -localedir | --localedir | --localedi | --localed | --locale)
1139    ac_prev=localedir ;;
1140  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1141    localedir=$ac_optarg ;;
1142
1143  -localstatedir | --localstatedir | --localstatedi | --localstated \
1144  | --localstate | --localstat | --localsta | --localst | --locals)
1145    ac_prev=localstatedir ;;
1146  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1147  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1148    localstatedir=$ac_optarg ;;
1149
1150  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1151    ac_prev=mandir ;;
1152  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1153    mandir=$ac_optarg ;;
1154
1155  -nfp | --nfp | --nf)
1156    # Obsolete; use --without-fp.
1157    with_fp=no ;;
1158
1159  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1160  | --no-cr | --no-c | -n)
1161    no_create=yes ;;
1162
1163  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1164  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1165    no_recursion=yes ;;
1166
1167  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1168  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1169  | --oldin | --oldi | --old | --ol | --o)
1170    ac_prev=oldincludedir ;;
1171  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1172  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1173  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1174    oldincludedir=$ac_optarg ;;
1175
1176  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1177    ac_prev=prefix ;;
1178  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1179    prefix=$ac_optarg ;;
1180
1181  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1182  | --program-pre | --program-pr | --program-p)
1183    ac_prev=program_prefix ;;
1184  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1185  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1186    program_prefix=$ac_optarg ;;
1187
1188  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1189  | --program-suf | --program-su | --program-s)
1190    ac_prev=program_suffix ;;
1191  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1192  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1193    program_suffix=$ac_optarg ;;
1194
1195  -program-transform-name | --program-transform-name \
1196  | --program-transform-nam | --program-transform-na \
1197  | --program-transform-n | --program-transform- \
1198  | --program-transform | --program-transfor \
1199  | --program-transfo | --program-transf \
1200  | --program-trans | --program-tran \
1201  | --progr-tra | --program-tr | --program-t)
1202    ac_prev=program_transform_name ;;
1203  -program-transform-name=* | --program-transform-name=* \
1204  | --program-transform-nam=* | --program-transform-na=* \
1205  | --program-transform-n=* | --program-transform-=* \
1206  | --program-transform=* | --program-transfor=* \
1207  | --program-transfo=* | --program-transf=* \
1208  | --program-trans=* | --program-tran=* \
1209  | --progr-tra=* | --program-tr=* | --program-t=*)
1210    program_transform_name=$ac_optarg ;;
1211
1212  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1213    ac_prev=pdfdir ;;
1214  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1215    pdfdir=$ac_optarg ;;
1216
1217  -psdir | --psdir | --psdi | --psd | --ps)
1218    ac_prev=psdir ;;
1219  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1220    psdir=$ac_optarg ;;
1221
1222  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1223  | -silent | --silent | --silen | --sile | --sil)
1224    silent=yes ;;
1225
1226  -runstatedir | --runstatedir | --runstatedi | --runstated \
1227  | --runstate | --runstat | --runsta | --runst | --runs \
1228  | --run | --ru | --r)
1229    ac_prev=runstatedir ;;
1230  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1231  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1232  | --run=* | --ru=* | --r=*)
1233    runstatedir=$ac_optarg ;;
1234
1235  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1236    ac_prev=sbindir ;;
1237  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1238  | --sbi=* | --sb=*)
1239    sbindir=$ac_optarg ;;
1240
1241  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1242  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1243  | --sharedst | --shareds | --shared | --share | --shar \
1244  | --sha | --sh)
1245    ac_prev=sharedstatedir ;;
1246  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1247  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1248  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1249  | --sha=* | --sh=*)
1250    sharedstatedir=$ac_optarg ;;
1251
1252  -site | --site | --sit)
1253    ac_prev=site ;;
1254  -site=* | --site=* | --sit=*)
1255    site=$ac_optarg ;;
1256
1257  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1258    ac_prev=srcdir ;;
1259  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1260    srcdir=$ac_optarg ;;
1261
1262  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1263  | --syscon | --sysco | --sysc | --sys | --sy)
1264    ac_prev=sysconfdir ;;
1265  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1266  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1267    sysconfdir=$ac_optarg ;;
1268
1269  -target | --target | --targe | --targ | --tar | --ta | --t)
1270    ac_prev=target_alias ;;
1271  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1272    target_alias=$ac_optarg ;;
1273
1274  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1275    verbose=yes ;;
1276
1277  -version | --version | --versio | --versi | --vers | -V)
1278    ac_init_version=: ;;
1279
1280  -with-* | --with-*)
1281    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1282    # Reject names that are not valid shell variable names.
1283    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1284      as_fn_error $? "invalid package name: $ac_useropt"
1285    ac_useropt_orig=$ac_useropt
1286    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1287    case $ac_user_opts in
1288      *"
1289"with_$ac_useropt"
1290"*) ;;
1291      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1292	 ac_unrecognized_sep=', ';;
1293    esac
1294    eval with_$ac_useropt=\$ac_optarg ;;
1295
1296  -without-* | --without-*)
1297    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1298    # Reject names that are not valid shell variable names.
1299    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1300      as_fn_error $? "invalid package name: $ac_useropt"
1301    ac_useropt_orig=$ac_useropt
1302    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1303    case $ac_user_opts in
1304      *"
1305"with_$ac_useropt"
1306"*) ;;
1307      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1308	 ac_unrecognized_sep=', ';;
1309    esac
1310    eval with_$ac_useropt=no ;;
1311
1312  --x)
1313    # Obsolete; use --with-x.
1314    with_x=yes ;;
1315
1316  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1317  | --x-incl | --x-inc | --x-in | --x-i)
1318    ac_prev=x_includes ;;
1319  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1320  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1321    x_includes=$ac_optarg ;;
1322
1323  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1324  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1325    ac_prev=x_libraries ;;
1326  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1327  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1328    x_libraries=$ac_optarg ;;
1329
1330  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1331Try \`$0 --help' for more information"
1332    ;;
1333
1334  *=*)
1335    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1336    # Reject names that are not valid shell variable names.
1337    case $ac_envvar in #(
1338      '' | [0-9]* | *[!_$as_cr_alnum]* )
1339      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1340    esac
1341    eval $ac_envvar=\$ac_optarg
1342    export $ac_envvar ;;
1343
1344  *)
1345    # FIXME: should be removed in autoconf 3.0.
1346    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1347    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1348      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1349    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1350    ;;
1351
1352  esac
1353done
1354
1355if test -n "$ac_prev"; then
1356  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1357  as_fn_error $? "missing argument to $ac_option"
1358fi
1359
1360if test -n "$ac_unrecognized_opts"; then
1361  case $enable_option_checking in
1362    no) ;;
1363    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1364    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1365  esac
1366fi
1367
1368# Check all directory arguments for consistency.
1369for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1370		datadir sysconfdir sharedstatedir localstatedir includedir \
1371		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1372		libdir localedir mandir runstatedir
1373do
1374  eval ac_val=\$$ac_var
1375  # Remove trailing slashes.
1376  case $ac_val in
1377    */ )
1378      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1379      eval $ac_var=\$ac_val;;
1380  esac
1381  # Be sure to have absolute directory names.
1382  case $ac_val in
1383    [\\/$]* | ?:[\\/]* )  continue;;
1384    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1385  esac
1386  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1387done
1388
1389# There might be people who depend on the old broken behavior: `$host'
1390# used to hold the argument of --host etc.
1391# FIXME: To remove some day.
1392build=$build_alias
1393host=$host_alias
1394target=$target_alias
1395
1396# FIXME: To remove some day.
1397if test "x$host_alias" != x; then
1398  if test "x$build_alias" = x; then
1399    cross_compiling=maybe
1400  elif test "x$build_alias" != "x$host_alias"; then
1401    cross_compiling=yes
1402  fi
1403fi
1404
1405ac_tool_prefix=
1406test -n "$host_alias" && ac_tool_prefix=$host_alias-
1407
1408test "$silent" = yes && exec 6>/dev/null
1409
1410
1411ac_pwd=`pwd` && test -n "$ac_pwd" &&
1412ac_ls_di=`ls -di .` &&
1413ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1414  as_fn_error $? "working directory cannot be determined"
1415test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1416  as_fn_error $? "pwd does not report name of working directory"
1417
1418
1419# Find the source files, if location was not specified.
1420if test -z "$srcdir"; then
1421  ac_srcdir_defaulted=yes
1422  # Try the directory containing this script, then the parent directory.
1423  ac_confdir=`$as_dirname -- "$as_myself" ||
1424$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1425	 X"$as_myself" : 'X\(//\)[^/]' \| \
1426	 X"$as_myself" : 'X\(//\)$' \| \
1427	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1428$as_echo X"$as_myself" |
1429    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1430	    s//\1/
1431	    q
1432	  }
1433	  /^X\(\/\/\)[^/].*/{
1434	    s//\1/
1435	    q
1436	  }
1437	  /^X\(\/\/\)$/{
1438	    s//\1/
1439	    q
1440	  }
1441	  /^X\(\/\).*/{
1442	    s//\1/
1443	    q
1444	  }
1445	  s/.*/./; q'`
1446  srcdir=$ac_confdir
1447  if test ! -r "$srcdir/$ac_unique_file"; then
1448    srcdir=..
1449  fi
1450else
1451  ac_srcdir_defaulted=no
1452fi
1453if test ! -r "$srcdir/$ac_unique_file"; then
1454  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1455  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1456fi
1457ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1458ac_abs_confdir=`(
1459	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1460	pwd)`
1461# When building in place, set srcdir=.
1462if test "$ac_abs_confdir" = "$ac_pwd"; then
1463  srcdir=.
1464fi
1465# Remove unnecessary trailing slashes from srcdir.
1466# Double slashes in file names in object file debugging info
1467# mess up M-x gdb in Emacs.
1468case $srcdir in
1469*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1470esac
1471for ac_var in $ac_precious_vars; do
1472  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1473  eval ac_env_${ac_var}_value=\$${ac_var}
1474  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1475  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1476done
1477
1478#
1479# Report the --help message.
1480#
1481if test "$ac_init_help" = "long"; then
1482  # Omit some internal or obsolete options to make the list less imposing.
1483  # This message is too long to be a string in the A/UX 3.1 sh.
1484  cat <<_ACEOF
1485\`configure' configures this package to adapt to many kinds of systems.
1486
1487Usage: $0 [OPTION]... [VAR=VALUE]...
1488
1489To assign environment variables (e.g., CC, CFLAGS...), specify them as
1490VAR=VALUE.  See below for descriptions of some of the useful variables.
1491
1492Defaults for the options are specified in brackets.
1493
1494Configuration:
1495  -h, --help              display this help and exit
1496      --help=short        display options specific to this package
1497      --help=recursive    display the short help of all the included packages
1498  -V, --version           display version information and exit
1499  -q, --quiet, --silent   do not print \`checking ...' messages
1500      --cache-file=FILE   cache test results in FILE [disabled]
1501  -C, --config-cache      alias for \`--cache-file=config.cache'
1502  -n, --no-create         do not create output files
1503      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1504
1505Installation directories:
1506  --prefix=PREFIX         install architecture-independent files in PREFIX
1507                          [$ac_default_prefix]
1508  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1509                          [PREFIX]
1510
1511By default, \`make install' will install all the files in
1512\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1513an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1514for instance \`--prefix=\$HOME'.
1515
1516For better control, use the options below.
1517
1518Fine tuning of the installation directories:
1519  --bindir=DIR            user executables [EPREFIX/bin]
1520  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1521  --libexecdir=DIR        program executables [EPREFIX/libexec]
1522  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1523  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1524  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1525  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1526  --libdir=DIR            object code libraries [EPREFIX/lib]
1527  --includedir=DIR        C header files [PREFIX/include]
1528  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1529  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1530  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1531  --infodir=DIR           info documentation [DATAROOTDIR/info]
1532  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1533  --mandir=DIR            man documentation [DATAROOTDIR/man]
1534  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1535  --htmldir=DIR           html documentation [DOCDIR]
1536  --dvidir=DIR            dvi documentation [DOCDIR]
1537  --pdfdir=DIR            pdf documentation [DOCDIR]
1538  --psdir=DIR             ps documentation [DOCDIR]
1539_ACEOF
1540
1541  cat <<\_ACEOF
1542
1543System types:
1544  --build=BUILD     configure for building on BUILD [guessed]
1545  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1546  --target=TARGET   configure for building compilers for TARGET [HOST]
1547_ACEOF
1548fi
1549
1550if test -n "$ac_init_help"; then
1551
1552  cat <<\_ACEOF
1553
1554Optional Features:
1555  --disable-option-checking  ignore unrecognized --enable/--with options
1556  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1557  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1558  --enable-debug          enable debugging no|yes|traditional [yes]
1559  --enable-dynamic        enable linking built binaries with dynamic libs [auto]
1560  --enable-syslog         enable syslog support [auto]
1561  --enable-ipv6           enable IPv6 support [auto]
1562  --enable-local          enable AF_LOCAL (AF_UNIX) socket support [auto]
1563
1564SLAPD (Standalone LDAP Daemon) Options:
1565  --enable-slapd          enable building slapd [yes]
1566  --enable-dynacl         enable run-time loadable ACL support (experimental) [no]
1567  --enable-aci            enable per-object ACIs (experimental) no|yes|mod [no]
1568  --enable-cleartext      enable cleartext passwords [yes]
1569  --enable-crypt          enable crypt(3) passwords [no]
1570  --enable-spasswd        enable (Cyrus) SASL password verification [no]
1571  --enable-modules        enable dynamic module support [no]
1572  --enable-rlookups       enable reverse lookups of client hostnames [no]
1573  --enable-slapi          enable SLAPI support (experimental) [no]
1574  --enable-slp            enable SLPv2 support [no]
1575  --enable-wrappers       enable tcp wrapper support [no]
1576
1577SLAPD Backend Options:
1578  --enable-backends       enable all available backends no|yes|mod
1579  --enable-dnssrv         enable dnssrv backend no|yes|mod [no]
1580  --enable-ldap           enable ldap backend no|yes|mod [no]
1581  --enable-mdb            enable mdb database backend no|yes|mod [yes]
1582  --enable-meta           enable metadirectory backend no|yes|mod [no]
1583  --enable-asyncmeta      enable asynchronous metadirectory backend no|yes|mod [no]
1584  --enable-null           enable null backend no|yes|mod [no]
1585  --enable-passwd         enable passwd backend no|yes|mod [no]
1586  --enable-perl           enable perl backend no|yes|mod [no]
1587  --enable-relay          enable relay backend no|yes|mod [yes]
1588  --enable-sock           enable sock backend no|yes|mod [no]
1589  --enable-sql            enable sql backend no|yes|mod [no]
1590  --enable-wt             enable WiredTiger backend no|yes|mod [no]
1591
1592SLAPD Overlay Options:
1593  --enable-overlays       enable all available overlays no|yes|mod
1594  --enable-accesslog      In-Directory Access Logging overlay no|yes|mod [no]
1595  --enable-auditlog       Audit Logging overlay no|yes|mod [no]
1596  --enable-autoca         Automatic Certificate Authority overlay no|yes|mod [no]
1597  --enable-collect        Collect overlay no|yes|mod [no]
1598  --enable-constraint     Attribute Constraint overlay no|yes|mod [no]
1599  --enable-dds            Dynamic Directory Services overlay no|yes|mod [no]
1600  --enable-deref          Dereference overlay no|yes|mod [no]
1601  --enable-dyngroup       Dynamic Group overlay no|yes|mod [no]
1602  --enable-dynlist        Dynamic List overlay no|yes|mod [no]
1603  --enable-homedir        Home Directory Management overlay no|yes|mod [no]
1604  --enable-memberof       Reverse Group Membership overlay no|yes|mod [no]
1605  --enable-otp            OTP 2-factor authentication overlay no|yes|mod [no]
1606  --enable-ppolicy        Password Policy overlay no|yes|mod [no]
1607  --enable-proxycache     Proxy Cache overlay no|yes|mod [no]
1608  --enable-refint         Referential Integrity overlay no|yes|mod [no]
1609  --enable-remoteauth     Deferred Authentication overlay no|yes|mod [no]
1610  --enable-retcode        Return Code testing overlay no|yes|mod [no]
1611  --enable-rwm            Rewrite/Remap overlay no|yes|mod [no]
1612  --enable-seqmod         Sequential Modify overlay no|yes|mod [no]
1613  --enable-sssvlv         ServerSideSort/VLV overlay no|yes|mod [no]
1614  --enable-syncprov       Syncrepl Provider overlay no|yes|mod [yes]
1615  --enable-translucent    Translucent Proxy overlay no|yes|mod [no]
1616  --enable-unique         Attribute Uniqueness overlay no|yes|mod [no]
1617  --enable-valsort        Value Sorting overlay no|yes|mod [no]
1618
1619SLAPD Password Module Options:
1620  --enable-argon2         Argon2 password hashing module no|yes [no]
1621
1622LLOADD (Load Balancer Daemon) Options:
1623  --enable-balancer       enable load balancer no|yes|mod [no]
1624
1625Library Generation & Linking Options
1626  --enable-static[=PKGS]  build static libraries [default=yes]
1627  --enable-shared[=PKGS]  build shared libraries [default=yes]
1628  --enable-versioning     Enable versioned symbols in shared library no|yes|auto [auto]
1629  --enable-fast-install[=PKGS]
1630                          optimize for fast installation [default=yes]
1631  --disable-libtool-lock  avoid locking (might break parallel builds)
1632
1633Optional Packages:
1634  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1635  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1636  --with-subdir=DIR       change default subdirectory used for installs
1637  --with-cyrus-sasl       with Cyrus SASL support [auto]
1638  --with-systemd          with systemd service notification support [auto]
1639  --with-fetch            with fetch(3) URL support [auto]
1640  --with-threads          with threads library auto|nt|posix|pth|lwp|manual [auto]
1641  --with-tls              with TLS/SSL support auto|openssl|gnutls [auto]
1642  --with-yielding-select  with implicitly yielding select [auto]
1643  --with-mp               with multiple precision statistics
1644                          auto|longlong|long|bignum|gmp [auto]
1645  --with-odbc             with specific ODBC support
1646                          iodbc|unixodbc|odbc32|auto [auto]
1647  --with-argon2           with argon2 support library auto|libsodium|libargon2 [auto]
1648  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1649                          both]
1650  --with-aix-soname=aix|svr4|both
1651                          shared library versioning (aka "SONAME") variant to
1652                          provide on AIX, [default=aix].
1653  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1654  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1655                          compiler's sysroot if not specified).
1656
1657See INSTALL file for further details.
1658
1659Some influential environment variables:
1660  CC          C compiler command
1661  CFLAGS      C compiler flags
1662  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1663              nonstandard directory <lib dir>
1664  LIBS        libraries to pass to the linker, e.g. -l<library>
1665  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1666              you have headers in a nonstandard directory <include dir>
1667  LT_SYS_LIBRARY_PATH
1668              User-defined run-time library search path.
1669  CPP         C preprocessor
1670  PKG_CONFIG  path to pkg-config utility
1671  PKG_CONFIG_PATH
1672              directories to add to pkg-config's search path
1673  PKG_CONFIG_LIBDIR
1674              path overriding pkg-config's built-in search path
1675  WT_CFLAGS   C compiler flags for WT, overriding pkg-config
1676  WT_LIBS     linker flags for WT, overriding pkg-config
1677  systemdsystemunitdir
1678              value of systemdsystemunitdir for systemd, overriding pkg-config
1679
1680Use these variables to override the choices made by `configure' or to help
1681it to find libraries and programs with nonstandard names/locations.
1682
1683Report bugs to the package provider.
1684_ACEOF
1685ac_status=$?
1686fi
1687
1688if test "$ac_init_help" = "recursive"; then
1689  # If there are subdirs, report their specific --help.
1690  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1691    test -d "$ac_dir" ||
1692      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1693      continue
1694    ac_builddir=.
1695
1696case "$ac_dir" in
1697.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1698*)
1699  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1700  # A ".." for each directory in $ac_dir_suffix.
1701  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1702  case $ac_top_builddir_sub in
1703  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1704  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1705  esac ;;
1706esac
1707ac_abs_top_builddir=$ac_pwd
1708ac_abs_builddir=$ac_pwd$ac_dir_suffix
1709# for backward compatibility:
1710ac_top_builddir=$ac_top_build_prefix
1711
1712case $srcdir in
1713  .)  # We are building in place.
1714    ac_srcdir=.
1715    ac_top_srcdir=$ac_top_builddir_sub
1716    ac_abs_top_srcdir=$ac_pwd ;;
1717  [\\/]* | ?:[\\/]* )  # Absolute name.
1718    ac_srcdir=$srcdir$ac_dir_suffix;
1719    ac_top_srcdir=$srcdir
1720    ac_abs_top_srcdir=$srcdir ;;
1721  *) # Relative name.
1722    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1723    ac_top_srcdir=$ac_top_build_prefix$srcdir
1724    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1725esac
1726ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1727
1728    cd "$ac_dir" || { ac_status=$?; continue; }
1729    # Check for guested configure.
1730    if test -f "$ac_srcdir/configure.gnu"; then
1731      echo &&
1732      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1733    elif test -f "$ac_srcdir/configure"; then
1734      echo &&
1735      $SHELL "$ac_srcdir/configure" --help=recursive
1736    else
1737      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1738    fi || ac_status=$?
1739    cd "$ac_pwd" || { ac_status=$?; break; }
1740  done
1741fi
1742
1743test -n "$ac_init_help" && exit $ac_status
1744if $ac_init_version; then
1745  cat <<\_ACEOF
1746configure
1747generated by GNU Autoconf 2.69
1748
1749Copyright (C) 2012 Free Software Foundation, Inc.
1750This configure script is free software; the Free Software Foundation
1751gives unlimited permission to copy, distribute and modify it.
1752
1753Copyright 1998-2021 The OpenLDAP Foundation. All rights reserved.
1754Restrictions apply, see COPYRIGHT and LICENSE files.
1755_ACEOF
1756  exit
1757fi
1758
1759## ------------------------ ##
1760## Autoconf initialization. ##
1761## ------------------------ ##
1762
1763# ac_fn_c_try_compile LINENO
1764# --------------------------
1765# Try to compile conftest.$ac_ext, and return whether this succeeded.
1766ac_fn_c_try_compile ()
1767{
1768  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1769  rm -f conftest.$ac_objext
1770  if { { ac_try="$ac_compile"
1771case "(($ac_try" in
1772  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1773  *) ac_try_echo=$ac_try;;
1774esac
1775eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1776$as_echo "$ac_try_echo"; } >&5
1777  (eval "$ac_compile") 2>conftest.err
1778  ac_status=$?
1779  if test -s conftest.err; then
1780    grep -v '^ *+' conftest.err >conftest.er1
1781    cat conftest.er1 >&5
1782    mv -f conftest.er1 conftest.err
1783  fi
1784  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1785  test $ac_status = 0; } && {
1786	 test -z "$ac_c_werror_flag" ||
1787	 test ! -s conftest.err
1788       } && test -s conftest.$ac_objext; then :
1789  ac_retval=0
1790else
1791  $as_echo "$as_me: failed program was:" >&5
1792sed 's/^/| /' conftest.$ac_ext >&5
1793
1794	ac_retval=1
1795fi
1796  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1797  as_fn_set_status $ac_retval
1798
1799} # ac_fn_c_try_compile
1800
1801# ac_fn_c_try_link LINENO
1802# -----------------------
1803# Try to link conftest.$ac_ext, and return whether this succeeded.
1804ac_fn_c_try_link ()
1805{
1806  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1807  rm -f conftest.$ac_objext conftest$ac_exeext
1808  if { { ac_try="$ac_link"
1809case "(($ac_try" in
1810  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1811  *) ac_try_echo=$ac_try;;
1812esac
1813eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1814$as_echo "$ac_try_echo"; } >&5
1815  (eval "$ac_link") 2>conftest.err
1816  ac_status=$?
1817  if test -s conftest.err; then
1818    grep -v '^ *+' conftest.err >conftest.er1
1819    cat conftest.er1 >&5
1820    mv -f conftest.er1 conftest.err
1821  fi
1822  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1823  test $ac_status = 0; } && {
1824	 test -z "$ac_c_werror_flag" ||
1825	 test ! -s conftest.err
1826       } && test -s conftest$ac_exeext && {
1827	 test "$cross_compiling" = yes ||
1828	 test -x conftest$ac_exeext
1829       }; then :
1830  ac_retval=0
1831else
1832  $as_echo "$as_me: failed program was:" >&5
1833sed 's/^/| /' conftest.$ac_ext >&5
1834
1835	ac_retval=1
1836fi
1837  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1838  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1839  # interfere with the next link command; also delete a directory that is
1840  # left behind by Apple's compiler.  We do this before executing the actions.
1841  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1842  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1843  as_fn_set_status $ac_retval
1844
1845} # ac_fn_c_try_link
1846
1847# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1848# -------------------------------------------------------
1849# Tests whether HEADER exists and can be compiled using the include files in
1850# INCLUDES, setting the cache variable VAR accordingly.
1851ac_fn_c_check_header_compile ()
1852{
1853  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1854  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1855$as_echo_n "checking for $2... " >&6; }
1856if eval \${$3+:} false; then :
1857  $as_echo_n "(cached) " >&6
1858else
1859  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1860/* end confdefs.h.  */
1861$4
1862#include <$2>
1863_ACEOF
1864if ac_fn_c_try_compile "$LINENO"; then :
1865  eval "$3=yes"
1866else
1867  eval "$3=no"
1868fi
1869rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1870fi
1871eval ac_res=\$$3
1872	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1873$as_echo "$ac_res" >&6; }
1874  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1875
1876} # ac_fn_c_check_header_compile
1877
1878# ac_fn_c_try_cpp LINENO
1879# ----------------------
1880# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1881ac_fn_c_try_cpp ()
1882{
1883  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1884  if { { ac_try="$ac_cpp conftest.$ac_ext"
1885case "(($ac_try" in
1886  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1887  *) ac_try_echo=$ac_try;;
1888esac
1889eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1890$as_echo "$ac_try_echo"; } >&5
1891  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1892  ac_status=$?
1893  if test -s conftest.err; then
1894    grep -v '^ *+' conftest.err >conftest.er1
1895    cat conftest.er1 >&5
1896    mv -f conftest.er1 conftest.err
1897  fi
1898  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1899  test $ac_status = 0; } > conftest.i && {
1900	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1901	 test ! -s conftest.err
1902       }; then :
1903  ac_retval=0
1904else
1905  $as_echo "$as_me: failed program was:" >&5
1906sed 's/^/| /' conftest.$ac_ext >&5
1907
1908    ac_retval=1
1909fi
1910  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1911  as_fn_set_status $ac_retval
1912
1913} # ac_fn_c_try_cpp
1914
1915# ac_fn_c_try_run LINENO
1916# ----------------------
1917# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1918# that executables *can* be run.
1919ac_fn_c_try_run ()
1920{
1921  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1922  if { { ac_try="$ac_link"
1923case "(($ac_try" in
1924  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1925  *) ac_try_echo=$ac_try;;
1926esac
1927eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1928$as_echo "$ac_try_echo"; } >&5
1929  (eval "$ac_link") 2>&5
1930  ac_status=$?
1931  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1932  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1933  { { case "(($ac_try" in
1934  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1935  *) ac_try_echo=$ac_try;;
1936esac
1937eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1938$as_echo "$ac_try_echo"; } >&5
1939  (eval "$ac_try") 2>&5
1940  ac_status=$?
1941  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1942  test $ac_status = 0; }; }; then :
1943  ac_retval=0
1944else
1945  $as_echo "$as_me: program exited with status $ac_status" >&5
1946       $as_echo "$as_me: failed program was:" >&5
1947sed 's/^/| /' conftest.$ac_ext >&5
1948
1949       ac_retval=$ac_status
1950fi
1951  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1952  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1953  as_fn_set_status $ac_retval
1954
1955} # ac_fn_c_try_run
1956
1957# ac_fn_c_check_func LINENO FUNC VAR
1958# ----------------------------------
1959# Tests whether FUNC exists, setting the cache variable VAR accordingly
1960ac_fn_c_check_func ()
1961{
1962  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1963  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1964$as_echo_n "checking for $2... " >&6; }
1965if eval \${$3+:} false; then :
1966  $as_echo_n "(cached) " >&6
1967else
1968  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1969/* end confdefs.h.  */
1970/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1971   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1972#define $2 innocuous_$2
1973
1974/* System header to define __stub macros and hopefully few prototypes,
1975    which can conflict with char $2 (); below.
1976    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1977    <limits.h> exists even on freestanding compilers.  */
1978
1979#ifdef __STDC__
1980# include <limits.h>
1981#else
1982# include <assert.h>
1983#endif
1984
1985#undef $2
1986
1987/* Override any GCC internal prototype to avoid an error.
1988   Use char because int might match the return type of a GCC
1989   builtin and then its argument prototype would still apply.  */
1990#ifdef __cplusplus
1991extern "C"
1992#endif
1993char $2 ();
1994/* The GNU C library defines this for functions which it implements
1995    to always fail with ENOSYS.  Some functions are actually named
1996    something starting with __ and the normal name is an alias.  */
1997#if defined __stub_$2 || defined __stub___$2
1998choke me
1999#endif
2000
2001int
2002main ()
2003{
2004return $2 ();
2005  ;
2006  return 0;
2007}
2008_ACEOF
2009if ac_fn_c_try_link "$LINENO"; then :
2010  eval "$3=yes"
2011else
2012  eval "$3=no"
2013fi
2014rm -f core conftest.err conftest.$ac_objext \
2015    conftest$ac_exeext conftest.$ac_ext
2016fi
2017eval ac_res=\$$3
2018	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2019$as_echo "$ac_res" >&6; }
2020  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2021
2022} # ac_fn_c_check_func
2023
2024# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2025# -------------------------------------------------------
2026# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2027# the include files in INCLUDES and setting the cache variable VAR
2028# accordingly.
2029ac_fn_c_check_header_mongrel ()
2030{
2031  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2032  if eval \${$3+:} false; then :
2033  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2034$as_echo_n "checking for $2... " >&6; }
2035if eval \${$3+:} false; then :
2036  $as_echo_n "(cached) " >&6
2037fi
2038eval ac_res=\$$3
2039	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2040$as_echo "$ac_res" >&6; }
2041else
2042  # Is the header compilable?
2043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2044$as_echo_n "checking $2 usability... " >&6; }
2045cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2046/* end confdefs.h.  */
2047$4
2048#include <$2>
2049_ACEOF
2050if ac_fn_c_try_compile "$LINENO"; then :
2051  ac_header_compiler=yes
2052else
2053  ac_header_compiler=no
2054fi
2055rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2057$as_echo "$ac_header_compiler" >&6; }
2058
2059# Is the header present?
2060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2061$as_echo_n "checking $2 presence... " >&6; }
2062cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2063/* end confdefs.h.  */
2064#include <$2>
2065_ACEOF
2066if ac_fn_c_try_cpp "$LINENO"; then :
2067  ac_header_preproc=yes
2068else
2069  ac_header_preproc=no
2070fi
2071rm -f conftest.err conftest.i conftest.$ac_ext
2072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2073$as_echo "$ac_header_preproc" >&6; }
2074
2075# So?  What about this header?
2076case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2077  yes:no: )
2078    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2079$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2080    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2081$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2082    ;;
2083  no:yes:* )
2084    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2085$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2086    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2087$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2088    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2089$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2090    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2091$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2092    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2093$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2094    ;;
2095esac
2096  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2097$as_echo_n "checking for $2... " >&6; }
2098if eval \${$3+:} false; then :
2099  $as_echo_n "(cached) " >&6
2100else
2101  eval "$3=\$ac_header_compiler"
2102fi
2103eval ac_res=\$$3
2104	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2105$as_echo "$ac_res" >&6; }
2106fi
2107  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2108
2109} # ac_fn_c_check_header_mongrel
2110
2111# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2112# -------------------------------------------
2113# Tests whether TYPE exists after having included INCLUDES, setting cache
2114# variable VAR accordingly.
2115ac_fn_c_check_type ()
2116{
2117  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2118  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2119$as_echo_n "checking for $2... " >&6; }
2120if eval \${$3+:} false; then :
2121  $as_echo_n "(cached) " >&6
2122else
2123  eval "$3=no"
2124  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2125/* end confdefs.h.  */
2126$4
2127int
2128main ()
2129{
2130if (sizeof ($2))
2131	 return 0;
2132  ;
2133  return 0;
2134}
2135_ACEOF
2136if ac_fn_c_try_compile "$LINENO"; then :
2137  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2138/* end confdefs.h.  */
2139$4
2140int
2141main ()
2142{
2143if (sizeof (($2)))
2144	    return 0;
2145  ;
2146  return 0;
2147}
2148_ACEOF
2149if ac_fn_c_try_compile "$LINENO"; then :
2150
2151else
2152  eval "$3=yes"
2153fi
2154rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2155fi
2156rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2157fi
2158eval ac_res=\$$3
2159	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2160$as_echo "$ac_res" >&6; }
2161  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2162
2163} # ac_fn_c_check_type
2164
2165# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2166# ----------------------------------------------------
2167# Tries to find if the field MEMBER exists in type AGGR, after including
2168# INCLUDES, setting cache variable VAR accordingly.
2169ac_fn_c_check_member ()
2170{
2171  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2172  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2173$as_echo_n "checking for $2.$3... " >&6; }
2174if eval \${$4+:} false; then :
2175  $as_echo_n "(cached) " >&6
2176else
2177  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2178/* end confdefs.h.  */
2179$5
2180int
2181main ()
2182{
2183static $2 ac_aggr;
2184if (ac_aggr.$3)
2185return 0;
2186  ;
2187  return 0;
2188}
2189_ACEOF
2190if ac_fn_c_try_compile "$LINENO"; then :
2191  eval "$4=yes"
2192else
2193  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2194/* end confdefs.h.  */
2195$5
2196int
2197main ()
2198{
2199static $2 ac_aggr;
2200if (sizeof ac_aggr.$3)
2201return 0;
2202  ;
2203  return 0;
2204}
2205_ACEOF
2206if ac_fn_c_try_compile "$LINENO"; then :
2207  eval "$4=yes"
2208else
2209  eval "$4=no"
2210fi
2211rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2212fi
2213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2214fi
2215eval ac_res=\$$4
2216	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2217$as_echo "$ac_res" >&6; }
2218  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2219
2220} # ac_fn_c_check_member
2221
2222# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2223# --------------------------------------------
2224# Tries to find the compile-time value of EXPR in a program that includes
2225# INCLUDES, setting VAR accordingly. Returns whether the value could be
2226# computed
2227ac_fn_c_compute_int ()
2228{
2229  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2230  if test "$cross_compiling" = yes; then
2231    # Depending upon the size, compute the lo and hi bounds.
2232cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2233/* end confdefs.h.  */
2234$4
2235int
2236main ()
2237{
2238static int test_array [1 - 2 * !(($2) >= 0)];
2239test_array [0] = 0;
2240return test_array [0];
2241
2242  ;
2243  return 0;
2244}
2245_ACEOF
2246if ac_fn_c_try_compile "$LINENO"; then :
2247  ac_lo=0 ac_mid=0
2248  while :; do
2249    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2250/* end confdefs.h.  */
2251$4
2252int
2253main ()
2254{
2255static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2256test_array [0] = 0;
2257return test_array [0];
2258
2259  ;
2260  return 0;
2261}
2262_ACEOF
2263if ac_fn_c_try_compile "$LINENO"; then :
2264  ac_hi=$ac_mid; break
2265else
2266  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2267			if test $ac_lo -le $ac_mid; then
2268			  ac_lo= ac_hi=
2269			  break
2270			fi
2271			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2272fi
2273rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2274  done
2275else
2276  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2277/* end confdefs.h.  */
2278$4
2279int
2280main ()
2281{
2282static int test_array [1 - 2 * !(($2) < 0)];
2283test_array [0] = 0;
2284return test_array [0];
2285
2286  ;
2287  return 0;
2288}
2289_ACEOF
2290if ac_fn_c_try_compile "$LINENO"; then :
2291  ac_hi=-1 ac_mid=-1
2292  while :; do
2293    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2294/* end confdefs.h.  */
2295$4
2296int
2297main ()
2298{
2299static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2300test_array [0] = 0;
2301return test_array [0];
2302
2303  ;
2304  return 0;
2305}
2306_ACEOF
2307if ac_fn_c_try_compile "$LINENO"; then :
2308  ac_lo=$ac_mid; break
2309else
2310  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2311			if test $ac_mid -le $ac_hi; then
2312			  ac_lo= ac_hi=
2313			  break
2314			fi
2315			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2316fi
2317rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2318  done
2319else
2320  ac_lo= ac_hi=
2321fi
2322rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2323fi
2324rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2325# Binary search between lo and hi bounds.
2326while test "x$ac_lo" != "x$ac_hi"; do
2327  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2328  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2329/* end confdefs.h.  */
2330$4
2331int
2332main ()
2333{
2334static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2335test_array [0] = 0;
2336return test_array [0];
2337
2338  ;
2339  return 0;
2340}
2341_ACEOF
2342if ac_fn_c_try_compile "$LINENO"; then :
2343  ac_hi=$ac_mid
2344else
2345  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2346fi
2347rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2348done
2349case $ac_lo in #((
2350?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2351'') ac_retval=1 ;;
2352esac
2353  else
2354    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2355/* end confdefs.h.  */
2356$4
2357static long int longval () { return $2; }
2358static unsigned long int ulongval () { return $2; }
2359#include <stdio.h>
2360#include <stdlib.h>
2361int
2362main ()
2363{
2364
2365  FILE *f = fopen ("conftest.val", "w");
2366  if (! f)
2367    return 1;
2368  if (($2) < 0)
2369    {
2370      long int i = longval ();
2371      if (i != ($2))
2372	return 1;
2373      fprintf (f, "%ld", i);
2374    }
2375  else
2376    {
2377      unsigned long int i = ulongval ();
2378      if (i != ($2))
2379	return 1;
2380      fprintf (f, "%lu", i);
2381    }
2382  /* Do not output a trailing newline, as this causes \r\n confusion
2383     on some platforms.  */
2384  return ferror (f) || fclose (f) != 0;
2385
2386  ;
2387  return 0;
2388}
2389_ACEOF
2390if ac_fn_c_try_run "$LINENO"; then :
2391  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2392else
2393  ac_retval=1
2394fi
2395rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2396  conftest.$ac_objext conftest.beam conftest.$ac_ext
2397rm -f conftest.val
2398
2399  fi
2400  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2401  as_fn_set_status $ac_retval
2402
2403} # ac_fn_c_compute_int
2404cat >config.log <<_ACEOF
2405This file contains any messages produced by compilers while
2406running configure, to aid debugging if configure makes a mistake.
2407
2408It was created by $as_me, which was
2409generated by GNU Autoconf 2.69.  Invocation command line was
2410
2411  $ $0 $@
2412
2413_ACEOF
2414exec 5>>config.log
2415{
2416cat <<_ASUNAME
2417## --------- ##
2418## Platform. ##
2419## --------- ##
2420
2421hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2422uname -m = `(uname -m) 2>/dev/null || echo unknown`
2423uname -r = `(uname -r) 2>/dev/null || echo unknown`
2424uname -s = `(uname -s) 2>/dev/null || echo unknown`
2425uname -v = `(uname -v) 2>/dev/null || echo unknown`
2426
2427/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2428/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2429
2430/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2431/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2432/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2433/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2434/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2435/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2436/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2437
2438_ASUNAME
2439
2440as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2441for as_dir in $PATH
2442do
2443  IFS=$as_save_IFS
2444  test -z "$as_dir" && as_dir=.
2445    $as_echo "PATH: $as_dir"
2446  done
2447IFS=$as_save_IFS
2448
2449} >&5
2450
2451cat >&5 <<_ACEOF
2452
2453
2454## ----------- ##
2455## Core tests. ##
2456## ----------- ##
2457
2458_ACEOF
2459
2460
2461# Keep a trace of the command line.
2462# Strip out --no-create and --no-recursion so they do not pile up.
2463# Strip out --silent because we don't want to record it for future runs.
2464# Also quote any args containing shell meta-characters.
2465# Make two passes to allow for proper duplicate-argument suppression.
2466ac_configure_args=
2467ac_configure_args0=
2468ac_configure_args1=
2469ac_must_keep_next=false
2470for ac_pass in 1 2
2471do
2472  for ac_arg
2473  do
2474    case $ac_arg in
2475    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2476    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2477    | -silent | --silent | --silen | --sile | --sil)
2478      continue ;;
2479    *\'*)
2480      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2481    esac
2482    case $ac_pass in
2483    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2484    2)
2485      as_fn_append ac_configure_args1 " '$ac_arg'"
2486      if test $ac_must_keep_next = true; then
2487	ac_must_keep_next=false # Got value, back to normal.
2488      else
2489	case $ac_arg in
2490	  *=* | --config-cache | -C | -disable-* | --disable-* \
2491	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2492	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2493	  | -with-* | --with-* | -without-* | --without-* | --x)
2494	    case "$ac_configure_args0 " in
2495	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2496	    esac
2497	    ;;
2498	  -* ) ac_must_keep_next=true ;;
2499	esac
2500      fi
2501      as_fn_append ac_configure_args " '$ac_arg'"
2502      ;;
2503    esac
2504  done
2505done
2506{ ac_configure_args0=; unset ac_configure_args0;}
2507{ ac_configure_args1=; unset ac_configure_args1;}
2508
2509# When interrupted or exit'd, cleanup temporary files, and complete
2510# config.log.  We remove comments because anyway the quotes in there
2511# would cause problems or look ugly.
2512# WARNING: Use '\'' to represent an apostrophe within the trap.
2513# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2514trap 'exit_status=$?
2515  # Save into config.log some information that might help in debugging.
2516  {
2517    echo
2518
2519    $as_echo "## ---------------- ##
2520## Cache variables. ##
2521## ---------------- ##"
2522    echo
2523    # The following way of writing the cache mishandles newlines in values,
2524(
2525  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2526    eval ac_val=\$$ac_var
2527    case $ac_val in #(
2528    *${as_nl}*)
2529      case $ac_var in #(
2530      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2531$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2532      esac
2533      case $ac_var in #(
2534      _ | IFS | as_nl) ;; #(
2535      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2536      *) { eval $ac_var=; unset $ac_var;} ;;
2537      esac ;;
2538    esac
2539  done
2540  (set) 2>&1 |
2541    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2542    *${as_nl}ac_space=\ *)
2543      sed -n \
2544	"s/'\''/'\''\\\\'\'''\''/g;
2545	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2546      ;; #(
2547    *)
2548      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2549      ;;
2550    esac |
2551    sort
2552)
2553    echo
2554
2555    $as_echo "## ----------------- ##
2556## Output variables. ##
2557## ----------------- ##"
2558    echo
2559    for ac_var in $ac_subst_vars
2560    do
2561      eval ac_val=\$$ac_var
2562      case $ac_val in
2563      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2564      esac
2565      $as_echo "$ac_var='\''$ac_val'\''"
2566    done | sort
2567    echo
2568
2569    if test -n "$ac_subst_files"; then
2570      $as_echo "## ------------------- ##
2571## File substitutions. ##
2572## ------------------- ##"
2573      echo
2574      for ac_var in $ac_subst_files
2575      do
2576	eval ac_val=\$$ac_var
2577	case $ac_val in
2578	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2579	esac
2580	$as_echo "$ac_var='\''$ac_val'\''"
2581      done | sort
2582      echo
2583    fi
2584
2585    if test -s confdefs.h; then
2586      $as_echo "## ----------- ##
2587## confdefs.h. ##
2588## ----------- ##"
2589      echo
2590      cat confdefs.h
2591      echo
2592    fi
2593    test "$ac_signal" != 0 &&
2594      $as_echo "$as_me: caught signal $ac_signal"
2595    $as_echo "$as_me: exit $exit_status"
2596  } >&5
2597  rm -f core *.core core.conftest.* &&
2598    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2599    exit $exit_status
2600' 0
2601for ac_signal in 1 2 13 15; do
2602  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2603done
2604ac_signal=0
2605
2606# confdefs.h avoids OS command line length limits that DEFS can exceed.
2607rm -f -r conftest* confdefs.h
2608
2609$as_echo "/* confdefs.h */" > confdefs.h
2610
2611# Predefined preprocessor variables.
2612
2613cat >>confdefs.h <<_ACEOF
2614#define PACKAGE_NAME "$PACKAGE_NAME"
2615_ACEOF
2616
2617cat >>confdefs.h <<_ACEOF
2618#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2619_ACEOF
2620
2621cat >>confdefs.h <<_ACEOF
2622#define PACKAGE_VERSION "$PACKAGE_VERSION"
2623_ACEOF
2624
2625cat >>confdefs.h <<_ACEOF
2626#define PACKAGE_STRING "$PACKAGE_STRING"
2627_ACEOF
2628
2629cat >>confdefs.h <<_ACEOF
2630#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2631_ACEOF
2632
2633cat >>confdefs.h <<_ACEOF
2634#define PACKAGE_URL "$PACKAGE_URL"
2635_ACEOF
2636
2637
2638# Let the site file select an alternate cache file if it wants to.
2639# Prefer an explicitly selected file to automatically selected ones.
2640ac_site_file1=NONE
2641ac_site_file2=NONE
2642if test -n "$CONFIG_SITE"; then
2643  # We do not want a PATH search for config.site.
2644  case $CONFIG_SITE in #((
2645    -*)  ac_site_file1=./$CONFIG_SITE;;
2646    */*) ac_site_file1=$CONFIG_SITE;;
2647    *)   ac_site_file1=./$CONFIG_SITE;;
2648  esac
2649elif test "x$prefix" != xNONE; then
2650  ac_site_file1=$prefix/share/config.site
2651  ac_site_file2=$prefix/etc/config.site
2652else
2653  ac_site_file1=$ac_default_prefix/share/config.site
2654  ac_site_file2=$ac_default_prefix/etc/config.site
2655fi
2656for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2657do
2658  test "x$ac_site_file" = xNONE && continue
2659  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2660    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2661$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2662    sed 's/^/| /' "$ac_site_file" >&5
2663    . "$ac_site_file" \
2664      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2665$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2666as_fn_error $? "failed to load site script $ac_site_file
2667See \`config.log' for more details" "$LINENO" 5; }
2668  fi
2669done
2670
2671
2672as_fn_append ac_header_list " sys/time.h"
2673# Check that the precious variables saved in the cache have kept the same
2674# value.
2675ac_cache_corrupted=false
2676for ac_var in $ac_precious_vars; do
2677  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2678  eval ac_new_set=\$ac_env_${ac_var}_set
2679  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2680  eval ac_new_val=\$ac_env_${ac_var}_value
2681  case $ac_old_set,$ac_new_set in
2682    set,)
2683      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2684$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2685      ac_cache_corrupted=: ;;
2686    ,set)
2687      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2688$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2689      ac_cache_corrupted=: ;;
2690    ,);;
2691    *)
2692      if test "x$ac_old_val" != "x$ac_new_val"; then
2693	# differences in whitespace do not lead to failure.
2694	ac_old_val_w=`echo x $ac_old_val`
2695	ac_new_val_w=`echo x $ac_new_val`
2696	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2697	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2698$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2699	  ac_cache_corrupted=:
2700	else
2701	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2702$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2703	  eval $ac_var=\$ac_old_val
2704	fi
2705	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2706$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2707	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2708$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2709      fi;;
2710  esac
2711  # Pass precious variables to config.status.
2712  if test "$ac_new_set" = set; then
2713    case $ac_new_val in
2714    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2715    *) ac_arg=$ac_var=$ac_new_val ;;
2716    esac
2717    case " $ac_configure_args " in
2718      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2719      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2720    esac
2721  fi
2722done
2723if $ac_cache_corrupted; then
2724  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2725$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2726  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2727$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2728  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2729fi
2730## -------------------- ##
2731## Main body of script. ##
2732## -------------------- ##
2733
2734ac_ext=c
2735ac_cpp='$CPP $CPPFLAGS'
2736ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2737ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2738ac_compiler_gnu=$ac_cv_c_compiler_gnu
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760ac_aux_dir=
2761for ac_dir in build "$srcdir"/build; do
2762  if test -f "$ac_dir/install-sh"; then
2763    ac_aux_dir=$ac_dir
2764    ac_install_sh="$ac_aux_dir/install-sh -c"
2765    break
2766  elif test -f "$ac_dir/install.sh"; then
2767    ac_aux_dir=$ac_dir
2768    ac_install_sh="$ac_aux_dir/install.sh -c"
2769    break
2770  elif test -f "$ac_dir/shtool"; then
2771    ac_aux_dir=$ac_dir
2772    ac_install_sh="$ac_aux_dir/shtool install -c"
2773    break
2774  fi
2775done
2776if test -z "$ac_aux_dir"; then
2777  as_fn_error $? "cannot find install-sh, install.sh, or shtool in build \"$srcdir\"/build" "$LINENO" 5
2778fi
2779
2780# These three variables are undocumented and unsupported,
2781# and are intended to be withdrawn in a future Autoconf release.
2782# They can cause serious problems if a builder's source tree is in a directory
2783# whose full name contains unusual characters.
2784ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2785ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2786ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2787
2788
2789
2790eval `$ac_aux_dir/version.sh`
2791if test -z "$OL_STRING"; then
2792	as_fn_error $? "could not determine version" "$LINENO" 5
2793fi
2794
2795if test -f "$ac_aux_dir/shtool" && test ! -d $ac_aux_dir/shtool; then
2796	ac_cv_shtool="$ac_aux_dir/shtool"
2797else
2798	as_fn_error $? "no shtool found in $ac_aux_dir" "$LINENO" 5
2799fi
2800
2801SHTOOL="$ac_cv_shtool"
2802
2803TB="" TN=""
2804if test -t 1; then
2805	TB="`$SHTOOL echo -e '%B' 2>/dev/null`"
2806	TN="`$SHTOOL echo -e '%b' 2>/dev/null`"
2807fi
2808
2809OPENLDAP_REPO=""
2810if test -d $ac_aux_dir/../.git; then
2811	OPENLDAP_REPO="(from Git clone) "
2812elif test -d $ac_aux_dir/CVS; then
2813	OPENLDAP_REPO="(from CVS checkout) "
2814fi
2815
2816echo "Configuring ${TB}${OL_STRING}${TN} ${OPENLDAP_REPO}..."
2817
2818# Make sure we can run config.sub.
2819$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2820  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2821
2822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2823$as_echo_n "checking build system type... " >&6; }
2824if ${ac_cv_build+:} false; then :
2825  $as_echo_n "(cached) " >&6
2826else
2827  ac_build_alias=$build_alias
2828test "x$ac_build_alias" = x &&
2829  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2830test "x$ac_build_alias" = x &&
2831  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2832ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2833  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2834
2835fi
2836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2837$as_echo "$ac_cv_build" >&6; }
2838case $ac_cv_build in
2839*-*-*) ;;
2840*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2841esac
2842build=$ac_cv_build
2843ac_save_IFS=$IFS; IFS='-'
2844set x $ac_cv_build
2845shift
2846build_cpu=$1
2847build_vendor=$2
2848shift; shift
2849# Remember, the first character of IFS is used to create $*,
2850# except with old shells:
2851build_os=$*
2852IFS=$ac_save_IFS
2853case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2854
2855
2856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2857$as_echo_n "checking host system type... " >&6; }
2858if ${ac_cv_host+:} false; then :
2859  $as_echo_n "(cached) " >&6
2860else
2861  if test "x$host_alias" = x; then
2862  ac_cv_host=$ac_cv_build
2863else
2864  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2865    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2866fi
2867
2868fi
2869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2870$as_echo "$ac_cv_host" >&6; }
2871case $ac_cv_host in
2872*-*-*) ;;
2873*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2874esac
2875host=$ac_cv_host
2876ac_save_IFS=$IFS; IFS='-'
2877set x $ac_cv_host
2878shift
2879host_cpu=$1
2880host_vendor=$2
2881shift; shift
2882# Remember, the first character of IFS is used to create $*,
2883# except with old shells:
2884host_os=$*
2885IFS=$ac_save_IFS
2886case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2887
2888
2889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2890$as_echo_n "checking target system type... " >&6; }
2891if ${ac_cv_target+:} false; then :
2892  $as_echo_n "(cached) " >&6
2893else
2894  if test "x$target_alias" = x; then
2895  ac_cv_target=$ac_cv_host
2896else
2897  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2898    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2899fi
2900
2901fi
2902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2903$as_echo "$ac_cv_target" >&6; }
2904case $ac_cv_target in
2905*-*-*) ;;
2906*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2907esac
2908target=$ac_cv_target
2909ac_save_IFS=$IFS; IFS='-'
2910set x $ac_cv_target
2911shift
2912target_cpu=$1
2913target_vendor=$2
2914shift; shift
2915# Remember, the first character of IFS is used to create $*,
2916# except with old shells:
2917target_os=$*
2918IFS=$ac_save_IFS
2919case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2920
2921
2922# The aliases save the names the user supplied, while $host etc.
2923# will get canonicalized.
2924test -n "$target_alias" &&
2925  test "$program_prefix$program_suffix$program_transform_name" = \
2926    NONENONEs,x,x, &&
2927  program_prefix=${target_alias}-
2928
2929PACKAGE=$OL_PACKAGE
2930VERSION=$OL_VERSION
2931
2932cat >>confdefs.h <<_ACEOF
2933#define OPENLDAP_PACKAGE "$PACKAGE"
2934_ACEOF
2935
2936
2937cat >>confdefs.h <<_ACEOF
2938#define OPENLDAP_VERSION "$VERSION"
2939_ACEOF
2940
2941
2942
2943cat >>confdefs.h <<_ACEOF
2944#define LDAP_VENDOR_VERSION $OL_API_INC
2945_ACEOF
2946
2947
2948cat >>confdefs.h <<_ACEOF
2949#define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
2950_ACEOF
2951
2952
2953cat >>confdefs.h <<_ACEOF
2954#define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
2955_ACEOF
2956
2957
2958cat >>confdefs.h <<_ACEOF
2959#define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
2960_ACEOF
2961
2962
2963OPENLDAP_LIBVERSION=$OL_API_LIB_VERSION
2964
2965OPENLDAP_RELEASE_DATE="$OL_RELEASE_DATE"
2966
2967
2968
2969
2970
2971ac_config_headers="$ac_config_headers include/portable.h:include/portable.hin"
2972
2973ac_config_headers="$ac_config_headers include/ldap_features.h:include/ldap_features.hin"
2974
2975ac_config_headers="$ac_config_headers include/lber_types.h:include/lber_types.hin"
2976
2977
2978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking configure arguments" >&5
2979$as_echo_n "checking configure arguments... " >&6; }
2980
2981
2982top_builddir=`pwd`
2983
2984ldap_subdir="/openldap"
2985
2986
2987# Check whether --with-subdir was given.
2988if test "${with_subdir+set}" = set; then :
2989  withval=$with_subdir; case "$withval" in
2990	no) ldap_subdir=""
2991		;;
2992	yes)
2993		;;
2994	/*|\\*)
2995		ldap_subdir="$withval"
2996		;;
2997	*)
2998		ldap_subdir="/$withval"
2999		;;
3000esac
3001
3002fi
3003
3004
3005# OpenLDAP --enable-debug
3006
3007	# Check whether --enable-debug was given.
3008if test "${enable_debug+set}" = set; then :
3009  enableval=$enable_debug;
3010	ol_arg=invalid
3011	for ol_val in no yes traditional ; do
3012		if test "$enableval" = "$ol_val" ; then
3013			ol_arg="$ol_val"
3014		fi
3015	done
3016	if test "$ol_arg" = "invalid" ; then
3017		as_fn_error $? "bad value $enableval for --enable-debug" "$LINENO" 5
3018	fi
3019	ol_enable_debug="$ol_arg"
3020
3021else
3022  	ol_enable_debug=yes
3023fi
3024
3025# end --enable-debug
3026# OpenLDAP --enable-dynamic
3027
3028	# Check whether --enable-dynamic was given.
3029if test "${enable_dynamic+set}" = set; then :
3030  enableval=$enable_dynamic;
3031	ol_arg=invalid
3032	for ol_val in auto yes no ; do
3033		if test "$enableval" = "$ol_val" ; then
3034			ol_arg="$ol_val"
3035		fi
3036	done
3037	if test "$ol_arg" = "invalid" ; then
3038		as_fn_error $? "bad value $enableval for --enable-dynamic" "$LINENO" 5
3039	fi
3040	ol_enable_dynamic="$ol_arg"
3041
3042else
3043  	ol_enable_dynamic=auto
3044fi
3045
3046# end --enable-dynamic
3047# OpenLDAP --enable-syslog
3048
3049	# Check whether --enable-syslog was given.
3050if test "${enable_syslog+set}" = set; then :
3051  enableval=$enable_syslog;
3052	ol_arg=invalid
3053	for ol_val in auto yes no ; do
3054		if test "$enableval" = "$ol_val" ; then
3055			ol_arg="$ol_val"
3056		fi
3057	done
3058	if test "$ol_arg" = "invalid" ; then
3059		as_fn_error $? "bad value $enableval for --enable-syslog" "$LINENO" 5
3060	fi
3061	ol_enable_syslog="$ol_arg"
3062
3063else
3064  	ol_enable_syslog=auto
3065fi
3066
3067# end --enable-syslog
3068ol_enable_referrals=${ol_enable_referrals-no}
3069# OpenLDAP --enable-ipv6
3070
3071	# Check whether --enable-ipv6 was given.
3072if test "${enable_ipv6+set}" = set; then :
3073  enableval=$enable_ipv6;
3074	ol_arg=invalid
3075	for ol_val in auto yes no ; do
3076		if test "$enableval" = "$ol_val" ; then
3077			ol_arg="$ol_val"
3078		fi
3079	done
3080	if test "$ol_arg" = "invalid" ; then
3081		as_fn_error $? "bad value $enableval for --enable-ipv6" "$LINENO" 5
3082	fi
3083	ol_enable_ipv6="$ol_arg"
3084
3085else
3086  	ol_enable_ipv6=auto
3087fi
3088
3089# end --enable-ipv6
3090# OpenLDAP --enable-local
3091
3092	# Check whether --enable-local was given.
3093if test "${enable_local+set}" = set; then :
3094  enableval=$enable_local;
3095	ol_arg=invalid
3096	for ol_val in auto yes no ; 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		as_fn_error $? "bad value $enableval for --enable-local" "$LINENO" 5
3103	fi
3104	ol_enable_local="$ol_arg"
3105
3106else
3107  	ol_enable_local=auto
3108fi
3109
3110# end --enable-local
3111
3112# OpenLDAP --with-cyrus_sasl
3113
3114# Check whether --with-cyrus_sasl was given.
3115if test "${with_cyrus_sasl+set}" = set; then :
3116  withval=$with_cyrus_sasl;
3117	ol_arg=invalid
3118	for ol_val in auto yes no  ; do
3119		if test "$withval" = "$ol_val" ; then
3120			ol_arg="$ol_val"
3121		fi
3122	done
3123	if test "$ol_arg" = "invalid" ; then
3124		as_fn_error $? "bad value $withval for --with-cyrus_sasl" "$LINENO" 5
3125	fi
3126	ol_with_cyrus_sasl="$ol_arg"
3127
3128else
3129  	ol_with_cyrus_sasl="auto"
3130fi
3131# end --with-cyrus_sasl
3132
3133# OpenLDAP --with-systemd
3134
3135# Check whether --with-systemd was given.
3136if test "${with_systemd+set}" = set; then :
3137  withval=$with_systemd;
3138	ol_arg=invalid
3139	for ol_val in auto yes no  ; do
3140		if test "$withval" = "$ol_val" ; then
3141			ol_arg="$ol_val"
3142		fi
3143	done
3144	if test "$ol_arg" = "invalid" ; then
3145		as_fn_error $? "bad value $withval for --with-systemd" "$LINENO" 5
3146	fi
3147	ol_with_systemd="$ol_arg"
3148
3149else
3150  	ol_with_systemd="auto"
3151fi
3152# end --with-systemd
3153
3154# OpenLDAP --with-fetch
3155
3156# Check whether --with-fetch was given.
3157if test "${with_fetch+set}" = set; then :
3158  withval=$with_fetch;
3159	ol_arg=invalid
3160	for ol_val in auto yes no  ; do
3161		if test "$withval" = "$ol_val" ; then
3162			ol_arg="$ol_val"
3163		fi
3164	done
3165	if test "$ol_arg" = "invalid" ; then
3166		as_fn_error $? "bad value $withval for --with-fetch" "$LINENO" 5
3167	fi
3168	ol_with_fetch="$ol_arg"
3169
3170else
3171  	ol_with_fetch="auto"
3172fi
3173# end --with-fetch
3174
3175# OpenLDAP --with-threads
3176
3177# Check whether --with-threads was given.
3178if test "${with_threads+set}" = set; then :
3179  withval=$with_threads;
3180	ol_arg=invalid
3181	for ol_val in auto nt posix pth lwp yes no manual  ; do
3182		if test "$withval" = "$ol_val" ; then
3183			ol_arg="$ol_val"
3184		fi
3185	done
3186	if test "$ol_arg" = "invalid" ; then
3187		as_fn_error $? "bad value $withval for --with-threads" "$LINENO" 5
3188	fi
3189	ol_with_threads="$ol_arg"
3190
3191else
3192  	ol_with_threads="auto"
3193fi
3194# end --with-threads
3195
3196# OpenLDAP --with-tls
3197
3198# Check whether --with-tls was given.
3199if test "${with_tls+set}" = set; then :
3200  withval=$with_tls;
3201	ol_arg=invalid
3202	for ol_val in auto openssl gnutls yes no  ; do
3203		if test "$withval" = "$ol_val" ; then
3204			ol_arg="$ol_val"
3205		fi
3206	done
3207	if test "$ol_arg" = "invalid" ; then
3208		as_fn_error $? "bad value $withval for --with-tls" "$LINENO" 5
3209	fi
3210	ol_with_tls="$ol_arg"
3211
3212else
3213  	ol_with_tls="auto"
3214fi
3215# end --with-tls
3216
3217# OpenLDAP --with-yielding_select
3218
3219# Check whether --with-yielding_select was given.
3220if test "${with_yielding_select+set}" = set; then :
3221  withval=$with_yielding_select;
3222	ol_arg=invalid
3223	for ol_val in auto yes no manual  ; do
3224		if test "$withval" = "$ol_val" ; then
3225			ol_arg="$ol_val"
3226		fi
3227	done
3228	if test "$ol_arg" = "invalid" ; then
3229		as_fn_error $? "bad value $withval for --with-yielding_select" "$LINENO" 5
3230	fi
3231	ol_with_yielding_select="$ol_arg"
3232
3233else
3234  	ol_with_yielding_select="auto"
3235fi
3236# end --with-yielding_select
3237
3238# OpenLDAP --with-mp
3239
3240# Check whether --with-mp was given.
3241if test "${with_mp+set}" = set; then :
3242  withval=$with_mp;
3243	ol_arg=invalid
3244	for ol_val in auto longlong long bignum gmp yes no ; do
3245		if test "$withval" = "$ol_val" ; then
3246			ol_arg="$ol_val"
3247		fi
3248	done
3249	if test "$ol_arg" = "invalid" ; then
3250		as_fn_error $? "bad value $withval for --with-mp" "$LINENO" 5
3251	fi
3252	ol_with_mp="$ol_arg"
3253
3254else
3255  	ol_with_mp="auto"
3256fi
3257# end --with-mp
3258
3259# OpenLDAP --with-odbc
3260
3261# Check whether --with-odbc was given.
3262if test "${with_odbc+set}" = set; then :
3263  withval=$with_odbc;
3264	ol_arg=invalid
3265	for ol_val in auto iodbc unixodbc odbc32  ; do
3266		if test "$withval" = "$ol_val" ; then
3267			ol_arg="$ol_val"
3268		fi
3269	done
3270	if test "$ol_arg" = "invalid" ; then
3271		as_fn_error $? "bad value $withval for --with-odbc" "$LINENO" 5
3272	fi
3273	ol_with_odbc="$ol_arg"
3274
3275else
3276  	ol_with_odbc="auto"
3277fi
3278# end --with-odbc
3279
3280
3281
3282SlapdOptions="dynacl \
3283	aci \
3284	cleartext \
3285	crypt \
3286	spasswd \
3287	modules \
3288	rlookups \
3289	slapi \
3290	slp \
3291	wrappers"
3292
3293# Check whether --enable-xxslapdoptions was given.
3294if test "${enable_xxslapdoptions+set}" = set; then :
3295  enableval=$enable_xxslapdoptions;
3296fi
3297
3298
3299# OpenLDAP --enable-slapd
3300
3301	# Check whether --enable-slapd was given.
3302if test "${enable_slapd+set}" = set; then :
3303  enableval=$enable_slapd;
3304	ol_arg=invalid
3305	for ol_val in auto yes no ; do
3306		if test "$enableval" = "$ol_val" ; then
3307			ol_arg="$ol_val"
3308		fi
3309	done
3310	if test "$ol_arg" = "invalid" ; then
3311		as_fn_error $? "bad value $enableval for --enable-slapd" "$LINENO" 5
3312	fi
3313	ol_enable_slapd="$ol_arg"
3314
3315else
3316  	ol_enable_slapd=yes
3317fi
3318
3319# end --enable-slapd
3320# OpenLDAP --enable-dynacl
3321
3322	# Check whether --enable-dynacl was given.
3323if test "${enable_dynacl+set}" = set; then :
3324  enableval=$enable_dynacl;
3325	ol_arg=invalid
3326	for ol_val in auto yes no ; do
3327		if test "$enableval" = "$ol_val" ; then
3328			ol_arg="$ol_val"
3329		fi
3330	done
3331	if test "$ol_arg" = "invalid" ; then
3332		as_fn_error $? "bad value $enableval for --enable-dynacl" "$LINENO" 5
3333	fi
3334	ol_enable_dynacl="$ol_arg"
3335
3336else
3337  	ol_enable_dynacl=no
3338fi
3339
3340# end --enable-dynacl
3341# OpenLDAP --enable-aci
3342
3343	# Check whether --enable-aci was given.
3344if test "${enable_aci+set}" = set; then :
3345  enableval=$enable_aci;
3346	ol_arg=invalid
3347	for ol_val in no yes mod ; do
3348		if test "$enableval" = "$ol_val" ; then
3349			ol_arg="$ol_val"
3350		fi
3351	done
3352	if test "$ol_arg" = "invalid" ; then
3353		as_fn_error $? "bad value $enableval for --enable-aci" "$LINENO" 5
3354	fi
3355	ol_enable_aci="$ol_arg"
3356
3357else
3358  	ol_enable_aci=no
3359fi
3360
3361# end --enable-aci
3362# OpenLDAP --enable-cleartext
3363
3364	# Check whether --enable-cleartext was given.
3365if test "${enable_cleartext+set}" = set; then :
3366  enableval=$enable_cleartext;
3367	ol_arg=invalid
3368	for ol_val in auto yes no ; do
3369		if test "$enableval" = "$ol_val" ; then
3370			ol_arg="$ol_val"
3371		fi
3372	done
3373	if test "$ol_arg" = "invalid" ; then
3374		as_fn_error $? "bad value $enableval for --enable-cleartext" "$LINENO" 5
3375	fi
3376	ol_enable_cleartext="$ol_arg"
3377
3378else
3379  	ol_enable_cleartext=yes
3380fi
3381
3382# end --enable-cleartext
3383# OpenLDAP --enable-crypt
3384
3385	# Check whether --enable-crypt was given.
3386if test "${enable_crypt+set}" = set; then :
3387  enableval=$enable_crypt;
3388	ol_arg=invalid
3389	for ol_val in auto yes no ; do
3390		if test "$enableval" = "$ol_val" ; then
3391			ol_arg="$ol_val"
3392		fi
3393	done
3394	if test "$ol_arg" = "invalid" ; then
3395		as_fn_error $? "bad value $enableval for --enable-crypt" "$LINENO" 5
3396	fi
3397	ol_enable_crypt="$ol_arg"
3398
3399else
3400  	ol_enable_crypt=no
3401fi
3402
3403# end --enable-crypt
3404# OpenLDAP --enable-spasswd
3405
3406	# Check whether --enable-spasswd was given.
3407if test "${enable_spasswd+set}" = set; then :
3408  enableval=$enable_spasswd;
3409	ol_arg=invalid
3410	for ol_val in auto yes no ; do
3411		if test "$enableval" = "$ol_val" ; then
3412			ol_arg="$ol_val"
3413		fi
3414	done
3415	if test "$ol_arg" = "invalid" ; then
3416		as_fn_error $? "bad value $enableval for --enable-spasswd" "$LINENO" 5
3417	fi
3418	ol_enable_spasswd="$ol_arg"
3419
3420else
3421  	ol_enable_spasswd=no
3422fi
3423
3424# end --enable-spasswd
3425# OpenLDAP --enable-modules
3426
3427	# Check whether --enable-modules was given.
3428if test "${enable_modules+set}" = set; then :
3429  enableval=$enable_modules;
3430	ol_arg=invalid
3431	for ol_val in auto yes no ; do
3432		if test "$enableval" = "$ol_val" ; then
3433			ol_arg="$ol_val"
3434		fi
3435	done
3436	if test "$ol_arg" = "invalid" ; then
3437		as_fn_error $? "bad value $enableval for --enable-modules" "$LINENO" 5
3438	fi
3439	ol_enable_modules="$ol_arg"
3440
3441else
3442  	ol_enable_modules=no
3443fi
3444
3445# end --enable-modules
3446# OpenLDAP --enable-rlookups
3447
3448	# Check whether --enable-rlookups was given.
3449if test "${enable_rlookups+set}" = set; then :
3450  enableval=$enable_rlookups;
3451	ol_arg=invalid
3452	for ol_val in auto yes no ; do
3453		if test "$enableval" = "$ol_val" ; then
3454			ol_arg="$ol_val"
3455		fi
3456	done
3457	if test "$ol_arg" = "invalid" ; then
3458		as_fn_error $? "bad value $enableval for --enable-rlookups" "$LINENO" 5
3459	fi
3460	ol_enable_rlookups="$ol_arg"
3461
3462else
3463  	ol_enable_rlookups=no
3464fi
3465
3466# end --enable-rlookups
3467# OpenLDAP --enable-slapi
3468
3469	# Check whether --enable-slapi was given.
3470if test "${enable_slapi+set}" = set; then :
3471  enableval=$enable_slapi;
3472	ol_arg=invalid
3473	for ol_val in auto yes no ; do
3474		if test "$enableval" = "$ol_val" ; then
3475			ol_arg="$ol_val"
3476		fi
3477	done
3478	if test "$ol_arg" = "invalid" ; then
3479		as_fn_error $? "bad value $enableval for --enable-slapi" "$LINENO" 5
3480	fi
3481	ol_enable_slapi="$ol_arg"
3482
3483else
3484  	ol_enable_slapi=no
3485fi
3486
3487# end --enable-slapi
3488# OpenLDAP --enable-slp
3489
3490	# Check whether --enable-slp was given.
3491if test "${enable_slp+set}" = set; then :
3492  enableval=$enable_slp;
3493	ol_arg=invalid
3494	for ol_val in auto yes no ; do
3495		if test "$enableval" = "$ol_val" ; then
3496			ol_arg="$ol_val"
3497		fi
3498	done
3499	if test "$ol_arg" = "invalid" ; then
3500		as_fn_error $? "bad value $enableval for --enable-slp" "$LINENO" 5
3501	fi
3502	ol_enable_slp="$ol_arg"
3503
3504else
3505  	ol_enable_slp=no
3506fi
3507
3508# end --enable-slp
3509# OpenLDAP --enable-wrappers
3510
3511	# Check whether --enable-wrappers was given.
3512if test "${enable_wrappers+set}" = set; then :
3513  enableval=$enable_wrappers;
3514	ol_arg=invalid
3515	for ol_val in auto yes no ; do
3516		if test "$enableval" = "$ol_val" ; then
3517			ol_arg="$ol_val"
3518		fi
3519	done
3520	if test "$ol_arg" = "invalid" ; then
3521		as_fn_error $? "bad value $enableval for --enable-wrappers" "$LINENO" 5
3522	fi
3523	ol_enable_wrappers="$ol_arg"
3524
3525else
3526  	ol_enable_wrappers=no
3527fi
3528
3529# end --enable-wrappers
3530
3531Backends="dnssrv \
3532	ldap \
3533	mdb \
3534	meta \
3535	asyncmeta \
3536	null \
3537	passwd \
3538	perl \
3539	relay \
3540	sock \
3541	sql \
3542	wt"
3543
3544# Check whether --enable-xxslapbackends was given.
3545if test "${enable_xxslapbackends+set}" = set; then :
3546  enableval=$enable_xxslapbackends;
3547fi
3548
3549
3550# OpenLDAP --enable-backends
3551
3552	# Check whether --enable-backends was given.
3553if test "${enable_backends+set}" = set; then :
3554  enableval=$enable_backends;
3555	ol_arg=invalid
3556	for ol_val in no yes mod ; do
3557		if test "$enableval" = "$ol_val" ; then
3558			ol_arg="$ol_val"
3559		fi
3560	done
3561	if test "$ol_arg" = "invalid" ; then
3562		as_fn_error $? "bad value $enableval for --enable-backends" "$LINENO" 5
3563	fi
3564	ol_enable_backends="$ol_arg"
3565
3566fi
3567
3568# end --enable-backends
3569# OpenLDAP --enable-dnssrv
3570
3571	# Check whether --enable-dnssrv was given.
3572if test "${enable_dnssrv+set}" = set; then :
3573  enableval=$enable_dnssrv;
3574	ol_arg=invalid
3575	for ol_val in no yes mod ; do
3576		if test "$enableval" = "$ol_val" ; then
3577			ol_arg="$ol_val"
3578		fi
3579	done
3580	if test "$ol_arg" = "invalid" ; then
3581		as_fn_error $? "bad value $enableval for --enable-dnssrv" "$LINENO" 5
3582	fi
3583	ol_enable_dnssrv="$ol_arg"
3584
3585else
3586  	ol_enable_dnssrv=${ol_enable_backends:-no}
3587fi
3588
3589# end --enable-dnssrv
3590# OpenLDAP --enable-ldap
3591
3592	# Check whether --enable-ldap was given.
3593if test "${enable_ldap+set}" = set; then :
3594  enableval=$enable_ldap;
3595	ol_arg=invalid
3596	for ol_val in no yes mod ; do
3597		if test "$enableval" = "$ol_val" ; then
3598			ol_arg="$ol_val"
3599		fi
3600	done
3601	if test "$ol_arg" = "invalid" ; then
3602		as_fn_error $? "bad value $enableval for --enable-ldap" "$LINENO" 5
3603	fi
3604	ol_enable_ldap="$ol_arg"
3605
3606else
3607  	ol_enable_ldap=${ol_enable_backends:-no}
3608fi
3609
3610# end --enable-ldap
3611# OpenLDAP --enable-mdb
3612
3613	# Check whether --enable-mdb was given.
3614if test "${enable_mdb+set}" = set; then :
3615  enableval=$enable_mdb;
3616	ol_arg=invalid
3617	for ol_val in no yes mod ; do
3618		if test "$enableval" = "$ol_val" ; then
3619			ol_arg="$ol_val"
3620		fi
3621	done
3622	if test "$ol_arg" = "invalid" ; then
3623		as_fn_error $? "bad value $enableval for --enable-mdb" "$LINENO" 5
3624	fi
3625	ol_enable_mdb="$ol_arg"
3626
3627else
3628  	ol_enable_mdb=${ol_enable_backends:-yes}
3629fi
3630
3631# end --enable-mdb
3632# OpenLDAP --enable-meta
3633
3634	# Check whether --enable-meta was given.
3635if test "${enable_meta+set}" = set; then :
3636  enableval=$enable_meta;
3637	ol_arg=invalid
3638	for ol_val in no yes mod ; do
3639		if test "$enableval" = "$ol_val" ; then
3640			ol_arg="$ol_val"
3641		fi
3642	done
3643	if test "$ol_arg" = "invalid" ; then
3644		as_fn_error $? "bad value $enableval for --enable-meta" "$LINENO" 5
3645	fi
3646	ol_enable_meta="$ol_arg"
3647
3648else
3649  	ol_enable_meta=${ol_enable_backends:-no}
3650fi
3651
3652# end --enable-meta
3653# OpenLDAP --enable-asyncmeta
3654
3655	# Check whether --enable-asyncmeta was given.
3656if test "${enable_asyncmeta+set}" = set; then :
3657  enableval=$enable_asyncmeta;
3658	ol_arg=invalid
3659	for ol_val in no yes mod ; do
3660		if test "$enableval" = "$ol_val" ; then
3661			ol_arg="$ol_val"
3662		fi
3663	done
3664	if test "$ol_arg" = "invalid" ; then
3665		as_fn_error $? "bad value $enableval for --enable-asyncmeta" "$LINENO" 5
3666	fi
3667	ol_enable_asyncmeta="$ol_arg"
3668
3669else
3670  	ol_enable_asyncmeta=${ol_enable_backends:-no}
3671fi
3672
3673# end --enable-asyncmeta
3674# OpenLDAP --enable-null
3675
3676	# Check whether --enable-null was given.
3677if test "${enable_null+set}" = set; then :
3678  enableval=$enable_null;
3679	ol_arg=invalid
3680	for ol_val in no yes mod ; do
3681		if test "$enableval" = "$ol_val" ; then
3682			ol_arg="$ol_val"
3683		fi
3684	done
3685	if test "$ol_arg" = "invalid" ; then
3686		as_fn_error $? "bad value $enableval for --enable-null" "$LINENO" 5
3687	fi
3688	ol_enable_null="$ol_arg"
3689
3690else
3691  	ol_enable_null=${ol_enable_backends:-no}
3692fi
3693
3694# end --enable-null
3695# OpenLDAP --enable-passwd
3696
3697	# Check whether --enable-passwd was given.
3698if test "${enable_passwd+set}" = set; then :
3699  enableval=$enable_passwd;
3700	ol_arg=invalid
3701	for ol_val in no yes mod ; do
3702		if test "$enableval" = "$ol_val" ; then
3703			ol_arg="$ol_val"
3704		fi
3705	done
3706	if test "$ol_arg" = "invalid" ; then
3707		as_fn_error $? "bad value $enableval for --enable-passwd" "$LINENO" 5
3708	fi
3709	ol_enable_passwd="$ol_arg"
3710
3711else
3712  	ol_enable_passwd=${ol_enable_backends:-no}
3713fi
3714
3715# end --enable-passwd
3716# OpenLDAP --enable-perl
3717
3718	# Check whether --enable-perl was given.
3719if test "${enable_perl+set}" = set; then :
3720  enableval=$enable_perl;
3721	ol_arg=invalid
3722	for ol_val in no yes mod ; do
3723		if test "$enableval" = "$ol_val" ; then
3724			ol_arg="$ol_val"
3725		fi
3726	done
3727	if test "$ol_arg" = "invalid" ; then
3728		as_fn_error $? "bad value $enableval for --enable-perl" "$LINENO" 5
3729	fi
3730	ol_enable_perl="$ol_arg"
3731
3732else
3733  	ol_enable_perl=${ol_enable_backends:-no}
3734fi
3735
3736# end --enable-perl
3737# OpenLDAP --enable-relay
3738
3739	# Check whether --enable-relay was given.
3740if test "${enable_relay+set}" = set; then :
3741  enableval=$enable_relay;
3742	ol_arg=invalid
3743	for ol_val in no yes mod ; do
3744		if test "$enableval" = "$ol_val" ; then
3745			ol_arg="$ol_val"
3746		fi
3747	done
3748	if test "$ol_arg" = "invalid" ; then
3749		as_fn_error $? "bad value $enableval for --enable-relay" "$LINENO" 5
3750	fi
3751	ol_enable_relay="$ol_arg"
3752
3753else
3754  	ol_enable_relay=${ol_enable_backends:-yes}
3755fi
3756
3757# end --enable-relay
3758# OpenLDAP --enable-sock
3759
3760	# Check whether --enable-sock was given.
3761if test "${enable_sock+set}" = set; then :
3762  enableval=$enable_sock;
3763	ol_arg=invalid
3764	for ol_val in no yes mod ; do
3765		if test "$enableval" = "$ol_val" ; then
3766			ol_arg="$ol_val"
3767		fi
3768	done
3769	if test "$ol_arg" = "invalid" ; then
3770		as_fn_error $? "bad value $enableval for --enable-sock" "$LINENO" 5
3771	fi
3772	ol_enable_sock="$ol_arg"
3773
3774else
3775  	ol_enable_sock=${ol_enable_backends:-no}
3776fi
3777
3778# end --enable-sock
3779# OpenLDAP --enable-sql
3780
3781	# Check whether --enable-sql was given.
3782if test "${enable_sql+set}" = set; then :
3783  enableval=$enable_sql;
3784	ol_arg=invalid
3785	for ol_val in no yes mod ; do
3786		if test "$enableval" = "$ol_val" ; then
3787			ol_arg="$ol_val"
3788		fi
3789	done
3790	if test "$ol_arg" = "invalid" ; then
3791		as_fn_error $? "bad value $enableval for --enable-sql" "$LINENO" 5
3792	fi
3793	ol_enable_sql="$ol_arg"
3794
3795else
3796  	ol_enable_sql=${ol_enable_backends:-no}
3797fi
3798
3799# end --enable-sql
3800# OpenLDAP --enable-wt
3801
3802	# Check whether --enable-wt was given.
3803if test "${enable_wt+set}" = set; then :
3804  enableval=$enable_wt;
3805	ol_arg=invalid
3806	for ol_val in no yes mod ; do
3807		if test "$enableval" = "$ol_val" ; then
3808			ol_arg="$ol_val"
3809		fi
3810	done
3811	if test "$ol_arg" = "invalid" ; then
3812		as_fn_error $? "bad value $enableval for --enable-wt" "$LINENO" 5
3813	fi
3814	ol_enable_wt="$ol_arg"
3815
3816else
3817  	ol_enable_wt=${ol_enable_backends:-no}
3818fi
3819
3820# end --enable-wt
3821
3822Overlays="accesslog \
3823	auditlog \
3824	autoca \
3825	collect \
3826	constraint \
3827	dds \
3828	deref \
3829	dyngroup \
3830	dynlist \
3831	homedir \
3832	memberof \
3833	otp \
3834	ppolicy \
3835	proxycache \
3836	refint \
3837	remoteauth \
3838	retcode \
3839	rwm \
3840	seqmod \
3841	sssvlv \
3842	syncprov \
3843	translucent \
3844	unique \
3845	valsort"
3846
3847Pwmods="argon2"
3848
3849# Check whether --enable-xxslapoverlays was given.
3850if test "${enable_xxslapoverlays+set}" = set; then :
3851  enableval=$enable_xxslapoverlays;
3852fi
3853
3854
3855# OpenLDAP --enable-overlays
3856
3857	# Check whether --enable-overlays was given.
3858if test "${enable_overlays+set}" = set; then :
3859  enableval=$enable_overlays;
3860	ol_arg=invalid
3861	for ol_val in no yes mod ; do
3862		if test "$enableval" = "$ol_val" ; then
3863			ol_arg="$ol_val"
3864		fi
3865	done
3866	if test "$ol_arg" = "invalid" ; then
3867		as_fn_error $? "bad value $enableval for --enable-overlays" "$LINENO" 5
3868	fi
3869	ol_enable_overlays="$ol_arg"
3870
3871fi
3872
3873# end --enable-overlays
3874# OpenLDAP --enable-accesslog
3875
3876	# Check whether --enable-accesslog was given.
3877if test "${enable_accesslog+set}" = set; then :
3878  enableval=$enable_accesslog;
3879	ol_arg=invalid
3880	for ol_val in no yes mod ; do
3881		if test "$enableval" = "$ol_val" ; then
3882			ol_arg="$ol_val"
3883		fi
3884	done
3885	if test "$ol_arg" = "invalid" ; then
3886		as_fn_error $? "bad value $enableval for --enable-accesslog" "$LINENO" 5
3887	fi
3888	ol_enable_accesslog="$ol_arg"
3889
3890else
3891  	ol_enable_accesslog=${ol_enable_overlays:-no}
3892fi
3893
3894# end --enable-accesslog
3895
3896# OpenLDAP --enable-auditlog
3897
3898	# Check whether --enable-auditlog was given.
3899if test "${enable_auditlog+set}" = set; then :
3900  enableval=$enable_auditlog;
3901	ol_arg=invalid
3902	for ol_val in no yes mod ; do
3903		if test "$enableval" = "$ol_val" ; then
3904			ol_arg="$ol_val"
3905		fi
3906	done
3907	if test "$ol_arg" = "invalid" ; then
3908		as_fn_error $? "bad value $enableval for --enable-auditlog" "$LINENO" 5
3909	fi
3910	ol_enable_auditlog="$ol_arg"
3911
3912else
3913  	ol_enable_auditlog=${ol_enable_overlays:-no}
3914fi
3915
3916# end --enable-auditlog
3917
3918# OpenLDAP --enable-autoca
3919
3920	# Check whether --enable-autoca was given.
3921if test "${enable_autoca+set}" = set; then :
3922  enableval=$enable_autoca;
3923	ol_arg=invalid
3924	for ol_val in no yes mod ; do
3925		if test "$enableval" = "$ol_val" ; then
3926			ol_arg="$ol_val"
3927		fi
3928	done
3929	if test "$ol_arg" = "invalid" ; then
3930		as_fn_error $? "bad value $enableval for --enable-autoca" "$LINENO" 5
3931	fi
3932	ol_enable_autoca="$ol_arg"
3933
3934else
3935  	ol_enable_autoca=${ol_enable_overlays:-no}
3936fi
3937
3938# end --enable-autoca
3939
3940# OpenLDAP --enable-collect
3941
3942	# Check whether --enable-collect was given.
3943if test "${enable_collect+set}" = set; then :
3944  enableval=$enable_collect;
3945	ol_arg=invalid
3946	for ol_val in no yes mod ; do
3947		if test "$enableval" = "$ol_val" ; then
3948			ol_arg="$ol_val"
3949		fi
3950	done
3951	if test "$ol_arg" = "invalid" ; then
3952		as_fn_error $? "bad value $enableval for --enable-collect" "$LINENO" 5
3953	fi
3954	ol_enable_collect="$ol_arg"
3955
3956else
3957  	ol_enable_collect=${ol_enable_overlays:-no}
3958fi
3959
3960# end --enable-collect
3961
3962# OpenLDAP --enable-constraint
3963
3964	# Check whether --enable-constraint was given.
3965if test "${enable_constraint+set}" = set; then :
3966  enableval=$enable_constraint;
3967	ol_arg=invalid
3968	for ol_val in no yes mod ; do
3969		if test "$enableval" = "$ol_val" ; then
3970			ol_arg="$ol_val"
3971		fi
3972	done
3973	if test "$ol_arg" = "invalid" ; then
3974		as_fn_error $? "bad value $enableval for --enable-constraint" "$LINENO" 5
3975	fi
3976	ol_enable_constraint="$ol_arg"
3977
3978else
3979  	ol_enable_constraint=${ol_enable_overlays:-no}
3980fi
3981
3982# end --enable-constraint
3983
3984# OpenLDAP --enable-dds
3985
3986	# Check whether --enable-dds was given.
3987if test "${enable_dds+set}" = set; then :
3988  enableval=$enable_dds;
3989	ol_arg=invalid
3990	for ol_val in no yes mod ; do
3991		if test "$enableval" = "$ol_val" ; then
3992			ol_arg="$ol_val"
3993		fi
3994	done
3995	if test "$ol_arg" = "invalid" ; then
3996		as_fn_error $? "bad value $enableval for --enable-dds" "$LINENO" 5
3997	fi
3998	ol_enable_dds="$ol_arg"
3999
4000else
4001  	ol_enable_dds=${ol_enable_overlays:-no}
4002fi
4003
4004# end --enable-dds
4005
4006# OpenLDAP --enable-deref
4007
4008	# Check whether --enable-deref was given.
4009if test "${enable_deref+set}" = set; then :
4010  enableval=$enable_deref;
4011	ol_arg=invalid
4012	for ol_val in no yes mod ; do
4013		if test "$enableval" = "$ol_val" ; then
4014			ol_arg="$ol_val"
4015		fi
4016	done
4017	if test "$ol_arg" = "invalid" ; then
4018		as_fn_error $? "bad value $enableval for --enable-deref" "$LINENO" 5
4019	fi
4020	ol_enable_deref="$ol_arg"
4021
4022else
4023  	ol_enable_deref=${ol_enable_overlays:-no}
4024fi
4025
4026# end --enable-deref
4027
4028# OpenLDAP --enable-dyngroup
4029
4030	# Check whether --enable-dyngroup was given.
4031if test "${enable_dyngroup+set}" = set; then :
4032  enableval=$enable_dyngroup;
4033	ol_arg=invalid
4034	for ol_val in no yes mod ; do
4035		if test "$enableval" = "$ol_val" ; then
4036			ol_arg="$ol_val"
4037		fi
4038	done
4039	if test "$ol_arg" = "invalid" ; then
4040		as_fn_error $? "bad value $enableval for --enable-dyngroup" "$LINENO" 5
4041	fi
4042	ol_enable_dyngroup="$ol_arg"
4043
4044else
4045  	ol_enable_dyngroup=${ol_enable_overlays:-no}
4046fi
4047
4048# end --enable-dyngroup
4049
4050# OpenLDAP --enable-dynlist
4051
4052	# Check whether --enable-dynlist was given.
4053if test "${enable_dynlist+set}" = set; then :
4054  enableval=$enable_dynlist;
4055	ol_arg=invalid
4056	for ol_val in no yes mod ; do
4057		if test "$enableval" = "$ol_val" ; then
4058			ol_arg="$ol_val"
4059		fi
4060	done
4061	if test "$ol_arg" = "invalid" ; then
4062		as_fn_error $? "bad value $enableval for --enable-dynlist" "$LINENO" 5
4063	fi
4064	ol_enable_dynlist="$ol_arg"
4065
4066else
4067  	ol_enable_dynlist=${ol_enable_overlays:-no}
4068fi
4069
4070# end --enable-dynlist
4071
4072# OpenLDAP --enable-homedir
4073
4074	# Check whether --enable-homedir was given.
4075if test "${enable_homedir+set}" = set; then :
4076  enableval=$enable_homedir;
4077	ol_arg=invalid
4078	for ol_val in no yes mod ; do
4079		if test "$enableval" = "$ol_val" ; then
4080			ol_arg="$ol_val"
4081		fi
4082	done
4083	if test "$ol_arg" = "invalid" ; then
4084		as_fn_error $? "bad value $enableval for --enable-homedir" "$LINENO" 5
4085	fi
4086	ol_enable_homedir="$ol_arg"
4087
4088else
4089  	ol_enable_homedir=${ol_enable_overlays:-no}
4090fi
4091
4092# end --enable-homedir
4093
4094# OpenLDAP --enable-memberof
4095
4096	# Check whether --enable-memberof was given.
4097if test "${enable_memberof+set}" = set; then :
4098  enableval=$enable_memberof;
4099	ol_arg=invalid
4100	for ol_val in no yes mod ; do
4101		if test "$enableval" = "$ol_val" ; then
4102			ol_arg="$ol_val"
4103		fi
4104	done
4105	if test "$ol_arg" = "invalid" ; then
4106		as_fn_error $? "bad value $enableval for --enable-memberof" "$LINENO" 5
4107	fi
4108	ol_enable_memberof="$ol_arg"
4109
4110else
4111  	ol_enable_memberof=${ol_enable_overlays:-no}
4112fi
4113
4114# end --enable-memberof
4115
4116# OpenLDAP --enable-otp
4117
4118	# Check whether --enable-otp was given.
4119if test "${enable_otp+set}" = set; then :
4120  enableval=$enable_otp;
4121	ol_arg=invalid
4122	for ol_val in no yes mod ; do
4123		if test "$enableval" = "$ol_val" ; then
4124			ol_arg="$ol_val"
4125		fi
4126	done
4127	if test "$ol_arg" = "invalid" ; then
4128		as_fn_error $? "bad value $enableval for --enable-otp" "$LINENO" 5
4129	fi
4130	ol_enable_otp="$ol_arg"
4131
4132else
4133  	ol_enable_otp=${ol_enable_overlays:-no}
4134fi
4135
4136# end --enable-otp
4137
4138# OpenLDAP --enable-ppolicy
4139
4140	# Check whether --enable-ppolicy was given.
4141if test "${enable_ppolicy+set}" = set; then :
4142  enableval=$enable_ppolicy;
4143	ol_arg=invalid
4144	for ol_val in no yes mod ; do
4145		if test "$enableval" = "$ol_val" ; then
4146			ol_arg="$ol_val"
4147		fi
4148	done
4149	if test "$ol_arg" = "invalid" ; then
4150		as_fn_error $? "bad value $enableval for --enable-ppolicy" "$LINENO" 5
4151	fi
4152	ol_enable_ppolicy="$ol_arg"
4153
4154else
4155  	ol_enable_ppolicy=${ol_enable_overlays:-no}
4156fi
4157
4158# end --enable-ppolicy
4159
4160# OpenLDAP --enable-proxycache
4161
4162	# Check whether --enable-proxycache was given.
4163if test "${enable_proxycache+set}" = set; then :
4164  enableval=$enable_proxycache;
4165	ol_arg=invalid
4166	for ol_val in no yes mod ; do
4167		if test "$enableval" = "$ol_val" ; then
4168			ol_arg="$ol_val"
4169		fi
4170	done
4171	if test "$ol_arg" = "invalid" ; then
4172		as_fn_error $? "bad value $enableval for --enable-proxycache" "$LINENO" 5
4173	fi
4174	ol_enable_proxycache="$ol_arg"
4175
4176else
4177  	ol_enable_proxycache=${ol_enable_overlays:-no}
4178fi
4179
4180# end --enable-proxycache
4181
4182# OpenLDAP --enable-refint
4183
4184	# Check whether --enable-refint was given.
4185if test "${enable_refint+set}" = set; then :
4186  enableval=$enable_refint;
4187	ol_arg=invalid
4188	for ol_val in no yes mod ; do
4189		if test "$enableval" = "$ol_val" ; then
4190			ol_arg="$ol_val"
4191		fi
4192	done
4193	if test "$ol_arg" = "invalid" ; then
4194		as_fn_error $? "bad value $enableval for --enable-refint" "$LINENO" 5
4195	fi
4196	ol_enable_refint="$ol_arg"
4197
4198else
4199  	ol_enable_refint=${ol_enable_overlays:-no}
4200fi
4201
4202# end --enable-refint
4203
4204# OpenLDAP --enable-remoteauth
4205
4206	# Check whether --enable-remoteauth was given.
4207if test "${enable_remoteauth+set}" = set; then :
4208  enableval=$enable_remoteauth;
4209	ol_arg=invalid
4210	for ol_val in no yes mod ; do
4211		if test "$enableval" = "$ol_val" ; then
4212			ol_arg="$ol_val"
4213		fi
4214	done
4215	if test "$ol_arg" = "invalid" ; then
4216		as_fn_error $? "bad value $enableval for --enable-remoteauth" "$LINENO" 5
4217	fi
4218	ol_enable_remoteauth="$ol_arg"
4219
4220else
4221  	ol_enable_remoteauth=${ol_enable_overlays:-no}
4222fi
4223
4224# end --enable-remoteauth
4225
4226# OpenLDAP --enable-retcode
4227
4228	# Check whether --enable-retcode was given.
4229if test "${enable_retcode+set}" = set; then :
4230  enableval=$enable_retcode;
4231	ol_arg=invalid
4232	for ol_val in no yes mod ; do
4233		if test "$enableval" = "$ol_val" ; then
4234			ol_arg="$ol_val"
4235		fi
4236	done
4237	if test "$ol_arg" = "invalid" ; then
4238		as_fn_error $? "bad value $enableval for --enable-retcode" "$LINENO" 5
4239	fi
4240	ol_enable_retcode="$ol_arg"
4241
4242else
4243  	ol_enable_retcode=${ol_enable_overlays:-no}
4244fi
4245
4246# end --enable-retcode
4247
4248# OpenLDAP --enable-rwm
4249
4250	# Check whether --enable-rwm was given.
4251if test "${enable_rwm+set}" = set; then :
4252  enableval=$enable_rwm;
4253	ol_arg=invalid
4254	for ol_val in no yes mod ; do
4255		if test "$enableval" = "$ol_val" ; then
4256			ol_arg="$ol_val"
4257		fi
4258	done
4259	if test "$ol_arg" = "invalid" ; then
4260		as_fn_error $? "bad value $enableval for --enable-rwm" "$LINENO" 5
4261	fi
4262	ol_enable_rwm="$ol_arg"
4263
4264else
4265  	ol_enable_rwm=${ol_enable_overlays:-no}
4266fi
4267
4268# end --enable-rwm
4269
4270# OpenLDAP --enable-seqmod
4271
4272	# Check whether --enable-seqmod was given.
4273if test "${enable_seqmod+set}" = set; then :
4274  enableval=$enable_seqmod;
4275	ol_arg=invalid
4276	for ol_val in no yes mod ; do
4277		if test "$enableval" = "$ol_val" ; then
4278			ol_arg="$ol_val"
4279		fi
4280	done
4281	if test "$ol_arg" = "invalid" ; then
4282		as_fn_error $? "bad value $enableval for --enable-seqmod" "$LINENO" 5
4283	fi
4284	ol_enable_seqmod="$ol_arg"
4285
4286else
4287  	ol_enable_seqmod=${ol_enable_overlays:-no}
4288fi
4289
4290# end --enable-seqmod
4291
4292# OpenLDAP --enable-sssvlv
4293
4294	# Check whether --enable-sssvlv was given.
4295if test "${enable_sssvlv+set}" = set; then :
4296  enableval=$enable_sssvlv;
4297	ol_arg=invalid
4298	for ol_val in no yes mod ; do
4299		if test "$enableval" = "$ol_val" ; then
4300			ol_arg="$ol_val"
4301		fi
4302	done
4303	if test "$ol_arg" = "invalid" ; then
4304		as_fn_error $? "bad value $enableval for --enable-sssvlv" "$LINENO" 5
4305	fi
4306	ol_enable_sssvlv="$ol_arg"
4307
4308else
4309  	ol_enable_sssvlv=${ol_enable_overlays:-no}
4310fi
4311
4312# end --enable-sssvlv
4313
4314# OpenLDAP --enable-syncprov
4315
4316	# Check whether --enable-syncprov was given.
4317if test "${enable_syncprov+set}" = set; then :
4318  enableval=$enable_syncprov;
4319	ol_arg=invalid
4320	for ol_val in no yes mod ; do
4321		if test "$enableval" = "$ol_val" ; then
4322			ol_arg="$ol_val"
4323		fi
4324	done
4325	if test "$ol_arg" = "invalid" ; then
4326		as_fn_error $? "bad value $enableval for --enable-syncprov" "$LINENO" 5
4327	fi
4328	ol_enable_syncprov="$ol_arg"
4329
4330else
4331  	ol_enable_syncprov=${ol_enable_overlays:-yes}
4332fi
4333
4334# end --enable-syncprov
4335
4336# OpenLDAP --enable-translucent
4337
4338	# Check whether --enable-translucent was given.
4339if test "${enable_translucent+set}" = set; then :
4340  enableval=$enable_translucent;
4341	ol_arg=invalid
4342	for ol_val in no yes mod ; do
4343		if test "$enableval" = "$ol_val" ; then
4344			ol_arg="$ol_val"
4345		fi
4346	done
4347	if test "$ol_arg" = "invalid" ; then
4348		as_fn_error $? "bad value $enableval for --enable-translucent" "$LINENO" 5
4349	fi
4350	ol_enable_translucent="$ol_arg"
4351
4352else
4353  	ol_enable_translucent=${ol_enable_overlays:-no}
4354fi
4355
4356# end --enable-translucent
4357
4358# OpenLDAP --enable-unique
4359
4360	# Check whether --enable-unique was given.
4361if test "${enable_unique+set}" = set; then :
4362  enableval=$enable_unique;
4363	ol_arg=invalid
4364	for ol_val in no yes mod ; do
4365		if test "$enableval" = "$ol_val" ; then
4366			ol_arg="$ol_val"
4367		fi
4368	done
4369	if test "$ol_arg" = "invalid" ; then
4370		as_fn_error $? "bad value $enableval for --enable-unique" "$LINENO" 5
4371	fi
4372	ol_enable_unique="$ol_arg"
4373
4374else
4375  	ol_enable_unique=${ol_enable_overlays:-no}
4376fi
4377
4378# end --enable-unique
4379
4380# OpenLDAP --enable-valsort
4381
4382	# Check whether --enable-valsort was given.
4383if test "${enable_valsort+set}" = set; then :
4384  enableval=$enable_valsort;
4385	ol_arg=invalid
4386	for ol_val in no yes mod ; do
4387		if test "$enableval" = "$ol_val" ; then
4388			ol_arg="$ol_val"
4389		fi
4390	done
4391	if test "$ol_arg" = "invalid" ; then
4392		as_fn_error $? "bad value $enableval for --enable-valsort" "$LINENO" 5
4393	fi
4394	ol_enable_valsort="$ol_arg"
4395
4396else
4397  	ol_enable_valsort=${ol_enable_overlays:-no}
4398fi
4399
4400# end --enable-valsort
4401
4402
4403# Check whether --enable-pwmodoptions was given.
4404if test "${enable_pwmodoptions+set}" = set; then :
4405  enableval=$enable_pwmodoptions;
4406fi
4407
4408# OpenLDAP --enable-argon2
4409
4410	# Check whether --enable-argon2 was given.
4411if test "${enable_argon2+set}" = set; then :
4412  enableval=$enable_argon2;
4413	ol_arg=invalid
4414	for ol_val in no yes ; do
4415		if test "$enableval" = "$ol_val" ; then
4416			ol_arg="$ol_val"
4417		fi
4418	done
4419	if test "$ol_arg" = "invalid" ; then
4420		as_fn_error $? "bad value $enableval for --enable-argon2" "$LINENO" 5
4421	fi
4422	ol_enable_argon2="$ol_arg"
4423
4424else
4425  	ol_enable_argon2=${ol_enable_pwmodules:-no}
4426fi
4427
4428# end --enable-argon2
4429
4430# OpenLDAP --with-argon2
4431
4432# Check whether --with-argon2 was given.
4433if test "${with_argon2+set}" = set; then :
4434  withval=$with_argon2;
4435	ol_arg=invalid
4436	for ol_val in auto libsodium libargon2 yes no  ; do
4437		if test "$withval" = "$ol_val" ; then
4438			ol_arg="$ol_val"
4439		fi
4440	done
4441	if test "$ol_arg" = "invalid" ; then
4442		as_fn_error $? "bad value $withval for --with-argon2" "$LINENO" 5
4443	fi
4444	ol_with_argon2="$ol_arg"
4445
4446else
4447  	ol_with_argon2="auto"
4448fi
4449# end --with-argon2
4450
4451
4452# Check whether --enable-balanceroptions was given.
4453if test "${enable_balanceroptions+set}" = set; then :
4454  enableval=$enable_balanceroptions;
4455fi
4456
4457# OpenLDAP --enable-balancer
4458
4459	# Check whether --enable-balancer was given.
4460if test "${enable_balancer+set}" = set; then :
4461  enableval=$enable_balancer;
4462	ol_arg=invalid
4463	for ol_val in no yes mod ; do
4464		if test "$enableval" = "$ol_val" ; then
4465			ol_arg="$ol_val"
4466		fi
4467	done
4468	if test "$ol_arg" = "invalid" ; then
4469		as_fn_error $? "bad value $enableval for --enable-balancer" "$LINENO" 5
4470	fi
4471	ol_enable_balancer="$ol_arg"
4472
4473else
4474  	ol_enable_balancer=no
4475fi
4476
4477# end --enable-balancer
4478
4479
4480# Check whether --enable-xxliboptions was given.
4481if test "${enable_xxliboptions+set}" = set; then :
4482  enableval=$enable_xxliboptions;
4483fi
4484
4485# Check whether --enable-static was given.
4486if test "${enable_static+set}" = set; then :
4487  enableval=$enable_static; p=${PACKAGE-default}
4488    case $enableval in
4489    yes) enable_static=yes ;;
4490    no) enable_static=no ;;
4491    *)
4492     enable_static=no
4493      # Look at the argument we got.  We use all the common list separators.
4494      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
4495      for pkg in $enableval; do
4496	IFS=$lt_save_ifs
4497	if test "X$pkg" = "X$p"; then
4498	  enable_static=yes
4499	fi
4500      done
4501      IFS=$lt_save_ifs
4502      ;;
4503    esac
4504else
4505  enable_static=yes
4506fi
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516# Check whether --enable-shared was given.
4517if test "${enable_shared+set}" = set; then :
4518  enableval=$enable_shared; p=${PACKAGE-default}
4519    case $enableval in
4520    yes) enable_shared=yes ;;
4521    no) enable_shared=no ;;
4522    *)
4523      enable_shared=no
4524      # Look at the argument we got.  We use all the common list separators.
4525      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
4526      for pkg in $enableval; do
4527	IFS=$lt_save_ifs
4528	if test "X$pkg" = "X$p"; then
4529	  enable_shared=yes
4530	fi
4531      done
4532      IFS=$lt_save_ifs
4533      ;;
4534    esac
4535else
4536  enable_shared=yes
4537fi
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547# OpenLDAP --enable-versioning
4548
4549	# Check whether --enable-versioning was given.
4550if test "${enable_versioning+set}" = set; then :
4551  enableval=$enable_versioning;
4552	ol_arg=invalid
4553	for ol_val in no yes auto ; do
4554		if test "$enableval" = "$ol_val" ; then
4555			ol_arg="$ol_val"
4556		fi
4557	done
4558	if test "$ol_arg" = "invalid" ; then
4559		as_fn_error $? "bad value $enableval for --enable-versioning" "$LINENO" 5
4560	fi
4561	ol_enable_versioning="$ol_arg"
4562
4563else
4564  	ol_enable_versioning=auto
4565fi
4566
4567# end --enable-versioning
4568
4569
4570if test $ol_enable_slapd = no ; then
4571
4572	for i in $SlapdOptions; do
4573		eval "ol_tmp=\$ol_enable_$i"
4574		if test $ol_tmp = yes ; then
4575			{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
4576$as_echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
4577			eval "ol_enable_$i=no"
4578		fi
4579	done
4580
4581	for i in $Backends $Overlays $Pwmods; do
4582		eval "ol_tmp=\$ol_enable_$i"
4583		if test $ol_tmp != no ; then
4584			{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
4585$as_echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
4586			eval "ol_enable_$i=no"
4587		fi
4588	done
4589
4590	if test $ol_enable_balancer = mod ; then
4591		{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: slapd disabled, ignoring --enable-balancer=mod argument" >&5
4592$as_echo "$as_me: WARNING: slapd disabled, ignoring --enable-balancer=mod argument" >&2;}
4593		ol_enable_balancer=no
4594	fi
4595else
4596
4597	if test $ol_enable_modules = no; then
4598
4599		for i in backends overlays balancer $Backends $Overlays; do
4600			eval "ol_tmp=\$ol_enable_$i"
4601			if test -n "$ol_tmp" && test "$ol_tmp" = mod ; then
4602				as_fn_error $? "--enable-$i=mod requires --enable-modules" "$LINENO" 5
4603			fi
4604		done
4605
4606		for i in $Pwmods; do
4607			eval "ol_tmp=\$ol_enable_$i"
4608			if test -n "$ol_tmp" && test "$ol_tmp" = yes ; then
4609				as_fn_error $? "--enable-$i=yes requires --enable-modules" "$LINENO" 5
4610			fi
4611		done
4612
4613		ol_any_backend=no
4614		for i in $Backends; do
4615			eval "ol_tmp=\$ol_enable_$i"
4616			if test $ol_tmp = yes; then
4617				ol_any_backend=yes
4618			fi
4619		done
4620
4621		if test $ol_any_backend = no; then
4622			as_fn_error $? "slapd requires a backend" "$LINENO" 5
4623		fi
4624	fi
4625fi
4626
4627if test $ol_enable_aci = yes ; then
4628	if test $ol_enable_dynacl = no ; then
4629		as_fn_error $? "--enable-aci requires --enable-dynacl" "$LINENO" 5
4630	fi
4631elif test $ol_enable_aci = mod ; then
4632	as_fn_error $? "ACI build as dynamic module not supported (yet)" "$LINENO" 5
4633fi
4634
4635if test $ol_enable_modules = yes ; then
4636	if test $ol_enable_dynamic = no ; then
4637		as_fn_error $? "--enable-modules requires --enable-dynamic" "$LINENO" 5
4638	fi
4639	ol_enable_dynamic=yes
4640fi
4641
4642if test $ol_enable_balancer != no ; then
4643		if test $ol_with_threads = no ; then
4644		as_fn_error $? "Load balancer requires threads" "$LINENO" 5
4645	fi
4646fi
4647
4648if test $ol_enable_spasswd = yes ; then
4649	if test $ol_with_cyrus_sasl = no ; then
4650		as_fn_error $? "--enable-spasswd requires --with-cyrus-sasl" "$LINENO" 5
4651	fi
4652	ol_with_cyrus_sasl=yes
4653fi
4654
4655if test $ol_enable_meta/$ol_enable_ldap = yes/no ; then
4656	as_fn_error $? "--enable-meta requires --enable-ldap" "$LINENO" 5
4657fi
4658
4659if test $ol_enable_asyncmeta/$ol_enable_ldap = yes/no ; then
4660	as_fn_error $? "--enable-asyncmeta requires --enable-ldap" "$LINENO" 5
4661fi
4662
4663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
4664$as_echo "done" >&6; }
4665
4666LDAP_LIBS=
4667SLAPD_NDB_LIBS=
4668SLAPD_NDB_INCS=
4669LTHREAD_LIBS=
4670LEVENT_LIBS=
4671LUTIL_LIBS=
4672
4673CLIENT_LIBS=
4674
4675SLAPD_LIBS=
4676BALANCER_LIBS=
4677BALANCER_INCLUDE=
4678
4679BUILD_SLAPD=no
4680BUILD_BALANCER=no
4681
4682BUILD_THREAD=no
4683
4684BUILD_SLAPI=no
4685SLAPD_SLAPI_DEPEND=
4686
4687BUILD_DNSSRV=no
4688BUILD_LDAP=no
4689BUILD_MDB=no
4690BUILD_META=no
4691BUILD_ASYNCMETA=no
4692BUILD_NDB=no
4693BUILD_NULL=no
4694BUILD_PASSWD=no
4695BUILD_PERL=no
4696BUILD_RELAY=no
4697BUILD_SHELL=no
4698BUILD_SOCK=no
4699BUILD_SQL=no
4700BUILD_WT=no
4701
4702BUILD_ACCESSLOG=no
4703BUILD_AUDITLOG=no
4704BUILD_AUTOCA=no
4705BUILD_CONSTRAINT=no
4706BUILD_DDS=no
4707BUILD_DENYOP=no
4708BUILD_DEREF=no
4709BUILD_DYNGROUP=no
4710BUILD_DYNLIST=no
4711BUILD_LASTMOD=no
4712BUILD_HOMEDIR=no
4713BUILD_MEMBEROF=no
4714BUILD_OTP=no
4715BUILD_PPOLICY=no
4716BUILD_PROXYCACHE=no
4717BUILD_REFINT=no
4718BUILD_REMOTEAUTH=no
4719BUILD_RETCODE=no
4720BUILD_RWM=no
4721BUILD_SEQMOD=no
4722BUILD_SSSVLV=no
4723BUILD_SYNCPROV=no
4724BUILD_TRANSLUCENT=no
4725BUILD_UNIQUE=no
4726BUILD_VALSORT=no
4727
4728BUILD_PW_ARGON2=no
4729
4730SLAPD_STATIC_OVERLAYS=
4731SLAPD_DYNAMIC_OVERLAYS=
4732
4733SLAPD_DYNAMIC_PWMODS=
4734
4735SLAPD_MODULES_LDFLAGS=
4736SLAPD_MODULES_CPPFLAGS=
4737
4738SLAPD_STATIC_BACKENDS="back-ldif back-monitor"
4739SLAPD_DYNAMIC_BACKENDS=
4740
4741SLAPD_PERL_LDFLAGS=
4742MOD_PERL_LDFLAGS=
4743PERL_CPPFLAGS=
4744
4745SLAPD_SQL_LDFLAGS=
4746SLAPD_SQL_LIBS=
4747SLAPD_SQL_INCLUDES=
4748
4749SASL_LIBS=
4750TLS_LIBS=
4751WITH_TLS_TYPE=no
4752MODULES_LIBS=
4753SLAPI_LIBS=
4754LIBSLAPI=
4755AUTH_LIBS=
4756SYSTEMD_LIBS=
4757
4758SLAPD_SLP_LIBS=
4759SLAPD_GMP_LIBS=
4760
4761
4762
4763$as_echo "#define HAVE_MKVERSION 1" >>confdefs.h
4764
4765
4766
4767
4768ol_aix_threads=no
4769case "$target" in
4770*-*-aix*) 	if test -z "$CC" ; then
4771		case "$ol_with_threads" in
4772		auto | yes |  posix) ol_aix_threads=yes ;;
4773		esac
4774	fi
4775;;
4776esac
4777
4778if test $ol_aix_threads = yes ; then
4779	if test -z "${CC}" ; then
4780		for ac_prog in cc_r xlc_r cc
4781do
4782  # Extract the first word of "$ac_prog", so it can be a program name with args.
4783set dummy $ac_prog; ac_word=$2
4784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4785$as_echo_n "checking for $ac_word... " >&6; }
4786if ${ac_cv_prog_CC+:} false; then :
4787  $as_echo_n "(cached) " >&6
4788else
4789  if test -n "$CC"; then
4790  ac_cv_prog_CC="$CC" # Let the user override the test.
4791else
4792as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4793for as_dir in $PATH
4794do
4795  IFS=$as_save_IFS
4796  test -z "$as_dir" && as_dir=.
4797    for ac_exec_ext in '' $ac_executable_extensions; do
4798  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4799    ac_cv_prog_CC="$ac_prog"
4800    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4801    break 2
4802  fi
4803done
4804  done
4805IFS=$as_save_IFS
4806
4807fi
4808fi
4809CC=$ac_cv_prog_CC
4810if test -n "$CC"; then
4811  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4812$as_echo "$CC" >&6; }
4813else
4814  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4815$as_echo "no" >&6; }
4816fi
4817
4818
4819  test -n "$CC" && break
4820done
4821
4822
4823		if test "$CC" = cc ; then
4824						if test $ol_with_threads != auto ; then
4825				as_fn_error $? "--with-threads requires cc_r (or other suitable compiler) on AIX" "$LINENO" 5
4826			else
4827				{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling threads, no cc_r on AIX" >&5
4828$as_echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
4829			fi
4830			ol_with_threads=no
4831  		fi
4832	fi
4833
4834	case ${CC} in cc_r | xlc_r)
4835		ol_with_threads=posix
4836		ol_cv_pthread_create=yes
4837		;;
4838	esac
4839fi
4840
4841if test -z "${CC}"; then
4842	for ac_prog in cc gcc
4843do
4844  # Extract the first word of "$ac_prog", so it can be a program name with args.
4845set dummy $ac_prog; ac_word=$2
4846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4847$as_echo_n "checking for $ac_word... " >&6; }
4848if ${ac_cv_prog_CC+:} false; then :
4849  $as_echo_n "(cached) " >&6
4850else
4851  if test -n "$CC"; then
4852  ac_cv_prog_CC="$CC" # Let the user override the test.
4853else
4854as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4855for as_dir in $PATH
4856do
4857  IFS=$as_save_IFS
4858  test -z "$as_dir" && as_dir=.
4859    for ac_exec_ext in '' $ac_executable_extensions; do
4860  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4861    ac_cv_prog_CC="$ac_prog"
4862    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4863    break 2
4864  fi
4865done
4866  done
4867IFS=$as_save_IFS
4868
4869fi
4870fi
4871CC=$ac_cv_prog_CC
4872if test -n "$CC"; then
4873  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4874$as_echo "$CC" >&6; }
4875else
4876  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4877$as_echo "no" >&6; }
4878fi
4879
4880
4881  test -n "$CC" && break
4882done
4883test -n "$CC" || CC="missing"
4884
4885
4886	if test "${CC}" = "missing" ; then
4887		as_fn_error $? "Unable to locate cc(1) or suitable replacement.  Check PATH or set CC." "$LINENO" 5
4888	fi
4889fi
4890
4891if test -z "${AR}"; then
4892	for ac_prog in ar gar
4893do
4894  # Extract the first word of "$ac_prog", so it can be a program name with args.
4895set dummy $ac_prog; ac_word=$2
4896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4897$as_echo_n "checking for $ac_word... " >&6; }
4898if ${ac_cv_prog_AR+:} false; then :
4899  $as_echo_n "(cached) " >&6
4900else
4901  if test -n "$AR"; then
4902  ac_cv_prog_AR="$AR" # Let the user override the test.
4903else
4904as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4905for as_dir in $PATH
4906do
4907  IFS=$as_save_IFS
4908  test -z "$as_dir" && as_dir=.
4909    for ac_exec_ext in '' $ac_executable_extensions; do
4910  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4911    ac_cv_prog_AR="$ac_prog"
4912    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4913    break 2
4914  fi
4915done
4916  done
4917IFS=$as_save_IFS
4918
4919fi
4920fi
4921AR=$ac_cv_prog_AR
4922if test -n "$AR"; then
4923  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4924$as_echo "$AR" >&6; }
4925else
4926  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4927$as_echo "no" >&6; }
4928fi
4929
4930
4931  test -n "$AR" && break
4932done
4933test -n "$AR" || AR="missing"
4934
4935
4936	if test "${AR}" = "missing" ; then
4937		as_fn_error $? "Unable to locate ar(1) or suitable replacement.  Check PATH or set AR." "$LINENO" 5
4938	fi
4939fi
4940
4941if test -z "${STRIP}"; then
4942	for ac_prog in strip
4943do
4944  # Extract the first word of "$ac_prog", so it can be a program name with args.
4945set dummy $ac_prog; ac_word=$2
4946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4947$as_echo_n "checking for $ac_word... " >&6; }
4948if ${ac_cv_prog_STRIP+:} false; then :
4949  $as_echo_n "(cached) " >&6
4950else
4951  if test -n "$STRIP"; then
4952  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4953else
4954as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4955for as_dir in $PATH
4956do
4957  IFS=$as_save_IFS
4958  test -z "$as_dir" && as_dir=.
4959    for ac_exec_ext in '' $ac_executable_extensions; do
4960  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4961    ac_cv_prog_STRIP="$ac_prog"
4962    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4963    break 2
4964  fi
4965done
4966  done
4967IFS=$as_save_IFS
4968
4969fi
4970fi
4971STRIP=$ac_cv_prog_STRIP
4972if test -n "$STRIP"; then
4973  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4974$as_echo "$STRIP" >&6; }
4975else
4976  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4977$as_echo "no" >&6; }
4978fi
4979
4980
4981  test -n "$STRIP" && break
4982done
4983test -n "$STRIP" || STRIP="missing"
4984
4985
4986	if test "${STRIP}" = "missing" ; then
4987		as_fn_error $? "Unable to locate strip(1) or suitable replacement.  Check PATH or set STRIP." "$LINENO" 5
4988	fi
4989fi
4990
4991
4992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4993$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4994set x ${MAKE-make}
4995ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4996if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4997  $as_echo_n "(cached) " >&6
4998else
4999  cat >conftest.make <<\_ACEOF
5000SHELL = /bin/sh
5001all:
5002	@echo '@@@%%%=$(MAKE)=@@@%%%'
5003_ACEOF
5004# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5005case `${MAKE-make} -f conftest.make 2>/dev/null` in
5006  *@@@%%%=?*=@@@%%%*)
5007    eval ac_cv_prog_make_${ac_make}_set=yes;;
5008  *)
5009    eval ac_cv_prog_make_${ac_make}_set=no;;
5010esac
5011rm -f conftest.make
5012fi
5013if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5014  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5015$as_echo "yes" >&6; }
5016  SET_MAKE=
5017else
5018  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5019$as_echo "no" >&6; }
5020  SET_MAKE="MAKE=${MAKE-make}"
5021fi
5022
5023case `pwd` in
5024  *\ * | *\	*)
5025    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5026$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5027esac
5028
5029
5030
5031macro_version='2.4.6'
5032macro_revision='2.4.6'
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046ltmain=$ac_aux_dir/ltmain.sh
5047
5048# Backslashify metacharacters that are still active within
5049# double-quoted strings.
5050sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5051
5052# Same as above, but do not quote variable references.
5053double_quote_subst='s/\(["`\\]\)/\\\1/g'
5054
5055# Sed substitution to delay expansion of an escaped shell variable in a
5056# double_quote_subst'ed string.
5057delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5058
5059# Sed substitution to delay expansion of an escaped single quote.
5060delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5061
5062# Sed substitution to avoid accidental globbing in evaled expressions
5063no_glob_subst='s/\*/\\\*/g'
5064
5065ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5066ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5067ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5068
5069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5070$as_echo_n "checking how to print strings... " >&6; }
5071# Test print first, because it will be a builtin if present.
5072if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5073   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5074  ECHO='print -r --'
5075elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5076  ECHO='printf %s\n'
5077else
5078  # Use this function as a fallback that always works.
5079  func_fallback_echo ()
5080  {
5081    eval 'cat <<_LTECHO_EOF
5082$1
5083_LTECHO_EOF'
5084  }
5085  ECHO='func_fallback_echo'
5086fi
5087
5088# func_echo_all arg...
5089# Invoke $ECHO with all args, space-separated.
5090func_echo_all ()
5091{
5092    $ECHO ""
5093}
5094
5095case $ECHO in
5096  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5097$as_echo "printf" >&6; } ;;
5098  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5099$as_echo "print -r" >&6; } ;;
5100  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5101$as_echo "cat" >&6; } ;;
5102esac
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117ac_ext=c
5118ac_cpp='$CPP $CPPFLAGS'
5119ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5120ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5121ac_compiler_gnu=$ac_cv_c_compiler_gnu
5122if test -n "$ac_tool_prefix"; then
5123  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5124set dummy ${ac_tool_prefix}gcc; ac_word=$2
5125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5126$as_echo_n "checking for $ac_word... " >&6; }
5127if ${ac_cv_prog_CC+:} false; then :
5128  $as_echo_n "(cached) " >&6
5129else
5130  if test -n "$CC"; then
5131  ac_cv_prog_CC="$CC" # Let the user override the test.
5132else
5133as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5134for as_dir in $PATH
5135do
5136  IFS=$as_save_IFS
5137  test -z "$as_dir" && as_dir=.
5138    for ac_exec_ext in '' $ac_executable_extensions; do
5139  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5140    ac_cv_prog_CC="${ac_tool_prefix}gcc"
5141    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5142    break 2
5143  fi
5144done
5145  done
5146IFS=$as_save_IFS
5147
5148fi
5149fi
5150CC=$ac_cv_prog_CC
5151if test -n "$CC"; then
5152  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5153$as_echo "$CC" >&6; }
5154else
5155  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5156$as_echo "no" >&6; }
5157fi
5158
5159
5160fi
5161if test -z "$ac_cv_prog_CC"; then
5162  ac_ct_CC=$CC
5163  # Extract the first word of "gcc", so it can be a program name with args.
5164set dummy gcc; ac_word=$2
5165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5166$as_echo_n "checking for $ac_word... " >&6; }
5167if ${ac_cv_prog_ac_ct_CC+:} false; then :
5168  $as_echo_n "(cached) " >&6
5169else
5170  if test -n "$ac_ct_CC"; then
5171  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5172else
5173as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5174for as_dir in $PATH
5175do
5176  IFS=$as_save_IFS
5177  test -z "$as_dir" && as_dir=.
5178    for ac_exec_ext in '' $ac_executable_extensions; do
5179  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5180    ac_cv_prog_ac_ct_CC="gcc"
5181    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5182    break 2
5183  fi
5184done
5185  done
5186IFS=$as_save_IFS
5187
5188fi
5189fi
5190ac_ct_CC=$ac_cv_prog_ac_ct_CC
5191if test -n "$ac_ct_CC"; then
5192  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5193$as_echo "$ac_ct_CC" >&6; }
5194else
5195  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5196$as_echo "no" >&6; }
5197fi
5198
5199  if test "x$ac_ct_CC" = x; then
5200    CC=""
5201  else
5202    case $cross_compiling:$ac_tool_warned in
5203yes:)
5204{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5205$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5206ac_tool_warned=yes ;;
5207esac
5208    CC=$ac_ct_CC
5209  fi
5210else
5211  CC="$ac_cv_prog_CC"
5212fi
5213
5214if test -z "$CC"; then
5215          if test -n "$ac_tool_prefix"; then
5216    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5217set dummy ${ac_tool_prefix}cc; ac_word=$2
5218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5219$as_echo_n "checking for $ac_word... " >&6; }
5220if ${ac_cv_prog_CC+:} false; then :
5221  $as_echo_n "(cached) " >&6
5222else
5223  if test -n "$CC"; then
5224  ac_cv_prog_CC="$CC" # Let the user override the test.
5225else
5226as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5227for as_dir in $PATH
5228do
5229  IFS=$as_save_IFS
5230  test -z "$as_dir" && as_dir=.
5231    for ac_exec_ext in '' $ac_executable_extensions; do
5232  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5233    ac_cv_prog_CC="${ac_tool_prefix}cc"
5234    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5235    break 2
5236  fi
5237done
5238  done
5239IFS=$as_save_IFS
5240
5241fi
5242fi
5243CC=$ac_cv_prog_CC
5244if test -n "$CC"; then
5245  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5246$as_echo "$CC" >&6; }
5247else
5248  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5249$as_echo "no" >&6; }
5250fi
5251
5252
5253  fi
5254fi
5255if test -z "$CC"; then
5256  # Extract the first word of "cc", so it can be a program name with args.
5257set dummy cc; ac_word=$2
5258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5259$as_echo_n "checking for $ac_word... " >&6; }
5260if ${ac_cv_prog_CC+:} false; then :
5261  $as_echo_n "(cached) " >&6
5262else
5263  if test -n "$CC"; then
5264  ac_cv_prog_CC="$CC" # Let the user override the test.
5265else
5266  ac_prog_rejected=no
5267as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5268for as_dir in $PATH
5269do
5270  IFS=$as_save_IFS
5271  test -z "$as_dir" && as_dir=.
5272    for ac_exec_ext in '' $ac_executable_extensions; do
5273  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5274    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5275       ac_prog_rejected=yes
5276       continue
5277     fi
5278    ac_cv_prog_CC="cc"
5279    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5280    break 2
5281  fi
5282done
5283  done
5284IFS=$as_save_IFS
5285
5286if test $ac_prog_rejected = yes; then
5287  # We found a bogon in the path, so make sure we never use it.
5288  set dummy $ac_cv_prog_CC
5289  shift
5290  if test $# != 0; then
5291    # We chose a different compiler from the bogus one.
5292    # However, it has the same basename, so the bogon will be chosen
5293    # first if we set CC to just the basename; use the full file name.
5294    shift
5295    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5296  fi
5297fi
5298fi
5299fi
5300CC=$ac_cv_prog_CC
5301if test -n "$CC"; then
5302  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5303$as_echo "$CC" >&6; }
5304else
5305  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5306$as_echo "no" >&6; }
5307fi
5308
5309
5310fi
5311if test -z "$CC"; then
5312  if test -n "$ac_tool_prefix"; then
5313  for ac_prog in cl.exe
5314  do
5315    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5316set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5318$as_echo_n "checking for $ac_word... " >&6; }
5319if ${ac_cv_prog_CC+:} false; then :
5320  $as_echo_n "(cached) " >&6
5321else
5322  if test -n "$CC"; then
5323  ac_cv_prog_CC="$CC" # Let the user override the test.
5324else
5325as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5326for as_dir in $PATH
5327do
5328  IFS=$as_save_IFS
5329  test -z "$as_dir" && as_dir=.
5330    for ac_exec_ext in '' $ac_executable_extensions; do
5331  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5332    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5333    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5334    break 2
5335  fi
5336done
5337  done
5338IFS=$as_save_IFS
5339
5340fi
5341fi
5342CC=$ac_cv_prog_CC
5343if test -n "$CC"; then
5344  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5345$as_echo "$CC" >&6; }
5346else
5347  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5348$as_echo "no" >&6; }
5349fi
5350
5351
5352    test -n "$CC" && break
5353  done
5354fi
5355if test -z "$CC"; then
5356  ac_ct_CC=$CC
5357  for ac_prog in cl.exe
5358do
5359  # Extract the first word of "$ac_prog", so it can be a program name with args.
5360set dummy $ac_prog; ac_word=$2
5361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5362$as_echo_n "checking for $ac_word... " >&6; }
5363if ${ac_cv_prog_ac_ct_CC+:} false; then :
5364  $as_echo_n "(cached) " >&6
5365else
5366  if test -n "$ac_ct_CC"; then
5367  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5368else
5369as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5370for as_dir in $PATH
5371do
5372  IFS=$as_save_IFS
5373  test -z "$as_dir" && as_dir=.
5374    for ac_exec_ext in '' $ac_executable_extensions; do
5375  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5376    ac_cv_prog_ac_ct_CC="$ac_prog"
5377    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5378    break 2
5379  fi
5380done
5381  done
5382IFS=$as_save_IFS
5383
5384fi
5385fi
5386ac_ct_CC=$ac_cv_prog_ac_ct_CC
5387if test -n "$ac_ct_CC"; then
5388  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5389$as_echo "$ac_ct_CC" >&6; }
5390else
5391  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5392$as_echo "no" >&6; }
5393fi
5394
5395
5396  test -n "$ac_ct_CC" && break
5397done
5398
5399  if test "x$ac_ct_CC" = x; then
5400    CC=""
5401  else
5402    case $cross_compiling:$ac_tool_warned in
5403yes:)
5404{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5405$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5406ac_tool_warned=yes ;;
5407esac
5408    CC=$ac_ct_CC
5409  fi
5410fi
5411
5412fi
5413
5414
5415test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5416$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5417as_fn_error $? "no acceptable C compiler found in \$PATH
5418See \`config.log' for more details" "$LINENO" 5; }
5419
5420# Provide some information about the compiler.
5421$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5422set X $ac_compile
5423ac_compiler=$2
5424for ac_option in --version -v -V -qversion; do
5425  { { ac_try="$ac_compiler $ac_option >&5"
5426case "(($ac_try" in
5427  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5428  *) ac_try_echo=$ac_try;;
5429esac
5430eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5431$as_echo "$ac_try_echo"; } >&5
5432  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5433  ac_status=$?
5434  if test -s conftest.err; then
5435    sed '10a\
5436... rest of stderr output deleted ...
5437         10q' conftest.err >conftest.er1
5438    cat conftest.er1 >&5
5439  fi
5440  rm -f conftest.er1 conftest.err
5441  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5442  test $ac_status = 0; }
5443done
5444
5445cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5446/* end confdefs.h.  */
5447
5448int
5449main ()
5450{
5451
5452  ;
5453  return 0;
5454}
5455_ACEOF
5456ac_clean_files_save=$ac_clean_files
5457ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
5458# Try to create an executable without -o first, disregard a.out.
5459# It will help us diagnose broken compilers, and finding out an intuition
5460# of exeext.
5461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
5462$as_echo_n "checking whether the C compiler works... " >&6; }
5463ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
5464
5465# The possible output files:
5466ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
5467
5468ac_rmfiles=
5469for ac_file in $ac_files
5470do
5471  case $ac_file in
5472    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5473    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5474  esac
5475done
5476rm -f $ac_rmfiles
5477
5478if { { ac_try="$ac_link_default"
5479case "(($ac_try" in
5480  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5481  *) ac_try_echo=$ac_try;;
5482esac
5483eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5484$as_echo "$ac_try_echo"; } >&5
5485  (eval "$ac_link_default") 2>&5
5486  ac_status=$?
5487  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5488  test $ac_status = 0; }; then :
5489  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5490# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5491# in a Makefile.  We should not override ac_cv_exeext if it was cached,
5492# so that the user can short-circuit this test for compilers unknown to
5493# Autoconf.
5494for ac_file in $ac_files ''
5495do
5496  test -f "$ac_file" || continue
5497  case $ac_file in
5498    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
5499	;;
5500    [ab].out )
5501	# We found the default executable, but exeext='' is most
5502	# certainly right.
5503	break;;
5504    *.* )
5505	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
5506	then :; else
5507	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5508	fi
5509	# We set ac_cv_exeext here because the later test for it is not
5510	# safe: cross compilers may not add the suffix if given an `-o'
5511	# argument, so we may need to know it at that point already.
5512	# Even if this section looks crufty: it has the advantage of
5513	# actually working.
5514	break;;
5515    * )
5516	break;;
5517  esac
5518done
5519test "$ac_cv_exeext" = no && ac_cv_exeext=
5520
5521else
5522  ac_file=''
5523fi
5524if test -z "$ac_file"; then :
5525  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5526$as_echo "no" >&6; }
5527$as_echo "$as_me: failed program was:" >&5
5528sed 's/^/| /' conftest.$ac_ext >&5
5529
5530{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5531$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5532as_fn_error 77 "C compiler cannot create executables
5533See \`config.log' for more details" "$LINENO" 5; }
5534else
5535  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5536$as_echo "yes" >&6; }
5537fi
5538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5539$as_echo_n "checking for C compiler default output file name... " >&6; }
5540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5541$as_echo "$ac_file" >&6; }
5542ac_exeext=$ac_cv_exeext
5543
5544rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
5545ac_clean_files=$ac_clean_files_save
5546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5547$as_echo_n "checking for suffix of executables... " >&6; }
5548if { { ac_try="$ac_link"
5549case "(($ac_try" in
5550  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5551  *) ac_try_echo=$ac_try;;
5552esac
5553eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5554$as_echo "$ac_try_echo"; } >&5
5555  (eval "$ac_link") 2>&5
5556  ac_status=$?
5557  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5558  test $ac_status = 0; }; then :
5559  # If both `conftest.exe' and `conftest' are `present' (well, observable)
5560# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
5561# work properly (i.e., refer to `conftest.exe'), while it won't with
5562# `rm'.
5563for ac_file in conftest.exe conftest conftest.*; do
5564  test -f "$ac_file" || continue
5565  case $ac_file in
5566    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5567    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5568	  break;;
5569    * ) break;;
5570  esac
5571done
5572else
5573  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5574$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5575as_fn_error $? "cannot compute suffix of executables: cannot compile and link
5576See \`config.log' for more details" "$LINENO" 5; }
5577fi
5578rm -f conftest conftest$ac_cv_exeext
5579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5580$as_echo "$ac_cv_exeext" >&6; }
5581
5582rm -f conftest.$ac_ext
5583EXEEXT=$ac_cv_exeext
5584ac_exeext=$EXEEXT
5585cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5586/* end confdefs.h.  */
5587#include <stdio.h>
5588int
5589main ()
5590{
5591FILE *f = fopen ("conftest.out", "w");
5592 return ferror (f) || fclose (f) != 0;
5593
5594  ;
5595  return 0;
5596}
5597_ACEOF
5598ac_clean_files="$ac_clean_files conftest.out"
5599# Check that the compiler produces executables we can run.  If not, either
5600# the compiler is broken, or we cross compile.
5601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5602$as_echo_n "checking whether we are cross compiling... " >&6; }
5603if test "$cross_compiling" != yes; then
5604  { { ac_try="$ac_link"
5605case "(($ac_try" in
5606  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5607  *) ac_try_echo=$ac_try;;
5608esac
5609eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5610$as_echo "$ac_try_echo"; } >&5
5611  (eval "$ac_link") 2>&5
5612  ac_status=$?
5613  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5614  test $ac_status = 0; }
5615  if { ac_try='./conftest$ac_cv_exeext'
5616  { { case "(($ac_try" in
5617  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5618  *) ac_try_echo=$ac_try;;
5619esac
5620eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5621$as_echo "$ac_try_echo"; } >&5
5622  (eval "$ac_try") 2>&5
5623  ac_status=$?
5624  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5625  test $ac_status = 0; }; }; then
5626    cross_compiling=no
5627  else
5628    if test "$cross_compiling" = maybe; then
5629	cross_compiling=yes
5630    else
5631	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5632$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5633as_fn_error $? "cannot run C compiled programs.
5634If you meant to cross compile, use \`--host'.
5635See \`config.log' for more details" "$LINENO" 5; }
5636    fi
5637  fi
5638fi
5639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5640$as_echo "$cross_compiling" >&6; }
5641
5642rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5643ac_clean_files=$ac_clean_files_save
5644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5645$as_echo_n "checking for suffix of object files... " >&6; }
5646if ${ac_cv_objext+:} false; then :
5647  $as_echo_n "(cached) " >&6
5648else
5649  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5650/* end confdefs.h.  */
5651
5652int
5653main ()
5654{
5655
5656  ;
5657  return 0;
5658}
5659_ACEOF
5660rm -f conftest.o conftest.obj
5661if { { ac_try="$ac_compile"
5662case "(($ac_try" in
5663  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5664  *) ac_try_echo=$ac_try;;
5665esac
5666eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5667$as_echo "$ac_try_echo"; } >&5
5668  (eval "$ac_compile") 2>&5
5669  ac_status=$?
5670  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5671  test $ac_status = 0; }; then :
5672  for ac_file in conftest.o conftest.obj conftest.*; do
5673  test -f "$ac_file" || continue;
5674  case $ac_file in
5675    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5676    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5677       break;;
5678  esac
5679done
5680else
5681  $as_echo "$as_me: failed program was:" >&5
5682sed 's/^/| /' conftest.$ac_ext >&5
5683
5684{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5685$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5686as_fn_error $? "cannot compute suffix of object files: cannot compile
5687See \`config.log' for more details" "$LINENO" 5; }
5688fi
5689rm -f conftest.$ac_cv_objext conftest.$ac_ext
5690fi
5691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5692$as_echo "$ac_cv_objext" >&6; }
5693OBJEXT=$ac_cv_objext
5694ac_objext=$OBJEXT
5695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5696$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5697if ${ac_cv_c_compiler_gnu+:} false; then :
5698  $as_echo_n "(cached) " >&6
5699else
5700  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5701/* end confdefs.h.  */
5702
5703int
5704main ()
5705{
5706#ifndef __GNUC__
5707       choke me
5708#endif
5709
5710  ;
5711  return 0;
5712}
5713_ACEOF
5714if ac_fn_c_try_compile "$LINENO"; then :
5715  ac_compiler_gnu=yes
5716else
5717  ac_compiler_gnu=no
5718fi
5719rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5720ac_cv_c_compiler_gnu=$ac_compiler_gnu
5721
5722fi
5723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5724$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5725if test $ac_compiler_gnu = yes; then
5726  GCC=yes
5727else
5728  GCC=
5729fi
5730ac_test_CFLAGS=${CFLAGS+set}
5731ac_save_CFLAGS=$CFLAGS
5732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5733$as_echo_n "checking whether $CC accepts -g... " >&6; }
5734if ${ac_cv_prog_cc_g+:} false; then :
5735  $as_echo_n "(cached) " >&6
5736else
5737  ac_save_c_werror_flag=$ac_c_werror_flag
5738   ac_c_werror_flag=yes
5739   ac_cv_prog_cc_g=no
5740   CFLAGS="-g"
5741   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5742/* end confdefs.h.  */
5743
5744int
5745main ()
5746{
5747
5748  ;
5749  return 0;
5750}
5751_ACEOF
5752if ac_fn_c_try_compile "$LINENO"; then :
5753  ac_cv_prog_cc_g=yes
5754else
5755  CFLAGS=""
5756      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5757/* end confdefs.h.  */
5758
5759int
5760main ()
5761{
5762
5763  ;
5764  return 0;
5765}
5766_ACEOF
5767if ac_fn_c_try_compile "$LINENO"; then :
5768
5769else
5770  ac_c_werror_flag=$ac_save_c_werror_flag
5771	 CFLAGS="-g"
5772	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5773/* end confdefs.h.  */
5774
5775int
5776main ()
5777{
5778
5779  ;
5780  return 0;
5781}
5782_ACEOF
5783if ac_fn_c_try_compile "$LINENO"; then :
5784  ac_cv_prog_cc_g=yes
5785fi
5786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5787fi
5788rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5789fi
5790rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5791   ac_c_werror_flag=$ac_save_c_werror_flag
5792fi
5793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5794$as_echo "$ac_cv_prog_cc_g" >&6; }
5795if test "$ac_test_CFLAGS" = set; then
5796  CFLAGS=$ac_save_CFLAGS
5797elif test $ac_cv_prog_cc_g = yes; then
5798  if test "$GCC" = yes; then
5799    CFLAGS="-g -O2"
5800  else
5801    CFLAGS="-g"
5802  fi
5803else
5804  if test "$GCC" = yes; then
5805    CFLAGS="-O2"
5806  else
5807    CFLAGS=
5808  fi
5809fi
5810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5811$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5812if ${ac_cv_prog_cc_c89+:} false; then :
5813  $as_echo_n "(cached) " >&6
5814else
5815  ac_cv_prog_cc_c89=no
5816ac_save_CC=$CC
5817cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5818/* end confdefs.h.  */
5819#include <stdarg.h>
5820#include <stdio.h>
5821struct stat;
5822/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5823struct buf { int x; };
5824FILE * (*rcsopen) (struct buf *, struct stat *, int);
5825static char *e (p, i)
5826     char **p;
5827     int i;
5828{
5829  return p[i];
5830}
5831static char *f (char * (*g) (char **, int), char **p, ...)
5832{
5833  char *s;
5834  va_list v;
5835  va_start (v,p);
5836  s = g (p, va_arg (v,int));
5837  va_end (v);
5838  return s;
5839}
5840
5841/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5842   function prototypes and stuff, but not '\xHH' hex character constants.
5843   These don't provoke an error unfortunately, instead are silently treated
5844   as 'x'.  The following induces an error, until -std is added to get
5845   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5846   array size at least.  It's necessary to write '\x00'==0 to get something
5847   that's true only with -std.  */
5848int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5849
5850/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5851   inside strings and character constants.  */
5852#define FOO(x) 'x'
5853int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5854
5855int test (int i, double x);
5856struct s1 {int (*f) (int a);};
5857struct s2 {int (*f) (double a);};
5858int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5859int argc;
5860char **argv;
5861int
5862main ()
5863{
5864return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5865  ;
5866  return 0;
5867}
5868_ACEOF
5869for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5870	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5871do
5872  CC="$ac_save_CC $ac_arg"
5873  if ac_fn_c_try_compile "$LINENO"; then :
5874  ac_cv_prog_cc_c89=$ac_arg
5875fi
5876rm -f core conftest.err conftest.$ac_objext
5877  test "x$ac_cv_prog_cc_c89" != "xno" && break
5878done
5879rm -f conftest.$ac_ext
5880CC=$ac_save_CC
5881
5882fi
5883# AC_CACHE_VAL
5884case "x$ac_cv_prog_cc_c89" in
5885  x)
5886    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5887$as_echo "none needed" >&6; } ;;
5888  xno)
5889    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5890$as_echo "unsupported" >&6; } ;;
5891  *)
5892    CC="$CC $ac_cv_prog_cc_c89"
5893    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5894$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5895esac
5896if test "x$ac_cv_prog_cc_c89" != xno; then :
5897
5898fi
5899
5900ac_ext=c
5901ac_cpp='$CPP $CPPFLAGS'
5902ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5903ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5904ac_compiler_gnu=$ac_cv_c_compiler_gnu
5905
5906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5907$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5908if ${ac_cv_path_SED+:} false; then :
5909  $as_echo_n "(cached) " >&6
5910else
5911            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5912     for ac_i in 1 2 3 4 5 6 7; do
5913       ac_script="$ac_script$as_nl$ac_script"
5914     done
5915     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5916     { ac_script=; unset ac_script;}
5917     if test -z "$SED"; then
5918  ac_path_SED_found=false
5919  # Loop through the user's path and test for each of PROGNAME-LIST
5920  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5921for as_dir in $PATH
5922do
5923  IFS=$as_save_IFS
5924  test -z "$as_dir" && as_dir=.
5925    for ac_prog in sed gsed; do
5926    for ac_exec_ext in '' $ac_executable_extensions; do
5927      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5928      as_fn_executable_p "$ac_path_SED" || continue
5929# Check for GNU ac_path_SED and select it if it is found.
5930  # Check for GNU $ac_path_SED
5931case `"$ac_path_SED" --version 2>&1` in
5932*GNU*)
5933  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5934*)
5935  ac_count=0
5936  $as_echo_n 0123456789 >"conftest.in"
5937  while :
5938  do
5939    cat "conftest.in" "conftest.in" >"conftest.tmp"
5940    mv "conftest.tmp" "conftest.in"
5941    cp "conftest.in" "conftest.nl"
5942    $as_echo '' >> "conftest.nl"
5943    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5944    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5945    as_fn_arith $ac_count + 1 && ac_count=$as_val
5946    if test $ac_count -gt ${ac_path_SED_max-0}; then
5947      # Best one so far, save it but keep looking for a better one
5948      ac_cv_path_SED="$ac_path_SED"
5949      ac_path_SED_max=$ac_count
5950    fi
5951    # 10*(2^10) chars as input seems more than enough
5952    test $ac_count -gt 10 && break
5953  done
5954  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5955esac
5956
5957      $ac_path_SED_found && break 3
5958    done
5959  done
5960  done
5961IFS=$as_save_IFS
5962  if test -z "$ac_cv_path_SED"; then
5963    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5964  fi
5965else
5966  ac_cv_path_SED=$SED
5967fi
5968
5969fi
5970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5971$as_echo "$ac_cv_path_SED" >&6; }
5972 SED="$ac_cv_path_SED"
5973  rm -f conftest.sed
5974
5975test -z "$SED" && SED=sed
5976Xsed="$SED -e 1s/^X//"
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5989$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5990if ${ac_cv_path_GREP+:} false; then :
5991  $as_echo_n "(cached) " >&6
5992else
5993  if test -z "$GREP"; then
5994  ac_path_GREP_found=false
5995  # Loop through the user's path and test for each of PROGNAME-LIST
5996  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5997for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5998do
5999  IFS=$as_save_IFS
6000  test -z "$as_dir" && as_dir=.
6001    for ac_prog in grep ggrep; do
6002    for ac_exec_ext in '' $ac_executable_extensions; do
6003      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6004      as_fn_executable_p "$ac_path_GREP" || continue
6005# Check for GNU ac_path_GREP and select it if it is found.
6006  # Check for GNU $ac_path_GREP
6007case `"$ac_path_GREP" --version 2>&1` in
6008*GNU*)
6009  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6010*)
6011  ac_count=0
6012  $as_echo_n 0123456789 >"conftest.in"
6013  while :
6014  do
6015    cat "conftest.in" "conftest.in" >"conftest.tmp"
6016    mv "conftest.tmp" "conftest.in"
6017    cp "conftest.in" "conftest.nl"
6018    $as_echo 'GREP' >> "conftest.nl"
6019    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6020    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6021    as_fn_arith $ac_count + 1 && ac_count=$as_val
6022    if test $ac_count -gt ${ac_path_GREP_max-0}; then
6023      # Best one so far, save it but keep looking for a better one
6024      ac_cv_path_GREP="$ac_path_GREP"
6025      ac_path_GREP_max=$ac_count
6026    fi
6027    # 10*(2^10) chars as input seems more than enough
6028    test $ac_count -gt 10 && break
6029  done
6030  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6031esac
6032
6033      $ac_path_GREP_found && break 3
6034    done
6035  done
6036  done
6037IFS=$as_save_IFS
6038  if test -z "$ac_cv_path_GREP"; then
6039    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6040  fi
6041else
6042  ac_cv_path_GREP=$GREP
6043fi
6044
6045fi
6046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6047$as_echo "$ac_cv_path_GREP" >&6; }
6048 GREP="$ac_cv_path_GREP"
6049
6050
6051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6052$as_echo_n "checking for egrep... " >&6; }
6053if ${ac_cv_path_EGREP+:} false; then :
6054  $as_echo_n "(cached) " >&6
6055else
6056  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6057   then ac_cv_path_EGREP="$GREP -E"
6058   else
6059     if test -z "$EGREP"; then
6060  ac_path_EGREP_found=false
6061  # Loop through the user's path and test for each of PROGNAME-LIST
6062  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6063for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6064do
6065  IFS=$as_save_IFS
6066  test -z "$as_dir" && as_dir=.
6067    for ac_prog in egrep; do
6068    for ac_exec_ext in '' $ac_executable_extensions; do
6069      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6070      as_fn_executable_p "$ac_path_EGREP" || continue
6071# Check for GNU ac_path_EGREP and select it if it is found.
6072  # Check for GNU $ac_path_EGREP
6073case `"$ac_path_EGREP" --version 2>&1` in
6074*GNU*)
6075  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6076*)
6077  ac_count=0
6078  $as_echo_n 0123456789 >"conftest.in"
6079  while :
6080  do
6081    cat "conftest.in" "conftest.in" >"conftest.tmp"
6082    mv "conftest.tmp" "conftest.in"
6083    cp "conftest.in" "conftest.nl"
6084    $as_echo 'EGREP' >> "conftest.nl"
6085    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6086    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6087    as_fn_arith $ac_count + 1 && ac_count=$as_val
6088    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6089      # Best one so far, save it but keep looking for a better one
6090      ac_cv_path_EGREP="$ac_path_EGREP"
6091      ac_path_EGREP_max=$ac_count
6092    fi
6093    # 10*(2^10) chars as input seems more than enough
6094    test $ac_count -gt 10 && break
6095  done
6096  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6097esac
6098
6099      $ac_path_EGREP_found && break 3
6100    done
6101  done
6102  done
6103IFS=$as_save_IFS
6104  if test -z "$ac_cv_path_EGREP"; then
6105    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6106  fi
6107else
6108  ac_cv_path_EGREP=$EGREP
6109fi
6110
6111   fi
6112fi
6113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6114$as_echo "$ac_cv_path_EGREP" >&6; }
6115 EGREP="$ac_cv_path_EGREP"
6116
6117
6118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6119$as_echo_n "checking for fgrep... " >&6; }
6120if ${ac_cv_path_FGREP+:} false; then :
6121  $as_echo_n "(cached) " >&6
6122else
6123  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6124   then ac_cv_path_FGREP="$GREP -F"
6125   else
6126     if test -z "$FGREP"; then
6127  ac_path_FGREP_found=false
6128  # Loop through the user's path and test for each of PROGNAME-LIST
6129  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6130for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6131do
6132  IFS=$as_save_IFS
6133  test -z "$as_dir" && as_dir=.
6134    for ac_prog in fgrep; do
6135    for ac_exec_ext in '' $ac_executable_extensions; do
6136      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6137      as_fn_executable_p "$ac_path_FGREP" || continue
6138# Check for GNU ac_path_FGREP and select it if it is found.
6139  # Check for GNU $ac_path_FGREP
6140case `"$ac_path_FGREP" --version 2>&1` in
6141*GNU*)
6142  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6143*)
6144  ac_count=0
6145  $as_echo_n 0123456789 >"conftest.in"
6146  while :
6147  do
6148    cat "conftest.in" "conftest.in" >"conftest.tmp"
6149    mv "conftest.tmp" "conftest.in"
6150    cp "conftest.in" "conftest.nl"
6151    $as_echo 'FGREP' >> "conftest.nl"
6152    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6153    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6154    as_fn_arith $ac_count + 1 && ac_count=$as_val
6155    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6156      # Best one so far, save it but keep looking for a better one
6157      ac_cv_path_FGREP="$ac_path_FGREP"
6158      ac_path_FGREP_max=$ac_count
6159    fi
6160    # 10*(2^10) chars as input seems more than enough
6161    test $ac_count -gt 10 && break
6162  done
6163  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6164esac
6165
6166      $ac_path_FGREP_found && break 3
6167    done
6168  done
6169  done
6170IFS=$as_save_IFS
6171  if test -z "$ac_cv_path_FGREP"; then
6172    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6173  fi
6174else
6175  ac_cv_path_FGREP=$FGREP
6176fi
6177
6178   fi
6179fi
6180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6181$as_echo "$ac_cv_path_FGREP" >&6; }
6182 FGREP="$ac_cv_path_FGREP"
6183
6184
6185test -z "$GREP" && GREP=grep
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205# Check whether --with-gnu-ld was given.
6206if test "${with_gnu_ld+set}" = set; then :
6207  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
6208else
6209  with_gnu_ld=no
6210fi
6211
6212ac_prog=ld
6213if test yes = "$GCC"; then
6214  # Check if gcc -print-prog-name=ld gives a path.
6215  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6216$as_echo_n "checking for ld used by $CC... " >&6; }
6217  case $host in
6218  *-*-mingw*)
6219    # gcc leaves a trailing carriage return, which upsets mingw
6220    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6221  *)
6222    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6223  esac
6224  case $ac_prog in
6225    # Accept absolute paths.
6226    [\\/]* | ?:[\\/]*)
6227      re_direlt='/[^/][^/]*/\.\./'
6228      # Canonicalize the pathname of ld
6229      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6230      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6231	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6232      done
6233      test -z "$LD" && LD=$ac_prog
6234      ;;
6235  "")
6236    # If it fails, then pretend we aren't using GCC.
6237    ac_prog=ld
6238    ;;
6239  *)
6240    # If it is relative, then search for the first ld in PATH.
6241    with_gnu_ld=unknown
6242    ;;
6243  esac
6244elif test yes = "$with_gnu_ld"; then
6245  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6246$as_echo_n "checking for GNU ld... " >&6; }
6247else
6248  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6249$as_echo_n "checking for non-GNU ld... " >&6; }
6250fi
6251if ${lt_cv_path_LD+:} false; then :
6252  $as_echo_n "(cached) " >&6
6253else
6254  if test -z "$LD"; then
6255  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6256  for ac_dir in $PATH; do
6257    IFS=$lt_save_ifs
6258    test -z "$ac_dir" && ac_dir=.
6259    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6260      lt_cv_path_LD=$ac_dir/$ac_prog
6261      # Check to see if the program is GNU ld.  I'd rather use --version,
6262      # but apparently some variants of GNU ld only accept -v.
6263      # Break only if it was the GNU/non-GNU ld that we prefer.
6264      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6265      *GNU* | *'with BFD'*)
6266	test no != "$with_gnu_ld" && break
6267	;;
6268      *)
6269	test yes != "$with_gnu_ld" && break
6270	;;
6271      esac
6272    fi
6273  done
6274  IFS=$lt_save_ifs
6275else
6276  lt_cv_path_LD=$LD # Let the user override the test with a path.
6277fi
6278fi
6279
6280LD=$lt_cv_path_LD
6281if test -n "$LD"; then
6282  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6283$as_echo "$LD" >&6; }
6284else
6285  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6286$as_echo "no" >&6; }
6287fi
6288test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6290$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6291if ${lt_cv_prog_gnu_ld+:} false; then :
6292  $as_echo_n "(cached) " >&6
6293else
6294  # I'd rather use --version here, but apparently some GNU lds only accept -v.
6295case `$LD -v 2>&1 </dev/null` in
6296*GNU* | *'with BFD'*)
6297  lt_cv_prog_gnu_ld=yes
6298  ;;
6299*)
6300  lt_cv_prog_gnu_ld=no
6301  ;;
6302esac
6303fi
6304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6305$as_echo "$lt_cv_prog_gnu_ld" >&6; }
6306with_gnu_ld=$lt_cv_prog_gnu_ld
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6317$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6318if ${lt_cv_path_NM+:} false; then :
6319  $as_echo_n "(cached) " >&6
6320else
6321  if test -n "$NM"; then
6322  # Let the user override the test.
6323  lt_cv_path_NM=$NM
6324else
6325  lt_nm_to_check=${ac_tool_prefix}nm
6326  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6327    lt_nm_to_check="$lt_nm_to_check nm"
6328  fi
6329  for lt_tmp_nm in $lt_nm_to_check; do
6330    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6331    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6332      IFS=$lt_save_ifs
6333      test -z "$ac_dir" && ac_dir=.
6334      tmp_nm=$ac_dir/$lt_tmp_nm
6335      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
6336	# Check to see if the nm accepts a BSD-compat flag.
6337	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
6338	#   nm: unknown option "B" ignored
6339	# Tru64's nm complains that /dev/null is an invalid object file
6340	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
6341	case $build_os in
6342	mingw*) lt_bad_file=conftest.nm/nofile ;;
6343	*) lt_bad_file=/dev/null ;;
6344	esac
6345	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
6346	*$lt_bad_file* | *'Invalid file or object type'*)
6347	  lt_cv_path_NM="$tmp_nm -B"
6348	  break 2
6349	  ;;
6350	*)
6351	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6352	  */dev/null*)
6353	    lt_cv_path_NM="$tmp_nm -p"
6354	    break 2
6355	    ;;
6356	  *)
6357	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6358	    continue # so that we can try to find one that supports BSD flags
6359	    ;;
6360	  esac
6361	  ;;
6362	esac
6363      fi
6364    done
6365    IFS=$lt_save_ifs
6366  done
6367  : ${lt_cv_path_NM=no}
6368fi
6369fi
6370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6371$as_echo "$lt_cv_path_NM" >&6; }
6372if test no != "$lt_cv_path_NM"; then
6373  NM=$lt_cv_path_NM
6374else
6375  # Didn't find any BSD compatible name lister, look for dumpbin.
6376  if test -n "$DUMPBIN"; then :
6377    # Let the user override the test.
6378  else
6379    if test -n "$ac_tool_prefix"; then
6380  for ac_prog in dumpbin "link -dump"
6381  do
6382    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6383set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6385$as_echo_n "checking for $ac_word... " >&6; }
6386if ${ac_cv_prog_DUMPBIN+:} false; then :
6387  $as_echo_n "(cached) " >&6
6388else
6389  if test -n "$DUMPBIN"; then
6390  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6391else
6392as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6393for as_dir in $PATH
6394do
6395  IFS=$as_save_IFS
6396  test -z "$as_dir" && as_dir=.
6397    for ac_exec_ext in '' $ac_executable_extensions; do
6398  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6399    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6400    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6401    break 2
6402  fi
6403done
6404  done
6405IFS=$as_save_IFS
6406
6407fi
6408fi
6409DUMPBIN=$ac_cv_prog_DUMPBIN
6410if test -n "$DUMPBIN"; then
6411  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6412$as_echo "$DUMPBIN" >&6; }
6413else
6414  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6415$as_echo "no" >&6; }
6416fi
6417
6418
6419    test -n "$DUMPBIN" && break
6420  done
6421fi
6422if test -z "$DUMPBIN"; then
6423  ac_ct_DUMPBIN=$DUMPBIN
6424  for ac_prog in dumpbin "link -dump"
6425do
6426  # Extract the first word of "$ac_prog", so it can be a program name with args.
6427set dummy $ac_prog; ac_word=$2
6428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6429$as_echo_n "checking for $ac_word... " >&6; }
6430if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6431  $as_echo_n "(cached) " >&6
6432else
6433  if test -n "$ac_ct_DUMPBIN"; then
6434  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6435else
6436as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6437for as_dir in $PATH
6438do
6439  IFS=$as_save_IFS
6440  test -z "$as_dir" && as_dir=.
6441    for ac_exec_ext in '' $ac_executable_extensions; do
6442  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6443    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6444    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6445    break 2
6446  fi
6447done
6448  done
6449IFS=$as_save_IFS
6450
6451fi
6452fi
6453ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6454if test -n "$ac_ct_DUMPBIN"; then
6455  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6456$as_echo "$ac_ct_DUMPBIN" >&6; }
6457else
6458  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6459$as_echo "no" >&6; }
6460fi
6461
6462
6463  test -n "$ac_ct_DUMPBIN" && break
6464done
6465
6466  if test "x$ac_ct_DUMPBIN" = x; then
6467    DUMPBIN=":"
6468  else
6469    case $cross_compiling:$ac_tool_warned in
6470yes:)
6471{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6472$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6473ac_tool_warned=yes ;;
6474esac
6475    DUMPBIN=$ac_ct_DUMPBIN
6476  fi
6477fi
6478
6479    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
6480    *COFF*)
6481      DUMPBIN="$DUMPBIN -symbols -headers"
6482      ;;
6483    *)
6484      DUMPBIN=:
6485      ;;
6486    esac
6487  fi
6488
6489  if test : != "$DUMPBIN"; then
6490    NM=$DUMPBIN
6491  fi
6492fi
6493test -z "$NM" && NM=nm
6494
6495
6496
6497
6498
6499
6500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6501$as_echo_n "checking the name lister ($NM) interface... " >&6; }
6502if ${lt_cv_nm_interface+:} false; then :
6503  $as_echo_n "(cached) " >&6
6504else
6505  lt_cv_nm_interface="BSD nm"
6506  echo "int some_variable = 0;" > conftest.$ac_ext
6507  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6508  (eval "$ac_compile" 2>conftest.err)
6509  cat conftest.err >&5
6510  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6511  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6512  cat conftest.err >&5
6513  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6514  cat conftest.out >&5
6515  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6516    lt_cv_nm_interface="MS dumpbin"
6517  fi
6518  rm -f conftest*
6519fi
6520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6521$as_echo "$lt_cv_nm_interface" >&6; }
6522
6523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6524$as_echo_n "checking whether ln -s works... " >&6; }
6525LN_S=$as_ln_s
6526if test "$LN_S" = "ln -s"; then
6527  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6528$as_echo "yes" >&6; }
6529else
6530  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6531$as_echo "no, using $LN_S" >&6; }
6532fi
6533
6534# find the maximum length of command line arguments
6535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6536$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6537if ${lt_cv_sys_max_cmd_len+:} false; then :
6538  $as_echo_n "(cached) " >&6
6539else
6540    i=0
6541  teststring=ABCD
6542
6543  case $build_os in
6544  msdosdjgpp*)
6545    # On DJGPP, this test can blow up pretty badly due to problems in libc
6546    # (any single argument exceeding 2000 bytes causes a buffer overrun
6547    # during glob expansion).  Even if it were fixed, the result of this
6548    # check would be larger than it should be.
6549    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6550    ;;
6551
6552  gnu*)
6553    # Under GNU Hurd, this test is not required because there is
6554    # no limit to the length of command line arguments.
6555    # Libtool will interpret -1 as no limit whatsoever
6556    lt_cv_sys_max_cmd_len=-1;
6557    ;;
6558
6559  cygwin* | mingw* | cegcc*)
6560    # On Win9x/ME, this test blows up -- it succeeds, but takes
6561    # about 5 minutes as the teststring grows exponentially.
6562    # Worse, since 9x/ME are not pre-emptively multitasking,
6563    # you end up with a "frozen" computer, even though with patience
6564    # the test eventually succeeds (with a max line length of 256k).
6565    # Instead, let's just punt: use the minimum linelength reported by
6566    # all of the supported platforms: 8192 (on NT/2K/XP).
6567    lt_cv_sys_max_cmd_len=8192;
6568    ;;
6569
6570  mint*)
6571    # On MiNT this can take a long time and run out of memory.
6572    lt_cv_sys_max_cmd_len=8192;
6573    ;;
6574
6575  amigaos*)
6576    # On AmigaOS with pdksh, this test takes hours, literally.
6577    # So we just punt and use a minimum line length of 8192.
6578    lt_cv_sys_max_cmd_len=8192;
6579    ;;
6580
6581  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
6582    # This has been around since 386BSD, at least.  Likely further.
6583    if test -x /sbin/sysctl; then
6584      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6585    elif test -x /usr/sbin/sysctl; then
6586      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6587    else
6588      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6589    fi
6590    # And add a safety zone
6591    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6592    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6593    ;;
6594
6595  interix*)
6596    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6597    lt_cv_sys_max_cmd_len=196608
6598    ;;
6599
6600  os2*)
6601    # The test takes a long time on OS/2.
6602    lt_cv_sys_max_cmd_len=8192
6603    ;;
6604
6605  osf*)
6606    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6607    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6608    # nice to cause kernel panics so lets avoid the loop below.
6609    # First set a reasonable default.
6610    lt_cv_sys_max_cmd_len=16384
6611    #
6612    if test -x /sbin/sysconfig; then
6613      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6614        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6615      esac
6616    fi
6617    ;;
6618  sco3.2v5*)
6619    lt_cv_sys_max_cmd_len=102400
6620    ;;
6621  sysv5* | sco5v6* | sysv4.2uw2*)
6622    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6623    if test -n "$kargmax"; then
6624      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
6625    else
6626      lt_cv_sys_max_cmd_len=32768
6627    fi
6628    ;;
6629  *)
6630    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6631    if test -n "$lt_cv_sys_max_cmd_len" && \
6632       test undefined != "$lt_cv_sys_max_cmd_len"; then
6633      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6634      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6635    else
6636      # Make teststring a little bigger before we do anything with it.
6637      # a 1K string should be a reasonable start.
6638      for i in 1 2 3 4 5 6 7 8; do
6639        teststring=$teststring$teststring
6640      done
6641      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6642      # If test is not a shell built-in, we'll probably end up computing a
6643      # maximum length that is only half of the actual maximum length, but
6644      # we can't tell.
6645      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6646	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6647	      test 17 != "$i" # 1/2 MB should be enough
6648      do
6649        i=`expr $i + 1`
6650        teststring=$teststring$teststring
6651      done
6652      # Only check the string length outside the loop.
6653      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6654      teststring=
6655      # Add a significant safety factor because C++ compilers can tack on
6656      # massive amounts of additional arguments before passing them to the
6657      # linker.  It appears as though 1/2 is a usable value.
6658      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6659    fi
6660    ;;
6661  esac
6662
6663fi
6664
6665if test -n "$lt_cv_sys_max_cmd_len"; then
6666  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6667$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6668else
6669  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6670$as_echo "none" >&6; }
6671fi
6672max_cmd_len=$lt_cv_sys_max_cmd_len
6673
6674
6675
6676
6677
6678
6679: ${CP="cp -f"}
6680: ${MV="mv -f"}
6681: ${RM="rm -f"}
6682
6683if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6684  lt_unset=unset
6685else
6686  lt_unset=false
6687fi
6688
6689
6690
6691
6692
6693# test EBCDIC or ASCII
6694case `echo X|tr X '\101'` in
6695 A) # ASCII based system
6696    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6697  lt_SP2NL='tr \040 \012'
6698  lt_NL2SP='tr \015\012 \040\040'
6699  ;;
6700 *) # EBCDIC based system
6701  lt_SP2NL='tr \100 \n'
6702  lt_NL2SP='tr \r\n \100\100'
6703  ;;
6704esac
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6715$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6716if ${lt_cv_to_host_file_cmd+:} false; then :
6717  $as_echo_n "(cached) " >&6
6718else
6719  case $host in
6720  *-*-mingw* )
6721    case $build in
6722      *-*-mingw* ) # actually msys
6723        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6724        ;;
6725      *-*-cygwin* )
6726        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6727        ;;
6728      * ) # otherwise, assume *nix
6729        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6730        ;;
6731    esac
6732    ;;
6733  *-*-cygwin* )
6734    case $build in
6735      *-*-mingw* ) # actually msys
6736        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6737        ;;
6738      *-*-cygwin* )
6739        lt_cv_to_host_file_cmd=func_convert_file_noop
6740        ;;
6741      * ) # otherwise, assume *nix
6742        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6743        ;;
6744    esac
6745    ;;
6746  * ) # unhandled hosts (and "normal" native builds)
6747    lt_cv_to_host_file_cmd=func_convert_file_noop
6748    ;;
6749esac
6750
6751fi
6752
6753to_host_file_cmd=$lt_cv_to_host_file_cmd
6754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6755$as_echo "$lt_cv_to_host_file_cmd" >&6; }
6756
6757
6758
6759
6760
6761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6762$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6763if ${lt_cv_to_tool_file_cmd+:} false; then :
6764  $as_echo_n "(cached) " >&6
6765else
6766  #assume ordinary cross tools, or native build.
6767lt_cv_to_tool_file_cmd=func_convert_file_noop
6768case $host in
6769  *-*-mingw* )
6770    case $build in
6771      *-*-mingw* ) # actually msys
6772        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6773        ;;
6774    esac
6775    ;;
6776esac
6777
6778fi
6779
6780to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6782$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6783
6784
6785
6786
6787
6788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6789$as_echo_n "checking for $LD option to reload object files... " >&6; }
6790if ${lt_cv_ld_reload_flag+:} false; then :
6791  $as_echo_n "(cached) " >&6
6792else
6793  lt_cv_ld_reload_flag='-r'
6794fi
6795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6796$as_echo "$lt_cv_ld_reload_flag" >&6; }
6797reload_flag=$lt_cv_ld_reload_flag
6798case $reload_flag in
6799"" | " "*) ;;
6800*) reload_flag=" $reload_flag" ;;
6801esac
6802reload_cmds='$LD$reload_flag -o $output$reload_objs'
6803case $host_os in
6804  cygwin* | mingw* | pw32* | cegcc*)
6805    if test yes != "$GCC"; then
6806      reload_cmds=false
6807    fi
6808    ;;
6809  darwin*)
6810    if test yes = "$GCC"; then
6811      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6812    else
6813      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6814    fi
6815    ;;
6816esac
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826if test -n "$ac_tool_prefix"; then
6827  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6828set dummy ${ac_tool_prefix}objdump; ac_word=$2
6829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6830$as_echo_n "checking for $ac_word... " >&6; }
6831if ${ac_cv_prog_OBJDUMP+:} false; then :
6832  $as_echo_n "(cached) " >&6
6833else
6834  if test -n "$OBJDUMP"; then
6835  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6836else
6837as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6838for as_dir in $PATH
6839do
6840  IFS=$as_save_IFS
6841  test -z "$as_dir" && as_dir=.
6842    for ac_exec_ext in '' $ac_executable_extensions; do
6843  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6844    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6845    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6846    break 2
6847  fi
6848done
6849  done
6850IFS=$as_save_IFS
6851
6852fi
6853fi
6854OBJDUMP=$ac_cv_prog_OBJDUMP
6855if test -n "$OBJDUMP"; then
6856  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6857$as_echo "$OBJDUMP" >&6; }
6858else
6859  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6860$as_echo "no" >&6; }
6861fi
6862
6863
6864fi
6865if test -z "$ac_cv_prog_OBJDUMP"; then
6866  ac_ct_OBJDUMP=$OBJDUMP
6867  # Extract the first word of "objdump", so it can be a program name with args.
6868set dummy objdump; ac_word=$2
6869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6870$as_echo_n "checking for $ac_word... " >&6; }
6871if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6872  $as_echo_n "(cached) " >&6
6873else
6874  if test -n "$ac_ct_OBJDUMP"; then
6875  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6876else
6877as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6878for as_dir in $PATH
6879do
6880  IFS=$as_save_IFS
6881  test -z "$as_dir" && as_dir=.
6882    for ac_exec_ext in '' $ac_executable_extensions; do
6883  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6884    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6885    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6886    break 2
6887  fi
6888done
6889  done
6890IFS=$as_save_IFS
6891
6892fi
6893fi
6894ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6895if test -n "$ac_ct_OBJDUMP"; then
6896  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6897$as_echo "$ac_ct_OBJDUMP" >&6; }
6898else
6899  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6900$as_echo "no" >&6; }
6901fi
6902
6903  if test "x$ac_ct_OBJDUMP" = x; then
6904    OBJDUMP="false"
6905  else
6906    case $cross_compiling:$ac_tool_warned in
6907yes:)
6908{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6909$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6910ac_tool_warned=yes ;;
6911esac
6912    OBJDUMP=$ac_ct_OBJDUMP
6913  fi
6914else
6915  OBJDUMP="$ac_cv_prog_OBJDUMP"
6916fi
6917
6918test -z "$OBJDUMP" && OBJDUMP=objdump
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6929$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6930if ${lt_cv_deplibs_check_method+:} false; then :
6931  $as_echo_n "(cached) " >&6
6932else
6933  lt_cv_file_magic_cmd='$MAGIC_CMD'
6934lt_cv_file_magic_test_file=
6935lt_cv_deplibs_check_method='unknown'
6936# Need to set the preceding variable on all platforms that support
6937# interlibrary dependencies.
6938# 'none' -- dependencies not supported.
6939# 'unknown' -- same as none, but documents that we really don't know.
6940# 'pass_all' -- all dependencies passed with no checks.
6941# 'test_compile' -- check by making test program.
6942# 'file_magic [[regex]]' -- check by looking for files in library path
6943# that responds to the $file_magic_cmd with a given extended regex.
6944# If you have 'file' or equivalent on your system and you're not sure
6945# whether 'pass_all' will *always* work, you probably want this one.
6946
6947case $host_os in
6948aix[4-9]*)
6949  lt_cv_deplibs_check_method=pass_all
6950  ;;
6951
6952beos*)
6953  lt_cv_deplibs_check_method=pass_all
6954  ;;
6955
6956bsdi[45]*)
6957  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6958  lt_cv_file_magic_cmd='/usr/bin/file -L'
6959  lt_cv_file_magic_test_file=/shlib/libc.so
6960  ;;
6961
6962cygwin*)
6963  # func_win32_libid is a shell function defined in ltmain.sh
6964  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6965  lt_cv_file_magic_cmd='func_win32_libid'
6966  ;;
6967
6968mingw* | pw32*)
6969  # Base MSYS/MinGW do not provide the 'file' command needed by
6970  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6971  # unless we find 'file', for example because we are cross-compiling.
6972  if ( file / ) >/dev/null 2>&1; then
6973    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6974    lt_cv_file_magic_cmd='func_win32_libid'
6975  else
6976    # Keep this pattern in sync with the one in func_win32_libid.
6977    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6978    lt_cv_file_magic_cmd='$OBJDUMP -f'
6979  fi
6980  ;;
6981
6982cegcc*)
6983  # use the weaker test based on 'objdump'. See mingw*.
6984  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6985  lt_cv_file_magic_cmd='$OBJDUMP -f'
6986  ;;
6987
6988darwin* | rhapsody*)
6989  lt_cv_deplibs_check_method=pass_all
6990  ;;
6991
6992freebsd* | dragonfly*)
6993  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6994    case $host_cpu in
6995    i*86 )
6996      # Not sure whether the presence of OpenBSD here was a mistake.
6997      # Let's accept both of them until this is cleared up.
6998      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6999      lt_cv_file_magic_cmd=/usr/bin/file
7000      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7001      ;;
7002    esac
7003  else
7004    lt_cv_deplibs_check_method=pass_all
7005  fi
7006  ;;
7007
7008haiku*)
7009  lt_cv_deplibs_check_method=pass_all
7010  ;;
7011
7012hpux10.20* | hpux11*)
7013  lt_cv_file_magic_cmd=/usr/bin/file
7014  case $host_cpu in
7015  ia64*)
7016    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7017    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7018    ;;
7019  hppa*64*)
7020    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
7021    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7022    ;;
7023  *)
7024    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7025    lt_cv_file_magic_test_file=/usr/lib/libc.sl
7026    ;;
7027  esac
7028  ;;
7029
7030interix[3-9]*)
7031  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7032  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7033  ;;
7034
7035irix5* | irix6* | nonstopux*)
7036  case $LD in
7037  *-32|*"-32 ") libmagic=32-bit;;
7038  *-n32|*"-n32 ") libmagic=N32;;
7039  *-64|*"-64 ") libmagic=64-bit;;
7040  *) libmagic=never-match;;
7041  esac
7042  lt_cv_deplibs_check_method=pass_all
7043  ;;
7044
7045# This must be glibc/ELF.
7046linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7047  lt_cv_deplibs_check_method=pass_all
7048  ;;
7049
7050netbsd*)
7051  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7052    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7053  else
7054    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7055  fi
7056  ;;
7057
7058newos6*)
7059  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7060  lt_cv_file_magic_cmd=/usr/bin/file
7061  lt_cv_file_magic_test_file=/usr/lib/libnls.so
7062  ;;
7063
7064*nto* | *qnx*)
7065  lt_cv_deplibs_check_method=pass_all
7066  ;;
7067
7068openbsd* | bitrig*)
7069  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
7070    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7071  else
7072    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7073  fi
7074  ;;
7075
7076osf3* | osf4* | osf5*)
7077  lt_cv_deplibs_check_method=pass_all
7078  ;;
7079
7080rdos*)
7081  lt_cv_deplibs_check_method=pass_all
7082  ;;
7083
7084solaris*)
7085  lt_cv_deplibs_check_method=pass_all
7086  ;;
7087
7088sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7089  lt_cv_deplibs_check_method=pass_all
7090  ;;
7091
7092sysv4 | sysv4.3*)
7093  case $host_vendor in
7094  motorola)
7095    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]'
7096    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7097    ;;
7098  ncr)
7099    lt_cv_deplibs_check_method=pass_all
7100    ;;
7101  sequent)
7102    lt_cv_file_magic_cmd='/bin/file'
7103    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7104    ;;
7105  sni)
7106    lt_cv_file_magic_cmd='/bin/file'
7107    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7108    lt_cv_file_magic_test_file=/lib/libc.so
7109    ;;
7110  siemens)
7111    lt_cv_deplibs_check_method=pass_all
7112    ;;
7113  pc)
7114    lt_cv_deplibs_check_method=pass_all
7115    ;;
7116  esac
7117  ;;
7118
7119tpf*)
7120  lt_cv_deplibs_check_method=pass_all
7121  ;;
7122os2*)
7123  lt_cv_deplibs_check_method=pass_all
7124  ;;
7125esac
7126
7127fi
7128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7129$as_echo "$lt_cv_deplibs_check_method" >&6; }
7130
7131file_magic_glob=
7132want_nocaseglob=no
7133if test "$build" = "$host"; then
7134  case $host_os in
7135  mingw* | pw32*)
7136    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7137      want_nocaseglob=yes
7138    else
7139      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7140    fi
7141    ;;
7142  esac
7143fi
7144
7145file_magic_cmd=$lt_cv_file_magic_cmd
7146deplibs_check_method=$lt_cv_deplibs_check_method
7147test -z "$deplibs_check_method" && deplibs_check_method=unknown
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168
7169
7170if test -n "$ac_tool_prefix"; then
7171  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7172set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7174$as_echo_n "checking for $ac_word... " >&6; }
7175if ${ac_cv_prog_DLLTOOL+:} false; then :
7176  $as_echo_n "(cached) " >&6
7177else
7178  if test -n "$DLLTOOL"; then
7179  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7180else
7181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7182for as_dir in $PATH
7183do
7184  IFS=$as_save_IFS
7185  test -z "$as_dir" && as_dir=.
7186    for ac_exec_ext in '' $ac_executable_extensions; do
7187  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7188    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7189    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7190    break 2
7191  fi
7192done
7193  done
7194IFS=$as_save_IFS
7195
7196fi
7197fi
7198DLLTOOL=$ac_cv_prog_DLLTOOL
7199if test -n "$DLLTOOL"; then
7200  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7201$as_echo "$DLLTOOL" >&6; }
7202else
7203  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7204$as_echo "no" >&6; }
7205fi
7206
7207
7208fi
7209if test -z "$ac_cv_prog_DLLTOOL"; then
7210  ac_ct_DLLTOOL=$DLLTOOL
7211  # Extract the first word of "dlltool", so it can be a program name with args.
7212set dummy dlltool; ac_word=$2
7213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7214$as_echo_n "checking for $ac_word... " >&6; }
7215if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7216  $as_echo_n "(cached) " >&6
7217else
7218  if test -n "$ac_ct_DLLTOOL"; then
7219  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7220else
7221as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7222for as_dir in $PATH
7223do
7224  IFS=$as_save_IFS
7225  test -z "$as_dir" && as_dir=.
7226    for ac_exec_ext in '' $ac_executable_extensions; do
7227  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7228    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7229    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7230    break 2
7231  fi
7232done
7233  done
7234IFS=$as_save_IFS
7235
7236fi
7237fi
7238ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7239if test -n "$ac_ct_DLLTOOL"; then
7240  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7241$as_echo "$ac_ct_DLLTOOL" >&6; }
7242else
7243  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7244$as_echo "no" >&6; }
7245fi
7246
7247  if test "x$ac_ct_DLLTOOL" = x; then
7248    DLLTOOL="false"
7249  else
7250    case $cross_compiling:$ac_tool_warned in
7251yes:)
7252{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7253$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7254ac_tool_warned=yes ;;
7255esac
7256    DLLTOOL=$ac_ct_DLLTOOL
7257  fi
7258else
7259  DLLTOOL="$ac_cv_prog_DLLTOOL"
7260fi
7261
7262test -z "$DLLTOOL" && DLLTOOL=dlltool
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272
7273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7274$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7275if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7276  $as_echo_n "(cached) " >&6
7277else
7278  lt_cv_sharedlib_from_linklib_cmd='unknown'
7279
7280case $host_os in
7281cygwin* | mingw* | pw32* | cegcc*)
7282  # two different shell functions defined in ltmain.sh;
7283  # decide which one to use based on capabilities of $DLLTOOL
7284  case `$DLLTOOL --help 2>&1` in
7285  *--identify-strict*)
7286    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7287    ;;
7288  *)
7289    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7290    ;;
7291  esac
7292  ;;
7293*)
7294  # fallback: assume linklib IS sharedlib
7295  lt_cv_sharedlib_from_linklib_cmd=$ECHO
7296  ;;
7297esac
7298
7299fi
7300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7301$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7302sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7303test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7304
7305
7306
7307
7308
7309
7310
7311
7312if test -n "$ac_tool_prefix"; then
7313  for ac_prog in ar
7314  do
7315    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7316set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7318$as_echo_n "checking for $ac_word... " >&6; }
7319if ${ac_cv_prog_AR+:} false; then :
7320  $as_echo_n "(cached) " >&6
7321else
7322  if test -n "$AR"; then
7323  ac_cv_prog_AR="$AR" # Let the user override the test.
7324else
7325as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7326for as_dir in $PATH
7327do
7328  IFS=$as_save_IFS
7329  test -z "$as_dir" && as_dir=.
7330    for ac_exec_ext in '' $ac_executable_extensions; do
7331  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7332    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7333    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7334    break 2
7335  fi
7336done
7337  done
7338IFS=$as_save_IFS
7339
7340fi
7341fi
7342AR=$ac_cv_prog_AR
7343if test -n "$AR"; then
7344  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7345$as_echo "$AR" >&6; }
7346else
7347  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7348$as_echo "no" >&6; }
7349fi
7350
7351
7352    test -n "$AR" && break
7353  done
7354fi
7355if test -z "$AR"; then
7356  ac_ct_AR=$AR
7357  for ac_prog in ar
7358do
7359  # Extract the first word of "$ac_prog", so it can be a program name with args.
7360set dummy $ac_prog; ac_word=$2
7361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7362$as_echo_n "checking for $ac_word... " >&6; }
7363if ${ac_cv_prog_ac_ct_AR+:} false; then :
7364  $as_echo_n "(cached) " >&6
7365else
7366  if test -n "$ac_ct_AR"; then
7367  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7368else
7369as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7370for as_dir in $PATH
7371do
7372  IFS=$as_save_IFS
7373  test -z "$as_dir" && as_dir=.
7374    for ac_exec_ext in '' $ac_executable_extensions; do
7375  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7376    ac_cv_prog_ac_ct_AR="$ac_prog"
7377    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7378    break 2
7379  fi
7380done
7381  done
7382IFS=$as_save_IFS
7383
7384fi
7385fi
7386ac_ct_AR=$ac_cv_prog_ac_ct_AR
7387if test -n "$ac_ct_AR"; then
7388  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7389$as_echo "$ac_ct_AR" >&6; }
7390else
7391  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7392$as_echo "no" >&6; }
7393fi
7394
7395
7396  test -n "$ac_ct_AR" && break
7397done
7398
7399  if test "x$ac_ct_AR" = x; then
7400    AR="false"
7401  else
7402    case $cross_compiling:$ac_tool_warned in
7403yes:)
7404{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7405$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7406ac_tool_warned=yes ;;
7407esac
7408    AR=$ac_ct_AR
7409  fi
7410fi
7411
7412: ${AR=ar}
7413: ${AR_FLAGS=cru}
7414
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7426$as_echo_n "checking for archiver @FILE support... " >&6; }
7427if ${lt_cv_ar_at_file+:} false; then :
7428  $as_echo_n "(cached) " >&6
7429else
7430  lt_cv_ar_at_file=no
7431   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7432/* end confdefs.h.  */
7433
7434int
7435main ()
7436{
7437
7438  ;
7439  return 0;
7440}
7441_ACEOF
7442if ac_fn_c_try_compile "$LINENO"; then :
7443  echo conftest.$ac_objext > conftest.lst
7444      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7445      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7446  (eval $lt_ar_try) 2>&5
7447  ac_status=$?
7448  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7449  test $ac_status = 0; }
7450      if test 0 -eq "$ac_status"; then
7451	# Ensure the archiver fails upon bogus file names.
7452	rm -f conftest.$ac_objext libconftest.a
7453	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7454  (eval $lt_ar_try) 2>&5
7455  ac_status=$?
7456  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7457  test $ac_status = 0; }
7458	if test 0 -ne "$ac_status"; then
7459          lt_cv_ar_at_file=@
7460        fi
7461      fi
7462      rm -f conftest.* libconftest.a
7463
7464fi
7465rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7466
7467fi
7468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7469$as_echo "$lt_cv_ar_at_file" >&6; }
7470
7471if test no = "$lt_cv_ar_at_file"; then
7472  archiver_list_spec=
7473else
7474  archiver_list_spec=$lt_cv_ar_at_file
7475fi
7476
7477
7478
7479
7480
7481
7482
7483if test -n "$ac_tool_prefix"; then
7484  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7485set dummy ${ac_tool_prefix}strip; ac_word=$2
7486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7487$as_echo_n "checking for $ac_word... " >&6; }
7488if ${ac_cv_prog_STRIP+:} false; then :
7489  $as_echo_n "(cached) " >&6
7490else
7491  if test -n "$STRIP"; then
7492  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7493else
7494as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7495for as_dir in $PATH
7496do
7497  IFS=$as_save_IFS
7498  test -z "$as_dir" && as_dir=.
7499    for ac_exec_ext in '' $ac_executable_extensions; do
7500  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7501    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7502    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7503    break 2
7504  fi
7505done
7506  done
7507IFS=$as_save_IFS
7508
7509fi
7510fi
7511STRIP=$ac_cv_prog_STRIP
7512if test -n "$STRIP"; then
7513  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7514$as_echo "$STRIP" >&6; }
7515else
7516  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7517$as_echo "no" >&6; }
7518fi
7519
7520
7521fi
7522if test -z "$ac_cv_prog_STRIP"; then
7523  ac_ct_STRIP=$STRIP
7524  # Extract the first word of "strip", so it can be a program name with args.
7525set dummy strip; ac_word=$2
7526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7527$as_echo_n "checking for $ac_word... " >&6; }
7528if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7529  $as_echo_n "(cached) " >&6
7530else
7531  if test -n "$ac_ct_STRIP"; then
7532  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7533else
7534as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7535for as_dir in $PATH
7536do
7537  IFS=$as_save_IFS
7538  test -z "$as_dir" && as_dir=.
7539    for ac_exec_ext in '' $ac_executable_extensions; do
7540  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7541    ac_cv_prog_ac_ct_STRIP="strip"
7542    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7543    break 2
7544  fi
7545done
7546  done
7547IFS=$as_save_IFS
7548
7549fi
7550fi
7551ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7552if test -n "$ac_ct_STRIP"; then
7553  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7554$as_echo "$ac_ct_STRIP" >&6; }
7555else
7556  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7557$as_echo "no" >&6; }
7558fi
7559
7560  if test "x$ac_ct_STRIP" = x; then
7561    STRIP=":"
7562  else
7563    case $cross_compiling:$ac_tool_warned in
7564yes:)
7565{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7566$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7567ac_tool_warned=yes ;;
7568esac
7569    STRIP=$ac_ct_STRIP
7570  fi
7571else
7572  STRIP="$ac_cv_prog_STRIP"
7573fi
7574
7575test -z "$STRIP" && STRIP=:
7576
7577
7578
7579
7580
7581
7582if test -n "$ac_tool_prefix"; then
7583  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7584set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7586$as_echo_n "checking for $ac_word... " >&6; }
7587if ${ac_cv_prog_RANLIB+:} false; then :
7588  $as_echo_n "(cached) " >&6
7589else
7590  if test -n "$RANLIB"; then
7591  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7592else
7593as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7594for as_dir in $PATH
7595do
7596  IFS=$as_save_IFS
7597  test -z "$as_dir" && as_dir=.
7598    for ac_exec_ext in '' $ac_executable_extensions; do
7599  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7600    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7601    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7602    break 2
7603  fi
7604done
7605  done
7606IFS=$as_save_IFS
7607
7608fi
7609fi
7610RANLIB=$ac_cv_prog_RANLIB
7611if test -n "$RANLIB"; then
7612  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7613$as_echo "$RANLIB" >&6; }
7614else
7615  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7616$as_echo "no" >&6; }
7617fi
7618
7619
7620fi
7621if test -z "$ac_cv_prog_RANLIB"; then
7622  ac_ct_RANLIB=$RANLIB
7623  # Extract the first word of "ranlib", so it can be a program name with args.
7624set dummy ranlib; ac_word=$2
7625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7626$as_echo_n "checking for $ac_word... " >&6; }
7627if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7628  $as_echo_n "(cached) " >&6
7629else
7630  if test -n "$ac_ct_RANLIB"; then
7631  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7632else
7633as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7634for as_dir in $PATH
7635do
7636  IFS=$as_save_IFS
7637  test -z "$as_dir" && as_dir=.
7638    for ac_exec_ext in '' $ac_executable_extensions; do
7639  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7640    ac_cv_prog_ac_ct_RANLIB="ranlib"
7641    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7642    break 2
7643  fi
7644done
7645  done
7646IFS=$as_save_IFS
7647
7648fi
7649fi
7650ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7651if test -n "$ac_ct_RANLIB"; then
7652  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7653$as_echo "$ac_ct_RANLIB" >&6; }
7654else
7655  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7656$as_echo "no" >&6; }
7657fi
7658
7659  if test "x$ac_ct_RANLIB" = x; then
7660    RANLIB=":"
7661  else
7662    case $cross_compiling:$ac_tool_warned in
7663yes:)
7664{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7665$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7666ac_tool_warned=yes ;;
7667esac
7668    RANLIB=$ac_ct_RANLIB
7669  fi
7670else
7671  RANLIB="$ac_cv_prog_RANLIB"
7672fi
7673
7674test -z "$RANLIB" && RANLIB=:
7675
7676
7677
7678
7679
7680
7681# Determine commands to create old-style static archives.
7682old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7683old_postinstall_cmds='chmod 644 $oldlib'
7684old_postuninstall_cmds=
7685
7686if test -n "$RANLIB"; then
7687  case $host_os in
7688  bitrig* | openbsd*)
7689    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7690    ;;
7691  *)
7692    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7693    ;;
7694  esac
7695  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7696fi
7697
7698case $host_os in
7699  darwin*)
7700    lock_old_archive_extraction=yes ;;
7701  *)
7702    lock_old_archive_extraction=no ;;
7703esac
7704
7705
7706
7707
7708
7709
7710
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725for ac_prog in gawk mawk nawk awk
7726do
7727  # Extract the first word of "$ac_prog", so it can be a program name with args.
7728set dummy $ac_prog; ac_word=$2
7729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7730$as_echo_n "checking for $ac_word... " >&6; }
7731if ${ac_cv_prog_AWK+:} false; then :
7732  $as_echo_n "(cached) " >&6
7733else
7734  if test -n "$AWK"; then
7735  ac_cv_prog_AWK="$AWK" # Let the user override the test.
7736else
7737as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7738for as_dir in $PATH
7739do
7740  IFS=$as_save_IFS
7741  test -z "$as_dir" && as_dir=.
7742    for ac_exec_ext in '' $ac_executable_extensions; do
7743  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7744    ac_cv_prog_AWK="$ac_prog"
7745    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7746    break 2
7747  fi
7748done
7749  done
7750IFS=$as_save_IFS
7751
7752fi
7753fi
7754AWK=$ac_cv_prog_AWK
7755if test -n "$AWK"; then
7756  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7757$as_echo "$AWK" >&6; }
7758else
7759  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7760$as_echo "no" >&6; }
7761fi
7762
7763
7764  test -n "$AWK" && break
7765done
7766
7767
7768
7769
7770
7771
7772
7773
7774
7775
7776
7777
7778
7779
7780
7781
7782
7783
7784
7785# If no C compiler was specified, use CC.
7786LTCC=${LTCC-"$CC"}
7787
7788# If no C compiler flags were specified, use CFLAGS.
7789LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7790
7791# Allow CC to be a program name with arguments.
7792compiler=$CC
7793
7794
7795# Check for command to grab the raw symbol name followed by C symbol from nm.
7796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7797$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7798if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7799  $as_echo_n "(cached) " >&6
7800else
7801
7802# These are sane defaults that work on at least a few old systems.
7803# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7804
7805# Character class describing NM global symbol codes.
7806symcode='[BCDEGRST]'
7807
7808# Regexp to match symbols that can be accessed directly from C.
7809sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7810
7811# Define system-specific variables.
7812case $host_os in
7813aix*)
7814  symcode='[BCDT]'
7815  ;;
7816cygwin* | mingw* | pw32* | cegcc*)
7817  symcode='[ABCDGISTW]'
7818  ;;
7819hpux*)
7820  if test ia64 = "$host_cpu"; then
7821    symcode='[ABCDEGRST]'
7822  fi
7823  ;;
7824irix* | nonstopux*)
7825  symcode='[BCDEGRST]'
7826  ;;
7827osf*)
7828  symcode='[BCDEGQRST]'
7829  ;;
7830solaris*)
7831  symcode='[BDRT]'
7832  ;;
7833sco3.2v5*)
7834  symcode='[DT]'
7835  ;;
7836sysv4.2uw2*)
7837  symcode='[DT]'
7838  ;;
7839sysv5* | sco5v6* | unixware* | OpenUNIX*)
7840  symcode='[ABDT]'
7841  ;;
7842sysv4)
7843  symcode='[DFNSTU]'
7844  ;;
7845esac
7846
7847# If we're using GNU nm, then use its standard symbol codes.
7848case `$NM -V 2>&1` in
7849*GNU* | *'with BFD'*)
7850  symcode='[ABCDGIRSTW]' ;;
7851esac
7852
7853if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7854  # Gets list of data symbols to import.
7855  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
7856  # Adjust the below global symbol transforms to fixup imported variables.
7857  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7858  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
7859  lt_c_name_lib_hook="\
7860  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
7861  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
7862else
7863  # Disable hooks by default.
7864  lt_cv_sys_global_symbol_to_import=
7865  lt_cdecl_hook=
7866  lt_c_name_hook=
7867  lt_c_name_lib_hook=
7868fi
7869
7870# Transform an extracted symbol line into a proper C declaration.
7871# Some systems (esp. on ia64) link data and code symbols differently,
7872# so use this general approach.
7873lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7874$lt_cdecl_hook\
7875" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7876" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7877
7878# Transform an extracted symbol line into symbol name and symbol address
7879lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7880$lt_c_name_hook\
7881" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7882" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
7883
7884# Transform an extracted symbol line into symbol name with lib prefix and
7885# symbol address.
7886lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7887$lt_c_name_lib_hook\
7888" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7889" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
7890" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
7891
7892# Handle CRLF in mingw tool chain
7893opt_cr=
7894case $build_os in
7895mingw*)
7896  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7897  ;;
7898esac
7899
7900# Try without a prefix underscore, then with it.
7901for ac_symprfx in "" "_"; do
7902
7903  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7904  symxfrm="\\1 $ac_symprfx\\2 \\2"
7905
7906  # Write the raw and C identifiers.
7907  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7908    # Fake it for dumpbin and say T for any non-static function,
7909    # D for any global variable and I for any imported variable.
7910    # Also find C++ and __fastcall symbols from MSVC++,
7911    # which start with @ or ?.
7912    lt_cv_sys_global_symbol_pipe="$AWK '"\
7913"     {last_section=section; section=\$ 3};"\
7914"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7915"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7916"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7917"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7918"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7919"     \$ 0!~/External *\|/{next};"\
7920"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7921"     {if(hide[section]) next};"\
7922"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7923"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7924"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7925"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7926"     ' prfx=^$ac_symprfx"
7927  else
7928    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7929  fi
7930  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7931
7932  # Check to see that the pipe works correctly.
7933  pipe_works=no
7934
7935  rm -f conftest*
7936  cat > conftest.$ac_ext <<_LT_EOF
7937#ifdef __cplusplus
7938extern "C" {
7939#endif
7940char nm_test_var;
7941void nm_test_func(void);
7942void nm_test_func(void){}
7943#ifdef __cplusplus
7944}
7945#endif
7946int main(){nm_test_var='a';nm_test_func();return(0);}
7947_LT_EOF
7948
7949  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7950  (eval $ac_compile) 2>&5
7951  ac_status=$?
7952  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7953  test $ac_status = 0; }; then
7954    # Now try to grab the symbols.
7955    nlist=conftest.nm
7956    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7957  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7958  ac_status=$?
7959  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7960  test $ac_status = 0; } && test -s "$nlist"; then
7961      # Try sorting and uniquifying the output.
7962      if sort "$nlist" | uniq > "$nlist"T; then
7963	mv -f "$nlist"T "$nlist"
7964      else
7965	rm -f "$nlist"T
7966      fi
7967
7968      # Make sure that we snagged all the symbols we need.
7969      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7970	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7971	  cat <<_LT_EOF > conftest.$ac_ext
7972/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7973#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7974/* DATA imports from DLLs on WIN32 can't be const, because runtime
7975   relocations are performed -- see ld's documentation on pseudo-relocs.  */
7976# define LT_DLSYM_CONST
7977#elif defined __osf__
7978/* This system does not cope well with relocations in const data.  */
7979# define LT_DLSYM_CONST
7980#else
7981# define LT_DLSYM_CONST const
7982#endif
7983
7984#ifdef __cplusplus
7985extern "C" {
7986#endif
7987
7988_LT_EOF
7989	  # Now generate the symbol file.
7990	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7991
7992	  cat <<_LT_EOF >> conftest.$ac_ext
7993
7994/* The mapping between symbol names and symbols.  */
7995LT_DLSYM_CONST struct {
7996  const char *name;
7997  void       *address;
7998}
7999lt__PROGRAM__LTX_preloaded_symbols[] =
8000{
8001  { "@PROGRAM@", (void *) 0 },
8002_LT_EOF
8003	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8004	  cat <<\_LT_EOF >> conftest.$ac_ext
8005  {0, (void *) 0}
8006};
8007
8008/* This works around a problem in FreeBSD linker */
8009#ifdef FREEBSD_WORKAROUND
8010static const void *lt_preloaded_setup() {
8011  return lt__PROGRAM__LTX_preloaded_symbols;
8012}
8013#endif
8014
8015#ifdef __cplusplus
8016}
8017#endif
8018_LT_EOF
8019	  # Now try linking the two files.
8020	  mv conftest.$ac_objext conftstm.$ac_objext
8021	  lt_globsym_save_LIBS=$LIBS
8022	  lt_globsym_save_CFLAGS=$CFLAGS
8023	  LIBS=conftstm.$ac_objext
8024	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8025	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8026  (eval $ac_link) 2>&5
8027  ac_status=$?
8028  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8029  test $ac_status = 0; } && test -s conftest$ac_exeext; then
8030	    pipe_works=yes
8031	  fi
8032	  LIBS=$lt_globsym_save_LIBS
8033	  CFLAGS=$lt_globsym_save_CFLAGS
8034	else
8035	  echo "cannot find nm_test_func in $nlist" >&5
8036	fi
8037      else
8038	echo "cannot find nm_test_var in $nlist" >&5
8039      fi
8040    else
8041      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8042    fi
8043  else
8044    echo "$progname: failed program was:" >&5
8045    cat conftest.$ac_ext >&5
8046  fi
8047  rm -rf conftest* conftst*
8048
8049  # Do not use the global_symbol_pipe unless it works.
8050  if test yes = "$pipe_works"; then
8051    break
8052  else
8053    lt_cv_sys_global_symbol_pipe=
8054  fi
8055done
8056
8057fi
8058
8059if test -z "$lt_cv_sys_global_symbol_pipe"; then
8060  lt_cv_sys_global_symbol_to_cdecl=
8061fi
8062if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8063  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8064$as_echo "failed" >&6; }
8065else
8066  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8067$as_echo "ok" >&6; }
8068fi
8069
8070# Response file support.
8071if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8072  nm_file_list_spec='@'
8073elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8074  nm_file_list_spec='@'
8075fi
8076
8077
8078
8079
8080
8081
8082
8083
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096
8097
8098
8099
8100
8101
8102
8103
8104
8105
8106
8107
8108
8109
8110
8111
8112
8113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8114$as_echo_n "checking for sysroot... " >&6; }
8115
8116# Check whether --with-sysroot was given.
8117if test "${with_sysroot+set}" = set; then :
8118  withval=$with_sysroot;
8119else
8120  with_sysroot=no
8121fi
8122
8123
8124lt_sysroot=
8125case $with_sysroot in #(
8126 yes)
8127   if test yes = "$GCC"; then
8128     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8129   fi
8130   ;; #(
8131 /*)
8132   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8133   ;; #(
8134 no|'')
8135   ;; #(
8136 *)
8137   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
8138$as_echo "$with_sysroot" >&6; }
8139   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8140   ;;
8141esac
8142
8143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8144$as_echo "${lt_sysroot:-no}" >&6; }
8145
8146
8147
8148
8149
8150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
8151$as_echo_n "checking for a working dd... " >&6; }
8152if ${ac_cv_path_lt_DD+:} false; then :
8153  $as_echo_n "(cached) " >&6
8154else
8155  printf 0123456789abcdef0123456789abcdef >conftest.i
8156cat conftest.i conftest.i >conftest2.i
8157: ${lt_DD:=$DD}
8158if test -z "$lt_DD"; then
8159  ac_path_lt_DD_found=false
8160  # Loop through the user's path and test for each of PROGNAME-LIST
8161  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8162for as_dir in $PATH
8163do
8164  IFS=$as_save_IFS
8165  test -z "$as_dir" && as_dir=.
8166    for ac_prog in dd; do
8167    for ac_exec_ext in '' $ac_executable_extensions; do
8168      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
8169      as_fn_executable_p "$ac_path_lt_DD" || continue
8170if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8171  cmp -s conftest.i conftest.out \
8172  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
8173fi
8174      $ac_path_lt_DD_found && break 3
8175    done
8176  done
8177  done
8178IFS=$as_save_IFS
8179  if test -z "$ac_cv_path_lt_DD"; then
8180    :
8181  fi
8182else
8183  ac_cv_path_lt_DD=$lt_DD
8184fi
8185
8186rm -f conftest.i conftest2.i conftest.out
8187fi
8188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
8189$as_echo "$ac_cv_path_lt_DD" >&6; }
8190
8191
8192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
8193$as_echo_n "checking how to truncate binary pipes... " >&6; }
8194if ${lt_cv_truncate_bin+:} false; then :
8195  $as_echo_n "(cached) " >&6
8196else
8197  printf 0123456789abcdef0123456789abcdef >conftest.i
8198cat conftest.i conftest.i >conftest2.i
8199lt_cv_truncate_bin=
8200if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8201  cmp -s conftest.i conftest.out \
8202  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
8203fi
8204rm -f conftest.i conftest2.i conftest.out
8205test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
8206fi
8207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
8208$as_echo "$lt_cv_truncate_bin" >&6; }
8209
8210
8211
8212
8213
8214
8215
8216# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
8217func_cc_basename ()
8218{
8219    for cc_temp in $*""; do
8220      case $cc_temp in
8221        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8222        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8223        \-*) ;;
8224        *) break;;
8225      esac
8226    done
8227    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8228}
8229
8230# Check whether --enable-libtool-lock was given.
8231if test "${enable_libtool_lock+set}" = set; then :
8232  enableval=$enable_libtool_lock;
8233fi
8234
8235test no = "$enable_libtool_lock" || enable_libtool_lock=yes
8236
8237# Some flags need to be propagated to the compiler or linker for good
8238# libtool support.
8239case $host in
8240ia64-*-hpux*)
8241  # Find out what ABI is being produced by ac_compile, and set mode
8242  # options accordingly.
8243  echo 'int i;' > conftest.$ac_ext
8244  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8245  (eval $ac_compile) 2>&5
8246  ac_status=$?
8247  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8248  test $ac_status = 0; }; then
8249    case `/usr/bin/file conftest.$ac_objext` in
8250      *ELF-32*)
8251	HPUX_IA64_MODE=32
8252	;;
8253      *ELF-64*)
8254	HPUX_IA64_MODE=64
8255	;;
8256    esac
8257  fi
8258  rm -rf conftest*
8259  ;;
8260*-*-irix6*)
8261  # Find out what ABI is being produced by ac_compile, and set linker
8262  # options accordingly.
8263  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8264  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8265  (eval $ac_compile) 2>&5
8266  ac_status=$?
8267  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8268  test $ac_status = 0; }; then
8269    if test yes = "$lt_cv_prog_gnu_ld"; then
8270      case `/usr/bin/file conftest.$ac_objext` in
8271	*32-bit*)
8272	  LD="${LD-ld} -melf32bsmip"
8273	  ;;
8274	*N32*)
8275	  LD="${LD-ld} -melf32bmipn32"
8276	  ;;
8277	*64-bit*)
8278	  LD="${LD-ld} -melf64bmip"
8279	;;
8280      esac
8281    else
8282      case `/usr/bin/file conftest.$ac_objext` in
8283	*32-bit*)
8284	  LD="${LD-ld} -32"
8285	  ;;
8286	*N32*)
8287	  LD="${LD-ld} -n32"
8288	  ;;
8289	*64-bit*)
8290	  LD="${LD-ld} -64"
8291	  ;;
8292      esac
8293    fi
8294  fi
8295  rm -rf conftest*
8296  ;;
8297
8298mips64*-*linux*)
8299  # Find out what ABI is being produced by ac_compile, and set linker
8300  # options accordingly.
8301  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8302  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8303  (eval $ac_compile) 2>&5
8304  ac_status=$?
8305  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8306  test $ac_status = 0; }; then
8307    emul=elf
8308    case `/usr/bin/file conftest.$ac_objext` in
8309      *32-bit*)
8310	emul="${emul}32"
8311	;;
8312      *64-bit*)
8313	emul="${emul}64"
8314	;;
8315    esac
8316    case `/usr/bin/file conftest.$ac_objext` in
8317      *MSB*)
8318	emul="${emul}btsmip"
8319	;;
8320      *LSB*)
8321	emul="${emul}ltsmip"
8322	;;
8323    esac
8324    case `/usr/bin/file conftest.$ac_objext` in
8325      *N32*)
8326	emul="${emul}n32"
8327	;;
8328    esac
8329    LD="${LD-ld} -m $emul"
8330  fi
8331  rm -rf conftest*
8332  ;;
8333
8334x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8335s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8336  # Find out what ABI is being produced by ac_compile, and set linker
8337  # options accordingly.  Note that the listed cases only cover the
8338  # situations where additional linker options are needed (such as when
8339  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
8340  # vice versa); the common cases where no linker options are needed do
8341  # not appear in the list.
8342  echo 'int i;' > conftest.$ac_ext
8343  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8344  (eval $ac_compile) 2>&5
8345  ac_status=$?
8346  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8347  test $ac_status = 0; }; then
8348    case `/usr/bin/file conftest.o` in
8349      *32-bit*)
8350	case $host in
8351	  x86_64-*kfreebsd*-gnu)
8352	    LD="${LD-ld} -m elf_i386_fbsd"
8353	    ;;
8354	  x86_64-*linux*)
8355	    case `/usr/bin/file conftest.o` in
8356	      *x86-64*)
8357		LD="${LD-ld} -m elf32_x86_64"
8358		;;
8359	      *)
8360		LD="${LD-ld} -m elf_i386"
8361		;;
8362	    esac
8363	    ;;
8364	  powerpc64le-*linux*)
8365	    LD="${LD-ld} -m elf32lppclinux"
8366	    ;;
8367	  powerpc64-*linux*)
8368	    LD="${LD-ld} -m elf32ppclinux"
8369	    ;;
8370	  s390x-*linux*)
8371	    LD="${LD-ld} -m elf_s390"
8372	    ;;
8373	  sparc64-*linux*)
8374	    LD="${LD-ld} -m elf32_sparc"
8375	    ;;
8376	esac
8377	;;
8378      *64-bit*)
8379	case $host in
8380	  x86_64-*kfreebsd*-gnu)
8381	    LD="${LD-ld} -m elf_x86_64_fbsd"
8382	    ;;
8383	  x86_64-*linux*)
8384	    LD="${LD-ld} -m elf_x86_64"
8385	    ;;
8386	  powerpcle-*linux*)
8387	    LD="${LD-ld} -m elf64lppc"
8388	    ;;
8389	  powerpc-*linux*)
8390	    LD="${LD-ld} -m elf64ppc"
8391	    ;;
8392	  s390*-*linux*|s390*-*tpf*)
8393	    LD="${LD-ld} -m elf64_s390"
8394	    ;;
8395	  sparc*-*linux*)
8396	    LD="${LD-ld} -m elf64_sparc"
8397	    ;;
8398	esac
8399	;;
8400    esac
8401  fi
8402  rm -rf conftest*
8403  ;;
8404
8405*-*-sco3.2v5*)
8406  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8407  SAVE_CFLAGS=$CFLAGS
8408  CFLAGS="$CFLAGS -belf"
8409  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8410$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8411if ${lt_cv_cc_needs_belf+:} false; then :
8412  $as_echo_n "(cached) " >&6
8413else
8414  ac_ext=c
8415ac_cpp='$CPP $CPPFLAGS'
8416ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8417ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8418ac_compiler_gnu=$ac_cv_c_compiler_gnu
8419
8420     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8421/* end confdefs.h.  */
8422
8423int
8424main ()
8425{
8426
8427  ;
8428  return 0;
8429}
8430_ACEOF
8431if ac_fn_c_try_link "$LINENO"; then :
8432  lt_cv_cc_needs_belf=yes
8433else
8434  lt_cv_cc_needs_belf=no
8435fi
8436rm -f core conftest.err conftest.$ac_objext \
8437    conftest$ac_exeext conftest.$ac_ext
8438     ac_ext=c
8439ac_cpp='$CPP $CPPFLAGS'
8440ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8441ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8442ac_compiler_gnu=$ac_cv_c_compiler_gnu
8443
8444fi
8445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8446$as_echo "$lt_cv_cc_needs_belf" >&6; }
8447  if test yes != "$lt_cv_cc_needs_belf"; then
8448    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8449    CFLAGS=$SAVE_CFLAGS
8450  fi
8451  ;;
8452*-*solaris*)
8453  # Find out what ABI is being produced by ac_compile, and set linker
8454  # options accordingly.
8455  echo 'int i;' > conftest.$ac_ext
8456  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8457  (eval $ac_compile) 2>&5
8458  ac_status=$?
8459  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8460  test $ac_status = 0; }; then
8461    case `/usr/bin/file conftest.o` in
8462    *64-bit*)
8463      case $lt_cv_prog_gnu_ld in
8464      yes*)
8465        case $host in
8466        i?86-*-solaris*|x86_64-*-solaris*)
8467          LD="${LD-ld} -m elf_x86_64"
8468          ;;
8469        sparc*-*-solaris*)
8470          LD="${LD-ld} -m elf64_sparc"
8471          ;;
8472        esac
8473        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
8474        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8475          LD=${LD-ld}_sol2
8476        fi
8477        ;;
8478      *)
8479	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8480	  LD="${LD-ld} -64"
8481	fi
8482	;;
8483      esac
8484      ;;
8485    esac
8486  fi
8487  rm -rf conftest*
8488  ;;
8489esac
8490
8491need_locks=$enable_libtool_lock
8492
8493if test -n "$ac_tool_prefix"; then
8494  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8495set dummy ${ac_tool_prefix}mt; ac_word=$2
8496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8497$as_echo_n "checking for $ac_word... " >&6; }
8498if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8499  $as_echo_n "(cached) " >&6
8500else
8501  if test -n "$MANIFEST_TOOL"; then
8502  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8503else
8504as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8505for as_dir in $PATH
8506do
8507  IFS=$as_save_IFS
8508  test -z "$as_dir" && as_dir=.
8509    for ac_exec_ext in '' $ac_executable_extensions; do
8510  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8511    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8512    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8513    break 2
8514  fi
8515done
8516  done
8517IFS=$as_save_IFS
8518
8519fi
8520fi
8521MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8522if test -n "$MANIFEST_TOOL"; then
8523  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8524$as_echo "$MANIFEST_TOOL" >&6; }
8525else
8526  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8527$as_echo "no" >&6; }
8528fi
8529
8530
8531fi
8532if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8533  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8534  # Extract the first word of "mt", so it can be a program name with args.
8535set dummy mt; ac_word=$2
8536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8537$as_echo_n "checking for $ac_word... " >&6; }
8538if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8539  $as_echo_n "(cached) " >&6
8540else
8541  if test -n "$ac_ct_MANIFEST_TOOL"; then
8542  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8543else
8544as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8545for as_dir in $PATH
8546do
8547  IFS=$as_save_IFS
8548  test -z "$as_dir" && as_dir=.
8549    for ac_exec_ext in '' $ac_executable_extensions; do
8550  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8551    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8552    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8553    break 2
8554  fi
8555done
8556  done
8557IFS=$as_save_IFS
8558
8559fi
8560fi
8561ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8562if test -n "$ac_ct_MANIFEST_TOOL"; then
8563  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8564$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8565else
8566  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8567$as_echo "no" >&6; }
8568fi
8569
8570  if test "x$ac_ct_MANIFEST_TOOL" = x; then
8571    MANIFEST_TOOL=":"
8572  else
8573    case $cross_compiling:$ac_tool_warned in
8574yes:)
8575{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8576$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8577ac_tool_warned=yes ;;
8578esac
8579    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8580  fi
8581else
8582  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8583fi
8584
8585test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8587$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8588if ${lt_cv_path_mainfest_tool+:} false; then :
8589  $as_echo_n "(cached) " >&6
8590else
8591  lt_cv_path_mainfest_tool=no
8592  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8593  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8594  cat conftest.err >&5
8595  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8596    lt_cv_path_mainfest_tool=yes
8597  fi
8598  rm -f conftest*
8599fi
8600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8601$as_echo "$lt_cv_path_mainfest_tool" >&6; }
8602if test yes != "$lt_cv_path_mainfest_tool"; then
8603  MANIFEST_TOOL=:
8604fi
8605
8606
8607
8608
8609
8610
8611  case $host_os in
8612    rhapsody* | darwin*)
8613    if test -n "$ac_tool_prefix"; then
8614  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8615set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8617$as_echo_n "checking for $ac_word... " >&6; }
8618if ${ac_cv_prog_DSYMUTIL+:} false; then :
8619  $as_echo_n "(cached) " >&6
8620else
8621  if test -n "$DSYMUTIL"; then
8622  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8623else
8624as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8625for as_dir in $PATH
8626do
8627  IFS=$as_save_IFS
8628  test -z "$as_dir" && as_dir=.
8629    for ac_exec_ext in '' $ac_executable_extensions; do
8630  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8631    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8632    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8633    break 2
8634  fi
8635done
8636  done
8637IFS=$as_save_IFS
8638
8639fi
8640fi
8641DSYMUTIL=$ac_cv_prog_DSYMUTIL
8642if test -n "$DSYMUTIL"; then
8643  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8644$as_echo "$DSYMUTIL" >&6; }
8645else
8646  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8647$as_echo "no" >&6; }
8648fi
8649
8650
8651fi
8652if test -z "$ac_cv_prog_DSYMUTIL"; then
8653  ac_ct_DSYMUTIL=$DSYMUTIL
8654  # Extract the first word of "dsymutil", so it can be a program name with args.
8655set dummy dsymutil; ac_word=$2
8656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8657$as_echo_n "checking for $ac_word... " >&6; }
8658if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8659  $as_echo_n "(cached) " >&6
8660else
8661  if test -n "$ac_ct_DSYMUTIL"; then
8662  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8663else
8664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8665for as_dir in $PATH
8666do
8667  IFS=$as_save_IFS
8668  test -z "$as_dir" && as_dir=.
8669    for ac_exec_ext in '' $ac_executable_extensions; do
8670  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8671    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8672    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8673    break 2
8674  fi
8675done
8676  done
8677IFS=$as_save_IFS
8678
8679fi
8680fi
8681ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8682if test -n "$ac_ct_DSYMUTIL"; then
8683  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8684$as_echo "$ac_ct_DSYMUTIL" >&6; }
8685else
8686  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8687$as_echo "no" >&6; }
8688fi
8689
8690  if test "x$ac_ct_DSYMUTIL" = x; then
8691    DSYMUTIL=":"
8692  else
8693    case $cross_compiling:$ac_tool_warned in
8694yes:)
8695{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8696$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8697ac_tool_warned=yes ;;
8698esac
8699    DSYMUTIL=$ac_ct_DSYMUTIL
8700  fi
8701else
8702  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8703fi
8704
8705    if test -n "$ac_tool_prefix"; then
8706  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8707set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8709$as_echo_n "checking for $ac_word... " >&6; }
8710if ${ac_cv_prog_NMEDIT+:} false; then :
8711  $as_echo_n "(cached) " >&6
8712else
8713  if test -n "$NMEDIT"; then
8714  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8715else
8716as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8717for as_dir in $PATH
8718do
8719  IFS=$as_save_IFS
8720  test -z "$as_dir" && as_dir=.
8721    for ac_exec_ext in '' $ac_executable_extensions; do
8722  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8723    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8724    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8725    break 2
8726  fi
8727done
8728  done
8729IFS=$as_save_IFS
8730
8731fi
8732fi
8733NMEDIT=$ac_cv_prog_NMEDIT
8734if test -n "$NMEDIT"; then
8735  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8736$as_echo "$NMEDIT" >&6; }
8737else
8738  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8739$as_echo "no" >&6; }
8740fi
8741
8742
8743fi
8744if test -z "$ac_cv_prog_NMEDIT"; then
8745  ac_ct_NMEDIT=$NMEDIT
8746  # Extract the first word of "nmedit", so it can be a program name with args.
8747set dummy nmedit; ac_word=$2
8748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8749$as_echo_n "checking for $ac_word... " >&6; }
8750if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8751  $as_echo_n "(cached) " >&6
8752else
8753  if test -n "$ac_ct_NMEDIT"; then
8754  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8755else
8756as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8757for as_dir in $PATH
8758do
8759  IFS=$as_save_IFS
8760  test -z "$as_dir" && as_dir=.
8761    for ac_exec_ext in '' $ac_executable_extensions; do
8762  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8763    ac_cv_prog_ac_ct_NMEDIT="nmedit"
8764    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8765    break 2
8766  fi
8767done
8768  done
8769IFS=$as_save_IFS
8770
8771fi
8772fi
8773ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8774if test -n "$ac_ct_NMEDIT"; then
8775  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8776$as_echo "$ac_ct_NMEDIT" >&6; }
8777else
8778  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8779$as_echo "no" >&6; }
8780fi
8781
8782  if test "x$ac_ct_NMEDIT" = x; then
8783    NMEDIT=":"
8784  else
8785    case $cross_compiling:$ac_tool_warned in
8786yes:)
8787{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8788$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8789ac_tool_warned=yes ;;
8790esac
8791    NMEDIT=$ac_ct_NMEDIT
8792  fi
8793else
8794  NMEDIT="$ac_cv_prog_NMEDIT"
8795fi
8796
8797    if test -n "$ac_tool_prefix"; then
8798  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8799set dummy ${ac_tool_prefix}lipo; ac_word=$2
8800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8801$as_echo_n "checking for $ac_word... " >&6; }
8802if ${ac_cv_prog_LIPO+:} false; then :
8803  $as_echo_n "(cached) " >&6
8804else
8805  if test -n "$LIPO"; then
8806  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8807else
8808as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8809for as_dir in $PATH
8810do
8811  IFS=$as_save_IFS
8812  test -z "$as_dir" && as_dir=.
8813    for ac_exec_ext in '' $ac_executable_extensions; do
8814  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8815    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8816    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8817    break 2
8818  fi
8819done
8820  done
8821IFS=$as_save_IFS
8822
8823fi
8824fi
8825LIPO=$ac_cv_prog_LIPO
8826if test -n "$LIPO"; then
8827  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8828$as_echo "$LIPO" >&6; }
8829else
8830  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8831$as_echo "no" >&6; }
8832fi
8833
8834
8835fi
8836if test -z "$ac_cv_prog_LIPO"; then
8837  ac_ct_LIPO=$LIPO
8838  # Extract the first word of "lipo", so it can be a program name with args.
8839set dummy lipo; ac_word=$2
8840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8841$as_echo_n "checking for $ac_word... " >&6; }
8842if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8843  $as_echo_n "(cached) " >&6
8844else
8845  if test -n "$ac_ct_LIPO"; then
8846  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8847else
8848as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8849for as_dir in $PATH
8850do
8851  IFS=$as_save_IFS
8852  test -z "$as_dir" && as_dir=.
8853    for ac_exec_ext in '' $ac_executable_extensions; do
8854  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8855    ac_cv_prog_ac_ct_LIPO="lipo"
8856    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8857    break 2
8858  fi
8859done
8860  done
8861IFS=$as_save_IFS
8862
8863fi
8864fi
8865ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8866if test -n "$ac_ct_LIPO"; then
8867  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8868$as_echo "$ac_ct_LIPO" >&6; }
8869else
8870  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8871$as_echo "no" >&6; }
8872fi
8873
8874  if test "x$ac_ct_LIPO" = x; then
8875    LIPO=":"
8876  else
8877    case $cross_compiling:$ac_tool_warned in
8878yes:)
8879{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8880$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8881ac_tool_warned=yes ;;
8882esac
8883    LIPO=$ac_ct_LIPO
8884  fi
8885else
8886  LIPO="$ac_cv_prog_LIPO"
8887fi
8888
8889    if test -n "$ac_tool_prefix"; then
8890  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8891set dummy ${ac_tool_prefix}otool; ac_word=$2
8892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8893$as_echo_n "checking for $ac_word... " >&6; }
8894if ${ac_cv_prog_OTOOL+:} false; then :
8895  $as_echo_n "(cached) " >&6
8896else
8897  if test -n "$OTOOL"; then
8898  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8899else
8900as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8901for as_dir in $PATH
8902do
8903  IFS=$as_save_IFS
8904  test -z "$as_dir" && as_dir=.
8905    for ac_exec_ext in '' $ac_executable_extensions; do
8906  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8907    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8908    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8909    break 2
8910  fi
8911done
8912  done
8913IFS=$as_save_IFS
8914
8915fi
8916fi
8917OTOOL=$ac_cv_prog_OTOOL
8918if test -n "$OTOOL"; then
8919  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8920$as_echo "$OTOOL" >&6; }
8921else
8922  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8923$as_echo "no" >&6; }
8924fi
8925
8926
8927fi
8928if test -z "$ac_cv_prog_OTOOL"; then
8929  ac_ct_OTOOL=$OTOOL
8930  # Extract the first word of "otool", so it can be a program name with args.
8931set dummy otool; ac_word=$2
8932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8933$as_echo_n "checking for $ac_word... " >&6; }
8934if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8935  $as_echo_n "(cached) " >&6
8936else
8937  if test -n "$ac_ct_OTOOL"; then
8938  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8939else
8940as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8941for as_dir in $PATH
8942do
8943  IFS=$as_save_IFS
8944  test -z "$as_dir" && as_dir=.
8945    for ac_exec_ext in '' $ac_executable_extensions; do
8946  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8947    ac_cv_prog_ac_ct_OTOOL="otool"
8948    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8949    break 2
8950  fi
8951done
8952  done
8953IFS=$as_save_IFS
8954
8955fi
8956fi
8957ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8958if test -n "$ac_ct_OTOOL"; then
8959  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8960$as_echo "$ac_ct_OTOOL" >&6; }
8961else
8962  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8963$as_echo "no" >&6; }
8964fi
8965
8966  if test "x$ac_ct_OTOOL" = x; then
8967    OTOOL=":"
8968  else
8969    case $cross_compiling:$ac_tool_warned in
8970yes:)
8971{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8972$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8973ac_tool_warned=yes ;;
8974esac
8975    OTOOL=$ac_ct_OTOOL
8976  fi
8977else
8978  OTOOL="$ac_cv_prog_OTOOL"
8979fi
8980
8981    if test -n "$ac_tool_prefix"; then
8982  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8983set dummy ${ac_tool_prefix}otool64; ac_word=$2
8984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8985$as_echo_n "checking for $ac_word... " >&6; }
8986if ${ac_cv_prog_OTOOL64+:} false; then :
8987  $as_echo_n "(cached) " >&6
8988else
8989  if test -n "$OTOOL64"; then
8990  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8991else
8992as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8993for as_dir in $PATH
8994do
8995  IFS=$as_save_IFS
8996  test -z "$as_dir" && as_dir=.
8997    for ac_exec_ext in '' $ac_executable_extensions; do
8998  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8999    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9000    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9001    break 2
9002  fi
9003done
9004  done
9005IFS=$as_save_IFS
9006
9007fi
9008fi
9009OTOOL64=$ac_cv_prog_OTOOL64
9010if test -n "$OTOOL64"; then
9011  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9012$as_echo "$OTOOL64" >&6; }
9013else
9014  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9015$as_echo "no" >&6; }
9016fi
9017
9018
9019fi
9020if test -z "$ac_cv_prog_OTOOL64"; then
9021  ac_ct_OTOOL64=$OTOOL64
9022  # Extract the first word of "otool64", so it can be a program name with args.
9023set dummy otool64; ac_word=$2
9024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9025$as_echo_n "checking for $ac_word... " >&6; }
9026if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
9027  $as_echo_n "(cached) " >&6
9028else
9029  if test -n "$ac_ct_OTOOL64"; then
9030  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9031else
9032as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9033for as_dir in $PATH
9034do
9035  IFS=$as_save_IFS
9036  test -z "$as_dir" && as_dir=.
9037    for ac_exec_ext in '' $ac_executable_extensions; do
9038  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9039    ac_cv_prog_ac_ct_OTOOL64="otool64"
9040    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9041    break 2
9042  fi
9043done
9044  done
9045IFS=$as_save_IFS
9046
9047fi
9048fi
9049ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9050if test -n "$ac_ct_OTOOL64"; then
9051  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9052$as_echo "$ac_ct_OTOOL64" >&6; }
9053else
9054  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9055$as_echo "no" >&6; }
9056fi
9057
9058  if test "x$ac_ct_OTOOL64" = x; then
9059    OTOOL64=":"
9060  else
9061    case $cross_compiling:$ac_tool_warned in
9062yes:)
9063{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9064$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9065ac_tool_warned=yes ;;
9066esac
9067    OTOOL64=$ac_ct_OTOOL64
9068  fi
9069else
9070  OTOOL64="$ac_cv_prog_OTOOL64"
9071fi
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093
9094
9095
9096
9097
9098
9099    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9100$as_echo_n "checking for -single_module linker flag... " >&6; }
9101if ${lt_cv_apple_cc_single_mod+:} false; then :
9102  $as_echo_n "(cached) " >&6
9103else
9104  lt_cv_apple_cc_single_mod=no
9105      if test -z "$LT_MULTI_MODULE"; then
9106	# By default we will add the -single_module flag. You can override
9107	# by either setting the environment variable LT_MULTI_MODULE
9108	# non-empty at configure time, or by adding -multi_module to the
9109	# link flags.
9110	rm -rf libconftest.dylib*
9111	echo "int foo(void){return 1;}" > conftest.c
9112	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9113-dynamiclib -Wl,-single_module conftest.c" >&5
9114	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9115	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9116        _lt_result=$?
9117	# If there is a non-empty error log, and "single_module"
9118	# appears in it, assume the flag caused a linker warning
9119        if test -s conftest.err && $GREP single_module conftest.err; then
9120	  cat conftest.err >&5
9121	# Otherwise, if the output was created with a 0 exit code from
9122	# the compiler, it worked.
9123	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
9124	  lt_cv_apple_cc_single_mod=yes
9125	else
9126	  cat conftest.err >&5
9127	fi
9128	rm -rf libconftest.dylib*
9129	rm -f conftest.*
9130      fi
9131fi
9132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9133$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9134
9135    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9136$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9137if ${lt_cv_ld_exported_symbols_list+:} false; then :
9138  $as_echo_n "(cached) " >&6
9139else
9140  lt_cv_ld_exported_symbols_list=no
9141      save_LDFLAGS=$LDFLAGS
9142      echo "_main" > conftest.sym
9143      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9144      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9145/* end confdefs.h.  */
9146
9147int
9148main ()
9149{
9150
9151  ;
9152  return 0;
9153}
9154_ACEOF
9155if ac_fn_c_try_link "$LINENO"; then :
9156  lt_cv_ld_exported_symbols_list=yes
9157else
9158  lt_cv_ld_exported_symbols_list=no
9159fi
9160rm -f core conftest.err conftest.$ac_objext \
9161    conftest$ac_exeext conftest.$ac_ext
9162	LDFLAGS=$save_LDFLAGS
9163
9164fi
9165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9166$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9167
9168    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9169$as_echo_n "checking for -force_load linker flag... " >&6; }
9170if ${lt_cv_ld_force_load+:} false; then :
9171  $as_echo_n "(cached) " >&6
9172else
9173  lt_cv_ld_force_load=no
9174      cat > conftest.c << _LT_EOF
9175int forced_loaded() { return 2;}
9176_LT_EOF
9177      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9178      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9179      echo "$AR cru libconftest.a conftest.o" >&5
9180      $AR cru libconftest.a conftest.o 2>&5
9181      echo "$RANLIB libconftest.a" >&5
9182      $RANLIB libconftest.a 2>&5
9183      cat > conftest.c << _LT_EOF
9184int main() { return 0;}
9185_LT_EOF
9186      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9187      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9188      _lt_result=$?
9189      if test -s conftest.err && $GREP force_load conftest.err; then
9190	cat conftest.err >&5
9191      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
9192	lt_cv_ld_force_load=yes
9193      else
9194	cat conftest.err >&5
9195      fi
9196        rm -f conftest.err libconftest.a conftest conftest.c
9197        rm -rf conftest.dSYM
9198
9199fi
9200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9201$as_echo "$lt_cv_ld_force_load" >&6; }
9202    case $host_os in
9203    rhapsody* | darwin1.[012])
9204      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
9205    darwin1.*)
9206      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9207    darwin*) # darwin 5.x on
9208      # if running on 10.5 or later, the deployment target defaults
9209      # to the OS version, if on x86, and 10.4, the deployment
9210      # target defaults to 10.4. Don't you love it?
9211      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9212	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9213	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9214	10.[012][,.]*)
9215	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9216	10.*)
9217	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9218      esac
9219    ;;
9220  esac
9221    if test yes = "$lt_cv_apple_cc_single_mod"; then
9222      _lt_dar_single_mod='$single_module'
9223    fi
9224    if test yes = "$lt_cv_ld_exported_symbols_list"; then
9225      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
9226    else
9227      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
9228    fi
9229    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
9230      _lt_dsymutil='~$DSYMUTIL $lib || :'
9231    else
9232      _lt_dsymutil=
9233    fi
9234    ;;
9235  esac
9236
9237# func_munge_path_list VARIABLE PATH
9238# -----------------------------------
9239# VARIABLE is name of variable containing _space_ separated list of
9240# directories to be munged by the contents of PATH, which is string
9241# having a format:
9242# "DIR[:DIR]:"
9243#       string "DIR[ DIR]" will be prepended to VARIABLE
9244# ":DIR[:DIR]"
9245#       string "DIR[ DIR]" will be appended to VARIABLE
9246# "DIRP[:DIRP]::[DIRA:]DIRA"
9247#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
9248#       "DIRA[ DIRA]" will be appended to VARIABLE
9249# "DIR[:DIR]"
9250#       VARIABLE will be replaced by "DIR[ DIR]"
9251func_munge_path_list ()
9252{
9253    case x$2 in
9254    x)
9255        ;;
9256    *:)
9257        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
9258        ;;
9259    x:*)
9260        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
9261        ;;
9262    *::*)
9263        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
9264        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
9265        ;;
9266    *)
9267        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
9268        ;;
9269    esac
9270}
9271
9272ac_ext=c
9273ac_cpp='$CPP $CPPFLAGS'
9274ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9275ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9276ac_compiler_gnu=$ac_cv_c_compiler_gnu
9277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
9278$as_echo_n "checking how to run the C preprocessor... " >&6; }
9279# On Suns, sometimes $CPP names a directory.
9280if test -n "$CPP" && test -d "$CPP"; then
9281  CPP=
9282fi
9283if test -z "$CPP"; then
9284  if ${ac_cv_prog_CPP+:} false; then :
9285  $as_echo_n "(cached) " >&6
9286else
9287      # Double quotes because CPP needs to be expanded
9288    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
9289    do
9290      ac_preproc_ok=false
9291for ac_c_preproc_warn_flag in '' yes
9292do
9293  # Use a header file that comes with gcc, so configuring glibc
9294  # with a fresh cross-compiler works.
9295  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9296  # <limits.h> exists even on freestanding compilers.
9297  # On the NeXT, cc -E runs the code through the compiler's parser,
9298  # not just through cpp. "Syntax error" is here to catch this case.
9299  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9300/* end confdefs.h.  */
9301#ifdef __STDC__
9302# include <limits.h>
9303#else
9304# include <assert.h>
9305#endif
9306		     Syntax error
9307_ACEOF
9308if ac_fn_c_try_cpp "$LINENO"; then :
9309
9310else
9311  # Broken: fails on valid input.
9312continue
9313fi
9314rm -f conftest.err conftest.i conftest.$ac_ext
9315
9316  # OK, works on sane cases.  Now check whether nonexistent headers
9317  # can be detected and how.
9318  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9319/* end confdefs.h.  */
9320#include <ac_nonexistent.h>
9321_ACEOF
9322if ac_fn_c_try_cpp "$LINENO"; then :
9323  # Broken: success on invalid input.
9324continue
9325else
9326  # Passes both tests.
9327ac_preproc_ok=:
9328break
9329fi
9330rm -f conftest.err conftest.i conftest.$ac_ext
9331
9332done
9333# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9334rm -f conftest.i conftest.err conftest.$ac_ext
9335if $ac_preproc_ok; then :
9336  break
9337fi
9338
9339    done
9340    ac_cv_prog_CPP=$CPP
9341
9342fi
9343  CPP=$ac_cv_prog_CPP
9344else
9345  ac_cv_prog_CPP=$CPP
9346fi
9347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
9348$as_echo "$CPP" >&6; }
9349ac_preproc_ok=false
9350for ac_c_preproc_warn_flag in '' yes
9351do
9352  # Use a header file that comes with gcc, so configuring glibc
9353  # with a fresh cross-compiler works.
9354  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9355  # <limits.h> exists even on freestanding compilers.
9356  # On the NeXT, cc -E runs the code through the compiler's parser,
9357  # not just through cpp. "Syntax error" is here to catch this case.
9358  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9359/* end confdefs.h.  */
9360#ifdef __STDC__
9361# include <limits.h>
9362#else
9363# include <assert.h>
9364#endif
9365		     Syntax error
9366_ACEOF
9367if ac_fn_c_try_cpp "$LINENO"; then :
9368
9369else
9370  # Broken: fails on valid input.
9371continue
9372fi
9373rm -f conftest.err conftest.i conftest.$ac_ext
9374
9375  # OK, works on sane cases.  Now check whether nonexistent headers
9376  # can be detected and how.
9377  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9378/* end confdefs.h.  */
9379#include <ac_nonexistent.h>
9380_ACEOF
9381if ac_fn_c_try_cpp "$LINENO"; then :
9382  # Broken: success on invalid input.
9383continue
9384else
9385  # Passes both tests.
9386ac_preproc_ok=:
9387break
9388fi
9389rm -f conftest.err conftest.i conftest.$ac_ext
9390
9391done
9392# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9393rm -f conftest.i conftest.err conftest.$ac_ext
9394if $ac_preproc_ok; then :
9395
9396else
9397  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9398$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9399as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
9400See \`config.log' for more details" "$LINENO" 5; }
9401fi
9402
9403ac_ext=c
9404ac_cpp='$CPP $CPPFLAGS'
9405ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9406ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9407ac_compiler_gnu=$ac_cv_c_compiler_gnu
9408
9409
9410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9411$as_echo_n "checking for ANSI C header files... " >&6; }
9412if ${ac_cv_header_stdc+:} false; then :
9413  $as_echo_n "(cached) " >&6
9414else
9415  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9416/* end confdefs.h.  */
9417#include <stdlib.h>
9418#include <stdarg.h>
9419#include <string.h>
9420#include <float.h>
9421
9422int
9423main ()
9424{
9425
9426  ;
9427  return 0;
9428}
9429_ACEOF
9430if ac_fn_c_try_compile "$LINENO"; then :
9431  ac_cv_header_stdc=yes
9432else
9433  ac_cv_header_stdc=no
9434fi
9435rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9436
9437if test $ac_cv_header_stdc = yes; then
9438  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9439  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9440/* end confdefs.h.  */
9441#include <string.h>
9442
9443_ACEOF
9444if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9445  $EGREP "memchr" >/dev/null 2>&1; then :
9446
9447else
9448  ac_cv_header_stdc=no
9449fi
9450rm -f conftest*
9451
9452fi
9453
9454if test $ac_cv_header_stdc = yes; then
9455  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9456  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9457/* end confdefs.h.  */
9458#include <stdlib.h>
9459
9460_ACEOF
9461if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9462  $EGREP "free" >/dev/null 2>&1; then :
9463
9464else
9465  ac_cv_header_stdc=no
9466fi
9467rm -f conftest*
9468
9469fi
9470
9471if test $ac_cv_header_stdc = yes; then
9472  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9473  if test "$cross_compiling" = yes; then :
9474  :
9475else
9476  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9477/* end confdefs.h.  */
9478#include <ctype.h>
9479#include <stdlib.h>
9480#if ((' ' & 0x0FF) == 0x020)
9481# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9482# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9483#else
9484# define ISLOWER(c) \
9485		   (('a' <= (c) && (c) <= 'i') \
9486		     || ('j' <= (c) && (c) <= 'r') \
9487		     || ('s' <= (c) && (c) <= 'z'))
9488# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9489#endif
9490
9491#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9492int
9493main ()
9494{
9495  int i;
9496  for (i = 0; i < 256; i++)
9497    if (XOR (islower (i), ISLOWER (i))
9498	|| toupper (i) != TOUPPER (i))
9499      return 2;
9500  return 0;
9501}
9502_ACEOF
9503if ac_fn_c_try_run "$LINENO"; then :
9504
9505else
9506  ac_cv_header_stdc=no
9507fi
9508rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9509  conftest.$ac_objext conftest.beam conftest.$ac_ext
9510fi
9511
9512fi
9513fi
9514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9515$as_echo "$ac_cv_header_stdc" >&6; }
9516if test $ac_cv_header_stdc = yes; then
9517
9518$as_echo "#define STDC_HEADERS 1" >>confdefs.h
9519
9520fi
9521
9522# On IRIX 5.3, sys/types and inttypes.h are conflicting.
9523for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9524		  inttypes.h stdint.h unistd.h
9525do :
9526  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9527ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9528"
9529if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9530  cat >>confdefs.h <<_ACEOF
9531#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9532_ACEOF
9533
9534fi
9535
9536done
9537
9538
9539for ac_header in dlfcn.h
9540do :
9541  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9542"
9543if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9544  cat >>confdefs.h <<_ACEOF
9545#define HAVE_DLFCN_H 1
9546_ACEOF
9547
9548fi
9549
9550done
9551
9552
9553
9554
9555
9556# Set options
9557enable_dlopen=yes
9558
9559
9560
9561
9562  enable_win32_dll=no
9563
9564
9565
9566
9567
9568# Check whether --with-pic was given.
9569if test "${with_pic+set}" = set; then :
9570  withval=$with_pic; lt_p=${PACKAGE-default}
9571    case $withval in
9572    yes|no) pic_mode=$withval ;;
9573    *)
9574      pic_mode=default
9575      # Look at the argument we got.  We use all the common list separators.
9576      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9577      for lt_pkg in $withval; do
9578	IFS=$lt_save_ifs
9579	if test "X$lt_pkg" = "X$lt_p"; then
9580	  pic_mode=yes
9581	fi
9582      done
9583      IFS=$lt_save_ifs
9584      ;;
9585    esac
9586else
9587  pic_mode=default
9588fi
9589
9590
9591
9592
9593
9594
9595
9596
9597  # Check whether --enable-fast-install was given.
9598if test "${enable_fast_install+set}" = set; then :
9599  enableval=$enable_fast_install; p=${PACKAGE-default}
9600    case $enableval in
9601    yes) enable_fast_install=yes ;;
9602    no) enable_fast_install=no ;;
9603    *)
9604      enable_fast_install=no
9605      # Look at the argument we got.  We use all the common list separators.
9606      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9607      for pkg in $enableval; do
9608	IFS=$lt_save_ifs
9609	if test "X$pkg" = "X$p"; then
9610	  enable_fast_install=yes
9611	fi
9612      done
9613      IFS=$lt_save_ifs
9614      ;;
9615    esac
9616else
9617  enable_fast_install=yes
9618fi
9619
9620
9621
9622
9623
9624
9625
9626
9627  shared_archive_member_spec=
9628case $host,$enable_shared in
9629power*-*-aix[5-9]*,yes)
9630  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9631$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
9632
9633# Check whether --with-aix-soname was given.
9634if test "${with_aix_soname+set}" = set; then :
9635  withval=$with_aix_soname; case $withval in
9636    aix|svr4|both)
9637      ;;
9638    *)
9639      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9640      ;;
9641    esac
9642    lt_cv_with_aix_soname=$with_aix_soname
9643else
9644  if ${lt_cv_with_aix_soname+:} false; then :
9645  $as_echo_n "(cached) " >&6
9646else
9647  lt_cv_with_aix_soname=aix
9648fi
9649
9650    with_aix_soname=$lt_cv_with_aix_soname
9651fi
9652
9653  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9654$as_echo "$with_aix_soname" >&6; }
9655  if test aix != "$with_aix_soname"; then
9656    # For the AIX way of multilib, we name the shared archive member
9657    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9658    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9659    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9660    # the AIX toolchain works better with OBJECT_MODE set (default 32).
9661    if test 64 = "${OBJECT_MODE-32}"; then
9662      shared_archive_member_spec=shr_64
9663    else
9664      shared_archive_member_spec=shr
9665    fi
9666  fi
9667  ;;
9668*)
9669  with_aix_soname=aix
9670  ;;
9671esac
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682# This can be used to rebuild libtool when needed
9683LIBTOOL_DEPS=$ltmain
9684
9685# Always use our own libtool.
9686LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717test -z "$LN_S" && LN_S="ln -s"
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732if test -n "${ZSH_VERSION+set}"; then
9733   setopt NO_GLOB_SUBST
9734fi
9735
9736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9737$as_echo_n "checking for objdir... " >&6; }
9738if ${lt_cv_objdir+:} false; then :
9739  $as_echo_n "(cached) " >&6
9740else
9741  rm -f .libs 2>/dev/null
9742mkdir .libs 2>/dev/null
9743if test -d .libs; then
9744  lt_cv_objdir=.libs
9745else
9746  # MS-DOS does not allow filenames that begin with a dot.
9747  lt_cv_objdir=_libs
9748fi
9749rmdir .libs 2>/dev/null
9750fi
9751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9752$as_echo "$lt_cv_objdir" >&6; }
9753objdir=$lt_cv_objdir
9754
9755
9756
9757
9758
9759cat >>confdefs.h <<_ACEOF
9760#define LT_OBJDIR "$lt_cv_objdir/"
9761_ACEOF
9762
9763
9764
9765
9766case $host_os in
9767aix3*)
9768  # AIX sometimes has problems with the GCC collect2 program.  For some
9769  # reason, if we set the COLLECT_NAMES environment variable, the problems
9770  # vanish in a puff of smoke.
9771  if test set != "${COLLECT_NAMES+set}"; then
9772    COLLECT_NAMES=
9773    export COLLECT_NAMES
9774  fi
9775  ;;
9776esac
9777
9778# Global variables:
9779ofile=libtool
9780can_build_shared=yes
9781
9782# All known linkers require a '.a' archive for static linking (except MSVC,
9783# which needs '.lib').
9784libext=a
9785
9786with_gnu_ld=$lt_cv_prog_gnu_ld
9787
9788old_CC=$CC
9789old_CFLAGS=$CFLAGS
9790
9791# Set sane defaults for various variables
9792test -z "$CC" && CC=cc
9793test -z "$LTCC" && LTCC=$CC
9794test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9795test -z "$LD" && LD=ld
9796test -z "$ac_objext" && ac_objext=o
9797
9798func_cc_basename $compiler
9799cc_basename=$func_cc_basename_result
9800
9801
9802# Only perform the check for file, if the check method requires it
9803test -z "$MAGIC_CMD" && MAGIC_CMD=file
9804case $deplibs_check_method in
9805file_magic*)
9806  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9807    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9808$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9809if ${lt_cv_path_MAGIC_CMD+:} false; then :
9810  $as_echo_n "(cached) " >&6
9811else
9812  case $MAGIC_CMD in
9813[\\/*] |  ?:[\\/]*)
9814  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9815  ;;
9816*)
9817  lt_save_MAGIC_CMD=$MAGIC_CMD
9818  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9819  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9820  for ac_dir in $ac_dummy; do
9821    IFS=$lt_save_ifs
9822    test -z "$ac_dir" && ac_dir=.
9823    if test -f "$ac_dir/${ac_tool_prefix}file"; then
9824      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9825      if test -n "$file_magic_test_file"; then
9826	case $deplibs_check_method in
9827	"file_magic "*)
9828	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9829	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9830	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9831	    $EGREP "$file_magic_regex" > /dev/null; then
9832	    :
9833	  else
9834	    cat <<_LT_EOF 1>&2
9835
9836*** Warning: the command libtool uses to detect shared libraries,
9837*** $file_magic_cmd, produces output that libtool cannot recognize.
9838*** The result is that libtool may fail to recognize shared libraries
9839*** as such.  This will affect the creation of libtool libraries that
9840*** depend on shared libraries, but programs linked with such libtool
9841*** libraries will work regardless of this problem.  Nevertheless, you
9842*** may want to report the problem to your system manager and/or to
9843*** bug-libtool@gnu.org
9844
9845_LT_EOF
9846	  fi ;;
9847	esac
9848      fi
9849      break
9850    fi
9851  done
9852  IFS=$lt_save_ifs
9853  MAGIC_CMD=$lt_save_MAGIC_CMD
9854  ;;
9855esac
9856fi
9857
9858MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9859if test -n "$MAGIC_CMD"; then
9860  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9861$as_echo "$MAGIC_CMD" >&6; }
9862else
9863  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9864$as_echo "no" >&6; }
9865fi
9866
9867
9868
9869
9870
9871if test -z "$lt_cv_path_MAGIC_CMD"; then
9872  if test -n "$ac_tool_prefix"; then
9873    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9874$as_echo_n "checking for file... " >&6; }
9875if ${lt_cv_path_MAGIC_CMD+:} false; then :
9876  $as_echo_n "(cached) " >&6
9877else
9878  case $MAGIC_CMD in
9879[\\/*] |  ?:[\\/]*)
9880  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9881  ;;
9882*)
9883  lt_save_MAGIC_CMD=$MAGIC_CMD
9884  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9885  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9886  for ac_dir in $ac_dummy; do
9887    IFS=$lt_save_ifs
9888    test -z "$ac_dir" && ac_dir=.
9889    if test -f "$ac_dir/file"; then
9890      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9891      if test -n "$file_magic_test_file"; then
9892	case $deplibs_check_method in
9893	"file_magic "*)
9894	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9895	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9896	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9897	    $EGREP "$file_magic_regex" > /dev/null; then
9898	    :
9899	  else
9900	    cat <<_LT_EOF 1>&2
9901
9902*** Warning: the command libtool uses to detect shared libraries,
9903*** $file_magic_cmd, produces output that libtool cannot recognize.
9904*** The result is that libtool may fail to recognize shared libraries
9905*** as such.  This will affect the creation of libtool libraries that
9906*** depend on shared libraries, but programs linked with such libtool
9907*** libraries will work regardless of this problem.  Nevertheless, you
9908*** may want to report the problem to your system manager and/or to
9909*** bug-libtool@gnu.org
9910
9911_LT_EOF
9912	  fi ;;
9913	esac
9914      fi
9915      break
9916    fi
9917  done
9918  IFS=$lt_save_ifs
9919  MAGIC_CMD=$lt_save_MAGIC_CMD
9920  ;;
9921esac
9922fi
9923
9924MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9925if test -n "$MAGIC_CMD"; then
9926  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9927$as_echo "$MAGIC_CMD" >&6; }
9928else
9929  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9930$as_echo "no" >&6; }
9931fi
9932
9933
9934  else
9935    MAGIC_CMD=:
9936  fi
9937fi
9938
9939  fi
9940  ;;
9941esac
9942
9943# Use C for the default configuration in the libtool script
9944
9945lt_save_CC=$CC
9946ac_ext=c
9947ac_cpp='$CPP $CPPFLAGS'
9948ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9949ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9950ac_compiler_gnu=$ac_cv_c_compiler_gnu
9951
9952
9953# Source file extension for C test sources.
9954ac_ext=c
9955
9956# Object file extension for compiled C test sources.
9957objext=o
9958objext=$objext
9959
9960# Code to be used in simple compile tests
9961lt_simple_compile_test_code="int some_variable = 0;"
9962
9963# Code to be used in simple link tests
9964lt_simple_link_test_code='int main(){return(0);}'
9965
9966
9967
9968
9969
9970
9971
9972# If no C compiler was specified, use CC.
9973LTCC=${LTCC-"$CC"}
9974
9975# If no C compiler flags were specified, use CFLAGS.
9976LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9977
9978# Allow CC to be a program name with arguments.
9979compiler=$CC
9980
9981# Save the default compiler, since it gets overwritten when the other
9982# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9983compiler_DEFAULT=$CC
9984
9985# save warnings/boilerplate of simple test code
9986ac_outfile=conftest.$ac_objext
9987echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9988eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9989_lt_compiler_boilerplate=`cat conftest.err`
9990$RM conftest*
9991
9992ac_outfile=conftest.$ac_objext
9993echo "$lt_simple_link_test_code" >conftest.$ac_ext
9994eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9995_lt_linker_boilerplate=`cat conftest.err`
9996$RM -r conftest*
9997
9998
9999## CAVEAT EMPTOR:
10000## There is no encapsulation within the following macros, do not change
10001## the running order or otherwise move them around unless you know exactly
10002## what you are doing...
10003if test -n "$compiler"; then
10004
10005lt_prog_compiler_no_builtin_flag=
10006
10007if test yes = "$GCC"; then
10008  case $cc_basename in
10009  nvcc*)
10010    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10011  *)
10012    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10013  esac
10014
10015  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10016$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10017if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
10018  $as_echo_n "(cached) " >&6
10019else
10020  lt_cv_prog_compiler_rtti_exceptions=no
10021   ac_outfile=conftest.$ac_objext
10022   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10023   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
10024   # Insert the option either (1) after the last *FLAGS variable, or
10025   # (2) before a word containing "conftest.", or (3) at the end.
10026   # Note that $ac_compile itself does not contain backslashes and begins
10027   # with a dollar sign (not a hyphen), so the echo should work correctly.
10028   # The option is referenced via a variable to avoid confusing sed.
10029   lt_compile=`echo "$ac_compile" | $SED \
10030   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10031   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10032   -e 's:$: $lt_compiler_flag:'`
10033   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10034   (eval "$lt_compile" 2>conftest.err)
10035   ac_status=$?
10036   cat conftest.err >&5
10037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10038   if (exit $ac_status) && test -s "$ac_outfile"; then
10039     # The compiler can only warn and ignore the option if not recognized
10040     # So say no if there are warnings other than the usual output.
10041     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10042     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10043     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10044       lt_cv_prog_compiler_rtti_exceptions=yes
10045     fi
10046   fi
10047   $RM conftest*
10048
10049fi
10050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10051$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10052
10053if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
10054    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10055else
10056    :
10057fi
10058
10059fi
10060
10061
10062
10063
10064
10065
10066  lt_prog_compiler_wl=
10067lt_prog_compiler_pic=
10068lt_prog_compiler_static=
10069
10070
10071  if test yes = "$GCC"; then
10072    lt_prog_compiler_wl='-Wl,'
10073    lt_prog_compiler_static='-static'
10074
10075    case $host_os in
10076      aix*)
10077      # All AIX code is PIC.
10078      if test ia64 = "$host_cpu"; then
10079	# AIX 5 now supports IA64 processor
10080	lt_prog_compiler_static='-Bstatic'
10081      fi
10082      lt_prog_compiler_pic='-fPIC'
10083      ;;
10084
10085    amigaos*)
10086      case $host_cpu in
10087      powerpc)
10088            # see comment about AmigaOS4 .so support
10089            lt_prog_compiler_pic='-fPIC'
10090        ;;
10091      m68k)
10092            # FIXME: we need at least 68020 code to build shared libraries, but
10093            # adding the '-m68020' flag to GCC prevents building anything better,
10094            # like '-m68040'.
10095            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10096        ;;
10097      esac
10098      ;;
10099
10100    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10101      # PIC is the default for these OSes.
10102      ;;
10103
10104    mingw* | cygwin* | pw32* | os2* | cegcc*)
10105      # This hack is so that the source file can tell whether it is being
10106      # built for inclusion in a dll (and should export symbols for example).
10107      # Although the cygwin gcc ignores -fPIC, still need this for old-style
10108      # (--disable-auto-import) libraries
10109      lt_prog_compiler_pic='-DDLL_EXPORT'
10110      case $host_os in
10111      os2*)
10112	lt_prog_compiler_static='$wl-static'
10113	;;
10114      esac
10115      ;;
10116
10117    darwin* | rhapsody*)
10118      # PIC is the default on this platform
10119      # Common symbols not allowed in MH_DYLIB files
10120      lt_prog_compiler_pic='-fno-common'
10121      ;;
10122
10123    haiku*)
10124      # PIC is the default for Haiku.
10125      # The "-static" flag exists, but is broken.
10126      lt_prog_compiler_static=
10127      ;;
10128
10129    hpux*)
10130      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10131      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
10132      # sets the default TLS model and affects inlining.
10133      case $host_cpu in
10134      hppa*64*)
10135	# +Z the default
10136	;;
10137      *)
10138	lt_prog_compiler_pic='-fPIC'
10139	;;
10140      esac
10141      ;;
10142
10143    interix[3-9]*)
10144      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10145      # Instead, we relocate shared libraries at runtime.
10146      ;;
10147
10148    msdosdjgpp*)
10149      # Just because we use GCC doesn't mean we suddenly get shared libraries
10150      # on systems that don't support them.
10151      lt_prog_compiler_can_build_shared=no
10152      enable_shared=no
10153      ;;
10154
10155    *nto* | *qnx*)
10156      # QNX uses GNU C++, but need to define -shared option too, otherwise
10157      # it will coredump.
10158      lt_prog_compiler_pic='-fPIC -shared'
10159      ;;
10160
10161    sysv4*MP*)
10162      if test -d /usr/nec; then
10163	lt_prog_compiler_pic=-Kconform_pic
10164      fi
10165      ;;
10166
10167    *)
10168      lt_prog_compiler_pic='-fPIC'
10169      ;;
10170    esac
10171
10172    case $cc_basename in
10173    nvcc*) # Cuda Compiler Driver 2.2
10174      lt_prog_compiler_wl='-Xlinker '
10175      if test -n "$lt_prog_compiler_pic"; then
10176        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10177      fi
10178      ;;
10179    esac
10180  else
10181    # PORTME Check for flag to pass linker flags through the system compiler.
10182    case $host_os in
10183    aix*)
10184      lt_prog_compiler_wl='-Wl,'
10185      if test ia64 = "$host_cpu"; then
10186	# AIX 5 now supports IA64 processor
10187	lt_prog_compiler_static='-Bstatic'
10188      else
10189	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10190      fi
10191      ;;
10192
10193    darwin* | rhapsody*)
10194      # PIC is the default on this platform
10195      # Common symbols not allowed in MH_DYLIB files
10196      lt_prog_compiler_pic='-fno-common'
10197      case $cc_basename in
10198      nagfor*)
10199        # NAG Fortran compiler
10200        lt_prog_compiler_wl='-Wl,-Wl,,'
10201        lt_prog_compiler_pic='-PIC'
10202        lt_prog_compiler_static='-Bstatic'
10203        ;;
10204      esac
10205      ;;
10206
10207    mingw* | cygwin* | pw32* | os2* | cegcc*)
10208      # This hack is so that the source file can tell whether it is being
10209      # built for inclusion in a dll (and should export symbols for example).
10210      lt_prog_compiler_pic='-DDLL_EXPORT'
10211      case $host_os in
10212      os2*)
10213	lt_prog_compiler_static='$wl-static'
10214	;;
10215      esac
10216      ;;
10217
10218    hpux9* | hpux10* | hpux11*)
10219      lt_prog_compiler_wl='-Wl,'
10220      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10221      # not for PA HP-UX.
10222      case $host_cpu in
10223      hppa*64*|ia64*)
10224	# +Z the default
10225	;;
10226      *)
10227	lt_prog_compiler_pic='+Z'
10228	;;
10229      esac
10230      # Is there a better lt_prog_compiler_static that works with the bundled CC?
10231      lt_prog_compiler_static='$wl-a ${wl}archive'
10232      ;;
10233
10234    irix5* | irix6* | nonstopux*)
10235      lt_prog_compiler_wl='-Wl,'
10236      # PIC (with -KPIC) is the default.
10237      lt_prog_compiler_static='-non_shared'
10238      ;;
10239
10240    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10241      case $cc_basename in
10242      # old Intel for x86_64, which still supported -KPIC.
10243      ecc*)
10244	lt_prog_compiler_wl='-Wl,'
10245	lt_prog_compiler_pic='-KPIC'
10246	lt_prog_compiler_static='-static'
10247        ;;
10248      # icc used to be incompatible with GCC.
10249      # ICC 10 doesn't accept -KPIC any more.
10250      icc* | ifort*)
10251	lt_prog_compiler_wl='-Wl,'
10252	lt_prog_compiler_pic='-fPIC'
10253	lt_prog_compiler_static='-static'
10254        ;;
10255      # Lahey Fortran 8.1.
10256      lf95*)
10257	lt_prog_compiler_wl='-Wl,'
10258	lt_prog_compiler_pic='--shared'
10259	lt_prog_compiler_static='--static'
10260	;;
10261      nagfor*)
10262	# NAG Fortran compiler
10263	lt_prog_compiler_wl='-Wl,-Wl,,'
10264	lt_prog_compiler_pic='-PIC'
10265	lt_prog_compiler_static='-Bstatic'
10266	;;
10267      tcc*)
10268	# Fabrice Bellard et al's Tiny C Compiler
10269	lt_prog_compiler_wl='-Wl,'
10270	lt_prog_compiler_pic='-fPIC'
10271	lt_prog_compiler_static='-static'
10272	;;
10273      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10274        # Portland Group compilers (*not* the Pentium gcc compiler,
10275	# which looks to be a dead project)
10276	lt_prog_compiler_wl='-Wl,'
10277	lt_prog_compiler_pic='-fpic'
10278	lt_prog_compiler_static='-Bstatic'
10279        ;;
10280      ccc*)
10281        lt_prog_compiler_wl='-Wl,'
10282        # All Alpha code is PIC.
10283        lt_prog_compiler_static='-non_shared'
10284        ;;
10285      xl* | bgxl* | bgf* | mpixl*)
10286	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10287	lt_prog_compiler_wl='-Wl,'
10288	lt_prog_compiler_pic='-qpic'
10289	lt_prog_compiler_static='-qstaticlink'
10290	;;
10291      *)
10292	case `$CC -V 2>&1 | sed 5q` in
10293	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10294	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
10295	  lt_prog_compiler_pic='-KPIC'
10296	  lt_prog_compiler_static='-Bstatic'
10297	  lt_prog_compiler_wl=''
10298	  ;;
10299	*Sun\ F* | *Sun*Fortran*)
10300	  lt_prog_compiler_pic='-KPIC'
10301	  lt_prog_compiler_static='-Bstatic'
10302	  lt_prog_compiler_wl='-Qoption ld '
10303	  ;;
10304	*Sun\ C*)
10305	  # Sun C 5.9
10306	  lt_prog_compiler_pic='-KPIC'
10307	  lt_prog_compiler_static='-Bstatic'
10308	  lt_prog_compiler_wl='-Wl,'
10309	  ;;
10310        *Intel*\ [CF]*Compiler*)
10311	  lt_prog_compiler_wl='-Wl,'
10312	  lt_prog_compiler_pic='-fPIC'
10313	  lt_prog_compiler_static='-static'
10314	  ;;
10315	*Portland\ Group*)
10316	  lt_prog_compiler_wl='-Wl,'
10317	  lt_prog_compiler_pic='-fpic'
10318	  lt_prog_compiler_static='-Bstatic'
10319	  ;;
10320	esac
10321	;;
10322      esac
10323      ;;
10324
10325    newsos6)
10326      lt_prog_compiler_pic='-KPIC'
10327      lt_prog_compiler_static='-Bstatic'
10328      ;;
10329
10330    *nto* | *qnx*)
10331      # QNX uses GNU C++, but need to define -shared option too, otherwise
10332      # it will coredump.
10333      lt_prog_compiler_pic='-fPIC -shared'
10334      ;;
10335
10336    osf3* | osf4* | osf5*)
10337      lt_prog_compiler_wl='-Wl,'
10338      # All OSF/1 code is PIC.
10339      lt_prog_compiler_static='-non_shared'
10340      ;;
10341
10342    rdos*)
10343      lt_prog_compiler_static='-non_shared'
10344      ;;
10345
10346    solaris*)
10347      lt_prog_compiler_pic='-KPIC'
10348      lt_prog_compiler_static='-Bstatic'
10349      case $cc_basename in
10350      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10351	lt_prog_compiler_wl='-Qoption ld ';;
10352      *)
10353	lt_prog_compiler_wl='-Wl,';;
10354      esac
10355      ;;
10356
10357    sunos4*)
10358      lt_prog_compiler_wl='-Qoption ld '
10359      lt_prog_compiler_pic='-PIC'
10360      lt_prog_compiler_static='-Bstatic'
10361      ;;
10362
10363    sysv4 | sysv4.2uw2* | sysv4.3*)
10364      lt_prog_compiler_wl='-Wl,'
10365      lt_prog_compiler_pic='-KPIC'
10366      lt_prog_compiler_static='-Bstatic'
10367      ;;
10368
10369    sysv4*MP*)
10370      if test -d /usr/nec; then
10371	lt_prog_compiler_pic='-Kconform_pic'
10372	lt_prog_compiler_static='-Bstatic'
10373      fi
10374      ;;
10375
10376    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10377      lt_prog_compiler_wl='-Wl,'
10378      lt_prog_compiler_pic='-KPIC'
10379      lt_prog_compiler_static='-Bstatic'
10380      ;;
10381
10382    unicos*)
10383      lt_prog_compiler_wl='-Wl,'
10384      lt_prog_compiler_can_build_shared=no
10385      ;;
10386
10387    uts4*)
10388      lt_prog_compiler_pic='-pic'
10389      lt_prog_compiler_static='-Bstatic'
10390      ;;
10391
10392    *)
10393      lt_prog_compiler_can_build_shared=no
10394      ;;
10395    esac
10396  fi
10397
10398case $host_os in
10399  # For platforms that do not support PIC, -DPIC is meaningless:
10400  *djgpp*)
10401    lt_prog_compiler_pic=
10402    ;;
10403  *)
10404    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10405    ;;
10406esac
10407
10408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10409$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10410if ${lt_cv_prog_compiler_pic+:} false; then :
10411  $as_echo_n "(cached) " >&6
10412else
10413  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10414fi
10415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10416$as_echo "$lt_cv_prog_compiler_pic" >&6; }
10417lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10418
10419#
10420# Check to make sure the PIC flag actually works.
10421#
10422if test -n "$lt_prog_compiler_pic"; then
10423  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10424$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10425if ${lt_cv_prog_compiler_pic_works+:} false; then :
10426  $as_echo_n "(cached) " >&6
10427else
10428  lt_cv_prog_compiler_pic_works=no
10429   ac_outfile=conftest.$ac_objext
10430   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10431   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
10432   # Insert the option either (1) after the last *FLAGS variable, or
10433   # (2) before a word containing "conftest.", or (3) at the end.
10434   # Note that $ac_compile itself does not contain backslashes and begins
10435   # with a dollar sign (not a hyphen), so the echo should work correctly.
10436   # The option is referenced via a variable to avoid confusing sed.
10437   lt_compile=`echo "$ac_compile" | $SED \
10438   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10439   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10440   -e 's:$: $lt_compiler_flag:'`
10441   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10442   (eval "$lt_compile" 2>conftest.err)
10443   ac_status=$?
10444   cat conftest.err >&5
10445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10446   if (exit $ac_status) && test -s "$ac_outfile"; then
10447     # The compiler can only warn and ignore the option if not recognized
10448     # So say no if there are warnings other than the usual output.
10449     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10450     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10451     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10452       lt_cv_prog_compiler_pic_works=yes
10453     fi
10454   fi
10455   $RM conftest*
10456
10457fi
10458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10459$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10460
10461if test yes = "$lt_cv_prog_compiler_pic_works"; then
10462    case $lt_prog_compiler_pic in
10463     "" | " "*) ;;
10464     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10465     esac
10466else
10467    lt_prog_compiler_pic=
10468     lt_prog_compiler_can_build_shared=no
10469fi
10470
10471fi
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483#
10484# Check to make sure the static flag actually works.
10485#
10486wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10488$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10489if ${lt_cv_prog_compiler_static_works+:} false; then :
10490  $as_echo_n "(cached) " >&6
10491else
10492  lt_cv_prog_compiler_static_works=no
10493   save_LDFLAGS=$LDFLAGS
10494   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10495   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10496   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10497     # The linker can only warn and ignore the option if not recognized
10498     # So say no if there are warnings
10499     if test -s conftest.err; then
10500       # Append any errors to the config.log.
10501       cat conftest.err 1>&5
10502       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10503       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10504       if diff conftest.exp conftest.er2 >/dev/null; then
10505         lt_cv_prog_compiler_static_works=yes
10506       fi
10507     else
10508       lt_cv_prog_compiler_static_works=yes
10509     fi
10510   fi
10511   $RM -r conftest*
10512   LDFLAGS=$save_LDFLAGS
10513
10514fi
10515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10516$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10517
10518if test yes = "$lt_cv_prog_compiler_static_works"; then
10519    :
10520else
10521    lt_prog_compiler_static=
10522fi
10523
10524
10525
10526
10527
10528
10529
10530  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10531$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10532if ${lt_cv_prog_compiler_c_o+:} false; then :
10533  $as_echo_n "(cached) " >&6
10534else
10535  lt_cv_prog_compiler_c_o=no
10536   $RM -r conftest 2>/dev/null
10537   mkdir conftest
10538   cd conftest
10539   mkdir out
10540   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10541
10542   lt_compiler_flag="-o out/conftest2.$ac_objext"
10543   # Insert the option either (1) after the last *FLAGS variable, or
10544   # (2) before a word containing "conftest.", or (3) at the end.
10545   # Note that $ac_compile itself does not contain backslashes and begins
10546   # with a dollar sign (not a hyphen), so the echo should work correctly.
10547   lt_compile=`echo "$ac_compile" | $SED \
10548   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10549   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10550   -e 's:$: $lt_compiler_flag:'`
10551   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10552   (eval "$lt_compile" 2>out/conftest.err)
10553   ac_status=$?
10554   cat out/conftest.err >&5
10555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10556   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10557   then
10558     # The compiler can only warn and ignore the option if not recognized
10559     # So say no if there are warnings
10560     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10561     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10562     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10563       lt_cv_prog_compiler_c_o=yes
10564     fi
10565   fi
10566   chmod u+w . 2>&5
10567   $RM conftest*
10568   # SGI C++ compiler will create directory out/ii_files/ for
10569   # template instantiation
10570   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10571   $RM out/* && rmdir out
10572   cd ..
10573   $RM -r conftest
10574   $RM conftest*
10575
10576fi
10577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10578$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10579
10580
10581
10582
10583
10584
10585  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10586$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10587if ${lt_cv_prog_compiler_c_o+:} false; then :
10588  $as_echo_n "(cached) " >&6
10589else
10590  lt_cv_prog_compiler_c_o=no
10591   $RM -r conftest 2>/dev/null
10592   mkdir conftest
10593   cd conftest
10594   mkdir out
10595   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10596
10597   lt_compiler_flag="-o out/conftest2.$ac_objext"
10598   # Insert the option either (1) after the last *FLAGS variable, or
10599   # (2) before a word containing "conftest.", or (3) at the end.
10600   # Note that $ac_compile itself does not contain backslashes and begins
10601   # with a dollar sign (not a hyphen), so the echo should work correctly.
10602   lt_compile=`echo "$ac_compile" | $SED \
10603   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10604   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10605   -e 's:$: $lt_compiler_flag:'`
10606   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10607   (eval "$lt_compile" 2>out/conftest.err)
10608   ac_status=$?
10609   cat out/conftest.err >&5
10610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10611   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10612   then
10613     # The compiler can only warn and ignore the option if not recognized
10614     # So say no if there are warnings
10615     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10616     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10617     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10618       lt_cv_prog_compiler_c_o=yes
10619     fi
10620   fi
10621   chmod u+w . 2>&5
10622   $RM conftest*
10623   # SGI C++ compiler will create directory out/ii_files/ for
10624   # template instantiation
10625   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10626   $RM out/* && rmdir out
10627   cd ..
10628   $RM -r conftest
10629   $RM conftest*
10630
10631fi
10632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10633$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10634
10635
10636
10637
10638hard_links=nottested
10639if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10640  # do not overwrite the value of need_locks provided by the user
10641  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10642$as_echo_n "checking if we can lock with hard links... " >&6; }
10643  hard_links=yes
10644  $RM conftest*
10645  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10646  touch conftest.a
10647  ln conftest.a conftest.b 2>&5 || hard_links=no
10648  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10649  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10650$as_echo "$hard_links" >&6; }
10651  if test no = "$hard_links"; then
10652    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10653$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10654    need_locks=warn
10655  fi
10656else
10657  need_locks=no
10658fi
10659
10660
10661
10662
10663
10664
10665  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10666$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10667
10668  runpath_var=
10669  allow_undefined_flag=
10670  always_export_symbols=no
10671  archive_cmds=
10672  archive_expsym_cmds=
10673  compiler_needs_object=no
10674  enable_shared_with_static_runtimes=no
10675  export_dynamic_flag_spec=
10676  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10677  hardcode_automatic=no
10678  hardcode_direct=no
10679  hardcode_direct_absolute=no
10680  hardcode_libdir_flag_spec=
10681  hardcode_libdir_separator=
10682  hardcode_minus_L=no
10683  hardcode_shlibpath_var=unsupported
10684  inherit_rpath=no
10685  link_all_deplibs=unknown
10686  module_cmds=
10687  module_expsym_cmds=
10688  old_archive_from_new_cmds=
10689  old_archive_from_expsyms_cmds=
10690  thread_safe_flag_spec=
10691  whole_archive_flag_spec=
10692  # include_expsyms should be a list of space-separated symbols to be *always*
10693  # included in the symbol list
10694  include_expsyms=
10695  # exclude_expsyms can be an extended regexp of symbols to exclude
10696  # it will be wrapped by ' (' and ')$', so one must not match beginning or
10697  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10698  # as well as any symbol that contains 'd'.
10699  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10700  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10701  # platforms (ab)use it in PIC code, but their linkers get confused if
10702  # the symbol is explicitly referenced.  Since portable code cannot
10703  # rely on this symbol name, it's probably fine to never include it in
10704  # preloaded symbol tables.
10705  # Exclude shared library initialization/finalization symbols.
10706  extract_expsyms_cmds=
10707
10708  case $host_os in
10709  cygwin* | mingw* | pw32* | cegcc*)
10710    # FIXME: the MSVC++ port hasn't been tested in a loooong time
10711    # When not using gcc, we currently assume that we are using
10712    # Microsoft Visual C++.
10713    if test yes != "$GCC"; then
10714      with_gnu_ld=no
10715    fi
10716    ;;
10717  interix*)
10718    # we just hope/assume this is gcc and not c89 (= MSVC++)
10719    with_gnu_ld=yes
10720    ;;
10721  openbsd* | bitrig*)
10722    with_gnu_ld=no
10723    ;;
10724  esac
10725
10726  ld_shlibs=yes
10727
10728  # On some targets, GNU ld is compatible enough with the native linker
10729  # that we're better off using the native interface for both.
10730  lt_use_gnu_ld_interface=no
10731  if test yes = "$with_gnu_ld"; then
10732    case $host_os in
10733      aix*)
10734	# The AIX port of GNU ld has always aspired to compatibility
10735	# with the native linker.  However, as the warning in the GNU ld
10736	# block says, versions before 2.19.5* couldn't really create working
10737	# shared libraries, regardless of the interface used.
10738	case `$LD -v 2>&1` in
10739	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10740	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10741	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10742	  *)
10743	    lt_use_gnu_ld_interface=yes
10744	    ;;
10745	esac
10746	;;
10747      *)
10748	lt_use_gnu_ld_interface=yes
10749	;;
10750    esac
10751  fi
10752
10753  if test yes = "$lt_use_gnu_ld_interface"; then
10754    # If archive_cmds runs LD, not CC, wlarc should be empty
10755    wlarc='$wl'
10756
10757    # Set some defaults for GNU ld with shared library support. These
10758    # are reset later if shared libraries are not supported. Putting them
10759    # here allows them to be overridden if necessary.
10760    runpath_var=LD_RUN_PATH
10761    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10762    export_dynamic_flag_spec='$wl--export-dynamic'
10763    # ancient GNU ld didn't support --whole-archive et. al.
10764    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10765      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10766    else
10767      whole_archive_flag_spec=
10768    fi
10769    supports_anon_versioning=no
10770    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
10771      *GNU\ gold*) supports_anon_versioning=yes ;;
10772      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10773      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10774      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10775      *\ 2.11.*) ;; # other 2.11 versions
10776      *) supports_anon_versioning=yes ;;
10777    esac
10778
10779    # See if GNU ld supports shared libraries.
10780    case $host_os in
10781    aix[3-9]*)
10782      # On AIX/PPC, the GNU linker is very broken
10783      if test ia64 != "$host_cpu"; then
10784	ld_shlibs=no
10785	cat <<_LT_EOF 1>&2
10786
10787*** Warning: the GNU linker, at least up to release 2.19, is reported
10788*** to be unable to reliably create shared libraries on AIX.
10789*** Therefore, libtool is disabling shared libraries support.  If you
10790*** really care for shared libraries, you may want to install binutils
10791*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10792*** You will then need to restart the configuration process.
10793
10794_LT_EOF
10795      fi
10796      ;;
10797
10798    amigaos*)
10799      case $host_cpu in
10800      powerpc)
10801            # see comment about AmigaOS4 .so support
10802            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10803            archive_expsym_cmds=''
10804        ;;
10805      m68k)
10806            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)'
10807            hardcode_libdir_flag_spec='-L$libdir'
10808            hardcode_minus_L=yes
10809        ;;
10810      esac
10811      ;;
10812
10813    beos*)
10814      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10815	allow_undefined_flag=unsupported
10816	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10817	# support --undefined.  This deserves some investigation.  FIXME
10818	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10819      else
10820	ld_shlibs=no
10821      fi
10822      ;;
10823
10824    cygwin* | mingw* | pw32* | cegcc*)
10825      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10826      # as there is no search path for DLLs.
10827      hardcode_libdir_flag_spec='-L$libdir'
10828      export_dynamic_flag_spec='$wl--export-all-symbols'
10829      allow_undefined_flag=unsupported
10830      always_export_symbols=no
10831      enable_shared_with_static_runtimes=yes
10832      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
10833      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10834
10835      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10836        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10837	# If the export-symbols file already is a .def file, use it as
10838	# is; otherwise, prepend EXPORTS...
10839	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10840          cp $export_symbols $output_objdir/$soname.def;
10841        else
10842          echo EXPORTS > $output_objdir/$soname.def;
10843          cat $export_symbols >> $output_objdir/$soname.def;
10844        fi~
10845        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10846      else
10847	ld_shlibs=no
10848      fi
10849      ;;
10850
10851    haiku*)
10852      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10853      link_all_deplibs=yes
10854      ;;
10855
10856    os2*)
10857      hardcode_libdir_flag_spec='-L$libdir'
10858      hardcode_minus_L=yes
10859      allow_undefined_flag=unsupported
10860      shrext_cmds=.dll
10861      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10862	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10863	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10864	$ECHO EXPORTS >> $output_objdir/$libname.def~
10865	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10866	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10867	emximp -o $lib $output_objdir/$libname.def'
10868      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10869	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10870	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10871	$ECHO EXPORTS >> $output_objdir/$libname.def~
10872	prefix_cmds="$SED"~
10873	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10874	  prefix_cmds="$prefix_cmds -e 1d";
10875	fi~
10876	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10877	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10878	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10879	emximp -o $lib $output_objdir/$libname.def'
10880      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10881      enable_shared_with_static_runtimes=yes
10882      ;;
10883
10884    interix[3-9]*)
10885      hardcode_direct=no
10886      hardcode_shlibpath_var=no
10887      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10888      export_dynamic_flag_spec='$wl-E'
10889      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10890      # Instead, shared libraries are loaded at an image base (0x10000000 by
10891      # default) and relocated if they conflict, which is a slow very memory
10892      # consuming and fragmenting process.  To avoid this, we pick a random,
10893      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10894      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10895      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10896      archive_expsym_cmds='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10897      ;;
10898
10899    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10900      tmp_diet=no
10901      if test linux-dietlibc = "$host_os"; then
10902	case $cc_basename in
10903	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
10904	esac
10905      fi
10906      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10907	 && test no = "$tmp_diet"
10908      then
10909	tmp_addflag=' $pic_flag'
10910	tmp_sharedflag='-shared'
10911	case $cc_basename,$host_cpu in
10912        pgcc*)				# Portland Group C compiler
10913	  whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
10914	  tmp_addflag=' $pic_flag'
10915	  ;;
10916	pgf77* | pgf90* | pgf95* | pgfortran*)
10917					# Portland Group f77 and f90 compilers
10918	  whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
10919	  tmp_addflag=' $pic_flag -Mnomain' ;;
10920	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
10921	  tmp_addflag=' -i_dynamic' ;;
10922	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
10923	  tmp_addflag=' -i_dynamic -nofor_main' ;;
10924	ifc* | ifort*)			# Intel Fortran compiler
10925	  tmp_addflag=' -nofor_main' ;;
10926	lf95*)				# Lahey Fortran 8.1
10927	  whole_archive_flag_spec=
10928	  tmp_sharedflag='--shared' ;;
10929        nagfor*)                        # NAGFOR 5.3
10930          tmp_sharedflag='-Wl,-shared' ;;
10931	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10932	  tmp_sharedflag='-qmkshrobj'
10933	  tmp_addflag= ;;
10934	nvcc*)	# Cuda Compiler Driver 2.2
10935	  whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
10936	  compiler_needs_object=yes
10937	  ;;
10938	esac
10939	case `$CC -V 2>&1 | sed 5q` in
10940	*Sun\ C*)			# Sun C 5.9
10941	  whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
10942	  compiler_needs_object=yes
10943	  tmp_sharedflag='-G' ;;
10944	*Sun\ F*)			# Sun Fortran 8.3
10945	  tmp_sharedflag='-G' ;;
10946	esac
10947	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10948
10949        if test yes = "$supports_anon_versioning"; then
10950          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10951            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10952            echo "local: *; };" >> $output_objdir/$libname.ver~
10953            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10954        fi
10955
10956	case $cc_basename in
10957	tcc*)
10958	  export_dynamic_flag_spec='-rdynamic'
10959	  ;;
10960	xlf* | bgf* | bgxlf* | mpixlf*)
10961	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10962	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10963	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10964	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10965	  if test yes = "$supports_anon_versioning"; then
10966	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10967              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10968              echo "local: *; };" >> $output_objdir/$libname.ver~
10969              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10970	  fi
10971	  ;;
10972	esac
10973      else
10974        ld_shlibs=no
10975      fi
10976      ;;
10977
10978    netbsd*)
10979      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10980	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10981	wlarc=
10982      else
10983	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10984	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10985      fi
10986      ;;
10987
10988    solaris*)
10989      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10990	ld_shlibs=no
10991	cat <<_LT_EOF 1>&2
10992
10993*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10994*** create shared libraries on Solaris systems.  Therefore, libtool
10995*** is disabling shared libraries support.  We urge you to upgrade GNU
10996*** binutils to release 2.9.1 or newer.  Another option is to modify
10997*** your PATH or compiler configuration so that the native linker is
10998*** used, and then restart.
10999
11000_LT_EOF
11001      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11002	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11003	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11004      else
11005	ld_shlibs=no
11006      fi
11007      ;;
11008
11009    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11010      case `$LD -v 2>&1` in
11011        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11012	ld_shlibs=no
11013	cat <<_LT_EOF 1>&2
11014
11015*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
11016*** reliably create shared libraries on SCO systems.  Therefore, libtool
11017*** is disabling shared libraries support.  We urge you to upgrade GNU
11018*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
11019*** your PATH or compiler configuration so that the native linker is
11020*** used, and then restart.
11021
11022_LT_EOF
11023	;;
11024	*)
11025	  # For security reasons, it is highly recommended that you always
11026	  # use absolute paths for naming shared libraries, and exclude the
11027	  # DT_RUNPATH tag from executables and libraries.  But doing so
11028	  # requires that you compile everything twice, which is a pain.
11029	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11030	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11031	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11032	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11033	  else
11034	    ld_shlibs=no
11035	  fi
11036	;;
11037      esac
11038      ;;
11039
11040    sunos4*)
11041      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11042      wlarc=
11043      hardcode_direct=yes
11044      hardcode_shlibpath_var=no
11045      ;;
11046
11047    *)
11048      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11049	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11050	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11051      else
11052	ld_shlibs=no
11053      fi
11054      ;;
11055    esac
11056
11057    if test no = "$ld_shlibs"; then
11058      runpath_var=
11059      hardcode_libdir_flag_spec=
11060      export_dynamic_flag_spec=
11061      whole_archive_flag_spec=
11062    fi
11063  else
11064    # PORTME fill in a description of your system's linker (not GNU ld)
11065    case $host_os in
11066    aix3*)
11067      allow_undefined_flag=unsupported
11068      always_export_symbols=yes
11069      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'
11070      # Note: this linker hardcodes the directories in LIBPATH if there
11071      # are no directories specified by -L.
11072      hardcode_minus_L=yes
11073      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
11074	# Neither direct hardcoding nor static linking is supported with a
11075	# broken collect2.
11076	hardcode_direct=unsupported
11077      fi
11078      ;;
11079
11080    aix[4-9]*)
11081      if test ia64 = "$host_cpu"; then
11082	# On IA64, the linker does run time linking by default, so we don't
11083	# have to do anything special.
11084	aix_use_runtimelinking=no
11085	exp_sym_flag='-Bexport'
11086	no_entry_flag=
11087      else
11088	# If we're using GNU nm, then we don't want the "-C" option.
11089	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
11090	# Without the "-l" option, or with the "-B" option, AIX nm treats
11091	# weak defined symbols like other global defined symbols, whereas
11092	# GNU nm marks them as "W".
11093	# While the 'weak' keyword is ignored in the Export File, we need
11094	# it in the Import File for the 'aix-soname' feature, so we have
11095	# to replace the "-B" option with "-P" for AIX nm.
11096	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11097	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
11098	else
11099	  export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
11100	fi
11101	aix_use_runtimelinking=no
11102
11103	# Test if we are trying to use run time linking or normal
11104	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
11105	# have runtime linking enabled, and use it for executables.
11106	# For shared libraries, we enable/disable runtime linking
11107	# depending on the kind of the shared library created -
11108	# when "with_aix_soname,aix_use_runtimelinking" is:
11109	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
11110	# "aix,yes"  lib.so          shared, rtl:yes, for executables
11111	#            lib.a           static archive
11112	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
11113	#            lib.a(lib.so.V) shared, rtl:no,  for executables
11114	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
11115	#            lib.a(lib.so.V) shared, rtl:no
11116	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
11117	#            lib.a           static archive
11118	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11119	  for ld_flag in $LDFLAGS; do
11120	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
11121	    aix_use_runtimelinking=yes
11122	    break
11123	  fi
11124	  done
11125	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
11126	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
11127	    # so we don't have lib.a shared libs to link our executables.
11128	    # We have to force runtime linking in this case.
11129	    aix_use_runtimelinking=yes
11130	    LDFLAGS="$LDFLAGS -Wl,-brtl"
11131	  fi
11132	  ;;
11133	esac
11134
11135	exp_sym_flag='-bexport'
11136	no_entry_flag='-bnoentry'
11137      fi
11138
11139      # When large executables or shared objects are built, AIX ld can
11140      # have problems creating the table of contents.  If linking a library
11141      # or program results in "error TOC overflow" add -mminimal-toc to
11142      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11143      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11144
11145      archive_cmds=''
11146      hardcode_direct=yes
11147      hardcode_direct_absolute=yes
11148      hardcode_libdir_separator=':'
11149      link_all_deplibs=yes
11150      file_list_spec='$wl-f,'
11151      case $with_aix_soname,$aix_use_runtimelinking in
11152      aix,*) ;; # traditional, no import file
11153      svr4,* | *,yes) # use import file
11154	# The Import File defines what to hardcode.
11155	hardcode_direct=no
11156	hardcode_direct_absolute=no
11157	;;
11158      esac
11159
11160      if test yes = "$GCC"; then
11161	case $host_os in aix4.[012]|aix4.[012].*)
11162	# We only want to do this on AIX 4.2 and lower, the check
11163	# below for broken collect2 doesn't work under 4.3+
11164	  collect2name=`$CC -print-prog-name=collect2`
11165	  if test -f "$collect2name" &&
11166	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11167	  then
11168	  # We have reworked collect2
11169	  :
11170	  else
11171	  # We have old collect2
11172	  hardcode_direct=unsupported
11173	  # It fails to find uninstalled libraries when the uninstalled
11174	  # path is not listed in the libpath.  Setting hardcode_minus_L
11175	  # to unsupported forces relinking
11176	  hardcode_minus_L=yes
11177	  hardcode_libdir_flag_spec='-L$libdir'
11178	  hardcode_libdir_separator=
11179	  fi
11180	  ;;
11181	esac
11182	shared_flag='-shared'
11183	if test yes = "$aix_use_runtimelinking"; then
11184	  shared_flag="$shared_flag "'$wl-G'
11185	fi
11186	# Need to ensure runtime linking is disabled for the traditional
11187	# shared library, or the linker may eventually find shared libraries
11188	# /with/ Import File - we do not want to mix them.
11189	shared_flag_aix='-shared'
11190	shared_flag_svr4='-shared $wl-G'
11191      else
11192	# not using gcc
11193	if test ia64 = "$host_cpu"; then
11194	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11195	# chokes on -Wl,-G. The following line is correct:
11196	  shared_flag='-G'
11197	else
11198	  if test yes = "$aix_use_runtimelinking"; then
11199	    shared_flag='$wl-G'
11200	  else
11201	    shared_flag='$wl-bM:SRE'
11202	  fi
11203	  shared_flag_aix='$wl-bM:SRE'
11204	  shared_flag_svr4='$wl-G'
11205	fi
11206      fi
11207
11208      export_dynamic_flag_spec='$wl-bexpall'
11209      # It seems that -bexpall does not export symbols beginning with
11210      # underscore (_), so it is better to generate a list of symbols to export.
11211      always_export_symbols=yes
11212      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
11213	# Warning - without using the other runtime loading flags (-brtl),
11214	# -berok will link without error, but may produce a broken library.
11215	allow_undefined_flag='-berok'
11216        # Determine the default libpath from the value encoded in an
11217        # empty executable.
11218        if test set = "${lt_cv_aix_libpath+set}"; then
11219  aix_libpath=$lt_cv_aix_libpath
11220else
11221  if ${lt_cv_aix_libpath_+:} false; then :
11222  $as_echo_n "(cached) " >&6
11223else
11224  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11225/* end confdefs.h.  */
11226
11227int
11228main ()
11229{
11230
11231  ;
11232  return 0;
11233}
11234_ACEOF
11235if ac_fn_c_try_link "$LINENO"; then :
11236
11237  lt_aix_libpath_sed='
11238      /Import File Strings/,/^$/ {
11239	  /^0/ {
11240	      s/^0  *\([^ ]*\) *$/\1/
11241	      p
11242	  }
11243      }'
11244  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11245  # Check for a 64-bit object if we didn't find anything.
11246  if test -z "$lt_cv_aix_libpath_"; then
11247    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11248  fi
11249fi
11250rm -f core conftest.err conftest.$ac_objext \
11251    conftest$ac_exeext conftest.$ac_ext
11252  if test -z "$lt_cv_aix_libpath_"; then
11253    lt_cv_aix_libpath_=/usr/lib:/lib
11254  fi
11255
11256fi
11257
11258  aix_libpath=$lt_cv_aix_libpath_
11259fi
11260
11261        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11262        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
11263      else
11264	if test ia64 = "$host_cpu"; then
11265	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
11266	  allow_undefined_flag="-z nodefs"
11267	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
11268	else
11269	 # Determine the default libpath from the value encoded in an
11270	 # empty executable.
11271	 if test set = "${lt_cv_aix_libpath+set}"; then
11272  aix_libpath=$lt_cv_aix_libpath
11273else
11274  if ${lt_cv_aix_libpath_+:} false; then :
11275  $as_echo_n "(cached) " >&6
11276else
11277  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11278/* end confdefs.h.  */
11279
11280int
11281main ()
11282{
11283
11284  ;
11285  return 0;
11286}
11287_ACEOF
11288if ac_fn_c_try_link "$LINENO"; then :
11289
11290  lt_aix_libpath_sed='
11291      /Import File Strings/,/^$/ {
11292	  /^0/ {
11293	      s/^0  *\([^ ]*\) *$/\1/
11294	      p
11295	  }
11296      }'
11297  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11298  # Check for a 64-bit object if we didn't find anything.
11299  if test -z "$lt_cv_aix_libpath_"; then
11300    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11301  fi
11302fi
11303rm -f core conftest.err conftest.$ac_objext \
11304    conftest$ac_exeext conftest.$ac_ext
11305  if test -z "$lt_cv_aix_libpath_"; then
11306    lt_cv_aix_libpath_=/usr/lib:/lib
11307  fi
11308
11309fi
11310
11311  aix_libpath=$lt_cv_aix_libpath_
11312fi
11313
11314	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11315	  # Warning - without using the other run time loading flags,
11316	  # -berok will link without error, but may produce a broken library.
11317	  no_undefined_flag=' $wl-bernotok'
11318	  allow_undefined_flag=' $wl-berok'
11319	  if test yes = "$with_gnu_ld"; then
11320	    # We only use this code for GNU lds that support --whole-archive.
11321	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
11322	  else
11323	    # Exported symbols can be pulled into shared objects from archives
11324	    whole_archive_flag_spec='$convenience'
11325	  fi
11326	  archive_cmds_need_lc=yes
11327	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
11328	  # -brtl affects multiple linker settings, -berok does not and is overridden later
11329	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
11330	  if test svr4 != "$with_aix_soname"; then
11331	    # This is similar to how AIX traditionally builds its shared libraries.
11332	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
11333	  fi
11334	  if test aix != "$with_aix_soname"; then
11335	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
11336	  else
11337	    # used by -dlpreopen to get the symbols
11338	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
11339	  fi
11340	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
11341	fi
11342      fi
11343      ;;
11344
11345    amigaos*)
11346      case $host_cpu in
11347      powerpc)
11348            # see comment about AmigaOS4 .so support
11349            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11350            archive_expsym_cmds=''
11351        ;;
11352      m68k)
11353            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)'
11354            hardcode_libdir_flag_spec='-L$libdir'
11355            hardcode_minus_L=yes
11356        ;;
11357      esac
11358      ;;
11359
11360    bsdi[45]*)
11361      export_dynamic_flag_spec=-rdynamic
11362      ;;
11363
11364    cygwin* | mingw* | pw32* | cegcc*)
11365      # When not using gcc, we currently assume that we are using
11366      # Microsoft Visual C++.
11367      # hardcode_libdir_flag_spec is actually meaningless, as there is
11368      # no search path for DLLs.
11369      case $cc_basename in
11370      cl*)
11371	# Native MSVC
11372	hardcode_libdir_flag_spec=' '
11373	allow_undefined_flag=unsupported
11374	always_export_symbols=yes
11375	file_list_spec='@'
11376	# Tell ltmain to make .lib files, not .a files.
11377	libext=lib
11378	# Tell ltmain to make .dll files, not .so files.
11379	shrext_cmds=.dll
11380	# FIXME: Setting linknames here is a bad hack.
11381	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
11382	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
11383            cp "$export_symbols" "$output_objdir/$soname.def";
11384            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11385          else
11386            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11387          fi~
11388          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11389          linknames='
11390	# The linker will not automatically build a static lib if we build a DLL.
11391	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11392	enable_shared_with_static_runtimes=yes
11393	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11394	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11395	# Don't use ranlib
11396	old_postinstall_cmds='chmod 644 $oldlib'
11397	postlink_cmds='lt_outputfile="@OUTPUT@"~
11398          lt_tool_outputfile="@TOOL_OUTPUT@"~
11399          case $lt_outputfile in
11400            *.exe|*.EXE) ;;
11401            *)
11402              lt_outputfile=$lt_outputfile.exe
11403              lt_tool_outputfile=$lt_tool_outputfile.exe
11404              ;;
11405          esac~
11406          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11407            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11408            $RM "$lt_outputfile.manifest";
11409          fi'
11410	;;
11411      *)
11412	# Assume MSVC wrapper
11413	hardcode_libdir_flag_spec=' '
11414	allow_undefined_flag=unsupported
11415	# Tell ltmain to make .lib files, not .a files.
11416	libext=lib
11417	# Tell ltmain to make .dll files, not .so files.
11418	shrext_cmds=.dll
11419	# FIXME: Setting linknames here is a bad hack.
11420	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11421	# The linker will automatically build a .lib file if we build a DLL.
11422	old_archive_from_new_cmds='true'
11423	# FIXME: Should let the user specify the lib program.
11424	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11425	enable_shared_with_static_runtimes=yes
11426	;;
11427      esac
11428      ;;
11429
11430    darwin* | rhapsody*)
11431
11432
11433  archive_cmds_need_lc=no
11434  hardcode_direct=no
11435  hardcode_automatic=yes
11436  hardcode_shlibpath_var=unsupported
11437  if test yes = "$lt_cv_ld_force_load"; then
11438    whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
11439
11440  else
11441    whole_archive_flag_spec=''
11442  fi
11443  link_all_deplibs=yes
11444  allow_undefined_flag=$_lt_dar_allow_undefined
11445  case $cc_basename in
11446     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11447     *) _lt_dar_can_shared=$GCC ;;
11448  esac
11449  if test yes = "$_lt_dar_can_shared"; then
11450    output_verbose_link_cmd=func_echo_all
11451    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11452    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11453    archive_expsym_cmds="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
11454    module_expsym_cmds="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
11455
11456  else
11457  ld_shlibs=no
11458  fi
11459
11460      ;;
11461
11462    dgux*)
11463      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11464      hardcode_libdir_flag_spec='-L$libdir'
11465      hardcode_shlibpath_var=no
11466      ;;
11467
11468    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11469    # support.  Future versions do this automatically, but an explicit c++rt0.o
11470    # does not break anything, and helps significantly (at the cost of a little
11471    # extra space).
11472    freebsd2.2*)
11473      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11474      hardcode_libdir_flag_spec='-R$libdir'
11475      hardcode_direct=yes
11476      hardcode_shlibpath_var=no
11477      ;;
11478
11479    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11480    freebsd2.*)
11481      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11482      hardcode_direct=yes
11483      hardcode_minus_L=yes
11484      hardcode_shlibpath_var=no
11485      ;;
11486
11487    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11488    freebsd* | dragonfly*)
11489      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11490      hardcode_libdir_flag_spec='-R$libdir'
11491      hardcode_direct=yes
11492      hardcode_shlibpath_var=no
11493      ;;
11494
11495    hpux9*)
11496      if test yes = "$GCC"; then
11497	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
11498      else
11499	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
11500      fi
11501      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11502      hardcode_libdir_separator=:
11503      hardcode_direct=yes
11504
11505      # hardcode_minus_L: Not really in the search PATH,
11506      # but as the default location of the library.
11507      hardcode_minus_L=yes
11508      export_dynamic_flag_spec='$wl-E'
11509      ;;
11510
11511    hpux10*)
11512      if test yes,no = "$GCC,$with_gnu_ld"; then
11513	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11514      else
11515	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11516      fi
11517      if test no = "$with_gnu_ld"; then
11518	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11519	hardcode_libdir_separator=:
11520	hardcode_direct=yes
11521	hardcode_direct_absolute=yes
11522	export_dynamic_flag_spec='$wl-E'
11523	# hardcode_minus_L: Not really in the search PATH,
11524	# but as the default location of the library.
11525	hardcode_minus_L=yes
11526      fi
11527      ;;
11528
11529    hpux11*)
11530      if test yes,no = "$GCC,$with_gnu_ld"; then
11531	case $host_cpu in
11532	hppa*64*)
11533	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11534	  ;;
11535	ia64*)
11536	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11537	  ;;
11538	*)
11539	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11540	  ;;
11541	esac
11542      else
11543	case $host_cpu in
11544	hppa*64*)
11545	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11546	  ;;
11547	ia64*)
11548	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11549	  ;;
11550	*)
11551
11552	  # Older versions of the 11.00 compiler do not understand -b yet
11553	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11554	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11555$as_echo_n "checking if $CC understands -b... " >&6; }
11556if ${lt_cv_prog_compiler__b+:} false; then :
11557  $as_echo_n "(cached) " >&6
11558else
11559  lt_cv_prog_compiler__b=no
11560   save_LDFLAGS=$LDFLAGS
11561   LDFLAGS="$LDFLAGS -b"
11562   echo "$lt_simple_link_test_code" > conftest.$ac_ext
11563   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11564     # The linker can only warn and ignore the option if not recognized
11565     # So say no if there are warnings
11566     if test -s conftest.err; then
11567       # Append any errors to the config.log.
11568       cat conftest.err 1>&5
11569       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11570       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11571       if diff conftest.exp conftest.er2 >/dev/null; then
11572         lt_cv_prog_compiler__b=yes
11573       fi
11574     else
11575       lt_cv_prog_compiler__b=yes
11576     fi
11577   fi
11578   $RM -r conftest*
11579   LDFLAGS=$save_LDFLAGS
11580
11581fi
11582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11583$as_echo "$lt_cv_prog_compiler__b" >&6; }
11584
11585if test yes = "$lt_cv_prog_compiler__b"; then
11586    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11587else
11588    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11589fi
11590
11591	  ;;
11592	esac
11593      fi
11594      if test no = "$with_gnu_ld"; then
11595	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11596	hardcode_libdir_separator=:
11597
11598	case $host_cpu in
11599	hppa*64*|ia64*)
11600	  hardcode_direct=no
11601	  hardcode_shlibpath_var=no
11602	  ;;
11603	*)
11604	  hardcode_direct=yes
11605	  hardcode_direct_absolute=yes
11606	  export_dynamic_flag_spec='$wl-E'
11607
11608	  # hardcode_minus_L: Not really in the search PATH,
11609	  # but as the default location of the library.
11610	  hardcode_minus_L=yes
11611	  ;;
11612	esac
11613      fi
11614      ;;
11615
11616    irix5* | irix6* | nonstopux*)
11617      if test yes = "$GCC"; then
11618	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
11619	# Try to use the -exported_symbol ld option, if it does not
11620	# work, assume that -exports_file does not work either and
11621	# implicitly export all symbols.
11622	# This should be the same for all languages, so no per-tag cache variable.
11623	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11624$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11625if ${lt_cv_irix_exported_symbol+:} false; then :
11626  $as_echo_n "(cached) " >&6
11627else
11628  save_LDFLAGS=$LDFLAGS
11629	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11630	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11631/* end confdefs.h.  */
11632int foo (void) { return 0; }
11633_ACEOF
11634if ac_fn_c_try_link "$LINENO"; then :
11635  lt_cv_irix_exported_symbol=yes
11636else
11637  lt_cv_irix_exported_symbol=no
11638fi
11639rm -f core conftest.err conftest.$ac_objext \
11640    conftest$ac_exeext conftest.$ac_ext
11641           LDFLAGS=$save_LDFLAGS
11642fi
11643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11644$as_echo "$lt_cv_irix_exported_symbol" >&6; }
11645	if test yes = "$lt_cv_irix_exported_symbol"; then
11646          archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
11647	fi
11648      else
11649	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
11650	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
11651      fi
11652      archive_cmds_need_lc='no'
11653      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11654      hardcode_libdir_separator=:
11655      inherit_rpath=yes
11656      link_all_deplibs=yes
11657      ;;
11658
11659    linux*)
11660      case $cc_basename in
11661      tcc*)
11662	# Fabrice Bellard et al's Tiny C Compiler
11663	ld_shlibs=yes
11664	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11665	;;
11666      esac
11667      ;;
11668
11669    netbsd*)
11670      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11671	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11672      else
11673	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11674      fi
11675      hardcode_libdir_flag_spec='-R$libdir'
11676      hardcode_direct=yes
11677      hardcode_shlibpath_var=no
11678      ;;
11679
11680    newsos6)
11681      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11682      hardcode_direct=yes
11683      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11684      hardcode_libdir_separator=:
11685      hardcode_shlibpath_var=no
11686      ;;
11687
11688    *nto* | *qnx*)
11689      ;;
11690
11691    openbsd* | bitrig*)
11692      if test -f /usr/libexec/ld.so; then
11693	hardcode_direct=yes
11694	hardcode_shlibpath_var=no
11695	hardcode_direct_absolute=yes
11696	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11697	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11698	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11699	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11700	  export_dynamic_flag_spec='$wl-E'
11701	else
11702	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11703	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11704	fi
11705      else
11706	ld_shlibs=no
11707      fi
11708      ;;
11709
11710    os2*)
11711      hardcode_libdir_flag_spec='-L$libdir'
11712      hardcode_minus_L=yes
11713      allow_undefined_flag=unsupported
11714      shrext_cmds=.dll
11715      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11716	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11717	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11718	$ECHO EXPORTS >> $output_objdir/$libname.def~
11719	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11720	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11721	emximp -o $lib $output_objdir/$libname.def'
11722      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11723	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11724	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11725	$ECHO EXPORTS >> $output_objdir/$libname.def~
11726	prefix_cmds="$SED"~
11727	if test EXPORTS = "`$SED 1q $export_symbols`"; then
11728	  prefix_cmds="$prefix_cmds -e 1d";
11729	fi~
11730	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11731	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11732	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11733	emximp -o $lib $output_objdir/$libname.def'
11734      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11735      enable_shared_with_static_runtimes=yes
11736      ;;
11737
11738    osf3*)
11739      if test yes = "$GCC"; then
11740	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11741	archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
11742      else
11743	allow_undefined_flag=' -expect_unresolved \*'
11744	archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
11745      fi
11746      archive_cmds_need_lc='no'
11747      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11748      hardcode_libdir_separator=:
11749      ;;
11750
11751    osf4* | osf5*)	# as osf3* with the addition of -msym flag
11752      if test yes = "$GCC"; then
11753	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11754	archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
11755	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11756      else
11757	allow_undefined_flag=' -expect_unresolved \*'
11758	archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
11759	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
11760          $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
11761
11762	# Both c and cxx compiler support -rpath directly
11763	hardcode_libdir_flag_spec='-rpath $libdir'
11764      fi
11765      archive_cmds_need_lc='no'
11766      hardcode_libdir_separator=:
11767      ;;
11768
11769    solaris*)
11770      no_undefined_flag=' -z defs'
11771      if test yes = "$GCC"; then
11772	wlarc='$wl'
11773	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11774	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11775          $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11776      else
11777	case `$CC -V 2>&1` in
11778	*"Compilers 5.0"*)
11779	  wlarc=''
11780	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11781	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11782            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11783	  ;;
11784	*)
11785	  wlarc='$wl'
11786	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11787	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11788            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11789	  ;;
11790	esac
11791      fi
11792      hardcode_libdir_flag_spec='-R$libdir'
11793      hardcode_shlibpath_var=no
11794      case $host_os in
11795      solaris2.[0-5] | solaris2.[0-5].*) ;;
11796      *)
11797	# The compiler driver will combine and reorder linker options,
11798	# but understands '-z linker_flag'.  GCC discards it without '$wl',
11799	# but is careful enough not to reorder.
11800	# Supported since Solaris 2.6 (maybe 2.5.1?)
11801	if test yes = "$GCC"; then
11802	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11803	else
11804	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11805	fi
11806	;;
11807      esac
11808      link_all_deplibs=yes
11809      ;;
11810
11811    sunos4*)
11812      if test sequent = "$host_vendor"; then
11813	# Use $CC to link under sequent, because it throws in some extra .o
11814	# files that make .init and .fini sections work.
11815	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11816      else
11817	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11818      fi
11819      hardcode_libdir_flag_spec='-L$libdir'
11820      hardcode_direct=yes
11821      hardcode_minus_L=yes
11822      hardcode_shlibpath_var=no
11823      ;;
11824
11825    sysv4)
11826      case $host_vendor in
11827	sni)
11828	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11829	  hardcode_direct=yes # is this really true???
11830	;;
11831	siemens)
11832	  ## LD is ld it makes a PLAMLIB
11833	  ## CC just makes a GrossModule.
11834	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11835	  reload_cmds='$CC -r -o $output$reload_objs'
11836	  hardcode_direct=no
11837        ;;
11838	motorola)
11839	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11840	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11841	;;
11842      esac
11843      runpath_var='LD_RUN_PATH'
11844      hardcode_shlibpath_var=no
11845      ;;
11846
11847    sysv4.3*)
11848      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11849      hardcode_shlibpath_var=no
11850      export_dynamic_flag_spec='-Bexport'
11851      ;;
11852
11853    sysv4*MP*)
11854      if test -d /usr/nec; then
11855	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11856	hardcode_shlibpath_var=no
11857	runpath_var=LD_RUN_PATH
11858	hardcode_runpath_var=yes
11859	ld_shlibs=yes
11860      fi
11861      ;;
11862
11863    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11864      no_undefined_flag='$wl-z,text'
11865      archive_cmds_need_lc=no
11866      hardcode_shlibpath_var=no
11867      runpath_var='LD_RUN_PATH'
11868
11869      if test yes = "$GCC"; then
11870	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11871	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11872      else
11873	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11874	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11875      fi
11876      ;;
11877
11878    sysv5* | sco3.2v5* | sco5v6*)
11879      # Note: We CANNOT use -z defs as we might desire, because we do not
11880      # link with -lc, and that would cause any symbols used from libc to
11881      # always be unresolved, which means just about no library would
11882      # ever link correctly.  If we're not using GNU ld we use -z text
11883      # though, which does catch some bad symbols but isn't as heavy-handed
11884      # as -z defs.
11885      no_undefined_flag='$wl-z,text'
11886      allow_undefined_flag='$wl-z,nodefs'
11887      archive_cmds_need_lc=no
11888      hardcode_shlibpath_var=no
11889      hardcode_libdir_flag_spec='$wl-R,$libdir'
11890      hardcode_libdir_separator=':'
11891      link_all_deplibs=yes
11892      export_dynamic_flag_spec='$wl-Bexport'
11893      runpath_var='LD_RUN_PATH'
11894
11895      if test yes = "$GCC"; then
11896	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11897	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11898      else
11899	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11900	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11901      fi
11902      ;;
11903
11904    uts4*)
11905      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11906      hardcode_libdir_flag_spec='-L$libdir'
11907      hardcode_shlibpath_var=no
11908      ;;
11909
11910    *)
11911      ld_shlibs=no
11912      ;;
11913    esac
11914
11915    if test sni = "$host_vendor"; then
11916      case $host in
11917      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11918	export_dynamic_flag_spec='$wl-Blargedynsym'
11919	;;
11920      esac
11921    fi
11922  fi
11923
11924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11925$as_echo "$ld_shlibs" >&6; }
11926test no = "$ld_shlibs" && can_build_shared=no
11927
11928with_gnu_ld=$with_gnu_ld
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944#
11945# Do we need to explicitly link libc?
11946#
11947case "x$archive_cmds_need_lc" in
11948x|xyes)
11949  # Assume -lc should be added
11950  archive_cmds_need_lc=yes
11951
11952  if test yes,yes = "$GCC,$enable_shared"; then
11953    case $archive_cmds in
11954    *'~'*)
11955      # FIXME: we may have to deal with multi-command sequences.
11956      ;;
11957    '$CC '*)
11958      # Test whether the compiler implicitly links with -lc since on some
11959      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11960      # to ld, don't add -lc before -lgcc.
11961      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11962$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11963if ${lt_cv_archive_cmds_need_lc+:} false; then :
11964  $as_echo_n "(cached) " >&6
11965else
11966  $RM conftest*
11967	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11968
11969	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11970  (eval $ac_compile) 2>&5
11971  ac_status=$?
11972  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11973  test $ac_status = 0; } 2>conftest.err; then
11974	  soname=conftest
11975	  lib=conftest
11976	  libobjs=conftest.$ac_objext
11977	  deplibs=
11978	  wl=$lt_prog_compiler_wl
11979	  pic_flag=$lt_prog_compiler_pic
11980	  compiler_flags=-v
11981	  linker_flags=-v
11982	  verstring=
11983	  output_objdir=.
11984	  libname=conftest
11985	  lt_save_allow_undefined_flag=$allow_undefined_flag
11986	  allow_undefined_flag=
11987	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11988  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11989  ac_status=$?
11990  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11991  test $ac_status = 0; }
11992	  then
11993	    lt_cv_archive_cmds_need_lc=no
11994	  else
11995	    lt_cv_archive_cmds_need_lc=yes
11996	  fi
11997	  allow_undefined_flag=$lt_save_allow_undefined_flag
11998	else
11999	  cat conftest.err 1>&5
12000	fi
12001	$RM conftest*
12002
12003fi
12004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12005$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
12006      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12007      ;;
12008    esac
12009  fi
12010  ;;
12011esac
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034
12035
12036
12037
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049
12050
12051
12052
12053
12054
12055
12056
12057
12058
12059
12060
12061
12062
12063
12064
12065
12066
12067
12068
12069
12070
12071
12072
12073
12074
12075
12076
12077
12078
12079
12080
12081
12082
12083
12084
12085
12086
12087
12088
12089
12090
12091
12092
12093
12094
12095
12096
12097
12098
12099
12100
12101
12102
12103
12104
12105
12106
12107
12108
12109
12110
12111
12112
12113
12114
12115
12116
12117
12118
12119
12120
12121
12122
12123
12124
12125
12126
12127
12128
12129
12130
12131
12132
12133
12134
12135
12136
12137
12138
12139
12140
12141
12142
12143
12144
12145
12146
12147
12148
12149
12150
12151
12152
12153
12154
12155
12156
12157
12158
12159
12160
12161
12162
12163
12164  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12165$as_echo_n "checking dynamic linker characteristics... " >&6; }
12166
12167if test yes = "$GCC"; then
12168  case $host_os in
12169    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
12170    *) lt_awk_arg='/^libraries:/' ;;
12171  esac
12172  case $host_os in
12173    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
12174    *) lt_sed_strip_eq='s|=/|/|g' ;;
12175  esac
12176  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12177  case $lt_search_path_spec in
12178  *\;*)
12179    # if the path contains ";" then we assume it to be the separator
12180    # otherwise default to the standard path separator (i.e. ":") - it is
12181    # assumed that no part of a normal pathname contains ";" but that should
12182    # okay in the real world where ";" in dirpaths is itself problematic.
12183    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12184    ;;
12185  *)
12186    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12187    ;;
12188  esac
12189  # Ok, now we have the path, separated by spaces, we can step through it
12190  # and add multilib dir if necessary...
12191  lt_tmp_lt_search_path_spec=
12192  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12193  # ...but if some path component already ends with the multilib dir we assume
12194  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
12195  case "$lt_multi_os_dir; $lt_search_path_spec " in
12196  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
12197    lt_multi_os_dir=
12198    ;;
12199  esac
12200  for lt_sys_path in $lt_search_path_spec; do
12201    if test -d "$lt_sys_path$lt_multi_os_dir"; then
12202      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
12203    elif test -n "$lt_multi_os_dir"; then
12204      test -d "$lt_sys_path" && \
12205	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12206    fi
12207  done
12208  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12209BEGIN {RS = " "; FS = "/|\n";} {
12210  lt_foo = "";
12211  lt_count = 0;
12212  for (lt_i = NF; lt_i > 0; lt_i--) {
12213    if ($lt_i != "" && $lt_i != ".") {
12214      if ($lt_i == "..") {
12215        lt_count++;
12216      } else {
12217        if (lt_count == 0) {
12218          lt_foo = "/" $lt_i lt_foo;
12219        } else {
12220          lt_count--;
12221        }
12222      }
12223    }
12224  }
12225  if (lt_foo != "") { lt_freq[lt_foo]++; }
12226  if (lt_freq[lt_foo] == 1) { print lt_foo; }
12227}'`
12228  # AWK program above erroneously prepends '/' to C:/dos/paths
12229  # for these hosts.
12230  case $host_os in
12231    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12232      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
12233  esac
12234  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12235else
12236  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12237fi
12238library_names_spec=
12239libname_spec='lib$name'
12240soname_spec=
12241shrext_cmds=.so
12242postinstall_cmds=
12243postuninstall_cmds=
12244finish_cmds=
12245finish_eval=
12246shlibpath_var=
12247shlibpath_overrides_runpath=unknown
12248version_type=none
12249dynamic_linker="$host_os ld.so"
12250sys_lib_dlsearch_path_spec="/lib /usr/lib"
12251need_lib_prefix=unknown
12252hardcode_into_libs=no
12253
12254# when you set need_version to no, make sure it does not cause -set_version
12255# flags to be left without arguments
12256need_version=unknown
12257
12258
12259
12260case $host_os in
12261aix3*)
12262  version_type=linux # correct to gnu/linux during the next big refactor
12263  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
12264  shlibpath_var=LIBPATH
12265
12266  # AIX 3 has no versioning support, so we append a major version to the name.
12267  soname_spec='$libname$release$shared_ext$major'
12268  ;;
12269
12270aix[4-9]*)
12271  version_type=linux # correct to gnu/linux during the next big refactor
12272  need_lib_prefix=no
12273  need_version=no
12274  hardcode_into_libs=yes
12275  if test ia64 = "$host_cpu"; then
12276    # AIX 5 supports IA64
12277    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
12278    shlibpath_var=LD_LIBRARY_PATH
12279  else
12280    # With GCC up to 2.95.x, collect2 would create an import file
12281    # for dependence libraries.  The import file would start with
12282    # the line '#! .'.  This would cause the generated library to
12283    # depend on '.', always an invalid library.  This was fixed in
12284    # development snapshots of GCC prior to 3.0.
12285    case $host_os in
12286      aix4 | aix4.[01] | aix4.[01].*)
12287      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12288	   echo ' yes '
12289	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
12290	:
12291      else
12292	can_build_shared=no
12293      fi
12294      ;;
12295    esac
12296    # Using Import Files as archive members, it is possible to support
12297    # filename-based versioning of shared library archives on AIX. While
12298    # this would work for both with and without runtime linking, it will
12299    # prevent static linking of such archives. So we do filename-based
12300    # shared library versioning with .so extension only, which is used
12301    # when both runtime linking and shared linking is enabled.
12302    # Unfortunately, runtime linking may impact performance, so we do
12303    # not want this to be the default eventually. Also, we use the
12304    # versioned .so libs for executables only if there is the -brtl
12305    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
12306    # To allow for filename-based versioning support, we need to create
12307    # libNAME.so.V as an archive file, containing:
12308    # *) an Import File, referring to the versioned filename of the
12309    #    archive as well as the shared archive member, telling the
12310    #    bitwidth (32 or 64) of that shared object, and providing the
12311    #    list of exported symbols of that shared object, eventually
12312    #    decorated with the 'weak' keyword
12313    # *) the shared object with the F_LOADONLY flag set, to really avoid
12314    #    it being seen by the linker.
12315    # At run time we better use the real file rather than another symlink,
12316    # but for link time we create the symlink libNAME.so -> libNAME.so.V
12317
12318    case $with_aix_soname,$aix_use_runtimelinking in
12319    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
12320    # soname into executable. Probably we can add versioning support to
12321    # collect2, so additional links can be useful in future.
12322    aix,yes) # traditional libtool
12323      dynamic_linker='AIX unversionable lib.so'
12324      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12325      # instead of lib<name>.a to let people know that these are not
12326      # typical AIX shared libraries.
12327      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12328      ;;
12329    aix,no) # traditional AIX only
12330      dynamic_linker='AIX lib.a(lib.so.V)'
12331      # We preserve .a as extension for shared libraries through AIX4.2
12332      # and later when we are not doing run time linking.
12333      library_names_spec='$libname$release.a $libname.a'
12334      soname_spec='$libname$release$shared_ext$major'
12335      ;;
12336    svr4,*) # full svr4 only
12337      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
12338      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12339      # We do not specify a path in Import Files, so LIBPATH fires.
12340      shlibpath_overrides_runpath=yes
12341      ;;
12342    *,yes) # both, prefer svr4
12343      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
12344      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12345      # unpreferred sharedlib libNAME.a needs extra handling
12346      postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
12347      postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
12348      # We do not specify a path in Import Files, so LIBPATH fires.
12349      shlibpath_overrides_runpath=yes
12350      ;;
12351    *,no) # both, prefer aix
12352      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
12353      library_names_spec='$libname$release.a $libname.a'
12354      soname_spec='$libname$release$shared_ext$major'
12355      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
12356      postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
12357      postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
12358      ;;
12359    esac
12360    shlibpath_var=LIBPATH
12361  fi
12362  ;;
12363
12364amigaos*)
12365  case $host_cpu in
12366  powerpc)
12367    # Since July 2007 AmigaOS4 officially supports .so libraries.
12368    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12369    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12370    ;;
12371  m68k)
12372    library_names_spec='$libname.ixlibrary $libname.a'
12373    # Create ${libname}_ixlibrary.a entries in /sys/libs.
12374    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
12375    ;;
12376  esac
12377  ;;
12378
12379beos*)
12380  library_names_spec='$libname$shared_ext'
12381  dynamic_linker="$host_os ld.so"
12382  shlibpath_var=LIBRARY_PATH
12383  ;;
12384
12385bsdi[45]*)
12386  version_type=linux # correct to gnu/linux during the next big refactor
12387  need_version=no
12388  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12389  soname_spec='$libname$release$shared_ext$major'
12390  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12391  shlibpath_var=LD_LIBRARY_PATH
12392  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12393  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12394  # the default ld.so.conf also contains /usr/contrib/lib and
12395  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12396  # libtool to hard-code these into programs
12397  ;;
12398
12399cygwin* | mingw* | pw32* | cegcc*)
12400  version_type=windows
12401  shrext_cmds=.dll
12402  need_version=no
12403  need_lib_prefix=no
12404
12405  case $GCC,$cc_basename in
12406  yes,*)
12407    # gcc
12408    library_names_spec='$libname.dll.a'
12409    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12410    postinstall_cmds='base_file=`basename \$file`~
12411      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12412      dldir=$destdir/`dirname \$dlpath`~
12413      test -d \$dldir || mkdir -p \$dldir~
12414      $install_prog $dir/$dlname \$dldir/$dlname~
12415      chmod a+x \$dldir/$dlname~
12416      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12417        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12418      fi'
12419    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12420      dlpath=$dir/\$dldll~
12421       $RM \$dlpath'
12422    shlibpath_overrides_runpath=yes
12423
12424    case $host_os in
12425    cygwin*)
12426      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12427      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12428
12429      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12430      ;;
12431    mingw* | cegcc*)
12432      # MinGW DLLs use traditional 'lib' prefix
12433      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12434      ;;
12435    pw32*)
12436      # pw32 DLLs use 'pw' prefix rather than 'lib'
12437      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12438      ;;
12439    esac
12440    dynamic_linker='Win32 ld.exe'
12441    ;;
12442
12443  *,cl*)
12444    # Native MSVC
12445    libname_spec='$name'
12446    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12447    library_names_spec='$libname.dll.lib'
12448
12449    case $build_os in
12450    mingw*)
12451      sys_lib_search_path_spec=
12452      lt_save_ifs=$IFS
12453      IFS=';'
12454      for lt_path in $LIB
12455      do
12456        IFS=$lt_save_ifs
12457        # Let DOS variable expansion print the short 8.3 style file name.
12458        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12459        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12460      done
12461      IFS=$lt_save_ifs
12462      # Convert to MSYS style.
12463      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12464      ;;
12465    cygwin*)
12466      # Convert to unix form, then to dos form, then back to unix form
12467      # but this time dos style (no spaces!) so that the unix form looks
12468      # like /cygdrive/c/PROGRA~1:/cygdr...
12469      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12470      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12471      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12472      ;;
12473    *)
12474      sys_lib_search_path_spec=$LIB
12475      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12476        # It is most probably a Windows format PATH.
12477        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12478      else
12479        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12480      fi
12481      # FIXME: find the short name or the path components, as spaces are
12482      # common. (e.g. "Program Files" -> "PROGRA~1")
12483      ;;
12484    esac
12485
12486    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12487    postinstall_cmds='base_file=`basename \$file`~
12488      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12489      dldir=$destdir/`dirname \$dlpath`~
12490      test -d \$dldir || mkdir -p \$dldir~
12491      $install_prog $dir/$dlname \$dldir/$dlname'
12492    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12493      dlpath=$dir/\$dldll~
12494       $RM \$dlpath'
12495    shlibpath_overrides_runpath=yes
12496    dynamic_linker='Win32 link.exe'
12497    ;;
12498
12499  *)
12500    # Assume MSVC wrapper
12501    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12502    dynamic_linker='Win32 ld.exe'
12503    ;;
12504  esac
12505  # FIXME: first we should search . and the directory the executable is in
12506  shlibpath_var=PATH
12507  ;;
12508
12509darwin* | rhapsody*)
12510  dynamic_linker="$host_os dyld"
12511  version_type=darwin
12512  need_lib_prefix=no
12513  need_version=no
12514  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12515  soname_spec='$libname$release$major$shared_ext'
12516  shlibpath_overrides_runpath=yes
12517  shlibpath_var=DYLD_LIBRARY_PATH
12518  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12519
12520  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12521  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12522  ;;
12523
12524dgux*)
12525  version_type=linux # correct to gnu/linux during the next big refactor
12526  need_lib_prefix=no
12527  need_version=no
12528  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12529  soname_spec='$libname$release$shared_ext$major'
12530  shlibpath_var=LD_LIBRARY_PATH
12531  ;;
12532
12533freebsd* | dragonfly*)
12534  # DragonFly does not have aout.  When/if they implement a new
12535  # versioning mechanism, adjust this.
12536  if test -x /usr/bin/objformat; then
12537    objformat=`/usr/bin/objformat`
12538  else
12539    case $host_os in
12540    freebsd[23].*) objformat=aout ;;
12541    *) objformat=elf ;;
12542    esac
12543  fi
12544  version_type=freebsd-$objformat
12545  case $version_type in
12546    freebsd-elf*)
12547      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12548      soname_spec='$libname$release$shared_ext$major'
12549      need_version=no
12550      need_lib_prefix=no
12551      ;;
12552    freebsd-*)
12553      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12554      need_version=yes
12555      ;;
12556  esac
12557  shlibpath_var=LD_LIBRARY_PATH
12558  case $host_os in
12559  freebsd2.*)
12560    shlibpath_overrides_runpath=yes
12561    ;;
12562  freebsd3.[01]* | freebsdelf3.[01]*)
12563    shlibpath_overrides_runpath=yes
12564    hardcode_into_libs=yes
12565    ;;
12566  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12567  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12568    shlibpath_overrides_runpath=no
12569    hardcode_into_libs=yes
12570    ;;
12571  *) # from 4.6 on, and DragonFly
12572    shlibpath_overrides_runpath=yes
12573    hardcode_into_libs=yes
12574    ;;
12575  esac
12576  ;;
12577
12578haiku*)
12579  version_type=linux # correct to gnu/linux during the next big refactor
12580  need_lib_prefix=no
12581  need_version=no
12582  dynamic_linker="$host_os runtime_loader"
12583  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12584  soname_spec='$libname$release$shared_ext$major'
12585  shlibpath_var=LIBRARY_PATH
12586  shlibpath_overrides_runpath=no
12587  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12588  hardcode_into_libs=yes
12589  ;;
12590
12591hpux9* | hpux10* | hpux11*)
12592  # Give a soname corresponding to the major version so that dld.sl refuses to
12593  # link against other versions.
12594  version_type=sunos
12595  need_lib_prefix=no
12596  need_version=no
12597  case $host_cpu in
12598  ia64*)
12599    shrext_cmds='.so'
12600    hardcode_into_libs=yes
12601    dynamic_linker="$host_os dld.so"
12602    shlibpath_var=LD_LIBRARY_PATH
12603    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12604    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12605    soname_spec='$libname$release$shared_ext$major'
12606    if test 32 = "$HPUX_IA64_MODE"; then
12607      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12608      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12609    else
12610      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12611      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12612    fi
12613    ;;
12614  hppa*64*)
12615    shrext_cmds='.sl'
12616    hardcode_into_libs=yes
12617    dynamic_linker="$host_os dld.sl"
12618    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12619    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12620    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12621    soname_spec='$libname$release$shared_ext$major'
12622    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12623    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12624    ;;
12625  *)
12626    shrext_cmds='.sl'
12627    dynamic_linker="$host_os dld.sl"
12628    shlibpath_var=SHLIB_PATH
12629    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12630    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12631    soname_spec='$libname$release$shared_ext$major'
12632    ;;
12633  esac
12634  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12635  postinstall_cmds='chmod 555 $lib'
12636  # or fails outright, so override atomically:
12637  install_override_mode=555
12638  ;;
12639
12640interix[3-9]*)
12641  version_type=linux # correct to gnu/linux during the next big refactor
12642  need_lib_prefix=no
12643  need_version=no
12644  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12645  soname_spec='$libname$release$shared_ext$major'
12646  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12647  shlibpath_var=LD_LIBRARY_PATH
12648  shlibpath_overrides_runpath=no
12649  hardcode_into_libs=yes
12650  ;;
12651
12652irix5* | irix6* | nonstopux*)
12653  case $host_os in
12654    nonstopux*) version_type=nonstopux ;;
12655    *)
12656	if test yes = "$lt_cv_prog_gnu_ld"; then
12657		version_type=linux # correct to gnu/linux during the next big refactor
12658	else
12659		version_type=irix
12660	fi ;;
12661  esac
12662  need_lib_prefix=no
12663  need_version=no
12664  soname_spec='$libname$release$shared_ext$major'
12665  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12666  case $host_os in
12667  irix5* | nonstopux*)
12668    libsuff= shlibsuff=
12669    ;;
12670  *)
12671    case $LD in # libtool.m4 will add one of these switches to LD
12672    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12673      libsuff= shlibsuff= libmagic=32-bit;;
12674    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12675      libsuff=32 shlibsuff=N32 libmagic=N32;;
12676    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12677      libsuff=64 shlibsuff=64 libmagic=64-bit;;
12678    *) libsuff= shlibsuff= libmagic=never-match;;
12679    esac
12680    ;;
12681  esac
12682  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12683  shlibpath_overrides_runpath=no
12684  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12685  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12686  hardcode_into_libs=yes
12687  ;;
12688
12689# No shared lib support for Linux oldld, aout, or coff.
12690linux*oldld* | linux*aout* | linux*coff*)
12691  dynamic_linker=no
12692  ;;
12693
12694linux*android*)
12695  version_type=none # Android doesn't support versioned libraries.
12696  need_lib_prefix=no
12697  need_version=no
12698  library_names_spec='$libname$release$shared_ext'
12699  soname_spec='$libname$release$shared_ext'
12700  finish_cmds=
12701  shlibpath_var=LD_LIBRARY_PATH
12702  shlibpath_overrides_runpath=yes
12703
12704  # This implies no fast_install, which is unacceptable.
12705  # Some rework will be needed to allow for fast_install
12706  # before this can be enabled.
12707  hardcode_into_libs=yes
12708
12709  dynamic_linker='Android linker'
12710  # Don't embed -rpath directories since the linker doesn't support them.
12711  hardcode_libdir_flag_spec='-L$libdir'
12712  ;;
12713
12714# This must be glibc/ELF.
12715linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12716  version_type=linux # correct to gnu/linux during the next big refactor
12717  need_lib_prefix=no
12718  need_version=no
12719  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12720  soname_spec='$libname$release$shared_ext$major'
12721  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12722  shlibpath_var=LD_LIBRARY_PATH
12723  shlibpath_overrides_runpath=no
12724
12725  # Some binutils ld are patched to set DT_RUNPATH
12726  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12727  $as_echo_n "(cached) " >&6
12728else
12729  lt_cv_shlibpath_overrides_runpath=no
12730    save_LDFLAGS=$LDFLAGS
12731    save_libdir=$libdir
12732    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12733	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12734    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12735/* end confdefs.h.  */
12736
12737int
12738main ()
12739{
12740
12741  ;
12742  return 0;
12743}
12744_ACEOF
12745if ac_fn_c_try_link "$LINENO"; then :
12746  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12747  lt_cv_shlibpath_overrides_runpath=yes
12748fi
12749fi
12750rm -f core conftest.err conftest.$ac_objext \
12751    conftest$ac_exeext conftest.$ac_ext
12752    LDFLAGS=$save_LDFLAGS
12753    libdir=$save_libdir
12754
12755fi
12756
12757  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12758
12759  # This implies no fast_install, which is unacceptable.
12760  # Some rework will be needed to allow for fast_install
12761  # before this can be enabled.
12762  hardcode_into_libs=yes
12763
12764  # Ideally, we could use ldconfig to report *all* directores which are
12765  # searched for libraries, however this is still not possible.  Aside from not
12766  # being certain /sbin/ldconfig is available, command
12767  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12768  # even though it is searched at run-time.  Try to do the best guess by
12769  # appending ld.so.conf contents (and includes) to the search path.
12770  if test -f /etc/ld.so.conf; then
12771    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
12772    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12773  fi
12774
12775  # We used to test for /lib/ld.so.1 and disable shared libraries on
12776  # powerpc, because MkLinux only supported shared libraries with the
12777  # GNU dynamic linker.  Since this was broken with cross compilers,
12778  # most powerpc-linux boxes support dynamic linking these days and
12779  # people can always --disable-shared, the test was removed, and we
12780  # assume the GNU/Linux dynamic linker is in use.
12781  dynamic_linker='GNU/Linux ld.so'
12782  ;;
12783
12784netbsd*)
12785  version_type=sunos
12786  need_lib_prefix=no
12787  need_version=no
12788  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12789    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12790    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12791    dynamic_linker='NetBSD (a.out) ld.so'
12792  else
12793    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12794    soname_spec='$libname$release$shared_ext$major'
12795    dynamic_linker='NetBSD ld.elf_so'
12796  fi
12797  shlibpath_var=LD_LIBRARY_PATH
12798  shlibpath_overrides_runpath=yes
12799  hardcode_into_libs=yes
12800  ;;
12801
12802newsos6)
12803  version_type=linux # correct to gnu/linux during the next big refactor
12804  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12805  shlibpath_var=LD_LIBRARY_PATH
12806  shlibpath_overrides_runpath=yes
12807  ;;
12808
12809*nto* | *qnx*)
12810  version_type=qnx
12811  need_lib_prefix=no
12812  need_version=no
12813  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12814  soname_spec='$libname$release$shared_ext$major'
12815  shlibpath_var=LD_LIBRARY_PATH
12816  shlibpath_overrides_runpath=no
12817  hardcode_into_libs=yes
12818  dynamic_linker='ldqnx.so'
12819  ;;
12820
12821openbsd* | bitrig*)
12822  version_type=sunos
12823  sys_lib_dlsearch_path_spec=/usr/lib
12824  need_lib_prefix=no
12825  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12826    need_version=no
12827  else
12828    need_version=yes
12829  fi
12830  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12831  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12832  shlibpath_var=LD_LIBRARY_PATH
12833  shlibpath_overrides_runpath=yes
12834  ;;
12835
12836os2*)
12837  libname_spec='$name'
12838  version_type=windows
12839  shrext_cmds=.dll
12840  need_version=no
12841  need_lib_prefix=no
12842  # OS/2 can only load a DLL with a base name of 8 characters or less.
12843  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12844    v=$($ECHO $release$versuffix | tr -d .-);
12845    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12846    $ECHO $n$v`$shared_ext'
12847  library_names_spec='${libname}_dll.$libext'
12848  dynamic_linker='OS/2 ld.exe'
12849  shlibpath_var=BEGINLIBPATH
12850  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12851  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12852  postinstall_cmds='base_file=`basename \$file`~
12853    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12854    dldir=$destdir/`dirname \$dlpath`~
12855    test -d \$dldir || mkdir -p \$dldir~
12856    $install_prog $dir/$dlname \$dldir/$dlname~
12857    chmod a+x \$dldir/$dlname~
12858    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12859      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12860    fi'
12861  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12862    dlpath=$dir/\$dldll~
12863    $RM \$dlpath'
12864  ;;
12865
12866osf3* | osf4* | osf5*)
12867  version_type=osf
12868  need_lib_prefix=no
12869  need_version=no
12870  soname_spec='$libname$release$shared_ext$major'
12871  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12872  shlibpath_var=LD_LIBRARY_PATH
12873  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12874  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12875  ;;
12876
12877rdos*)
12878  dynamic_linker=no
12879  ;;
12880
12881solaris*)
12882  version_type=linux # correct to gnu/linux during the next big refactor
12883  need_lib_prefix=no
12884  need_version=no
12885  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12886  soname_spec='$libname$release$shared_ext$major'
12887  shlibpath_var=LD_LIBRARY_PATH
12888  shlibpath_overrides_runpath=yes
12889  hardcode_into_libs=yes
12890  # ldd complains unless libraries are executable
12891  postinstall_cmds='chmod +x $lib'
12892  ;;
12893
12894sunos4*)
12895  version_type=sunos
12896  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12897  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12898  shlibpath_var=LD_LIBRARY_PATH
12899  shlibpath_overrides_runpath=yes
12900  if test yes = "$with_gnu_ld"; then
12901    need_lib_prefix=no
12902  fi
12903  need_version=yes
12904  ;;
12905
12906sysv4 | sysv4.3*)
12907  version_type=linux # correct to gnu/linux during the next big refactor
12908  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12909  soname_spec='$libname$release$shared_ext$major'
12910  shlibpath_var=LD_LIBRARY_PATH
12911  case $host_vendor in
12912    sni)
12913      shlibpath_overrides_runpath=no
12914      need_lib_prefix=no
12915      runpath_var=LD_RUN_PATH
12916      ;;
12917    siemens)
12918      need_lib_prefix=no
12919      ;;
12920    motorola)
12921      need_lib_prefix=no
12922      need_version=no
12923      shlibpath_overrides_runpath=no
12924      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12925      ;;
12926  esac
12927  ;;
12928
12929sysv4*MP*)
12930  if test -d /usr/nec; then
12931    version_type=linux # correct to gnu/linux during the next big refactor
12932    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12933    soname_spec='$libname$shared_ext.$major'
12934    shlibpath_var=LD_LIBRARY_PATH
12935  fi
12936  ;;
12937
12938sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12939  version_type=sco
12940  need_lib_prefix=no
12941  need_version=no
12942  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12943  soname_spec='$libname$release$shared_ext$major'
12944  shlibpath_var=LD_LIBRARY_PATH
12945  shlibpath_overrides_runpath=yes
12946  hardcode_into_libs=yes
12947  if test yes = "$with_gnu_ld"; then
12948    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12949  else
12950    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12951    case $host_os in
12952      sco3.2v5*)
12953        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12954	;;
12955    esac
12956  fi
12957  sys_lib_dlsearch_path_spec='/usr/lib'
12958  ;;
12959
12960tpf*)
12961  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12962  version_type=linux # correct to gnu/linux during the next big refactor
12963  need_lib_prefix=no
12964  need_version=no
12965  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12966  shlibpath_var=LD_LIBRARY_PATH
12967  shlibpath_overrides_runpath=no
12968  hardcode_into_libs=yes
12969  ;;
12970
12971uts4*)
12972  version_type=linux # correct to gnu/linux during the next big refactor
12973  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12974  soname_spec='$libname$release$shared_ext$major'
12975  shlibpath_var=LD_LIBRARY_PATH
12976  ;;
12977
12978*)
12979  dynamic_linker=no
12980  ;;
12981esac
12982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12983$as_echo "$dynamic_linker" >&6; }
12984test no = "$dynamic_linker" && can_build_shared=no
12985
12986variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12987if test yes = "$GCC"; then
12988  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12989fi
12990
12991if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12992  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12993fi
12994
12995if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12996  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12997fi
12998
12999# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
13000configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
13001
13002# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
13003func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
13004
13005# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
13006configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
13007
13008
13009
13010
13011
13012
13013
13014
13015
13016
13017
13018
13019
13020
13021
13022
13023
13024
13025
13026
13027
13028
13029
13030
13031
13032
13033
13034
13035
13036
13037
13038
13039
13040
13041
13042
13043
13044
13045
13046
13047
13048
13049
13050
13051
13052
13053
13054
13055
13056
13057
13058
13059
13060
13061
13062
13063
13064
13065
13066
13067
13068
13069
13070
13071
13072
13073
13074
13075
13076
13077
13078
13079
13080
13081
13082
13083
13084
13085
13086
13087
13088
13089
13090
13091
13092
13093
13094
13095
13096
13097
13098
13099
13100
13101
13102
13103
13104  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13105$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13106hardcode_action=
13107if test -n "$hardcode_libdir_flag_spec" ||
13108   test -n "$runpath_var" ||
13109   test yes = "$hardcode_automatic"; then
13110
13111  # We can hardcode non-existent directories.
13112  if test no != "$hardcode_direct" &&
13113     # If the only mechanism to avoid hardcoding is shlibpath_var, we
13114     # have to relink, otherwise we might link with an installed library
13115     # when we should be linking with a yet-to-be-installed one
13116     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
13117     test no != "$hardcode_minus_L"; then
13118    # Linking always hardcodes the temporary library directory.
13119    hardcode_action=relink
13120  else
13121    # We can link without hardcoding, and we can hardcode nonexisting dirs.
13122    hardcode_action=immediate
13123  fi
13124else
13125  # We cannot hardcode anything, or else we can only hardcode existing
13126  # directories.
13127  hardcode_action=unsupported
13128fi
13129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13130$as_echo "$hardcode_action" >&6; }
13131
13132if test relink = "$hardcode_action" ||
13133   test yes = "$inherit_rpath"; then
13134  # Fast installation is not supported
13135  enable_fast_install=no
13136elif test yes = "$shlibpath_overrides_runpath" ||
13137     test no = "$enable_shared"; then
13138  # Fast installation is not necessary
13139  enable_fast_install=needless
13140fi
13141
13142
13143
13144
13145
13146
13147  if test yes != "$enable_dlopen"; then
13148  enable_dlopen=unknown
13149  enable_dlopen_self=unknown
13150  enable_dlopen_self_static=unknown
13151else
13152  lt_cv_dlopen=no
13153  lt_cv_dlopen_libs=
13154
13155  case $host_os in
13156  beos*)
13157    lt_cv_dlopen=load_add_on
13158    lt_cv_dlopen_libs=
13159    lt_cv_dlopen_self=yes
13160    ;;
13161
13162  mingw* | pw32* | cegcc*)
13163    lt_cv_dlopen=LoadLibrary
13164    lt_cv_dlopen_libs=
13165    ;;
13166
13167  cygwin*)
13168    lt_cv_dlopen=dlopen
13169    lt_cv_dlopen_libs=
13170    ;;
13171
13172  darwin*)
13173    # if libdl is installed we need to link against it
13174    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13175$as_echo_n "checking for dlopen in -ldl... " >&6; }
13176if ${ac_cv_lib_dl_dlopen+:} false; then :
13177  $as_echo_n "(cached) " >&6
13178else
13179  ac_check_lib_save_LIBS=$LIBS
13180LIBS="-ldl  $LIBS"
13181cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13182/* end confdefs.h.  */
13183
13184/* Override any GCC internal prototype to avoid an error.
13185   Use char because int might match the return type of a GCC
13186   builtin and then its argument prototype would still apply.  */
13187#ifdef __cplusplus
13188extern "C"
13189#endif
13190char dlopen ();
13191int
13192main ()
13193{
13194return dlopen ();
13195  ;
13196  return 0;
13197}
13198_ACEOF
13199if ac_fn_c_try_link "$LINENO"; then :
13200  ac_cv_lib_dl_dlopen=yes
13201else
13202  ac_cv_lib_dl_dlopen=no
13203fi
13204rm -f core conftest.err conftest.$ac_objext \
13205    conftest$ac_exeext conftest.$ac_ext
13206LIBS=$ac_check_lib_save_LIBS
13207fi
13208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13209$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13210if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13211  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13212else
13213
13214    lt_cv_dlopen=dyld
13215    lt_cv_dlopen_libs=
13216    lt_cv_dlopen_self=yes
13217
13218fi
13219
13220    ;;
13221
13222  tpf*)
13223    # Don't try to run any link tests for TPF.  We know it's impossible
13224    # because TPF is a cross-compiler, and we know how we open DSOs.
13225    lt_cv_dlopen=dlopen
13226    lt_cv_dlopen_libs=
13227    lt_cv_dlopen_self=no
13228    ;;
13229
13230  *)
13231    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13232if test "x$ac_cv_func_shl_load" = xyes; then :
13233  lt_cv_dlopen=shl_load
13234else
13235  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13236$as_echo_n "checking for shl_load in -ldld... " >&6; }
13237if ${ac_cv_lib_dld_shl_load+:} false; then :
13238  $as_echo_n "(cached) " >&6
13239else
13240  ac_check_lib_save_LIBS=$LIBS
13241LIBS="-ldld  $LIBS"
13242cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13243/* end confdefs.h.  */
13244
13245/* Override any GCC internal prototype to avoid an error.
13246   Use char because int might match the return type of a GCC
13247   builtin and then its argument prototype would still apply.  */
13248#ifdef __cplusplus
13249extern "C"
13250#endif
13251char shl_load ();
13252int
13253main ()
13254{
13255return shl_load ();
13256  ;
13257  return 0;
13258}
13259_ACEOF
13260if ac_fn_c_try_link "$LINENO"; then :
13261  ac_cv_lib_dld_shl_load=yes
13262else
13263  ac_cv_lib_dld_shl_load=no
13264fi
13265rm -f core conftest.err conftest.$ac_objext \
13266    conftest$ac_exeext conftest.$ac_ext
13267LIBS=$ac_check_lib_save_LIBS
13268fi
13269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13270$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13271if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
13272  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
13273else
13274  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13275if test "x$ac_cv_func_dlopen" = xyes; then :
13276  lt_cv_dlopen=dlopen
13277else
13278  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13279$as_echo_n "checking for dlopen in -ldl... " >&6; }
13280if ${ac_cv_lib_dl_dlopen+:} false; then :
13281  $as_echo_n "(cached) " >&6
13282else
13283  ac_check_lib_save_LIBS=$LIBS
13284LIBS="-ldl  $LIBS"
13285cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13286/* end confdefs.h.  */
13287
13288/* Override any GCC internal prototype to avoid an error.
13289   Use char because int might match the return type of a GCC
13290   builtin and then its argument prototype would still apply.  */
13291#ifdef __cplusplus
13292extern "C"
13293#endif
13294char dlopen ();
13295int
13296main ()
13297{
13298return dlopen ();
13299  ;
13300  return 0;
13301}
13302_ACEOF
13303if ac_fn_c_try_link "$LINENO"; then :
13304  ac_cv_lib_dl_dlopen=yes
13305else
13306  ac_cv_lib_dl_dlopen=no
13307fi
13308rm -f core conftest.err conftest.$ac_objext \
13309    conftest$ac_exeext conftest.$ac_ext
13310LIBS=$ac_check_lib_save_LIBS
13311fi
13312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13313$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13314if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13315  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13316else
13317  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13318$as_echo_n "checking for dlopen in -lsvld... " >&6; }
13319if ${ac_cv_lib_svld_dlopen+:} false; then :
13320  $as_echo_n "(cached) " >&6
13321else
13322  ac_check_lib_save_LIBS=$LIBS
13323LIBS="-lsvld  $LIBS"
13324cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13325/* end confdefs.h.  */
13326
13327/* Override any GCC internal prototype to avoid an error.
13328   Use char because int might match the return type of a GCC
13329   builtin and then its argument prototype would still apply.  */
13330#ifdef __cplusplus
13331extern "C"
13332#endif
13333char dlopen ();
13334int
13335main ()
13336{
13337return dlopen ();
13338  ;
13339  return 0;
13340}
13341_ACEOF
13342if ac_fn_c_try_link "$LINENO"; then :
13343  ac_cv_lib_svld_dlopen=yes
13344else
13345  ac_cv_lib_svld_dlopen=no
13346fi
13347rm -f core conftest.err conftest.$ac_objext \
13348    conftest$ac_exeext conftest.$ac_ext
13349LIBS=$ac_check_lib_save_LIBS
13350fi
13351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13352$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13353if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13354  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
13355else
13356  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13357$as_echo_n "checking for dld_link in -ldld... " >&6; }
13358if ${ac_cv_lib_dld_dld_link+:} false; then :
13359  $as_echo_n "(cached) " >&6
13360else
13361  ac_check_lib_save_LIBS=$LIBS
13362LIBS="-ldld  $LIBS"
13363cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13364/* end confdefs.h.  */
13365
13366/* Override any GCC internal prototype to avoid an error.
13367   Use char because int might match the return type of a GCC
13368   builtin and then its argument prototype would still apply.  */
13369#ifdef __cplusplus
13370extern "C"
13371#endif
13372char dld_link ();
13373int
13374main ()
13375{
13376return dld_link ();
13377  ;
13378  return 0;
13379}
13380_ACEOF
13381if ac_fn_c_try_link "$LINENO"; then :
13382  ac_cv_lib_dld_dld_link=yes
13383else
13384  ac_cv_lib_dld_dld_link=no
13385fi
13386rm -f core conftest.err conftest.$ac_objext \
13387    conftest$ac_exeext conftest.$ac_ext
13388LIBS=$ac_check_lib_save_LIBS
13389fi
13390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13391$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13392if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13393  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13394fi
13395
13396
13397fi
13398
13399
13400fi
13401
13402
13403fi
13404
13405
13406fi
13407
13408
13409fi
13410
13411    ;;
13412  esac
13413
13414  if test no = "$lt_cv_dlopen"; then
13415    enable_dlopen=no
13416  else
13417    enable_dlopen=yes
13418  fi
13419
13420  case $lt_cv_dlopen in
13421  dlopen)
13422    save_CPPFLAGS=$CPPFLAGS
13423    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13424
13425    save_LDFLAGS=$LDFLAGS
13426    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13427
13428    save_LIBS=$LIBS
13429    LIBS="$lt_cv_dlopen_libs $LIBS"
13430
13431    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13432$as_echo_n "checking whether a program can dlopen itself... " >&6; }
13433if ${lt_cv_dlopen_self+:} false; then :
13434  $as_echo_n "(cached) " >&6
13435else
13436  	  if test yes = "$cross_compiling"; then :
13437  lt_cv_dlopen_self=cross
13438else
13439  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13440  lt_status=$lt_dlunknown
13441  cat > conftest.$ac_ext <<_LT_EOF
13442#line $LINENO "configure"
13443#include "confdefs.h"
13444
13445#if HAVE_DLFCN_H
13446#include <dlfcn.h>
13447#endif
13448
13449#include <stdio.h>
13450
13451#ifdef RTLD_GLOBAL
13452#  define LT_DLGLOBAL		RTLD_GLOBAL
13453#else
13454#  ifdef DL_GLOBAL
13455#    define LT_DLGLOBAL		DL_GLOBAL
13456#  else
13457#    define LT_DLGLOBAL		0
13458#  endif
13459#endif
13460
13461/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13462   find out it does not work in some platform. */
13463#ifndef LT_DLLAZY_OR_NOW
13464#  ifdef RTLD_LAZY
13465#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13466#  else
13467#    ifdef DL_LAZY
13468#      define LT_DLLAZY_OR_NOW		DL_LAZY
13469#    else
13470#      ifdef RTLD_NOW
13471#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13472#      else
13473#        ifdef DL_NOW
13474#          define LT_DLLAZY_OR_NOW	DL_NOW
13475#        else
13476#          define LT_DLLAZY_OR_NOW	0
13477#        endif
13478#      endif
13479#    endif
13480#  endif
13481#endif
13482
13483/* When -fvisibility=hidden is used, assume the code has been annotated
13484   correspondingly for the symbols needed.  */
13485#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13486int fnord () __attribute__((visibility("default")));
13487#endif
13488
13489int fnord () { return 42; }
13490int main ()
13491{
13492  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13493  int status = $lt_dlunknown;
13494
13495  if (self)
13496    {
13497      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13498      else
13499        {
13500	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13501          else puts (dlerror ());
13502	}
13503      /* dlclose (self); */
13504    }
13505  else
13506    puts (dlerror ());
13507
13508  return status;
13509}
13510_LT_EOF
13511  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13512  (eval $ac_link) 2>&5
13513  ac_status=$?
13514  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13515  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13516    (./conftest; exit; ) >&5 2>/dev/null
13517    lt_status=$?
13518    case x$lt_status in
13519      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13520      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13521      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13522    esac
13523  else :
13524    # compilation failed
13525    lt_cv_dlopen_self=no
13526  fi
13527fi
13528rm -fr conftest*
13529
13530
13531fi
13532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13533$as_echo "$lt_cv_dlopen_self" >&6; }
13534
13535    if test yes = "$lt_cv_dlopen_self"; then
13536      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13537      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13538$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13539if ${lt_cv_dlopen_self_static+:} false; then :
13540  $as_echo_n "(cached) " >&6
13541else
13542  	  if test yes = "$cross_compiling"; then :
13543  lt_cv_dlopen_self_static=cross
13544else
13545  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13546  lt_status=$lt_dlunknown
13547  cat > conftest.$ac_ext <<_LT_EOF
13548#line $LINENO "configure"
13549#include "confdefs.h"
13550
13551#if HAVE_DLFCN_H
13552#include <dlfcn.h>
13553#endif
13554
13555#include <stdio.h>
13556
13557#ifdef RTLD_GLOBAL
13558#  define LT_DLGLOBAL		RTLD_GLOBAL
13559#else
13560#  ifdef DL_GLOBAL
13561#    define LT_DLGLOBAL		DL_GLOBAL
13562#  else
13563#    define LT_DLGLOBAL		0
13564#  endif
13565#endif
13566
13567/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13568   find out it does not work in some platform. */
13569#ifndef LT_DLLAZY_OR_NOW
13570#  ifdef RTLD_LAZY
13571#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13572#  else
13573#    ifdef DL_LAZY
13574#      define LT_DLLAZY_OR_NOW		DL_LAZY
13575#    else
13576#      ifdef RTLD_NOW
13577#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13578#      else
13579#        ifdef DL_NOW
13580#          define LT_DLLAZY_OR_NOW	DL_NOW
13581#        else
13582#          define LT_DLLAZY_OR_NOW	0
13583#        endif
13584#      endif
13585#    endif
13586#  endif
13587#endif
13588
13589/* When -fvisibility=hidden is used, assume the code has been annotated
13590   correspondingly for the symbols needed.  */
13591#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13592int fnord () __attribute__((visibility("default")));
13593#endif
13594
13595int fnord () { return 42; }
13596int main ()
13597{
13598  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13599  int status = $lt_dlunknown;
13600
13601  if (self)
13602    {
13603      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13604      else
13605        {
13606	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13607          else puts (dlerror ());
13608	}
13609      /* dlclose (self); */
13610    }
13611  else
13612    puts (dlerror ());
13613
13614  return status;
13615}
13616_LT_EOF
13617  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13618  (eval $ac_link) 2>&5
13619  ac_status=$?
13620  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13621  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13622    (./conftest; exit; ) >&5 2>/dev/null
13623    lt_status=$?
13624    case x$lt_status in
13625      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13626      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13627      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13628    esac
13629  else :
13630    # compilation failed
13631    lt_cv_dlopen_self_static=no
13632  fi
13633fi
13634rm -fr conftest*
13635
13636
13637fi
13638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13639$as_echo "$lt_cv_dlopen_self_static" >&6; }
13640    fi
13641
13642    CPPFLAGS=$save_CPPFLAGS
13643    LDFLAGS=$save_LDFLAGS
13644    LIBS=$save_LIBS
13645    ;;
13646  esac
13647
13648  case $lt_cv_dlopen_self in
13649  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13650  *) enable_dlopen_self=unknown ;;
13651  esac
13652
13653  case $lt_cv_dlopen_self_static in
13654  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13655  *) enable_dlopen_self_static=unknown ;;
13656  esac
13657fi
13658
13659
13660
13661
13662
13663
13664
13665
13666
13667
13668
13669
13670
13671
13672
13673
13674
13675striplib=
13676old_striplib=
13677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13678$as_echo_n "checking whether stripping libraries is possible... " >&6; }
13679if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13680  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13681  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13682  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13683$as_echo "yes" >&6; }
13684else
13685# FIXME - insert some real tests, host_os isn't really good enough
13686  case $host_os in
13687  darwin*)
13688    if test -n "$STRIP"; then
13689      striplib="$STRIP -x"
13690      old_striplib="$STRIP -S"
13691      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13692$as_echo "yes" >&6; }
13693    else
13694      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13695$as_echo "no" >&6; }
13696    fi
13697    ;;
13698  *)
13699    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13700$as_echo "no" >&6; }
13701    ;;
13702  esac
13703fi
13704
13705
13706
13707
13708
13709
13710
13711
13712
13713
13714
13715
13716  # Report what library types will actually be built
13717  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13718$as_echo_n "checking if libtool supports shared libraries... " >&6; }
13719  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13720$as_echo "$can_build_shared" >&6; }
13721
13722  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13723$as_echo_n "checking whether to build shared libraries... " >&6; }
13724  test no = "$can_build_shared" && enable_shared=no
13725
13726  # On AIX, shared libraries and static libraries use the same namespace, and
13727  # are all built from PIC.
13728  case $host_os in
13729  aix3*)
13730    test yes = "$enable_shared" && enable_static=no
13731    if test -n "$RANLIB"; then
13732      archive_cmds="$archive_cmds~\$RANLIB \$lib"
13733      postinstall_cmds='$RANLIB $lib'
13734    fi
13735    ;;
13736
13737  aix[4-9]*)
13738    if test ia64 != "$host_cpu"; then
13739      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13740      yes,aix,yes) ;;			# shared object as lib.so file only
13741      yes,svr4,*) ;;			# shared object as lib.so archive member only
13742      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
13743      esac
13744    fi
13745    ;;
13746  esac
13747  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13748$as_echo "$enable_shared" >&6; }
13749
13750  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13751$as_echo_n "checking whether to build static libraries... " >&6; }
13752  # Make sure either enable_shared or enable_static is yes.
13753  test yes = "$enable_shared" || enable_static=yes
13754  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13755$as_echo "$enable_static" >&6; }
13756
13757
13758
13759
13760fi
13761ac_ext=c
13762ac_cpp='$CPP $CPPFLAGS'
13763ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13764ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13765ac_compiler_gnu=$ac_cv_c_compiler_gnu
13766
13767CC=$lt_save_CC
13768
13769
13770
13771
13772
13773
13774
13775
13776
13777
13778
13779
13780
13781
13782
13783        ac_config_commands="$ac_config_commands libtool"
13784
13785
13786
13787
13788# Only expand once:
13789
13790
13791
13792ol_link_perl=no
13793if test $ol_enable_perl != no ; then
13794	# Extract the first word of "perl", so it can be a program name with args.
13795set dummy perl; ac_word=$2
13796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13797$as_echo_n "checking for $ac_word... " >&6; }
13798if ${ac_cv_path_PERLBIN+:} false; then :
13799  $as_echo_n "(cached) " >&6
13800else
13801  case $PERLBIN in
13802  [\\/]* | ?:[\\/]*)
13803  ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
13804  ;;
13805  *)
13806  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13807for as_dir in $PATH
13808do
13809  IFS=$as_save_IFS
13810  test -z "$as_dir" && as_dir=.
13811    for ac_exec_ext in '' $ac_executable_extensions; do
13812  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13813    ac_cv_path_PERLBIN="$as_dir/$ac_word$ac_exec_ext"
13814    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13815    break 2
13816  fi
13817done
13818  done
13819IFS=$as_save_IFS
13820
13821  test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
13822  ;;
13823esac
13824fi
13825PERLBIN=$ac_cv_path_PERLBIN
13826if test -n "$PERLBIN"; then
13827  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERLBIN" >&5
13828$as_echo "$PERLBIN" >&6; }
13829else
13830  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13831$as_echo "no" >&6; }
13832fi
13833
13834
13835
13836	if test "no$PERLBIN" = "no" ; then
13837		if test $ol_enable_perl = yes ; then
13838			as_fn_error $? "could not locate perl" "$LINENO" 5
13839		fi
13840
13841	else
13842		PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
13843		PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e 's/ -lc / /' -e 's/ -lc$//'`"
13844
13845		if test x"$ol_enable_perl" = "xyes" ; then
13846			SLAPD_PERL_LDFLAGS="$PERL_LDFLAGS"
13847		else
13848			MOD_PERL_LDFLAGS="$PERL_LDFLAGS"
13849		fi
13850				ol_link_perl=yes
13851	fi
13852fi
13853
13854ac_ext=c
13855ac_cpp='$CPP $CPPFLAGS'
13856ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13857ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13858ac_compiler_gnu=$ac_cv_c_compiler_gnu
13859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
13860$as_echo_n "checking how to run the C preprocessor... " >&6; }
13861# On Suns, sometimes $CPP names a directory.
13862if test -n "$CPP" && test -d "$CPP"; then
13863  CPP=
13864fi
13865if test -z "$CPP"; then
13866  if ${ac_cv_prog_CPP+:} false; then :
13867  $as_echo_n "(cached) " >&6
13868else
13869      # Double quotes because CPP needs to be expanded
13870    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
13871    do
13872      ac_preproc_ok=false
13873for ac_c_preproc_warn_flag in '' yes
13874do
13875  # Use a header file that comes with gcc, so configuring glibc
13876  # with a fresh cross-compiler works.
13877  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13878  # <limits.h> exists even on freestanding compilers.
13879  # On the NeXT, cc -E runs the code through the compiler's parser,
13880  # not just through cpp. "Syntax error" is here to catch this case.
13881  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13882/* end confdefs.h.  */
13883#ifdef __STDC__
13884# include <limits.h>
13885#else
13886# include <assert.h>
13887#endif
13888		     Syntax error
13889_ACEOF
13890if ac_fn_c_try_cpp "$LINENO"; then :
13891
13892else
13893  # Broken: fails on valid input.
13894continue
13895fi
13896rm -f conftest.err conftest.i conftest.$ac_ext
13897
13898  # OK, works on sane cases.  Now check whether nonexistent headers
13899  # can be detected and how.
13900  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13901/* end confdefs.h.  */
13902#include <ac_nonexistent.h>
13903_ACEOF
13904if ac_fn_c_try_cpp "$LINENO"; then :
13905  # Broken: success on invalid input.
13906continue
13907else
13908  # Passes both tests.
13909ac_preproc_ok=:
13910break
13911fi
13912rm -f conftest.err conftest.i conftest.$ac_ext
13913
13914done
13915# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13916rm -f conftest.i conftest.err conftest.$ac_ext
13917if $ac_preproc_ok; then :
13918  break
13919fi
13920
13921    done
13922    ac_cv_prog_CPP=$CPP
13923
13924fi
13925  CPP=$ac_cv_prog_CPP
13926else
13927  ac_cv_prog_CPP=$CPP
13928fi
13929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
13930$as_echo "$CPP" >&6; }
13931ac_preproc_ok=false
13932for ac_c_preproc_warn_flag in '' yes
13933do
13934  # Use a header file that comes with gcc, so configuring glibc
13935  # with a fresh cross-compiler works.
13936  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13937  # <limits.h> exists even on freestanding compilers.
13938  # On the NeXT, cc -E runs the code through the compiler's parser,
13939  # not just through cpp. "Syntax error" is here to catch this case.
13940  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13941/* end confdefs.h.  */
13942#ifdef __STDC__
13943# include <limits.h>
13944#else
13945# include <assert.h>
13946#endif
13947		     Syntax error
13948_ACEOF
13949if ac_fn_c_try_cpp "$LINENO"; then :
13950
13951else
13952  # Broken: fails on valid input.
13953continue
13954fi
13955rm -f conftest.err conftest.i conftest.$ac_ext
13956
13957  # OK, works on sane cases.  Now check whether nonexistent headers
13958  # can be detected and how.
13959  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13960/* end confdefs.h.  */
13961#include <ac_nonexistent.h>
13962_ACEOF
13963if ac_fn_c_try_cpp "$LINENO"; then :
13964  # Broken: success on invalid input.
13965continue
13966else
13967  # Passes both tests.
13968ac_preproc_ok=:
13969break
13970fi
13971rm -f conftest.err conftest.i conftest.$ac_ext
13972
13973done
13974# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13975rm -f conftest.i conftest.err conftest.$ac_ext
13976if $ac_preproc_ok; then :
13977
13978else
13979  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13980$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13981as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
13982See \`config.log' for more details" "$LINENO" 5; }
13983fi
13984
13985ac_ext=c
13986ac_cpp='$CPP $CPPFLAGS'
13987ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13988ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13989ac_compiler_gnu=$ac_cv_c_compiler_gnu
13990
13991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using MS Visual C++" >&5
13992$as_echo_n "checking whether we are using MS Visual C++... " >&6; }
13993if ${ol_cv_msvc+:} false; then :
13994  $as_echo_n "(cached) " >&6
13995else
13996  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13997/* end confdefs.h.  */
13998
13999#ifndef _MSC_VER
14000#include <__FOO__/generate_error.h>
14001#endif
14002
14003_ACEOF
14004if ac_fn_c_try_cpp "$LINENO"; then :
14005  ol_cv_msvc=yes
14006else
14007  ol_cv_msvc=no
14008fi
14009rm -f conftest.err conftest.i conftest.$ac_ext
14010fi
14011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_msvc" >&5
14012$as_echo "$ol_cv_msvc" >&6; }
14013
14014case $host_os in
14015  *mingw32* ) ac_cv_mingw32=yes ;;
14016  *cygwin* ) ac_cv_cygwin=yes ;;
14017  *interix* ) ac_cv_interix=yes ;;
14018esac
14019
14020if test -n "$ac_tool_prefix"; then
14021  # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
14022set dummy ${ac_tool_prefix}windres; ac_word=$2
14023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14024$as_echo_n "checking for $ac_word... " >&6; }
14025if ${ac_cv_prog_RC+:} false; then :
14026  $as_echo_n "(cached) " >&6
14027else
14028  if test -n "$RC"; then
14029  ac_cv_prog_RC="$RC" # Let the user override the test.
14030else
14031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14032for as_dir in $PATH
14033do
14034  IFS=$as_save_IFS
14035  test -z "$as_dir" && as_dir=.
14036    for ac_exec_ext in '' $ac_executable_extensions; do
14037  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14038    ac_cv_prog_RC="${ac_tool_prefix}windres"
14039    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14040    break 2
14041  fi
14042done
14043  done
14044IFS=$as_save_IFS
14045
14046fi
14047fi
14048RC=$ac_cv_prog_RC
14049if test -n "$RC"; then
14050  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
14051$as_echo "$RC" >&6; }
14052else
14053  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14054$as_echo "no" >&6; }
14055fi
14056
14057
14058fi
14059if test -z "$ac_cv_prog_RC"; then
14060  ac_ct_RC=$RC
14061  # Extract the first word of "windres", so it can be a program name with args.
14062set dummy windres; ac_word=$2
14063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14064$as_echo_n "checking for $ac_word... " >&6; }
14065if ${ac_cv_prog_ac_ct_RC+:} false; then :
14066  $as_echo_n "(cached) " >&6
14067else
14068  if test -n "$ac_ct_RC"; then
14069  ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
14070else
14071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14072for as_dir in $PATH
14073do
14074  IFS=$as_save_IFS
14075  test -z "$as_dir" && as_dir=.
14076    for ac_exec_ext in '' $ac_executable_extensions; do
14077  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14078    ac_cv_prog_ac_ct_RC="windres"
14079    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14080    break 2
14081  fi
14082done
14083  done
14084IFS=$as_save_IFS
14085
14086fi
14087fi
14088ac_ct_RC=$ac_cv_prog_ac_ct_RC
14089if test -n "$ac_ct_RC"; then
14090  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
14091$as_echo "$ac_ct_RC" >&6; }
14092else
14093  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14094$as_echo "no" >&6; }
14095fi
14096
14097  if test "x$ac_ct_RC" = x; then
14098    RC=""
14099  else
14100    case $cross_compiling:$ac_tool_warned in
14101yes:)
14102{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14103$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14104ac_tool_warned=yes ;;
14105esac
14106    RC=$ac_ct_RC
14107  fi
14108else
14109  RC="$ac_cv_prog_RC"
14110fi
14111
14112
14113
14114
14115
14116cat >>confdefs.h <<_ACEOF
14117#define EXEEXT "${EXEEXT}"
14118_ACEOF
14119
14120
14121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for be_app in -lbe" >&5
14122$as_echo_n "checking for be_app in -lbe... " >&6; }
14123if ${ac_cv_lib_be_be_app+:} false; then :
14124  $as_echo_n "(cached) " >&6
14125else
14126  ac_check_lib_save_LIBS=$LIBS
14127LIBS="-lbe -lroot -lnet $LIBS"
14128cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14129/* end confdefs.h.  */
14130
14131/* Override any GCC internal prototype to avoid an error.
14132   Use char because int might match the return type of a GCC
14133   builtin and then its argument prototype would still apply.  */
14134#ifdef __cplusplus
14135extern "C"
14136#endif
14137char be_app ();
14138int
14139main ()
14140{
14141return be_app ();
14142  ;
14143  return 0;
14144}
14145_ACEOF
14146if ac_fn_c_try_link "$LINENO"; then :
14147  ac_cv_lib_be_be_app=yes
14148else
14149  ac_cv_lib_be_be_app=no
14150fi
14151rm -f core conftest.err conftest.$ac_objext \
14152    conftest$ac_exeext conftest.$ac_ext
14153LIBS=$ac_check_lib_save_LIBS
14154fi
14155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_be_be_app" >&5
14156$as_echo "$ac_cv_lib_be_be_app" >&6; }
14157if test "x$ac_cv_lib_be_be_app" = xyes; then :
14158  LIBS="$LIBS -lbe -lroot -lnet"
14159else
14160  :
14161fi
14162
14163
14164ac_ext=c
14165ac_cpp='$CPP $CPPFLAGS'
14166ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14167ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14168ac_compiler_gnu=$ac_cv_c_compiler_gnu
14169if test -n "$ac_tool_prefix"; then
14170  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
14171set dummy ${ac_tool_prefix}gcc; ac_word=$2
14172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14173$as_echo_n "checking for $ac_word... " >&6; }
14174if ${ac_cv_prog_CC+:} false; then :
14175  $as_echo_n "(cached) " >&6
14176else
14177  if test -n "$CC"; then
14178  ac_cv_prog_CC="$CC" # Let the user override the test.
14179else
14180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14181for as_dir in $PATH
14182do
14183  IFS=$as_save_IFS
14184  test -z "$as_dir" && as_dir=.
14185    for ac_exec_ext in '' $ac_executable_extensions; do
14186  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14187    ac_cv_prog_CC="${ac_tool_prefix}gcc"
14188    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14189    break 2
14190  fi
14191done
14192  done
14193IFS=$as_save_IFS
14194
14195fi
14196fi
14197CC=$ac_cv_prog_CC
14198if test -n "$CC"; then
14199  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
14200$as_echo "$CC" >&6; }
14201else
14202  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14203$as_echo "no" >&6; }
14204fi
14205
14206
14207fi
14208if test -z "$ac_cv_prog_CC"; then
14209  ac_ct_CC=$CC
14210  # Extract the first word of "gcc", so it can be a program name with args.
14211set dummy gcc; ac_word=$2
14212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14213$as_echo_n "checking for $ac_word... " >&6; }
14214if ${ac_cv_prog_ac_ct_CC+:} false; then :
14215  $as_echo_n "(cached) " >&6
14216else
14217  if test -n "$ac_ct_CC"; then
14218  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
14219else
14220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14221for as_dir in $PATH
14222do
14223  IFS=$as_save_IFS
14224  test -z "$as_dir" && as_dir=.
14225    for ac_exec_ext in '' $ac_executable_extensions; do
14226  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14227    ac_cv_prog_ac_ct_CC="gcc"
14228    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14229    break 2
14230  fi
14231done
14232  done
14233IFS=$as_save_IFS
14234
14235fi
14236fi
14237ac_ct_CC=$ac_cv_prog_ac_ct_CC
14238if test -n "$ac_ct_CC"; then
14239  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
14240$as_echo "$ac_ct_CC" >&6; }
14241else
14242  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14243$as_echo "no" >&6; }
14244fi
14245
14246  if test "x$ac_ct_CC" = x; then
14247    CC=""
14248  else
14249    case $cross_compiling:$ac_tool_warned in
14250yes:)
14251{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14252$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14253ac_tool_warned=yes ;;
14254esac
14255    CC=$ac_ct_CC
14256  fi
14257else
14258  CC="$ac_cv_prog_CC"
14259fi
14260
14261if test -z "$CC"; then
14262          if test -n "$ac_tool_prefix"; then
14263    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
14264set dummy ${ac_tool_prefix}cc; ac_word=$2
14265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14266$as_echo_n "checking for $ac_word... " >&6; }
14267if ${ac_cv_prog_CC+:} false; then :
14268  $as_echo_n "(cached) " >&6
14269else
14270  if test -n "$CC"; then
14271  ac_cv_prog_CC="$CC" # Let the user override the test.
14272else
14273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14274for as_dir in $PATH
14275do
14276  IFS=$as_save_IFS
14277  test -z "$as_dir" && as_dir=.
14278    for ac_exec_ext in '' $ac_executable_extensions; do
14279  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14280    ac_cv_prog_CC="${ac_tool_prefix}cc"
14281    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14282    break 2
14283  fi
14284done
14285  done
14286IFS=$as_save_IFS
14287
14288fi
14289fi
14290CC=$ac_cv_prog_CC
14291if test -n "$CC"; then
14292  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
14293$as_echo "$CC" >&6; }
14294else
14295  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14296$as_echo "no" >&6; }
14297fi
14298
14299
14300  fi
14301fi
14302if test -z "$CC"; then
14303  # Extract the first word of "cc", so it can be a program name with args.
14304set dummy cc; ac_word=$2
14305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14306$as_echo_n "checking for $ac_word... " >&6; }
14307if ${ac_cv_prog_CC+:} false; then :
14308  $as_echo_n "(cached) " >&6
14309else
14310  if test -n "$CC"; then
14311  ac_cv_prog_CC="$CC" # Let the user override the test.
14312else
14313  ac_prog_rejected=no
14314as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14315for as_dir in $PATH
14316do
14317  IFS=$as_save_IFS
14318  test -z "$as_dir" && as_dir=.
14319    for ac_exec_ext in '' $ac_executable_extensions; do
14320  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14321    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
14322       ac_prog_rejected=yes
14323       continue
14324     fi
14325    ac_cv_prog_CC="cc"
14326    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14327    break 2
14328  fi
14329done
14330  done
14331IFS=$as_save_IFS
14332
14333if test $ac_prog_rejected = yes; then
14334  # We found a bogon in the path, so make sure we never use it.
14335  set dummy $ac_cv_prog_CC
14336  shift
14337  if test $# != 0; then
14338    # We chose a different compiler from the bogus one.
14339    # However, it has the same basename, so the bogon will be chosen
14340    # first if we set CC to just the basename; use the full file name.
14341    shift
14342    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
14343  fi
14344fi
14345fi
14346fi
14347CC=$ac_cv_prog_CC
14348if test -n "$CC"; then
14349  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
14350$as_echo "$CC" >&6; }
14351else
14352  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14353$as_echo "no" >&6; }
14354fi
14355
14356
14357fi
14358if test -z "$CC"; then
14359  if test -n "$ac_tool_prefix"; then
14360  for ac_prog in cl.exe
14361  do
14362    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14363set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14365$as_echo_n "checking for $ac_word... " >&6; }
14366if ${ac_cv_prog_CC+:} false; then :
14367  $as_echo_n "(cached) " >&6
14368else
14369  if test -n "$CC"; then
14370  ac_cv_prog_CC="$CC" # Let the user override the test.
14371else
14372as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14373for as_dir in $PATH
14374do
14375  IFS=$as_save_IFS
14376  test -z "$as_dir" && as_dir=.
14377    for ac_exec_ext in '' $ac_executable_extensions; do
14378  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14379    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
14380    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14381    break 2
14382  fi
14383done
14384  done
14385IFS=$as_save_IFS
14386
14387fi
14388fi
14389CC=$ac_cv_prog_CC
14390if test -n "$CC"; then
14391  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
14392$as_echo "$CC" >&6; }
14393else
14394  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14395$as_echo "no" >&6; }
14396fi
14397
14398
14399    test -n "$CC" && break
14400  done
14401fi
14402if test -z "$CC"; then
14403  ac_ct_CC=$CC
14404  for ac_prog in cl.exe
14405do
14406  # Extract the first word of "$ac_prog", so it can be a program name with args.
14407set dummy $ac_prog; ac_word=$2
14408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14409$as_echo_n "checking for $ac_word... " >&6; }
14410if ${ac_cv_prog_ac_ct_CC+:} false; then :
14411  $as_echo_n "(cached) " >&6
14412else
14413  if test -n "$ac_ct_CC"; then
14414  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
14415else
14416as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14417for as_dir in $PATH
14418do
14419  IFS=$as_save_IFS
14420  test -z "$as_dir" && as_dir=.
14421    for ac_exec_ext in '' $ac_executable_extensions; do
14422  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14423    ac_cv_prog_ac_ct_CC="$ac_prog"
14424    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14425    break 2
14426  fi
14427done
14428  done
14429IFS=$as_save_IFS
14430
14431fi
14432fi
14433ac_ct_CC=$ac_cv_prog_ac_ct_CC
14434if test -n "$ac_ct_CC"; then
14435  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
14436$as_echo "$ac_ct_CC" >&6; }
14437else
14438  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14439$as_echo "no" >&6; }
14440fi
14441
14442
14443  test -n "$ac_ct_CC" && break
14444done
14445
14446  if test "x$ac_ct_CC" = x; then
14447    CC=""
14448  else
14449    case $cross_compiling:$ac_tool_warned in
14450yes:)
14451{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14452$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14453ac_tool_warned=yes ;;
14454esac
14455    CC=$ac_ct_CC
14456  fi
14457fi
14458
14459fi
14460
14461
14462test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14463$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14464as_fn_error $? "no acceptable C compiler found in \$PATH
14465See \`config.log' for more details" "$LINENO" 5; }
14466
14467# Provide some information about the compiler.
14468$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
14469set X $ac_compile
14470ac_compiler=$2
14471for ac_option in --version -v -V -qversion; do
14472  { { ac_try="$ac_compiler $ac_option >&5"
14473case "(($ac_try" in
14474  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14475  *) ac_try_echo=$ac_try;;
14476esac
14477eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
14478$as_echo "$ac_try_echo"; } >&5
14479  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
14480  ac_status=$?
14481  if test -s conftest.err; then
14482    sed '10a\
14483... rest of stderr output deleted ...
14484         10q' conftest.err >conftest.er1
14485    cat conftest.er1 >&5
14486  fi
14487  rm -f conftest.er1 conftest.err
14488  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14489  test $ac_status = 0; }
14490done
14491
14492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
14493$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
14494if ${ac_cv_c_compiler_gnu+:} false; then :
14495  $as_echo_n "(cached) " >&6
14496else
14497  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14498/* end confdefs.h.  */
14499
14500int
14501main ()
14502{
14503#ifndef __GNUC__
14504       choke me
14505#endif
14506
14507  ;
14508  return 0;
14509}
14510_ACEOF
14511if ac_fn_c_try_compile "$LINENO"; then :
14512  ac_compiler_gnu=yes
14513else
14514  ac_compiler_gnu=no
14515fi
14516rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14517ac_cv_c_compiler_gnu=$ac_compiler_gnu
14518
14519fi
14520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
14521$as_echo "$ac_cv_c_compiler_gnu" >&6; }
14522if test $ac_compiler_gnu = yes; then
14523  GCC=yes
14524else
14525  GCC=
14526fi
14527ac_test_CFLAGS=${CFLAGS+set}
14528ac_save_CFLAGS=$CFLAGS
14529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
14530$as_echo_n "checking whether $CC accepts -g... " >&6; }
14531if ${ac_cv_prog_cc_g+:} false; then :
14532  $as_echo_n "(cached) " >&6
14533else
14534  ac_save_c_werror_flag=$ac_c_werror_flag
14535   ac_c_werror_flag=yes
14536   ac_cv_prog_cc_g=no
14537   CFLAGS="-g"
14538   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14539/* end confdefs.h.  */
14540
14541int
14542main ()
14543{
14544
14545  ;
14546  return 0;
14547}
14548_ACEOF
14549if ac_fn_c_try_compile "$LINENO"; then :
14550  ac_cv_prog_cc_g=yes
14551else
14552  CFLAGS=""
14553      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14554/* end confdefs.h.  */
14555
14556int
14557main ()
14558{
14559
14560  ;
14561  return 0;
14562}
14563_ACEOF
14564if ac_fn_c_try_compile "$LINENO"; then :
14565
14566else
14567  ac_c_werror_flag=$ac_save_c_werror_flag
14568	 CFLAGS="-g"
14569	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14570/* end confdefs.h.  */
14571
14572int
14573main ()
14574{
14575
14576  ;
14577  return 0;
14578}
14579_ACEOF
14580if ac_fn_c_try_compile "$LINENO"; then :
14581  ac_cv_prog_cc_g=yes
14582fi
14583rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14584fi
14585rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14586fi
14587rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14588   ac_c_werror_flag=$ac_save_c_werror_flag
14589fi
14590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
14591$as_echo "$ac_cv_prog_cc_g" >&6; }
14592if test "$ac_test_CFLAGS" = set; then
14593  CFLAGS=$ac_save_CFLAGS
14594elif test $ac_cv_prog_cc_g = yes; then
14595  if test "$GCC" = yes; then
14596    CFLAGS="-g -O2"
14597  else
14598    CFLAGS="-g"
14599  fi
14600else
14601  if test "$GCC" = yes; then
14602    CFLAGS="-O2"
14603  else
14604    CFLAGS=
14605  fi
14606fi
14607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
14608$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
14609if ${ac_cv_prog_cc_c89+:} false; then :
14610  $as_echo_n "(cached) " >&6
14611else
14612  ac_cv_prog_cc_c89=no
14613ac_save_CC=$CC
14614cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14615/* end confdefs.h.  */
14616#include <stdarg.h>
14617#include <stdio.h>
14618struct stat;
14619/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
14620struct buf { int x; };
14621FILE * (*rcsopen) (struct buf *, struct stat *, int);
14622static char *e (p, i)
14623     char **p;
14624     int i;
14625{
14626  return p[i];
14627}
14628static char *f (char * (*g) (char **, int), char **p, ...)
14629{
14630  char *s;
14631  va_list v;
14632  va_start (v,p);
14633  s = g (p, va_arg (v,int));
14634  va_end (v);
14635  return s;
14636}
14637
14638/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
14639   function prototypes and stuff, but not '\xHH' hex character constants.
14640   These don't provoke an error unfortunately, instead are silently treated
14641   as 'x'.  The following induces an error, until -std is added to get
14642   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
14643   array size at least.  It's necessary to write '\x00'==0 to get something
14644   that's true only with -std.  */
14645int osf4_cc_array ['\x00' == 0 ? 1 : -1];
14646
14647/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
14648   inside strings and character constants.  */
14649#define FOO(x) 'x'
14650int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
14651
14652int test (int i, double x);
14653struct s1 {int (*f) (int a);};
14654struct s2 {int (*f) (double a);};
14655int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
14656int argc;
14657char **argv;
14658int
14659main ()
14660{
14661return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
14662  ;
14663  return 0;
14664}
14665_ACEOF
14666for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
14667	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
14668do
14669  CC="$ac_save_CC $ac_arg"
14670  if ac_fn_c_try_compile "$LINENO"; then :
14671  ac_cv_prog_cc_c89=$ac_arg
14672fi
14673rm -f core conftest.err conftest.$ac_objext
14674  test "x$ac_cv_prog_cc_c89" != "xno" && break
14675done
14676rm -f conftest.$ac_ext
14677CC=$ac_save_CC
14678
14679fi
14680# AC_CACHE_VAL
14681case "x$ac_cv_prog_cc_c89" in
14682  x)
14683    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
14684$as_echo "none needed" >&6; } ;;
14685  xno)
14686    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
14687$as_echo "unsupported" >&6; } ;;
14688  *)
14689    CC="$CC $ac_cv_prog_cc_c89"
14690    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
14691$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
14692esac
14693if test "x$ac_cv_prog_cc_c89" != xno; then :
14694
14695fi
14696
14697ac_ext=c
14698ac_cpp='$CPP $CPPFLAGS'
14699ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14700ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14701ac_compiler_gnu=$ac_cv_c_compiler_gnu
14702
14703if test "X${ac_cv_prog_cc_stdc}" = "Xno" ; then
14704	as_fn_error $? "OpenLDAP requires compiler to support STDC constructs." "$LINENO" 5
14705fi
14706
14707# test for make depend flag
14708OL_MKDEP=
14709OL_MKDEP_FLAGS=
14710if test -z "${MKDEP}"; then
14711	OL_MKDEP="${CC-cc}"
14712	if test -z "${MKDEP_FLAGS}"; then
14713		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${OL_MKDEP} depend flag" >&5
14714$as_echo_n "checking for ${OL_MKDEP} depend flag... " >&6; }
14715if ${ol_cv_mkdep+:} false; then :
14716  $as_echo_n "(cached) " >&6
14717else
14718
14719			ol_cv_mkdep=no
14720			for flag in "-M" "-xM"; do
14721				cat > conftest.c <<EOF
14722 noCode;
14723EOF
14724				if { ac_try='$OL_MKDEP $flag conftest.c'
14725  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14726  (eval $ac_try) 2>&5
14727  ac_status=$?
14728  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14729  test $ac_status = 0; }; } \
14730					| grep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
14731				then
14732					if test ! -f conftest."${ac_object}" ; then
14733						ol_cv_mkdep=$flag
14734						OL_MKDEP_FLAGS="$flag"
14735						break
14736					fi
14737				fi
14738			done
14739			rm -f conftest*
14740
14741fi
14742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_mkdep" >&5
14743$as_echo "$ol_cv_mkdep" >&6; }
14744		test "$ol_cv_mkdep" = no && OL_MKDEP=":"
14745	else
14746		cc_cv_mkdep=yes
14747		OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
14748	fi
14749else
14750	cc_cv_mkdep=yes
14751	OL_MKDEP="${MKDEP}"
14752	OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
14753fi
14754
14755
14756
14757if test "${ol_cv_mkdep}" = no ; then
14758	# this will soon become an error
14759	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: do not know how to generate dependencies" >&5
14760$as_echo "$as_me: WARNING: do not know how to generate dependencies" >&2;}
14761fi
14762
14763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for afopen in -ls" >&5
14764$as_echo_n "checking for afopen in -ls... " >&6; }
14765if ${ac_cv_lib_s_afopen+:} false; then :
14766  $as_echo_n "(cached) " >&6
14767else
14768  ac_check_lib_save_LIBS=$LIBS
14769LIBS="-ls  $LIBS"
14770cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14771/* end confdefs.h.  */
14772
14773/* Override any GCC internal prototype to avoid an error.
14774   Use char because int might match the return type of a GCC
14775   builtin and then its argument prototype would still apply.  */
14776#ifdef __cplusplus
14777extern "C"
14778#endif
14779char afopen ();
14780int
14781main ()
14782{
14783return afopen ();
14784  ;
14785  return 0;
14786}
14787_ACEOF
14788if ac_fn_c_try_link "$LINENO"; then :
14789  ac_cv_lib_s_afopen=yes
14790else
14791  ac_cv_lib_s_afopen=no
14792fi
14793rm -f core conftest.err conftest.$ac_objext \
14794    conftest$ac_exeext conftest.$ac_ext
14795LIBS=$ac_check_lib_save_LIBS
14796fi
14797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_s_afopen" >&5
14798$as_echo "$ac_cv_lib_s_afopen" >&6; }
14799if test "x$ac_cv_lib_s_afopen" = xyes; then :
14800
14801	AUTH_LIBS=-ls
14802
14803$as_echo "#define HAVE_AIX_SECURITY 1" >>confdefs.h
14804
14805
14806fi
14807
14808
14809case "$target" in
14810*-ibm-openedition)
14811	ac_cv_func_getopt=no
14812
14813$as_echo "#define BOTH_STRINGS_H 1" >>confdefs.h
14814
14815	;;
14816esac
14817
14818ol_link_modules=no
14819WITH_MODULES_ENABLED=no
14820if test $ol_enable_modules != no ; then
14821	for ac_header in ltdl.h
14822do :
14823  ac_fn_c_check_header_mongrel "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default"
14824if test "x$ac_cv_header_ltdl_h" = xyes; then :
14825  cat >>confdefs.h <<_ACEOF
14826#define HAVE_LTDL_H 1
14827_ACEOF
14828
14829fi
14830
14831done
14832
14833
14834	if test $ac_cv_header_ltdl_h = no ; then
14835		as_fn_error $? "could not locate libtool ltdl.h" "$LINENO" 5
14836	fi
14837
14838	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dlinit in -lltdl" >&5
14839$as_echo_n "checking for lt_dlinit in -lltdl... " >&6; }
14840if ${ac_cv_lib_ltdl_lt_dlinit+:} false; then :
14841  $as_echo_n "(cached) " >&6
14842else
14843  ac_check_lib_save_LIBS=$LIBS
14844LIBS="-lltdl  $LIBS"
14845cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14846/* end confdefs.h.  */
14847
14848/* Override any GCC internal prototype to avoid an error.
14849   Use char because int might match the return type of a GCC
14850   builtin and then its argument prototype would still apply.  */
14851#ifdef __cplusplus
14852extern "C"
14853#endif
14854char lt_dlinit ();
14855int
14856main ()
14857{
14858return lt_dlinit ();
14859  ;
14860  return 0;
14861}
14862_ACEOF
14863if ac_fn_c_try_link "$LINENO"; then :
14864  ac_cv_lib_ltdl_lt_dlinit=yes
14865else
14866  ac_cv_lib_ltdl_lt_dlinit=no
14867fi
14868rm -f core conftest.err conftest.$ac_objext \
14869    conftest$ac_exeext conftest.$ac_ext
14870LIBS=$ac_check_lib_save_LIBS
14871fi
14872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
14873$as_echo "$ac_cv_lib_ltdl_lt_dlinit" >&6; }
14874if test "x$ac_cv_lib_ltdl_lt_dlinit" = xyes; then :
14875
14876		MODULES_LIBS=-lltdl
14877
14878$as_echo "#define HAVE_LIBLTDL 1" >>confdefs.h
14879
14880
14881fi
14882
14883
14884	if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
14885		as_fn_error $? "could not locate libtool -lltdl" "$LINENO" 5
14886	fi
14887	ol_link_modules=yes
14888	WITH_MODULES_ENABLED=yes
14889fi
14890
14891# test for EBCDIC
14892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for EBCDIC" >&5
14893$as_echo_n "checking for EBCDIC... " >&6; }
14894if ${ol_cv_cpp_ebcdic+:} false; then :
14895  $as_echo_n "(cached) " >&6
14896else
14897
14898	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14899/* end confdefs.h.  */
14900
14901#if !('M' == 0xd4)
14902#include <__ASCII__/generate_error.h>
14903#endif
14904
14905_ACEOF
14906if ac_fn_c_try_cpp "$LINENO"; then :
14907  ol_cv_cpp_ebcdic=yes
14908else
14909  ol_cv_cpp_ebcdic=no
14910fi
14911rm -f conftest.err conftest.i conftest.$ac_ext
14912fi
14913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_cpp_ebcdic" >&5
14914$as_echo "$ol_cv_cpp_ebcdic" >&6; }
14915if test $ol_cv_cpp_ebcdic = yes ; then
14916
14917$as_echo "#define HAVE_EBCDIC 1" >>confdefs.h
14918
14919fi
14920
14921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
14922$as_echo_n "checking for ANSI C header files... " >&6; }
14923if ${ol_cv_header_stdc+:} false; then :
14924  $as_echo_n "(cached) " >&6
14925else
14926  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14927/* end confdefs.h.  */
14928#include <stdlib.h>
14929#include <stdarg.h>
14930#include <string.h>
14931#include <float.h>
14932_ACEOF
14933if ac_fn_c_try_cpp "$LINENO"; then :
14934  ol_cv_header_stdc=yes
14935else
14936  ol_cv_header_stdc=no
14937fi
14938rm -f conftest.err conftest.i conftest.$ac_ext
14939
14940if test $ol_cv_header_stdc = yes; then
14941  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14942cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14943/* end confdefs.h.  */
14944#include <string.h>
14945
14946_ACEOF
14947if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14948  $EGREP "memchr" >/dev/null 2>&1; then :
14949
14950else
14951  ol_cv_header_stdc=no
14952fi
14953rm -f conftest*
14954
14955fi
14956
14957if test $ol_cv_header_stdc = yes; then
14958  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14959cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14960/* end confdefs.h.  */
14961#include <stdlib.h>
14962
14963_ACEOF
14964if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14965  $EGREP "free" >/dev/null 2>&1; then :
14966
14967else
14968  ol_cv_header_stdc=no
14969fi
14970rm -f conftest*
14971
14972fi
14973
14974if test $ol_cv_header_stdc = yes; then
14975  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14976if test "$cross_compiling" = yes; then :
14977  :
14978else
14979  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14980/* end confdefs.h.  */
14981#include <ctype.h>
14982#ifndef HAVE_EBCDIC
14983#	define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14984#	define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14985#else
14986#	define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
14987		|| ('j' <= (c) && (c) <= 'r') \
14988		|| ('s' <= (c) && (c) <= 'z'))
14989#	define TOUPPER(c)	(ISLOWER(c) ? ((c) | 0x40) : (c))
14990#endif
14991#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14992int main () { int i; for (i = 0; i < 256; i++)
14993if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
14994exit (0); }
14995
14996_ACEOF
14997if ac_fn_c_try_run "$LINENO"; then :
14998
14999else
15000  ol_cv_header_stdc=no
15001fi
15002rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15003  conftest.$ac_objext conftest.beam conftest.$ac_ext
15004fi
15005
15006fi
15007fi
15008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_stdc" >&5
15009$as_echo "$ol_cv_header_stdc" >&6; }
15010if test $ol_cv_header_stdc = yes; then
15011  $as_echo "#define STDC_HEADERS 1" >>confdefs.h
15012
15013fi
15014ac_cv_header_stdc=disable
15015
15016
15017if test $ol_cv_header_stdc != yes; then
15018	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not locate Standard C compliant headers" >&5
15019$as_echo "$as_me: WARNING: could not locate Standard C compliant headers" >&2;}
15020fi
15021
15022ac_header_dirent=no
15023for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
15024  as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
15025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
15026$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
15027if eval \${$as_ac_Header+:} false; then :
15028  $as_echo_n "(cached) " >&6
15029else
15030  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15031/* end confdefs.h.  */
15032#include <sys/types.h>
15033#include <$ac_hdr>
15034
15035int
15036main ()
15037{
15038if ((DIR *) 0)
15039return 0;
15040  ;
15041  return 0;
15042}
15043_ACEOF
15044if ac_fn_c_try_compile "$LINENO"; then :
15045  eval "$as_ac_Header=yes"
15046else
15047  eval "$as_ac_Header=no"
15048fi
15049rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15050fi
15051eval ac_res=\$$as_ac_Header
15052	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15053$as_echo "$ac_res" >&6; }
15054if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15055  cat >>confdefs.h <<_ACEOF
15056#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
15057_ACEOF
15058
15059ac_header_dirent=$ac_hdr; break
15060fi
15061
15062done
15063# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
15064if test $ac_header_dirent = dirent.h; then
15065  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
15066$as_echo_n "checking for library containing opendir... " >&6; }
15067if ${ac_cv_search_opendir+:} false; then :
15068  $as_echo_n "(cached) " >&6
15069else
15070  ac_func_search_save_LIBS=$LIBS
15071cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15072/* end confdefs.h.  */
15073
15074/* Override any GCC internal prototype to avoid an error.
15075   Use char because int might match the return type of a GCC
15076   builtin and then its argument prototype would still apply.  */
15077#ifdef __cplusplus
15078extern "C"
15079#endif
15080char opendir ();
15081int
15082main ()
15083{
15084return opendir ();
15085  ;
15086  return 0;
15087}
15088_ACEOF
15089for ac_lib in '' dir; do
15090  if test -z "$ac_lib"; then
15091    ac_res="none required"
15092  else
15093    ac_res=-l$ac_lib
15094    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15095  fi
15096  if ac_fn_c_try_link "$LINENO"; then :
15097  ac_cv_search_opendir=$ac_res
15098fi
15099rm -f core conftest.err conftest.$ac_objext \
15100    conftest$ac_exeext
15101  if ${ac_cv_search_opendir+:} false; then :
15102  break
15103fi
15104done
15105if ${ac_cv_search_opendir+:} false; then :
15106
15107else
15108  ac_cv_search_opendir=no
15109fi
15110rm conftest.$ac_ext
15111LIBS=$ac_func_search_save_LIBS
15112fi
15113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
15114$as_echo "$ac_cv_search_opendir" >&6; }
15115ac_res=$ac_cv_search_opendir
15116if test "$ac_res" != no; then :
15117  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15118
15119fi
15120
15121else
15122  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
15123$as_echo_n "checking for library containing opendir... " >&6; }
15124if ${ac_cv_search_opendir+:} false; then :
15125  $as_echo_n "(cached) " >&6
15126else
15127  ac_func_search_save_LIBS=$LIBS
15128cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15129/* end confdefs.h.  */
15130
15131/* Override any GCC internal prototype to avoid an error.
15132   Use char because int might match the return type of a GCC
15133   builtin and then its argument prototype would still apply.  */
15134#ifdef __cplusplus
15135extern "C"
15136#endif
15137char opendir ();
15138int
15139main ()
15140{
15141return opendir ();
15142  ;
15143  return 0;
15144}
15145_ACEOF
15146for ac_lib in '' x; do
15147  if test -z "$ac_lib"; then
15148    ac_res="none required"
15149  else
15150    ac_res=-l$ac_lib
15151    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15152  fi
15153  if ac_fn_c_try_link "$LINENO"; then :
15154  ac_cv_search_opendir=$ac_res
15155fi
15156rm -f core conftest.err conftest.$ac_objext \
15157    conftest$ac_exeext
15158  if ${ac_cv_search_opendir+:} false; then :
15159  break
15160fi
15161done
15162if ${ac_cv_search_opendir+:} false; then :
15163
15164else
15165  ac_cv_search_opendir=no
15166fi
15167rm conftest.$ac_ext
15168LIBS=$ac_func_search_save_LIBS
15169fi
15170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
15171$as_echo "$ac_cv_search_opendir" >&6; }
15172ac_res=$ac_cv_search_opendir
15173if test "$ac_res" != no; then :
15174  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15175
15176fi
15177
15178fi
15179
15180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
15181$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
15182if ${ac_cv_header_sys_wait_h+:} false; then :
15183  $as_echo_n "(cached) " >&6
15184else
15185  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15186/* end confdefs.h.  */
15187#include <sys/types.h>
15188#include <sys/wait.h>
15189#ifndef WEXITSTATUS
15190# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
15191#endif
15192#ifndef WIFEXITED
15193# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15194#endif
15195
15196int
15197main ()
15198{
15199  int s;
15200  wait (&s);
15201  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15202  ;
15203  return 0;
15204}
15205_ACEOF
15206if ac_fn_c_try_compile "$LINENO"; then :
15207  ac_cv_header_sys_wait_h=yes
15208else
15209  ac_cv_header_sys_wait_h=no
15210fi
15211rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15212fi
15213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
15214$as_echo "$ac_cv_header_sys_wait_h" >&6; }
15215if test $ac_cv_header_sys_wait_h = yes; then
15216
15217$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
15218
15219fi
15220
15221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
15222$as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
15223if ${ac_cv_sys_tiocgwinsz_in_termios_h+:} false; then :
15224  $as_echo_n "(cached) " >&6
15225else
15226  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15227/* end confdefs.h.  */
15228#include <sys/types.h>
15229#include <termios.h>
15230#ifdef TIOCGWINSZ
15231  yes
15232#endif
15233
15234_ACEOF
15235if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15236  $EGREP "yes" >/dev/null 2>&1; then :
15237  ac_cv_sys_tiocgwinsz_in_termios_h=yes
15238else
15239  ac_cv_sys_tiocgwinsz_in_termios_h=no
15240fi
15241rm -f conftest*
15242
15243fi
15244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
15245$as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
15246
15247if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
15248  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
15249$as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
15250if ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+:} false; then :
15251  $as_echo_n "(cached) " >&6
15252else
15253  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15254/* end confdefs.h.  */
15255#include <sys/types.h>
15256#include <sys/ioctl.h>
15257#ifdef TIOCGWINSZ
15258  yes
15259#endif
15260
15261_ACEOF
15262if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15263  $EGREP "yes" >/dev/null 2>&1; then :
15264  ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
15265else
15266  ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
15267fi
15268rm -f conftest*
15269
15270fi
15271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
15272$as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
15273
15274  if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
15275
15276$as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
15277
15278  fi
15279fi
15280
15281
15282for ac_header in \
15283	arpa/inet.h		\
15284	arpa/nameser.h	\
15285	assert.h		\
15286	bits/types.h	\
15287	conio.h			\
15288	crypt.h			\
15289	direct.h		\
15290	errno.h			\
15291	fcntl.h			\
15292	filio.h			\
15293	getopt.h		\
15294	grp.h			\
15295	io.h			\
15296	libutil.h		\
15297	limits.h		\
15298	locale.h		\
15299	malloc.h		\
15300	memory.h		\
15301	psap.h			\
15302	pwd.h			\
15303	process.h		\
15304	sgtty.h			\
15305	shadow.h		\
15306	stddef.h		\
15307	string.h		\
15308	strings.h		\
15309	sysexits.h		\
15310	sys/file.h		\
15311	sys/filio.h		\
15312	sys/fstyp.h		\
15313	sys/errno.h		\
15314	sys/ioctl.h		\
15315	sys/param.h		\
15316	sys/privgrp.h	\
15317	sys/resource.h	\
15318	sys/select.h	\
15319	sys/socket.h	\
15320	sys/stat.h		\
15321	sys/syslog.h	\
15322	sys/time.h		\
15323	sys/types.h		\
15324	sys/uio.h		\
15325	sys/vmount.h	\
15326	syslog.h		\
15327	termios.h		\
15328	unistd.h		\
15329	utime.h			\
15330
15331do :
15332  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15333ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15334if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15335  cat >>confdefs.h <<_ACEOF
15336#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15337_ACEOF
15338
15339fi
15340
15341done
15342
15343
15344if test "$ac_cv_mingw32" = yes \
15345	-o "$ac_cv_interix" = yes \
15346	-o "$ol_cv_msvc" = yes
15347then
15348	for ac_header in winsock.h winsock2.h
15349do :
15350  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15351ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15352if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15353  cat >>confdefs.h <<_ACEOF
15354#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15355_ACEOF
15356
15357fi
15358
15359done
15360
15361fi
15362
15363for ac_header in resolv.h
15364do :
15365  ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "$ac_includes_default
15366#include <netinet/in.h>
15367
15368"
15369if test "x$ac_cv_header_resolv_h" = xyes; then :
15370  cat >>confdefs.h <<_ACEOF
15371#define HAVE_RESOLV_H 1
15372_ACEOF
15373
15374fi
15375
15376done
15377
15378
15379for ac_header in netinet/tcp.h
15380do :
15381  ac_fn_c_check_header_compile "$LINENO" "netinet/tcp.h" "ac_cv_header_netinet_tcp_h" "$ac_includes_default
15382#include <netinet/in.h>
15383
15384"
15385if test "x$ac_cv_header_netinet_tcp_h" = xyes; then :
15386  cat >>confdefs.h <<_ACEOF
15387#define HAVE_NETINET_TCP_H 1
15388_ACEOF
15389
15390fi
15391
15392done
15393
15394
15395for ac_header in sys/ucred.h
15396do :
15397  ac_fn_c_check_header_compile "$LINENO" "sys/ucred.h" "ac_cv_header_sys_ucred_h" "$ac_includes_default
15398#ifdef HAVE_SYS_PARAM_H
15399#include <sys/param.h>
15400#endif
15401
15402"
15403if test "x$ac_cv_header_sys_ucred_h" = xyes; then :
15404  cat >>confdefs.h <<_ACEOF
15405#define HAVE_SYS_UCRED_H 1
15406_ACEOF
15407
15408fi
15409
15410done
15411
15412
15413
15414for ac_func in sigaction sigset
15415do :
15416  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15417ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15418if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15419  cat >>confdefs.h <<_ACEOF
15420#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15421_ACEOF
15422
15423fi
15424done
15425
15426for ac_func in fmemopen
15427do :
15428  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15429ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15430if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15431  cat >>confdefs.h <<_ACEOF
15432#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15433_ACEOF
15434
15435fi
15436done
15437
15438
15439if test $ac_cv_func_sigaction = no && test $ac_cv_func_sigaction = no ; then
15440	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigset in -lV3" >&5
15441$as_echo_n "checking for sigset in -lV3... " >&6; }
15442if ${ac_cv_lib_V3_sigset+:} false; then :
15443  $as_echo_n "(cached) " >&6
15444else
15445  ac_check_lib_save_LIBS=$LIBS
15446LIBS="-lV3  $LIBS"
15447cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15448/* end confdefs.h.  */
15449
15450/* Override any GCC internal prototype to avoid an error.
15451   Use char because int might match the return type of a GCC
15452   builtin and then its argument prototype would still apply.  */
15453#ifdef __cplusplus
15454extern "C"
15455#endif
15456char sigset ();
15457int
15458main ()
15459{
15460return sigset ();
15461  ;
15462  return 0;
15463}
15464_ACEOF
15465if ac_fn_c_try_link "$LINENO"; then :
15466  ac_cv_lib_V3_sigset=yes
15467else
15468  ac_cv_lib_V3_sigset=no
15469fi
15470rm -f core conftest.err conftest.$ac_objext \
15471    conftest$ac_exeext conftest.$ac_ext
15472LIBS=$ac_check_lib_save_LIBS
15473fi
15474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_V3_sigset" >&5
15475$as_echo "$ac_cv_lib_V3_sigset" >&6; }
15476if test "x$ac_cv_lib_V3_sigset" = xyes; then :
15477  cat >>confdefs.h <<_ACEOF
15478#define HAVE_LIBV3 1
15479_ACEOF
15480
15481  LIBS="-lV3 $LIBS"
15482
15483fi
15484
15485fi
15486
15487if test $ol_cv_msvc = yes ; then
15488   ol_cv_winsock=yes
15489fi
15490
15491if test "$ac_cv_header_winsock_h" = yes; then
15492	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock" >&5
15493$as_echo_n "checking for winsock... " >&6; }
15494if ${ol_cv_winsock+:} false; then :
15495  $as_echo_n "(cached) " >&6
15496else
15497
15498	save_LIBS="$LIBS"
15499	for curlib in none ws2_32 wsock32; do
15500		if test $curlib != none ; then
15501	    	LIBS="$save_LIBS -l$curlib"
15502		fi
15503		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15504/* end confdefs.h.  */
15505#include <winsock.h>
15506
15507int
15508main ()
15509{
15510
15511			socket(0,0,0);
15512			select(0,NULL,NULL,NULL,NULL);
15513			closesocket(0);
15514			gethostname(NULL,0);
15515
15516  ;
15517  return 0;
15518}
15519_ACEOF
15520if ac_fn_c_try_link "$LINENO"; then :
15521  ol_cv_winsock=$curlib
15522else
15523  ol_cv_winsock=no
15524fi
15525rm -f core conftest.err conftest.$ac_objext \
15526    conftest$ac_exeext conftest.$ac_ext
15527
15528		test "$ol_cv_winsock" != no && break
15529	done
15530	LIBS="$save_LIBS"
15531
15532fi
15533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_winsock" >&5
15534$as_echo "$ol_cv_winsock" >&6; }
15535
15536	if test $ol_cv_winsock != no ; then
15537
15538$as_echo "#define HAVE_WINSOCK 1" >>confdefs.h
15539
15540    	ac_cv_func_socket=yes
15541    	ac_cv_func_select=yes
15542    	ac_cv_func_closesocket=yes
15543    	ac_cv_func_gethostname=yes
15544
15545		if test $ol_cv_winsock != none -a $ol_cv_winsock != yes ; then
15546        	LIBS="$LIBS -l$ol_cv_winsock"
15547		fi
15548
15549    	if test $ol_cv_winsock = ws2_32 -o $ol_cv_winsock = yes ; then
15550
15551$as_echo "#define HAVE_WINSOCK2 1" >>confdefs.h
15552
15553    	fi
15554	fi
15555fi
15556
15557
15558ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
15559if test "x$ac_cv_func_socket" = xyes; then :
15560  :
15561else
15562
15563	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
15564$as_echo_n "checking for main in -lsocket... " >&6; }
15565if ${ac_cv_lib_socket_main+:} false; then :
15566  $as_echo_n "(cached) " >&6
15567else
15568  ac_check_lib_save_LIBS=$LIBS
15569LIBS="-lsocket  $LIBS"
15570cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15571/* end confdefs.h.  */
15572
15573
15574int
15575main ()
15576{
15577return main ();
15578  ;
15579  return 0;
15580}
15581_ACEOF
15582if ac_fn_c_try_link "$LINENO"; then :
15583  ac_cv_lib_socket_main=yes
15584else
15585  ac_cv_lib_socket_main=no
15586fi
15587rm -f core conftest.err conftest.$ac_objext \
15588    conftest$ac_exeext conftest.$ac_ext
15589LIBS=$ac_check_lib_save_LIBS
15590fi
15591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
15592$as_echo "$ac_cv_lib_socket_main" >&6; }
15593if test "x$ac_cv_lib_socket_main" = xyes; then :
15594  cat >>confdefs.h <<_ACEOF
15595#define HAVE_LIBSOCKET 1
15596_ACEOF
15597
15598  LIBS="-lsocket $LIBS"
15599
15600fi
15601
15602	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lnet" >&5
15603$as_echo_n "checking for socket in -lnet... " >&6; }
15604if ${ac_cv_lib_net_socket+:} false; then :
15605  $as_echo_n "(cached) " >&6
15606else
15607  ac_check_lib_save_LIBS=$LIBS
15608LIBS="-lnet  $LIBS"
15609cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15610/* end confdefs.h.  */
15611
15612/* Override any GCC internal prototype to avoid an error.
15613   Use char because int might match the return type of a GCC
15614   builtin and then its argument prototype would still apply.  */
15615#ifdef __cplusplus
15616extern "C"
15617#endif
15618char socket ();
15619int
15620main ()
15621{
15622return socket ();
15623  ;
15624  return 0;
15625}
15626_ACEOF
15627if ac_fn_c_try_link "$LINENO"; then :
15628  ac_cv_lib_net_socket=yes
15629else
15630  ac_cv_lib_net_socket=no
15631fi
15632rm -f core conftest.err conftest.$ac_objext \
15633    conftest$ac_exeext conftest.$ac_ext
15634LIBS=$ac_check_lib_save_LIBS
15635fi
15636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_net_socket" >&5
15637$as_echo "$ac_cv_lib_net_socket" >&6; }
15638if test "x$ac_cv_lib_net_socket" = xyes; then :
15639  cat >>confdefs.h <<_ACEOF
15640#define HAVE_LIBNET 1
15641_ACEOF
15642
15643  LIBS="-lnet $LIBS"
15644
15645fi
15646
15647	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl_s" >&5
15648$as_echo_n "checking for main in -lnsl_s... " >&6; }
15649if ${ac_cv_lib_nsl_s_main+:} false; then :
15650  $as_echo_n "(cached) " >&6
15651else
15652  ac_check_lib_save_LIBS=$LIBS
15653LIBS="-lnsl_s  $LIBS"
15654cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15655/* end confdefs.h.  */
15656
15657
15658int
15659main ()
15660{
15661return main ();
15662  ;
15663  return 0;
15664}
15665_ACEOF
15666if ac_fn_c_try_link "$LINENO"; then :
15667  ac_cv_lib_nsl_s_main=yes
15668else
15669  ac_cv_lib_nsl_s_main=no
15670fi
15671rm -f core conftest.err conftest.$ac_objext \
15672    conftest$ac_exeext conftest.$ac_ext
15673LIBS=$ac_check_lib_save_LIBS
15674fi
15675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_s_main" >&5
15676$as_echo "$ac_cv_lib_nsl_s_main" >&6; }
15677if test "x$ac_cv_lib_nsl_s_main" = xyes; then :
15678  cat >>confdefs.h <<_ACEOF
15679#define HAVE_LIBNSL_S 1
15680_ACEOF
15681
15682  LIBS="-lnsl_s $LIBS"
15683
15684fi
15685
15686	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
15687$as_echo_n "checking for main in -lnsl... " >&6; }
15688if ${ac_cv_lib_nsl_main+:} false; then :
15689  $as_echo_n "(cached) " >&6
15690else
15691  ac_check_lib_save_LIBS=$LIBS
15692LIBS="-lnsl  $LIBS"
15693cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15694/* end confdefs.h.  */
15695
15696
15697int
15698main ()
15699{
15700return main ();
15701  ;
15702  return 0;
15703}
15704_ACEOF
15705if ac_fn_c_try_link "$LINENO"; then :
15706  ac_cv_lib_nsl_main=yes
15707else
15708  ac_cv_lib_nsl_main=no
15709fi
15710rm -f core conftest.err conftest.$ac_objext \
15711    conftest$ac_exeext conftest.$ac_ext
15712LIBS=$ac_check_lib_save_LIBS
15713fi
15714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
15715$as_echo "$ac_cv_lib_nsl_main" >&6; }
15716if test "x$ac_cv_lib_nsl_main" = xyes; then :
15717  cat >>confdefs.h <<_ACEOF
15718#define HAVE_LIBNSL 1
15719_ACEOF
15720
15721  LIBS="-lnsl $LIBS"
15722
15723fi
15724
15725	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -linet" >&5
15726$as_echo_n "checking for socket in -linet... " >&6; }
15727if ${ac_cv_lib_inet_socket+:} false; then :
15728  $as_echo_n "(cached) " >&6
15729else
15730  ac_check_lib_save_LIBS=$LIBS
15731LIBS="-linet  $LIBS"
15732cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15733/* end confdefs.h.  */
15734
15735/* Override any GCC internal prototype to avoid an error.
15736   Use char because int might match the return type of a GCC
15737   builtin and then its argument prototype would still apply.  */
15738#ifdef __cplusplus
15739extern "C"
15740#endif
15741char socket ();
15742int
15743main ()
15744{
15745return socket ();
15746  ;
15747  return 0;
15748}
15749_ACEOF
15750if ac_fn_c_try_link "$LINENO"; then :
15751  ac_cv_lib_inet_socket=yes
15752else
15753  ac_cv_lib_inet_socket=no
15754fi
15755rm -f core conftest.err conftest.$ac_objext \
15756    conftest$ac_exeext conftest.$ac_ext
15757LIBS=$ac_check_lib_save_LIBS
15758fi
15759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_socket" >&5
15760$as_echo "$ac_cv_lib_inet_socket" >&6; }
15761if test "x$ac_cv_lib_inet_socket" = xyes; then :
15762  cat >>confdefs.h <<_ACEOF
15763#define HAVE_LIBINET 1
15764_ACEOF
15765
15766  LIBS="-linet $LIBS"
15767
15768fi
15769
15770	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lgen" >&5
15771$as_echo_n "checking for main in -lgen... " >&6; }
15772if ${ac_cv_lib_gen_main+:} false; then :
15773  $as_echo_n "(cached) " >&6
15774else
15775  ac_check_lib_save_LIBS=$LIBS
15776LIBS="-lgen  $LIBS"
15777cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15778/* end confdefs.h.  */
15779
15780
15781int
15782main ()
15783{
15784return main ();
15785  ;
15786  return 0;
15787}
15788_ACEOF
15789if ac_fn_c_try_link "$LINENO"; then :
15790  ac_cv_lib_gen_main=yes
15791else
15792  ac_cv_lib_gen_main=no
15793fi
15794rm -f core conftest.err conftest.$ac_objext \
15795    conftest$ac_exeext conftest.$ac_ext
15796LIBS=$ac_check_lib_save_LIBS
15797fi
15798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_main" >&5
15799$as_echo "$ac_cv_lib_gen_main" >&6; }
15800if test "x$ac_cv_lib_gen_main" = xyes; then :
15801  cat >>confdefs.h <<_ACEOF
15802#define HAVE_LIBGEN 1
15803_ACEOF
15804
15805  LIBS="-lgen $LIBS"
15806
15807fi
15808
15809
15810fi
15811
15812
15813ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select"
15814if test "x$ac_cv_func_select" = xyes; then :
15815  :
15816else
15817  as_fn_error $? "select() required." "$LINENO" 5
15818fi
15819
15820
15821if test "${ac_cv_header_winsock_h}" != yes; then
15822				for ac_header in sys/select.h sys/socket.h
15823do :
15824  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15825ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15826if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15827  cat >>confdefs.h <<_ACEOF
15828#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15829_ACEOF
15830
15831fi
15832
15833done
15834
15835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
15836$as_echo_n "checking types of arguments for select... " >&6; }
15837if ${ac_cv_func_select_args+:} false; then :
15838  $as_echo_n "(cached) " >&6
15839else
15840  for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
15841 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
15842  for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
15843   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15844/* end confdefs.h.  */
15845$ac_includes_default
15846#ifdef HAVE_SYS_SELECT_H
15847# include <sys/select.h>
15848#endif
15849#ifdef HAVE_SYS_SOCKET_H
15850# include <sys/socket.h>
15851#endif
15852
15853int
15854main ()
15855{
15856extern int select ($ac_arg1,
15857					    $ac_arg234, $ac_arg234, $ac_arg234,
15858					    $ac_arg5);
15859  ;
15860  return 0;
15861}
15862_ACEOF
15863if ac_fn_c_try_compile "$LINENO"; then :
15864  ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
15865fi
15866rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15867  done
15868 done
15869done
15870# Provide a safe default value.
15871: "${ac_cv_func_select_args=int,int *,struct timeval *}"
15872
15873fi
15874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
15875$as_echo "$ac_cv_func_select_args" >&6; }
15876ac_save_IFS=$IFS; IFS=','
15877set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
15878IFS=$ac_save_IFS
15879shift
15880
15881cat >>confdefs.h <<_ACEOF
15882#define SELECT_TYPE_ARG1 $1
15883_ACEOF
15884
15885
15886cat >>confdefs.h <<_ACEOF
15887#define SELECT_TYPE_ARG234 ($2)
15888_ACEOF
15889
15890
15891cat >>confdefs.h <<_ACEOF
15892#define SELECT_TYPE_ARG5 ($3)
15893_ACEOF
15894
15895rm -f conftest*
15896
15897fi
15898
15899
15900for ac_func in poll
15901do :
15902  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15903ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15904if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15905  cat >>confdefs.h <<_ACEOF
15906#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15907_ACEOF
15908
15909fi
15910done
15911
15912if test $ac_cv_func_poll = yes; then
15913for ac_header in poll.h sys/poll.h
15914do :
15915  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15916ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15917if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15918  cat >>confdefs.h <<_ACEOF
15919#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15920_ACEOF
15921
15922fi
15923
15924done
15925
15926fi
15927
15928for ac_header in sys/epoll.h
15929do :
15930  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15931ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15932if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15933  cat >>confdefs.h <<_ACEOF
15934#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15935_ACEOF
15936
15937fi
15938
15939done
15940
15941if test "${ac_cv_header_sys_epoll_h}" = yes; then
15942	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll system call" >&5
15943$as_echo_n "checking for epoll system call... " >&6; }
15944	if test "$cross_compiling" = yes; then :
15945  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15946$as_echo "no" >&6; }
15947else
15948  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15949/* end confdefs.h.  */
15950int main(int argc, char **argv)
15951{
15952	int epfd = epoll_create(256);
15953	exit (epfd == -1 ? 1 : 0);
15954}
15955_ACEOF
15956if ac_fn_c_try_run "$LINENO"; then :
15957  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15958$as_echo "yes" >&6; }
15959
15960$as_echo "#define HAVE_EPOLL 1" >>confdefs.h
15961
15962else
15963  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15964$as_echo "no" >&6; }
15965fi
15966rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15967  conftest.$ac_objext conftest.beam conftest.$ac_ext
15968fi
15969
15970fi
15971
15972for ac_header in sys/event.h
15973do :
15974  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15975ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15976if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15977  cat >>confdefs.h <<_ACEOF
15978#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15979_ACEOF
15980
15981fi
15982
15983done
15984
15985if test "${ac_cv_header_sys_event_h}" = yes; then
15986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for kqueue system call" >&5
15987$as_echo_n "checking for kqueue system call... " >&6; }
15988if test "$cross_compiling" = yes; then :
15989  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15990$as_echo "no" >&6; }
15991else
15992  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15993/* end confdefs.h.  */
15994int main(int argc, char **argv)
15995{
15996	int kqfd = kqueue();
15997	exit (kqfd == -1 ? 1 : 0);
15998}
15999_ACEOF
16000if ac_fn_c_try_run "$LINENO"; then :
16001  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16002$as_echo "yes" >&6; }
16003
16004$as_echo "#define HAVE_KQUEUE 1" >>confdefs.h
16005
16006else
16007  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16008$as_echo "no" >&6; }
16009fi
16010rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16011  conftest.$ac_objext conftest.beam conftest.$ac_ext
16012fi
16013
16014fi
16015
16016for ac_header in sys/devpoll.h
16017do :
16018  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16019ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16020if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16021  cat >>confdefs.h <<_ACEOF
16022#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16023_ACEOF
16024
16025fi
16026
16027done
16028
16029if test "${ac_cv_header_sys_devpoll_h}" = yes \
16030		-a "${ac_cv_header_poll_h}" = yes ; \
16031then
16032	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/poll" >&5
16033$as_echo_n "checking for /dev/poll... " >&6; }
16034	if test "$cross_compiling" = yes; then :
16035  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16036$as_echo "no" >&6; }
16037else
16038  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16039/* end confdefs.h.  */
16040int main(int argc, char **argv)
16041{
16042	int devpollfd = open("/dev/poll", /* O_RDWR */ 2);
16043	exit (devpollfd == -1 ? 1 : 0);
16044}
16045_ACEOF
16046if ac_fn_c_try_run "$LINENO"; then :
16047  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16048$as_echo "yes" >&6; }
16049
16050$as_echo "#define HAVE_DEVPOLL 1" >>confdefs.h
16051
16052else
16053  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16054$as_echo "no" >&6; }
16055fi
16056rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16057  conftest.$ac_objext conftest.beam conftest.$ac_ext
16058fi
16059
16060fi
16061
16062for ac_func in strerror strerror_r
16063do :
16064  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16065ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16066if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16067  cat >>confdefs.h <<_ACEOF
16068#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16069_ACEOF
16070
16071fi
16072done
16073
16074ol_cv_func_strerror_r=no
16075if test "${ac_cv_func_strerror_r}" = yes ; then
16076	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking non-posix strerror_r" >&5
16077$as_echo_n "checking non-posix strerror_r... " >&6; }
16078if ${ol_cv_nonposix_strerror_r+:} false; then :
16079  $as_echo_n "(cached) " >&6
16080else
16081
16082	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16083/* end confdefs.h.  */
16084#include <string.h>
16085_ACEOF
16086if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16087  $EGREP "strerror_r" >/dev/null 2>&1; then :
16088  ol_decl_strerror_r=yes
16089else
16090  ol_decl_strerror_r=no
16091fi
16092rm -f conftest*
16093
16094	if test $ol_decl_strerror_r = yes ; then
16095		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16096/* end confdefs.h.  */
16097#include <string.h>
16098int
16099main ()
16100{
16101   /* from autoconf 2.59 */
16102				char buf[100];
16103				char x = *strerror_r (0, buf, sizeof buf);
16104				char *p = strerror_r (0, buf, sizeof buf);
16105
16106  ;
16107  return 0;
16108}
16109_ACEOF
16110if ac_fn_c_try_compile "$LINENO"; then :
16111  ol_cv_nonposix_strerror_r=yes
16112else
16113  ol_cv_nonposix_strerror_r=no
16114fi
16115rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16116	else
16117		if test "$cross_compiling" = yes; then :
16118  ol_cv_nonposix_strerror_r=no
16119else
16120  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16121/* end confdefs.h.  */
16122
16123			main() {
16124				char buf[100];
16125				buf[0] = 0;
16126				strerror_r( 1, buf, sizeof buf );
16127				exit( buf[0] == 0 );
16128			}
16129
16130_ACEOF
16131if ac_fn_c_try_run "$LINENO"; then :
16132  ol_cv_nonposix_strerror_r=yes
16133else
16134  ol_cv_nonposix_strerror_r=no
16135fi
16136rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16137  conftest.$ac_objext conftest.beam conftest.$ac_ext
16138fi
16139
16140	fi
16141
16142fi
16143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_nonposix_strerror_r" >&5
16144$as_echo "$ol_cv_nonposix_strerror_r" >&6; }
16145if test $ol_cv_nonposix_strerror_r = yes ; then
16146
16147$as_echo "#define HAVE_NONPOSIX_STRERROR_R 1" >>confdefs.h
16148
16149fi
16150
16151elif test "${ac_cv_func_strerror}" = no ; then
16152	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking existence of sys_errlist" >&5
16153$as_echo_n "checking existence of sys_errlist... " >&6; }
16154if ${ol_cv_have_sys_errlist+:} false; then :
16155  $as_echo_n "(cached) " >&6
16156else
16157
16158	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16159/* end confdefs.h.  */
16160#include <errno.h>
16161int
16162main ()
16163{
16164char *c = (char *) *sys_errlist
16165  ;
16166  return 0;
16167}
16168_ACEOF
16169if ac_fn_c_try_link "$LINENO"; then :
16170  ol_cv_have_sys_errlist=yes
16171else
16172  ol_cv_have_sys_errlist=no
16173fi
16174rm -f core conftest.err conftest.$ac_objext \
16175    conftest$ac_exeext conftest.$ac_ext
16176fi
16177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_have_sys_errlist" >&5
16178$as_echo "$ol_cv_have_sys_errlist" >&6; }
16179if test $ol_cv_have_sys_errlist = yes ; then
16180
16181$as_echo "#define HAVE_SYS_ERRLIST 1" >>confdefs.h
16182
16183	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking declaration of sys_errlist" >&5
16184$as_echo_n "checking declaration of sys_errlist... " >&6; }
16185if ${ol_cv_dcl_sys_errlist+:} false; then :
16186  $as_echo_n "(cached) " >&6
16187else
16188
16189		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16190/* end confdefs.h.  */
16191
16192#include <stdio.h>
16193#include <sys/types.h>
16194#include <errno.h>
16195#ifdef _WIN32
16196#include <stdlib.h>
16197#endif
16198int
16199main ()
16200{
16201char *c = (char *) *sys_errlist
16202  ;
16203  return 0;
16204}
16205_ACEOF
16206if ac_fn_c_try_compile "$LINENO"; then :
16207  ol_cv_dcl_sys_errlist=yes
16208else
16209  ol_cv_dcl_sys_errlist=no
16210fi
16211rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16212fi
16213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_dcl_sys_errlist" >&5
16214$as_echo "$ol_cv_dcl_sys_errlist" >&6; }
16215#
16216	# It's possible (for near-UNIX clones) that sys_errlist doesn't exist
16217	if test $ol_cv_dcl_sys_errlist = no ; then
16218
16219$as_echo "#define DECL_SYS_ERRLIST 1" >>confdefs.h
16220
16221	fi
16222fi
16223
16224fi
16225
16226
16227for ac_header in regex.h
16228do :
16229  ac_fn_c_check_header_compile "$LINENO" "regex.h" "ac_cv_header_regex_h" "$ac_includes_default
16230#ifdef HAVE_SYS_TYPES_H
16231#include <sys/types.h>
16232#endif
16233
16234"
16235if test "x$ac_cv_header_regex_h" = xyes; then :
16236  cat >>confdefs.h <<_ACEOF
16237#define HAVE_REGEX_H 1
16238_ACEOF
16239
16240fi
16241
16242done
16243
16244
16245if test "$ac_cv_header_regex_h" != yes ; then
16246	as_fn_error $? "POSIX regex.h required." "$LINENO" 5
16247fi
16248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing regfree" >&5
16249$as_echo_n "checking for library containing regfree... " >&6; }
16250if ${ac_cv_search_regfree+:} false; then :
16251  $as_echo_n "(cached) " >&6
16252else
16253  ac_func_search_save_LIBS=$LIBS
16254cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16255/* end confdefs.h.  */
16256
16257/* Override any GCC internal prototype to avoid an error.
16258   Use char because int might match the return type of a GCC
16259   builtin and then its argument prototype would still apply.  */
16260#ifdef __cplusplus
16261extern "C"
16262#endif
16263char regfree ();
16264int
16265main ()
16266{
16267return regfree ();
16268  ;
16269  return 0;
16270}
16271_ACEOF
16272for ac_lib in '' regex gnuregex; do
16273  if test -z "$ac_lib"; then
16274    ac_res="none required"
16275  else
16276    ac_res=-l$ac_lib
16277    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16278  fi
16279  if ac_fn_c_try_link "$LINENO"; then :
16280  ac_cv_search_regfree=$ac_res
16281fi
16282rm -f core conftest.err conftest.$ac_objext \
16283    conftest$ac_exeext
16284  if ${ac_cv_search_regfree+:} false; then :
16285  break
16286fi
16287done
16288if ${ac_cv_search_regfree+:} false; then :
16289
16290else
16291  ac_cv_search_regfree=no
16292fi
16293rm conftest.$ac_ext
16294LIBS=$ac_func_search_save_LIBS
16295fi
16296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_regfree" >&5
16297$as_echo "$ac_cv_search_regfree" >&6; }
16298ac_res=$ac_cv_search_regfree
16299if test "$ac_res" != no; then :
16300  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16301  :
16302else
16303  as_fn_error $? "POSIX regex required." "$LINENO" 5
16304fi
16305
16306
16307
16308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for compatible POSIX regex" >&5
16309$as_echo_n "checking for compatible POSIX regex... " >&6; }
16310if ${ol_cv_c_posix_regex+:} false; then :
16311  $as_echo_n "(cached) " >&6
16312else
16313
16314	if test "$cross_compiling" = yes; then :
16315  ol_cv_c_posix_regex=cross
16316else
16317  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16318/* end confdefs.h.  */
16319
16320#include <sys/types.h>
16321#include <regex.h>
16322static char *pattern, *string;
16323main()
16324{
16325	int rc;
16326	regex_t re;
16327
16328	pattern = "^A";
16329
16330	if(regcomp(&re, pattern, 0)) {
16331		return -1;
16332	}
16333
16334	string = "ALL MATCH";
16335
16336	rc = regexec(&re, string, 0, (void*)0, 0);
16337
16338	regfree(&re);
16339
16340	return rc;
16341}
16342_ACEOF
16343if ac_fn_c_try_run "$LINENO"; then :
16344  ol_cv_c_posix_regex=yes
16345else
16346  ol_cv_c_posix_regex=no
16347fi
16348rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16349  conftest.$ac_objext conftest.beam conftest.$ac_ext
16350fi
16351
16352fi
16353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_c_posix_regex" >&5
16354$as_echo "$ol_cv_c_posix_regex" >&6; }
16355
16356if test "$ol_cv_c_posix_regex" = no ; then
16357	as_fn_error $? "broken POSIX regex!" "$LINENO" 5
16358fi
16359
16360
16361have_uuid=no
16362for ac_header in sys/uuid.h
16363do :
16364  ac_fn_c_check_header_mongrel "$LINENO" "sys/uuid.h" "ac_cv_header_sys_uuid_h" "$ac_includes_default"
16365if test "x$ac_cv_header_sys_uuid_h" = xyes; then :
16366  cat >>confdefs.h <<_ACEOF
16367#define HAVE_SYS_UUID_H 1
16368_ACEOF
16369
16370fi
16371
16372done
16373
16374if test $ac_cv_header_sys_uuid_h = yes ; then
16375	save_LIBS="$LIBS"
16376	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing uuid_to_str" >&5
16377$as_echo_n "checking for library containing uuid_to_str... " >&6; }
16378if ${ac_cv_search_uuid_to_str+:} false; then :
16379  $as_echo_n "(cached) " >&6
16380else
16381  ac_func_search_save_LIBS=$LIBS
16382cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16383/* end confdefs.h.  */
16384
16385/* Override any GCC internal prototype to avoid an error.
16386   Use char because int might match the return type of a GCC
16387   builtin and then its argument prototype would still apply.  */
16388#ifdef __cplusplus
16389extern "C"
16390#endif
16391char uuid_to_str ();
16392int
16393main ()
16394{
16395return uuid_to_str ();
16396  ;
16397  return 0;
16398}
16399_ACEOF
16400for ac_lib in '' uuid; do
16401  if test -z "$ac_lib"; then
16402    ac_res="none required"
16403  else
16404    ac_res=-l$ac_lib
16405    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16406  fi
16407  if ac_fn_c_try_link "$LINENO"; then :
16408  ac_cv_search_uuid_to_str=$ac_res
16409fi
16410rm -f core conftest.err conftest.$ac_objext \
16411    conftest$ac_exeext
16412  if ${ac_cv_search_uuid_to_str+:} false; then :
16413  break
16414fi
16415done
16416if ${ac_cv_search_uuid_to_str+:} false; then :
16417
16418else
16419  ac_cv_search_uuid_to_str=no
16420fi
16421rm conftest.$ac_ext
16422LIBS=$ac_func_search_save_LIBS
16423fi
16424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_uuid_to_str" >&5
16425$as_echo "$ac_cv_search_uuid_to_str" >&6; }
16426ac_res=$ac_cv_search_uuid_to_str
16427if test "$ac_res" != no; then :
16428  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16429  have_uuid=yes
16430else
16431  :
16432fi
16433
16434	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing uuid_create" >&5
16435$as_echo_n "checking for library containing uuid_create... " >&6; }
16436if ${ac_cv_search_uuid_create+:} false; then :
16437  $as_echo_n "(cached) " >&6
16438else
16439  ac_func_search_save_LIBS=$LIBS
16440cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16441/* end confdefs.h.  */
16442
16443/* Override any GCC internal prototype to avoid an error.
16444   Use char because int might match the return type of a GCC
16445   builtin and then its argument prototype would still apply.  */
16446#ifdef __cplusplus
16447extern "C"
16448#endif
16449char uuid_create ();
16450int
16451main ()
16452{
16453return uuid_create ();
16454  ;
16455  return 0;
16456}
16457_ACEOF
16458for ac_lib in '' uuid; do
16459  if test -z "$ac_lib"; then
16460    ac_res="none required"
16461  else
16462    ac_res=-l$ac_lib
16463    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16464  fi
16465  if ac_fn_c_try_link "$LINENO"; then :
16466  ac_cv_search_uuid_create=$ac_res
16467fi
16468rm -f core conftest.err conftest.$ac_objext \
16469    conftest$ac_exeext
16470  if ${ac_cv_search_uuid_create+:} false; then :
16471  break
16472fi
16473done
16474if ${ac_cv_search_uuid_create+:} false; then :
16475
16476else
16477  ac_cv_search_uuid_create=no
16478fi
16479rm conftest.$ac_ext
16480LIBS=$ac_func_search_save_LIBS
16481fi
16482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_uuid_create" >&5
16483$as_echo "$ac_cv_search_uuid_create" >&6; }
16484ac_res=$ac_cv_search_uuid_create
16485if test "$ac_res" != no; then :
16486  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16487  :
16488else
16489  have_uuid=no
16490fi
16491
16492	LIBS="$save_LIBS"
16493
16494	if test $have_uuid = yes ; then
16495
16496$as_echo "#define HAVE_UUID_TO_STR 1" >>confdefs.h
16497
16498
16499		test "$ac_cv_search_uuid_to_str" = "none required" || \
16500			LUTIL_LIBS="$LUTIL_LIBS $ac_cv_search_uuid_to_str"
16501	fi
16502fi
16503
16504if test $have_uuid = no ; then
16505	for ac_header in xxxxuuid/uuid.h
16506do :
16507  ac_fn_c_check_header_mongrel "$LINENO" "xxxxuuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
16508if test "x$ac_cv_header_uuid_uuid_h" = xyes; then :
16509  cat >>confdefs.h <<_ACEOF
16510#define HAVE_UUID_UUID_H 1
16511_ACEOF
16512
16513fi
16514
16515done
16516
16517	if test $ac_cv_header_uuid_uuid_h = yes ; then
16518		save_LIBS="$LIBS"
16519		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing uuid_generate" >&5
16520$as_echo_n "checking for library containing uuid_generate... " >&6; }
16521if ${ac_cv_search_uuid_generate+:} false; then :
16522  $as_echo_n "(cached) " >&6
16523else
16524  ac_func_search_save_LIBS=$LIBS
16525cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16526/* end confdefs.h.  */
16527
16528/* Override any GCC internal prototype to avoid an error.
16529   Use char because int might match the return type of a GCC
16530   builtin and then its argument prototype would still apply.  */
16531#ifdef __cplusplus
16532extern "C"
16533#endif
16534char uuid_generate ();
16535int
16536main ()
16537{
16538return uuid_generate ();
16539  ;
16540  return 0;
16541}
16542_ACEOF
16543for ac_lib in '' uuid; do
16544  if test -z "$ac_lib"; then
16545    ac_res="none required"
16546  else
16547    ac_res=-l$ac_lib
16548    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16549  fi
16550  if ac_fn_c_try_link "$LINENO"; then :
16551  ac_cv_search_uuid_generate=$ac_res
16552fi
16553rm -f core conftest.err conftest.$ac_objext \
16554    conftest$ac_exeext
16555  if ${ac_cv_search_uuid_generate+:} false; then :
16556  break
16557fi
16558done
16559if ${ac_cv_search_uuid_generate+:} false; then :
16560
16561else
16562  ac_cv_search_uuid_generate=no
16563fi
16564rm conftest.$ac_ext
16565LIBS=$ac_func_search_save_LIBS
16566fi
16567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_uuid_generate" >&5
16568$as_echo "$ac_cv_search_uuid_generate" >&6; }
16569ac_res=$ac_cv_search_uuid_generate
16570if test "$ac_res" != no; then :
16571  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16572  have_uuid=yes
16573else
16574  :
16575fi
16576
16577		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing uuid_unparse_lower" >&5
16578$as_echo_n "checking for library containing uuid_unparse_lower... " >&6; }
16579if ${ac_cv_search_uuid_unparse_lower+:} false; then :
16580  $as_echo_n "(cached) " >&6
16581else
16582  ac_func_search_save_LIBS=$LIBS
16583cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16584/* end confdefs.h.  */
16585
16586/* Override any GCC internal prototype to avoid an error.
16587   Use char because int might match the return type of a GCC
16588   builtin and then its argument prototype would still apply.  */
16589#ifdef __cplusplus
16590extern "C"
16591#endif
16592char uuid_unparse_lower ();
16593int
16594main ()
16595{
16596return uuid_unparse_lower ();
16597  ;
16598  return 0;
16599}
16600_ACEOF
16601for ac_lib in '' uuid; do
16602  if test -z "$ac_lib"; then
16603    ac_res="none required"
16604  else
16605    ac_res=-l$ac_lib
16606    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16607  fi
16608  if ac_fn_c_try_link "$LINENO"; then :
16609  ac_cv_search_uuid_unparse_lower=$ac_res
16610fi
16611rm -f core conftest.err conftest.$ac_objext \
16612    conftest$ac_exeext
16613  if ${ac_cv_search_uuid_unparse_lower+:} false; then :
16614  break
16615fi
16616done
16617if ${ac_cv_search_uuid_unparse_lower+:} false; then :
16618
16619else
16620  ac_cv_search_uuid_unparse_lower=no
16621fi
16622rm conftest.$ac_ext
16623LIBS=$ac_func_search_save_LIBS
16624fi
16625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_uuid_unparse_lower" >&5
16626$as_echo "$ac_cv_search_uuid_unparse_lower" >&6; }
16627ac_res=$ac_cv_search_uuid_unparse_lower
16628if test "$ac_res" != no; then :
16629  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16630  :
16631else
16632  have_uuid=no
16633fi
16634
16635		LIBS="$save_LIBS"
16636
16637		if test $have_uuid = yes ; then
16638
16639$as_echo "#define HAVE_UUID_GENERATE 1" >>confdefs.h
16640
16641
16642			test "$ac_cv_search_uuid_generate" = "none required" || \
16643				LUTIL_LIBS="$LUTIL_LIBS $ac_cv_search_uuid_generate"
16644		fi
16645	fi
16646fi
16647
16648if test $have_uuid = no ; then
16649	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
16650$as_echo_n "checking to see if -lrpcrt4 is needed for win32 UUID support... " >&6; }
16651	save_LIBS="$LIBS"
16652	LIBS="$LIBS -lrpcrt4"
16653	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16654/* end confdefs.h.  */
16655
16656		int __stdcall UuidCreate(void *);
16657		int __stdcall UuidToStringA(void *,void **);
16658
16659int
16660main ()
16661{
16662
16663		UuidCreate(0);
16664		UuidToStringA(0,0);
16665
16666  ;
16667  return 0;
16668}
16669_ACEOF
16670if ac_fn_c_try_link "$LINENO"; then :
16671  need_rpcrt=yes
16672else
16673  need_rpcrt=no
16674fi
16675rm -f core conftest.err conftest.$ac_objext \
16676    conftest$ac_exeext conftest.$ac_ext
16677	if test $need_rpcrt = yes; then
16678		SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
16679		CLIENT_LIBS="$CLIENT_LIBS -lrpcrt4"
16680	fi
16681	LIBS="$save_LIBS"
16682	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $need_rpcrt" >&5
16683$as_echo "$need_rpcrt" >&6; }
16684fi
16685
16686ol_cv_lib_resolver=no
16687if test $ol_cv_lib_resolver = no ; then
16688	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for resolver link (default)" >&5
16689$as_echo_n "checking for resolver link (default)... " >&6; }
16690if ${ol_cv_resolver_none+:} false; then :
16691  $as_echo_n "(cached) " >&6
16692else
16693
16694	ol_RESOLVER_LIB=
16695	ol_LIBS=$LIBS
16696	LIBS="$ol_RESOLVER_LIB $LIBS"
16697
16698	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16699/* end confdefs.h.  */
16700
16701#ifdef HAVE_SYS_TYPES_H
16702#	include <sys/types.h>
16703#endif
16704#include <netinet/in.h>
16705#ifdef HAVE_ARPA_NAMESER_H
16706#	include <arpa/nameser.h>
16707#endif
16708#ifdef HAVE_RESOLV_H
16709#	include <resolv.h>
16710#endif
16711
16712int
16713main ()
16714{
16715{
16716	int len, status;
16717	char *request = NULL;
16718	unsigned char reply[64*1024];
16719	unsigned char host[64*1024];
16720	unsigned char *p;
16721
16722#ifdef NS_HFIXEDSZ
16723	/* Bind 8/9 interface */
16724	len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
16725#else
16726	/* Bind 4 interface */
16727# ifndef T_SRV
16728#  define T_SRV 33
16729# endif
16730	len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
16731#endif
16732	p = reply;
16733#ifdef NS_HFIXEDSZ
16734	/* Bind 8/9 interface */
16735	p += NS_HFIXEDSZ;
16736#elif defined(HFIXEDSZ)
16737	/* Bind 4 interface w/ HFIXEDSZ */
16738	p += HFIXEDSZ;
16739#else
16740	/* Bind 4 interface w/o HFIXEDSZ */
16741	p += sizeof(HEADER);
16742#endif
16743	status = dn_expand( reply, reply+len, p, host, sizeof(host));
16744}
16745  ;
16746  return 0;
16747}
16748_ACEOF
16749if ac_fn_c_try_link "$LINENO"; then :
16750  ol_cv_resolver_none=yes
16751else
16752  ol_cv_resolver_none=no
16753fi
16754rm -f core conftest.err conftest.$ac_objext \
16755    conftest$ac_exeext conftest.$ac_ext
16756
16757	LIBS="$ol_LIBS"
16758
16759fi
16760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_resolver_none" >&5
16761$as_echo "$ol_cv_resolver_none" >&6; }
16762
16763	if test $ol_cv_resolver_none = yes ; then
16764		ol_cv_lib_resolver=yes
16765	fi
16766fi
16767
16768if test $ol_cv_lib_resolver = no ; then
16769	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for resolver link (-lresolv)" >&5
16770$as_echo_n "checking for resolver link (-lresolv)... " >&6; }
16771if ${ol_cv_resolver_resolv+:} false; then :
16772  $as_echo_n "(cached) " >&6
16773else
16774
16775	ol_RESOLVER_LIB=-lresolv
16776	ol_LIBS=$LIBS
16777	LIBS="$ol_RESOLVER_LIB $LIBS"
16778
16779	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16780/* end confdefs.h.  */
16781
16782#ifdef HAVE_SYS_TYPES_H
16783#	include <sys/types.h>
16784#endif
16785#include <netinet/in.h>
16786#ifdef HAVE_ARPA_NAMESER_H
16787#	include <arpa/nameser.h>
16788#endif
16789#ifdef HAVE_RESOLV_H
16790#	include <resolv.h>
16791#endif
16792
16793int
16794main ()
16795{
16796{
16797	int len, status;
16798	char *request = NULL;
16799	unsigned char reply[64*1024];
16800	unsigned char host[64*1024];
16801	unsigned char *p;
16802
16803#ifdef NS_HFIXEDSZ
16804	/* Bind 8/9 interface */
16805	len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
16806#else
16807	/* Bind 4 interface */
16808# ifndef T_SRV
16809#  define T_SRV 33
16810# endif
16811	len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
16812#endif
16813	p = reply;
16814#ifdef NS_HFIXEDSZ
16815	/* Bind 8/9 interface */
16816	p += NS_HFIXEDSZ;
16817#elif defined(HFIXEDSZ)
16818	/* Bind 4 interface w/ HFIXEDSZ */
16819	p += HFIXEDSZ;
16820#else
16821	/* Bind 4 interface w/o HFIXEDSZ */
16822	p += sizeof(HEADER);
16823#endif
16824	status = dn_expand( reply, reply+len, p, host, sizeof(host));
16825}
16826  ;
16827  return 0;
16828}
16829_ACEOF
16830if ac_fn_c_try_link "$LINENO"; then :
16831  ol_cv_resolver_resolv=yes
16832else
16833  ol_cv_resolver_resolv=no
16834fi
16835rm -f core conftest.err conftest.$ac_objext \
16836    conftest$ac_exeext conftest.$ac_ext
16837
16838	LIBS="$ol_LIBS"
16839
16840fi
16841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_resolver_resolv" >&5
16842$as_echo "$ol_cv_resolver_resolv" >&6; }
16843
16844	if test $ol_cv_resolver_resolv = yes ; then
16845		ol_cv_lib_resolver=-lresolv
16846	fi
16847fi
16848
16849if test $ol_cv_lib_resolver = no ; then
16850	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for resolver link (-lbind)" >&5
16851$as_echo_n "checking for resolver link (-lbind)... " >&6; }
16852if ${ol_cv_resolver_bind+:} false; then :
16853  $as_echo_n "(cached) " >&6
16854else
16855
16856	ol_RESOLVER_LIB=-lbind
16857	ol_LIBS=$LIBS
16858	LIBS="$ol_RESOLVER_LIB $LIBS"
16859
16860	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16861/* end confdefs.h.  */
16862
16863#ifdef HAVE_SYS_TYPES_H
16864#	include <sys/types.h>
16865#endif
16866#include <netinet/in.h>
16867#ifdef HAVE_ARPA_NAMESER_H
16868#	include <arpa/nameser.h>
16869#endif
16870#ifdef HAVE_RESOLV_H
16871#	include <resolv.h>
16872#endif
16873
16874int
16875main ()
16876{
16877{
16878	int len, status;
16879	char *request = NULL;
16880	unsigned char reply[64*1024];
16881	unsigned char host[64*1024];
16882	unsigned char *p;
16883
16884#ifdef NS_HFIXEDSZ
16885	/* Bind 8/9 interface */
16886	len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
16887#else
16888	/* Bind 4 interface */
16889# ifndef T_SRV
16890#  define T_SRV 33
16891# endif
16892	len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
16893#endif
16894	p = reply;
16895#ifdef NS_HFIXEDSZ
16896	/* Bind 8/9 interface */
16897	p += NS_HFIXEDSZ;
16898#elif defined(HFIXEDSZ)
16899	/* Bind 4 interface w/ HFIXEDSZ */
16900	p += HFIXEDSZ;
16901#else
16902	/* Bind 4 interface w/o HFIXEDSZ */
16903	p += sizeof(HEADER);
16904#endif
16905	status = dn_expand( reply, reply+len, p, host, sizeof(host));
16906}
16907  ;
16908  return 0;
16909}
16910_ACEOF
16911if ac_fn_c_try_link "$LINENO"; then :
16912  ol_cv_resolver_bind=yes
16913else
16914  ol_cv_resolver_bind=no
16915fi
16916rm -f core conftest.err conftest.$ac_objext \
16917    conftest$ac_exeext conftest.$ac_ext
16918
16919	LIBS="$ol_LIBS"
16920
16921fi
16922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_resolver_bind" >&5
16923$as_echo "$ol_cv_resolver_bind" >&6; }
16924
16925	if test $ol_cv_resolver_bind = yes ; then
16926		ol_cv_lib_resolver=-lbind
16927	fi
16928fi
16929
16930
16931
16932ol_link_dnssrv=no
16933if test "$ol_cv_lib_resolver" != no ; then
16934
16935$as_echo "#define HAVE_RES_QUERY 1" >>confdefs.h
16936
16937
16938	if test "$ol_enable_dnssrv" != no ; then
16939		ol_link_dnssrv=yes
16940	fi
16941
16942	if test "$ol_cv_lib_resolver" != yes ; then
16943		LIBS="$ol_cv_lib_resolver $LIBS"
16944	fi
16945fi
16946
16947if test "$ol_enable_dnssrv" = yes || test "$ol_enable_dnssrv" = mod ; then
16948	if test "$ol_link_dnssrv" = no ; then
16949		as_fn_error $? "DNSSRV requires res_query()" "$LINENO" 5
16950	fi
16951else
16952	ol_enable_dnssrv=no
16953fi
16954
16955for ac_func in hstrerror
16956do :
16957  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16958ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16959if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16960  cat >>confdefs.h <<_ACEOF
16961#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16962_ACEOF
16963
16964fi
16965done
16966
16967
16968for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
16969do :
16970  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16971ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16972if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16973  cat >>confdefs.h <<_ACEOF
16974#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16975_ACEOF
16976
16977fi
16978done
16979
16980
16981ol_link_ipv6=no
16982if test $ac_cv_func_getaddrinfo = no || test $ac_cv_func_inet_ntop = no ; then
16983	if test $ol_enable_ipv6 = yes ; then
16984		as_fn_error $? "IPv6 support requires getaddrinfo() and inet_ntop()" "$LINENO" 5
16985	fi
16986elif test $ol_enable_ipv6 != no ; then
16987	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking INET6_ADDRSTRLEN" >&5
16988$as_echo_n "checking INET6_ADDRSTRLEN... " >&6; }
16989if ${ol_cv_inet6_addrstrlen+:} false; then :
16990  $as_echo_n "(cached) " >&6
16991else
16992
16993		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16994/* end confdefs.h.  */
16995
16996#			include <netinet/in.h>
16997#			ifdef INET6_ADDRSTRLEN
16998				__has_inet6_addrstrlen__;
16999#			endif
17000
17001_ACEOF
17002if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17003  $EGREP "__has_inet6_addrstrlen__" >/dev/null 2>&1; then :
17004  ol_cv_inet6_addrstrlen=yes
17005else
17006  ol_cv_inet6_addrstrlen=no
17007fi
17008rm -f conftest*
17009
17010fi
17011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_inet6_addrstrlen" >&5
17012$as_echo "$ol_cv_inet6_addrstrlen" >&6; }
17013
17014
17015	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking struct sockaddr_storage" >&5
17016$as_echo_n "checking struct sockaddr_storage... " >&6; }
17017if ${ol_cv_struct_sockaddr_storage+:} false; then :
17018  $as_echo_n "(cached) " >&6
17019else
17020
17021		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17022/* end confdefs.h.  */
17023
17024#include <sys/types.h>
17025#include <sys/socket.h>
17026
17027int
17028main ()
17029{
17030
17031			struct sockaddr_storage ss;
17032
17033  ;
17034  return 0;
17035}
17036_ACEOF
17037if ac_fn_c_try_compile "$LINENO"; then :
17038  ol_cv_struct_sockaddr_storage=yes
17039else
17040  ol_cv_struct_sockaddr_storage=no
17041fi
17042rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17043fi
17044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_struct_sockaddr_storage" >&5
17045$as_echo "$ol_cv_struct_sockaddr_storage" >&6; }
17046
17047	if test $ol_cv_inet6_addrstrlen = yes &&
17048	   test $ol_cv_struct_sockaddr_storage = yes ; then
17049		ol_link_ipv6=yes
17050	elif test $ol_enable_ipv6 = yes &&
17051	     test $ol_cv_inet6_addrstrlen = no ; then
17052		as_fn_error $? "IPv6 support requires INET6_ADDRSTRLEN" "$LINENO" 5
17053	elif test $ol_enable_ipv6 = yes &&
17054	     test $ol_cv_struct_sockaddr_storage = no ; then
17055		as_fn_error $? "IPv6 support requires struct sockaddr_storage" "$LINENO" 5
17056	fi
17057fi
17058
17059if test $ol_enable_local != no ; then
17060	for ac_header in sys/un.h
17061do :
17062  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17063ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17064if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17065  cat >>confdefs.h <<_ACEOF
17066#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17067_ACEOF
17068
17069fi
17070
17071done
17072
17073
17074	if test $ol_enable_local = auto ; then
17075		ol_enable_local=$ac_cv_header_sys_un_h
17076	elif test $ac_cv_header_sys_un_h = no ; then
17077		as_fn_error $? "AF_LOCAL domain support requires sys/un.h" "$LINENO" 5
17078	fi
17079fi
17080
17081
17082if test $ol_with_tls = yes ; then
17083	ol_with_tls=auto
17084fi
17085
17086ol_link_tls=no
17087if test $ol_with_tls = openssl || test $ol_with_tls = auto ; then
17088	for ac_header in openssl/ssl.h
17089do :
17090  ac_fn_c_check_header_mongrel "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default"
17091if test "x$ac_cv_header_openssl_ssl_h" = xyes; then :
17092  cat >>confdefs.h <<_ACEOF
17093#define HAVE_OPENSSL_SSL_H 1
17094_ACEOF
17095
17096fi
17097
17098done
17099
17100
17101	if test $ac_cv_header_openssl_ssl_h = yes ; then
17102			cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17103/* end confdefs.h.  */
17104#include <openssl/opensslv.h>
17105#if OPENSSL_VERSION_NUMBER < 0x1010100fL
17106#error "OpenSSL is too old"
17107#endif
17108_ACEOF
17109if ac_fn_c_try_cpp "$LINENO"; then :
17110
17111else
17112  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17113$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17114as_fn_error $? "OpenSSL 1.1.1 or newer required
17115See \`config.log' for more details" "$LINENO" 5; }
17116fi
17117rm -f conftest.err conftest.i conftest.$ac_ext
17118
17119		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_export_keying_material_early in -lssl" >&5
17120$as_echo_n "checking for SSL_export_keying_material_early in -lssl... " >&6; }
17121if ${ac_cv_lib_ssl_SSL_export_keying_material_early+:} false; then :
17122  $as_echo_n "(cached) " >&6
17123else
17124  ac_check_lib_save_LIBS=$LIBS
17125LIBS="-lssl -lcrypto $LIBS"
17126cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17127/* end confdefs.h.  */
17128
17129/* Override any GCC internal prototype to avoid an error.
17130   Use char because int might match the return type of a GCC
17131   builtin and then its argument prototype would still apply.  */
17132#ifdef __cplusplus
17133extern "C"
17134#endif
17135char SSL_export_keying_material_early ();
17136int
17137main ()
17138{
17139return SSL_export_keying_material_early ();
17140  ;
17141  return 0;
17142}
17143_ACEOF
17144if ac_fn_c_try_link "$LINENO"; then :
17145  ac_cv_lib_ssl_SSL_export_keying_material_early=yes
17146else
17147  ac_cv_lib_ssl_SSL_export_keying_material_early=no
17148fi
17149rm -f core conftest.err conftest.$ac_objext \
17150    conftest$ac_exeext conftest.$ac_ext
17151LIBS=$ac_check_lib_save_LIBS
17152fi
17153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_export_keying_material_early" >&5
17154$as_echo "$ac_cv_lib_ssl_SSL_export_keying_material_early" >&6; }
17155if test "x$ac_cv_lib_ssl_SSL_export_keying_material_early" = xyes; then :
17156  have_openssl=yes
17157else
17158  have_openssl=no
17159fi
17160
17161
17162		if test $have_openssl = yes ; then
17163			ol_with_tls=openssl
17164			ol_link_tls=yes
17165			WITH_TLS_TYPE=openssl
17166
17167
17168$as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
17169
17170
17171			TLS_LIBS="-lssl -lcrypto"
17172		fi
17173	fi
17174fi
17175
17176if test $ol_link_tls = no ; then
17177	if test $ol_with_tls = gnutls || test $ol_with_tls = auto ; then
17178		for ac_header in gnutls/gnutls.h
17179do :
17180  ac_fn_c_check_header_mongrel "$LINENO" "gnutls/gnutls.h" "ac_cv_header_gnutls_gnutls_h" "$ac_includes_default"
17181if test "x$ac_cv_header_gnutls_gnutls_h" = xyes; then :
17182  cat >>confdefs.h <<_ACEOF
17183#define HAVE_GNUTLS_GNUTLS_H 1
17184_ACEOF
17185
17186fi
17187
17188done
17189
17190
17191		if test $ac_cv_header_gnutls_gnutls_h = yes ; then
17192			cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17193/* end confdefs.h.  */
17194#include <gnutls/gnutls.h>
17195#if GNUTLS_VERSION_NUMBER < 0x030306
17196#error "GnuTLS is too old"
17197#endif
17198_ACEOF
17199if ac_fn_c_try_cpp "$LINENO"; then :
17200
17201else
17202  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17203$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17204as_fn_error $? "GnuTLS 3.3.6 or newer required
17205See \`config.log' for more details" "$LINENO" 5; }
17206fi
17207rm -f conftest.err conftest.i conftest.$ac_ext
17208
17209			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_init in -lgnutls" >&5
17210$as_echo_n "checking for gnutls_init in -lgnutls... " >&6; }
17211if ${ac_cv_lib_gnutls_gnutls_init+:} false; then :
17212  $as_echo_n "(cached) " >&6
17213else
17214  ac_check_lib_save_LIBS=$LIBS
17215LIBS="-lgnutls  $LIBS"
17216cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17217/* end confdefs.h.  */
17218
17219/* Override any GCC internal prototype to avoid an error.
17220   Use char because int might match the return type of a GCC
17221   builtin and then its argument prototype would still apply.  */
17222#ifdef __cplusplus
17223extern "C"
17224#endif
17225char gnutls_init ();
17226int
17227main ()
17228{
17229return gnutls_init ();
17230  ;
17231  return 0;
17232}
17233_ACEOF
17234if ac_fn_c_try_link "$LINENO"; then :
17235  ac_cv_lib_gnutls_gnutls_init=yes
17236else
17237  ac_cv_lib_gnutls_gnutls_init=no
17238fi
17239rm -f core conftest.err conftest.$ac_objext \
17240    conftest$ac_exeext conftest.$ac_ext
17241LIBS=$ac_check_lib_save_LIBS
17242fi
17243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_init" >&5
17244$as_echo "$ac_cv_lib_gnutls_gnutls_init" >&6; }
17245if test "x$ac_cv_lib_gnutls_gnutls_init" = xyes; then :
17246  have_gnutls=yes
17247else
17248  have_gnutls=no
17249fi
17250
17251
17252			if test $have_gnutls = yes ; then
17253				ol_with_tls=gnutls
17254				ol_link_tls=yes
17255				WITH_TLS_TYPE=gnutls
17256
17257				TLS_LIBS="-lgnutls"
17258
17259
17260$as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
17261
17262			fi
17263		fi
17264	fi
17265fi
17266
17267WITH_TLS=no
17268if test $ol_link_tls = yes ; then
17269
17270$as_echo "#define HAVE_TLS 1" >>confdefs.h
17271
17272	WITH_TLS=yes
17273elif test $ol_with_tls = auto ; then
17274	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not locate TLS/SSL package" >&5
17275$as_echo "$as_me: WARNING: Could not locate TLS/SSL package" >&2;}
17276	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: TLS data protection not supported!" >&5
17277$as_echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
17278elif test $ol_with_tls != no ; then
17279	as_fn_error $? "Could not locate TLS/SSL package" "$LINENO" 5
17280else
17281	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: TLS data protection not supported!" >&5
17282$as_echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
17283fi
17284
17285
17286ol_link_threads=no
17287
17288case $ol_with_threads in auto | yes | nt)
17289
17290
17291	ac_fn_c_check_func "$LINENO" "_beginthread" "ac_cv_func__beginthread"
17292if test "x$ac_cv_func__beginthread" = xyes; then :
17293
17294fi
17295
17296
17297	if test $ac_cv_func__beginthread = yes ; then
17298
17299$as_echo "#define HAVE_NT_THREADS 1" >>confdefs.h
17300
17301		ol_cv_nt_threads=yes
17302	fi
17303
17304
17305	if test "$ol_cv_nt_threads" = yes ; then
17306		ol_link_threads=nt
17307		ol_with_threads=found
17308		ol_with_yielding_select=yes
17309
17310
17311$as_echo "#define HAVE_NT_SERVICE_MANAGER 1" >>confdefs.h
17312
17313
17314$as_echo "#define HAVE_NT_EVENT_LOG 1" >>confdefs.h
17315
17316	fi
17317
17318	if test $ol_with_threads = nt ; then
17319		as_fn_error $? "could not locate NT Threads" "$LINENO" 5
17320	fi
17321	;;
17322esac
17323
17324case $ol_with_threads in auto | yes | posix)
17325
17326	for ac_header in pthread.h
17327do :
17328  ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
17329if test "x$ac_cv_header_pthread_h" = xyes; then :
17330  cat >>confdefs.h <<_ACEOF
17331#define HAVE_PTHREAD_H 1
17332_ACEOF
17333
17334fi
17335
17336done
17337
17338
17339	if test $ac_cv_header_pthread_h = yes ; then
17340		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking POSIX thread version" >&5
17341$as_echo_n "checking POSIX thread version... " >&6; }
17342if ${ol_cv_pthread_version+:} false; then :
17343  $as_echo_n "(cached) " >&6
17344else
17345
17346	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17347/* end confdefs.h.  */
17348
17349#		include <pthread.h>
17350
17351int
17352main ()
17353{
17354
17355		int i = PTHREAD_CREATE_JOINABLE;
17356
17357  ;
17358  return 0;
17359}
17360_ACEOF
17361if ac_fn_c_try_compile "$LINENO"; then :
17362
17363	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17364/* end confdefs.h.  */
17365#include <pthread.h>
17366
17367_ACEOF
17368if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17369  $EGREP "pthread_detach" >/dev/null 2>&1; then :
17370  ol_cv_pthread_version=10
17371else
17372  ol_cv_pthread_version=8
17373fi
17374rm -f conftest*
17375
17376else
17377
17378	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17379/* end confdefs.h.  */
17380
17381#		include <pthread.h>
17382#		ifdef PTHREAD_CREATE_UNDETACHED
17383		draft7
17384#		endif
17385
17386_ACEOF
17387if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17388  $EGREP "draft7" >/dev/null 2>&1; then :
17389  ol_cv_pthread_version=7
17390else
17391
17392	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17393/* end confdefs.h.  */
17394#include <pthread.h>
17395
17396_ACEOF
17397if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17398  $EGREP "pthread_attr_init" >/dev/null 2>&1; then :
17399  ol_cv_pthread_version=6
17400else
17401
17402	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17403/* end confdefs.h.  */
17404
17405#		include <pthread.h>
17406#ifdef		PTHREAD_MUTEX_INITIALIZER
17407		draft5
17408#endif
17409
17410_ACEOF
17411if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17412  $EGREP "draft5" >/dev/null 2>&1; then :
17413  ol_cv_pthread_version=5
17414else
17415  ol_cv_pthread_version=4
17416fi
17417rm -f conftest*
17418
17419fi
17420rm -f conftest*
17421
17422fi
17423rm -f conftest*
17424
17425fi
17426rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17427
17428fi
17429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_version" >&5
17430$as_echo "$ol_cv_pthread_version" >&6; }
17431
17432
17433		if test $ol_cv_pthread_version != 0 ; then
17434
17435cat >>confdefs.h <<_ACEOF
17436#define HAVE_PTHREADS $ol_cv_pthread_version
17437_ACEOF
17438
17439		else
17440			as_fn_error $? "unknown pthread version" "$LINENO" 5
17441		fi
17442
17443		# consider threads found
17444		ol_with_threads=found
17445
17446
17447	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads pthread.h" >&5
17448$as_echo_n "checking for LinuxThreads pthread.h... " >&6; }
17449if ${ol_cv_header_linux_threads+:} false; then :
17450  $as_echo_n "(cached) " >&6
17451else
17452  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17453/* end confdefs.h.  */
17454#include <pthread.h>
17455_ACEOF
17456if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17457  $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then :
17458  ol_cv_header_linux_threads=yes
17459else
17460  ol_cv_header_linux_threads=no
17461fi
17462rm -f conftest*
17463
17464
17465fi
17466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_linux_threads" >&5
17467$as_echo "$ol_cv_header_linux_threads" >&6; }
17468	if test $ol_cv_header_linux_threads = yes; then
17469
17470$as_echo "#define HAVE_LINUX_THREADS 1" >>confdefs.h
17471
17472	fi
17473
17474
17475	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU Pth pthread.h" >&5
17476$as_echo_n "checking for GNU Pth pthread.h... " >&6; }
17477if ${ol_cv_header_gnu_pth_pthread_h+:} false; then :
17478  $as_echo_n "(cached) " >&6
17479else
17480  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17481/* end confdefs.h.  */
17482#include <pthread.h>
17483#ifdef _POSIX_THREAD_IS_GNU_PTH
17484	__gnu_pth__;
17485#endif
17486
17487_ACEOF
17488if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17489  $EGREP "__gnu_pth__" >/dev/null 2>&1; then :
17490  ol_cv_header_gnu_pth_pthread_h=yes
17491else
17492  ol_cv_header_gnu_pth_pthread_h=no
17493fi
17494rm -f conftest*
17495
17496
17497fi
17498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_gnu_pth_pthread_h" >&5
17499$as_echo "$ol_cv_header_gnu_pth_pthread_h" >&6; }
17500
17501
17502		if test $ol_cv_header_gnu_pth_pthread_h = no ; then
17503			for ac_header in sched.h
17504do :
17505  ac_fn_c_check_header_mongrel "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
17506if test "x$ac_cv_header_sched_h" = xyes; then :
17507  cat >>confdefs.h <<_ACEOF
17508#define HAVE_SCHED_H 1
17509_ACEOF
17510
17511fi
17512
17513done
17514
17515		fi
17516
17517
17518				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in default libraries" >&5
17519$as_echo_n "checking for pthread_create in default libraries... " >&6; }
17520if ${ol_cv_pthread_create+:} false; then :
17521  $as_echo_n "(cached) " >&6
17522else
17523
17524			if test "$cross_compiling" = yes; then :
17525  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17526/* end confdefs.h.  */
17527OL_PTHREAD_TEST_INCLUDES
17528int
17529main ()
17530{
17531OL_PTHREAD_TEST_FUNCTION
17532  ;
17533  return 0;
17534}
17535_ACEOF
17536if ac_fn_c_try_link "$LINENO"; then :
17537  ol_cv_pthread_create=yes
17538else
17539  ol_cv_pthread_create=no
17540fi
17541rm -f core conftest.err conftest.$ac_objext \
17542    conftest$ac_exeext conftest.$ac_ext
17543else
17544  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17545/* end confdefs.h.  */
17546
17547/* pthread test headers */
17548#include <pthread.h>
17549#if HAVE_PTHREADS < 7
17550#include <errno.h>
17551#endif
17552#ifndef NULL
17553#define NULL (void*)0
17554#endif
17555
17556static void *task(p)
17557	void *p;
17558{
17559	return (void *) (p == NULL);
17560}
17561
17562
17563int main(argc, argv)
17564	int argc;
17565	char **argv;
17566{
17567
17568	/* pthread test function */
17569#ifndef PTHREAD_CREATE_DETACHED
17570#define	PTHREAD_CREATE_DETACHED	1
17571#endif
17572	pthread_t t;
17573	int status;
17574	int detach = PTHREAD_CREATE_DETACHED;
17575
17576#if HAVE_PTHREADS > 4
17577	/* Final pthreads */
17578	pthread_attr_t attr;
17579
17580	status = pthread_attr_init(&attr);
17581	if( status ) return status;
17582
17583#if HAVE_PTHREADS < 7
17584	status = pthread_attr_setdetachstate(&attr, &detach);
17585	if( status < 0 ) status = errno;
17586#else
17587	status = pthread_attr_setdetachstate(&attr, detach);
17588#endif
17589	if( status ) return status;
17590	status = pthread_create( &t, &attr, task, NULL );
17591#if HAVE_PTHREADS < 7
17592	if( status < 0 ) status = errno;
17593#endif
17594	if( status ) return status;
17595#else
17596	/* Draft 4 pthreads */
17597	status = pthread_create( &t, pthread_attr_default, task, NULL );
17598	if( status ) return errno;
17599
17600	/* give thread a chance to complete */
17601	/* it should remain joinable and hence detachable */
17602	sleep( 1 );
17603
17604	status = pthread_detach( &t );
17605	if( status ) return errno;
17606#endif
17607
17608#ifdef HAVE_LINUX_THREADS
17609	pthread_kill_other_threads_np();
17610#endif
17611
17612	return 0;
17613
17614}
17615
17616_ACEOF
17617if ac_fn_c_try_run "$LINENO"; then :
17618  ol_cv_pthread_create=yes
17619else
17620  ol_cv_pthread_create=no
17621fi
17622rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17623  conftest.$ac_objext conftest.beam conftest.$ac_ext
17624fi
17625
17626fi
17627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_create" >&5
17628$as_echo "$ol_cv_pthread_create" >&6; }
17629
17630		if test $ol_cv_pthread_create != no ; then
17631			ol_link_threads=posix
17632			ol_link_pthreads=""
17633		fi
17634
17635		# Pthread try link: -kthread (ol_cv_pthread_kthread)
17636if test "$ol_link_threads" = no ; then
17637	# try -kthread
17638	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -kthread" >&5
17639$as_echo_n "checking for pthread link with -kthread... " >&6; }
17640if ${ol_cv_pthread_kthread+:} false; then :
17641  $as_echo_n "(cached) " >&6
17642else
17643
17644		# save the flags
17645		ol_LIBS="$LIBS"
17646		LIBS="-kthread $LIBS"
17647
17648		if test "$cross_compiling" = yes; then :
17649  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17650/* end confdefs.h.  */
17651
17652/* pthread test headers */
17653#include <pthread.h>
17654#if HAVE_PTHREADS < 7
17655#include <errno.h>
17656#endif
17657#ifndef NULL
17658#define NULL (void*)0
17659#endif
17660
17661static void *task(p)
17662	void *p;
17663{
17664	return (void *) (p == NULL);
17665}
17666
17667int
17668main ()
17669{
17670
17671	/* pthread test function */
17672#ifndef PTHREAD_CREATE_DETACHED
17673#define	PTHREAD_CREATE_DETACHED	1
17674#endif
17675	pthread_t t;
17676	int status;
17677	int detach = PTHREAD_CREATE_DETACHED;
17678
17679#if HAVE_PTHREADS > 4
17680	/* Final pthreads */
17681	pthread_attr_t attr;
17682
17683	status = pthread_attr_init(&attr);
17684	if( status ) return status;
17685
17686#if HAVE_PTHREADS < 7
17687	status = pthread_attr_setdetachstate(&attr, &detach);
17688	if( status < 0 ) status = errno;
17689#else
17690	status = pthread_attr_setdetachstate(&attr, detach);
17691#endif
17692	if( status ) return status;
17693	status = pthread_create( &t, &attr, task, NULL );
17694#if HAVE_PTHREADS < 7
17695	if( status < 0 ) status = errno;
17696#endif
17697	if( status ) return status;
17698#else
17699	/* Draft 4 pthreads */
17700	status = pthread_create( &t, pthread_attr_default, task, NULL );
17701	if( status ) return errno;
17702
17703	/* give thread a chance to complete */
17704	/* it should remain joinable and hence detachable */
17705	sleep( 1 );
17706
17707	status = pthread_detach( &t );
17708	if( status ) return errno;
17709#endif
17710
17711#ifdef HAVE_LINUX_THREADS
17712	pthread_kill_other_threads_np();
17713#endif
17714
17715	return 0;
17716
17717  ;
17718  return 0;
17719}
17720_ACEOF
17721if ac_fn_c_try_link "$LINENO"; then :
17722  ol_cv_pthread_kthread=yes
17723else
17724  ol_cv_pthread_kthread=no
17725fi
17726rm -f core conftest.err conftest.$ac_objext \
17727    conftest$ac_exeext conftest.$ac_ext
17728else
17729  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17730/* end confdefs.h.  */
17731
17732/* pthread test headers */
17733#include <pthread.h>
17734#if HAVE_PTHREADS < 7
17735#include <errno.h>
17736#endif
17737#ifndef NULL
17738#define NULL (void*)0
17739#endif
17740
17741static void *task(p)
17742	void *p;
17743{
17744	return (void *) (p == NULL);
17745}
17746
17747
17748int main(argc, argv)
17749	int argc;
17750	char **argv;
17751{
17752
17753	/* pthread test function */
17754#ifndef PTHREAD_CREATE_DETACHED
17755#define	PTHREAD_CREATE_DETACHED	1
17756#endif
17757	pthread_t t;
17758	int status;
17759	int detach = PTHREAD_CREATE_DETACHED;
17760
17761#if HAVE_PTHREADS > 4
17762	/* Final pthreads */
17763	pthread_attr_t attr;
17764
17765	status = pthread_attr_init(&attr);
17766	if( status ) return status;
17767
17768#if HAVE_PTHREADS < 7
17769	status = pthread_attr_setdetachstate(&attr, &detach);
17770	if( status < 0 ) status = errno;
17771#else
17772	status = pthread_attr_setdetachstate(&attr, detach);
17773#endif
17774	if( status ) return status;
17775	status = pthread_create( &t, &attr, task, NULL );
17776#if HAVE_PTHREADS < 7
17777	if( status < 0 ) status = errno;
17778#endif
17779	if( status ) return status;
17780#else
17781	/* Draft 4 pthreads */
17782	status = pthread_create( &t, pthread_attr_default, task, NULL );
17783	if( status ) return errno;
17784
17785	/* give thread a chance to complete */
17786	/* it should remain joinable and hence detachable */
17787	sleep( 1 );
17788
17789	status = pthread_detach( &t );
17790	if( status ) return errno;
17791#endif
17792
17793#ifdef HAVE_LINUX_THREADS
17794	pthread_kill_other_threads_np();
17795#endif
17796
17797	return 0;
17798
17799}
17800
17801_ACEOF
17802if ac_fn_c_try_run "$LINENO"; then :
17803  ol_cv_pthread_kthread=yes
17804else
17805  ol_cv_pthread_kthread=no
17806fi
17807rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17808  conftest.$ac_objext conftest.beam conftest.$ac_ext
17809fi
17810
17811
17812		# restore the LIBS
17813		LIBS="$ol_LIBS"
17814
17815fi
17816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_kthread" >&5
17817$as_echo "$ol_cv_pthread_kthread" >&6; }
17818
17819	if test $ol_cv_pthread_kthread = yes ; then
17820		ol_link_pthreads="-kthread"
17821		ol_link_threads=posix
17822	fi
17823fi
17824
17825		# Pthread try link: -pthread (ol_cv_pthread_pthread)
17826if test "$ol_link_threads" = no ; then
17827	# try -pthread
17828	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -pthread" >&5
17829$as_echo_n "checking for pthread link with -pthread... " >&6; }
17830if ${ol_cv_pthread_pthread+:} false; then :
17831  $as_echo_n "(cached) " >&6
17832else
17833
17834		# save the flags
17835		ol_LIBS="$LIBS"
17836		LIBS="-pthread $LIBS"
17837
17838		if test "$cross_compiling" = yes; then :
17839  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17840/* end confdefs.h.  */
17841
17842/* pthread test headers */
17843#include <pthread.h>
17844#if HAVE_PTHREADS < 7
17845#include <errno.h>
17846#endif
17847#ifndef NULL
17848#define NULL (void*)0
17849#endif
17850
17851static void *task(p)
17852	void *p;
17853{
17854	return (void *) (p == NULL);
17855}
17856
17857int
17858main ()
17859{
17860
17861	/* pthread test function */
17862#ifndef PTHREAD_CREATE_DETACHED
17863#define	PTHREAD_CREATE_DETACHED	1
17864#endif
17865	pthread_t t;
17866	int status;
17867	int detach = PTHREAD_CREATE_DETACHED;
17868
17869#if HAVE_PTHREADS > 4
17870	/* Final pthreads */
17871	pthread_attr_t attr;
17872
17873	status = pthread_attr_init(&attr);
17874	if( status ) return status;
17875
17876#if HAVE_PTHREADS < 7
17877	status = pthread_attr_setdetachstate(&attr, &detach);
17878	if( status < 0 ) status = errno;
17879#else
17880	status = pthread_attr_setdetachstate(&attr, detach);
17881#endif
17882	if( status ) return status;
17883	status = pthread_create( &t, &attr, task, NULL );
17884#if HAVE_PTHREADS < 7
17885	if( status < 0 ) status = errno;
17886#endif
17887	if( status ) return status;
17888#else
17889	/* Draft 4 pthreads */
17890	status = pthread_create( &t, pthread_attr_default, task, NULL );
17891	if( status ) return errno;
17892
17893	/* give thread a chance to complete */
17894	/* it should remain joinable and hence detachable */
17895	sleep( 1 );
17896
17897	status = pthread_detach( &t );
17898	if( status ) return errno;
17899#endif
17900
17901#ifdef HAVE_LINUX_THREADS
17902	pthread_kill_other_threads_np();
17903#endif
17904
17905	return 0;
17906
17907  ;
17908  return 0;
17909}
17910_ACEOF
17911if ac_fn_c_try_link "$LINENO"; then :
17912  ol_cv_pthread_pthread=yes
17913else
17914  ol_cv_pthread_pthread=no
17915fi
17916rm -f core conftest.err conftest.$ac_objext \
17917    conftest$ac_exeext conftest.$ac_ext
17918else
17919  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17920/* end confdefs.h.  */
17921
17922/* pthread test headers */
17923#include <pthread.h>
17924#if HAVE_PTHREADS < 7
17925#include <errno.h>
17926#endif
17927#ifndef NULL
17928#define NULL (void*)0
17929#endif
17930
17931static void *task(p)
17932	void *p;
17933{
17934	return (void *) (p == NULL);
17935}
17936
17937
17938int main(argc, argv)
17939	int argc;
17940	char **argv;
17941{
17942
17943	/* pthread test function */
17944#ifndef PTHREAD_CREATE_DETACHED
17945#define	PTHREAD_CREATE_DETACHED	1
17946#endif
17947	pthread_t t;
17948	int status;
17949	int detach = PTHREAD_CREATE_DETACHED;
17950
17951#if HAVE_PTHREADS > 4
17952	/* Final pthreads */
17953	pthread_attr_t attr;
17954
17955	status = pthread_attr_init(&attr);
17956	if( status ) return status;
17957
17958#if HAVE_PTHREADS < 7
17959	status = pthread_attr_setdetachstate(&attr, &detach);
17960	if( status < 0 ) status = errno;
17961#else
17962	status = pthread_attr_setdetachstate(&attr, detach);
17963#endif
17964	if( status ) return status;
17965	status = pthread_create( &t, &attr, task, NULL );
17966#if HAVE_PTHREADS < 7
17967	if( status < 0 ) status = errno;
17968#endif
17969	if( status ) return status;
17970#else
17971	/* Draft 4 pthreads */
17972	status = pthread_create( &t, pthread_attr_default, task, NULL );
17973	if( status ) return errno;
17974
17975	/* give thread a chance to complete */
17976	/* it should remain joinable and hence detachable */
17977	sleep( 1 );
17978
17979	status = pthread_detach( &t );
17980	if( status ) return errno;
17981#endif
17982
17983#ifdef HAVE_LINUX_THREADS
17984	pthread_kill_other_threads_np();
17985#endif
17986
17987	return 0;
17988
17989}
17990
17991_ACEOF
17992if ac_fn_c_try_run "$LINENO"; then :
17993  ol_cv_pthread_pthread=yes
17994else
17995  ol_cv_pthread_pthread=no
17996fi
17997rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17998  conftest.$ac_objext conftest.beam conftest.$ac_ext
17999fi
18000
18001
18002		# restore the LIBS
18003		LIBS="$ol_LIBS"
18004
18005fi
18006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_pthread" >&5
18007$as_echo "$ol_cv_pthread_pthread" >&6; }
18008
18009	if test $ol_cv_pthread_pthread = yes ; then
18010		ol_link_pthreads="-pthread"
18011		ol_link_threads=posix
18012	fi
18013fi
18014
18015		# Pthread try link: -pthreads (ol_cv_pthread_pthreads)
18016if test "$ol_link_threads" = no ; then
18017	# try -pthreads
18018	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -pthreads" >&5
18019$as_echo_n "checking for pthread link with -pthreads... " >&6; }
18020if ${ol_cv_pthread_pthreads+:} false; then :
18021  $as_echo_n "(cached) " >&6
18022else
18023
18024		# save the flags
18025		ol_LIBS="$LIBS"
18026		LIBS="-pthreads $LIBS"
18027
18028		if test "$cross_compiling" = yes; then :
18029  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18030/* end confdefs.h.  */
18031
18032/* pthread test headers */
18033#include <pthread.h>
18034#if HAVE_PTHREADS < 7
18035#include <errno.h>
18036#endif
18037#ifndef NULL
18038#define NULL (void*)0
18039#endif
18040
18041static void *task(p)
18042	void *p;
18043{
18044	return (void *) (p == NULL);
18045}
18046
18047int
18048main ()
18049{
18050
18051	/* pthread test function */
18052#ifndef PTHREAD_CREATE_DETACHED
18053#define	PTHREAD_CREATE_DETACHED	1
18054#endif
18055	pthread_t t;
18056	int status;
18057	int detach = PTHREAD_CREATE_DETACHED;
18058
18059#if HAVE_PTHREADS > 4
18060	/* Final pthreads */
18061	pthread_attr_t attr;
18062
18063	status = pthread_attr_init(&attr);
18064	if( status ) return status;
18065
18066#if HAVE_PTHREADS < 7
18067	status = pthread_attr_setdetachstate(&attr, &detach);
18068	if( status < 0 ) status = errno;
18069#else
18070	status = pthread_attr_setdetachstate(&attr, detach);
18071#endif
18072	if( status ) return status;
18073	status = pthread_create( &t, &attr, task, NULL );
18074#if HAVE_PTHREADS < 7
18075	if( status < 0 ) status = errno;
18076#endif
18077	if( status ) return status;
18078#else
18079	/* Draft 4 pthreads */
18080	status = pthread_create( &t, pthread_attr_default, task, NULL );
18081	if( status ) return errno;
18082
18083	/* give thread a chance to complete */
18084	/* it should remain joinable and hence detachable */
18085	sleep( 1 );
18086
18087	status = pthread_detach( &t );
18088	if( status ) return errno;
18089#endif
18090
18091#ifdef HAVE_LINUX_THREADS
18092	pthread_kill_other_threads_np();
18093#endif
18094
18095	return 0;
18096
18097  ;
18098  return 0;
18099}
18100_ACEOF
18101if ac_fn_c_try_link "$LINENO"; then :
18102  ol_cv_pthread_pthreads=yes
18103else
18104  ol_cv_pthread_pthreads=no
18105fi
18106rm -f core conftest.err conftest.$ac_objext \
18107    conftest$ac_exeext conftest.$ac_ext
18108else
18109  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18110/* end confdefs.h.  */
18111
18112/* pthread test headers */
18113#include <pthread.h>
18114#if HAVE_PTHREADS < 7
18115#include <errno.h>
18116#endif
18117#ifndef NULL
18118#define NULL (void*)0
18119#endif
18120
18121static void *task(p)
18122	void *p;
18123{
18124	return (void *) (p == NULL);
18125}
18126
18127
18128int main(argc, argv)
18129	int argc;
18130	char **argv;
18131{
18132
18133	/* pthread test function */
18134#ifndef PTHREAD_CREATE_DETACHED
18135#define	PTHREAD_CREATE_DETACHED	1
18136#endif
18137	pthread_t t;
18138	int status;
18139	int detach = PTHREAD_CREATE_DETACHED;
18140
18141#if HAVE_PTHREADS > 4
18142	/* Final pthreads */
18143	pthread_attr_t attr;
18144
18145	status = pthread_attr_init(&attr);
18146	if( status ) return status;
18147
18148#if HAVE_PTHREADS < 7
18149	status = pthread_attr_setdetachstate(&attr, &detach);
18150	if( status < 0 ) status = errno;
18151#else
18152	status = pthread_attr_setdetachstate(&attr, detach);
18153#endif
18154	if( status ) return status;
18155	status = pthread_create( &t, &attr, task, NULL );
18156#if HAVE_PTHREADS < 7
18157	if( status < 0 ) status = errno;
18158#endif
18159	if( status ) return status;
18160#else
18161	/* Draft 4 pthreads */
18162	status = pthread_create( &t, pthread_attr_default, task, NULL );
18163	if( status ) return errno;
18164
18165	/* give thread a chance to complete */
18166	/* it should remain joinable and hence detachable */
18167	sleep( 1 );
18168
18169	status = pthread_detach( &t );
18170	if( status ) return errno;
18171#endif
18172
18173#ifdef HAVE_LINUX_THREADS
18174	pthread_kill_other_threads_np();
18175#endif
18176
18177	return 0;
18178
18179}
18180
18181_ACEOF
18182if ac_fn_c_try_run "$LINENO"; then :
18183  ol_cv_pthread_pthreads=yes
18184else
18185  ol_cv_pthread_pthreads=no
18186fi
18187rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18188  conftest.$ac_objext conftest.beam conftest.$ac_ext
18189fi
18190
18191
18192		# restore the LIBS
18193		LIBS="$ol_LIBS"
18194
18195fi
18196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_pthreads" >&5
18197$as_echo "$ol_cv_pthread_pthreads" >&6; }
18198
18199	if test $ol_cv_pthread_pthreads = yes ; then
18200		ol_link_pthreads="-pthreads"
18201		ol_link_threads=posix
18202	fi
18203fi
18204
18205		# Pthread try link: -mthreads (ol_cv_pthread_mthreads)
18206if test "$ol_link_threads" = no ; then
18207	# try -mthreads
18208	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -mthreads" >&5
18209$as_echo_n "checking for pthread link with -mthreads... " >&6; }
18210if ${ol_cv_pthread_mthreads+:} false; then :
18211  $as_echo_n "(cached) " >&6
18212else
18213
18214		# save the flags
18215		ol_LIBS="$LIBS"
18216		LIBS="-mthreads $LIBS"
18217
18218		if test "$cross_compiling" = yes; then :
18219  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18220/* end confdefs.h.  */
18221
18222/* pthread test headers */
18223#include <pthread.h>
18224#if HAVE_PTHREADS < 7
18225#include <errno.h>
18226#endif
18227#ifndef NULL
18228#define NULL (void*)0
18229#endif
18230
18231static void *task(p)
18232	void *p;
18233{
18234	return (void *) (p == NULL);
18235}
18236
18237int
18238main ()
18239{
18240
18241	/* pthread test function */
18242#ifndef PTHREAD_CREATE_DETACHED
18243#define	PTHREAD_CREATE_DETACHED	1
18244#endif
18245	pthread_t t;
18246	int status;
18247	int detach = PTHREAD_CREATE_DETACHED;
18248
18249#if HAVE_PTHREADS > 4
18250	/* Final pthreads */
18251	pthread_attr_t attr;
18252
18253	status = pthread_attr_init(&attr);
18254	if( status ) return status;
18255
18256#if HAVE_PTHREADS < 7
18257	status = pthread_attr_setdetachstate(&attr, &detach);
18258	if( status < 0 ) status = errno;
18259#else
18260	status = pthread_attr_setdetachstate(&attr, detach);
18261#endif
18262	if( status ) return status;
18263	status = pthread_create( &t, &attr, task, NULL );
18264#if HAVE_PTHREADS < 7
18265	if( status < 0 ) status = errno;
18266#endif
18267	if( status ) return status;
18268#else
18269	/* Draft 4 pthreads */
18270	status = pthread_create( &t, pthread_attr_default, task, NULL );
18271	if( status ) return errno;
18272
18273	/* give thread a chance to complete */
18274	/* it should remain joinable and hence detachable */
18275	sleep( 1 );
18276
18277	status = pthread_detach( &t );
18278	if( status ) return errno;
18279#endif
18280
18281#ifdef HAVE_LINUX_THREADS
18282	pthread_kill_other_threads_np();
18283#endif
18284
18285	return 0;
18286
18287  ;
18288  return 0;
18289}
18290_ACEOF
18291if ac_fn_c_try_link "$LINENO"; then :
18292  ol_cv_pthread_mthreads=yes
18293else
18294  ol_cv_pthread_mthreads=no
18295fi
18296rm -f core conftest.err conftest.$ac_objext \
18297    conftest$ac_exeext conftest.$ac_ext
18298else
18299  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18300/* end confdefs.h.  */
18301
18302/* pthread test headers */
18303#include <pthread.h>
18304#if HAVE_PTHREADS < 7
18305#include <errno.h>
18306#endif
18307#ifndef NULL
18308#define NULL (void*)0
18309#endif
18310
18311static void *task(p)
18312	void *p;
18313{
18314	return (void *) (p == NULL);
18315}
18316
18317
18318int main(argc, argv)
18319	int argc;
18320	char **argv;
18321{
18322
18323	/* pthread test function */
18324#ifndef PTHREAD_CREATE_DETACHED
18325#define	PTHREAD_CREATE_DETACHED	1
18326#endif
18327	pthread_t t;
18328	int status;
18329	int detach = PTHREAD_CREATE_DETACHED;
18330
18331#if HAVE_PTHREADS > 4
18332	/* Final pthreads */
18333	pthread_attr_t attr;
18334
18335	status = pthread_attr_init(&attr);
18336	if( status ) return status;
18337
18338#if HAVE_PTHREADS < 7
18339	status = pthread_attr_setdetachstate(&attr, &detach);
18340	if( status < 0 ) status = errno;
18341#else
18342	status = pthread_attr_setdetachstate(&attr, detach);
18343#endif
18344	if( status ) return status;
18345	status = pthread_create( &t, &attr, task, NULL );
18346#if HAVE_PTHREADS < 7
18347	if( status < 0 ) status = errno;
18348#endif
18349	if( status ) return status;
18350#else
18351	/* Draft 4 pthreads */
18352	status = pthread_create( &t, pthread_attr_default, task, NULL );
18353	if( status ) return errno;
18354
18355	/* give thread a chance to complete */
18356	/* it should remain joinable and hence detachable */
18357	sleep( 1 );
18358
18359	status = pthread_detach( &t );
18360	if( status ) return errno;
18361#endif
18362
18363#ifdef HAVE_LINUX_THREADS
18364	pthread_kill_other_threads_np();
18365#endif
18366
18367	return 0;
18368
18369}
18370
18371_ACEOF
18372if ac_fn_c_try_run "$LINENO"; then :
18373  ol_cv_pthread_mthreads=yes
18374else
18375  ol_cv_pthread_mthreads=no
18376fi
18377rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18378  conftest.$ac_objext conftest.beam conftest.$ac_ext
18379fi
18380
18381
18382		# restore the LIBS
18383		LIBS="$ol_LIBS"
18384
18385fi
18386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_mthreads" >&5
18387$as_echo "$ol_cv_pthread_mthreads" >&6; }
18388
18389	if test $ol_cv_pthread_mthreads = yes ; then
18390		ol_link_pthreads="-mthreads"
18391		ol_link_threads=posix
18392	fi
18393fi
18394
18395		# Pthread try link: -thread (ol_cv_pthread_thread)
18396if test "$ol_link_threads" = no ; then
18397	# try -thread
18398	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -thread" >&5
18399$as_echo_n "checking for pthread link with -thread... " >&6; }
18400if ${ol_cv_pthread_thread+:} false; then :
18401  $as_echo_n "(cached) " >&6
18402else
18403
18404		# save the flags
18405		ol_LIBS="$LIBS"
18406		LIBS="-thread $LIBS"
18407
18408		if test "$cross_compiling" = yes; then :
18409  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18410/* end confdefs.h.  */
18411
18412/* pthread test headers */
18413#include <pthread.h>
18414#if HAVE_PTHREADS < 7
18415#include <errno.h>
18416#endif
18417#ifndef NULL
18418#define NULL (void*)0
18419#endif
18420
18421static void *task(p)
18422	void *p;
18423{
18424	return (void *) (p == NULL);
18425}
18426
18427int
18428main ()
18429{
18430
18431	/* pthread test function */
18432#ifndef PTHREAD_CREATE_DETACHED
18433#define	PTHREAD_CREATE_DETACHED	1
18434#endif
18435	pthread_t t;
18436	int status;
18437	int detach = PTHREAD_CREATE_DETACHED;
18438
18439#if HAVE_PTHREADS > 4
18440	/* Final pthreads */
18441	pthread_attr_t attr;
18442
18443	status = pthread_attr_init(&attr);
18444	if( status ) return status;
18445
18446#if HAVE_PTHREADS < 7
18447	status = pthread_attr_setdetachstate(&attr, &detach);
18448	if( status < 0 ) status = errno;
18449#else
18450	status = pthread_attr_setdetachstate(&attr, detach);
18451#endif
18452	if( status ) return status;
18453	status = pthread_create( &t, &attr, task, NULL );
18454#if HAVE_PTHREADS < 7
18455	if( status < 0 ) status = errno;
18456#endif
18457	if( status ) return status;
18458#else
18459	/* Draft 4 pthreads */
18460	status = pthread_create( &t, pthread_attr_default, task, NULL );
18461	if( status ) return errno;
18462
18463	/* give thread a chance to complete */
18464	/* it should remain joinable and hence detachable */
18465	sleep( 1 );
18466
18467	status = pthread_detach( &t );
18468	if( status ) return errno;
18469#endif
18470
18471#ifdef HAVE_LINUX_THREADS
18472	pthread_kill_other_threads_np();
18473#endif
18474
18475	return 0;
18476
18477  ;
18478  return 0;
18479}
18480_ACEOF
18481if ac_fn_c_try_link "$LINENO"; then :
18482  ol_cv_pthread_thread=yes
18483else
18484  ol_cv_pthread_thread=no
18485fi
18486rm -f core conftest.err conftest.$ac_objext \
18487    conftest$ac_exeext conftest.$ac_ext
18488else
18489  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18490/* end confdefs.h.  */
18491
18492/* pthread test headers */
18493#include <pthread.h>
18494#if HAVE_PTHREADS < 7
18495#include <errno.h>
18496#endif
18497#ifndef NULL
18498#define NULL (void*)0
18499#endif
18500
18501static void *task(p)
18502	void *p;
18503{
18504	return (void *) (p == NULL);
18505}
18506
18507
18508int main(argc, argv)
18509	int argc;
18510	char **argv;
18511{
18512
18513	/* pthread test function */
18514#ifndef PTHREAD_CREATE_DETACHED
18515#define	PTHREAD_CREATE_DETACHED	1
18516#endif
18517	pthread_t t;
18518	int status;
18519	int detach = PTHREAD_CREATE_DETACHED;
18520
18521#if HAVE_PTHREADS > 4
18522	/* Final pthreads */
18523	pthread_attr_t attr;
18524
18525	status = pthread_attr_init(&attr);
18526	if( status ) return status;
18527
18528#if HAVE_PTHREADS < 7
18529	status = pthread_attr_setdetachstate(&attr, &detach);
18530	if( status < 0 ) status = errno;
18531#else
18532	status = pthread_attr_setdetachstate(&attr, detach);
18533#endif
18534	if( status ) return status;
18535	status = pthread_create( &t, &attr, task, NULL );
18536#if HAVE_PTHREADS < 7
18537	if( status < 0 ) status = errno;
18538#endif
18539	if( status ) return status;
18540#else
18541	/* Draft 4 pthreads */
18542	status = pthread_create( &t, pthread_attr_default, task, NULL );
18543	if( status ) return errno;
18544
18545	/* give thread a chance to complete */
18546	/* it should remain joinable and hence detachable */
18547	sleep( 1 );
18548
18549	status = pthread_detach( &t );
18550	if( status ) return errno;
18551#endif
18552
18553#ifdef HAVE_LINUX_THREADS
18554	pthread_kill_other_threads_np();
18555#endif
18556
18557	return 0;
18558
18559}
18560
18561_ACEOF
18562if ac_fn_c_try_run "$LINENO"; then :
18563  ol_cv_pthread_thread=yes
18564else
18565  ol_cv_pthread_thread=no
18566fi
18567rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18568  conftest.$ac_objext conftest.beam conftest.$ac_ext
18569fi
18570
18571
18572		# restore the LIBS
18573		LIBS="$ol_LIBS"
18574
18575fi
18576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_thread" >&5
18577$as_echo "$ol_cv_pthread_thread" >&6; }
18578
18579	if test $ol_cv_pthread_thread = yes ; then
18580		ol_link_pthreads="-thread"
18581		ol_link_threads=posix
18582	fi
18583fi
18584
18585
18586		# Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
18587if test "$ol_link_threads" = no ; then
18588	# try -lpthread -lmach -lexc -lc_r
18589	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
18590$as_echo_n "checking for pthread link with -lpthread -lmach -lexc -lc_r... " >&6; }
18591if ${ol_cv_pthread_lpthread_lmach_lexc_lc_r+:} false; then :
18592  $as_echo_n "(cached) " >&6
18593else
18594
18595		# save the flags
18596		ol_LIBS="$LIBS"
18597		LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
18598
18599		if test "$cross_compiling" = yes; then :
18600  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18601/* end confdefs.h.  */
18602
18603/* pthread test headers */
18604#include <pthread.h>
18605#if HAVE_PTHREADS < 7
18606#include <errno.h>
18607#endif
18608#ifndef NULL
18609#define NULL (void*)0
18610#endif
18611
18612static void *task(p)
18613	void *p;
18614{
18615	return (void *) (p == NULL);
18616}
18617
18618int
18619main ()
18620{
18621
18622	/* pthread test function */
18623#ifndef PTHREAD_CREATE_DETACHED
18624#define	PTHREAD_CREATE_DETACHED	1
18625#endif
18626	pthread_t t;
18627	int status;
18628	int detach = PTHREAD_CREATE_DETACHED;
18629
18630#if HAVE_PTHREADS > 4
18631	/* Final pthreads */
18632	pthread_attr_t attr;
18633
18634	status = pthread_attr_init(&attr);
18635	if( status ) return status;
18636
18637#if HAVE_PTHREADS < 7
18638	status = pthread_attr_setdetachstate(&attr, &detach);
18639	if( status < 0 ) status = errno;
18640#else
18641	status = pthread_attr_setdetachstate(&attr, detach);
18642#endif
18643	if( status ) return status;
18644	status = pthread_create( &t, &attr, task, NULL );
18645#if HAVE_PTHREADS < 7
18646	if( status < 0 ) status = errno;
18647#endif
18648	if( status ) return status;
18649#else
18650	/* Draft 4 pthreads */
18651	status = pthread_create( &t, pthread_attr_default, task, NULL );
18652	if( status ) return errno;
18653
18654	/* give thread a chance to complete */
18655	/* it should remain joinable and hence detachable */
18656	sleep( 1 );
18657
18658	status = pthread_detach( &t );
18659	if( status ) return errno;
18660#endif
18661
18662#ifdef HAVE_LINUX_THREADS
18663	pthread_kill_other_threads_np();
18664#endif
18665
18666	return 0;
18667
18668  ;
18669  return 0;
18670}
18671_ACEOF
18672if ac_fn_c_try_link "$LINENO"; then :
18673  ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
18674else
18675  ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
18676fi
18677rm -f core conftest.err conftest.$ac_objext \
18678    conftest$ac_exeext conftest.$ac_ext
18679else
18680  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18681/* end confdefs.h.  */
18682
18683/* pthread test headers */
18684#include <pthread.h>
18685#if HAVE_PTHREADS < 7
18686#include <errno.h>
18687#endif
18688#ifndef NULL
18689#define NULL (void*)0
18690#endif
18691
18692static void *task(p)
18693	void *p;
18694{
18695	return (void *) (p == NULL);
18696}
18697
18698
18699int main(argc, argv)
18700	int argc;
18701	char **argv;
18702{
18703
18704	/* pthread test function */
18705#ifndef PTHREAD_CREATE_DETACHED
18706#define	PTHREAD_CREATE_DETACHED	1
18707#endif
18708	pthread_t t;
18709	int status;
18710	int detach = PTHREAD_CREATE_DETACHED;
18711
18712#if HAVE_PTHREADS > 4
18713	/* Final pthreads */
18714	pthread_attr_t attr;
18715
18716	status = pthread_attr_init(&attr);
18717	if( status ) return status;
18718
18719#if HAVE_PTHREADS < 7
18720	status = pthread_attr_setdetachstate(&attr, &detach);
18721	if( status < 0 ) status = errno;
18722#else
18723	status = pthread_attr_setdetachstate(&attr, detach);
18724#endif
18725	if( status ) return status;
18726	status = pthread_create( &t, &attr, task, NULL );
18727#if HAVE_PTHREADS < 7
18728	if( status < 0 ) status = errno;
18729#endif
18730	if( status ) return status;
18731#else
18732	/* Draft 4 pthreads */
18733	status = pthread_create( &t, pthread_attr_default, task, NULL );
18734	if( status ) return errno;
18735
18736	/* give thread a chance to complete */
18737	/* it should remain joinable and hence detachable */
18738	sleep( 1 );
18739
18740	status = pthread_detach( &t );
18741	if( status ) return errno;
18742#endif
18743
18744#ifdef HAVE_LINUX_THREADS
18745	pthread_kill_other_threads_np();
18746#endif
18747
18748	return 0;
18749
18750}
18751
18752_ACEOF
18753if ac_fn_c_try_run "$LINENO"; then :
18754  ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
18755else
18756  ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
18757fi
18758rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18759  conftest.$ac_objext conftest.beam conftest.$ac_ext
18760fi
18761
18762
18763		# restore the LIBS
18764		LIBS="$ol_LIBS"
18765
18766fi
18767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
18768$as_echo "$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6; }
18769
18770	if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
18771		ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
18772		ol_link_threads=posix
18773	fi
18774fi
18775
18776		# Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
18777if test "$ol_link_threads" = no ; then
18778	# try -lpthread -lmach -lexc
18779	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -lmach -lexc" >&5
18780$as_echo_n "checking for pthread link with -lpthread -lmach -lexc... " >&6; }
18781if ${ol_cv_pthread_lpthread_lmach_lexc+:} false; then :
18782  $as_echo_n "(cached) " >&6
18783else
18784
18785		# save the flags
18786		ol_LIBS="$LIBS"
18787		LIBS="-lpthread -lmach -lexc $LIBS"
18788
18789		if test "$cross_compiling" = yes; then :
18790  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18791/* end confdefs.h.  */
18792
18793/* pthread test headers */
18794#include <pthread.h>
18795#if HAVE_PTHREADS < 7
18796#include <errno.h>
18797#endif
18798#ifndef NULL
18799#define NULL (void*)0
18800#endif
18801
18802static void *task(p)
18803	void *p;
18804{
18805	return (void *) (p == NULL);
18806}
18807
18808int
18809main ()
18810{
18811
18812	/* pthread test function */
18813#ifndef PTHREAD_CREATE_DETACHED
18814#define	PTHREAD_CREATE_DETACHED	1
18815#endif
18816	pthread_t t;
18817	int status;
18818	int detach = PTHREAD_CREATE_DETACHED;
18819
18820#if HAVE_PTHREADS > 4
18821	/* Final pthreads */
18822	pthread_attr_t attr;
18823
18824	status = pthread_attr_init(&attr);
18825	if( status ) return status;
18826
18827#if HAVE_PTHREADS < 7
18828	status = pthread_attr_setdetachstate(&attr, &detach);
18829	if( status < 0 ) status = errno;
18830#else
18831	status = pthread_attr_setdetachstate(&attr, detach);
18832#endif
18833	if( status ) return status;
18834	status = pthread_create( &t, &attr, task, NULL );
18835#if HAVE_PTHREADS < 7
18836	if( status < 0 ) status = errno;
18837#endif
18838	if( status ) return status;
18839#else
18840	/* Draft 4 pthreads */
18841	status = pthread_create( &t, pthread_attr_default, task, NULL );
18842	if( status ) return errno;
18843
18844	/* give thread a chance to complete */
18845	/* it should remain joinable and hence detachable */
18846	sleep( 1 );
18847
18848	status = pthread_detach( &t );
18849	if( status ) return errno;
18850#endif
18851
18852#ifdef HAVE_LINUX_THREADS
18853	pthread_kill_other_threads_np();
18854#endif
18855
18856	return 0;
18857
18858  ;
18859  return 0;
18860}
18861_ACEOF
18862if ac_fn_c_try_link "$LINENO"; then :
18863  ol_cv_pthread_lpthread_lmach_lexc=yes
18864else
18865  ol_cv_pthread_lpthread_lmach_lexc=no
18866fi
18867rm -f core conftest.err conftest.$ac_objext \
18868    conftest$ac_exeext conftest.$ac_ext
18869else
18870  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18871/* end confdefs.h.  */
18872
18873/* pthread test headers */
18874#include <pthread.h>
18875#if HAVE_PTHREADS < 7
18876#include <errno.h>
18877#endif
18878#ifndef NULL
18879#define NULL (void*)0
18880#endif
18881
18882static void *task(p)
18883	void *p;
18884{
18885	return (void *) (p == NULL);
18886}
18887
18888
18889int main(argc, argv)
18890	int argc;
18891	char **argv;
18892{
18893
18894	/* pthread test function */
18895#ifndef PTHREAD_CREATE_DETACHED
18896#define	PTHREAD_CREATE_DETACHED	1
18897#endif
18898	pthread_t t;
18899	int status;
18900	int detach = PTHREAD_CREATE_DETACHED;
18901
18902#if HAVE_PTHREADS > 4
18903	/* Final pthreads */
18904	pthread_attr_t attr;
18905
18906	status = pthread_attr_init(&attr);
18907	if( status ) return status;
18908
18909#if HAVE_PTHREADS < 7
18910	status = pthread_attr_setdetachstate(&attr, &detach);
18911	if( status < 0 ) status = errno;
18912#else
18913	status = pthread_attr_setdetachstate(&attr, detach);
18914#endif
18915	if( status ) return status;
18916	status = pthread_create( &t, &attr, task, NULL );
18917#if HAVE_PTHREADS < 7
18918	if( status < 0 ) status = errno;
18919#endif
18920	if( status ) return status;
18921#else
18922	/* Draft 4 pthreads */
18923	status = pthread_create( &t, pthread_attr_default, task, NULL );
18924	if( status ) return errno;
18925
18926	/* give thread a chance to complete */
18927	/* it should remain joinable and hence detachable */
18928	sleep( 1 );
18929
18930	status = pthread_detach( &t );
18931	if( status ) return errno;
18932#endif
18933
18934#ifdef HAVE_LINUX_THREADS
18935	pthread_kill_other_threads_np();
18936#endif
18937
18938	return 0;
18939
18940}
18941
18942_ACEOF
18943if ac_fn_c_try_run "$LINENO"; then :
18944  ol_cv_pthread_lpthread_lmach_lexc=yes
18945else
18946  ol_cv_pthread_lpthread_lmach_lexc=no
18947fi
18948rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18949  conftest.$ac_objext conftest.beam conftest.$ac_ext
18950fi
18951
18952
18953		# restore the LIBS
18954		LIBS="$ol_LIBS"
18955
18956fi
18957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
18958$as_echo "$ol_cv_pthread_lpthread_lmach_lexc" >&6; }
18959
18960	if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
18961		ol_link_pthreads="-lpthread -lmach -lexc"
18962		ol_link_threads=posix
18963	fi
18964fi
18965
18966
18967		# Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
18968if test "$ol_link_threads" = no ; then
18969	# try -lpthread -Wl,-woff,85
18970	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -Wl,-woff,85" >&5
18971$as_echo_n "checking for pthread link with -lpthread -Wl,-woff,85... " >&6; }
18972if ${ol_cv_pthread_lib_lpthread_woff+:} false; then :
18973  $as_echo_n "(cached) " >&6
18974else
18975
18976		# save the flags
18977		ol_LIBS="$LIBS"
18978		LIBS="-lpthread -Wl,-woff,85 $LIBS"
18979
18980		if test "$cross_compiling" = yes; then :
18981  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18982/* end confdefs.h.  */
18983
18984/* pthread test headers */
18985#include <pthread.h>
18986#if HAVE_PTHREADS < 7
18987#include <errno.h>
18988#endif
18989#ifndef NULL
18990#define NULL (void*)0
18991#endif
18992
18993static void *task(p)
18994	void *p;
18995{
18996	return (void *) (p == NULL);
18997}
18998
18999int
19000main ()
19001{
19002
19003	/* pthread test function */
19004#ifndef PTHREAD_CREATE_DETACHED
19005#define	PTHREAD_CREATE_DETACHED	1
19006#endif
19007	pthread_t t;
19008	int status;
19009	int detach = PTHREAD_CREATE_DETACHED;
19010
19011#if HAVE_PTHREADS > 4
19012	/* Final pthreads */
19013	pthread_attr_t attr;
19014
19015	status = pthread_attr_init(&attr);
19016	if( status ) return status;
19017
19018#if HAVE_PTHREADS < 7
19019	status = pthread_attr_setdetachstate(&attr, &detach);
19020	if( status < 0 ) status = errno;
19021#else
19022	status = pthread_attr_setdetachstate(&attr, detach);
19023#endif
19024	if( status ) return status;
19025	status = pthread_create( &t, &attr, task, NULL );
19026#if HAVE_PTHREADS < 7
19027	if( status < 0 ) status = errno;
19028#endif
19029	if( status ) return status;
19030#else
19031	/* Draft 4 pthreads */
19032	status = pthread_create( &t, pthread_attr_default, task, NULL );
19033	if( status ) return errno;
19034
19035	/* give thread a chance to complete */
19036	/* it should remain joinable and hence detachable */
19037	sleep( 1 );
19038
19039	status = pthread_detach( &t );
19040	if( status ) return errno;
19041#endif
19042
19043#ifdef HAVE_LINUX_THREADS
19044	pthread_kill_other_threads_np();
19045#endif
19046
19047	return 0;
19048
19049  ;
19050  return 0;
19051}
19052_ACEOF
19053if ac_fn_c_try_link "$LINENO"; then :
19054  ol_cv_pthread_lib_lpthread_woff=yes
19055else
19056  ol_cv_pthread_lib_lpthread_woff=no
19057fi
19058rm -f core conftest.err conftest.$ac_objext \
19059    conftest$ac_exeext conftest.$ac_ext
19060else
19061  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19062/* end confdefs.h.  */
19063
19064/* pthread test headers */
19065#include <pthread.h>
19066#if HAVE_PTHREADS < 7
19067#include <errno.h>
19068#endif
19069#ifndef NULL
19070#define NULL (void*)0
19071#endif
19072
19073static void *task(p)
19074	void *p;
19075{
19076	return (void *) (p == NULL);
19077}
19078
19079
19080int main(argc, argv)
19081	int argc;
19082	char **argv;
19083{
19084
19085	/* pthread test function */
19086#ifndef PTHREAD_CREATE_DETACHED
19087#define	PTHREAD_CREATE_DETACHED	1
19088#endif
19089	pthread_t t;
19090	int status;
19091	int detach = PTHREAD_CREATE_DETACHED;
19092
19093#if HAVE_PTHREADS > 4
19094	/* Final pthreads */
19095	pthread_attr_t attr;
19096
19097	status = pthread_attr_init(&attr);
19098	if( status ) return status;
19099
19100#if HAVE_PTHREADS < 7
19101	status = pthread_attr_setdetachstate(&attr, &detach);
19102	if( status < 0 ) status = errno;
19103#else
19104	status = pthread_attr_setdetachstate(&attr, detach);
19105#endif
19106	if( status ) return status;
19107	status = pthread_create( &t, &attr, task, NULL );
19108#if HAVE_PTHREADS < 7
19109	if( status < 0 ) status = errno;
19110#endif
19111	if( status ) return status;
19112#else
19113	/* Draft 4 pthreads */
19114	status = pthread_create( &t, pthread_attr_default, task, NULL );
19115	if( status ) return errno;
19116
19117	/* give thread a chance to complete */
19118	/* it should remain joinable and hence detachable */
19119	sleep( 1 );
19120
19121	status = pthread_detach( &t );
19122	if( status ) return errno;
19123#endif
19124
19125#ifdef HAVE_LINUX_THREADS
19126	pthread_kill_other_threads_np();
19127#endif
19128
19129	return 0;
19130
19131}
19132
19133_ACEOF
19134if ac_fn_c_try_run "$LINENO"; then :
19135  ol_cv_pthread_lib_lpthread_woff=yes
19136else
19137  ol_cv_pthread_lib_lpthread_woff=no
19138fi
19139rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19140  conftest.$ac_objext conftest.beam conftest.$ac_ext
19141fi
19142
19143
19144		# restore the LIBS
19145		LIBS="$ol_LIBS"
19146
19147fi
19148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lib_lpthread_woff" >&5
19149$as_echo "$ol_cv_pthread_lib_lpthread_woff" >&6; }
19150
19151	if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
19152		ol_link_pthreads="-lpthread -Wl,-woff,85"
19153		ol_link_threads=posix
19154	fi
19155fi
19156
19157
19158		# Pthread try link: -lpthread (ol_cv_pthread_lpthread)
19159if test "$ol_link_threads" = no ; then
19160	# try -lpthread
19161	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread" >&5
19162$as_echo_n "checking for pthread link with -lpthread... " >&6; }
19163if ${ol_cv_pthread_lpthread+:} false; then :
19164  $as_echo_n "(cached) " >&6
19165else
19166
19167		# save the flags
19168		ol_LIBS="$LIBS"
19169		LIBS="-lpthread $LIBS"
19170
19171		if test "$cross_compiling" = yes; then :
19172  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19173/* end confdefs.h.  */
19174
19175/* pthread test headers */
19176#include <pthread.h>
19177#if HAVE_PTHREADS < 7
19178#include <errno.h>
19179#endif
19180#ifndef NULL
19181#define NULL (void*)0
19182#endif
19183
19184static void *task(p)
19185	void *p;
19186{
19187	return (void *) (p == NULL);
19188}
19189
19190int
19191main ()
19192{
19193
19194	/* pthread test function */
19195#ifndef PTHREAD_CREATE_DETACHED
19196#define	PTHREAD_CREATE_DETACHED	1
19197#endif
19198	pthread_t t;
19199	int status;
19200	int detach = PTHREAD_CREATE_DETACHED;
19201
19202#if HAVE_PTHREADS > 4
19203	/* Final pthreads */
19204	pthread_attr_t attr;
19205
19206	status = pthread_attr_init(&attr);
19207	if( status ) return status;
19208
19209#if HAVE_PTHREADS < 7
19210	status = pthread_attr_setdetachstate(&attr, &detach);
19211	if( status < 0 ) status = errno;
19212#else
19213	status = pthread_attr_setdetachstate(&attr, detach);
19214#endif
19215	if( status ) return status;
19216	status = pthread_create( &t, &attr, task, NULL );
19217#if HAVE_PTHREADS < 7
19218	if( status < 0 ) status = errno;
19219#endif
19220	if( status ) return status;
19221#else
19222	/* Draft 4 pthreads */
19223	status = pthread_create( &t, pthread_attr_default, task, NULL );
19224	if( status ) return errno;
19225
19226	/* give thread a chance to complete */
19227	/* it should remain joinable and hence detachable */
19228	sleep( 1 );
19229
19230	status = pthread_detach( &t );
19231	if( status ) return errno;
19232#endif
19233
19234#ifdef HAVE_LINUX_THREADS
19235	pthread_kill_other_threads_np();
19236#endif
19237
19238	return 0;
19239
19240  ;
19241  return 0;
19242}
19243_ACEOF
19244if ac_fn_c_try_link "$LINENO"; then :
19245  ol_cv_pthread_lpthread=yes
19246else
19247  ol_cv_pthread_lpthread=no
19248fi
19249rm -f core conftest.err conftest.$ac_objext \
19250    conftest$ac_exeext conftest.$ac_ext
19251else
19252  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19253/* end confdefs.h.  */
19254
19255/* pthread test headers */
19256#include <pthread.h>
19257#if HAVE_PTHREADS < 7
19258#include <errno.h>
19259#endif
19260#ifndef NULL
19261#define NULL (void*)0
19262#endif
19263
19264static void *task(p)
19265	void *p;
19266{
19267	return (void *) (p == NULL);
19268}
19269
19270
19271int main(argc, argv)
19272	int argc;
19273	char **argv;
19274{
19275
19276	/* pthread test function */
19277#ifndef PTHREAD_CREATE_DETACHED
19278#define	PTHREAD_CREATE_DETACHED	1
19279#endif
19280	pthread_t t;
19281	int status;
19282	int detach = PTHREAD_CREATE_DETACHED;
19283
19284#if HAVE_PTHREADS > 4
19285	/* Final pthreads */
19286	pthread_attr_t attr;
19287
19288	status = pthread_attr_init(&attr);
19289	if( status ) return status;
19290
19291#if HAVE_PTHREADS < 7
19292	status = pthread_attr_setdetachstate(&attr, &detach);
19293	if( status < 0 ) status = errno;
19294#else
19295	status = pthread_attr_setdetachstate(&attr, detach);
19296#endif
19297	if( status ) return status;
19298	status = pthread_create( &t, &attr, task, NULL );
19299#if HAVE_PTHREADS < 7
19300	if( status < 0 ) status = errno;
19301#endif
19302	if( status ) return status;
19303#else
19304	/* Draft 4 pthreads */
19305	status = pthread_create( &t, pthread_attr_default, task, NULL );
19306	if( status ) return errno;
19307
19308	/* give thread a chance to complete */
19309	/* it should remain joinable and hence detachable */
19310	sleep( 1 );
19311
19312	status = pthread_detach( &t );
19313	if( status ) return errno;
19314#endif
19315
19316#ifdef HAVE_LINUX_THREADS
19317	pthread_kill_other_threads_np();
19318#endif
19319
19320	return 0;
19321
19322}
19323
19324_ACEOF
19325if ac_fn_c_try_run "$LINENO"; then :
19326  ol_cv_pthread_lpthread=yes
19327else
19328  ol_cv_pthread_lpthread=no
19329fi
19330rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19331  conftest.$ac_objext conftest.beam conftest.$ac_ext
19332fi
19333
19334
19335		# restore the LIBS
19336		LIBS="$ol_LIBS"
19337
19338fi
19339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread" >&5
19340$as_echo "$ol_cv_pthread_lpthread" >&6; }
19341
19342	if test $ol_cv_pthread_lpthread = yes ; then
19343		ol_link_pthreads="-lpthread"
19344		ol_link_threads=posix
19345	fi
19346fi
19347
19348		# Pthread try link: -lc_r (ol_cv_pthread_lc_r)
19349if test "$ol_link_threads" = no ; then
19350	# try -lc_r
19351	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lc_r" >&5
19352$as_echo_n "checking for pthread link with -lc_r... " >&6; }
19353if ${ol_cv_pthread_lc_r+:} false; then :
19354  $as_echo_n "(cached) " >&6
19355else
19356
19357		# save the flags
19358		ol_LIBS="$LIBS"
19359		LIBS="-lc_r $LIBS"
19360
19361		if test "$cross_compiling" = yes; then :
19362  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19363/* end confdefs.h.  */
19364
19365/* pthread test headers */
19366#include <pthread.h>
19367#if HAVE_PTHREADS < 7
19368#include <errno.h>
19369#endif
19370#ifndef NULL
19371#define NULL (void*)0
19372#endif
19373
19374static void *task(p)
19375	void *p;
19376{
19377	return (void *) (p == NULL);
19378}
19379
19380int
19381main ()
19382{
19383
19384	/* pthread test function */
19385#ifndef PTHREAD_CREATE_DETACHED
19386#define	PTHREAD_CREATE_DETACHED	1
19387#endif
19388	pthread_t t;
19389	int status;
19390	int detach = PTHREAD_CREATE_DETACHED;
19391
19392#if HAVE_PTHREADS > 4
19393	/* Final pthreads */
19394	pthread_attr_t attr;
19395
19396	status = pthread_attr_init(&attr);
19397	if( status ) return status;
19398
19399#if HAVE_PTHREADS < 7
19400	status = pthread_attr_setdetachstate(&attr, &detach);
19401	if( status < 0 ) status = errno;
19402#else
19403	status = pthread_attr_setdetachstate(&attr, detach);
19404#endif
19405	if( status ) return status;
19406	status = pthread_create( &t, &attr, task, NULL );
19407#if HAVE_PTHREADS < 7
19408	if( status < 0 ) status = errno;
19409#endif
19410	if( status ) return status;
19411#else
19412	/* Draft 4 pthreads */
19413	status = pthread_create( &t, pthread_attr_default, task, NULL );
19414	if( status ) return errno;
19415
19416	/* give thread a chance to complete */
19417	/* it should remain joinable and hence detachable */
19418	sleep( 1 );
19419
19420	status = pthread_detach( &t );
19421	if( status ) return errno;
19422#endif
19423
19424#ifdef HAVE_LINUX_THREADS
19425	pthread_kill_other_threads_np();
19426#endif
19427
19428	return 0;
19429
19430  ;
19431  return 0;
19432}
19433_ACEOF
19434if ac_fn_c_try_link "$LINENO"; then :
19435  ol_cv_pthread_lc_r=yes
19436else
19437  ol_cv_pthread_lc_r=no
19438fi
19439rm -f core conftest.err conftest.$ac_objext \
19440    conftest$ac_exeext conftest.$ac_ext
19441else
19442  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19443/* end confdefs.h.  */
19444
19445/* pthread test headers */
19446#include <pthread.h>
19447#if HAVE_PTHREADS < 7
19448#include <errno.h>
19449#endif
19450#ifndef NULL
19451#define NULL (void*)0
19452#endif
19453
19454static void *task(p)
19455	void *p;
19456{
19457	return (void *) (p == NULL);
19458}
19459
19460
19461int main(argc, argv)
19462	int argc;
19463	char **argv;
19464{
19465
19466	/* pthread test function */
19467#ifndef PTHREAD_CREATE_DETACHED
19468#define	PTHREAD_CREATE_DETACHED	1
19469#endif
19470	pthread_t t;
19471	int status;
19472	int detach = PTHREAD_CREATE_DETACHED;
19473
19474#if HAVE_PTHREADS > 4
19475	/* Final pthreads */
19476	pthread_attr_t attr;
19477
19478	status = pthread_attr_init(&attr);
19479	if( status ) return status;
19480
19481#if HAVE_PTHREADS < 7
19482	status = pthread_attr_setdetachstate(&attr, &detach);
19483	if( status < 0 ) status = errno;
19484#else
19485	status = pthread_attr_setdetachstate(&attr, detach);
19486#endif
19487	if( status ) return status;
19488	status = pthread_create( &t, &attr, task, NULL );
19489#if HAVE_PTHREADS < 7
19490	if( status < 0 ) status = errno;
19491#endif
19492	if( status ) return status;
19493#else
19494	/* Draft 4 pthreads */
19495	status = pthread_create( &t, pthread_attr_default, task, NULL );
19496	if( status ) return errno;
19497
19498	/* give thread a chance to complete */
19499	/* it should remain joinable and hence detachable */
19500	sleep( 1 );
19501
19502	status = pthread_detach( &t );
19503	if( status ) return errno;
19504#endif
19505
19506#ifdef HAVE_LINUX_THREADS
19507	pthread_kill_other_threads_np();
19508#endif
19509
19510	return 0;
19511
19512}
19513
19514_ACEOF
19515if ac_fn_c_try_run "$LINENO"; then :
19516  ol_cv_pthread_lc_r=yes
19517else
19518  ol_cv_pthread_lc_r=no
19519fi
19520rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19521  conftest.$ac_objext conftest.beam conftest.$ac_ext
19522fi
19523
19524
19525		# restore the LIBS
19526		LIBS="$ol_LIBS"
19527
19528fi
19529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lc_r" >&5
19530$as_echo "$ol_cv_pthread_lc_r" >&6; }
19531
19532	if test $ol_cv_pthread_lc_r = yes ; then
19533		ol_link_pthreads="-lc_r"
19534		ol_link_threads=posix
19535	fi
19536fi
19537
19538
19539		# Pthread try link: -threads (ol_cv_pthread_threads)
19540if test "$ol_link_threads" = no ; then
19541	# try -threads
19542	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -threads" >&5
19543$as_echo_n "checking for pthread link with -threads... " >&6; }
19544if ${ol_cv_pthread_threads+:} false; then :
19545  $as_echo_n "(cached) " >&6
19546else
19547
19548		# save the flags
19549		ol_LIBS="$LIBS"
19550		LIBS="-threads $LIBS"
19551
19552		if test "$cross_compiling" = yes; then :
19553  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19554/* end confdefs.h.  */
19555
19556/* pthread test headers */
19557#include <pthread.h>
19558#if HAVE_PTHREADS < 7
19559#include <errno.h>
19560#endif
19561#ifndef NULL
19562#define NULL (void*)0
19563#endif
19564
19565static void *task(p)
19566	void *p;
19567{
19568	return (void *) (p == NULL);
19569}
19570
19571int
19572main ()
19573{
19574
19575	/* pthread test function */
19576#ifndef PTHREAD_CREATE_DETACHED
19577#define	PTHREAD_CREATE_DETACHED	1
19578#endif
19579	pthread_t t;
19580	int status;
19581	int detach = PTHREAD_CREATE_DETACHED;
19582
19583#if HAVE_PTHREADS > 4
19584	/* Final pthreads */
19585	pthread_attr_t attr;
19586
19587	status = pthread_attr_init(&attr);
19588	if( status ) return status;
19589
19590#if HAVE_PTHREADS < 7
19591	status = pthread_attr_setdetachstate(&attr, &detach);
19592	if( status < 0 ) status = errno;
19593#else
19594	status = pthread_attr_setdetachstate(&attr, detach);
19595#endif
19596	if( status ) return status;
19597	status = pthread_create( &t, &attr, task, NULL );
19598#if HAVE_PTHREADS < 7
19599	if( status < 0 ) status = errno;
19600#endif
19601	if( status ) return status;
19602#else
19603	/* Draft 4 pthreads */
19604	status = pthread_create( &t, pthread_attr_default, task, NULL );
19605	if( status ) return errno;
19606
19607	/* give thread a chance to complete */
19608	/* it should remain joinable and hence detachable */
19609	sleep( 1 );
19610
19611	status = pthread_detach( &t );
19612	if( status ) return errno;
19613#endif
19614
19615#ifdef HAVE_LINUX_THREADS
19616	pthread_kill_other_threads_np();
19617#endif
19618
19619	return 0;
19620
19621  ;
19622  return 0;
19623}
19624_ACEOF
19625if ac_fn_c_try_link "$LINENO"; then :
19626  ol_cv_pthread_threads=yes
19627else
19628  ol_cv_pthread_threads=no
19629fi
19630rm -f core conftest.err conftest.$ac_objext \
19631    conftest$ac_exeext conftest.$ac_ext
19632else
19633  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19634/* end confdefs.h.  */
19635
19636/* pthread test headers */
19637#include <pthread.h>
19638#if HAVE_PTHREADS < 7
19639#include <errno.h>
19640#endif
19641#ifndef NULL
19642#define NULL (void*)0
19643#endif
19644
19645static void *task(p)
19646	void *p;
19647{
19648	return (void *) (p == NULL);
19649}
19650
19651
19652int main(argc, argv)
19653	int argc;
19654	char **argv;
19655{
19656
19657	/* pthread test function */
19658#ifndef PTHREAD_CREATE_DETACHED
19659#define	PTHREAD_CREATE_DETACHED	1
19660#endif
19661	pthread_t t;
19662	int status;
19663	int detach = PTHREAD_CREATE_DETACHED;
19664
19665#if HAVE_PTHREADS > 4
19666	/* Final pthreads */
19667	pthread_attr_t attr;
19668
19669	status = pthread_attr_init(&attr);
19670	if( status ) return status;
19671
19672#if HAVE_PTHREADS < 7
19673	status = pthread_attr_setdetachstate(&attr, &detach);
19674	if( status < 0 ) status = errno;
19675#else
19676	status = pthread_attr_setdetachstate(&attr, detach);
19677#endif
19678	if( status ) return status;
19679	status = pthread_create( &t, &attr, task, NULL );
19680#if HAVE_PTHREADS < 7
19681	if( status < 0 ) status = errno;
19682#endif
19683	if( status ) return status;
19684#else
19685	/* Draft 4 pthreads */
19686	status = pthread_create( &t, pthread_attr_default, task, NULL );
19687	if( status ) return errno;
19688
19689	/* give thread a chance to complete */
19690	/* it should remain joinable and hence detachable */
19691	sleep( 1 );
19692
19693	status = pthread_detach( &t );
19694	if( status ) return errno;
19695#endif
19696
19697#ifdef HAVE_LINUX_THREADS
19698	pthread_kill_other_threads_np();
19699#endif
19700
19701	return 0;
19702
19703}
19704
19705_ACEOF
19706if ac_fn_c_try_run "$LINENO"; then :
19707  ol_cv_pthread_threads=yes
19708else
19709  ol_cv_pthread_threads=no
19710fi
19711rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19712  conftest.$ac_objext conftest.beam conftest.$ac_ext
19713fi
19714
19715
19716		# restore the LIBS
19717		LIBS="$ol_LIBS"
19718
19719fi
19720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_threads" >&5
19721$as_echo "$ol_cv_pthread_threads" >&6; }
19722
19723	if test $ol_cv_pthread_threads = yes ; then
19724		ol_link_pthreads="-threads"
19725		ol_link_threads=posix
19726	fi
19727fi
19728
19729
19730		# Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
19731if test "$ol_link_threads" = no ; then
19732	# try -lpthreads -lmach -lexc -lc_r
19733	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
19734$as_echo_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r... " >&6; }
19735if ${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+:} false; then :
19736  $as_echo_n "(cached) " >&6
19737else
19738
19739		# save the flags
19740		ol_LIBS="$LIBS"
19741		LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
19742
19743		if test "$cross_compiling" = yes; then :
19744  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19745/* end confdefs.h.  */
19746
19747/* pthread test headers */
19748#include <pthread.h>
19749#if HAVE_PTHREADS < 7
19750#include <errno.h>
19751#endif
19752#ifndef NULL
19753#define NULL (void*)0
19754#endif
19755
19756static void *task(p)
19757	void *p;
19758{
19759	return (void *) (p == NULL);
19760}
19761
19762int
19763main ()
19764{
19765
19766	/* pthread test function */
19767#ifndef PTHREAD_CREATE_DETACHED
19768#define	PTHREAD_CREATE_DETACHED	1
19769#endif
19770	pthread_t t;
19771	int status;
19772	int detach = PTHREAD_CREATE_DETACHED;
19773
19774#if HAVE_PTHREADS > 4
19775	/* Final pthreads */
19776	pthread_attr_t attr;
19777
19778	status = pthread_attr_init(&attr);
19779	if( status ) return status;
19780
19781#if HAVE_PTHREADS < 7
19782	status = pthread_attr_setdetachstate(&attr, &detach);
19783	if( status < 0 ) status = errno;
19784#else
19785	status = pthread_attr_setdetachstate(&attr, detach);
19786#endif
19787	if( status ) return status;
19788	status = pthread_create( &t, &attr, task, NULL );
19789#if HAVE_PTHREADS < 7
19790	if( status < 0 ) status = errno;
19791#endif
19792	if( status ) return status;
19793#else
19794	/* Draft 4 pthreads */
19795	status = pthread_create( &t, pthread_attr_default, task, NULL );
19796	if( status ) return errno;
19797
19798	/* give thread a chance to complete */
19799	/* it should remain joinable and hence detachable */
19800	sleep( 1 );
19801
19802	status = pthread_detach( &t );
19803	if( status ) return errno;
19804#endif
19805
19806#ifdef HAVE_LINUX_THREADS
19807	pthread_kill_other_threads_np();
19808#endif
19809
19810	return 0;
19811
19812  ;
19813  return 0;
19814}
19815_ACEOF
19816if ac_fn_c_try_link "$LINENO"; then :
19817  ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
19818else
19819  ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
19820fi
19821rm -f core conftest.err conftest.$ac_objext \
19822    conftest$ac_exeext conftest.$ac_ext
19823else
19824  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19825/* end confdefs.h.  */
19826
19827/* pthread test headers */
19828#include <pthread.h>
19829#if HAVE_PTHREADS < 7
19830#include <errno.h>
19831#endif
19832#ifndef NULL
19833#define NULL (void*)0
19834#endif
19835
19836static void *task(p)
19837	void *p;
19838{
19839	return (void *) (p == NULL);
19840}
19841
19842
19843int main(argc, argv)
19844	int argc;
19845	char **argv;
19846{
19847
19848	/* pthread test function */
19849#ifndef PTHREAD_CREATE_DETACHED
19850#define	PTHREAD_CREATE_DETACHED	1
19851#endif
19852	pthread_t t;
19853	int status;
19854	int detach = PTHREAD_CREATE_DETACHED;
19855
19856#if HAVE_PTHREADS > 4
19857	/* Final pthreads */
19858	pthread_attr_t attr;
19859
19860	status = pthread_attr_init(&attr);
19861	if( status ) return status;
19862
19863#if HAVE_PTHREADS < 7
19864	status = pthread_attr_setdetachstate(&attr, &detach);
19865	if( status < 0 ) status = errno;
19866#else
19867	status = pthread_attr_setdetachstate(&attr, detach);
19868#endif
19869	if( status ) return status;
19870	status = pthread_create( &t, &attr, task, NULL );
19871#if HAVE_PTHREADS < 7
19872	if( status < 0 ) status = errno;
19873#endif
19874	if( status ) return status;
19875#else
19876	/* Draft 4 pthreads */
19877	status = pthread_create( &t, pthread_attr_default, task, NULL );
19878	if( status ) return errno;
19879
19880	/* give thread a chance to complete */
19881	/* it should remain joinable and hence detachable */
19882	sleep( 1 );
19883
19884	status = pthread_detach( &t );
19885	if( status ) return errno;
19886#endif
19887
19888#ifdef HAVE_LINUX_THREADS
19889	pthread_kill_other_threads_np();
19890#endif
19891
19892	return 0;
19893
19894}
19895
19896_ACEOF
19897if ac_fn_c_try_run "$LINENO"; then :
19898  ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
19899else
19900  ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
19901fi
19902rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19903  conftest.$ac_objext conftest.beam conftest.$ac_ext
19904fi
19905
19906
19907		# restore the LIBS
19908		LIBS="$ol_LIBS"
19909
19910fi
19911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
19912$as_echo "$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6; }
19913
19914	if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
19915		ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
19916		ol_link_threads=posix
19917	fi
19918fi
19919
19920		# Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
19921if test "$ol_link_threads" = no ; then
19922	# try -lpthreads -lmach -lexc
19923	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lmach -lexc" >&5
19924$as_echo_n "checking for pthread link with -lpthreads -lmach -lexc... " >&6; }
19925if ${ol_cv_pthread_lpthreads_lmach_lexc+:} false; then :
19926  $as_echo_n "(cached) " >&6
19927else
19928
19929		# save the flags
19930		ol_LIBS="$LIBS"
19931		LIBS="-lpthreads -lmach -lexc $LIBS"
19932
19933		if test "$cross_compiling" = yes; then :
19934  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19935/* end confdefs.h.  */
19936
19937/* pthread test headers */
19938#include <pthread.h>
19939#if HAVE_PTHREADS < 7
19940#include <errno.h>
19941#endif
19942#ifndef NULL
19943#define NULL (void*)0
19944#endif
19945
19946static void *task(p)
19947	void *p;
19948{
19949	return (void *) (p == NULL);
19950}
19951
19952int
19953main ()
19954{
19955
19956	/* pthread test function */
19957#ifndef PTHREAD_CREATE_DETACHED
19958#define	PTHREAD_CREATE_DETACHED	1
19959#endif
19960	pthread_t t;
19961	int status;
19962	int detach = PTHREAD_CREATE_DETACHED;
19963
19964#if HAVE_PTHREADS > 4
19965	/* Final pthreads */
19966	pthread_attr_t attr;
19967
19968	status = pthread_attr_init(&attr);
19969	if( status ) return status;
19970
19971#if HAVE_PTHREADS < 7
19972	status = pthread_attr_setdetachstate(&attr, &detach);
19973	if( status < 0 ) status = errno;
19974#else
19975	status = pthread_attr_setdetachstate(&attr, detach);
19976#endif
19977	if( status ) return status;
19978	status = pthread_create( &t, &attr, task, NULL );
19979#if HAVE_PTHREADS < 7
19980	if( status < 0 ) status = errno;
19981#endif
19982	if( status ) return status;
19983#else
19984	/* Draft 4 pthreads */
19985	status = pthread_create( &t, pthread_attr_default, task, NULL );
19986	if( status ) return errno;
19987
19988	/* give thread a chance to complete */
19989	/* it should remain joinable and hence detachable */
19990	sleep( 1 );
19991
19992	status = pthread_detach( &t );
19993	if( status ) return errno;
19994#endif
19995
19996#ifdef HAVE_LINUX_THREADS
19997	pthread_kill_other_threads_np();
19998#endif
19999
20000	return 0;
20001
20002  ;
20003  return 0;
20004}
20005_ACEOF
20006if ac_fn_c_try_link "$LINENO"; then :
20007  ol_cv_pthread_lpthreads_lmach_lexc=yes
20008else
20009  ol_cv_pthread_lpthreads_lmach_lexc=no
20010fi
20011rm -f core conftest.err conftest.$ac_objext \
20012    conftest$ac_exeext conftest.$ac_ext
20013else
20014  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20015/* end confdefs.h.  */
20016
20017/* pthread test headers */
20018#include <pthread.h>
20019#if HAVE_PTHREADS < 7
20020#include <errno.h>
20021#endif
20022#ifndef NULL
20023#define NULL (void*)0
20024#endif
20025
20026static void *task(p)
20027	void *p;
20028{
20029	return (void *) (p == NULL);
20030}
20031
20032
20033int main(argc, argv)
20034	int argc;
20035	char **argv;
20036{
20037
20038	/* pthread test function */
20039#ifndef PTHREAD_CREATE_DETACHED
20040#define	PTHREAD_CREATE_DETACHED	1
20041#endif
20042	pthread_t t;
20043	int status;
20044	int detach = PTHREAD_CREATE_DETACHED;
20045
20046#if HAVE_PTHREADS > 4
20047	/* Final pthreads */
20048	pthread_attr_t attr;
20049
20050	status = pthread_attr_init(&attr);
20051	if( status ) return status;
20052
20053#if HAVE_PTHREADS < 7
20054	status = pthread_attr_setdetachstate(&attr, &detach);
20055	if( status < 0 ) status = errno;
20056#else
20057	status = pthread_attr_setdetachstate(&attr, detach);
20058#endif
20059	if( status ) return status;
20060	status = pthread_create( &t, &attr, task, NULL );
20061#if HAVE_PTHREADS < 7
20062	if( status < 0 ) status = errno;
20063#endif
20064	if( status ) return status;
20065#else
20066	/* Draft 4 pthreads */
20067	status = pthread_create( &t, pthread_attr_default, task, NULL );
20068	if( status ) return errno;
20069
20070	/* give thread a chance to complete */
20071	/* it should remain joinable and hence detachable */
20072	sleep( 1 );
20073
20074	status = pthread_detach( &t );
20075	if( status ) return errno;
20076#endif
20077
20078#ifdef HAVE_LINUX_THREADS
20079	pthread_kill_other_threads_np();
20080#endif
20081
20082	return 0;
20083
20084}
20085
20086_ACEOF
20087if ac_fn_c_try_run "$LINENO"; then :
20088  ol_cv_pthread_lpthreads_lmach_lexc=yes
20089else
20090  ol_cv_pthread_lpthreads_lmach_lexc=no
20091fi
20092rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20093  conftest.$ac_objext conftest.beam conftest.$ac_ext
20094fi
20095
20096
20097		# restore the LIBS
20098		LIBS="$ol_LIBS"
20099
20100fi
20101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
20102$as_echo "$ol_cv_pthread_lpthreads_lmach_lexc" >&6; }
20103
20104	if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
20105		ol_link_pthreads="-lpthreads -lmach -lexc"
20106		ol_link_threads=posix
20107	fi
20108fi
20109
20110		# Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
20111if test "$ol_link_threads" = no ; then
20112	# try -lpthreads -lexc
20113	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lexc" >&5
20114$as_echo_n "checking for pthread link with -lpthreads -lexc... " >&6; }
20115if ${ol_cv_pthread_lpthreads_lexc+:} false; then :
20116  $as_echo_n "(cached) " >&6
20117else
20118
20119		# save the flags
20120		ol_LIBS="$LIBS"
20121		LIBS="-lpthreads -lexc $LIBS"
20122
20123		if test "$cross_compiling" = yes; then :
20124  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20125/* end confdefs.h.  */
20126
20127/* pthread test headers */
20128#include <pthread.h>
20129#if HAVE_PTHREADS < 7
20130#include <errno.h>
20131#endif
20132#ifndef NULL
20133#define NULL (void*)0
20134#endif
20135
20136static void *task(p)
20137	void *p;
20138{
20139	return (void *) (p == NULL);
20140}
20141
20142int
20143main ()
20144{
20145
20146	/* pthread test function */
20147#ifndef PTHREAD_CREATE_DETACHED
20148#define	PTHREAD_CREATE_DETACHED	1
20149#endif
20150	pthread_t t;
20151	int status;
20152	int detach = PTHREAD_CREATE_DETACHED;
20153
20154#if HAVE_PTHREADS > 4
20155	/* Final pthreads */
20156	pthread_attr_t attr;
20157
20158	status = pthread_attr_init(&attr);
20159	if( status ) return status;
20160
20161#if HAVE_PTHREADS < 7
20162	status = pthread_attr_setdetachstate(&attr, &detach);
20163	if( status < 0 ) status = errno;
20164#else
20165	status = pthread_attr_setdetachstate(&attr, detach);
20166#endif
20167	if( status ) return status;
20168	status = pthread_create( &t, &attr, task, NULL );
20169#if HAVE_PTHREADS < 7
20170	if( status < 0 ) status = errno;
20171#endif
20172	if( status ) return status;
20173#else
20174	/* Draft 4 pthreads */
20175	status = pthread_create( &t, pthread_attr_default, task, NULL );
20176	if( status ) return errno;
20177
20178	/* give thread a chance to complete */
20179	/* it should remain joinable and hence detachable */
20180	sleep( 1 );
20181
20182	status = pthread_detach( &t );
20183	if( status ) return errno;
20184#endif
20185
20186#ifdef HAVE_LINUX_THREADS
20187	pthread_kill_other_threads_np();
20188#endif
20189
20190	return 0;
20191
20192  ;
20193  return 0;
20194}
20195_ACEOF
20196if ac_fn_c_try_link "$LINENO"; then :
20197  ol_cv_pthread_lpthreads_lexc=yes
20198else
20199  ol_cv_pthread_lpthreads_lexc=no
20200fi
20201rm -f core conftest.err conftest.$ac_objext \
20202    conftest$ac_exeext conftest.$ac_ext
20203else
20204  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20205/* end confdefs.h.  */
20206
20207/* pthread test headers */
20208#include <pthread.h>
20209#if HAVE_PTHREADS < 7
20210#include <errno.h>
20211#endif
20212#ifndef NULL
20213#define NULL (void*)0
20214#endif
20215
20216static void *task(p)
20217	void *p;
20218{
20219	return (void *) (p == NULL);
20220}
20221
20222
20223int main(argc, argv)
20224	int argc;
20225	char **argv;
20226{
20227
20228	/* pthread test function */
20229#ifndef PTHREAD_CREATE_DETACHED
20230#define	PTHREAD_CREATE_DETACHED	1
20231#endif
20232	pthread_t t;
20233	int status;
20234	int detach = PTHREAD_CREATE_DETACHED;
20235
20236#if HAVE_PTHREADS > 4
20237	/* Final pthreads */
20238	pthread_attr_t attr;
20239
20240	status = pthread_attr_init(&attr);
20241	if( status ) return status;
20242
20243#if HAVE_PTHREADS < 7
20244	status = pthread_attr_setdetachstate(&attr, &detach);
20245	if( status < 0 ) status = errno;
20246#else
20247	status = pthread_attr_setdetachstate(&attr, detach);
20248#endif
20249	if( status ) return status;
20250	status = pthread_create( &t, &attr, task, NULL );
20251#if HAVE_PTHREADS < 7
20252	if( status < 0 ) status = errno;
20253#endif
20254	if( status ) return status;
20255#else
20256	/* Draft 4 pthreads */
20257	status = pthread_create( &t, pthread_attr_default, task, NULL );
20258	if( status ) return errno;
20259
20260	/* give thread a chance to complete */
20261	/* it should remain joinable and hence detachable */
20262	sleep( 1 );
20263
20264	status = pthread_detach( &t );
20265	if( status ) return errno;
20266#endif
20267
20268#ifdef HAVE_LINUX_THREADS
20269	pthread_kill_other_threads_np();
20270#endif
20271
20272	return 0;
20273
20274}
20275
20276_ACEOF
20277if ac_fn_c_try_run "$LINENO"; then :
20278  ol_cv_pthread_lpthreads_lexc=yes
20279else
20280  ol_cv_pthread_lpthreads_lexc=no
20281fi
20282rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20283  conftest.$ac_objext conftest.beam conftest.$ac_ext
20284fi
20285
20286
20287		# restore the LIBS
20288		LIBS="$ol_LIBS"
20289
20290fi
20291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lexc" >&5
20292$as_echo "$ol_cv_pthread_lpthreads_lexc" >&6; }
20293
20294	if test $ol_cv_pthread_lpthreads_lexc = yes ; then
20295		ol_link_pthreads="-lpthreads -lexc"
20296		ol_link_threads=posix
20297	fi
20298fi
20299
20300
20301		# Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
20302if test "$ol_link_threads" = no ; then
20303	# try -lpthreads
20304	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads" >&5
20305$as_echo_n "checking for pthread link with -lpthreads... " >&6; }
20306if ${ol_cv_pthread_lib_lpthreads+:} false; then :
20307  $as_echo_n "(cached) " >&6
20308else
20309
20310		# save the flags
20311		ol_LIBS="$LIBS"
20312		LIBS="-lpthreads $LIBS"
20313
20314		if test "$cross_compiling" = yes; then :
20315  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20316/* end confdefs.h.  */
20317
20318/* pthread test headers */
20319#include <pthread.h>
20320#if HAVE_PTHREADS < 7
20321#include <errno.h>
20322#endif
20323#ifndef NULL
20324#define NULL (void*)0
20325#endif
20326
20327static void *task(p)
20328	void *p;
20329{
20330	return (void *) (p == NULL);
20331}
20332
20333int
20334main ()
20335{
20336
20337	/* pthread test function */
20338#ifndef PTHREAD_CREATE_DETACHED
20339#define	PTHREAD_CREATE_DETACHED	1
20340#endif
20341	pthread_t t;
20342	int status;
20343	int detach = PTHREAD_CREATE_DETACHED;
20344
20345#if HAVE_PTHREADS > 4
20346	/* Final pthreads */
20347	pthread_attr_t attr;
20348
20349	status = pthread_attr_init(&attr);
20350	if( status ) return status;
20351
20352#if HAVE_PTHREADS < 7
20353	status = pthread_attr_setdetachstate(&attr, &detach);
20354	if( status < 0 ) status = errno;
20355#else
20356	status = pthread_attr_setdetachstate(&attr, detach);
20357#endif
20358	if( status ) return status;
20359	status = pthread_create( &t, &attr, task, NULL );
20360#if HAVE_PTHREADS < 7
20361	if( status < 0 ) status = errno;
20362#endif
20363	if( status ) return status;
20364#else
20365	/* Draft 4 pthreads */
20366	status = pthread_create( &t, pthread_attr_default, task, NULL );
20367	if( status ) return errno;
20368
20369	/* give thread a chance to complete */
20370	/* it should remain joinable and hence detachable */
20371	sleep( 1 );
20372
20373	status = pthread_detach( &t );
20374	if( status ) return errno;
20375#endif
20376
20377#ifdef HAVE_LINUX_THREADS
20378	pthread_kill_other_threads_np();
20379#endif
20380
20381	return 0;
20382
20383  ;
20384  return 0;
20385}
20386_ACEOF
20387if ac_fn_c_try_link "$LINENO"; then :
20388  ol_cv_pthread_lib_lpthreads=yes
20389else
20390  ol_cv_pthread_lib_lpthreads=no
20391fi
20392rm -f core conftest.err conftest.$ac_objext \
20393    conftest$ac_exeext conftest.$ac_ext
20394else
20395  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20396/* end confdefs.h.  */
20397
20398/* pthread test headers */
20399#include <pthread.h>
20400#if HAVE_PTHREADS < 7
20401#include <errno.h>
20402#endif
20403#ifndef NULL
20404#define NULL (void*)0
20405#endif
20406
20407static void *task(p)
20408	void *p;
20409{
20410	return (void *) (p == NULL);
20411}
20412
20413
20414int main(argc, argv)
20415	int argc;
20416	char **argv;
20417{
20418
20419	/* pthread test function */
20420#ifndef PTHREAD_CREATE_DETACHED
20421#define	PTHREAD_CREATE_DETACHED	1
20422#endif
20423	pthread_t t;
20424	int status;
20425	int detach = PTHREAD_CREATE_DETACHED;
20426
20427#if HAVE_PTHREADS > 4
20428	/* Final pthreads */
20429	pthread_attr_t attr;
20430
20431	status = pthread_attr_init(&attr);
20432	if( status ) return status;
20433
20434#if HAVE_PTHREADS < 7
20435	status = pthread_attr_setdetachstate(&attr, &detach);
20436	if( status < 0 ) status = errno;
20437#else
20438	status = pthread_attr_setdetachstate(&attr, detach);
20439#endif
20440	if( status ) return status;
20441	status = pthread_create( &t, &attr, task, NULL );
20442#if HAVE_PTHREADS < 7
20443	if( status < 0 ) status = errno;
20444#endif
20445	if( status ) return status;
20446#else
20447	/* Draft 4 pthreads */
20448	status = pthread_create( &t, pthread_attr_default, task, NULL );
20449	if( status ) return errno;
20450
20451	/* give thread a chance to complete */
20452	/* it should remain joinable and hence detachable */
20453	sleep( 1 );
20454
20455	status = pthread_detach( &t );
20456	if( status ) return errno;
20457#endif
20458
20459#ifdef HAVE_LINUX_THREADS
20460	pthread_kill_other_threads_np();
20461#endif
20462
20463	return 0;
20464
20465}
20466
20467_ACEOF
20468if ac_fn_c_try_run "$LINENO"; then :
20469  ol_cv_pthread_lib_lpthreads=yes
20470else
20471  ol_cv_pthread_lib_lpthreads=no
20472fi
20473rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20474  conftest.$ac_objext conftest.beam conftest.$ac_ext
20475fi
20476
20477
20478		# restore the LIBS
20479		LIBS="$ol_LIBS"
20480
20481fi
20482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lib_lpthreads" >&5
20483$as_echo "$ol_cv_pthread_lib_lpthreads" >&6; }
20484
20485	if test $ol_cv_pthread_lib_lpthreads = yes ; then
20486		ol_link_pthreads="-lpthreads"
20487		ol_link_threads=posix
20488	fi
20489fi
20490
20491
20492		if test $ol_link_threads != no ; then
20493			LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
20494
20495						save_CPPFLAGS="$CPPFLAGS"
20496			save_LIBS="$LIBS"
20497			LIBS="$LTHREAD_LIBS $LIBS"
20498
20499												for ac_func in sched_yield pthread_yield thr_yield
20500do :
20501  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20502ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20503if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20504  cat >>confdefs.h <<_ACEOF
20505#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20506_ACEOF
20507
20508fi
20509done
20510
20511
20512			if test $ac_cv_func_sched_yield = no &&
20513			   test $ac_cv_func_pthread_yield = no &&
20514			   test $ac_cv_func_thr_yield = no ; then
20515								{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
20516$as_echo_n "checking for sched_yield in -lrt... " >&6; }
20517if ${ac_cv_lib_rt_sched_yield+:} false; then :
20518  $as_echo_n "(cached) " >&6
20519else
20520  ac_check_lib_save_LIBS=$LIBS
20521LIBS="-lrt  $LIBS"
20522cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20523/* end confdefs.h.  */
20524
20525/* Override any GCC internal prototype to avoid an error.
20526   Use char because int might match the return type of a GCC
20527   builtin and then its argument prototype would still apply.  */
20528#ifdef __cplusplus
20529extern "C"
20530#endif
20531char sched_yield ();
20532int
20533main ()
20534{
20535return sched_yield ();
20536  ;
20537  return 0;
20538}
20539_ACEOF
20540if ac_fn_c_try_link "$LINENO"; then :
20541  ac_cv_lib_rt_sched_yield=yes
20542else
20543  ac_cv_lib_rt_sched_yield=no
20544fi
20545rm -f core conftest.err conftest.$ac_objext \
20546    conftest$ac_exeext conftest.$ac_ext
20547LIBS=$ac_check_lib_save_LIBS
20548fi
20549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
20550$as_echo "$ac_cv_lib_rt_sched_yield" >&6; }
20551if test "x$ac_cv_lib_rt_sched_yield" = xyes; then :
20552  LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
20553
20554$as_echo "#define HAVE_SCHED_YIELD 1" >>confdefs.h
20555
20556					ac_cv_func_sched_yield=yes
20557else
20558  ac_cv_func_sched_yield=no
20559fi
20560
20561			fi
20562			if test $ac_cv_func_sched_yield = no &&
20563			   test $ac_cv_func_pthread_yield = no &&
20564			   test "$ac_cv_func_thr_yield" = no ; then
20565				{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not locate sched_yield() or pthread_yield()" >&5
20566$as_echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
20567			fi
20568
20569						for ac_func in pthread_kill
20570do :
20571  ac_fn_c_check_func "$LINENO" "pthread_kill" "ac_cv_func_pthread_kill"
20572if test "x$ac_cv_func_pthread_kill" = xyes; then :
20573  cat >>confdefs.h <<_ACEOF
20574#define HAVE_PTHREAD_KILL 1
20575_ACEOF
20576
20577fi
20578done
20579
20580
20581									{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_rwlock_destroy with <pthread.h>" >&5
20582$as_echo_n "checking for pthread_rwlock_destroy with <pthread.h>... " >&6; }
20583if ${ol_cv_func_pthread_rwlock_destroy+:} false; then :
20584  $as_echo_n "(cached) " >&6
20585else
20586
20587								cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20588/* end confdefs.h.  */
20589
20590#include <pthread.h>
20591pthread_rwlock_t rwlock;
20592
20593int
20594main ()
20595{
20596pthread_rwlock_destroy(&rwlock);
20597  ;
20598  return 0;
20599}
20600_ACEOF
20601if ac_fn_c_try_link "$LINENO"; then :
20602  ol_cv_func_pthread_rwlock_destroy=yes
20603else
20604  ol_cv_func_pthread_rwlock_destroy=no
20605fi
20606rm -f core conftest.err conftest.$ac_objext \
20607    conftest$ac_exeext conftest.$ac_ext
20608
20609fi
20610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_pthread_rwlock_destroy" >&5
20611$as_echo "$ol_cv_func_pthread_rwlock_destroy" >&6; }
20612			if test $ol_cv_func_pthread_rwlock_destroy = yes ; then
20613
20614$as_echo "#define HAVE_PTHREAD_RWLOCK_DESTROY 1" >>confdefs.h
20615
20616			fi
20617
20618									{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_detach with <pthread.h>" >&5
20619$as_echo_n "checking for pthread_detach with <pthread.h>... " >&6; }
20620if ${ol_cv_func_pthread_detach+:} false; then :
20621  $as_echo_n "(cached) " >&6
20622else
20623
20624								cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20625/* end confdefs.h.  */
20626
20627#include <pthread.h>
20628#ifndef NULL
20629#define NULL (void*)0
20630#endif
20631
20632int
20633main ()
20634{
20635pthread_detach(NULL);
20636  ;
20637  return 0;
20638}
20639_ACEOF
20640if ac_fn_c_try_link "$LINENO"; then :
20641  ol_cv_func_pthread_detach=yes
20642else
20643  ol_cv_func_pthread_detach=no
20644fi
20645rm -f core conftest.err conftest.$ac_objext \
20646    conftest$ac_exeext conftest.$ac_ext
20647
20648fi
20649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_pthread_detach" >&5
20650$as_echo "$ol_cv_func_pthread_detach" >&6; }
20651
20652			if test $ol_cv_func_pthread_detach = no ; then
20653				as_fn_error $? "could not locate pthread_detach()" "$LINENO" 5
20654			fi
20655
20656
20657$as_echo "#define HAVE_PTHREAD_DETACH 1" >>confdefs.h
20658
20659
20660						for ac_func in \
20661				pthread_setconcurrency \
20662				pthread_getconcurrency \
20663				thr_setconcurrency \
20664				thr_getconcurrency \
20665
20666do :
20667  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20668ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20669if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20670  cat >>confdefs.h <<_ACEOF
20671#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20672_ACEOF
20673
20674fi
20675done
20676
20677
20678
20679	for ac_func in pthread_kill_other_threads_np
20680do :
20681  ac_fn_c_check_func "$LINENO" "pthread_kill_other_threads_np" "ac_cv_func_pthread_kill_other_threads_np"
20682if test "x$ac_cv_func_pthread_kill_other_threads_np" = xyes; then :
20683  cat >>confdefs.h <<_ACEOF
20684#define HAVE_PTHREAD_KILL_OTHER_THREADS_NP 1
20685_ACEOF
20686
20687fi
20688done
20689
20690	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads implementation" >&5
20691$as_echo_n "checking for LinuxThreads implementation... " >&6; }
20692if ${ol_cv_sys_linux_threads+:} false; then :
20693  $as_echo_n "(cached) " >&6
20694else
20695  ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
20696fi
20697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_sys_linux_threads" >&5
20698$as_echo "$ol_cv_sys_linux_threads" >&6; }
20699
20700
20701
20702
20703	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads consistency" >&5
20704$as_echo_n "checking for LinuxThreads consistency... " >&6; }
20705if ${ol_cv_linux_threads+:} false; then :
20706  $as_echo_n "(cached) " >&6
20707else
20708
20709		if test $ol_cv_header_linux_threads = yes &&
20710		   test $ol_cv_sys_linux_threads = yes; then
20711			ol_cv_linux_threads=yes
20712		elif test $ol_cv_header_linux_threads = no &&
20713		     test $ol_cv_sys_linux_threads = no; then
20714			ol_cv_linux_threads=no
20715		else
20716			ol_cv_linux_threads=error
20717		fi
20718
20719fi
20720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_linux_threads" >&5
20721$as_echo "$ol_cv_linux_threads" >&6; }
20722
20723
20724			if test $ol_cv_linux_threads = error; then
20725				as_fn_error $? "LinuxThreads header/library mismatch" "$LINENO" 5;
20726			fi
20727
20728			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if pthread_create() works" >&5
20729$as_echo_n "checking if pthread_create() works... " >&6; }
20730if ${ol_cv_pthread_create_works+:} false; then :
20731  $as_echo_n "(cached) " >&6
20732else
20733
20734			if test "$cross_compiling" = yes; then :
20735  				ol_cv_pthread_create_works=yes
20736else
20737  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20738/* end confdefs.h.  */
20739
20740/* pthread test headers */
20741#include <pthread.h>
20742#if HAVE_PTHREADS < 7
20743#include <errno.h>
20744#endif
20745#ifndef NULL
20746#define NULL (void*)0
20747#endif
20748
20749static void *task(p)
20750	void *p;
20751{
20752	return (void *) (p == NULL);
20753}
20754
20755
20756int main(argc, argv)
20757	int argc;
20758	char **argv;
20759{
20760
20761	/* pthread test function */
20762#ifndef PTHREAD_CREATE_DETACHED
20763#define	PTHREAD_CREATE_DETACHED	1
20764#endif
20765	pthread_t t;
20766	int status;
20767	int detach = PTHREAD_CREATE_DETACHED;
20768
20769#if HAVE_PTHREADS > 4
20770	/* Final pthreads */
20771	pthread_attr_t attr;
20772
20773	status = pthread_attr_init(&attr);
20774	if( status ) return status;
20775
20776#if HAVE_PTHREADS < 7
20777	status = pthread_attr_setdetachstate(&attr, &detach);
20778	if( status < 0 ) status = errno;
20779#else
20780	status = pthread_attr_setdetachstate(&attr, detach);
20781#endif
20782	if( status ) return status;
20783	status = pthread_create( &t, &attr, task, NULL );
20784#if HAVE_PTHREADS < 7
20785	if( status < 0 ) status = errno;
20786#endif
20787	if( status ) return status;
20788#else
20789	/* Draft 4 pthreads */
20790	status = pthread_create( &t, pthread_attr_default, task, NULL );
20791	if( status ) return errno;
20792
20793	/* give thread a chance to complete */
20794	/* it should remain joinable and hence detachable */
20795	sleep( 1 );
20796
20797	status = pthread_detach( &t );
20798	if( status ) return errno;
20799#endif
20800
20801#ifdef HAVE_LINUX_THREADS
20802	pthread_kill_other_threads_np();
20803#endif
20804
20805	return 0;
20806
20807}
20808
20809_ACEOF
20810if ac_fn_c_try_run "$LINENO"; then :
20811  ol_cv_pthread_create_works=yes
20812else
20813  ol_cv_pthread_create_works=no
20814fi
20815rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20816  conftest.$ac_objext conftest.beam conftest.$ac_ext
20817fi
20818
20819fi
20820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_create_works" >&5
20821$as_echo "$ol_cv_pthread_create_works" >&6; }
20822
20823			if test $ol_cv_pthread_create_works = no ; then
20824				as_fn_error $? "pthread_create is not usable, check environment settings" "$LINENO" 5
20825			fi
20826
20827			ol_replace_broken_yield=no
20828
20829			if test $ol_replace_broken_yield = yes ; then
20830
20831$as_echo "#define REPLACE_BROKEN_YIELD 1" >>confdefs.h
20832
20833			fi
20834
20835						if test $ol_with_yielding_select = auto ; then
20836				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if select yields when using pthreads" >&5
20837$as_echo_n "checking if select yields when using pthreads... " >&6; }
20838if ${ol_cv_pthread_select_yields+:} false; then :
20839  $as_echo_n "(cached) " >&6
20840else
20841
20842				if test "$cross_compiling" = yes; then :
20843  ol_cv_pthread_select_yields=cross
20844else
20845  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20846/* end confdefs.h.  */
20847
20848#include <sys/types.h>
20849#include <sys/time.h>
20850#include <unistd.h>
20851#include <pthread.h>
20852#ifndef NULL
20853#define NULL (void*) 0
20854#endif
20855
20856static int fildes[2];
20857
20858static void *task(p)
20859	void *p;
20860{
20861	int i;
20862	struct timeval tv;
20863
20864	fd_set rfds;
20865
20866	tv.tv_sec=10;
20867	tv.tv_usec=0;
20868
20869	FD_ZERO(&rfds);
20870	FD_SET(fildes[0], &rfds);
20871
20872	/* we're not interested in any fds */
20873	i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
20874
20875	if(i < 0) {
20876		perror("select");
20877		exit(10);
20878	}
20879
20880	exit(0); /* if we exit here, the select blocked the whole process */
20881}
20882
20883int main(argc, argv)
20884	int argc;
20885	char **argv;
20886{
20887	pthread_t t;
20888
20889	/* create a pipe to select */
20890	if(pipe(&fildes[0])) {
20891		perror("select");
20892		exit(1);
20893	}
20894
20895#ifdef HAVE_PTHREAD_SETCONCURRENCY
20896	(void) pthread_setconcurrency(2);
20897#else
20898#ifdef HAVE_THR_SETCONCURRENCY
20899	/* Set Solaris LWP concurrency to 2 */
20900	thr_setconcurrency(2);
20901#endif
20902#endif
20903
20904#if HAVE_PTHREADS < 6
20905	pthread_create(&t, pthread_attr_default, task, NULL);
20906#else
20907	pthread_create(&t, NULL, task, NULL);
20908#endif
20909
20910	/* make sure task runs first */
20911#ifdef HAVE_THR_YIELD
20912	thr_yield();
20913#elif defined( HAVE_SCHED_YIELD )
20914	sched_yield();
20915#elif defined( HAVE_PTHREAD_YIELD )
20916	pthread_yield();
20917#endif
20918
20919	exit(2);
20920}
20921_ACEOF
20922if ac_fn_c_try_run "$LINENO"; then :
20923  ol_cv_pthread_select_yields=no
20924else
20925  ol_cv_pthread_select_yields=yes
20926fi
20927rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20928  conftest.$ac_objext conftest.beam conftest.$ac_ext
20929fi
20930
20931fi
20932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_select_yields" >&5
20933$as_echo "$ol_cv_pthread_select_yields" >&6; }
20934
20935				if test $ol_cv_pthread_select_yields = cross ; then
20936					as_fn_error $? "crossing compiling: use --with-yielding_select=yes|no|manual" "$LINENO" 5
20937				fi
20938
20939				if test $ol_cv_pthread_select_yields = yes ; then
20940					ol_with_yielding_select=yes
20941				fi
20942			fi
20943
20944						CPPFLAGS="$save_CPPFLAGS"
20945			LIBS="$save_LIBS"
20946		else
20947			as_fn_error $? "could not locate usable POSIX Threads" "$LINENO" 5
20948		fi
20949	fi
20950
20951	if test $ol_with_threads = posix ; then
20952		as_fn_error $? "could not locate POSIX Threads" "$LINENO" 5
20953	fi
20954	;;
20955esac
20956
20957case $ol_with_threads in auto | yes | pth)
20958
20959	for ac_header in pth.h
20960do :
20961  ac_fn_c_check_header_mongrel "$LINENO" "pth.h" "ac_cv_header_pth_h" "$ac_includes_default"
20962if test "x$ac_cv_header_pth_h" = xyes; then :
20963  cat >>confdefs.h <<_ACEOF
20964#define HAVE_PTH_H 1
20965_ACEOF
20966
20967fi
20968
20969done
20970
20971
20972	if test $ac_cv_header_pth_h = yes ; then
20973		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pth_version in -lpth" >&5
20974$as_echo_n "checking for pth_version in -lpth... " >&6; }
20975if ${ac_cv_lib_pth_pth_version+:} false; then :
20976  $as_echo_n "(cached) " >&6
20977else
20978  ac_check_lib_save_LIBS=$LIBS
20979LIBS="-lpth  $LIBS"
20980cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20981/* end confdefs.h.  */
20982
20983/* Override any GCC internal prototype to avoid an error.
20984   Use char because int might match the return type of a GCC
20985   builtin and then its argument prototype would still apply.  */
20986#ifdef __cplusplus
20987extern "C"
20988#endif
20989char pth_version ();
20990int
20991main ()
20992{
20993return pth_version ();
20994  ;
20995  return 0;
20996}
20997_ACEOF
20998if ac_fn_c_try_link "$LINENO"; then :
20999  ac_cv_lib_pth_pth_version=yes
21000else
21001  ac_cv_lib_pth_pth_version=no
21002fi
21003rm -f core conftest.err conftest.$ac_objext \
21004    conftest$ac_exeext conftest.$ac_ext
21005LIBS=$ac_check_lib_save_LIBS
21006fi
21007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pth_pth_version" >&5
21008$as_echo "$ac_cv_lib_pth_pth_version" >&6; }
21009if test "x$ac_cv_lib_pth_pth_version" = xyes; then :
21010  have_pth=yes
21011else
21012  have_pth=no
21013fi
21014
21015
21016		if test $have_pth = yes ; then
21017
21018$as_echo "#define HAVE_GNU_PTH 1" >>confdefs.h
21019
21020			LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
21021			ol_link_threads=pth
21022			ol_with_threads=found
21023
21024			if test $ol_with_yielding_select = auto ; then
21025				ol_with_yielding_select=yes
21026			fi
21027		fi
21028	fi
21029	;;
21030esac
21031
21032case $ol_with_threads in auto | yes | lwp)
21033
21034		for ac_header in thread.h synch.h
21035do :
21036  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21037ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21038if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21039  cat >>confdefs.h <<_ACEOF
21040#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21041_ACEOF
21042
21043fi
21044
21045done
21046
21047	if test $ac_cv_header_thread_h = yes &&
21048	   test $ac_cv_header_synch_h = yes ; then
21049		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for thr_create in -lthread" >&5
21050$as_echo_n "checking for thr_create in -lthread... " >&6; }
21051if ${ac_cv_lib_thread_thr_create+:} false; then :
21052  $as_echo_n "(cached) " >&6
21053else
21054  ac_check_lib_save_LIBS=$LIBS
21055LIBS="-lthread  $LIBS"
21056cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21057/* end confdefs.h.  */
21058
21059/* Override any GCC internal prototype to avoid an error.
21060   Use char because int might match the return type of a GCC
21061   builtin and then its argument prototype would still apply.  */
21062#ifdef __cplusplus
21063extern "C"
21064#endif
21065char thr_create ();
21066int
21067main ()
21068{
21069return thr_create ();
21070  ;
21071  return 0;
21072}
21073_ACEOF
21074if ac_fn_c_try_link "$LINENO"; then :
21075  ac_cv_lib_thread_thr_create=yes
21076else
21077  ac_cv_lib_thread_thr_create=no
21078fi
21079rm -f core conftest.err conftest.$ac_objext \
21080    conftest$ac_exeext conftest.$ac_ext
21081LIBS=$ac_check_lib_save_LIBS
21082fi
21083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_thread_thr_create" >&5
21084$as_echo "$ac_cv_lib_thread_thr_create" >&6; }
21085if test "x$ac_cv_lib_thread_thr_create" = xyes; then :
21086  have_thr=yes
21087else
21088  have_thr=no
21089fi
21090
21091
21092		if test $have_thr = yes ; then
21093
21094$as_echo "#define HAVE_THR 1" >>confdefs.h
21095
21096			LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
21097			ol_link_threads=thr
21098
21099			if test $ol_with_yielding_select = auto ; then
21100				ol_with_yielding_select=yes
21101			fi
21102
21103						for ac_func in \
21104				thr_setconcurrency \
21105				thr_getconcurrency \
21106
21107do :
21108  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21109ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21110if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21111  cat >>confdefs.h <<_ACEOF
21112#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21113_ACEOF
21114
21115fi
21116done
21117
21118		fi
21119	fi
21120	;;
21121esac
21122
21123if test $ol_with_yielding_select = yes ; then
21124
21125$as_echo "#define HAVE_YIELDING_SELECT 1" >>confdefs.h
21126
21127fi
21128
21129if test $ol_with_threads = manual ; then
21130		ol_link_threads=yes
21131
21132	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: thread defines and link options must be set manually" >&5
21133$as_echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
21134
21135	for ac_header in pthread.h sched.h
21136do :
21137  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21138ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21139if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21140  cat >>confdefs.h <<_ACEOF
21141#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21142_ACEOF
21143
21144fi
21145
21146done
21147
21148	for ac_func in sched_yield pthread_yield
21149do :
21150  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21151ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21152if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21153  cat >>confdefs.h <<_ACEOF
21154#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21155_ACEOF
21156
21157fi
21158done
21159
21160
21161	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads pthread.h" >&5
21162$as_echo_n "checking for LinuxThreads pthread.h... " >&6; }
21163if ${ol_cv_header_linux_threads+:} false; then :
21164  $as_echo_n "(cached) " >&6
21165else
21166  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21167/* end confdefs.h.  */
21168#include <pthread.h>
21169_ACEOF
21170if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21171  $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then :
21172  ol_cv_header_linux_threads=yes
21173else
21174  ol_cv_header_linux_threads=no
21175fi
21176rm -f conftest*
21177
21178
21179fi
21180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_linux_threads" >&5
21181$as_echo "$ol_cv_header_linux_threads" >&6; }
21182	if test $ol_cv_header_linux_threads = yes; then
21183
21184$as_echo "#define HAVE_LINUX_THREADS 1" >>confdefs.h
21185
21186	fi
21187
21188
21189	for ac_header in thread.h synch.h
21190do :
21191  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21192ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21193if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21194  cat >>confdefs.h <<_ACEOF
21195#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21196_ACEOF
21197
21198fi
21199
21200done
21201
21202fi
21203
21204if test $ol_link_threads != no && test $ol_link_threads != nt ; then
21205			$as_echo "#define REENTRANT 1" >>confdefs.h
21206
21207	$as_echo "#define _REENTRANT 1" >>confdefs.h
21208
21209	$as_echo "#define THREAD_SAFE 1" >>confdefs.h
21210
21211	$as_echo "#define _THREAD_SAFE 1" >>confdefs.h
21212
21213	$as_echo "#define THREADSAFE 1" >>confdefs.h
21214
21215	$as_echo "#define _THREADSAFE 1" >>confdefs.h
21216
21217	$as_echo "#define _SGI_MP_SOURCE 1" >>confdefs.h
21218
21219
21220			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread specific errno" >&5
21221$as_echo_n "checking for thread specific errno... " >&6; }
21222if ${ol_cv_errno_thread_specific+:} false; then :
21223  $as_echo_n "(cached) " >&6
21224else
21225
21226		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21227/* end confdefs.h.  */
21228#include <errno.h>
21229int
21230main ()
21231{
21232errno = 0;
21233  ;
21234  return 0;
21235}
21236_ACEOF
21237if ac_fn_c_try_link "$LINENO"; then :
21238  ol_cv_errno_thread_specific=yes
21239else
21240  ol_cv_errno_thread_specific=no
21241fi
21242rm -f core conftest.err conftest.$ac_objext \
21243    conftest$ac_exeext conftest.$ac_ext
21244
21245fi
21246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_errno_thread_specific" >&5
21247$as_echo "$ol_cv_errno_thread_specific" >&6; }
21248
21249			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread specific h_errno" >&5
21250$as_echo_n "checking for thread specific h_errno... " >&6; }
21251if ${ol_cv_h_errno_thread_specific+:} false; then :
21252  $as_echo_n "(cached) " >&6
21253else
21254
21255		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21256/* end confdefs.h.  */
21257#include <netdb.h>
21258int
21259main ()
21260{
21261h_errno = 0;
21262  ;
21263  return 0;
21264}
21265_ACEOF
21266if ac_fn_c_try_link "$LINENO"; then :
21267  ol_cv_h_errno_thread_specific=yes
21268else
21269  ol_cv_h_errno_thread_specific=no
21270fi
21271rm -f core conftest.err conftest.$ac_objext \
21272    conftest$ac_exeext conftest.$ac_ext
21273
21274fi
21275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_h_errno_thread_specific" >&5
21276$as_echo "$ol_cv_h_errno_thread_specific" >&6; }
21277
21278	if test $ol_cv_errno_thread_specific != yes ||
21279	   test $ol_cv_h_errno_thread_specific != yes ; then
21280		LIBS="$LTHREAD_LIBS $LIBS"
21281		LTHREAD_LIBS=""
21282	fi
21283
21284fi
21285
21286if test $ol_link_threads = no ; then
21287	if test $ol_enable_slapd != no; then
21288		as_fn_error $? "slapd requires thread support" "$LINENO" 5
21289	fi
21290
21291	if test $ol_with_threads = yes ; then
21292		as_fn_error $? "no suitable thread support" "$LINENO" 5
21293	fi
21294
21295	if test $ol_with_threads = auto ; then
21296		{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no suitable thread support, disabling threads" >&5
21297$as_echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
21298		ol_with_threads=no
21299	fi
21300
21301
21302$as_echo "#define NO_THREADS 1" >>confdefs.h
21303
21304	LTHREAD_LIBS=""
21305	BUILD_THREAD=no
21306else
21307	BUILD_THREAD=yes
21308fi
21309
21310if test $ol_link_threads != no ; then
21311
21312$as_echo "#define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1" >>confdefs.h
21313
21314
21315
21316$as_echo "#define LDAP_API_FEATURE_X_OPENLDAP_REENTRANT 1" >>confdefs.h
21317
21318fi
21319
21320for ac_func in \
21321	ctime_r			\
21322	gmtime_r localtime_r \
21323	gethostbyname_r	gethostbyaddr_r \
21324
21325do :
21326  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21327ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21328if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21329  cat >>confdefs.h <<_ACEOF
21330#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21331_ACEOF
21332
21333fi
21334done
21335
21336
21337if test "$ac_cv_func_ctime_r" = no ; then
21338	ol_cv_func_ctime_r_nargs=0
21339else
21340	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments of ctime_r" >&5
21341$as_echo_n "checking number of arguments of ctime_r... " >&6; }
21342if ${ol_cv_func_ctime_r_nargs+:} false; then :
21343  $as_echo_n "(cached) " >&6
21344else
21345  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21346/* end confdefs.h.  */
21347#include <time.h>
21348int
21349main ()
21350{
21351time_t ti; char *buffer; ctime_r(&ti,buffer,32);
21352  ;
21353  return 0;
21354}
21355_ACEOF
21356if ac_fn_c_try_compile "$LINENO"; then :
21357  ol_cv_func_ctime_r_nargs3=yes
21358else
21359  ol_cv_func_ctime_r_nargs3=no
21360fi
21361rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21362
21363	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21364/* end confdefs.h.  */
21365#include <time.h>
21366int
21367main ()
21368{
21369time_t ti; char *buffer; ctime_r(&ti,buffer);
21370  ;
21371  return 0;
21372}
21373_ACEOF
21374if ac_fn_c_try_compile "$LINENO"; then :
21375  ol_cv_func_ctime_r_nargs2=yes
21376else
21377  ol_cv_func_ctime_r_nargs2=no
21378fi
21379rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21380
21381	if test $ol_cv_func_ctime_r_nargs3 = yes &&
21382	   test $ol_cv_func_ctime_r_nargs2 = no ; then
21383
21384		ol_cv_func_ctime_r_nargs=3
21385
21386	elif test $ol_cv_func_ctime_r_nargs3 = no &&
21387	     test $ol_cv_func_ctime_r_nargs2 = yes ; then
21388
21389		ol_cv_func_ctime_r_nargs=2
21390
21391	else
21392		ol_cv_func_ctime_r_nargs=0
21393	fi
21394
21395fi
21396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_ctime_r_nargs" >&5
21397$as_echo "$ol_cv_func_ctime_r_nargs" >&6; }
21398
21399  if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
21400
21401cat >>confdefs.h <<_ACEOF
21402#define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
21403_ACEOF
21404
21405  fi
21406
21407fi
21408
21409if test "$ac_cv_func_gethostbyname_r" = yes ; then
21410 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments of gethostbyname_r" >&5
21411$as_echo_n "checking number of arguments of gethostbyname_r... " >&6; }
21412if ${ol_cv_func_gethostbyname_r_nargs+:} false; then :
21413  $as_echo_n "(cached) " >&6
21414else
21415  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21416/* end confdefs.h.  */
21417#include <sys/types.h>
21418#include <sys/socket.h>
21419#include <netinet/in.h>
21420#include <netdb.h>
21421#define BUFSIZE (sizeof(struct hostent)+10)
21422int
21423main ()
21424{
21425struct hostent hent; char buffer[BUFSIZE];
21426		int bufsize=BUFSIZE;int h_errno;
21427		(void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
21428			buffer, bufsize, &h_errno);
21429  ;
21430  return 0;
21431}
21432_ACEOF
21433if ac_fn_c_try_compile "$LINENO"; then :
21434  ol_cv_func_gethostbyname_r_nargs5=yes
21435else
21436  ol_cv_func_gethostbyname_r_nargs5=no
21437fi
21438rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21439
21440	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21441/* end confdefs.h.  */
21442#include <sys/types.h>
21443#include <sys/socket.h>
21444#include <netinet/in.h>
21445#include <netdb.h>
21446#define BUFSIZE (sizeof(struct hostent)+10)
21447int
21448main ()
21449{
21450struct hostent hent;struct hostent *rhent;
21451		char buffer[BUFSIZE];
21452		int bufsize=BUFSIZE;int h_errno;
21453		(void)gethostbyname_r("localhost", &hent, buffer, bufsize,
21454			&rhent, &h_errno);
21455  ;
21456  return 0;
21457}
21458_ACEOF
21459if ac_fn_c_try_compile "$LINENO"; then :
21460  ol_cv_func_gethostbyname_r_nargs6=yes
21461else
21462  ol_cv_func_gethostbyname_r_nargs6=no
21463fi
21464rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21465
21466	if test $ol_cv_func_gethostbyname_r_nargs5 = yes &&
21467	   test $ol_cv_func_gethostbyname_r_nargs6 = no ; then
21468
21469		ol_cv_func_gethostbyname_r_nargs=5
21470
21471	elif test $ol_cv_func_gethostbyname_r_nargs5 = no &&
21472	     test $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
21473
21474		ol_cv_func_gethostbyname_r_nargs=6
21475
21476	else
21477		ol_cv_func_gethostbyname_r_nargs=0
21478	fi
21479
21480fi
21481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_gethostbyname_r_nargs" >&5
21482$as_echo "$ol_cv_func_gethostbyname_r_nargs" >&6; }
21483  if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
21484
21485cat >>confdefs.h <<_ACEOF
21486#define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
21487_ACEOF
21488
21489  fi
21490
21491else
21492 	ol_cv_func_gethostbyname_r_nargs=0
21493fi
21494
21495if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
21496 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments of gethostbyaddr_r" >&5
21497$as_echo_n "checking number of arguments of gethostbyaddr_r... " >&6; }
21498if ${ol_cv_func_gethostbyaddr_r_nargs+:} false; then :
21499  $as_echo_n "(cached) " >&6
21500else
21501  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21502/* end confdefs.h.  */
21503#include <sys/types.h>
21504#include <sys/socket.h>
21505#include <netinet/in.h>
21506#include <netdb.h>
21507#define BUFSIZE (sizeof(struct hostent)+10)
21508int
21509main ()
21510{
21511struct hostent hent; char buffer[BUFSIZE];
21512	    struct in_addr add;
21513	    size_t alen=sizeof(struct in_addr);
21514	    int bufsize=BUFSIZE;int h_errno;
21515		(void)gethostbyaddr_r( (void *)&(add.s_addr),
21516			alen, AF_INET, &hent, buffer, bufsize, &h_errno);
21517  ;
21518  return 0;
21519}
21520_ACEOF
21521if ac_fn_c_try_compile "$LINENO"; then :
21522  ol_cv_func_gethostbyaddr_r_nargs7=yes
21523else
21524  ol_cv_func_gethostbyaddr_r_nargs7=no
21525fi
21526rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21527
21528	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21529/* end confdefs.h.  */
21530#include <sys/types.h>
21531#include <sys/socket.h>
21532#include <netinet/in.h>
21533#include <netdb.h>
21534#define BUFSIZE (sizeof(struct hostent)+10)
21535int
21536main ()
21537{
21538struct hostent hent;
21539		struct hostent *rhent; char buffer[BUFSIZE];
21540		struct in_addr add;
21541		size_t alen=sizeof(struct in_addr);
21542		int bufsize=BUFSIZE;int h_errno;
21543		(void)gethostbyaddr_r( (void *)&(add.s_addr),
21544			alen, AF_INET, &hent, buffer, bufsize,
21545			&rhent, &h_errno);
21546  ;
21547  return 0;
21548}
21549_ACEOF
21550if ac_fn_c_try_compile "$LINENO"; then :
21551  ol_cv_func_gethostbyaddr_r_nargs8=yes
21552else
21553  ol_cv_func_gethostbyaddr_r_nargs8=no
21554fi
21555rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21556
21557	if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes &&
21558	   test $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
21559
21560		ol_cv_func_gethostbyaddr_r_nargs=7
21561
21562	elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no &&
21563	     test $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
21564
21565		ol_cv_func_gethostbyaddr_r_nargs=8
21566
21567	else
21568		ol_cv_func_gethostbyaddr_r_nargs=0
21569	fi
21570
21571fi
21572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_gethostbyaddr_r_nargs" >&5
21573$as_echo "$ol_cv_func_gethostbyaddr_r_nargs" >&6; }
21574  if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
21575
21576cat >>confdefs.h <<_ACEOF
21577#define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
21578_ACEOF
21579
21580  fi
21581
21582else
21583 	ol_cv_func_gethostbyaddr_r_nargs=0
21584fi
21585
21586
21587if test $ol_enable_dynamic = yes && test $enable_shared = yes ; then
21588	BUILD_LIBS_DYNAMIC=shared
21589
21590$as_echo "#define LDAP_LIBS_DYNAMIC 1" >>confdefs.h
21591
21592	LTSTATIC=""
21593else
21594	BUILD_LIBS_DYNAMIC=static
21595	LTSTATIC="-static"
21596fi
21597
21598if test $ol_enable_wrappers != no ; then
21599	for ac_header in tcpd.h
21600do :
21601  ac_fn_c_check_header_mongrel "$LINENO" "tcpd.h" "ac_cv_header_tcpd_h" "$ac_includes_default"
21602if test "x$ac_cv_header_tcpd_h" = xyes; then :
21603  cat >>confdefs.h <<_ACEOF
21604#define HAVE_TCPD_H 1
21605_ACEOF
21606
21607		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for TCP wrappers library" >&5
21608$as_echo_n "checking for TCP wrappers library... " >&6; }
21609		save_LIBS="$LIBS"
21610		LIBS="$LIBS -lwrap"
21611		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21612/* end confdefs.h.  */
21613
21614#include <tcpd.h>
21615int allow_severity = 0;
21616int deny_severity  = 0;
21617
21618struct request_info *req;
21619
21620int
21621main ()
21622{
21623
21624hosts_access(req)
21625
21626  ;
21627  return 0;
21628}
21629_ACEOF
21630if ac_fn_c_try_link "$LINENO"; then :
21631  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -lwrap" >&5
21632$as_echo "-lwrap" >&6; }
21633		have_wrappers=yes
21634		LIBS="$save_LIBS"
21635else
21636
21637				LIBS="$LIBS -lnsl"
21638		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21639/* end confdefs.h.  */
21640
21641#include <tcpd.h>
21642int allow_severity = 0;
21643int deny_severity  = 0;
21644
21645struct request_info *req;
21646
21647int
21648main ()
21649{
21650
21651hosts_access(req)
21652
21653  ;
21654  return 0;
21655}
21656_ACEOF
21657if ac_fn_c_try_link "$LINENO"; then :
21658  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -lwrap -lnsl" >&5
21659$as_echo "-lwrap -lnsl" >&6; }
21660		have_wrappers=yes
21661		LIBS="$save_LIBS -lnsl"
21662else
21663
21664		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21665$as_echo "no" >&6; }
21666		have_wrappers=no
21667		LIBS=$save_LIBS
21668fi
21669rm -f core conftest.err conftest.$ac_objext \
21670    conftest$ac_exeext conftest.$ac_ext
21671fi
21672rm -f core conftest.err conftest.$ac_objext \
21673    conftest$ac_exeext conftest.$ac_ext
21674else
21675  have_wrappers=no
21676fi
21677
21678done
21679
21680
21681	if test $have_wrappers = yes ; then
21682
21683$as_echo "#define HAVE_TCPD 1" >>confdefs.h
21684
21685		WRAP_LIBS="-lwrap"
21686	elif test $ol_enable_wrappers = yes ; then
21687		as_fn_error $? "could not find TCP wrappers, select appropriate options or disable" "$LINENO" 5
21688	else
21689		{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find TCP wrappers, support disabled" >&5
21690$as_echo "$as_me: WARNING: could not find TCP wrappers, support disabled" >&2;}
21691		WRAP_LIBS=""
21692	fi
21693fi
21694
21695if test $ol_enable_syslog != no ; then
21696	ac_fn_c_check_func "$LINENO" "openlog" "ac_cv_func_openlog"
21697if test "x$ac_cv_func_openlog" = xyes; then :
21698
21699fi
21700
21701	if test $ac_cv_func_openlog = no && test $ol_enable_syslog = yes; then
21702		as_fn_error select appropriate options or disable "could not find syslog" "$LINENO" 5
21703	fi
21704	ol_enable_syslog=$ac_cv_func_openlog
21705fi
21706
21707ol_link_sql=no
21708if test $ol_enable_sql != no ; then
21709	for ac_header in sql.h sqlext.h
21710do :
21711  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21712ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21713if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21714  cat >>confdefs.h <<_ACEOF
21715#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21716_ACEOF
21717
21718else
21719
21720		as_fn_error $? "could not locate SQL headers" "$LINENO" 5
21721
21722fi
21723
21724done
21725
21726
21727	sql_LIBS="$LIBS"
21728	LIBS="$LTHREAD_LIBS $LIBS"
21729
21730	if test $ol_with_odbc = auto ; then
21731		ol_with_odbc="iodbc unixodbc odbc32"
21732	fi
21733
21734	for odbc in $ol_with_odbc ; do
21735		if test $ol_link_sql = no ; then
21736			case $odbc in
21737			iodbc)
21738				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLDriverConnect in -liodbc" >&5
21739$as_echo_n "checking for SQLDriverConnect in -liodbc... " >&6; }
21740if ${ac_cv_lib_iodbc_SQLDriverConnect+:} false; then :
21741  $as_echo_n "(cached) " >&6
21742else
21743  ac_check_lib_save_LIBS=$LIBS
21744LIBS="-liodbc  $LIBS $LTHREAD_LIBS"
21745cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21746/* end confdefs.h.  */
21747
21748/* Override any GCC internal prototype to avoid an error.
21749   Use char because int might match the return type of a GCC
21750   builtin and then its argument prototype would still apply.  */
21751#ifdef __cplusplus
21752extern "C"
21753#endif
21754char SQLDriverConnect ();
21755int
21756main ()
21757{
21758return SQLDriverConnect ();
21759  ;
21760  return 0;
21761}
21762_ACEOF
21763if ac_fn_c_try_link "$LINENO"; then :
21764  ac_cv_lib_iodbc_SQLDriverConnect=yes
21765else
21766  ac_cv_lib_iodbc_SQLDriverConnect=no
21767fi
21768rm -f core conftest.err conftest.$ac_objext \
21769    conftest$ac_exeext conftest.$ac_ext
21770LIBS=$ac_check_lib_save_LIBS
21771fi
21772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iodbc_SQLDriverConnect" >&5
21773$as_echo "$ac_cv_lib_iodbc_SQLDriverConnect" >&6; }
21774if test "x$ac_cv_lib_iodbc_SQLDriverConnect" = xyes; then :
21775  have_iodbc=yes
21776else
21777  have_iodbc=no
21778fi
21779
21780				if test $have_iodbc = yes ; then
21781					ol_link_sql="-liodbc"
21782				fi
21783				;;
21784
21785			unixodbc)
21786				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLDriverConnect in -lodbc" >&5
21787$as_echo_n "checking for SQLDriverConnect in -lodbc... " >&6; }
21788if ${ac_cv_lib_odbc_SQLDriverConnect+:} false; then :
21789  $as_echo_n "(cached) " >&6
21790else
21791  ac_check_lib_save_LIBS=$LIBS
21792LIBS="-lodbc  $LIBS $LTHREAD_LIBS"
21793cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21794/* end confdefs.h.  */
21795
21796/* Override any GCC internal prototype to avoid an error.
21797   Use char because int might match the return type of a GCC
21798   builtin and then its argument prototype would still apply.  */
21799#ifdef __cplusplus
21800extern "C"
21801#endif
21802char SQLDriverConnect ();
21803int
21804main ()
21805{
21806return SQLDriverConnect ();
21807  ;
21808  return 0;
21809}
21810_ACEOF
21811if ac_fn_c_try_link "$LINENO"; then :
21812  ac_cv_lib_odbc_SQLDriverConnect=yes
21813else
21814  ac_cv_lib_odbc_SQLDriverConnect=no
21815fi
21816rm -f core conftest.err conftest.$ac_objext \
21817    conftest$ac_exeext conftest.$ac_ext
21818LIBS=$ac_check_lib_save_LIBS
21819fi
21820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_odbc_SQLDriverConnect" >&5
21821$as_echo "$ac_cv_lib_odbc_SQLDriverConnect" >&6; }
21822if test "x$ac_cv_lib_odbc_SQLDriverConnect" = xyes; then :
21823  have_odbc=yes
21824else
21825  have_odbc=no
21826fi
21827
21828				if test $have_odbc = yes ; then
21829					ol_link_sql="-lodbc"
21830				fi
21831				;;
21832
21833			odbc32)
21834				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLDriverConnect in -lodbc32" >&5
21835$as_echo_n "checking for SQLDriverConnect in -lodbc32... " >&6; }
21836if ${ac_cv_lib_odbc32_SQLDriverConnect+:} false; then :
21837  $as_echo_n "(cached) " >&6
21838else
21839  ac_check_lib_save_LIBS=$LIBS
21840LIBS="-lodbc32  $LIBS"
21841cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21842/* end confdefs.h.  */
21843
21844/* Override any GCC internal prototype to avoid an error.
21845   Use char because int might match the return type of a GCC
21846   builtin and then its argument prototype would still apply.  */
21847#ifdef __cplusplus
21848extern "C"
21849#endif
21850char SQLDriverConnect ();
21851int
21852main ()
21853{
21854return SQLDriverConnect ();
21855  ;
21856  return 0;
21857}
21858_ACEOF
21859if ac_fn_c_try_link "$LINENO"; then :
21860  ac_cv_lib_odbc32_SQLDriverConnect=yes
21861else
21862  ac_cv_lib_odbc32_SQLDriverConnect=no
21863fi
21864rm -f core conftest.err conftest.$ac_objext \
21865    conftest$ac_exeext conftest.$ac_ext
21866LIBS=$ac_check_lib_save_LIBS
21867fi
21868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_odbc32_SQLDriverConnect" >&5
21869$as_echo "$ac_cv_lib_odbc32_SQLDriverConnect" >&6; }
21870if test "x$ac_cv_lib_odbc32_SQLDriverConnect" = xyes; then :
21871  have_odbc32=yes
21872else
21873  have_odbc32=no
21874fi
21875
21876
21877								if test $have_odbc32 = no ; then
21878					{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLDriverConnect in -lodbc32 with windows.h" >&5
21879$as_echo_n "checking for SQLDriverConnect in -lodbc32 with windows.h... " >&6; }
21880					save_LIBS="$LIBS"
21881					LIBS="$LIBS -lodbc32"
21882					cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21883/* end confdefs.h.  */
21884#include <windows.h>
21885					#include <sqlext.h>
21886
21887int
21888main ()
21889{
21890
21891						SQLDriverConnect(NULL,NULL,NULL,0,NULL,0,NULL,0);
21892
21893  ;
21894  return 0;
21895}
21896_ACEOF
21897if ac_fn_c_try_link "$LINENO"; then :
21898  have_odbc32=yes
21899else
21900  have_odbc32=no
21901fi
21902rm -f core conftest.err conftest.$ac_objext \
21903    conftest$ac_exeext conftest.$ac_ext
21904					LIBS="$save_LIBS"
21905					{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_odbc32" >&5
21906$as_echo "$have_odbc32" >&6; }
21907				fi
21908
21909				if test $have_odbc32 = yes ; then
21910					ol_link_sql="-lodbc32"
21911				fi
21912				;;
21913
21914			*)
21915				as_fn_error $? "unknown ODBC library" "$LINENO" 5
21916				;;
21917			esac
21918		fi
21919	done
21920
21921	LIBS="$sql_LIBS"
21922
21923	if test $ol_link_sql != no ; then
21924		SLAPD_SQL_LIBS="$ol_link_sql"
21925
21926	elif test $ol_enable_sql != auto ; then
21927		as_fn_error $? "could not locate suitable ODBC library" "$LINENO" 5
21928	fi
21929fi
21930
21931ol_link_wt=no
21932if test $ol_enable_wt != no ; then
21933
21934
21935
21936
21937
21938
21939
21940if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
21941	if test -n "$ac_tool_prefix"; then
21942  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
21943set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
21944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21945$as_echo_n "checking for $ac_word... " >&6; }
21946if ${ac_cv_path_PKG_CONFIG+:} false; then :
21947  $as_echo_n "(cached) " >&6
21948else
21949  case $PKG_CONFIG in
21950  [\\/]* | ?:[\\/]*)
21951  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21952  ;;
21953  *)
21954  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21955for as_dir in $PATH
21956do
21957  IFS=$as_save_IFS
21958  test -z "$as_dir" && as_dir=.
21959    for ac_exec_ext in '' $ac_executable_extensions; do
21960  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21961    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21962    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21963    break 2
21964  fi
21965done
21966  done
21967IFS=$as_save_IFS
21968
21969  ;;
21970esac
21971fi
21972PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21973if test -n "$PKG_CONFIG"; then
21974  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
21975$as_echo "$PKG_CONFIG" >&6; }
21976else
21977  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21978$as_echo "no" >&6; }
21979fi
21980
21981
21982fi
21983if test -z "$ac_cv_path_PKG_CONFIG"; then
21984  ac_pt_PKG_CONFIG=$PKG_CONFIG
21985  # Extract the first word of "pkg-config", so it can be a program name with args.
21986set dummy pkg-config; ac_word=$2
21987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21988$as_echo_n "checking for $ac_word... " >&6; }
21989if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
21990  $as_echo_n "(cached) " >&6
21991else
21992  case $ac_pt_PKG_CONFIG in
21993  [\\/]* | ?:[\\/]*)
21994  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
21995  ;;
21996  *)
21997  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21998for as_dir in $PATH
21999do
22000  IFS=$as_save_IFS
22001  test -z "$as_dir" && as_dir=.
22002    for ac_exec_ext in '' $ac_executable_extensions; do
22003  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22004    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22005    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22006    break 2
22007  fi
22008done
22009  done
22010IFS=$as_save_IFS
22011
22012  ;;
22013esac
22014fi
22015ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
22016if test -n "$ac_pt_PKG_CONFIG"; then
22017  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
22018$as_echo "$ac_pt_PKG_CONFIG" >&6; }
22019else
22020  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22021$as_echo "no" >&6; }
22022fi
22023
22024  if test "x$ac_pt_PKG_CONFIG" = x; then
22025    PKG_CONFIG=""
22026  else
22027    case $cross_compiling:$ac_tool_warned in
22028yes:)
22029{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
22030$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
22031ac_tool_warned=yes ;;
22032esac
22033    PKG_CONFIG=$ac_pt_PKG_CONFIG
22034  fi
22035else
22036  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
22037fi
22038
22039fi
22040if test -n "$PKG_CONFIG"; then
22041	_pkg_min_version=0.9.0
22042	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
22043$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
22044	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
22045		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22046$as_echo "yes" >&6; }
22047	else
22048		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22049$as_echo "no" >&6; }
22050		PKG_CONFIG=""
22051	fi
22052fi
22053
22054pkg_failed=no
22055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WT" >&5
22056$as_echo_n "checking for WT... " >&6; }
22057
22058if test -n "$WT_CFLAGS"; then
22059    pkg_cv_WT_CFLAGS="$WT_CFLAGS"
22060 elif test -n "$PKG_CONFIG"; then
22061    if test -n "$PKG_CONFIG" && \
22062    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"wiredtiger\""; } >&5
22063  ($PKG_CONFIG --exists --print-errors "wiredtiger") 2>&5
22064  ac_status=$?
22065  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22066  test $ac_status = 0; }; then
22067  pkg_cv_WT_CFLAGS=`$PKG_CONFIG --cflags "wiredtiger" 2>/dev/null`
22068		      test "x$?" != "x0" && pkg_failed=yes
22069else
22070  pkg_failed=yes
22071fi
22072 else
22073    pkg_failed=untried
22074fi
22075if test -n "$WT_LIBS"; then
22076    pkg_cv_WT_LIBS="$WT_LIBS"
22077 elif test -n "$PKG_CONFIG"; then
22078    if test -n "$PKG_CONFIG" && \
22079    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"wiredtiger\""; } >&5
22080  ($PKG_CONFIG --exists --print-errors "wiredtiger") 2>&5
22081  ac_status=$?
22082  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22083  test $ac_status = 0; }; then
22084  pkg_cv_WT_LIBS=`$PKG_CONFIG --libs "wiredtiger" 2>/dev/null`
22085		      test "x$?" != "x0" && pkg_failed=yes
22086else
22087  pkg_failed=yes
22088fi
22089 else
22090    pkg_failed=untried
22091fi
22092
22093
22094
22095if test $pkg_failed = yes; then
22096   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22097$as_echo "no" >&6; }
22098
22099if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22100        _pkg_short_errors_supported=yes
22101else
22102        _pkg_short_errors_supported=no
22103fi
22104        if test $_pkg_short_errors_supported = yes; then
22105	        WT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "wiredtiger" 2>&1`
22106        else
22107	        WT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "wiredtiger" 2>&1`
22108        fi
22109	# Put the nasty error message in config.log where it belongs
22110	echo "$WT_PKG_ERRORS" >&5
22111
22112	as_fn_error $? "Package requirements (wiredtiger) were not met:
22113
22114$WT_PKG_ERRORS
22115
22116Consider adjusting the PKG_CONFIG_PATH environment variable if you
22117installed software in a non-standard prefix.
22118
22119Alternatively, you may set the environment variables WT_CFLAGS
22120and WT_LIBS to avoid the need to call pkg-config.
22121See the pkg-config man page for more details." "$LINENO" 5
22122elif test $pkg_failed = untried; then
22123     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22124$as_echo "no" >&6; }
22125	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22126$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22127as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
22128is in your PATH or set the PKG_CONFIG environment variable to the full
22129path to pkg-config.
22130
22131Alternatively, you may set the environment variables WT_CFLAGS
22132and WT_LIBS to avoid the need to call pkg-config.
22133See the pkg-config man page for more details.
22134
22135To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22136See \`config.log' for more details" "$LINENO" 5; }
22137else
22138	WT_CFLAGS=$pkg_cv_WT_CFLAGS
22139	WT_LIBS=$pkg_cv_WT_LIBS
22140        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22141$as_echo "yes" >&6; }
22142
22143fi
22144	if test $ol_enable_wt = yes ; then
22145		SLAPD_LIBS="$SLAPD_LIBS \$(WT_LIBS)"
22146	fi
22147	ol_link_wt=yes
22148fi
22149
22150WITH_SASL=no
22151ol_link_sasl=no
22152ol_link_spasswd=no
22153if test $ol_with_cyrus_sasl != no ; then
22154	for ac_header in sasl/sasl.h sasl.h
22155do :
22156  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22157ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22158if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22159  cat >>confdefs.h <<_ACEOF
22160#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22161_ACEOF
22162
22163fi
22164
22165done
22166
22167
22168	if test $ac_cv_header_sasl_sasl_h = yes ||
22169	   test $ac_cv_header_sasl_h = yes; then
22170		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sasl_client_init in -lsasl2" >&5
22171$as_echo_n "checking for sasl_client_init in -lsasl2... " >&6; }
22172if ${ac_cv_lib_sasl2_sasl_client_init+:} false; then :
22173  $as_echo_n "(cached) " >&6
22174else
22175  ac_check_lib_save_LIBS=$LIBS
22176LIBS="-lsasl2  $LIBS"
22177cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22178/* end confdefs.h.  */
22179
22180/* Override any GCC internal prototype to avoid an error.
22181   Use char because int might match the return type of a GCC
22182   builtin and then its argument prototype would still apply.  */
22183#ifdef __cplusplus
22184extern "C"
22185#endif
22186char sasl_client_init ();
22187int
22188main ()
22189{
22190return sasl_client_init ();
22191  ;
22192  return 0;
22193}
22194_ACEOF
22195if ac_fn_c_try_link "$LINENO"; then :
22196  ac_cv_lib_sasl2_sasl_client_init=yes
22197else
22198  ac_cv_lib_sasl2_sasl_client_init=no
22199fi
22200rm -f core conftest.err conftest.$ac_objext \
22201    conftest$ac_exeext conftest.$ac_ext
22202LIBS=$ac_check_lib_save_LIBS
22203fi
22204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
22205$as_echo "$ac_cv_lib_sasl2_sasl_client_init" >&6; }
22206if test "x$ac_cv_lib_sasl2_sasl_client_init" = xyes; then :
22207  ol_link_sasl="-lsasl2"
22208else
22209  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sasl_client_init in -lsasl" >&5
22210$as_echo_n "checking for sasl_client_init in -lsasl... " >&6; }
22211if ${ac_cv_lib_sasl_sasl_client_init+:} false; then :
22212  $as_echo_n "(cached) " >&6
22213else
22214  ac_check_lib_save_LIBS=$LIBS
22215LIBS="-lsasl  $LIBS"
22216cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22217/* end confdefs.h.  */
22218
22219/* Override any GCC internal prototype to avoid an error.
22220   Use char because int might match the return type of a GCC
22221   builtin and then its argument prototype would still apply.  */
22222#ifdef __cplusplus
22223extern "C"
22224#endif
22225char sasl_client_init ();
22226int
22227main ()
22228{
22229return sasl_client_init ();
22230  ;
22231  return 0;
22232}
22233_ACEOF
22234if ac_fn_c_try_link "$LINENO"; then :
22235  ac_cv_lib_sasl_sasl_client_init=yes
22236else
22237  ac_cv_lib_sasl_sasl_client_init=no
22238fi
22239rm -f core conftest.err conftest.$ac_objext \
22240    conftest$ac_exeext conftest.$ac_ext
22241LIBS=$ac_check_lib_save_LIBS
22242fi
22243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sasl_sasl_client_init" >&5
22244$as_echo "$ac_cv_lib_sasl_sasl_client_init" >&6; }
22245if test "x$ac_cv_lib_sasl_sasl_client_init" = xyes; then :
22246  ol_link_sasl="-lsasl"
22247fi
22248
22249fi
22250
22251	fi
22252
22253	if test $ol_link_sasl = no ; then
22254		if test $ol_with_cyrus_sasl != auto ; then
22255			as_fn_error $? "Could not locate Cyrus SASL" "$LINENO" 5
22256		else
22257			{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not locate Cyrus SASL" >&5
22258$as_echo "$as_me: WARNING: Could not locate Cyrus SASL" >&2;}
22259			{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SASL authentication not supported!" >&5
22260$as_echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
22261			if test $ol_link_tls = no ; then
22262				{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Strong authentication not supported!" >&5
22263$as_echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
22264			fi
22265		fi
22266	else
22267		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Cyrus SASL library version" >&5
22268$as_echo_n "checking Cyrus SASL library version... " >&6; }
22269if ${ol_cv_sasl_compat+:} false; then :
22270  $as_echo_n "(cached) " >&6
22271else
22272
22273	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22274/* end confdefs.h.  */
22275
22276#ifdef HAVE_SASL_SASL_H
22277#include <sasl/sasl.h>
22278#else
22279#include <sasl.h>
22280#endif
22281
22282/* Require 2.1.15+ */
22283#if SASL_VERSION_MAJOR == 2  && SASL_VERSION_MINOR > 1
22284	char *__sasl_compat = "2.2+ or better okay (we guess)";
22285#elif SASL_VERSION_MAJOR == 2  && SASL_VERSION_MINOR == 1 \
22286	&& SASL_VERSION_STEP >=15
22287	char *__sasl_compat = "2.1.15+ or better okay";
22288#endif
22289
22290_ACEOF
22291if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22292  $EGREP "__sasl_compat" >/dev/null 2>&1; then :
22293  ol_cv_sasl_compat=yes
22294else
22295  ol_cv_sasl_compat=no
22296fi
22297rm -f conftest*
22298
22299fi
22300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_sasl_compat" >&5
22301$as_echo "$ol_cv_sasl_compat" >&6; }
22302
22303		if test $ol_cv_sasl_compat = no ; then
22304			ol_link_sasl=no
22305			as_fn_error $? "Cyrus SASL library located but is incompatible" "$LINENO" 5
22306		fi
22307
22308
22309$as_echo "#define HAVE_CYRUS_SASL 1" >>confdefs.h
22310
22311		SASL_LIBS="$ol_link_sasl"
22312		if test $ol_enable_spasswd != no ; then
22313			ol_link_spasswd=yes
22314		fi
22315
22316		ac_save_LIBS="$LIBS"
22317		LIBS="$LIBS $ol_link_sasl"
22318		ac_fn_c_check_func "$LINENO" "sasl_version" "ac_cv_func_sasl_version"
22319if test "x$ac_cv_func_sasl_version" = xyes; then :
22320
22321$as_echo "#define HAVE_SASL_VERSION 1" >>confdefs.h
22322
22323fi
22324
22325		LIBS="$ac_save_LIBS"
22326
22327		WITH_SASL=yes
22328	fi
22329
22330else
22331	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SASL authentication not supported!" >&5
22332$as_echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
22333	if test $ol_link_tls = no ; then
22334		{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Strong authentication not supported!" >&5
22335$as_echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
22336	fi
22337fi
22338
22339WITH_SYSTEMD=no
22340systemdsystemunitdir=
22341ol_link_systemd=no
22342if test $ol_enable_slapd == no && test $ol_enable_balancer != yes ; then
22343	if test $ol_with_systemd != no ; then
22344		{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: servers disabled, ignoring --with-systemd=$ol_with_systemd argument" >&5
22345$as_echo "$as_me: WARNING: servers disabled, ignoring --with-systemd=$ol_with_systemd argument" >&2;}
22346		ol_with_systemd=no
22347	fi
22348fi
22349if test $ol_with_systemd != no ; then
22350	for ac_header in systemd/sd-daemon.h
22351do :
22352  ac_fn_c_check_header_mongrel "$LINENO" "systemd/sd-daemon.h" "ac_cv_header_systemd_sd_daemon_h" "$ac_includes_default"
22353if test "x$ac_cv_header_systemd_sd_daemon_h" = xyes; then :
22354  cat >>confdefs.h <<_ACEOF
22355#define HAVE_SYSTEMD_SD_DAEMON_H 1
22356_ACEOF
22357
22358fi
22359
22360done
22361
22362
22363	if test $ac_cv_header_systemd_sd_daemon_h = yes; then
22364		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sd_notify in -lsystemd" >&5
22365$as_echo_n "checking for sd_notify in -lsystemd... " >&6; }
22366if ${ac_cv_lib_systemd_sd_notify+:} false; then :
22367  $as_echo_n "(cached) " >&6
22368else
22369  ac_check_lib_save_LIBS=$LIBS
22370LIBS="-lsystemd  $LIBS"
22371cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22372/* end confdefs.h.  */
22373
22374/* Override any GCC internal prototype to avoid an error.
22375   Use char because int might match the return type of a GCC
22376   builtin and then its argument prototype would still apply.  */
22377#ifdef __cplusplus
22378extern "C"
22379#endif
22380char sd_notify ();
22381int
22382main ()
22383{
22384return sd_notify ();
22385  ;
22386  return 0;
22387}
22388_ACEOF
22389if ac_fn_c_try_link "$LINENO"; then :
22390  ac_cv_lib_systemd_sd_notify=yes
22391else
22392  ac_cv_lib_systemd_sd_notify=no
22393fi
22394rm -f core conftest.err conftest.$ac_objext \
22395    conftest$ac_exeext conftest.$ac_ext
22396LIBS=$ac_check_lib_save_LIBS
22397fi
22398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_systemd_sd_notify" >&5
22399$as_echo "$ac_cv_lib_systemd_sd_notify" >&6; }
22400if test "x$ac_cv_lib_systemd_sd_notify" = xyes; then :
22401  ol_link_systemd="-lsystemd"
22402fi
22403
22404	fi
22405
22406	if test $ol_link_systemd = no ; then
22407		if test $ol_with_systemd != auto ; then
22408			as_fn_error $? "Could not locate systemd" "$LINENO" 5
22409		else
22410			{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not locate systemd" >&5
22411$as_echo "$as_me: WARNING: Could not locate systemd" >&2;}
22412			{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: systemd service notification not supported!" >&5
22413$as_echo "$as_me: WARNING: systemd service notification not supported!" >&2;}
22414		fi
22415	else
22416
22417$as_echo "#define HAVE_SYSTEMD 1" >>confdefs.h
22418
22419		SYSTEMD_LIBS="$ol_link_systemd"
22420		WITH_SYSTEMD=yes
22421
22422
22423if test -n "$systemdsystemunitdir"; then
22424    pkg_cv_systemdsystemunitdir="$systemdsystemunitdir"
22425 elif test -n "$PKG_CONFIG"; then
22426    if test -n "$PKG_CONFIG" && \
22427    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd\""; } >&5
22428  ($PKG_CONFIG --exists --print-errors "systemd") 2>&5
22429  ac_status=$?
22430  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22431  test $ac_status = 0; }; then
22432  pkg_cv_systemdsystemunitdir=`$PKG_CONFIG --variable="systemdsystemunitdir" "systemd" 2>/dev/null`
22433		      test "x$?" != "x0" && pkg_failed=yes
22434else
22435  pkg_failed=yes
22436fi
22437 else
22438    pkg_failed=untried
22439fi
22440systemdsystemunitdir=$pkg_cv_systemdsystemunitdir
22441
22442if test "x$systemdsystemunitdir" = x""; then :
22443
22444fi
22445		if test -z "$systemdsystemunitdir"; then
22446			if test -d /usr/lib/systemd/system; then
22447				systemdsystemunitdir=/usr/lib/systemd/system
22448			else
22449				systemdsystemunitdir=/lib/systemd/system
22450			fi
22451		fi
22452	fi
22453fi
22454
22455
22456if test $cross_compiling != yes && test "$ac_cv_mingw32" != yes ; then
22457	dev=no
22458	if test -r /dev/urandom ; then
22459		dev="/dev/urandom";
22460	elif test -r /idev/urandom ; then
22461		dev="/idev/urandom";
22462	elif test -r /dev/srandom ; then
22463		dev="/dev/srandom";
22464	elif test -r /dev/random ; then
22465		dev="/dev/random";
22466	elif test -r /idev/random ; then
22467		dev="/idev/random";
22468	fi
22469
22470	if test $dev != no ; then
22471
22472cat >>confdefs.h <<_ACEOF
22473#define URANDOM_DEVICE "$dev"
22474_ACEOF
22475
22476	fi
22477fi
22478
22479ol_link_fetch=no
22480if test $ol_with_fetch != no ; then
22481	ol_LIBS=$LIBS
22482LIBS="-lfetch $LIBS"
22483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking fetch(3) library" >&5
22484$as_echo_n "checking fetch(3) library... " >&6; }
22485if ${ol_cv_lib_fetch+:} false; then :
22486  $as_echo_n "(cached) " >&6
22487else
22488
22489	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22490/* end confdefs.h.  */
22491
22492#ifdef HAVE_SYS_PARAM_H
22493#include <sys/param.h>
22494#endif
22495#include <stdio.h>
22496#include <fetch.h>
22497int
22498main ()
22499{
22500struct url *u = fetchParseURL("file:///");
22501  ;
22502  return 0;
22503}
22504_ACEOF
22505if ac_fn_c_try_link "$LINENO"; then :
22506  ol_cv_lib_fetch=yes
22507else
22508  ol_cv_lib_fetch=no
22509fi
22510rm -f core conftest.err conftest.$ac_objext \
22511    conftest$ac_exeext conftest.$ac_ext
22512fi
22513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_lib_fetch" >&5
22514$as_echo "$ol_cv_lib_fetch" >&6; }
22515LIBS=$ol_LIBS
22516if test $ol_cv_lib_fetch != no ; then
22517	ol_link_fetch="-lfetch"
22518
22519$as_echo "#define HAVE_FETCH 1" >>confdefs.h
22520
22521fi
22522
22523
22524	if test $ol_cv_lib_fetch != no ; then
22525		LIBS="$LIBS $ol_link_fetch"
22526		ol_link_fetch=freebsd
22527
22528	elif test $ol_with_fetch != auto ; then
22529		as_fn_error $? "no suitable API for --with-fetch=$ol_with_fetch" "$LINENO" 5
22530	fi
22531fi
22532
22533if test $ol_enable_crypt != no ; then
22534	save_LIBS="$LIBS"
22535	LIBS="$TLS_LIBS $LIBS"
22536
22537	ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
22538if test "x$ac_cv_func_crypt" = xyes; then :
22539  have_crypt=yes
22540else
22541
22542		LIBS="$save_LIBS"
22543		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
22544$as_echo_n "checking for crypt in -lcrypt... " >&6; }
22545if ${ac_cv_lib_crypt_crypt+:} false; then :
22546  $as_echo_n "(cached) " >&6
22547else
22548  ac_check_lib_save_LIBS=$LIBS
22549LIBS="-lcrypt  $LIBS"
22550cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22551/* end confdefs.h.  */
22552
22553/* Override any GCC internal prototype to avoid an error.
22554   Use char because int might match the return type of a GCC
22555   builtin and then its argument prototype would still apply.  */
22556#ifdef __cplusplus
22557extern "C"
22558#endif
22559char crypt ();
22560int
22561main ()
22562{
22563return crypt ();
22564  ;
22565  return 0;
22566}
22567_ACEOF
22568if ac_fn_c_try_link "$LINENO"; then :
22569  ac_cv_lib_crypt_crypt=yes
22570else
22571  ac_cv_lib_crypt_crypt=no
22572fi
22573rm -f core conftest.err conftest.$ac_objext \
22574    conftest$ac_exeext conftest.$ac_ext
22575LIBS=$ac_check_lib_save_LIBS
22576fi
22577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
22578$as_echo "$ac_cv_lib_crypt_crypt" >&6; }
22579if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
22580  LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
22581			have_crypt=yes
22582else
22583  have_crypt=no
22584fi
22585
22586fi
22587
22588
22589	LIBS="$TLS_LIBS $LIBS"
22590	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt_r in -lcrypt" >&5
22591$as_echo_n "checking for crypt_r in -lcrypt... " >&6; }
22592if ${ac_cv_lib_crypt_crypt_r+:} false; then :
22593  $as_echo_n "(cached) " >&6
22594else
22595  ac_check_lib_save_LIBS=$LIBS
22596LIBS="-lcrypt  $LIBS"
22597cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22598/* end confdefs.h.  */
22599
22600/* Override any GCC internal prototype to avoid an error.
22601   Use char because int might match the return type of a GCC
22602   builtin and then its argument prototype would still apply.  */
22603#ifdef __cplusplus
22604extern "C"
22605#endif
22606char crypt_r ();
22607int
22608main ()
22609{
22610return crypt_r ();
22611  ;
22612  return 0;
22613}
22614_ACEOF
22615if ac_fn_c_try_link "$LINENO"; then :
22616  ac_cv_lib_crypt_crypt_r=yes
22617else
22618  ac_cv_lib_crypt_crypt_r=no
22619fi
22620rm -f core conftest.err conftest.$ac_objext \
22621    conftest$ac_exeext conftest.$ac_ext
22622LIBS=$ac_check_lib_save_LIBS
22623fi
22624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt_r" >&5
22625$as_echo "$ac_cv_lib_crypt_crypt_r" >&6; }
22626if test "x$ac_cv_lib_crypt_crypt_r" = xyes; then :
22627  have_crypt_r=yes
22628else
22629  have_crypt_r=no
22630fi
22631
22632
22633	LIBS="$save_LIBS"
22634
22635	if test $have_crypt = yes ; then
22636
22637$as_echo "#define HAVE_CRYPT 1" >>confdefs.h
22638
22639		if test $have_crypt_r = yes ; then
22640
22641$as_echo "#define HAVE_CRYPT_R 1" >>confdefs.h
22642
22643		fi
22644	else
22645		{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find crypt" >&5
22646$as_echo "$as_me: WARNING: could not find crypt" >&2;}
22647		if test $ol_enable_crypt = yes ; then
22648			as_fn_error $? "could not find crypt, select appropriate options or disable" "$LINENO" 5
22649		fi
22650
22651		{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling crypt support" >&5
22652$as_echo "$as_me: WARNING: disabling crypt support" >&2;}
22653		ol_enable_crypt=no
22654	fi
22655fi
22656
22657if test $ol_enable_slp != no ; then
22658	for ac_header in slp.h
22659do :
22660  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22661ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22662if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22663  cat >>confdefs.h <<_ACEOF
22664#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22665_ACEOF
22666
22667fi
22668
22669done
22670
22671
22672	if test $ac_cv_header_slp_h = yes ; then
22673		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SLPOpen in -lslp" >&5
22674$as_echo_n "checking for SLPOpen in -lslp... " >&6; }
22675if ${ac_cv_lib_slp_SLPOpen+:} false; then :
22676  $as_echo_n "(cached) " >&6
22677else
22678  ac_check_lib_save_LIBS=$LIBS
22679LIBS="-lslp  $LIBS"
22680cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22681/* end confdefs.h.  */
22682
22683/* Override any GCC internal prototype to avoid an error.
22684   Use char because int might match the return type of a GCC
22685   builtin and then its argument prototype would still apply.  */
22686#ifdef __cplusplus
22687extern "C"
22688#endif
22689char SLPOpen ();
22690int
22691main ()
22692{
22693return SLPOpen ();
22694  ;
22695  return 0;
22696}
22697_ACEOF
22698if ac_fn_c_try_link "$LINENO"; then :
22699  ac_cv_lib_slp_SLPOpen=yes
22700else
22701  ac_cv_lib_slp_SLPOpen=no
22702fi
22703rm -f core conftest.err conftest.$ac_objext \
22704    conftest$ac_exeext conftest.$ac_ext
22705LIBS=$ac_check_lib_save_LIBS
22706fi
22707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_slp_SLPOpen" >&5
22708$as_echo "$ac_cv_lib_slp_SLPOpen" >&6; }
22709if test "x$ac_cv_lib_slp_SLPOpen" = xyes; then :
22710  have_slp=yes
22711else
22712  have_slp=no
22713fi
22714
22715		if test $have_slp = yes ; then
22716
22717$as_echo "#define HAVE_SLP 1" >>confdefs.h
22718
22719			SLAPD_SLP_LIBS=-lslp
22720		fi
22721
22722	elif test $ol_enable_slp = yes ; then
22723		as_fn_error $? "SLP not found" "$LINENO" 5
22724	fi
22725fi
22726
22727if test $ol_enable_balancer != no ; then
22728	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler support for atomics" >&5
22729$as_echo_n "checking compiler support for atomics... " >&6; }
22730	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22731/* end confdefs.h.  */
22732
22733int
22734main ()
22735{
22736__atomic_thread_fence( __ATOMIC_ACQUIRE );
22737  ;
22738  return 0;
22739}
22740_ACEOF
22741if ac_fn_c_try_compile "$LINENO"; then :
22742  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22743$as_echo "yes" >&6; }
22744else
22745  as_fn_error $? "\"Balancer requires support for atomic operations\"" "$LINENO" 5
22746fi
22747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22748
22749	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for evdns_base_new in -levent_extra" >&5
22750$as_echo_n "checking for evdns_base_new in -levent_extra... " >&6; }
22751if ${ac_cv_lib_event_extra_evdns_base_new+:} false; then :
22752  $as_echo_n "(cached) " >&6
22753else
22754  ac_check_lib_save_LIBS=$LIBS
22755LIBS="-levent_extra  $LIBS"
22756cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22757/* end confdefs.h.  */
22758
22759/* Override any GCC internal prototype to avoid an error.
22760   Use char because int might match the return type of a GCC
22761   builtin and then its argument prototype would still apply.  */
22762#ifdef __cplusplus
22763extern "C"
22764#endif
22765char evdns_base_new ();
22766int
22767main ()
22768{
22769return evdns_base_new ();
22770  ;
22771  return 0;
22772}
22773_ACEOF
22774if ac_fn_c_try_link "$LINENO"; then :
22775  ac_cv_lib_event_extra_evdns_base_new=yes
22776else
22777  ac_cv_lib_event_extra_evdns_base_new=no
22778fi
22779rm -f core conftest.err conftest.$ac_objext \
22780    conftest$ac_exeext conftest.$ac_ext
22781LIBS=$ac_check_lib_save_LIBS
22782fi
22783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_event_extra_evdns_base_new" >&5
22784$as_echo "$ac_cv_lib_event_extra_evdns_base_new" >&6; }
22785if test "x$ac_cv_lib_event_extra_evdns_base_new" = xyes; then :
22786  have_libevent=yes
22787		LEVENT_LIBS="$LEVENT_LIBS -levent_core -levent_extra"
22788else
22789  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for evdns_base_new in -levent" >&5
22790$as_echo_n "checking for evdns_base_new in -levent... " >&6; }
22791if ${ac_cv_lib_event_evdns_base_new+:} false; then :
22792  $as_echo_n "(cached) " >&6
22793else
22794  ac_check_lib_save_LIBS=$LIBS
22795LIBS="-levent  $LIBS"
22796cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22797/* end confdefs.h.  */
22798
22799/* Override any GCC internal prototype to avoid an error.
22800   Use char because int might match the return type of a GCC
22801   builtin and then its argument prototype would still apply.  */
22802#ifdef __cplusplus
22803extern "C"
22804#endif
22805char evdns_base_new ();
22806int
22807main ()
22808{
22809return evdns_base_new ();
22810  ;
22811  return 0;
22812}
22813_ACEOF
22814if ac_fn_c_try_link "$LINENO"; then :
22815  ac_cv_lib_event_evdns_base_new=yes
22816else
22817  ac_cv_lib_event_evdns_base_new=no
22818fi
22819rm -f core conftest.err conftest.$ac_objext \
22820    conftest$ac_exeext conftest.$ac_ext
22821LIBS=$ac_check_lib_save_LIBS
22822fi
22823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_event_evdns_base_new" >&5
22824$as_echo "$ac_cv_lib_event_evdns_base_new" >&6; }
22825if test "x$ac_cv_lib_event_evdns_base_new" = xyes; then :
22826  have_libevent=yes
22827			LEVENT_LIBS="$LEVENT_LIBS -levent"
22828else
22829  have_libevent=no
22830fi
22831
22832fi
22833
22834	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libevent_global_shutdown in -levent" >&5
22835$as_echo_n "checking for libevent_global_shutdown in -levent... " >&6; }
22836if ${ac_cv_lib_event_libevent_global_shutdown+:} false; then :
22837  $as_echo_n "(cached) " >&6
22838else
22839  ac_check_lib_save_LIBS=$LIBS
22840LIBS="-levent  $LIBS"
22841cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22842/* end confdefs.h.  */
22843
22844/* Override any GCC internal prototype to avoid an error.
22845   Use char because int might match the return type of a GCC
22846   builtin and then its argument prototype would still apply.  */
22847#ifdef __cplusplus
22848extern "C"
22849#endif
22850char libevent_global_shutdown ();
22851int
22852main ()
22853{
22854return libevent_global_shutdown ();
22855  ;
22856  return 0;
22857}
22858_ACEOF
22859if ac_fn_c_try_link "$LINENO"; then :
22860  ac_cv_lib_event_libevent_global_shutdown=yes
22861else
22862  ac_cv_lib_event_libevent_global_shutdown=no
22863fi
22864rm -f core conftest.err conftest.$ac_objext \
22865    conftest$ac_exeext conftest.$ac_ext
22866LIBS=$ac_check_lib_save_LIBS
22867fi
22868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_event_libevent_global_shutdown" >&5
22869$as_echo "$ac_cv_lib_event_libevent_global_shutdown" >&6; }
22870if test "x$ac_cv_lib_event_libevent_global_shutdown" = xyes; then :
22871  cat >>confdefs.h <<_ACEOF
22872#define HAVE_LIBEVENT 1
22873_ACEOF
22874
22875  LIBS="-levent $LIBS"
22876
22877else
22878  have_libevent=no
22879fi
22880
22881
22882	if test $have_libevent = yes ; then
22883
22884$as_echo "#define HAVE_LIBEVENT 1" >>confdefs.h
22885
22886	else
22887		as_fn_error $? "You need libevent 2.1 or later with DNS support to build the load balancer" "$LINENO" 5
22888	fi
22889
22890	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
22891$as_echo_n "checking for pow in -lm... " >&6; }
22892if ${ac_cv_lib_m_pow+:} false; then :
22893  $as_echo_n "(cached) " >&6
22894else
22895  ac_check_lib_save_LIBS=$LIBS
22896LIBS="-lm  $LIBS"
22897cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22898/* end confdefs.h.  */
22899
22900/* Override any GCC internal prototype to avoid an error.
22901   Use char because int might match the return type of a GCC
22902   builtin and then its argument prototype would still apply.  */
22903#ifdef __cplusplus
22904extern "C"
22905#endif
22906char pow ();
22907int
22908main ()
22909{
22910return pow ();
22911  ;
22912  return 0;
22913}
22914_ACEOF
22915if ac_fn_c_try_link "$LINENO"; then :
22916  ac_cv_lib_m_pow=yes
22917else
22918  ac_cv_lib_m_pow=no
22919fi
22920rm -f core conftest.err conftest.$ac_objext \
22921    conftest$ac_exeext conftest.$ac_ext
22922LIBS=$ac_check_lib_save_LIBS
22923fi
22924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
22925$as_echo "$ac_cv_lib_m_pow" >&6; }
22926if test "x$ac_cv_lib_m_pow" = xyes; then :
22927  BALANCER_LIBS="$BALANCER_LIBS -lm"
22928else
22929  as_fn_error $? "could not locate pow -lm" "$LINENO" 5
22930fi
22931
22932fi
22933
22934
22935ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
22936if test "x$ac_cv_type_mode_t" = xyes; then :
22937
22938else
22939
22940cat >>confdefs.h <<_ACEOF
22941#define mode_t int
22942_ACEOF
22943
22944fi
22945
22946ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
22947if test "x$ac_cv_type_off_t" = xyes; then :
22948
22949else
22950
22951cat >>confdefs.h <<_ACEOF
22952#define off_t long
22953_ACEOF
22954
22955fi
22956
22957ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
22958if test "x$ac_cv_type_pid_t" = xyes; then :
22959
22960else
22961
22962cat >>confdefs.h <<_ACEOF
22963#define pid_t int
22964_ACEOF
22965
22966fi
22967
22968ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
22969if test "x$ac_cv_type_ssize_t" = xyes; then :
22970
22971else
22972
22973cat >>confdefs.h <<_ACEOF
22974#define ssize_t signed int
22975_ACEOF
22976
22977fi
22978
22979ac_fn_c_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
22980if test "x$ac_cv_type_caddr_t" = xyes; then :
22981
22982else
22983
22984cat >>confdefs.h <<_ACEOF
22985#define caddr_t char *
22986_ACEOF
22987
22988fi
22989
22990ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
22991if test "x$ac_cv_type_size_t" = xyes; then :
22992
22993else
22994
22995cat >>confdefs.h <<_ACEOF
22996#define size_t unsigned
22997_ACEOF
22998
22999fi
23000
23001
23002ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
23003if test "x$ac_cv_type_long_long" = xyes; then :
23004
23005cat >>confdefs.h <<_ACEOF
23006#define HAVE_LONG_LONG 1
23007_ACEOF
23008
23009
23010fi
23011
23012ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
23013if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
23014
23015cat >>confdefs.h <<_ACEOF
23016#define HAVE_PTRDIFF_T 1
23017_ACEOF
23018
23019
23020fi
23021
23022
23023
23024ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "$ac_includes_default
23025#ifdef HAVE_SYS_SOCKET_H
23026#include <sys/socket.h>
23027#endif
23028#ifdef HAVE_WINSOCK2
23029#include <ws2tcpip.h>
23030#endif
23031"
23032if test "x$ac_cv_type_socklen_t" = xyes; then :
23033
23034fi
23035
23036
23037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the type of arg 3 to accept()" >&5
23038$as_echo_n "checking the type of arg 3 to accept()... " >&6; }
23039if ${ol_cv_type_ber_socklen_t+:} false; then :
23040  $as_echo_n "(cached) " >&6
23041else
23042
23043	set socklen_t int unsigned "unsigned long" long size_t
23044	test "$ac_cv_type_socklen_t" = yes || shift
23045	ol_cv_type_ber_socklen_t=$1 guessing="guessing "
23046	for lentype in "$@" ; do for addrtype in "struct sockaddr" void ; do
23047		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23048/* end confdefs.h.  */
23049$ac_includes_default
23050#ifdef HAVE_SYS_SOCKET_H
23051#include <sys/socket.h>
23052#endif
23053extern int accept(int s, $addrtype *ap, $lentype *lp);
23054
23055int
23056main ()
23057{
23058
23059accept(0, (struct sockaddr *) 0, ($lentype *) 0);
23060
23061  ;
23062  return 0;
23063}
23064_ACEOF
23065if ac_fn_c_try_compile "$LINENO"; then :
23066  ol_cv_type_ber_socklen_t=$lentype guessing= ; break 2
23067fi
23068rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23069	done ; done
23070fi
23071
23072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $guessing$ol_cv_type_ber_socklen_t *" >&5
23073$as_echo "$guessing$ol_cv_type_ber_socklen_t *" >&6; }
23074
23075cat >>confdefs.h <<_ACEOF
23076#define ber_socklen_t $ol_cv_type_ber_socklen_t
23077_ACEOF
23078
23079
23080if test "$ac_cv_type_socklen_t" != yes; then
23081
23082cat >>confdefs.h <<_ACEOF
23083#define socklen_t $ol_cv_type_ber_socklen_t
23084_ACEOF
23085
23086fi
23087
23088
23089ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "$ac_includes_default
23090#include <signal.h>
23091
23092"
23093if test "x$ac_cv_type_sig_atomic_t" = xyes; then :
23094
23095else
23096
23097cat >>confdefs.h <<_ACEOF
23098#define sig_atomic_t int
23099_ACEOF
23100
23101fi
23102
23103
23104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
23105$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
23106if ${ac_cv_type_uid_t+:} false; then :
23107  $as_echo_n "(cached) " >&6
23108else
23109  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23110/* end confdefs.h.  */
23111#include <sys/types.h>
23112
23113_ACEOF
23114if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23115  $EGREP "uid_t" >/dev/null 2>&1; then :
23116  ac_cv_type_uid_t=yes
23117else
23118  ac_cv_type_uid_t=no
23119fi
23120rm -f conftest*
23121
23122fi
23123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
23124$as_echo "$ac_cv_type_uid_t" >&6; }
23125if test $ac_cv_type_uid_t = no; then
23126
23127$as_echo "#define uid_t int" >>confdefs.h
23128
23129
23130$as_echo "#define gid_t int" >>confdefs.h
23131
23132fi
23133
23134
23135
23136
23137
23138  for ac_header in $ac_header_list
23139do :
23140  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23141ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
23142"
23143if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23144  cat >>confdefs.h <<_ACEOF
23145#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23146_ACEOF
23147
23148fi
23149
23150done
23151
23152
23153
23154
23155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
23156$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
23157if ${ac_cv_struct_tm+:} false; then :
23158  $as_echo_n "(cached) " >&6
23159else
23160  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23161/* end confdefs.h.  */
23162#include <sys/types.h>
23163#include <time.h>
23164
23165int
23166main ()
23167{
23168struct tm tm;
23169				     int *p = &tm.tm_sec;
23170				     return !p;
23171  ;
23172  return 0;
23173}
23174_ACEOF
23175if ac_fn_c_try_compile "$LINENO"; then :
23176  ac_cv_struct_tm=time.h
23177else
23178  ac_cv_struct_tm=sys/time.h
23179fi
23180rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23181fi
23182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
23183$as_echo "$ac_cv_struct_tm" >&6; }
23184if test $ac_cv_struct_tm = sys/time.h; then
23185
23186$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
23187
23188fi
23189
23190ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
23191if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
23192
23193cat >>confdefs.h <<_ACEOF
23194#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
23195_ACEOF
23196
23197
23198fi
23199
23200ac_fn_c_check_member "$LINENO" "struct passwd" "pw_gecos" "ac_cv_member_struct_passwd_pw_gecos" "$ac_includes_default
23201#include <pwd.h>
23202"
23203if test "x$ac_cv_member_struct_passwd_pw_gecos" = xyes; then :
23204
23205cat >>confdefs.h <<_ACEOF
23206#define HAVE_STRUCT_PASSWD_PW_GECOS 1
23207_ACEOF
23208
23209
23210fi
23211
23212ac_fn_c_check_member "$LINENO" "struct passwd" "pw_passwd" "ac_cv_member_struct_passwd_pw_passwd" "$ac_includes_default
23213#include <pwd.h>
23214"
23215if test "x$ac_cv_member_struct_passwd_pw_passwd" = xyes; then :
23216
23217cat >>confdefs.h <<_ACEOF
23218#define HAVE_STRUCT_PASSWD_PW_PASSWD 1
23219_ACEOF
23220
23221
23222fi
23223
23224
23225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if toupper() requires islower()" >&5
23226$as_echo_n "checking if toupper() requires islower()... " >&6; }
23227if ${ol_cv_c_upper_lower+:} false; then :
23228  $as_echo_n "(cached) " >&6
23229else
23230
23231	if test "$cross_compiling" = yes; then :
23232  ol_cv_c_upper_lower=safe
23233else
23234  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23235/* end confdefs.h.  */
23236
23237#include <ctype.h>
23238main()
23239{
23240	if ('C' == toupper('C'))
23241		exit(0);
23242	else
23243		exit(1);
23244}
23245_ACEOF
23246if ac_fn_c_try_run "$LINENO"; then :
23247  ol_cv_c_upper_lower=no
23248else
23249  ol_cv_c_upper_lower=yes
23250fi
23251rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23252  conftest.$ac_objext conftest.beam conftest.$ac_ext
23253fi
23254
23255fi
23256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_c_upper_lower" >&5
23257$as_echo "$ol_cv_c_upper_lower" >&6; }
23258if test $ol_cv_c_upper_lower != no ; then
23259
23260$as_echo "#define C_UPPER_LOWER 1" >>confdefs.h
23261
23262fi
23263
23264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
23265$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
23266if ${ac_cv_c_const+:} false; then :
23267  $as_echo_n "(cached) " >&6
23268else
23269  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23270/* end confdefs.h.  */
23271
23272int
23273main ()
23274{
23275
23276#ifndef __cplusplus
23277  /* Ultrix mips cc rejects this sort of thing.  */
23278  typedef int charset[2];
23279  const charset cs = { 0, 0 };
23280  /* SunOS 4.1.1 cc rejects this.  */
23281  char const *const *pcpcc;
23282  char **ppc;
23283  /* NEC SVR4.0.2 mips cc rejects this.  */
23284  struct point {int x, y;};
23285  static struct point const zero = {0,0};
23286  /* AIX XL C 1.02.0.0 rejects this.
23287     It does not let you subtract one const X* pointer from another in
23288     an arm of an if-expression whose if-part is not a constant
23289     expression */
23290  const char *g = "string";
23291  pcpcc = &g + (g ? g-g : 0);
23292  /* HPUX 7.0 cc rejects these. */
23293  ++pcpcc;
23294  ppc = (char**) pcpcc;
23295  pcpcc = (char const *const *) ppc;
23296  { /* SCO 3.2v4 cc rejects this sort of thing.  */
23297    char tx;
23298    char *t = &tx;
23299    char const *s = 0 ? (char *) 0 : (char const *) 0;
23300
23301    *t++ = 0;
23302    if (s) return 0;
23303  }
23304  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
23305    int x[] = {25, 17};
23306    const int *foo = &x[0];
23307    ++foo;
23308  }
23309  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
23310    typedef const int *iptr;
23311    iptr p = 0;
23312    ++p;
23313  }
23314  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
23315       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
23316    struct s { int j; const int *ap[3]; } bx;
23317    struct s *b = &bx; b->j = 5;
23318  }
23319  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
23320    const int foo = 10;
23321    if (!foo) return 0;
23322  }
23323  return !cs[0] && !zero.x;
23324#endif
23325
23326  ;
23327  return 0;
23328}
23329_ACEOF
23330if ac_fn_c_try_compile "$LINENO"; then :
23331  ac_cv_c_const=yes
23332else
23333  ac_cv_c_const=no
23334fi
23335rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23336fi
23337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
23338$as_echo "$ac_cv_c_const" >&6; }
23339if test $ac_cv_c_const = no; then
23340
23341$as_echo "#define const /**/" >>confdefs.h
23342
23343fi
23344
23345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler understands volatile" >&5
23346$as_echo_n "checking if compiler understands volatile... " >&6; }
23347if ${ol_cv_c_volatile+:} false; then :
23348  $as_echo_n "(cached) " >&6
23349else
23350  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23351/* end confdefs.h.  */
23352int x, y, z;
23353int
23354main ()
23355{
23356volatile int a; int * volatile b = x ? &y : &z;
23357      /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
23358      *b = 0;
23359  ;
23360  return 0;
23361}
23362_ACEOF
23363if ac_fn_c_try_compile "$LINENO"; then :
23364  ol_cv_c_volatile=yes
23365else
23366  ol_cv_c_volatile=no
23367fi
23368rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23369fi
23370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_c_volatile" >&5
23371$as_echo "$ol_cv_c_volatile" >&6; }
23372  if test $ol_cv_c_volatile = yes; then
23373    :
23374  else
23375
23376$as_echo "#define volatile /**/" >>confdefs.h
23377
23378  fi
23379
23380
23381if test $cross_compiling = yes ; then
23382	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Crossing compiling... all bets are off!" >&5
23383$as_echo "$as_me: WARNING: Crossing compiling... all bets are off!" >&2;}
23384
23385$as_echo "#define CROSS_COMPILING 1" >>confdefs.h
23386
23387else
23388	 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
23389$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
23390if ${ac_cv_c_bigendian+:} false; then :
23391  $as_echo_n "(cached) " >&6
23392else
23393  ac_cv_c_bigendian=unknown
23394    # See if we're dealing with a universal compiler.
23395    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23396/* end confdefs.h.  */
23397#ifndef __APPLE_CC__
23398	       not a universal capable compiler
23399	     #endif
23400	     typedef int dummy;
23401
23402_ACEOF
23403if ac_fn_c_try_compile "$LINENO"; then :
23404
23405	# Check for potential -arch flags.  It is not universal unless
23406	# there are at least two -arch flags with different values.
23407	ac_arch=
23408	ac_prev=
23409	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
23410	 if test -n "$ac_prev"; then
23411	   case $ac_word in
23412	     i?86 | x86_64 | ppc | ppc64)
23413	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
23414		 ac_arch=$ac_word
23415	       else
23416		 ac_cv_c_bigendian=universal
23417		 break
23418	       fi
23419	       ;;
23420	   esac
23421	   ac_prev=
23422	 elif test "x$ac_word" = "x-arch"; then
23423	   ac_prev=arch
23424	 fi
23425       done
23426fi
23427rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23428    if test $ac_cv_c_bigendian = unknown; then
23429      # See if sys/param.h defines the BYTE_ORDER macro.
23430      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23431/* end confdefs.h.  */
23432#include <sys/types.h>
23433	     #include <sys/param.h>
23434
23435int
23436main ()
23437{
23438#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
23439		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
23440		     && LITTLE_ENDIAN)
23441	      bogus endian macros
23442	     #endif
23443
23444  ;
23445  return 0;
23446}
23447_ACEOF
23448if ac_fn_c_try_compile "$LINENO"; then :
23449  # It does; now see whether it defined to BIG_ENDIAN or not.
23450	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23451/* end confdefs.h.  */
23452#include <sys/types.h>
23453		#include <sys/param.h>
23454
23455int
23456main ()
23457{
23458#if BYTE_ORDER != BIG_ENDIAN
23459		 not big endian
23460		#endif
23461
23462  ;
23463  return 0;
23464}
23465_ACEOF
23466if ac_fn_c_try_compile "$LINENO"; then :
23467  ac_cv_c_bigendian=yes
23468else
23469  ac_cv_c_bigendian=no
23470fi
23471rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23472fi
23473rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23474    fi
23475    if test $ac_cv_c_bigendian = unknown; then
23476      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
23477      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23478/* end confdefs.h.  */
23479#include <limits.h>
23480
23481int
23482main ()
23483{
23484#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
23485	      bogus endian macros
23486	     #endif
23487
23488  ;
23489  return 0;
23490}
23491_ACEOF
23492if ac_fn_c_try_compile "$LINENO"; then :
23493  # It does; now see whether it defined to _BIG_ENDIAN or not.
23494	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23495/* end confdefs.h.  */
23496#include <limits.h>
23497
23498int
23499main ()
23500{
23501#ifndef _BIG_ENDIAN
23502		 not big endian
23503		#endif
23504
23505  ;
23506  return 0;
23507}
23508_ACEOF
23509if ac_fn_c_try_compile "$LINENO"; then :
23510  ac_cv_c_bigendian=yes
23511else
23512  ac_cv_c_bigendian=no
23513fi
23514rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23515fi
23516rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23517    fi
23518    if test $ac_cv_c_bigendian = unknown; then
23519      # Compile a test program.
23520      if test "$cross_compiling" = yes; then :
23521  # Try to guess by grepping values from an object file.
23522	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23523/* end confdefs.h.  */
23524short int ascii_mm[] =
23525		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
23526		short int ascii_ii[] =
23527		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
23528		int use_ascii (int i) {
23529		  return ascii_mm[i] + ascii_ii[i];
23530		}
23531		short int ebcdic_ii[] =
23532		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
23533		short int ebcdic_mm[] =
23534		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
23535		int use_ebcdic (int i) {
23536		  return ebcdic_mm[i] + ebcdic_ii[i];
23537		}
23538		extern int foo;
23539
23540int
23541main ()
23542{
23543return use_ascii (foo) == use_ebcdic (foo);
23544  ;
23545  return 0;
23546}
23547_ACEOF
23548if ac_fn_c_try_compile "$LINENO"; then :
23549  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
23550	      ac_cv_c_bigendian=yes
23551	    fi
23552	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
23553	      if test "$ac_cv_c_bigendian" = unknown; then
23554		ac_cv_c_bigendian=no
23555	      else
23556		# finding both strings is unlikely to happen, but who knows?
23557		ac_cv_c_bigendian=unknown
23558	      fi
23559	    fi
23560fi
23561rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23562else
23563  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23564/* end confdefs.h.  */
23565$ac_includes_default
23566int
23567main ()
23568{
23569
23570	     /* Are we little or big endian?  From Harbison&Steele.  */
23571	     union
23572	     {
23573	       long int l;
23574	       char c[sizeof (long int)];
23575	     } u;
23576	     u.l = 1;
23577	     return u.c[sizeof (long int) - 1] == 1;
23578
23579  ;
23580  return 0;
23581}
23582_ACEOF
23583if ac_fn_c_try_run "$LINENO"; then :
23584  ac_cv_c_bigendian=no
23585else
23586  ac_cv_c_bigendian=yes
23587fi
23588rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23589  conftest.$ac_objext conftest.beam conftest.$ac_ext
23590fi
23591
23592    fi
23593fi
23594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
23595$as_echo "$ac_cv_c_bigendian" >&6; }
23596 case $ac_cv_c_bigendian in #(
23597   yes)
23598     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
23599;; #(
23600   no)
23601      ;; #(
23602   universal)
23603
23604$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
23605
23606     ;; #(
23607   *)
23608     as_fn_error $? "unknown endianness
23609 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
23610 esac
23611
23612fi
23613
23614# The cast to long int works around a bug in the HP C Compiler
23615# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23616# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23617# This bug is HP SR number 8606223364.
23618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
23619$as_echo_n "checking size of short... " >&6; }
23620if ${ac_cv_sizeof_short+:} false; then :
23621  $as_echo_n "(cached) " >&6
23622else
23623  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
23624
23625else
23626  if test "$ac_cv_type_short" = yes; then
23627     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23628$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23629as_fn_error 77 "cannot compute sizeof (short)
23630See \`config.log' for more details" "$LINENO" 5; }
23631   else
23632     ac_cv_sizeof_short=0
23633   fi
23634fi
23635
23636fi
23637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
23638$as_echo "$ac_cv_sizeof_short" >&6; }
23639
23640
23641
23642cat >>confdefs.h <<_ACEOF
23643#define SIZEOF_SHORT $ac_cv_sizeof_short
23644_ACEOF
23645
23646
23647# The cast to long int works around a bug in the HP C Compiler
23648# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23649# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23650# This bug is HP SR number 8606223364.
23651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
23652$as_echo_n "checking size of int... " >&6; }
23653if ${ac_cv_sizeof_int+:} false; then :
23654  $as_echo_n "(cached) " >&6
23655else
23656  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
23657
23658else
23659  if test "$ac_cv_type_int" = yes; then
23660     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23661$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23662as_fn_error 77 "cannot compute sizeof (int)
23663See \`config.log' for more details" "$LINENO" 5; }
23664   else
23665     ac_cv_sizeof_int=0
23666   fi
23667fi
23668
23669fi
23670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
23671$as_echo "$ac_cv_sizeof_int" >&6; }
23672
23673
23674
23675cat >>confdefs.h <<_ACEOF
23676#define SIZEOF_INT $ac_cv_sizeof_int
23677_ACEOF
23678
23679
23680# The cast to long int works around a bug in the HP C Compiler
23681# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23682# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23683# This bug is HP SR number 8606223364.
23684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
23685$as_echo_n "checking size of long... " >&6; }
23686if ${ac_cv_sizeof_long+:} false; then :
23687  $as_echo_n "(cached) " >&6
23688else
23689  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
23690
23691else
23692  if test "$ac_cv_type_long" = yes; then
23693     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23694$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23695as_fn_error 77 "cannot compute sizeof (long)
23696See \`config.log' for more details" "$LINENO" 5; }
23697   else
23698     ac_cv_sizeof_long=0
23699   fi
23700fi
23701
23702fi
23703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
23704$as_echo "$ac_cv_sizeof_long" >&6; }
23705
23706
23707
23708cat >>confdefs.h <<_ACEOF
23709#define SIZEOF_LONG $ac_cv_sizeof_long
23710_ACEOF
23711
23712
23713# The cast to long int works around a bug in the HP C Compiler
23714# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23715# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23716# This bug is HP SR number 8606223364.
23717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
23718$as_echo_n "checking size of long long... " >&6; }
23719if ${ac_cv_sizeof_long_long+:} false; then :
23720  $as_echo_n "(cached) " >&6
23721else
23722  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
23723
23724else
23725  if test "$ac_cv_type_long_long" = yes; then
23726     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23727$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23728as_fn_error 77 "cannot compute sizeof (long long)
23729See \`config.log' for more details" "$LINENO" 5; }
23730   else
23731     ac_cv_sizeof_long_long=0
23732   fi
23733fi
23734
23735fi
23736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
23737$as_echo "$ac_cv_sizeof_long_long" >&6; }
23738
23739
23740
23741cat >>confdefs.h <<_ACEOF
23742#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
23743_ACEOF
23744
23745
23746# The cast to long int works around a bug in the HP C Compiler
23747# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23748# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23749# This bug is HP SR number 8606223364.
23750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5
23751$as_echo_n "checking size of wchar_t... " >&6; }
23752if ${ac_cv_sizeof_wchar_t+:} false; then :
23753  $as_echo_n "(cached) " >&6
23754else
23755  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t"        "$ac_includes_default"; then :
23756
23757else
23758  if test "$ac_cv_type_wchar_t" = yes; then
23759     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23760$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23761as_fn_error 77 "cannot compute sizeof (wchar_t)
23762See \`config.log' for more details" "$LINENO" 5; }
23763   else
23764     ac_cv_sizeof_wchar_t=0
23765   fi
23766fi
23767
23768fi
23769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5
23770$as_echo "$ac_cv_sizeof_wchar_t" >&6; }
23771
23772
23773
23774cat >>confdefs.h <<_ACEOF
23775#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
23776_ACEOF
23777
23778
23779
23780if test "$ac_cv_sizeof_int" -lt 4 ; then
23781	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&5
23782$as_echo "$as_me: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&2;}
23783
23784
23785$as_echo "#define LBER_INT_T long" >>confdefs.h
23786
23787else
23788
23789$as_echo "#define LBER_INT_T int" >>confdefs.h
23790
23791fi
23792
23793
23794$as_echo "#define LBER_LEN_T long" >>confdefs.h
23795
23796
23797$as_echo "#define LBER_SOCKET_T int" >>confdefs.h
23798
23799
23800$as_echo "#define LBER_TAG_T long" >>confdefs.h
23801
23802
23803if test $ol_with_mp = longlong || test $ol_with_mp = auto ; then
23804	if test $ac_cv_sizeof_long_long -gt 4 ; then
23805		ol_with_mp=longlong
23806
23807$as_echo "#define USE_MP_LONG_LONG 1" >>confdefs.h
23808
23809	elif test $ol_with_mp = longlong ; then
23810		as_fn_error $? "long long unusable for multiple precision" "$LINENO" 5
23811	fi
23812fi
23813if test $ol_with_mp = long || test $ol_with_mp = auto ; then
23814	if test $ac_cv_sizeof_long -gt 4 ; then
23815		ol_with_mp=long
23816
23817$as_echo "#define USE_MP_LONG 1" >>confdefs.h
23818
23819	elif test $ol_with_mp = long ; then
23820		as_fn_error $? "long unusable for multiple precision" "$LINENO" 5
23821	fi
23822fi
23823if test $ol_with_mp = bignum || test $ol_with_mp = auto ; then
23824	for ac_header in openssl/bn.h
23825do :
23826  ac_fn_c_check_header_mongrel "$LINENO" "openssl/bn.h" "ac_cv_header_openssl_bn_h" "$ac_includes_default"
23827if test "x$ac_cv_header_openssl_bn_h" = xyes; then :
23828  cat >>confdefs.h <<_ACEOF
23829#define HAVE_OPENSSL_BN_H 1
23830_ACEOF
23831
23832fi
23833
23834done
23835
23836	for ac_header in openssl/crypto.h
23837do :
23838  ac_fn_c_check_header_mongrel "$LINENO" "openssl/crypto.h" "ac_cv_header_openssl_crypto_h" "$ac_includes_default"
23839if test "x$ac_cv_header_openssl_crypto_h" = xyes; then :
23840  cat >>confdefs.h <<_ACEOF
23841#define HAVE_OPENSSL_CRYPTO_H 1
23842_ACEOF
23843
23844fi
23845
23846done
23847
23848	if test "$ac_cv_header_openssl_bn_h" = "yes" &&
23849		test "$ac_cv_header_openssl_crypto_h" = "yes" &&
23850		test "$ol_with_tls" = "found" ; then
23851		ol_with_mp=bignum
23852
23853$as_echo "#define USE_MP_BIGNUM 1" >>confdefs.h
23854
23855	elif test $ol_with_mp = bignum ; then
23856		as_fn_error $? "bignum not available" "$LINENO" 5
23857	fi
23858fi
23859if test $ol_with_mp = gmp || test $ol_with_mp = auto ; then
23860	for ac_header in gmp.h
23861do :
23862  ac_fn_c_check_header_mongrel "$LINENO" "gmp.h" "ac_cv_header_gmp_h" "$ac_includes_default"
23863if test "x$ac_cv_header_gmp_h" = xyes; then :
23864  cat >>confdefs.h <<_ACEOF
23865#define HAVE_GMP_H 1
23866_ACEOF
23867
23868fi
23869
23870done
23871
23872	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gmpz_add_ui in -lgmp" >&5
23873$as_echo_n "checking for __gmpz_add_ui in -lgmp... " >&6; }
23874if ${ac_cv_lib_gmp___gmpz_add_ui+:} false; then :
23875  $as_echo_n "(cached) " >&6
23876else
23877  ac_check_lib_save_LIBS=$LIBS
23878LIBS="-lgmp  $LIBS"
23879cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23880/* end confdefs.h.  */
23881
23882/* Override any GCC internal prototype to avoid an error.
23883   Use char because int might match the return type of a GCC
23884   builtin and then its argument prototype would still apply.  */
23885#ifdef __cplusplus
23886extern "C"
23887#endif
23888char __gmpz_add_ui ();
23889int
23890main ()
23891{
23892return __gmpz_add_ui ();
23893  ;
23894  return 0;
23895}
23896_ACEOF
23897if ac_fn_c_try_link "$LINENO"; then :
23898  ac_cv_lib_gmp___gmpz_add_ui=yes
23899else
23900  ac_cv_lib_gmp___gmpz_add_ui=no
23901fi
23902rm -f core conftest.err conftest.$ac_objext \
23903    conftest$ac_exeext conftest.$ac_ext
23904LIBS=$ac_check_lib_save_LIBS
23905fi
23906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gmp___gmpz_add_ui" >&5
23907$as_echo "$ac_cv_lib_gmp___gmpz_add_ui" >&6; }
23908if test "x$ac_cv_lib_gmp___gmpz_add_ui" = xyes; then :
23909  cat >>confdefs.h <<_ACEOF
23910#define HAVE_LIBGMP 1
23911_ACEOF
23912
23913  LIBS="-lgmp $LIBS"
23914
23915fi
23916
23917	if test $ac_cv_header_gmp_h = yes && test $ac_cv_lib_gmp___gmpz_add_ui = yes ; then
23918
23919$as_echo "#define USE_MP_GMP 1" >>confdefs.h
23920
23921		ol_with_mp=gmp
23922	elif test $ol_with_mp = gmp ; then
23923		as_fn_error $? "gmp not available" "$LINENO" 5
23924	fi
23925fi
23926if test $ol_with_mp = auto ; then
23927	ol_with_mp=no
23928fi
23929
23930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
23931$as_echo_n "checking for working memcmp... " >&6; }
23932if ${ac_cv_func_memcmp_working+:} false; then :
23933  $as_echo_n "(cached) " >&6
23934else
23935  if test "$cross_compiling" = yes; then :
23936  ac_cv_func_memcmp_working=no
23937else
23938  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23939/* end confdefs.h.  */
23940$ac_includes_default
23941int
23942main ()
23943{
23944
23945  /* Some versions of memcmp are not 8-bit clean.  */
23946  char c0 = '\100', c1 = '\200', c2 = '\201';
23947  if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
23948    return 1;
23949
23950  /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
23951     or more and with at least one buffer not starting on a 4-byte boundary.
23952     William Lewis provided this test program.   */
23953  {
23954    char foo[21];
23955    char bar[21];
23956    int i;
23957    for (i = 0; i < 4; i++)
23958      {
23959	char *a = foo + i;
23960	char *b = bar + i;
23961	strcpy (a, "--------01111111");
23962	strcpy (b, "--------10000000");
23963	if (memcmp (a, b, 16) >= 0)
23964	  return 1;
23965      }
23966    return 0;
23967  }
23968
23969  ;
23970  return 0;
23971}
23972_ACEOF
23973if ac_fn_c_try_run "$LINENO"; then :
23974  ac_cv_func_memcmp_working=yes
23975else
23976  ac_cv_func_memcmp_working=no
23977fi
23978rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23979  conftest.$ac_objext conftest.beam conftest.$ac_ext
23980fi
23981
23982fi
23983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
23984$as_echo "$ac_cv_func_memcmp_working" >&6; }
23985test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
23986  *" memcmp.$ac_objext "* ) ;;
23987  *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
23988 ;;
23989esac
23990
23991
23992
23993if test $ac_cv_func_memcmp_working = no ; then
23994
23995$as_echo "#define NEED_MEMCMP_REPLACEMENT 1" >>confdefs.h
23996
23997fi
23998
23999for ac_func in strftime
24000do :
24001  ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
24002if test "x$ac_cv_func_strftime" = xyes; then :
24003  cat >>confdefs.h <<_ACEOF
24004#define HAVE_STRFTIME 1
24005_ACEOF
24006
24007else
24008  # strftime is in -lintl on SCO UNIX.
24009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
24010$as_echo_n "checking for strftime in -lintl... " >&6; }
24011if ${ac_cv_lib_intl_strftime+:} false; then :
24012  $as_echo_n "(cached) " >&6
24013else
24014  ac_check_lib_save_LIBS=$LIBS
24015LIBS="-lintl  $LIBS"
24016cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24017/* end confdefs.h.  */
24018
24019/* Override any GCC internal prototype to avoid an error.
24020   Use char because int might match the return type of a GCC
24021   builtin and then its argument prototype would still apply.  */
24022#ifdef __cplusplus
24023extern "C"
24024#endif
24025char strftime ();
24026int
24027main ()
24028{
24029return strftime ();
24030  ;
24031  return 0;
24032}
24033_ACEOF
24034if ac_fn_c_try_link "$LINENO"; then :
24035  ac_cv_lib_intl_strftime=yes
24036else
24037  ac_cv_lib_intl_strftime=no
24038fi
24039rm -f core conftest.err conftest.$ac_objext \
24040    conftest$ac_exeext conftest.$ac_ext
24041LIBS=$ac_check_lib_save_LIBS
24042fi
24043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
24044$as_echo "$ac_cv_lib_intl_strftime" >&6; }
24045if test "x$ac_cv_lib_intl_strftime" = xyes; then :
24046  $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
24047
24048LIBS="-lintl $LIBS"
24049fi
24050
24051fi
24052done
24053
24054
24055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton()" >&5
24056$as_echo_n "checking for inet_aton()... " >&6; }
24057if ${ol_cv_func_inet_aton+:} false; then :
24058  $as_echo_n "(cached) " >&6
24059else
24060  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24061/* end confdefs.h.  */
24062
24063#ifdef HAVE_SYS_TYPES_H
24064#	include <sys/types.h>
24065#endif
24066#ifdef HAVE_SYS_SOCKET_H
24067#	include <sys/socket.h>
24068#	ifdef HAVE_SYS_SELECT_H
24069#		include <sys/select.h>
24070#	endif
24071#	include <netinet/in.h>
24072#	ifdef HAVE_ARPA_INET_H
24073#		include <arpa/inet.h>
24074#	endif
24075#endif
24076
24077int
24078main ()
24079{
24080struct in_addr in;
24081int rc = inet_aton( "255.255.255.255", &in );
24082  ;
24083  return 0;
24084}
24085_ACEOF
24086if ac_fn_c_try_link "$LINENO"; then :
24087  ol_cv_func_inet_aton=yes
24088else
24089  ol_cv_func_inet_aton=no
24090fi
24091rm -f core conftest.err conftest.$ac_objext \
24092    conftest$ac_exeext conftest.$ac_ext
24093fi
24094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_inet_aton" >&5
24095$as_echo "$ol_cv_func_inet_aton" >&6; }
24096  if test $ol_cv_func_inet_aton != no; then
24097
24098$as_echo "#define HAVE_INET_ATON 1" >>confdefs.h
24099
24100  fi
24101
24102
24103ac_fn_c_check_func "$LINENO" "_spawnlp" "ac_cv_func__spawnlp"
24104if test "x$ac_cv_func__spawnlp" = xyes; then :
24105
24106$as_echo "#define HAVE_SPAWNLP 1" >>confdefs.h
24107
24108fi
24109
24110
24111ac_fn_c_check_func "$LINENO" "_snprintf" "ac_cv_func__snprintf"
24112if test "x$ac_cv_func__snprintf" = xyes; then :
24113  ac_cv_func_snprintf=yes
24114
24115$as_echo "#define snprintf _snprintf" >>confdefs.h
24116
24117
24118fi
24119
24120
24121for ac_func in vsnprintf _vsnprintf
24122do :
24123  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24124ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24125if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24126  cat >>confdefs.h <<_ACEOF
24127#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24128_ACEOF
24129
24130fi
24131done
24132
24133
24134if test $ac_cv_func_vsnprintf = no -a $ac_cv_func__vsnprintf = yes ; then
24135	ac_cv_func_vsnprintf=yes
24136
24137$as_echo "#define vsnprintf _vsnprintf" >>confdefs.h
24138
24139fi
24140
24141for ac_func in vprintf
24142do :
24143  ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
24144if test "x$ac_cv_func_vprintf" = xyes; then :
24145  cat >>confdefs.h <<_ACEOF
24146#define HAVE_VPRINTF 1
24147_ACEOF
24148
24149ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
24150if test "x$ac_cv_func__doprnt" = xyes; then :
24151
24152$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
24153
24154fi
24155
24156fi
24157done
24158
24159
24160
24161if test $ac_cv_func_vprintf = yes ; then
24162		for ac_func in snprintf vsnprintf
24163do :
24164  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24165ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24166if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24167  cat >>confdefs.h <<_ACEOF
24168#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24169_ACEOF
24170
24171fi
24172done
24173
24174fi
24175
24176for ac_func in \
24177	bcopy			\
24178	clock_gettime	\
24179	closesocket		\
24180	chroot			\
24181	endgrent		\
24182	endpwent		\
24183	fcntl			\
24184	flock			\
24185	fstat			\
24186	getdtablesize		\
24187	geteuid			\
24188	getgrgid		\
24189	gethostname		\
24190	getpassphrase		\
24191	getpwuid		\
24192	getpwnam		\
24193	getspnam		\
24194	gettimeofday		\
24195	initgroups		\
24196	inet_ntoa_b		\
24197	ioctl			\
24198	lockf			\
24199	memcpy			\
24200	memmove			\
24201	memrchr			\
24202	mkstemp			\
24203	mktemp			\
24204	pipe			\
24205	read			\
24206	recv			\
24207	recvfrom		\
24208	setpwfile		\
24209	setgid			\
24210	setegid			\
24211	setsid			\
24212	setuid			\
24213	seteuid			\
24214	signal			\
24215	strdup			\
24216	strpbrk			\
24217	strrchr			\
24218	strsep			\
24219	strstr			\
24220	strtol			\
24221	strtoul			\
24222	strtoq			\
24223	strtouq			\
24224	strtoll			\
24225	strtoull		\
24226	strspn			\
24227	sysconf			\
24228	waitpid			\
24229	wait4			\
24230	write			\
24231	send			\
24232	sendmsg			\
24233	sendto			\
24234
24235do :
24236  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24237ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24238if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24239  cat >>confdefs.h <<_ACEOF
24240#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24241_ACEOF
24242
24243fi
24244done
24245
24246
24247ac_fn_c_check_func "$LINENO" "getopt" "ac_cv_func_getopt"
24248if test "x$ac_cv_func_getopt" = xyes; then :
24249  $as_echo "#define HAVE_GETOPT 1" >>confdefs.h
24250
24251else
24252  case " $LIBOBJS " in
24253  *" getopt.$ac_objext "* ) ;;
24254  *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
24255 ;;
24256esac
24257
24258fi
24259
24260ac_fn_c_check_func "$LINENO" "getpeereid" "ac_cv_func_getpeereid"
24261if test "x$ac_cv_func_getpeereid" = xyes; then :
24262  $as_echo "#define HAVE_GETPEEREID 1" >>confdefs.h
24263
24264else
24265  case " $LIBOBJS " in
24266  *" getpeereid.$ac_objext "* ) ;;
24267  *) LIBOBJS="$LIBOBJS getpeereid.$ac_objext"
24268 ;;
24269esac
24270
24271fi
24272
24273
24274
24275if test "$ac_cv_func_getopt" != yes; then
24276	LIBSRCS="$LIBSRCS getopt.c"
24277fi
24278
24279if test "$ac_cv_func_getpeereid" != yes; then
24280	for ac_func in getpeerucred
24281do :
24282  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24283ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24284if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24285  cat >>confdefs.h <<_ACEOF
24286#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24287_ACEOF
24288
24289fi
24290done
24291
24292	if test "$ac_cv_func_getpeerucred" != yes ; then
24293		ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_accrightslen" "ac_cv_member_struct_msghdr_msg_accrightslen" "$ac_includes_default
24294#ifdef HAVE_SYS_SOCKET_H
24295#include <sys/socket.h>
24296#endif
24297"
24298if test "x$ac_cv_member_struct_msghdr_msg_accrightslen" = xyes; then :
24299
24300cat >>confdefs.h <<_ACEOF
24301#define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTSLEN 1
24302_ACEOF
24303
24304
24305fi
24306
24307		if test "$ac_cv_member_struct_msghdr_msg_accrightslen" != yes; then
24308			ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "$ac_includes_default
24309#ifdef HAVE_SYS_SOCKET_H
24310#include <sys/socket.h>
24311#endif
24312"
24313if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then :
24314
24315cat >>confdefs.h <<_ACEOF
24316#define HAVE_STRUCT_MSGHDR_MSG_CONTROL 1
24317_ACEOF
24318
24319
24320fi
24321
24322		fi
24323		ac_fn_c_check_member "$LINENO" "struct stat" "st_fstype" "ac_cv_member_struct_stat_st_fstype" "$ac_includes_default"
24324if test "x$ac_cv_member_struct_stat_st_fstype" = xyes; then :
24325
24326cat >>confdefs.h <<_ACEOF
24327#define HAVE_STRUCT_STAT_ST_FSTYPE 1
24328_ACEOF
24329
24330
24331fi
24332ac_fn_c_check_member "$LINENO" "struct stat" "st_vfstype" "ac_cv_member_struct_stat_st_vfstype" "$ac_includes_default"
24333if test "x$ac_cv_member_struct_stat_st_vfstype" = xyes; then :
24334
24335cat >>confdefs.h <<_ACEOF
24336#define HAVE_STRUCT_STAT_ST_VFSTYPE 1
24337_ACEOF
24338
24339
24340fi
24341
24342		if test "$ac_cv_member_struct_stat_st_fstype" = yes; then
24343			cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24344/* end confdefs.h.  */
24345struct stat st; char *ptr=st.st_fstype;
24346_ACEOF
24347if ac_fn_c_try_compile "$LINENO"; then :
24348
24349$as_echo "#define HAVE_STRUCT_STAT_ST_FSTYPE_CHAR 1" >>confdefs.h
24350
24351else
24352
24353$as_echo "#define HAVE_STRUCT_STAT_ST_FSTYPE_INT 1" >>confdefs.h
24354
24355fi
24356rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24357		fi
24358	fi
24359	LIBSRCS="$LIBSRCS getpeereid.c"
24360fi
24361
24362if test "$ac_cv_func_snprintf" != yes ||
24363   test "$ac_cv_func_vsnprintf" != yes; then
24364	if test "$ac_cv_func_snprintf" != yes; then
24365
24366$as_echo "#define snprintf ber_pvt_snprintf" >>confdefs.h
24367
24368	fi
24369	if test "$ac_cv_func_vsnprintf" != yes; then
24370
24371$as_echo "#define vsnprintf ber_pvt_vsnprintf" >>confdefs.h
24372
24373	fi
24374fi
24375
24376
24377if test "$ol_enable_slapi" != no ; then
24378			for ac_header in ltdl.h
24379do :
24380  ac_fn_c_check_header_mongrel "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default"
24381if test "x$ac_cv_header_ltdl_h" = xyes; then :
24382  cat >>confdefs.h <<_ACEOF
24383#define HAVE_LTDL_H 1
24384_ACEOF
24385
24386fi
24387
24388done
24389
24390
24391	if test $ac_cv_header_ltdl_h != yes ; then
24392		as_fn_error $? "could not locate <ltdl.h>" "$LINENO" 5
24393	fi
24394	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dlinit in -lltdl" >&5
24395$as_echo_n "checking for lt_dlinit in -lltdl... " >&6; }
24396if ${ac_cv_lib_ltdl_lt_dlinit+:} false; then :
24397  $as_echo_n "(cached) " >&6
24398else
24399  ac_check_lib_save_LIBS=$LIBS
24400LIBS="-lltdl  $LIBS"
24401cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24402/* end confdefs.h.  */
24403
24404/* Override any GCC internal prototype to avoid an error.
24405   Use char because int might match the return type of a GCC
24406   builtin and then its argument prototype would still apply.  */
24407#ifdef __cplusplus
24408extern "C"
24409#endif
24410char lt_dlinit ();
24411int
24412main ()
24413{
24414return lt_dlinit ();
24415  ;
24416  return 0;
24417}
24418_ACEOF
24419if ac_fn_c_try_link "$LINENO"; then :
24420  ac_cv_lib_ltdl_lt_dlinit=yes
24421else
24422  ac_cv_lib_ltdl_lt_dlinit=no
24423fi
24424rm -f core conftest.err conftest.$ac_objext \
24425    conftest$ac_exeext conftest.$ac_ext
24426LIBS=$ac_check_lib_save_LIBS
24427fi
24428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
24429$as_echo "$ac_cv_lib_ltdl_lt_dlinit" >&6; }
24430if test "x$ac_cv_lib_ltdl_lt_dlinit" = xyes; then :
24431
24432		SLAPI_LIBS=-lltdl
24433		LIBSLAPI=slapi/libslapi.la
24434
24435$as_echo "#define HAVE_LIBLTDL 1" >>confdefs.h
24436
24437
24438else
24439  as_fn_error $? "could not locate libtool -lltdl" "$LINENO" 5
24440fi
24441
24442
24443
24444$as_echo "#define LDAP_SLAPI 1" >>confdefs.h
24445
24446fi
24447
24448if test "$ol_enable_debug" != no ; then
24449	if test "$ol_enable_debug" = traditional; then
24450
24451$as_echo "#define OLD_DEBUG 1" >>confdefs.h
24452
24453	fi
24454
24455$as_echo "#define LDAP_DEBUG 1" >>confdefs.h
24456
24457fi
24458if test "$ol_enable_syslog" != no ; then
24459
24460$as_echo "#define LDAP_SYSLOG 1" >>confdefs.h
24461
24462fi
24463if test "$ol_enable_referrals" != no ; then
24464
24465$as_echo "#define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION" >>confdefs.h
24466
24467fi
24468if test "$ol_enable_local" != no; then
24469
24470$as_echo "#define LDAP_PF_LOCAL 1" >>confdefs.h
24471
24472fi
24473if test "$ol_link_ipv6" != no; then
24474
24475$as_echo "#define LDAP_PF_INET6 1" >>confdefs.h
24476
24477fi
24478if test "$ol_enable_cleartext" != no ; then
24479
24480$as_echo "#define SLAPD_CLEARTEXT 1" >>confdefs.h
24481
24482fi
24483if test "$ol_enable_crypt" != no ; then
24484
24485$as_echo "#define SLAPD_CRYPT 1" >>confdefs.h
24486
24487fi
24488if test "$ol_link_spasswd" != no ; then
24489
24490$as_echo "#define SLAPD_SPASSWD 1" >>confdefs.h
24491
24492fi
24493if test "$ol_enable_rlookups" != no ; then
24494
24495$as_echo "#define SLAPD_RLOOKUPS 1" >>confdefs.h
24496
24497fi
24498if test "$ol_enable_aci" != no ; then
24499	if test "$ol_enable_aci" = mod ; then
24500		MFLAG=SLAPD_MOD_DYNAMIC
24501				as_fn_error $? "ACI build as dynamic module not supported (yet)" "$LINENO" 5
24502	else
24503		MFLAG=SLAPD_MOD_STATIC
24504	fi
24505	WITH_ACI_ENABLED=$ol_enable_aci
24506
24507cat >>confdefs.h <<_ACEOF
24508#define SLAPD_ACI_ENABLED $MFLAG
24509_ACEOF
24510
24511else
24512	WITH_ACI_ENABLED=no
24513fi
24514if test "$ol_enable_dynacl" != no ; then
24515
24516$as_echo "#define SLAP_DYNACL 1" >>confdefs.h
24517
24518fi
24519
24520if test "$ol_link_modules" != no ; then
24521
24522$as_echo "#define SLAPD_MODULES 1" >>confdefs.h
24523
24524	BUILD_SLAPD=yes
24525	SLAPD_MODULES_LDFLAGS="-dlopen self"
24526fi
24527
24528
24529$as_echo "#define SLAPD_MOD_STATIC 1" >>confdefs.h
24530
24531
24532$as_echo "#define SLAPD_MOD_DYNAMIC 2" >>confdefs.h
24533
24534
24535if test "$ol_enable_dnssrv" != no ; then
24536	BUILD_SLAPD=yes
24537	BUILD_DNSSRV=$ol_enable_dnssrv
24538	if test "$ol_enable_dnssrv" = mod ; then
24539		SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
24540		MFLAG=SLAPD_MOD_DYNAMIC
24541	else
24542		SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
24543		MFLAG=SLAPD_MOD_STATIC
24544	fi
24545
24546cat >>confdefs.h <<_ACEOF
24547#define SLAPD_DNSSRV $MFLAG
24548_ACEOF
24549
24550fi
24551
24552if test "$ol_enable_ldap" != no ; then
24553	BUILD_SLAPD=yes
24554	BUILD_LDAP=$ol_enable_ldap
24555	if test "$ol_enable_ldap" = mod ; then
24556		SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
24557		MFLAG=SLAPD_MOD_DYNAMIC
24558	else
24559		SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
24560		MFLAG=SLAPD_MOD_STATIC
24561	fi
24562
24563cat >>confdefs.h <<_ACEOF
24564#define SLAPD_LDAP $MFLAG
24565_ACEOF
24566
24567fi
24568
24569if test "$ol_enable_mdb" != no ; then
24570	BUILD_SLAPD=yes
24571	BUILD_MDB=$ol_enable_mdb
24572	if test "$ol_enable_mdb" = mod ; then
24573		SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-mdb"
24574		MFLAG=SLAPD_MOD_DYNAMIC
24575	else
24576		SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-mdb"
24577		MFLAG=SLAPD_MOD_STATIC
24578	fi
24579
24580cat >>confdefs.h <<_ACEOF
24581#define SLAPD_MDB $MFLAG
24582_ACEOF
24583
24584fi
24585
24586if test "$ol_enable_meta" != no ; then
24587	BUILD_SLAPD=yes
24588	BUILD_META=$ol_enable_meta
24589	if test "$ol_enable_meta" = mod ; then
24590		SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
24591		MFLAG=SLAPD_MOD_DYNAMIC
24592	else
24593		SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
24594		MFLAG=SLAPD_MOD_STATIC
24595	fi
24596
24597cat >>confdefs.h <<_ACEOF
24598#define SLAPD_META $MFLAG
24599_ACEOF
24600
24601fi
24602
24603if test "$ol_enable_asyncmeta" != no ; then
24604	BUILD_SLAPD=yes
24605	BUILD_ASYNCMETA=$ol_enable_asyncmeta
24606	if test "$ol_enable_asyncmeta" = mod ; then
24607		SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-asyncmeta"
24608		MFLAG=SLAPD_MOD_DYNAMIC
24609	else
24610		SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-asyncmeta"
24611		MFLAG=SLAPD_MOD_STATIC
24612	fi
24613
24614cat >>confdefs.h <<_ACEOF
24615#define SLAPD_ASYNCMETA $MFLAG
24616_ACEOF
24617
24618fi
24619
24620if test "$ol_enable_null" != no ; then
24621	BUILD_SLAPD=yes
24622	BUILD_NULL=$ol_enable_null
24623	if test "$ol_enable_null" = mod ; then
24624		SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
24625		MFLAG=SLAPD_MOD_DYNAMIC
24626	else
24627		SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
24628		MFLAG=SLAPD_MOD_STATIC
24629	fi
24630
24631cat >>confdefs.h <<_ACEOF
24632#define SLAPD_NULL $MFLAG
24633_ACEOF
24634
24635fi
24636
24637if test "$ol_enable_passwd" != no ; then
24638	BUILD_SLAPD=yes
24639	BUILD_PASSWD=$ol_enable_passwd
24640	if test "$ol_enable_passwd" = mod ; then
24641		SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
24642		MFLAG=SLAPD_MOD_DYNAMIC
24643	else
24644		SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
24645		MFLAG=SLAPD_MOD_STATIC
24646	fi
24647
24648cat >>confdefs.h <<_ACEOF
24649#define SLAPD_PASSWD $MFLAG
24650_ACEOF
24651
24652fi
24653
24654if test "$ol_link_perl" != no ; then
24655	BUILD_SLAPD=yes
24656	BUILD_PERL=$ol_enable_perl
24657	if test "$ol_enable_perl" = mod ; then
24658		SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
24659		MFLAG=SLAPD_MOD_DYNAMIC
24660	else
24661		SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
24662		MFLAG=SLAPD_MOD_STATIC
24663	fi
24664
24665cat >>confdefs.h <<_ACEOF
24666#define SLAPD_PERL $MFLAG
24667_ACEOF
24668
24669fi
24670
24671if test "$ol_enable_relay" != no ; then
24672	BUILD_SLAPD=yes
24673	BUILD_RELAY=$ol_enable_relay
24674	if test "$ol_enable_relay" = mod ; then
24675		SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-relay"
24676		MFLAG=SLAPD_MOD_DYNAMIC
24677	else
24678		SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-relay"
24679		MFLAG=SLAPD_MOD_STATIC
24680	fi
24681
24682cat >>confdefs.h <<_ACEOF
24683#define SLAPD_RELAY $MFLAG
24684_ACEOF
24685
24686fi
24687
24688if test "$ol_enable_sock" != no ; then
24689	BUILD_SLAPD=yes
24690	BUILD_SOCK=$ol_enable_sock
24691	if test "$ol_enable_sock" = mod ; then
24692		SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sock"
24693		MFLAG=SLAPD_MOD_DYNAMIC
24694	else
24695		SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sock"
24696		MFLAG=SLAPD_MOD_STATIC
24697	fi
24698
24699cat >>confdefs.h <<_ACEOF
24700#define SLAPD_SOCK $MFLAG
24701_ACEOF
24702
24703fi
24704
24705if test "$ol_link_sql" != no ; then
24706	BUILD_SLAPD=yes
24707	BUILD_SQL=$ol_enable_sql
24708	if test "$ol_enable_sql" = mod; then
24709		SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
24710		MFLAG=SLAPD_MOD_DYNAMIC
24711	else
24712		SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
24713		MFLAG=SLAPD_MOD_STATIC
24714	fi
24715
24716cat >>confdefs.h <<_ACEOF
24717#define SLAPD_SQL $MFLAG
24718_ACEOF
24719
24720fi
24721
24722if test "$ol_link_wt" != no ; then
24723	BUILD_SLAPD=yes
24724	BUILD_WT=$ol_enable_wt
24725	if test "$ol_enable_wt" = mod; then
24726		SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-wt"
24727		MFLAG=SLAPD_MOD_DYNAMIC
24728	else
24729		SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-wt"
24730		MFLAG=SLAPD_MOD_STATIC
24731	fi
24732
24733cat >>confdefs.h <<_ACEOF
24734#define SLAPD_WT $MFLAG
24735_ACEOF
24736
24737fi
24738
24739if test "$ol_enable_accesslog" != no ; then
24740	BUILD_ACCESSLOG=$ol_enable_accesslog
24741	if test "$ol_enable_accesslog" = mod ; then
24742		MFLAG=SLAPD_MOD_DYNAMIC
24743		SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS accesslog.la"
24744	else
24745		MFLAG=SLAPD_MOD_STATIC
24746		SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS accesslog.o"
24747	fi
24748
24749cat >>confdefs.h <<_ACEOF
24750#define SLAPD_OVER_ACCESSLOG $MFLAG
24751_ACEOF
24752
24753fi
24754
24755if test "$ol_enable_auditlog" != no ; then
24756	BUILD_AUDITLOG=$ol_enable_auditlog
24757	if test "$ol_enable_auditlog" = mod ; then
24758		MFLAG=SLAPD_MOD_DYNAMIC
24759		SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS auditlog.la"
24760	else
24761		MFLAG=SLAPD_MOD_STATIC
24762		SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS auditlog.o"
24763	fi
24764
24765cat >>confdefs.h <<_ACEOF
24766#define SLAPD_OVER_AUDITLOG $MFLAG
24767_ACEOF
24768
24769fi
24770
24771if test "$ol_enable_autoca" != no ; then
24772	if test $ol_with_tls != openssl ; then
24773		as_fn_error $? "--enable-autoca=$ol_enable_autoca requires --with-tls=openssl" "$LINENO" 5
24774	fi
24775
24776	BUILD_AUTOCA=$ol_enable_autoca
24777	if test "$ol_enable_autoca" = mod ; then
24778		MFLAG=SLAPD_MOD_DYNAMIC
24779		SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS autoca.la"
24780	else
24781		MFLAG=SLAPD_MOD_STATIC
24782		SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS autoca.o"
24783	fi
24784
24785cat >>confdefs.h <<_ACEOF
24786#define SLAPD_OVER_AUTOCA $MFLAG
24787_ACEOF
24788
24789fi
24790
24791if test "$ol_enable_collect" != no ; then
24792        BUILD_COLLECT=$ol_enable_collect
24793        if test "$ol_enable_collect" = mod ; then
24794                MFLAG=SLAPD_MOD_DYNAMIC
24795                SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS collect.la"
24796        else
24797                MFLAG=SLAPD_MOD_STATIC
24798                SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS collect.o"
24799        fi
24800
24801cat >>confdefs.h <<_ACEOF
24802#define SLAPD_OVER_COLLECT $MFLAG
24803_ACEOF
24804
24805fi
24806
24807if test "$ol_enable_constraint" != no ; then
24808	BUILD_CONSTRAINT=$ol_enable_constraint
24809	if test "$ol_enable_constraint" = mod ; then
24810		MFLAG=SLAPD_MOD_DYNAMIC
24811		SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS constraint.la"
24812	else
24813		MFLAG=SLAPD_MOD_STATIC
24814		SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS constraint.o"
24815	fi
24816
24817cat >>confdefs.h <<_ACEOF
24818#define SLAPD_OVER_CONSTRAINT $MFLAG
24819_ACEOF
24820
24821fi
24822
24823if test "$ol_enable_dds" != no ; then
24824	BUILD_DDS=$ol_enable_dds
24825	if test "$ol_enable_dds" = mod ; then
24826		MFLAG=SLAPD_MOD_DYNAMIC
24827		SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dds.la"
24828	else
24829		MFLAG=SLAPD_MOD_STATIC
24830		SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dds.o"
24831	fi
24832
24833cat >>confdefs.h <<_ACEOF
24834#define SLAPD_OVER_DDS $MFLAG
24835_ACEOF
24836
24837fi
24838
24839if test "$ol_enable_deref" != no ; then
24840	BUILD_DEREF=$ol_enable_deref
24841	if test "$ol_enable_deref" = mod ; then
24842		MFLAG=SLAPD_MOD_DYNAMIC
24843		SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS deref.la"
24844	else
24845		MFLAG=SLAPD_MOD_STATIC
24846		SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS deref.o"
24847	fi
24848
24849cat >>confdefs.h <<_ACEOF
24850#define SLAPD_OVER_DEREF $MFLAG
24851_ACEOF
24852
24853fi
24854
24855if test "$ol_enable_dyngroup" != no ; then
24856	BUILD_DYNGROUP=$ol_enable_dyngroup
24857	if test "$ol_enable_dyngroup" = mod ; then
24858		MFLAG=SLAPD_MOD_DYNAMIC
24859		SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dyngroup.la"
24860	else
24861		MFLAG=SLAPD_MOD_STATIC
24862		SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dyngroup.o"
24863	fi
24864
24865cat >>confdefs.h <<_ACEOF
24866#define SLAPD_OVER_DYNGROUP $MFLAG
24867_ACEOF
24868
24869fi
24870
24871if test "$ol_enable_dynlist" != no ; then
24872	BUILD_DYNLIST=$ol_enable_dynlist
24873	if test "$ol_enable_dynlist" = mod ; then
24874		MFLAG=SLAPD_MOD_DYNAMIC
24875		SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dynlist.la"
24876	else
24877		MFLAG=SLAPD_MOD_STATIC
24878		SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dynlist.o"
24879	fi
24880
24881cat >>confdefs.h <<_ACEOF
24882#define SLAPD_OVER_DYNLIST $MFLAG
24883_ACEOF
24884
24885fi
24886
24887if test "$ol_enable_homedir" != no ; then
24888	BUILD_HOMEDIR=$ol_enable_homedir
24889	if test "$ol_enable_homedir" = mod ; then
24890		MFLAG=SLAPD_MOD_DYNAMIC
24891		SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS homedir.la"
24892	else
24893		MFLAG=SLAPD_MOD_STATIC
24894		SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS homedir.o"
24895	fi
24896
24897cat >>confdefs.h <<_ACEOF
24898#define SLAPD_OVER_HOMEDIR $MFLAG
24899_ACEOF
24900
24901fi
24902
24903if test "$ol_enable_memberof" != no ; then
24904	BUILD_MEMBEROF=$ol_enable_memberof
24905	if test "$ol_enable_memberof" = mod ; then
24906		MFLAG=SLAPD_MOD_DYNAMIC
24907		SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS memberof.la"
24908	else
24909		MFLAG=SLAPD_MOD_STATIC
24910		SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS memberof.o"
24911	fi
24912
24913cat >>confdefs.h <<_ACEOF
24914#define SLAPD_OVER_MEMBEROF $MFLAG
24915_ACEOF
24916
24917fi
24918
24919if test "$ol_enable_otp" != no ; then
24920	if test $ol_with_tls = no ; then
24921		as_fn_error $? "--enable-otp=$ol_enable_otp requires --with-tls" "$LINENO" 5
24922	fi
24923
24924	BUILD_OTP=$ol_enable_otp
24925	if test "$ol_enable_otp" = mod ; then
24926		MFLAG=SLAPD_MOD_DYNAMIC
24927		SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS otp.la"
24928	else
24929		MFLAG=SLAPD_MOD_STATIC
24930		SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS otp.o"
24931	fi
24932
24933cat >>confdefs.h <<_ACEOF
24934#define SLAPD_OVER_OTP $MFLAG
24935_ACEOF
24936
24937fi
24938
24939if test "$ol_enable_ppolicy" != no ; then
24940	BUILD_PPOLICY=$ol_enable_ppolicy
24941	if test "$ol_enable_ppolicy" = mod ; then
24942		MFLAG=SLAPD_MOD_DYNAMIC
24943		SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS ppolicy.la"
24944	else
24945		MFLAG=SLAPD_MOD_STATIC
24946		SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS ppolicy.o"
24947	fi
24948
24949cat >>confdefs.h <<_ACEOF
24950#define SLAPD_OVER_PPOLICY $MFLAG
24951_ACEOF
24952
24953fi
24954
24955if test "$ol_enable_proxycache" != no ; then
24956	BUILD_PROXYCACHE=$ol_enable_proxycache
24957	if test "$ol_enable_proxycache" = mod ; then
24958		MFLAG=SLAPD_MOD_DYNAMIC
24959		SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS pcache.la"
24960	else
24961		MFLAG=SLAPD_MOD_STATIC
24962		SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS pcache.o"
24963	fi
24964
24965cat >>confdefs.h <<_ACEOF
24966#define SLAPD_OVER_PROXYCACHE $MFLAG
24967_ACEOF
24968
24969fi
24970
24971if test "$ol_enable_refint" != no ; then
24972	BUILD_REFINT=$ol_enable_refint
24973	if test "$ol_enable_refint" = mod ; then
24974		MFLAG=SLAPD_MOD_DYNAMIC
24975		SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS refint.la"
24976	else
24977		MFLAG=SLAPD_MOD_STATIC
24978		SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS refint.o"
24979	fi
24980
24981cat >>confdefs.h <<_ACEOF
24982#define SLAPD_OVER_REFINT $MFLAG
24983_ACEOF
24984
24985fi
24986
24987if test "$ol_enable_remoteauth" != no ; then
24988	BUILD_REMOTEAUTH=$ol_enable_remoteauth
24989	if test "$ol_enable_remoteauth" = mod ; then
24990		MFLAG=SLAPD_MOD_DYNAMIC
24991		SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS remoteauth.la"
24992	else
24993		MFLAG=SLAPD_MOD_STATIC
24994		SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS remoteauth.o"
24995	fi
24996
24997cat >>confdefs.h <<_ACEOF
24998#define SLAPD_OVER_REMOTEAUTH $MFLAG
24999_ACEOF
25000
25001fi
25002
25003if test "$ol_enable_retcode" != no ; then
25004	BUILD_RETCODE=$ol_enable_retcode
25005	if test "$ol_enable_retcode" = mod ; then
25006		MFLAG=SLAPD_MOD_DYNAMIC
25007		SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS retcode.la"
25008	else
25009		MFLAG=SLAPD_MOD_STATIC
25010		SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS retcode.o"
25011	fi
25012
25013cat >>confdefs.h <<_ACEOF
25014#define SLAPD_OVER_RETCODE $MFLAG
25015_ACEOF
25016
25017fi
25018
25019if test "$ol_enable_rwm" != no ; then
25020	BUILD_RWM=$ol_enable_rwm
25021	if test "$ol_enable_rwm" = mod ; then
25022		MFLAG=SLAPD_MOD_DYNAMIC
25023		SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS rwm.la"
25024	else
25025		MFLAG=SLAPD_MOD_STATIC
25026		SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS rwm_x.o"
25027	fi
25028
25029cat >>confdefs.h <<_ACEOF
25030#define SLAPD_OVER_RWM $MFLAG
25031_ACEOF
25032
25033fi
25034
25035if test "$ol_enable_seqmod" != no ; then
25036	BUILD_SEQMOD=$ol_enable_seqmod
25037	if test "$ol_enable_seqmod" = mod ; then
25038		MFLAG=SLAPD_MOD_DYNAMIC
25039		SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS seqmod.la"
25040	else
25041		MFLAG=SLAPD_MOD_STATIC
25042		SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS seqmod.o"
25043	fi
25044
25045cat >>confdefs.h <<_ACEOF
25046#define SLAPD_OVER_SEQMOD $MFLAG
25047_ACEOF
25048
25049fi
25050
25051if test "$ol_enable_sssvlv" != no ; then
25052	BUILD_SSSVLV=$ol_enable_sssvlv
25053	if test "$ol_enable_sssvlv" = mod ; then
25054		MFLAG=SLAPD_MOD_DYNAMIC
25055		SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS sssvlv.la"
25056	else
25057		MFLAG=SLAPD_MOD_STATIC
25058		SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS sssvlv.o"
25059	fi
25060
25061cat >>confdefs.h <<_ACEOF
25062#define SLAPD_OVER_SSSVLV $MFLAG
25063_ACEOF
25064
25065fi
25066
25067if test "$ol_enable_syncprov" != no ; then
25068	BUILD_SYNCPROV=$ol_enable_syncprov
25069	if test "$ol_enable_syncprov" = mod ; then
25070		MFLAG=SLAPD_MOD_DYNAMIC
25071		SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS syncprov.la"
25072	else
25073		MFLAG=SLAPD_MOD_STATIC
25074		SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS syncprov.o"
25075	fi
25076
25077cat >>confdefs.h <<_ACEOF
25078#define SLAPD_OVER_SYNCPROV $MFLAG
25079_ACEOF
25080
25081fi
25082
25083if test "$ol_enable_translucent" != no ; then
25084	BUILD_TRANSLUCENT=$ol_enable_translucent
25085	if test "$ol_enable_translucent" = mod ; then
25086		MFLAG=SLAPD_MOD_DYNAMIC
25087		SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS translucent.la"
25088	else
25089		MFLAG=SLAPD_MOD_STATIC
25090		SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS translucent.o"
25091	fi
25092
25093cat >>confdefs.h <<_ACEOF
25094#define SLAPD_OVER_TRANSLUCENT $MFLAG
25095_ACEOF
25096
25097fi
25098
25099if test "$ol_enable_unique" != no ; then
25100	BUILD_UNIQUE=$ol_enable_unique
25101	if test "$ol_enable_unique" = mod ; then
25102		MFLAG=SLAPD_MOD_DYNAMIC
25103		SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS unique.la"
25104	else
25105		MFLAG=SLAPD_MOD_STATIC
25106		SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS unique.o"
25107	fi
25108
25109cat >>confdefs.h <<_ACEOF
25110#define SLAPD_OVER_UNIQUE $MFLAG
25111_ACEOF
25112
25113fi
25114
25115if test "$ol_enable_valsort" != no ; then
25116	BUILD_VALSORT=$ol_enable_valsort
25117	if test "$ol_enable_valsort" = mod ; then
25118		MFLAG=SLAPD_MOD_DYNAMIC
25119		SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS valsort.la"
25120	else
25121		MFLAG=SLAPD_MOD_STATIC
25122		SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS valsort.o"
25123	fi
25124
25125cat >>confdefs.h <<_ACEOF
25126#define SLAPD_OVER_VALSORT $MFLAG
25127_ACEOF
25128
25129fi
25130
25131ol_link_argon2=no
25132if test "$ol_enable_argon2" = "yes" ; then
25133	if test $ol_with_argon2 = libargon2 || test $ol_with_argon2 = auto; then
25134		for ac_header in argon2.h
25135do :
25136  ac_fn_c_check_header_mongrel "$LINENO" "argon2.h" "ac_cv_header_argon2_h" "$ac_includes_default"
25137if test "x$ac_cv_header_argon2_h" = xyes; then :
25138  cat >>confdefs.h <<_ACEOF
25139#define HAVE_ARGON2_H 1
25140_ACEOF
25141
25142fi
25143
25144done
25145
25146		if test $ac_cv_header_argon2_h = yes ; then
25147			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for argon2i_hash_encoded in -largon2" >&5
25148$as_echo_n "checking for argon2i_hash_encoded in -largon2... " >&6; }
25149if ${ac_cv_lib_argon2_argon2i_hash_encoded+:} false; then :
25150  $as_echo_n "(cached) " >&6
25151else
25152  ac_check_lib_save_LIBS=$LIBS
25153LIBS="-largon2 -largon2 $LIBS"
25154cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25155/* end confdefs.h.  */
25156
25157/* Override any GCC internal prototype to avoid an error.
25158   Use char because int might match the return type of a GCC
25159   builtin and then its argument prototype would still apply.  */
25160#ifdef __cplusplus
25161extern "C"
25162#endif
25163char argon2i_hash_encoded ();
25164int
25165main ()
25166{
25167return argon2i_hash_encoded ();
25168  ;
25169  return 0;
25170}
25171_ACEOF
25172if ac_fn_c_try_link "$LINENO"; then :
25173  ac_cv_lib_argon2_argon2i_hash_encoded=yes
25174else
25175  ac_cv_lib_argon2_argon2i_hash_encoded=no
25176fi
25177rm -f core conftest.err conftest.$ac_objext \
25178    conftest$ac_exeext conftest.$ac_ext
25179LIBS=$ac_check_lib_save_LIBS
25180fi
25181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_argon2_argon2i_hash_encoded" >&5
25182$as_echo "$ac_cv_lib_argon2_argon2i_hash_encoded" >&6; }
25183if test "x$ac_cv_lib_argon2_argon2i_hash_encoded" = xyes; then :
25184  have_argon2=yes
25185else
25186  have_argon2=no
25187fi
25188
25189		fi
25190		if test "$have_argon2" = "yes" ; then
25191			ol_with_argon2=libargon2
25192			ol_link_argon2=yes
25193
25194$as_echo "#define HAVE_LIBARGON2 1" >>confdefs.h
25195
25196			ARGON2_LIBS="-largon2"
25197		fi
25198	fi
25199	if test $ol_with_argon2 = libsodium || test $ol_with_argon2 = auto; then
25200		for ac_header in sodium.h
25201do :
25202  ac_fn_c_check_header_mongrel "$LINENO" "sodium.h" "ac_cv_header_sodium_h" "$ac_includes_default"
25203if test "x$ac_cv_header_sodium_h" = xyes; then :
25204  cat >>confdefs.h <<_ACEOF
25205#define HAVE_SODIUM_H 1
25206_ACEOF
25207
25208fi
25209
25210done
25211
25212		if test $ac_cv_header_sodium_h = yes ; then
25213			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypto_pwhash_str_alg in -lsodium" >&5
25214$as_echo_n "checking for crypto_pwhash_str_alg in -lsodium... " >&6; }
25215if ${ac_cv_lib_sodium_crypto_pwhash_str_alg+:} false; then :
25216  $as_echo_n "(cached) " >&6
25217else
25218  ac_check_lib_save_LIBS=$LIBS
25219LIBS="-lsodium -lsodium $LIBS"
25220cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25221/* end confdefs.h.  */
25222
25223/* Override any GCC internal prototype to avoid an error.
25224   Use char because int might match the return type of a GCC
25225   builtin and then its argument prototype would still apply.  */
25226#ifdef __cplusplus
25227extern "C"
25228#endif
25229char crypto_pwhash_str_alg ();
25230int
25231main ()
25232{
25233return crypto_pwhash_str_alg ();
25234  ;
25235  return 0;
25236}
25237_ACEOF
25238if ac_fn_c_try_link "$LINENO"; then :
25239  ac_cv_lib_sodium_crypto_pwhash_str_alg=yes
25240else
25241  ac_cv_lib_sodium_crypto_pwhash_str_alg=no
25242fi
25243rm -f core conftest.err conftest.$ac_objext \
25244    conftest$ac_exeext conftest.$ac_ext
25245LIBS=$ac_check_lib_save_LIBS
25246fi
25247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sodium_crypto_pwhash_str_alg" >&5
25248$as_echo "$ac_cv_lib_sodium_crypto_pwhash_str_alg" >&6; }
25249if test "x$ac_cv_lib_sodium_crypto_pwhash_str_alg" = xyes; then :
25250  have_argon2=yes
25251else
25252  have_argon2=no
25253fi
25254
25255		fi
25256		if test "$have_argon2" = "yes" ; then
25257			ol_with_argon2=libsodium
25258			ol_link_argon2=yes
25259
25260$as_echo "#define HAVE_LIBSODIUM 1" >>confdefs.h
25261
25262			ARGON2_LIBS="-lsodium"
25263		fi
25264	fi
25265
25266	if test "$ol_link_argon2" = no ; then
25267		as_fn_error $? "--enable_argon2=$ol_enable_argon2 requires --with-argon2" "$LINENO" 5
25268	fi
25269
25270	BUILD_PW_ARGON2=$ol_enable_argon2
25271	if test "$ol_enable_argon2" = "yes" ; then
25272		SLAPD_DYNAMIC_PWMODS="$SLAPD_DYNAMIC_PWDMODS argon2.la"
25273	fi
25274
25275cat >>confdefs.h <<_ACEOF
25276#define SLAPD_PWMOD_PW_ARGON2 $SLAPD_MOD_DYNAMIC
25277_ACEOF
25278
25279fi
25280
25281if test "$ol_enable_balancer" != no \
25282		-a "$ol_with_threads" != no \
25283		-a "$have_libevent" = yes ; then
25284	if test "$ol_enable_balancer" = mod; then
25285		BALANCER_INCLUDE=Makefile.module
25286		BUILD_BALANCER=mod
25287	else
25288		BALANCER_INCLUDE=Makefile.server
25289		BUILD_BALANCER=yes
25290	fi
25291fi
25292
25293if test "$ol_enable_slapi" != no ; then
25294
25295$as_echo "#define ENABLE_SLAPI 1" >>confdefs.h
25296
25297	BUILD_SLAPI=yes
25298	SLAPD_SLAPI_DEPEND=libslapi.a
25299fi
25300
25301OL_VERSIONED_SYMBOLS=""
25302if test $ol_enable_versioning != no; then
25303	LDVS=`$LD --help < /dev/null 2>/dev/null | grep gnu-version-script`
25304	if test -z "$LDVS"; then
25305		LDVS=`$LD --help < /dev/null 2>/dev/null | grep version-script`
25306		if test -z "$LDVS"; then
25307			if test $ol_enable_versioning = "yes" ; then
25308				as_fn_error $? "Library symbol versioning requested but not supported" "$LINENO" 5
25309			fi
25310		else
25311			OL_VERSIONED_SYMBOLS="-Wl,--version-script="
25312		fi
25313	else
25314		OL_VERSIONED_SYMBOLS="-z gnu-version-script="
25315	fi
25316fi
25317
25318
25319
25320if test "$ac_cv_mingw32" = yes -o $ol_cv_msvc = yes ; then
25321	PLAT=NT
25322	SLAPD_MODULES_LDFLAGS=
25323else
25324	PLAT=UNIX
25325fi
25326
25327
25328
25329
25330
25331
25332
25333
25334
25335
25336
25337
25338
25339
25340
25341
25342
25343
25344
25345
25346
25347
25348
25349
25350
25351
25352
25353
25354
25355
25356
25357
25358
25359
25360
25361
25362
25363
25364
25365
25366
25367
25368
25369
25370
25371
25372
25373
25374
25375
25376
25377
25378
25379
25380
25381
25382
25383
25384
25385
25386
25387
25388
25389
25390
25391
25392
25393
25394
25395
25396
25397
25398
25399
25400
25401
25402
25403
25404
25405
25406
25407
25408
25409
25410
25411
25412
25413
25414
25415
25416
25417
25418
25419
25420
25421
25422
25423
25424
25425
25426
25427
25428
25429
25430
25431
25432# Check whether --with-xxinstall was given.
25433if test "${with_xxinstall+set}" = set; then :
25434  withval=$with_xxinstall;
25435fi
25436
25437
25438
25439ac_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/liblber/lber.pc libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk libraries/libldap/ldap.pc libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/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-ldif/Makefile:build/top.mk:servers/slapd/back-ldif/Makefile.in:build/mod.mk servers/slapd/back-mdb/Makefile:build/top.mk:servers/slapd/back-mdb/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-asyncmeta/Makefile:build/top.mk:servers/slapd/back-asyncmeta/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-sock/Makefile:build/top.mk:servers/slapd/back-sock/Makefile.in:build/mod.mk servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk servers/slapd/back-wt/Makefile:build/top.mk:servers/slapd/back-wt/Makefile.in:build/mod.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/slapd/pwmods/Makefile:build/top.mk:servers/slapd/pwmods/Makefile.in:build/lib.mk servers/lloadd/Makefile:build/top.mk:servers/lloadd/Makefile.in servers/lloadd/Makefile.server:servers/lloadd/Makefile_server.in:build/srv.mk servers/lloadd/Makefile.module:servers/lloadd/Makefile_module.in:build/mod.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"
25440
25441
25442ac_config_commands="$ac_config_commands default"
25443
25444
25445
25446test "x$prefix" = xNONE && prefix=$ac_default_prefix
25447# Let make expand exec_prefix.
25448test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25449
25450DEFS=-DHAVE_CONFIG_H
25451
25452ac_libobjs=
25453ac_ltlibobjs=
25454U=
25455for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25456  # 1. Remove the extension, and $U if already installed.
25457  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25458  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
25459  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
25460  #    will be set to the directory where LIBOBJS objects are built.
25461  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25462  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
25463done
25464LIBOBJS=$ac_libobjs
25465
25466LTLIBOBJS=$ac_ltlibobjs
25467
25468
25469
25470
25471: "${CONFIG_STATUS=./config.status}"
25472ac_write_fail=0
25473ac_clean_files_save=$ac_clean_files
25474ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25475{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
25476$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
25477as_write_fail=0
25478cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
25479#! $SHELL
25480# Generated by $as_me.
25481# Run this file to recreate the current configuration.
25482# Compiler output produced by configure, useful for debugging
25483# configure, is in config.log if it exists.
25484
25485debug=false
25486ac_cs_recheck=false
25487ac_cs_silent=false
25488
25489SHELL=\${CONFIG_SHELL-$SHELL}
25490export SHELL
25491_ASEOF
25492cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
25493## -------------------- ##
25494## M4sh Initialization. ##
25495## -------------------- ##
25496
25497# Be more Bourne compatible
25498DUALCASE=1; export DUALCASE # for MKS sh
25499if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
25500  emulate sh
25501  NULLCMD=:
25502  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25503  # is contrary to our usage.  Disable this feature.
25504  alias -g '${1+"$@"}'='"$@"'
25505  setopt NO_GLOB_SUBST
25506else
25507  case `(set -o) 2>/dev/null` in #(
25508  *posix*) :
25509    set -o posix ;; #(
25510  *) :
25511     ;;
25512esac
25513fi
25514
25515
25516as_nl='
25517'
25518export as_nl
25519# Printing a long string crashes Solaris 7 /usr/bin/printf.
25520as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
25521as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
25522as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
25523# Prefer a ksh shell builtin over an external printf program on Solaris,
25524# but without wasting forks for bash or zsh.
25525if test -z "$BASH_VERSION$ZSH_VERSION" \
25526    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
25527  as_echo='print -r --'
25528  as_echo_n='print -rn --'
25529elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
25530  as_echo='printf %s\n'
25531  as_echo_n='printf %s'
25532else
25533  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
25534    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
25535    as_echo_n='/usr/ucb/echo -n'
25536  else
25537    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
25538    as_echo_n_body='eval
25539      arg=$1;
25540      case $arg in #(
25541      *"$as_nl"*)
25542	expr "X$arg" : "X\\(.*\\)$as_nl";
25543	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
25544      esac;
25545      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
25546    '
25547    export as_echo_n_body
25548    as_echo_n='sh -c $as_echo_n_body as_echo'
25549  fi
25550  export as_echo_body
25551  as_echo='sh -c $as_echo_body as_echo'
25552fi
25553
25554# The user is always right.
25555if test "${PATH_SEPARATOR+set}" != set; then
25556  PATH_SEPARATOR=:
25557  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
25558    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
25559      PATH_SEPARATOR=';'
25560  }
25561fi
25562
25563
25564# IFS
25565# We need space, tab and new line, in precisely that order.  Quoting is
25566# there to prevent editors from complaining about space-tab.
25567# (If _AS_PATH_WALK were called with IFS unset, it would disable word
25568# splitting by setting IFS to empty value.)
25569IFS=" ""	$as_nl"
25570
25571# Find who we are.  Look in the path if we contain no directory separator.
25572as_myself=
25573case $0 in #((
25574  *[\\/]* ) as_myself=$0 ;;
25575  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25576for as_dir in $PATH
25577do
25578  IFS=$as_save_IFS
25579  test -z "$as_dir" && as_dir=.
25580    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25581  done
25582IFS=$as_save_IFS
25583
25584     ;;
25585esac
25586# We did not find ourselves, most probably we were run as `sh COMMAND'
25587# in which case we are not to be found in the path.
25588if test "x$as_myself" = x; then
25589  as_myself=$0
25590fi
25591if test ! -f "$as_myself"; then
25592  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25593  exit 1
25594fi
25595
25596# Unset variables that we do not need and which cause bugs (e.g. in
25597# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
25598# suppresses any "Segmentation fault" message there.  '((' could
25599# trigger a bug in pdksh 5.2.14.
25600for as_var in BASH_ENV ENV MAIL MAILPATH
25601do eval test x\${$as_var+set} = xset \
25602  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
25603done
25604PS1='$ '
25605PS2='> '
25606PS4='+ '
25607
25608# NLS nuisances.
25609LC_ALL=C
25610export LC_ALL
25611LANGUAGE=C
25612export LANGUAGE
25613
25614# CDPATH.
25615(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25616
25617
25618# as_fn_error STATUS ERROR [LINENO LOG_FD]
25619# ----------------------------------------
25620# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
25621# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
25622# script with STATUS, using 1 if that was 0.
25623as_fn_error ()
25624{
25625  as_status=$1; test $as_status -eq 0 && as_status=1
25626  if test "$4"; then
25627    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
25628    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
25629  fi
25630  $as_echo "$as_me: error: $2" >&2
25631  as_fn_exit $as_status
25632} # as_fn_error
25633
25634
25635# as_fn_set_status STATUS
25636# -----------------------
25637# Set $? to STATUS, without forking.
25638as_fn_set_status ()
25639{
25640  return $1
25641} # as_fn_set_status
25642
25643# as_fn_exit STATUS
25644# -----------------
25645# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
25646as_fn_exit ()
25647{
25648  set +e
25649  as_fn_set_status $1
25650  exit $1
25651} # as_fn_exit
25652
25653# as_fn_unset VAR
25654# ---------------
25655# Portably unset VAR.
25656as_fn_unset ()
25657{
25658  { eval $1=; unset $1;}
25659}
25660as_unset=as_fn_unset
25661# as_fn_append VAR VALUE
25662# ----------------------
25663# Append the text in VALUE to the end of the definition contained in VAR. Take
25664# advantage of any shell optimizations that allow amortized linear growth over
25665# repeated appends, instead of the typical quadratic growth present in naive
25666# implementations.
25667if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
25668  eval 'as_fn_append ()
25669  {
25670    eval $1+=\$2
25671  }'
25672else
25673  as_fn_append ()
25674  {
25675    eval $1=\$$1\$2
25676  }
25677fi # as_fn_append
25678
25679# as_fn_arith ARG...
25680# ------------------
25681# Perform arithmetic evaluation on the ARGs, and store the result in the
25682# global $as_val. Take advantage of shells that can avoid forks. The arguments
25683# must be portable across $(()) and expr.
25684if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
25685  eval 'as_fn_arith ()
25686  {
25687    as_val=$(( $* ))
25688  }'
25689else
25690  as_fn_arith ()
25691  {
25692    as_val=`expr "$@" || test $? -eq 1`
25693  }
25694fi # as_fn_arith
25695
25696
25697if expr a : '\(a\)' >/dev/null 2>&1 &&
25698   test "X`expr 00001 : '.*\(...\)'`" = X001; then
25699  as_expr=expr
25700else
25701  as_expr=false
25702fi
25703
25704if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25705  as_basename=basename
25706else
25707  as_basename=false
25708fi
25709
25710if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25711  as_dirname=dirname
25712else
25713  as_dirname=false
25714fi
25715
25716as_me=`$as_basename -- "$0" ||
25717$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25718	 X"$0" : 'X\(//\)$' \| \
25719	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25720$as_echo X/"$0" |
25721    sed '/^.*\/\([^/][^/]*\)\/*$/{
25722	    s//\1/
25723	    q
25724	  }
25725	  /^X\/\(\/\/\)$/{
25726	    s//\1/
25727	    q
25728	  }
25729	  /^X\/\(\/\).*/{
25730	    s//\1/
25731	    q
25732	  }
25733	  s/.*/./; q'`
25734
25735# Avoid depending upon Character Ranges.
25736as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25737as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25738as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25739as_cr_digits='0123456789'
25740as_cr_alnum=$as_cr_Letters$as_cr_digits
25741
25742ECHO_C= ECHO_N= ECHO_T=
25743case `echo -n x` in #(((((
25744-n*)
25745  case `echo 'xy\c'` in
25746  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
25747  xy)  ECHO_C='\c';;
25748  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
25749       ECHO_T='	';;
25750  esac;;
25751*)
25752  ECHO_N='-n';;
25753esac
25754
25755rm -f conf$$ conf$$.exe conf$$.file
25756if test -d conf$$.dir; then
25757  rm -f conf$$.dir/conf$$.file
25758else
25759  rm -f conf$$.dir
25760  mkdir conf$$.dir 2>/dev/null
25761fi
25762if (echo >conf$$.file) 2>/dev/null; then
25763  if ln -s conf$$.file conf$$ 2>/dev/null; then
25764    as_ln_s='ln -s'
25765    # ... but there are two gotchas:
25766    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25767    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25768    # In both cases, we have to default to `cp -pR'.
25769    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25770      as_ln_s='cp -pR'
25771  elif ln conf$$.file conf$$ 2>/dev/null; then
25772    as_ln_s=ln
25773  else
25774    as_ln_s='cp -pR'
25775  fi
25776else
25777  as_ln_s='cp -pR'
25778fi
25779rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25780rmdir conf$$.dir 2>/dev/null
25781
25782
25783# as_fn_mkdir_p
25784# -------------
25785# Create "$as_dir" as a directory, including parents if necessary.
25786as_fn_mkdir_p ()
25787{
25788
25789  case $as_dir in #(
25790  -*) as_dir=./$as_dir;;
25791  esac
25792  test -d "$as_dir" || eval $as_mkdir_p || {
25793    as_dirs=
25794    while :; do
25795      case $as_dir in #(
25796      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
25797      *) as_qdir=$as_dir;;
25798      esac
25799      as_dirs="'$as_qdir' $as_dirs"
25800      as_dir=`$as_dirname -- "$as_dir" ||
25801$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25802	 X"$as_dir" : 'X\(//\)[^/]' \| \
25803	 X"$as_dir" : 'X\(//\)$' \| \
25804	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25805$as_echo X"$as_dir" |
25806    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25807	    s//\1/
25808	    q
25809	  }
25810	  /^X\(\/\/\)[^/].*/{
25811	    s//\1/
25812	    q
25813	  }
25814	  /^X\(\/\/\)$/{
25815	    s//\1/
25816	    q
25817	  }
25818	  /^X\(\/\).*/{
25819	    s//\1/
25820	    q
25821	  }
25822	  s/.*/./; q'`
25823      test -d "$as_dir" && break
25824    done
25825    test -z "$as_dirs" || eval "mkdir $as_dirs"
25826  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
25827
25828
25829} # as_fn_mkdir_p
25830if mkdir -p . 2>/dev/null; then
25831  as_mkdir_p='mkdir -p "$as_dir"'
25832else
25833  test -d ./-p && rmdir ./-p
25834  as_mkdir_p=false
25835fi
25836
25837
25838# as_fn_executable_p FILE
25839# -----------------------
25840# Test if FILE is an executable regular file.
25841as_fn_executable_p ()
25842{
25843  test -f "$1" && test -x "$1"
25844} # as_fn_executable_p
25845as_test_x='test -x'
25846as_executable_p=as_fn_executable_p
25847
25848# Sed expression to map a string onto a valid CPP name.
25849as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25850
25851# Sed expression to map a string onto a valid variable name.
25852as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25853
25854
25855exec 6>&1
25856## ----------------------------------- ##
25857## Main body of $CONFIG_STATUS script. ##
25858## ----------------------------------- ##
25859_ASEOF
25860test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
25861
25862cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25863# Save the log message, to keep $0 and so on meaningful, and to
25864# report actual input values of CONFIG_FILES etc. instead of their
25865# values after options handling.
25866ac_log="
25867This file was extended by $as_me, which was
25868generated by GNU Autoconf 2.69.  Invocation command line was
25869
25870  CONFIG_FILES    = $CONFIG_FILES
25871  CONFIG_HEADERS  = $CONFIG_HEADERS
25872  CONFIG_LINKS    = $CONFIG_LINKS
25873  CONFIG_COMMANDS = $CONFIG_COMMANDS
25874  $ $0 $@
25875
25876on `(hostname || uname -n) 2>/dev/null | sed 1q`
25877"
25878
25879_ACEOF
25880
25881case $ac_config_files in *"
25882"*) set x $ac_config_files; shift; ac_config_files=$*;;
25883esac
25884
25885case $ac_config_headers in *"
25886"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
25887esac
25888
25889
25890cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25891# Files that config.status was made for.
25892config_files="$ac_config_files"
25893config_headers="$ac_config_headers"
25894config_commands="$ac_config_commands"
25895
25896_ACEOF
25897
25898cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25899ac_cs_usage="\
25900\`$as_me' instantiates files and other configuration actions
25901from templates according to the current configuration.  Unless the files
25902and actions are specified as TAGs, all are instantiated by default.
25903
25904Usage: $0 [OPTION]... [TAG]...
25905
25906  -h, --help       print this help, then exit
25907  -V, --version    print version number and configuration settings, then exit
25908      --config     print configuration, then exit
25909  -q, --quiet, --silent
25910                   do not print progress messages
25911  -d, --debug      don't remove temporary files
25912      --recheck    update $as_me by reconfiguring in the same conditions
25913      --file=FILE[:TEMPLATE]
25914                   instantiate the configuration file FILE
25915      --header=FILE[:TEMPLATE]
25916                   instantiate the configuration header FILE
25917
25918Configuration files:
25919$config_files
25920
25921Configuration headers:
25922$config_headers
25923
25924Configuration commands:
25925$config_commands
25926
25927Report bugs to the package provider."
25928
25929_ACEOF
25930cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25931ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
25932ac_cs_version="\\
25933config.status
25934configured by $0, generated by GNU Autoconf 2.69,
25935  with options \\"\$ac_cs_config\\"
25936
25937Copyright (C) 2012 Free Software Foundation, Inc.
25938This config.status script is free software; the Free Software Foundation
25939gives unlimited permission to copy, distribute and modify it."
25940
25941ac_pwd='$ac_pwd'
25942srcdir='$srcdir'
25943AWK='$AWK'
25944test -n "\$AWK" || AWK=awk
25945_ACEOF
25946
25947cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25948# The default lists apply if the user does not specify any file.
25949ac_need_defaults=:
25950while test $# != 0
25951do
25952  case $1 in
25953  --*=?*)
25954    ac_option=`expr "X$1" : 'X\([^=]*\)='`
25955    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25956    ac_shift=:
25957    ;;
25958  --*=)
25959    ac_option=`expr "X$1" : 'X\([^=]*\)='`
25960    ac_optarg=
25961    ac_shift=:
25962    ;;
25963  *)
25964    ac_option=$1
25965    ac_optarg=$2
25966    ac_shift=shift
25967    ;;
25968  esac
25969
25970  case $ac_option in
25971  # Handling of the options.
25972  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25973    ac_cs_recheck=: ;;
25974  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25975    $as_echo "$ac_cs_version"; exit ;;
25976  --config | --confi | --conf | --con | --co | --c )
25977    $as_echo "$ac_cs_config"; exit ;;
25978  --debug | --debu | --deb | --de | --d | -d )
25979    debug=: ;;
25980  --file | --fil | --fi | --f )
25981    $ac_shift
25982    case $ac_optarg in
25983    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25984    '') as_fn_error $? "missing file argument" ;;
25985    esac
25986    as_fn_append CONFIG_FILES " '$ac_optarg'"
25987    ac_need_defaults=false;;
25988  --header | --heade | --head | --hea )
25989    $ac_shift
25990    case $ac_optarg in
25991    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25992    esac
25993    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
25994    ac_need_defaults=false;;
25995  --he | --h)
25996    # Conflict between --help and --header
25997    as_fn_error $? "ambiguous option: \`$1'
25998Try \`$0 --help' for more information.";;
25999  --help | --hel | -h )
26000    $as_echo "$ac_cs_usage"; exit ;;
26001  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26002  | -silent | --silent | --silen | --sile | --sil | --si | --s)
26003    ac_cs_silent=: ;;
26004
26005  # This is an error.
26006  -*) as_fn_error $? "unrecognized option: \`$1'
26007Try \`$0 --help' for more information." ;;
26008
26009  *) as_fn_append ac_config_targets " $1"
26010     ac_need_defaults=false ;;
26011
26012  esac
26013  shift
26014done
26015
26016ac_configure_extra_args=
26017
26018if $ac_cs_silent; then
26019  exec 6>/dev/null
26020  ac_configure_extra_args="$ac_configure_extra_args --silent"
26021fi
26022
26023_ACEOF
26024cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26025if \$ac_cs_recheck; then
26026  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26027  shift
26028  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
26029  CONFIG_SHELL='$SHELL'
26030  export CONFIG_SHELL
26031  exec "\$@"
26032fi
26033
26034_ACEOF
26035cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26036exec 5>>config.log
26037{
26038  echo
26039  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26040## Running $as_me. ##
26041_ASBOX
26042  $as_echo "$ac_log"
26043} >&5
26044
26045_ACEOF
26046cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26047#
26048# INIT-COMMANDS
26049#
26050
26051
26052# The HP-UX ksh and POSIX shell print the target directory to stdout
26053# if CDPATH is set.
26054(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
26055
26056sed_quote_subst='$sed_quote_subst'
26057double_quote_subst='$double_quote_subst'
26058delay_variable_subst='$delay_variable_subst'
26059enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
26060enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
26061macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
26062macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
26063pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
26064enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
26065shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
26066SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
26067ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
26068PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
26069host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
26070host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
26071host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
26072build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
26073build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
26074build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
26075SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
26076Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
26077GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
26078EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
26079FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
26080LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
26081NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
26082LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
26083max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
26084ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
26085exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
26086lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
26087lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
26088lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
26089lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
26090lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
26091reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
26092reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
26093OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
26094deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
26095file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
26096file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
26097want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
26098DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
26099sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
26100AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
26101AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
26102archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
26103STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
26104RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
26105old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
26106old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
26107old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
26108lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
26109CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
26110CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
26111compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
26112GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
26113lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
26114lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
26115lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
26116lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
26117lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
26118lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
26119nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
26120lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
26121lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
26122objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
26123MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
26124lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
26125lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
26126lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
26127lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
26128lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
26129need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
26130MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
26131DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
26132NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
26133LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
26134OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
26135OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
26136libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
26137shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
26138extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
26139archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
26140enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
26141export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
26142whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
26143compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
26144old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
26145old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
26146archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
26147archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
26148module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
26149module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
26150with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
26151allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
26152no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
26153hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
26154hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
26155hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
26156hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
26157hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
26158hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
26159hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
26160inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
26161link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
26162always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
26163export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
26164exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
26165include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
26166prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
26167postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
26168file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
26169variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
26170need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
26171need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
26172version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
26173runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
26174shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
26175shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
26176libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
26177library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
26178soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
26179install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
26180postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
26181postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
26182finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
26183finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
26184hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
26185sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
26186configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
26187configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
26188hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
26189enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
26190enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
26191enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
26192old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
26193striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
26194
26195LTCC='$LTCC'
26196LTCFLAGS='$LTCFLAGS'
26197compiler='$compiler_DEFAULT'
26198
26199# A function that is used when there is no print builtin or printf.
26200func_fallback_echo ()
26201{
26202  eval 'cat <<_LTECHO_EOF
26203\$1
26204_LTECHO_EOF'
26205}
26206
26207# Quote evaled strings.
26208for var in SHELL \
26209ECHO \
26210PATH_SEPARATOR \
26211SED \
26212GREP \
26213EGREP \
26214FGREP \
26215LD \
26216NM \
26217LN_S \
26218lt_SP2NL \
26219lt_NL2SP \
26220reload_flag \
26221OBJDUMP \
26222deplibs_check_method \
26223file_magic_cmd \
26224file_magic_glob \
26225want_nocaseglob \
26226DLLTOOL \
26227sharedlib_from_linklib_cmd \
26228AR \
26229AR_FLAGS \
26230archiver_list_spec \
26231STRIP \
26232RANLIB \
26233CC \
26234CFLAGS \
26235compiler \
26236lt_cv_sys_global_symbol_pipe \
26237lt_cv_sys_global_symbol_to_cdecl \
26238lt_cv_sys_global_symbol_to_import \
26239lt_cv_sys_global_symbol_to_c_name_address \
26240lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
26241lt_cv_nm_interface \
26242nm_file_list_spec \
26243lt_cv_truncate_bin \
26244lt_prog_compiler_no_builtin_flag \
26245lt_prog_compiler_pic \
26246lt_prog_compiler_wl \
26247lt_prog_compiler_static \
26248lt_cv_prog_compiler_c_o \
26249need_locks \
26250MANIFEST_TOOL \
26251DSYMUTIL \
26252NMEDIT \
26253LIPO \
26254OTOOL \
26255OTOOL64 \
26256shrext_cmds \
26257export_dynamic_flag_spec \
26258whole_archive_flag_spec \
26259compiler_needs_object \
26260with_gnu_ld \
26261allow_undefined_flag \
26262no_undefined_flag \
26263hardcode_libdir_flag_spec \
26264hardcode_libdir_separator \
26265exclude_expsyms \
26266include_expsyms \
26267file_list_spec \
26268variables_saved_for_relink \
26269libname_spec \
26270library_names_spec \
26271soname_spec \
26272install_override_mode \
26273finish_eval \
26274old_striplib \
26275striplib; do
26276    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
26277    *[\\\\\\\`\\"\\\$]*)
26278      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
26279      ;;
26280    *)
26281      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
26282      ;;
26283    esac
26284done
26285
26286# Double-quote double-evaled strings.
26287for var in reload_cmds \
26288old_postinstall_cmds \
26289old_postuninstall_cmds \
26290old_archive_cmds \
26291extract_expsyms_cmds \
26292old_archive_from_new_cmds \
26293old_archive_from_expsyms_cmds \
26294archive_cmds \
26295archive_expsym_cmds \
26296module_cmds \
26297module_expsym_cmds \
26298export_symbols_cmds \
26299prelink_cmds \
26300postlink_cmds \
26301postinstall_cmds \
26302postuninstall_cmds \
26303finish_cmds \
26304sys_lib_search_path_spec \
26305configure_time_dlsearch_path \
26306configure_time_lt_sys_library_path; do
26307    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
26308    *[\\\\\\\`\\"\\\$]*)
26309      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
26310      ;;
26311    *)
26312      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
26313      ;;
26314    esac
26315done
26316
26317ac_aux_dir='$ac_aux_dir'
26318
26319# See if we are running on zsh, and set the options that allow our
26320# commands through without removal of \ escapes INIT.
26321if test -n "\${ZSH_VERSION+set}"; then
26322   setopt NO_GLOB_SUBST
26323fi
26324
26325
26326    PACKAGE='$PACKAGE'
26327    VERSION='$VERSION'
26328    RM='$RM'
26329    ofile='$ofile'
26330
26331
26332
26333
26334STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS"
26335STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS"
26336
26337
26338_ACEOF
26339
26340cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26341
26342# Handling of arguments.
26343for ac_config_target in $ac_config_targets
26344do
26345  case $ac_config_target in
26346    "include/portable.h") CONFIG_HEADERS="$CONFIG_HEADERS include/portable.h:include/portable.hin" ;;
26347    "include/ldap_features.h") CONFIG_HEADERS="$CONFIG_HEADERS include/ldap_features.h:include/ldap_features.hin" ;;
26348    "include/lber_types.h") CONFIG_HEADERS="$CONFIG_HEADERS include/lber_types.h:include/lber_types.hin" ;;
26349    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
26350    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:build/top.mk:Makefile.in:build/dir.mk" ;;
26351    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk" ;;
26352    "doc/man/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk" ;;
26353    "doc/man/man1/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk" ;;
26354    "doc/man/man3/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk" ;;
26355    "doc/man/man5/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk" ;;
26356    "doc/man/man8/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk" ;;
26357    "clients/Makefile") CONFIG_FILES="$CONFIG_FILES clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk" ;;
26358    "clients/tools/Makefile") CONFIG_FILES="$CONFIG_FILES clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk" ;;
26359    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile:build/top.mk:include/Makefile.in" ;;
26360    "libraries/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk" ;;
26361    "libraries/liblber/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
26362    "libraries/liblber/lber.pc") CONFIG_FILES="$CONFIG_FILES libraries/liblber/lber.pc" ;;
26363    "libraries/libldap/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
26364    "libraries/libldap/ldap.pc") CONFIG_FILES="$CONFIG_FILES libraries/libldap/ldap.pc" ;;
26365    "libraries/liblunicode/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
26366    "libraries/liblutil/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
26367    "libraries/librewrite/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
26368    "servers/Makefile") CONFIG_FILES="$CONFIG_FILES servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk" ;;
26369    "servers/slapd/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk" ;;
26370    "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" ;;
26371    "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" ;;
26372    "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" ;;
26373    "servers/slapd/back-mdb/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/back-mdb/Makefile:build/top.mk:servers/slapd/back-mdb/Makefile.in:build/mod.mk" ;;
26374    "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" ;;
26375    "servers/slapd/back-asyncmeta/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/back-asyncmeta/Makefile:build/top.mk:servers/slapd/back-asyncmeta/Makefile.in:build/mod.mk" ;;
26376    "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" ;;
26377    "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" ;;
26378    "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" ;;
26379    "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" ;;
26380    "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" ;;
26381    "servers/slapd/back-sock/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/back-sock/Makefile:build/top.mk:servers/slapd/back-sock/Makefile.in:build/mod.mk" ;;
26382    "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" ;;
26383    "servers/slapd/back-wt/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/back-wt/Makefile:build/top.mk:servers/slapd/back-wt/Makefile.in:build/mod.mk" ;;
26384    "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" ;;
26385    "servers/slapd/overlays/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk" ;;
26386    "servers/slapd/pwmods/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/pwmods/Makefile:build/top.mk:servers/slapd/pwmods/Makefile.in:build/lib.mk" ;;
26387    "servers/lloadd/Makefile") CONFIG_FILES="$CONFIG_FILES servers/lloadd/Makefile:build/top.mk:servers/lloadd/Makefile.in" ;;
26388    "servers/lloadd/Makefile.server") CONFIG_FILES="$CONFIG_FILES servers/lloadd/Makefile.server:servers/lloadd/Makefile_server.in:build/srv.mk" ;;
26389    "servers/lloadd/Makefile.module") CONFIG_FILES="$CONFIG_FILES servers/lloadd/Makefile.module:servers/lloadd/Makefile_module.in:build/mod.mk" ;;
26390    "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk" ;;
26391    "tests/run") CONFIG_FILES="$CONFIG_FILES tests/run" ;;
26392    "tests/progs/Makefile") CONFIG_FILES="$CONFIG_FILES tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk" ;;
26393    "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
26394
26395  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
26396  esac
26397done
26398
26399
26400# If the user did not use the arguments to specify the items to instantiate,
26401# then the envvar interface is used.  Set only those that are not.
26402# We use the long form for the default assignment because of an extremely
26403# bizarre bug on SunOS 4.1.3.
26404if $ac_need_defaults; then
26405  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26406  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26407  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26408fi
26409
26410# Have a temporary directory for convenience.  Make it in the build tree
26411# simply because there is no reason against having it here, and in addition,
26412# creating and moving files from /tmp can sometimes cause problems.
26413# Hook for its removal unless debugging.
26414# Note that there is a small window in which the directory will not be cleaned:
26415# after its creation but before its name has been assigned to `$tmp'.
26416$debug ||
26417{
26418  tmp= ac_tmp=
26419  trap 'exit_status=$?
26420  : "${ac_tmp:=$tmp}"
26421  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
26422' 0
26423  trap 'as_fn_exit 1' 1 2 13 15
26424}
26425# Create a (secure) tmp directory for tmp files.
26426
26427{
26428  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26429  test -d "$tmp"
26430}  ||
26431{
26432  tmp=./conf$$-$RANDOM
26433  (umask 077 && mkdir "$tmp")
26434} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
26435ac_tmp=$tmp
26436
26437# Set up the scripts for CONFIG_FILES section.
26438# No need to generate them if there are no CONFIG_FILES.
26439# This happens for instance with `./config.status config.h'.
26440if test -n "$CONFIG_FILES"; then
26441
26442
26443ac_cr=`echo X | tr X '\015'`
26444# On cygwin, bash can eat \r inside `` if the user requested igncr.
26445# But we know of no other shell where ac_cr would be empty at this
26446# point, so we can use a bashism as a fallback.
26447if test "x$ac_cr" = x; then
26448  eval ac_cr=\$\'\\r\'
26449fi
26450ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
26451if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
26452  ac_cs_awk_cr='\\r'
26453else
26454  ac_cs_awk_cr=$ac_cr
26455fi
26456
26457echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
26458_ACEOF
26459
26460
26461{
26462  echo "cat >conf$$subs.awk <<_ACEOF" &&
26463  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26464  echo "_ACEOF"
26465} >conf$$subs.sh ||
26466  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
26467ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
26468ac_delim='%!_!# '
26469for ac_last_try in false false false false false :; do
26470  . ./conf$$subs.sh ||
26471    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
26472
26473  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
26474  if test $ac_delim_n = $ac_delim_num; then
26475    break
26476  elif $ac_last_try; then
26477    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
26478  else
26479    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26480  fi
26481done
26482rm -f conf$$subs.sh
26483
26484cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26485cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
26486_ACEOF
26487sed -n '
26488h
26489s/^/S["/; s/!.*/"]=/
26490p
26491g
26492s/^[^!]*!//
26493:repl
26494t repl
26495s/'"$ac_delim"'$//
26496t delim
26497:nl
26498h
26499s/\(.\{148\}\)..*/\1/
26500t more1
26501s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
26502p
26503n
26504b repl
26505:more1
26506s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26507p
26508g
26509s/.\{148\}//
26510t nl
26511:delim
26512h
26513s/\(.\{148\}\)..*/\1/
26514t more2
26515s/["\\]/\\&/g; s/^/"/; s/$/"/
26516p
26517b
26518:more2
26519s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26520p
26521g
26522s/.\{148\}//
26523t delim
26524' <conf$$subs.awk | sed '
26525/^[^""]/{
26526  N
26527  s/\n//
26528}
26529' >>$CONFIG_STATUS || ac_write_fail=1
26530rm -f conf$$subs.awk
26531cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26532_ACAWK
26533cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
26534  for (key in S) S_is_set[key] = 1
26535  FS = ""
26536
26537}
26538{
26539  line = $ 0
26540  nfields = split(line, field, "@")
26541  substed = 0
26542  len = length(field[1])
26543  for (i = 2; i < nfields; i++) {
26544    key = field[i]
26545    keylen = length(key)
26546    if (S_is_set[key]) {
26547      value = S[key]
26548      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26549      len += length(value) + length(field[++i])
26550      substed = 1
26551    } else
26552      len += 1 + keylen
26553  }
26554
26555  print line
26556}
26557
26558_ACAWK
26559_ACEOF
26560cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26561if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26562  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
26563else
26564  cat
26565fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
26566  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
26567_ACEOF
26568
26569# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
26570# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
26571# trailing colons and then remove the whole line if VPATH becomes empty
26572# (actually we leave an empty line to preserve line numbers).
26573if test "x$srcdir" = x.; then
26574  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
26575h
26576s///
26577s/^/:/
26578s/[	 ]*$/:/
26579s/:\$(srcdir):/:/g
26580s/:\${srcdir}:/:/g
26581s/:@srcdir@:/:/g
26582s/^:*//
26583s/:*$//
26584x
26585s/\(=[	 ]*\).*/\1/
26586G
26587s/\n//
26588s/^[^=]*=[	 ]*$//
26589}'
26590fi
26591
26592cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26593fi # test -n "$CONFIG_FILES"
26594
26595# Set up the scripts for CONFIG_HEADERS section.
26596# No need to generate them if there are no CONFIG_HEADERS.
26597# This happens for instance with `./config.status Makefile'.
26598if test -n "$CONFIG_HEADERS"; then
26599cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
26600BEGIN {
26601_ACEOF
26602
26603# Transform confdefs.h into an awk script `defines.awk', embedded as
26604# here-document in config.status, that substitutes the proper values into
26605# config.h.in to produce config.h.
26606
26607# Create a delimiter string that does not exist in confdefs.h, to ease
26608# handling of long lines.
26609ac_delim='%!_!# '
26610for ac_last_try in false false :; do
26611  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
26612  if test -z "$ac_tt"; then
26613    break
26614  elif $ac_last_try; then
26615    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
26616  else
26617    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26618  fi
26619done
26620
26621# For the awk script, D is an array of macro values keyed by name,
26622# likewise P contains macro parameters if any.  Preserve backslash
26623# newline sequences.
26624
26625ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26626sed -n '
26627s/.\{148\}/&'"$ac_delim"'/g
26628t rset
26629:rset
26630s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
26631t def
26632d
26633:def
26634s/\\$//
26635t bsnl
26636s/["\\]/\\&/g
26637s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
26638D["\1"]=" \3"/p
26639s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
26640d
26641:bsnl
26642s/["\\]/\\&/g
26643s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
26644D["\1"]=" \3\\\\\\n"\\/p
26645t cont
26646s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
26647t cont
26648d
26649:cont
26650n
26651s/.\{148\}/&'"$ac_delim"'/g
26652t clear
26653:clear
26654s/\\$//
26655t bsnlc
26656s/["\\]/\\&/g; s/^/"/; s/$/"/p
26657d
26658:bsnlc
26659s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
26660b cont
26661' <confdefs.h | sed '
26662s/'"$ac_delim"'/"\\\
26663"/g' >>$CONFIG_STATUS || ac_write_fail=1
26664
26665cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26666  for (key in D) D_is_set[key] = 1
26667  FS = ""
26668}
26669/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26670  line = \$ 0
26671  split(line, arg, " ")
26672  if (arg[1] == "#") {
26673    defundef = arg[2]
26674    mac1 = arg[3]
26675  } else {
26676    defundef = substr(arg[1], 2)
26677    mac1 = arg[2]
26678  }
26679  split(mac1, mac2, "(") #)
26680  macro = mac2[1]
26681  prefix = substr(line, 1, index(line, defundef) - 1)
26682  if (D_is_set[macro]) {
26683    # Preserve the white space surrounding the "#".
26684    print prefix "define", macro P[macro] D[macro]
26685    next
26686  } else {
26687    # Replace #undef with comments.  This is necessary, for example,
26688    # in the case of _POSIX_SOURCE, which is predefined and required
26689    # on some systems where configure will not decide to define it.
26690    if (defundef == "undef") {
26691      print "/*", prefix defundef, macro, "*/"
26692      next
26693    }
26694  }
26695}
26696{ print }
26697_ACAWK
26698_ACEOF
26699cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26700  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
26701fi # test -n "$CONFIG_HEADERS"
26702
26703
26704eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
26705shift
26706for ac_tag
26707do
26708  case $ac_tag in
26709  :[FHLC]) ac_mode=$ac_tag; continue;;
26710  esac
26711  case $ac_mode$ac_tag in
26712  :[FHL]*:*);;
26713  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
26714  :[FH]-) ac_tag=-:-;;
26715  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26716  esac
26717  ac_save_IFS=$IFS
26718  IFS=:
26719  set x $ac_tag
26720  IFS=$ac_save_IFS
26721  shift
26722  ac_file=$1
26723  shift
26724
26725  case $ac_mode in
26726  :L) ac_source=$1;;
26727  :[FH])
26728    ac_file_inputs=
26729    for ac_f
26730    do
26731      case $ac_f in
26732      -) ac_f="$ac_tmp/stdin";;
26733      *) # Look for the file first in the build tree, then in the source tree
26734	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
26735	 # because $ac_f cannot contain `:'.
26736	 test -f "$ac_f" ||
26737	   case $ac_f in
26738	   [\\/$]*) false;;
26739	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26740	   esac ||
26741	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
26742      esac
26743      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26744      as_fn_append ac_file_inputs " '$ac_f'"
26745    done
26746
26747    # Let's still pretend it is `configure' which instantiates (i.e., don't
26748    # use $as_me), people would be surprised to read:
26749    #    /* config.h.  Generated by config.status.  */
26750    configure_input='Generated from '`
26751	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
26752	`' by configure.'
26753    if test x"$ac_file" != x-; then
26754      configure_input="$ac_file.  $configure_input"
26755      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
26756$as_echo "$as_me: creating $ac_file" >&6;}
26757    fi
26758    # Neutralize special characters interpreted by sed in replacement strings.
26759    case $configure_input in #(
26760    *\&* | *\|* | *\\* )
26761       ac_sed_conf_input=`$as_echo "$configure_input" |
26762       sed 's/[\\\\&|]/\\\\&/g'`;; #(
26763    *) ac_sed_conf_input=$configure_input;;
26764    esac
26765
26766    case $ac_tag in
26767    *:-:* | *:-) cat >"$ac_tmp/stdin" \
26768      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
26769    esac
26770    ;;
26771  esac
26772
26773  ac_dir=`$as_dirname -- "$ac_file" ||
26774$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26775	 X"$ac_file" : 'X\(//\)[^/]' \| \
26776	 X"$ac_file" : 'X\(//\)$' \| \
26777	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26778$as_echo X"$ac_file" |
26779    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26780	    s//\1/
26781	    q
26782	  }
26783	  /^X\(\/\/\)[^/].*/{
26784	    s//\1/
26785	    q
26786	  }
26787	  /^X\(\/\/\)$/{
26788	    s//\1/
26789	    q
26790	  }
26791	  /^X\(\/\).*/{
26792	    s//\1/
26793	    q
26794	  }
26795	  s/.*/./; q'`
26796  as_dir="$ac_dir"; as_fn_mkdir_p
26797  ac_builddir=.
26798
26799case "$ac_dir" in
26800.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26801*)
26802  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
26803  # A ".." for each directory in $ac_dir_suffix.
26804  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
26805  case $ac_top_builddir_sub in
26806  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26807  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26808  esac ;;
26809esac
26810ac_abs_top_builddir=$ac_pwd
26811ac_abs_builddir=$ac_pwd$ac_dir_suffix
26812# for backward compatibility:
26813ac_top_builddir=$ac_top_build_prefix
26814
26815case $srcdir in
26816  .)  # We are building in place.
26817    ac_srcdir=.
26818    ac_top_srcdir=$ac_top_builddir_sub
26819    ac_abs_top_srcdir=$ac_pwd ;;
26820  [\\/]* | ?:[\\/]* )  # Absolute name.
26821    ac_srcdir=$srcdir$ac_dir_suffix;
26822    ac_top_srcdir=$srcdir
26823    ac_abs_top_srcdir=$srcdir ;;
26824  *) # Relative name.
26825    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26826    ac_top_srcdir=$ac_top_build_prefix$srcdir
26827    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26828esac
26829ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26830
26831
26832  case $ac_mode in
26833  :F)
26834  #
26835  # CONFIG_FILE
26836  #
26837
26838_ACEOF
26839
26840cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26841# If the template does not know about datarootdir, expand it.
26842# FIXME: This hack should be removed a few years after 2.60.
26843ac_datarootdir_hack=; ac_datarootdir_seen=
26844ac_sed_dataroot='
26845/datarootdir/ {
26846  p
26847  q
26848}
26849/@datadir@/p
26850/@docdir@/p
26851/@infodir@/p
26852/@localedir@/p
26853/@mandir@/p'
26854case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
26855*datarootdir*) ac_datarootdir_seen=yes;;
26856*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26857  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26858$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26859_ACEOF
26860cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26861  ac_datarootdir_hack='
26862  s&@datadir@&$datadir&g
26863  s&@docdir@&$docdir&g
26864  s&@infodir@&$infodir&g
26865  s&@localedir@&$localedir&g
26866  s&@mandir@&$mandir&g
26867  s&\\\${datarootdir}&$datarootdir&g' ;;
26868esac
26869_ACEOF
26870
26871# Neutralize VPATH when `$srcdir' = `.'.
26872# Shell code in configure.ac might set extrasub.
26873# FIXME: do we really want to maintain this feature?
26874cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26875ac_sed_extra="$ac_vpsub
26876$extrasub
26877_ACEOF
26878cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26879:t
26880/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26881s|@configure_input@|$ac_sed_conf_input|;t t
26882s&@top_builddir@&$ac_top_builddir_sub&;t t
26883s&@top_build_prefix@&$ac_top_build_prefix&;t t
26884s&@srcdir@&$ac_srcdir&;t t
26885s&@abs_srcdir@&$ac_abs_srcdir&;t t
26886s&@top_srcdir@&$ac_top_srcdir&;t t
26887s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26888s&@builddir@&$ac_builddir&;t t
26889s&@abs_builddir@&$ac_abs_builddir&;t t
26890s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26891$ac_datarootdir_hack
26892"
26893eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
26894  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26895
26896test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26897  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
26898  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
26899      "$ac_tmp/out"`; test -z "$ac_out"; } &&
26900  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26901which seems to be undefined.  Please make sure it is defined" >&5
26902$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26903which seems to be undefined.  Please make sure it is defined" >&2;}
26904
26905  rm -f "$ac_tmp/stdin"
26906  case $ac_file in
26907  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
26908  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
26909  esac \
26910  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26911 ;;
26912  :H)
26913  #
26914  # CONFIG_HEADER
26915  #
26916  if test x"$ac_file" != x-; then
26917    {
26918      $as_echo "/* $configure_input  */" \
26919      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
26920    } >"$ac_tmp/config.h" \
26921      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26922    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
26923      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
26924$as_echo "$as_me: $ac_file is unchanged" >&6;}
26925    else
26926      rm -f "$ac_file"
26927      mv "$ac_tmp/config.h" "$ac_file" \
26928	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
26929    fi
26930  else
26931    $as_echo "/* $configure_input  */" \
26932      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
26933      || as_fn_error $? "could not create -" "$LINENO" 5
26934  fi
26935 ;;
26936
26937  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
26938$as_echo "$as_me: executing $ac_file commands" >&6;}
26939 ;;
26940  esac
26941
26942
26943  case $ac_file$ac_mode in
26944    "libtool":C)
26945
26946    # See if we are running on zsh, and set the options that allow our
26947    # commands through without removal of \ escapes.
26948    if test -n "${ZSH_VERSION+set}"; then
26949      setopt NO_GLOB_SUBST
26950    fi
26951
26952    cfgfile=${ofile}T
26953    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
26954    $RM "$cfgfile"
26955
26956    cat <<_LT_EOF >> "$cfgfile"
26957#! $SHELL
26958# Generated automatically by $as_me ($PACKAGE) $VERSION
26959# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26960# NOTE: Changes made to this file will be lost: look at ltmain.sh.
26961
26962# Provide generalized library-building support services.
26963# Written by Gordon Matzigkeit, 1996
26964
26965# Copyright (C) 2014 Free Software Foundation, Inc.
26966# This is free software; see the source for copying conditions.  There is NO
26967# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
26968
26969# GNU Libtool is free software; you can redistribute it and/or modify
26970# it under the terms of the GNU General Public License as published by
26971# the Free Software Foundation; either version 2 of of the License, or
26972# (at your option) any later version.
26973#
26974# As a special exception to the GNU General Public License, if you
26975# distribute this file as part of a program or library that is built
26976# using GNU Libtool, you may include this file under the  same
26977# distribution terms that you use for the rest of that program.
26978#
26979# GNU Libtool is distributed in the hope that it will be useful, but
26980# WITHOUT ANY WARRANTY; without even the implied warranty of
26981# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
26982# GNU General Public License for more details.
26983#
26984# You should have received a copy of the GNU General Public License
26985# along with this program.  If not, see <http://www.gnu.org/licenses/>.
26986
26987
26988# The names of the tagged configurations supported by this script.
26989available_tags=''
26990
26991# Configured defaults for sys_lib_dlsearch_path munging.
26992: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
26993
26994# ### BEGIN LIBTOOL CONFIG
26995
26996# Whether or not to build static libraries.
26997build_old_libs=$enable_static
26998
26999# Whether or not to build shared libraries.
27000build_libtool_libs=$enable_shared
27001
27002# Which release of libtool.m4 was used?
27003macro_version=$macro_version
27004macro_revision=$macro_revision
27005
27006# What type of objects to build.
27007pic_mode=$pic_mode
27008
27009# Whether or not to optimize for fast installation.
27010fast_install=$enable_fast_install
27011
27012# Shared archive member basename,for filename based shared library versioning on AIX.
27013shared_archive_member_spec=$shared_archive_member_spec
27014
27015# Shell to use when invoking shell scripts.
27016SHELL=$lt_SHELL
27017
27018# An echo program that protects backslashes.
27019ECHO=$lt_ECHO
27020
27021# The PATH separator for the build system.
27022PATH_SEPARATOR=$lt_PATH_SEPARATOR
27023
27024# The host system.
27025host_alias=$host_alias
27026host=$host
27027host_os=$host_os
27028
27029# The build system.
27030build_alias=$build_alias
27031build=$build
27032build_os=$build_os
27033
27034# A sed program that does not truncate output.
27035SED=$lt_SED
27036
27037# Sed that helps us avoid accidentally triggering echo(1) options like -n.
27038Xsed="\$SED -e 1s/^X//"
27039
27040# A grep program that handles long lines.
27041GREP=$lt_GREP
27042
27043# An ERE matcher.
27044EGREP=$lt_EGREP
27045
27046# A literal string matcher.
27047FGREP=$lt_FGREP
27048
27049# A BSD- or MS-compatible name lister.
27050NM=$lt_NM
27051
27052# Whether we need soft or hard links.
27053LN_S=$lt_LN_S
27054
27055# What is the maximum length of a command?
27056max_cmd_len=$max_cmd_len
27057
27058# Object file suffix (normally "o").
27059objext=$ac_objext
27060
27061# Executable file suffix (normally "").
27062exeext=$exeext
27063
27064# whether the shell understands "unset".
27065lt_unset=$lt_unset
27066
27067# turn spaces into newlines.
27068SP2NL=$lt_lt_SP2NL
27069
27070# turn newlines into spaces.
27071NL2SP=$lt_lt_NL2SP
27072
27073# convert \$build file names to \$host format.
27074to_host_file_cmd=$lt_cv_to_host_file_cmd
27075
27076# convert \$build files to toolchain format.
27077to_tool_file_cmd=$lt_cv_to_tool_file_cmd
27078
27079# An object symbol dumper.
27080OBJDUMP=$lt_OBJDUMP
27081
27082# Method to check whether dependent libraries are shared objects.
27083deplibs_check_method=$lt_deplibs_check_method
27084
27085# Command to use when deplibs_check_method = "file_magic".
27086file_magic_cmd=$lt_file_magic_cmd
27087
27088# How to find potential files when deplibs_check_method = "file_magic".
27089file_magic_glob=$lt_file_magic_glob
27090
27091# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
27092want_nocaseglob=$lt_want_nocaseglob
27093
27094# DLL creation program.
27095DLLTOOL=$lt_DLLTOOL
27096
27097# Command to associate shared and link libraries.
27098sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
27099
27100# The archiver.
27101AR=$lt_AR
27102
27103# Flags to create an archive.
27104AR_FLAGS=$lt_AR_FLAGS
27105
27106# How to feed a file listing to the archiver.
27107archiver_list_spec=$lt_archiver_list_spec
27108
27109# A symbol stripping program.
27110STRIP=$lt_STRIP
27111
27112# Commands used to install an old-style archive.
27113RANLIB=$lt_RANLIB
27114old_postinstall_cmds=$lt_old_postinstall_cmds
27115old_postuninstall_cmds=$lt_old_postuninstall_cmds
27116
27117# Whether to use a lock for old archive extraction.
27118lock_old_archive_extraction=$lock_old_archive_extraction
27119
27120# A C compiler.
27121LTCC=$lt_CC
27122
27123# LTCC compiler flags.
27124LTCFLAGS=$lt_CFLAGS
27125
27126# Take the output of nm and produce a listing of raw symbols and C names.
27127global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
27128
27129# Transform the output of nm in a proper C declaration.
27130global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
27131
27132# Transform the output of nm into a list of symbols to manually relocate.
27133global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
27134
27135# Transform the output of nm in a C name address pair.
27136global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
27137
27138# Transform the output of nm in a C name address pair when lib prefix is needed.
27139global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
27140
27141# The name lister interface.
27142nm_interface=$lt_lt_cv_nm_interface
27143
27144# Specify filename containing input files for \$NM.
27145nm_file_list_spec=$lt_nm_file_list_spec
27146
27147# The root where to search for dependent libraries,and where our libraries should be installed.
27148lt_sysroot=$lt_sysroot
27149
27150# Command to truncate a binary pipe.
27151lt_truncate_bin=$lt_lt_cv_truncate_bin
27152
27153# The name of the directory that contains temporary libtool files.
27154objdir=$objdir
27155
27156# Used to examine libraries when file_magic_cmd begins with "file".
27157MAGIC_CMD=$MAGIC_CMD
27158
27159# Must we lock files when doing compilation?
27160need_locks=$lt_need_locks
27161
27162# Manifest tool.
27163MANIFEST_TOOL=$lt_MANIFEST_TOOL
27164
27165# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
27166DSYMUTIL=$lt_DSYMUTIL
27167
27168# Tool to change global to local symbols on Mac OS X.
27169NMEDIT=$lt_NMEDIT
27170
27171# Tool to manipulate fat objects and archives on Mac OS X.
27172LIPO=$lt_LIPO
27173
27174# ldd/readelf like tool for Mach-O binaries on Mac OS X.
27175OTOOL=$lt_OTOOL
27176
27177# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
27178OTOOL64=$lt_OTOOL64
27179
27180# Old archive suffix (normally "a").
27181libext=$libext
27182
27183# Shared library suffix (normally ".so").
27184shrext_cmds=$lt_shrext_cmds
27185
27186# The commands to extract the exported symbol list from a shared archive.
27187extract_expsyms_cmds=$lt_extract_expsyms_cmds
27188
27189# Variables whose values should be saved in libtool wrapper scripts and
27190# restored at link time.
27191variables_saved_for_relink=$lt_variables_saved_for_relink
27192
27193# Do we need the "lib" prefix for modules?
27194need_lib_prefix=$need_lib_prefix
27195
27196# Do we need a version for libraries?
27197need_version=$need_version
27198
27199# Library versioning type.
27200version_type=$version_type
27201
27202# Shared library runtime path variable.
27203runpath_var=$runpath_var
27204
27205# Shared library path variable.
27206shlibpath_var=$shlibpath_var
27207
27208# Is shlibpath searched before the hard-coded library search path?
27209shlibpath_overrides_runpath=$shlibpath_overrides_runpath
27210
27211# Format of library name prefix.
27212libname_spec=$lt_libname_spec
27213
27214# List of archive names.  First name is the real one, the rest are links.
27215# The last name is the one that the linker finds with -lNAME
27216library_names_spec=$lt_library_names_spec
27217
27218# The coded name of the library, if different from the real name.
27219soname_spec=$lt_soname_spec
27220
27221# Permission mode override for installation of shared libraries.
27222install_override_mode=$lt_install_override_mode
27223
27224# Command to use after installation of a shared archive.
27225postinstall_cmds=$lt_postinstall_cmds
27226
27227# Command to use after uninstallation of a shared archive.
27228postuninstall_cmds=$lt_postuninstall_cmds
27229
27230# Commands used to finish a libtool library installation in a directory.
27231finish_cmds=$lt_finish_cmds
27232
27233# As "finish_cmds", except a single script fragment to be evaled but
27234# not shown.
27235finish_eval=$lt_finish_eval
27236
27237# Whether we should hardcode library paths into libraries.
27238hardcode_into_libs=$hardcode_into_libs
27239
27240# Compile-time system search path for libraries.
27241sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
27242
27243# Detected run-time system search path for libraries.
27244sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
27245
27246# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
27247configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
27248
27249# Whether dlopen is supported.
27250dlopen_support=$enable_dlopen
27251
27252# Whether dlopen of programs is supported.
27253dlopen_self=$enable_dlopen_self
27254
27255# Whether dlopen of statically linked programs is supported.
27256dlopen_self_static=$enable_dlopen_self_static
27257
27258# Commands to strip libraries.
27259old_striplib=$lt_old_striplib
27260striplib=$lt_striplib
27261
27262
27263# The linker used to build libraries.
27264LD=$lt_LD
27265
27266# How to create reloadable object files.
27267reload_flag=$lt_reload_flag
27268reload_cmds=$lt_reload_cmds
27269
27270# Commands used to build an old-style archive.
27271old_archive_cmds=$lt_old_archive_cmds
27272
27273# A language specific compiler.
27274CC=$lt_compiler
27275
27276# Is the compiler the GNU compiler?
27277with_gcc=$GCC
27278
27279# Compiler flag to turn off builtin functions.
27280no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
27281
27282# Additional compiler flags for building library objects.
27283pic_flag=$lt_lt_prog_compiler_pic
27284
27285# How to pass a linker flag through the compiler.
27286wl=$lt_lt_prog_compiler_wl
27287
27288# Compiler flag to prevent dynamic linking.
27289link_static_flag=$lt_lt_prog_compiler_static
27290
27291# Does compiler simultaneously support -c and -o options?
27292compiler_c_o=$lt_lt_cv_prog_compiler_c_o
27293
27294# Whether or not to add -lc for building shared libraries.
27295build_libtool_need_lc=$archive_cmds_need_lc
27296
27297# Whether or not to disallow shared libs when runtime libs are static.
27298allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
27299
27300# Compiler flag to allow reflexive dlopens.
27301export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
27302
27303# Compiler flag to generate shared objects directly from archives.
27304whole_archive_flag_spec=$lt_whole_archive_flag_spec
27305
27306# Whether the compiler copes with passing no objects directly.
27307compiler_needs_object=$lt_compiler_needs_object
27308
27309# Create an old-style archive from a shared archive.
27310old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
27311
27312# Create a temporary old-style archive to link instead of a shared archive.
27313old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
27314
27315# Commands used to build a shared archive.
27316archive_cmds=$lt_archive_cmds
27317archive_expsym_cmds=$lt_archive_expsym_cmds
27318
27319# Commands used to build a loadable module if different from building
27320# a shared archive.
27321module_cmds=$lt_module_cmds
27322module_expsym_cmds=$lt_module_expsym_cmds
27323
27324# Whether we are building with GNU ld or not.
27325with_gnu_ld=$lt_with_gnu_ld
27326
27327# Flag that allows shared libraries with undefined symbols to be built.
27328allow_undefined_flag=$lt_allow_undefined_flag
27329
27330# Flag that enforces no undefined symbols.
27331no_undefined_flag=$lt_no_undefined_flag
27332
27333# Flag to hardcode \$libdir into a binary during linking.
27334# This must work even if \$libdir does not exist
27335hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
27336
27337# Whether we need a single "-rpath" flag with a separated argument.
27338hardcode_libdir_separator=$lt_hardcode_libdir_separator
27339
27340# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
27341# DIR into the resulting binary.
27342hardcode_direct=$hardcode_direct
27343
27344# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
27345# DIR into the resulting binary and the resulting library dependency is
27346# "absolute",i.e impossible to change by setting \$shlibpath_var if the
27347# library is relocated.
27348hardcode_direct_absolute=$hardcode_direct_absolute
27349
27350# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27351# into the resulting binary.
27352hardcode_minus_L=$hardcode_minus_L
27353
27354# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27355# into the resulting binary.
27356hardcode_shlibpath_var=$hardcode_shlibpath_var
27357
27358# Set to "yes" if building a shared library automatically hardcodes DIR
27359# into the library and all subsequent libraries and executables linked
27360# against it.
27361hardcode_automatic=$hardcode_automatic
27362
27363# Set to yes if linker adds runtime paths of dependent libraries
27364# to runtime path list.
27365inherit_rpath=$inherit_rpath
27366
27367# Whether libtool must link a program against all its dependency libraries.
27368link_all_deplibs=$link_all_deplibs
27369
27370# Set to "yes" if exported symbols are required.
27371always_export_symbols=$always_export_symbols
27372
27373# The commands to list exported symbols.
27374export_symbols_cmds=$lt_export_symbols_cmds
27375
27376# Symbols that should not be listed in the preloaded symbols.
27377exclude_expsyms=$lt_exclude_expsyms
27378
27379# Symbols that must always be exported.
27380include_expsyms=$lt_include_expsyms
27381
27382# Commands necessary for linking programs (against libraries) with templates.
27383prelink_cmds=$lt_prelink_cmds
27384
27385# Commands necessary for finishing linking programs.
27386postlink_cmds=$lt_postlink_cmds
27387
27388# Specify filename containing input files.
27389file_list_spec=$lt_file_list_spec
27390
27391# How to hardcode a shared library path into an executable.
27392hardcode_action=$hardcode_action
27393
27394# ### END LIBTOOL CONFIG
27395
27396_LT_EOF
27397
27398    cat <<'_LT_EOF' >> "$cfgfile"
27399
27400# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
27401
27402# func_munge_path_list VARIABLE PATH
27403# -----------------------------------
27404# VARIABLE is name of variable containing _space_ separated list of
27405# directories to be munged by the contents of PATH, which is string
27406# having a format:
27407# "DIR[:DIR]:"
27408#       string "DIR[ DIR]" will be prepended to VARIABLE
27409# ":DIR[:DIR]"
27410#       string "DIR[ DIR]" will be appended to VARIABLE
27411# "DIRP[:DIRP]::[DIRA:]DIRA"
27412#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
27413#       "DIRA[ DIRA]" will be appended to VARIABLE
27414# "DIR[:DIR]"
27415#       VARIABLE will be replaced by "DIR[ DIR]"
27416func_munge_path_list ()
27417{
27418    case x$2 in
27419    x)
27420        ;;
27421    *:)
27422        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
27423        ;;
27424    x:*)
27425        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
27426        ;;
27427    *::*)
27428        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
27429        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
27430        ;;
27431    *)
27432        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
27433        ;;
27434    esac
27435}
27436
27437
27438# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
27439func_cc_basename ()
27440{
27441    for cc_temp in $*""; do
27442      case $cc_temp in
27443        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
27444        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
27445        \-*) ;;
27446        *) break;;
27447      esac
27448    done
27449    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
27450}
27451
27452
27453# ### END FUNCTIONS SHARED WITH CONFIGURE
27454
27455_LT_EOF
27456
27457  case $host_os in
27458  aix3*)
27459    cat <<\_LT_EOF >> "$cfgfile"
27460# AIX sometimes has problems with the GCC collect2 program.  For some
27461# reason, if we set the COLLECT_NAMES environment variable, the problems
27462# vanish in a puff of smoke.
27463if test set != "${COLLECT_NAMES+set}"; then
27464  COLLECT_NAMES=
27465  export COLLECT_NAMES
27466fi
27467_LT_EOF
27468    ;;
27469  esac
27470
27471
27472ltmain=$ac_aux_dir/ltmain.sh
27473
27474
27475  # We use sed instead of cat because bash on DJGPP gets confused if
27476  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
27477  # text mode, it properly converts lines to CR/LF.  This bash problem
27478  # is reportedly fixed, but why not run on old versions too?
27479  sed '$q' "$ltmain" >> "$cfgfile" \
27480     || (rm -f "$cfgfile"; exit 1)
27481
27482   mv -f "$cfgfile" "$ofile" ||
27483    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
27484  chmod +x "$ofile"
27485
27486 ;;
27487    "default":C)
27488chmod +x tests/run
27489date > stamp-h
27490BACKENDSC="servers/slapd/backends.c"
27491echo "Making $BACKENDSC"
27492rm -f $BACKENDSC
27493cat > $BACKENDSC << ENDX
27494/* This work is part of OpenLDAP Software <http://www.openldap.org/>.
27495 *
27496 * Copyright 1998-2021 The OpenLDAP Foundation.
27497 * All rights reserved.
27498 *
27499 * Redistribution and use in source and binary forms, with or without
27500 * modification, are permitted only as authorized by the OpenLDAP
27501 * Public License.
27502 *
27503 * A copy of this license is available in the file LICENSE in the
27504 * top-level directory of the distribution or, alternatively, at
27505 * <http://www.OpenLDAP.org/license.html>.
27506 */
27507/* This file is automatically generated by configure; please do not edit. */
27508
27509#include "portable.h"
27510#include "slap.h"
27511
27512ENDX
27513if test "${STATIC_BACKENDS}"; then
27514	for b in config ${STATIC_BACKENDS}; do
27515		bb=`echo "${b}" | sed -e 's/back-//'`
27516		cat >> $BACKENDSC << ENDX
27517extern BI_init ${bb}_back_initialize;
27518ENDX
27519	done
27520
27521	cat >> $BACKENDSC << ENDX
27522
27523BackendInfo slap_binfo[] = {
27524ENDX
27525
27526	for b in config ${STATIC_BACKENDS}; do
27527		bb=`echo "${b}" | sed -e 's/back-//'`
27528		echo "    Add ${bb} ..."
27529		cat >> $BACKENDSC << ENDX
27530	{ "${bb}", ${bb}_back_initialize },
27531ENDX
27532	done
27533
27534	cat >> $BACKENDSC << ENDX
27535	{ NULL, NULL },
27536};
27537
27538/* end of generated file */
27539ENDX
27540fi
27541OVERLAYSC="servers/slapd/overlays/statover.c"
27542echo "Making $OVERLAYSC"
27543rm -f $OVERLAYSC
27544cat > $OVERLAYSC << ENDX
27545/* This work is part of OpenLDAP Software <http://www.openldap.org/>.
27546 *
27547 * Copyright 1998-2021 The OpenLDAP Foundation.
27548 * All rights reserved.
27549 *
27550 * Redistribution and use in source and binary forms, with or without
27551 * modification, are permitted only as authorized by the OpenLDAP
27552 * Public License.
27553 *
27554 * A copy of this license is available in the file LICENSE in the
27555 * top-level directory of the distribution or, alternatively, at
27556 * <http://www.OpenLDAP.org/license.html>.
27557 */
27558/* This file is automatically generated by configure; please do not edit. */
27559
27560#include "portable.h"
27561#include "slap.h"
27562
27563ENDX
27564if test "${STATIC_OVERLAYS}"; then
27565	for o in ${STATIC_OVERLAYS}; do
27566		oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
27567		cat >> $OVERLAYSC << ENDX
27568extern OV_init ${oo}_initialize;
27569ENDX
27570	done
27571fi
27572
27573cat >> $OVERLAYSC << ENDX
27574
27575OverlayInit slap_oinfo[] = {
27576ENDX
27577
27578if test "${STATIC_OVERLAYS}"; then
27579	for o in ${STATIC_OVERLAYS}; do
27580		oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
27581		echo "    Add ${oo} ..."
27582		cat >> $OVERLAYSC << ENDX
27583	{ "${oo}", ${oo}_initialize },
27584ENDX
27585	done
27586fi
27587
27588	cat >> $OVERLAYSC << ENDX
27589	{ NULL, NULL },
27590};
27591
27592/* end of generated file */
27593ENDX
27594
27595if test "${ol_cv_mkdep}" = no; then
27596	echo '(Do not "make depend"; we do not know how to build dependencies)'
27597else
27598	echo 'Please run "make depend" to build dependencies'
27599fi
27600 ;;
27601
27602  esac
27603done # for ac_tag
27604
27605
27606as_fn_exit 0
27607_ACEOF
27608ac_clean_files=$ac_clean_files_save
27609
27610test $ac_write_fail = 0 ||
27611  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
27612
27613
27614# configure is writing to config.log, and then calls config.status.
27615# config.status does its own redirection, appending to config.log.
27616# Unfortunately, on DOS this fails, as config.log is still kept open
27617# by configure, so config.status won't be able to write to it; its
27618# output is simply discarded.  So we exec the FD to /dev/null,
27619# effectively closing config.log, so it can be properly (re)opened and
27620# appended to by config.status.  When coming back to configure, we
27621# need to make the FD available again.
27622if test "$no_create" != yes; then
27623  ac_cs_success=:
27624  ac_config_status_args=
27625  test "$silent" = yes &&
27626    ac_config_status_args="$ac_config_status_args --quiet"
27627  exec 5>/dev/null
27628  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27629  exec 5>>config.log
27630  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27631  # would make configure fail if this is the last instruction.
27632  $ac_cs_success || as_fn_exit 1
27633fi
27634if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
27635  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
27636$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
27637fi
27638
27639